· 7 years ago · Feb 02, 2018, 09:40 AM
1
2//#define BASED_URL_INTERNET @"http://192.168.100.200:81/" //local url
3//#define BASED_URL_INTERNET @"http://demo1.thehegeo.com/" //test url
4#define BASED_URL_INTERNET @"http://gasfactory.thehegeo.com/" //real url
5#define BASED_URL_LOCAL @"http://192.168.100.1:8181/" //local url
6
7//Api
8#define URL_TOKEN @"oauth/token"
9#define URL_LOGIN @"api/AuthCheckLoginStatus"
10#define URL_GET_PRODUCT_TYPE_BY_DATE @"api/AuthGetProductTypeByDate/"
11#define URL_GET_PRODUCT_REPAIR_BY_DATE @"api/AuthGetProductRepair/"
12#define URL_GET_PRODUCT_SECTION_ERROR_BY_DATE @"api/AuthGetSectionError/"
13#define URL_GET_PRODUCT_PRODUCT_HISTORY_BY_DATE @"api/AuthGetDataProductHistory/"
14
15//Luy Ke
16#define URL_GET_WEEK_NEW_PRODUCT_NUMBER @"api/AuthGetNumberNewProductByWeek"
17#define URL_GET_MONTH_NEW_PRODUCT_NUMBER @"api/AuthGetNumberNewProductMonth"
18#define URL_GET_YEAR_NEW_PRODUCT_NUMBER @"api/AuthGetNumberNewProductYear"
19
20#define URL_GET_WEEK_PRODUCT_REPAIR_NUMBER @"api/AuthGetNumberRepairProductByWeek"
21#define URL_GET_MONTH_PRODUCT_REPAIR_NUMBER @"api/AuthGetNumberRepairProductMonth"
22#define URL_GET_YEAR_PRODUCT_REPAIR_NUMBER @"api/AuthGetNumberRepairProductYear"
23
24//TONG HOP THIET BI LOI
25#define URL_GET_LIST_BROKEN_DEVICE @"api/AuthGetDataBrokenDevice"
26
27//BAO CAO KQ THI NGHIEM
28#define URL_GET_LIST_TEST_RESULT @"api/AuthGetDataExperiment"
29//Lenh SX
30#define URL_GET_LIST_TEAM @"api/AuthGetListTeamObj/"
31#define BASED_GET_LIST_TEAM_NEW @"api/AuthGetDataTeam/"
32#define URL_GET_LIST_PRODUCE_PLANS @"api/AuthGetListProducePlans/"
33#define URL_GET_LIST_PRODCUTION_COMMAND_BY_SECTION @"api/AuthGetListProductionCommandsBySec/"
34#define URL_GET_LIST_SECTION_BY_TEAM @"api/AuthGetListSectionByTeamObj/"
35#define URL_GET_PRODUCT_NAME @"api/AuthGetProductNameByTeam/"
36#define URL_POST_CREATE_PRODCUTION_COMMAND @"api/AuthCreateProductionCommand"
37#define URL_POST_EDIT_PRODUCTION_COMMAND @"api/AuthSubmitEditProducttionCommands"
38#define URL_POST_EDIT_STATUS_PRODUCTION_COMMAND @"api/AuthSubmitStatusProductionCommnad"
39
40#define URL_GET_LIST_DEVICE_BY_TEAMID @"api/AuthGetDeviceByTeamId/"
41#define URL_GET_LIST_SHIFT @"api/AuthGetListShift"
42#define URL_GET_TEAM_REGISTERED_BY_DATE @"api/AuthGetTeamResgisterByDate"
43#define URL_GET_LIST_WORKER_IN_TEAM @"api/AuthGetListWorkerInTeam"
44
45//ATTENDANCE
46#define URL_POST_EDIT_ATTENDANCE @"api/AuthEditAttendance"
47#define URL_GET_ATTENDANCE_LIST @"api/AuthGetDateRegister/"
48#define URL_POST_SUBMIT_ATTENDANCE @"api/AuthSubmitAttendance"
49#define BASED_GET_DEPARTMENT_AND_TEAM_LIST @"api/AuthGetDepartmentAndTeamByUserId"
50#define BASED_GET_DATA_ATTENDANCE_BY_DATE @"api/GetDataRegisterByDate"
51#define BASED_GET_USER_LIST_IN_TEAM_OR_DEPARTMENT @"api/AuthGetUserInTeamOrDepartment"
52#define BASED_SUBMIT_ATTENDANCE @"api/AuthSubmitRegister"
53#define BASED_UPDATE_ATTENDANCE @"api/AuthUpdateRegister"
54
55//BAO CAO SAN XUAT
56#define BASED_GET_PRODUCE_REPORT_FROM_DATE_TO_DATE @"api/AuthGetListDataProduceReport"
57#define BASED_GET_TYPE_PRODUCT_BY_TEAM_ID @"api/AuthGetTypeByTeam/"
58#define BASED_GET_PRODUCE_REPORT_BY_TEAMID @"api/AuthGetDataHumanProductByTeamAndPlan/"
59#define BASED_GET_PRODUCE_SECTION_BY_TEAM @"api/AuthGetDataSectionByTeam/"
60
61#define BASED_CREATE_PRODUCT_REPORT @"api/AuthCreateProduceReport/"
62#define BASED_UPDATE_PRODUCT_REPORT @"api/AuthUpdateProduceReport/"
63
64//BAO CAO SU DUNG NVL
65#define BASED_GET_MATERIAL_REPORT_FROM_DATE_TO_DATE @"api/AuthGetListDataMaterialReport/"
66#define BASED_GET_MATERIAL_BY_TEAM_AND_DATE @"api/AuthGetDataMaterialByTeamAndDate/"
67#define BASED_GET_EDIT_MATERIAL_REPORT @"api/AuthUpdateMaterialReport/"
68#define BASED_GET_CREATE_MATERIAL_REPORT @"api/AuthCreateMaterialReport/"
69//NOTIFICATION
70#define BASED_GET_NOTIFICATION_LIST @"api/notification/GetAll0"
71
72//FCM
73#define BASED_FIREBASE_UPLOAD_TOKEN @"api/fcm"
74
75
76//DN Nhap, Xuat
77#define BASED_GETAll_STOCK_PLAN_INPUT @"api/AuthGetWaitingApproveStockIn/"
78#define BASED_GETAll_STOCK_PLAN_OUTPUT @"api/AuthGetWaitingApproveStockOut/"
79#define BASED_GET_STOCK_PLAN_DETAIL @"api/AuthGetStockInOutDetail/"
80#define BASED_APPROVE_STOCK_PLAN @"api/AuthApproveStockPlan"
81#define BASED_REJECT_STOCK_PLAN @"api/AuthRejectStockPlan"
82
83//danh sach nhap kho / xuat kho ( 1 : nhap, 2 xuat )
84#define URL_GET_ALL_STOCK_PLAN @"api/AuthGetStockInOutDetail/"
85//danh sach chi tiết kho
86#define URL_GET_STOCK_PLAN_BY_ID @"api/AuthGetStockPlanById/"
87//đẩy dữ liệu nháºp, xuất kho
88#define URL_POST_XUAT_NHAP_KHO @"api/AuthSubmitStockPlan"