1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
// web service proxy for org
webservices.factory('orgService', ['$http', 'apiConfig', function ($http, apiConfig) {
'use strict';
return {
getOrgList: function (type) {
return $http.get('/org/display?useType=' + type, apiConfig.create());
},
getOrgListToJson: function (type) {
return $http.get('/org/getjson?useType=' + type, apiConfig.create());
},
getOrgListForGrid: function () {
return $http.get('/org/displayForGrid', apiConfig.create());
},
getSingleOrg: function (orgId) {
return $http.get('/org/displaySingle?orgId=' + orgId, apiConfig.create());
},
getSingleOrgExtra: function (orgId) {
return $http.get('/org/displaySingleExtra?orgId=' + orgId, apiConfig.create());
},
addOrg: function (org) {
return $http.post('/org/add', org, apiConfig.create());
},
updateOrg: function (org) {
return $http.put('/org/update', org, apiConfig.create());
},
updateOrgExtraInfoByOrgId: function (org) {
return $http.put('/org/updateExtra' , org, apiConfig.create());
},
updateHierarchy: function (srcOrgID, destOrgID) {
return $http.put('/org/updateHierarchy?srcOrgID=' + srcOrgID + '&destOrgID=' + destOrgID, org, apiConfig.create());
},
disableOrgs: function (orgList) {
return $http.post('/org/disableOrgs', orgList, apiConfig.create());
},
deleteOrg: function (org) {
return $http.post('/org/delete', org, apiConfig.create());
},
deleteOrgs: function (orgList) {
return $http.post('/org/deleteOrgs', { orgList: orgList }, apiConfig.create());
},
getProjectIndustrys: function () {
return $http.get('/org/getProjectIndustrys', apiConfig.create());
},
enableOrgs: function (id) {
return $http.get('/org/enableOrgs?orgID=' + id, apiConfig.create());
},
getOrgIvhTreeList: function (useType, orgSetID) {
return $http.get('/org/getOrgIvhTreeList?useType=' + useType + '&orgSetID=' + orgSetID, apiConfig.create());
},
getOrgDevTreeList: function (useType, orgSetID) {
return $http.get('/org/getOrgDevTreeList?useType=' + useType + '&orgSetID=' + orgSetID, apiConfig.create());
},
codeUniqueValidate: function (id, viewValue) {
return $http.post('/org/codeUniqueValidate', { Id: id, Value: viewValue }, apiConfig.create({ ignoreLoadingBar: true }));
},
taxPayerNumberUniqueValidate: function (id, viewValue) {
return $http.post('/org/taxPayerNumberUniqueValidate', { Id: id, Value: viewValue }, apiConfig.create({ ignoreLoadingBar: true }));
},
getAreaStatistics: function () {
return $http.get('/org/getAreaStatistics', apiConfig.create());
},
getOrgListForDashboard: function (orgID) {
return $http.get('/org/getOrgListForDashboard?orgID=' + orgID, apiConfig.create({ ignoreLoadingBar: true }));
},
getOrgListFirstLevel: function () {
return $http.get('/org/getOrgListFirstLevel', apiConfig.create());
},
getOrgAreaDashboard: function (dimensionValueID, parentDimensionID) {
return $http.get('/org/getOrgAreaDashboard?dimensionValueID=' + dimensionValueID + '&parentDimensionID=' + parentDimensionID, apiConfig.create());
},
//getOrgBuDashboard: function (parentDimensionID) {
// return $http.get('/org/getOrgBuDashboard?parentDimensionID=' + parentDimensionID, apiConfig.create());
//},
getOrgCustomDashbord: function (dimensionValueID, parentDimensionID, attributeID) {
return $http.get('/org/getOrgCustomDashbord?dimensionValueID=' + dimensionValueID + '&parentDimensionID=' + parentDimensionID + '&attributeID=' + attributeID, apiConfig.create());
},
getAreaOrganizationStaticsTreeList: function () {
return $http.get('/org/getAreaOrganizationStaticsTreeList', apiConfig.create());
},
getOrgUserList: function (orgID) {
return $http.get('/org/getOrgUserList?orgID=' + orgID, apiConfig.create({ ignoreLoadingBar: true }));
},
getOrgCityAreaUserCountList: function (orgID) {
return $http.get('/org/getOrgCityAreaUserCountList?orgID=' + orgID, apiConfig.create({ ignoreLoadingBar: true }));
},
getGeneralInfo: function (orgID) {
return $http.get('/org/getGeneralInfo?orgID=' + orgID, apiConfig.create({ ignoreLoadingBar: true }));
},
getOrgBuAreaIndustryUser: function (userID) {
return $http.get('/org/getOrgBuAreaIndustryUser?userID=' + userID, apiConfig.create());
},
getOrgRoleListView: function (userID) {
return $http.get('/org/getOrgRoleListView?userID=' + userID, apiConfig.create());
},
getOrgListCountDashboard: function (dimensionValueID, parentDimensionID) {
return $http.get('/org/getOrgListCountDashboard?dimensionValueID=' + dimensionValueID + '&parentDimensionID=' + parentDimensionID, apiConfig.create({ ignoreLoadingBar: true }));
},
getOrgDashboard: function (dimensionID, parentOrgID, expandedOrgList) {
return $http.post('/org/getOrgDashboard?dimensionID=' + dimensionID + '&parentOrgID=' + parentOrgID, expandedOrgList, apiConfig.create());
},
getOrgDashboardOnly: function (dimensionID, parentOrgID) {
return $http.get('/org/getOrgDashboardOnly?dimensionID=' + dimensionID + '&parentOrgID=' + parentOrgID, apiConfig.create());
},
getBusinessUnitOrganizationStaticsTreeList: function () {
return $http.get('/org/getBusinessUnitOrganizationStaticsTreeList', apiConfig.create());
},
getOrgListLevel: function () {
return $http.get('/org/getOrgListLevel', apiConfig.create());
},
getOrgInfoList: function () {
return $http.get('/org/getOrgInfoList', apiConfig.create());
},
getOrgListByUserId: function (userId) {
return $http.get('/org/getOrgListByUserId?userId=' + userId, apiConfig.create());
},
updateOrgToDimension: function (dimensionValueID, parentDimensionID, orgList) {
return $http.post('/org/updateOrgToDimension', { dimensionValueID: dimensionValueID, dimensionID: parentDimensionID, orgDtoList: orgList }, apiConfig.create());
},
deleteUserDimensionValue: function (dimensionRoleDto, userID) {
return $http.post('/org/deleteUserDimensionValue?userID=' + userID, dimensionRoleDto, apiConfig.create());
},
deleteUserOrg: function (orgRoleDto, userID) {
return $http.post('/org/deleteUserOrg?userID=' + userID, orgRoleDto, apiConfig.create());
},
getOrganizationListByAreaID: function (areaID, attributeID) {
return $http.get('/org/getOrganizationListByAreaID?areaID=' + areaID + '&attributeID=' + attributeID, apiConfig.create());
},
getOrganizationFilterList: function () {
return $http.get('/org/getOrganizationFilterList', apiConfig.create());
},
getActiveOrganizationList: function () {
return $http.get('/org/getActiveOrganizationList', apiConfig.create());
},
getGd: function () {
return $http.get('/org/gd', apiConfig.create());
},
getBdList: function () {
return $http.get('/org/bdList', apiConfig.create());
},
downloadOrgListData: function (exportData) {
return $http.post('/org/downloadOrgListData', exportData, apiConfig.create({ responseType: 'arraybuffer' }));
}
};
}]);