cityworks 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/activity_link.d.ts +5 -0
- package/dist/briefcase.d.ts +84 -6
- package/dist/case_assets.d.ts +1 -0
- package/dist/case_data.d.ts +45 -6
- package/dist/error.d.ts +15 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.m.js +1 -1
- package/dist/index.m.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/activity_link.js +0 -219
- package/dist/briefcase.js +0 -327
- package/dist/case.d.ts +0 -114
- package/dist/case_admin.js +0 -821
- package/dist/case_assets.js +0 -129
- package/dist/case_data.js +0 -416
- package/dist/case_financial.js +0 -848
- package/dist/case_workflow.js +0 -455
- package/dist/cityworks.d.ts +0 -224
- package/dist/comments.js +0 -126
- package/dist/error.js +0 -30
- package/dist/event_layer.d.ts +0 -97
- package/dist/event_layer.js +0 -207
- package/dist/general.js +0 -212
- package/dist/gis.js +0 -250
- package/dist/index.cjs +0 -2
- package/dist/index.cjs.map +0 -1
- package/dist/index.modern.js +0 -2
- package/dist/index.modern.js.map +0 -1
- package/dist/inspection.js +0 -933
- package/dist/inspection_admin.js +0 -43
- package/dist/inspection_costs.js +0 -200
- package/dist/message_queue.js +0 -248
- package/dist/query.js +0 -242
- package/dist/request.js +0 -899
- package/dist/request_admin.js +0 -32
- package/dist/request_costs.js +0 -113
- package/dist/search.js +0 -371
- package/dist/workorder.js +0 -951
- package/dist/workorder_admin.js +0 -248
- package/dist/workorder_costs.js +0 -274
package/dist/case_admin.js
DELETED
|
@@ -1,821 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CaseAdmin = void 0;
|
|
4
|
-
var error_1 = require("./error");
|
|
5
|
-
var _ = require('lodash');
|
|
6
|
-
var CaseAdmin = /** @class */ (function () {
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
function CaseAdmin(cw) {
|
|
11
|
-
this.cw = cw;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Add Business Case Template
|
|
15
|
-
*
|
|
16
|
-
* @category Case Templates
|
|
17
|
-
* @param {Object} data - The Business Case Template options.
|
|
18
|
-
* @return {Object} Returns Promise that represents an object describing the created case template. See: /{subdirectory}/apidocs/#/data-type-info;dataType=BusinessCaseItem
|
|
19
|
-
*/
|
|
20
|
-
CaseAdmin.prototype.addBusinessCaseTemplate = function (data) {
|
|
21
|
-
var _this = this;
|
|
22
|
-
return new Promise(function (resolve, reject) {
|
|
23
|
-
_this.cw.runRequest('Pll/BusinessCase/Add', data).then(function (r) {
|
|
24
|
-
resolve(r.Value);
|
|
25
|
-
}).catch(function (e) {
|
|
26
|
-
reject(e);
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Update Business Case Template
|
|
32
|
-
*
|
|
33
|
-
* @category Case Templates
|
|
34
|
-
* @param {number} busCaseId - The Business Case ID to update
|
|
35
|
-
* @param {Object} data - The Business Case Template options.
|
|
36
|
-
* @return {Object} Returns Promise that represents an object describing the updated case template. See: /{subdirectory}/apidocs/#/data-type-info;dataType=BusinessCaseItem
|
|
37
|
-
*/
|
|
38
|
-
CaseAdmin.prototype.updateBusinessCaseTemplate = function (busCaseId, options) {
|
|
39
|
-
var _this = this;
|
|
40
|
-
return new Promise(function (resolve, reject) {
|
|
41
|
-
var data_init = {
|
|
42
|
-
BusCaseId: busCaseId
|
|
43
|
-
};
|
|
44
|
-
var data = _.merge(data_init, options);
|
|
45
|
-
_this.cw.runRequest('Pll/BusinessCase/Update', data).then(function (r) {
|
|
46
|
-
resolve(r.Value);
|
|
47
|
-
}).catch(function (e) {
|
|
48
|
-
reject(e);
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* Get Business Case Templates
|
|
54
|
-
*
|
|
55
|
-
* @category Case Templates
|
|
56
|
-
* @return {Object} Returns Promise that represents a collection of Business Case Templates
|
|
57
|
-
*/
|
|
58
|
-
CaseAdmin.prototype.getBusinessCaseTemplates = function () {
|
|
59
|
-
var _this = this;
|
|
60
|
-
return new Promise(function (resolve, reject) {
|
|
61
|
-
var data = {};
|
|
62
|
-
_this.cw.runRequest('Pll/BusinessCase/GetList', data).then(function (r) {
|
|
63
|
-
resolve(r.Value);
|
|
64
|
-
}).catch(function (e) {
|
|
65
|
-
reject(e);
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* Add Case Type
|
|
71
|
-
*
|
|
72
|
-
* @category Types & SubTypes
|
|
73
|
-
* @param {string} caseTypeName - The case type name
|
|
74
|
-
* @param {string} caseTypeDesciption - The case type description
|
|
75
|
-
* @param {Object} options - The other options for the Case Type
|
|
76
|
-
* @return {Object} Returns Promise that represents an object describing the added case type
|
|
77
|
-
*/
|
|
78
|
-
CaseAdmin.prototype.addCaseType = function (caseTypeName, caseTypeDesciption, options) {
|
|
79
|
-
var _this = this;
|
|
80
|
-
return new Promise(function (resolve, reject) {
|
|
81
|
-
var data_init = {
|
|
82
|
-
CaseType: caseTypeName,
|
|
83
|
-
CaseTypeDesciption: caseTypeDesciption
|
|
84
|
-
};
|
|
85
|
-
var data = _.merge(data_init, options);
|
|
86
|
-
_this.cw.runRequest('Pll/CaseType/Add', data).then(function (r) {
|
|
87
|
-
resolve(r.Value);
|
|
88
|
-
}).catch(function (e) {
|
|
89
|
-
reject(e);
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* Update Case Type
|
|
95
|
-
*
|
|
96
|
-
* @category Types & SubTypes
|
|
97
|
-
* @param {number} caseTypeId - The case Type ID
|
|
98
|
-
* @param {Object} options - The other options for the Case Type
|
|
99
|
-
* @return {Object} Returns Promise that represents an object describing the updated case type
|
|
100
|
-
*/
|
|
101
|
-
CaseAdmin.prototype.updateCaseType = function (caseTypeId, options) {
|
|
102
|
-
var _this = this;
|
|
103
|
-
return new Promise(function (resolve, reject) {
|
|
104
|
-
var data_init = {
|
|
105
|
-
CaseTypeId: caseTypeId
|
|
106
|
-
};
|
|
107
|
-
var data = _.merge(data_init, options);
|
|
108
|
-
_this.cw.runRequest('Pll/CaseType/GetList', data).then(function (r) {
|
|
109
|
-
resolve(r.Value);
|
|
110
|
-
}).catch(function (e) {
|
|
111
|
-
reject(e);
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* Get Case Types
|
|
117
|
-
*
|
|
118
|
-
* @category Types & SubTypes
|
|
119
|
-
* @return {Object} Returns Promise that represents a collection of CaseTypeItems
|
|
120
|
-
*/
|
|
121
|
-
CaseAdmin.prototype.getCaseTypes = function () {
|
|
122
|
-
var _this = this;
|
|
123
|
-
return new Promise(function (resolve, reject) {
|
|
124
|
-
var data = {};
|
|
125
|
-
_this.cw.runRequest('Pll/CaseType/GetList', data).then(function (r) {
|
|
126
|
-
resolve(r.Value);
|
|
127
|
-
}).catch(function (e) {
|
|
128
|
-
reject(e);
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* Search for CaseTypes. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
|
|
134
|
-
*
|
|
135
|
-
* @category Types & SubTypes
|
|
136
|
-
* @param {Object} filters - The parameter(s) to search by (CaseType, CaseTypeDesc, CaseTypeId)
|
|
137
|
-
* @return {Object} Returns Promise that represents an Array of CaseTypeIDs
|
|
138
|
-
*/
|
|
139
|
-
CaseAdmin.prototype.searchCaseTypeIDs = function (filters) {
|
|
140
|
-
var _this = this;
|
|
141
|
-
return new Promise(function (resolve, reject) {
|
|
142
|
-
if (_.intersectionBy(_.keysIn(filters), ['CaseType', 'CaseTypeDesc', 'CaseTypeId']).length == 0) {
|
|
143
|
-
reject(new error_1.CWError(2, 'At least one of the attributes (CaFeeId, CaObjectId, FeeCode, FeeDesc) must be defined.'));
|
|
144
|
-
}
|
|
145
|
-
var data = filters;
|
|
146
|
-
_this.cw.runRequest('Pll/CaseType/Search', data).then(function (r) {
|
|
147
|
-
resolve(r.Value);
|
|
148
|
-
}).catch(function (e) {
|
|
149
|
-
reject(e);
|
|
150
|
-
});
|
|
151
|
-
});
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* Search for CaseTypes. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
|
|
155
|
-
*
|
|
156
|
-
* @category Types & SubTypes
|
|
157
|
-
* @param {Object} filters - The parameter(s) to search by (CaseType, CaseTypeDesc, CaseTypeId)
|
|
158
|
-
* @return {Object} Returns Promise that represents a collection of CaseTypeItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=CaseTypeItem
|
|
159
|
-
*/
|
|
160
|
-
CaseAdmin.prototype.searchCaseTypeObjects = function (filters) {
|
|
161
|
-
var _this = this;
|
|
162
|
-
return new Promise(function (resolve, reject) {
|
|
163
|
-
if (_.intersectionBy(_.keysIn(filters), ['CaseType', 'CaseTypeDesc', 'CaseTypeId']).length == 0) {
|
|
164
|
-
reject(new error_1.CWError(3, 'At least one of the attributes (CaseType, CaseTypeDesc, CaseTypeId) must be defined.'));
|
|
165
|
-
}
|
|
166
|
-
var data = filters;
|
|
167
|
-
_this.cw.runRequest('Pll/CaseType/SearchObject', data).then(function (r) {
|
|
168
|
-
resolve(r.Value);
|
|
169
|
-
}).catch(function (e) {
|
|
170
|
-
reject(e);
|
|
171
|
-
});
|
|
172
|
-
});
|
|
173
|
-
};
|
|
174
|
-
/**
|
|
175
|
-
* Add SubType
|
|
176
|
-
*
|
|
177
|
-
* @category Types & SubTypes
|
|
178
|
-
* @param {string} subTypeName - The SubTypeId
|
|
179
|
-
* @param {string} subTypeDescription - The SubTypeId
|
|
180
|
-
* @param {Object} options - Other SubType options.
|
|
181
|
-
* @return {Object} Returns Promise that represents an object describing the added SubTypeItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=SubTypeItem
|
|
182
|
-
*/
|
|
183
|
-
CaseAdmin.prototype.addSubtype = function (subTypeName, subTypeDescription, options) {
|
|
184
|
-
var _this = this;
|
|
185
|
-
return new Promise(function (resolve, reject) {
|
|
186
|
-
var data_init = {
|
|
187
|
-
SubType: subTypeName,
|
|
188
|
-
SubTypeDesc: subTypeDescription
|
|
189
|
-
};
|
|
190
|
-
var data = _.merge(data_init, options);
|
|
191
|
-
_this.cw.runRequest('Pll/SubType/Add', data).then(function (r) {
|
|
192
|
-
resolve(r.Value);
|
|
193
|
-
}).catch(function (e) {
|
|
194
|
-
reject(e);
|
|
195
|
-
});
|
|
196
|
-
});
|
|
197
|
-
};
|
|
198
|
-
/**
|
|
199
|
-
* Update SubType
|
|
200
|
-
*
|
|
201
|
-
* @category Types & SubTypes
|
|
202
|
-
* @param {number} subTypeId - The SubTypeId
|
|
203
|
-
* @param {Object} options - The case Object ID
|
|
204
|
-
* @return {Object} Returns Promise that represents an object describing the updated SubTypeItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=SubTypeItem
|
|
205
|
-
*/
|
|
206
|
-
CaseAdmin.prototype.updateSubtype = function (subTypeId, options) {
|
|
207
|
-
var _this = this;
|
|
208
|
-
return new Promise(function (resolve, reject) {
|
|
209
|
-
var data_init = {
|
|
210
|
-
SubTypeId: subTypeId
|
|
211
|
-
};
|
|
212
|
-
var data = _.merge(data_init, options);
|
|
213
|
-
_this.cw.runRequest('Pll/SubType/Update', data).then(function (r) {
|
|
214
|
-
resolve(r.Value);
|
|
215
|
-
}).catch(function (e) {
|
|
216
|
-
reject(e);
|
|
217
|
-
});
|
|
218
|
-
});
|
|
219
|
-
};
|
|
220
|
-
/**
|
|
221
|
-
* Get SubTypes
|
|
222
|
-
*
|
|
223
|
-
* @category Types & SubTypes
|
|
224
|
-
* @return {Object} Returns Promise that represents a collection of SubTypeItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=SubTypeItem
|
|
225
|
-
*/
|
|
226
|
-
CaseAdmin.prototype.getSubtypes = function () {
|
|
227
|
-
var _this = this;
|
|
228
|
-
return new Promise(function (resolve, reject) {
|
|
229
|
-
var data = {};
|
|
230
|
-
_this.cw.runRequest('Pll/SubType/GetList', data).then(function (r) {
|
|
231
|
-
resolve(r.Value);
|
|
232
|
-
}).catch(function (e) {
|
|
233
|
-
reject(e);
|
|
234
|
-
});
|
|
235
|
-
});
|
|
236
|
-
};
|
|
237
|
-
/**
|
|
238
|
-
* Get all Fees
|
|
239
|
-
*
|
|
240
|
-
* @category Fees
|
|
241
|
-
* @return {Object} Returns Promise that represents an object describing the added DepartmentItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=DepartmentItem
|
|
242
|
-
*/
|
|
243
|
-
CaseAdmin.prototype.getFees = function () {
|
|
244
|
-
var _this = this;
|
|
245
|
-
return new Promise(function (resolve, reject) {
|
|
246
|
-
var data = {};
|
|
247
|
-
_this.cw.runRequest('Pll/FeeSetup/All', data).then(function (r) {
|
|
248
|
-
resolve(r.Value);
|
|
249
|
-
}).catch(function (e) {
|
|
250
|
-
reject(e);
|
|
251
|
-
});
|
|
252
|
-
});
|
|
253
|
-
};
|
|
254
|
-
/**
|
|
255
|
-
* Search for Fees. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
|
|
256
|
-
*
|
|
257
|
-
* @param {Object} filters - The parameter(s) to search by (AccountCode, FeeCode, FeeDesc, FeeSetupId, FeeTypeId).
|
|
258
|
-
* @return {Object} Returns Promise that represents an Array of FeeSetupIDs
|
|
259
|
-
*/
|
|
260
|
-
CaseAdmin.prototype.searchFees = function (filters) {
|
|
261
|
-
var _this = this;
|
|
262
|
-
return new Promise(function (resolve, reject) {
|
|
263
|
-
if (_.intersectionBy(_.keysIn(filters), ['AccountCode', 'FeeCode', 'FeeDesc', 'FeeSetupId', 'FeeTypeId']).length == 0) {
|
|
264
|
-
reject(new error_1.CWError(4, 'At least one of the attributes (AccountCode, FeeCode, FeeDesc, FeeSetupId, FeeTypeId) must be defined.'));
|
|
265
|
-
}
|
|
266
|
-
var data = filters;
|
|
267
|
-
_this.cw.runRequest('Pll/FeeSetup/Search', data).then(function (r) {
|
|
268
|
-
resolve(r.Value);
|
|
269
|
-
}).catch(function (e) {
|
|
270
|
-
reject(e);
|
|
271
|
-
});
|
|
272
|
-
});
|
|
273
|
-
};
|
|
274
|
-
/**
|
|
275
|
-
* Get all Expirations
|
|
276
|
-
*
|
|
277
|
-
* @category Expirations
|
|
278
|
-
* @return {Object} Returns Promise that represents a collection of ExpirationTypeItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=ExpirationTypeItem
|
|
279
|
-
*/
|
|
280
|
-
CaseAdmin.prototype.getExpirations = function () {
|
|
281
|
-
var _this = this;
|
|
282
|
-
return new Promise(function (resolve, reject) {
|
|
283
|
-
var data = {};
|
|
284
|
-
_this.cw.runRequest('Pll/ExpirationType/GetList', data).then(function (r) {
|
|
285
|
-
resolve(r.Value);
|
|
286
|
-
}).catch(function (e) {
|
|
287
|
-
reject(e);
|
|
288
|
-
});
|
|
289
|
-
});
|
|
290
|
-
};
|
|
291
|
-
/**
|
|
292
|
-
* Add an Expiration type
|
|
293
|
-
*
|
|
294
|
-
* @category Expirations
|
|
295
|
-
* @param {Object} options - Must specify OrgId and ExpirationDescType attributes. See: /{subdirectory}/apidocs/#/service-info/Pll/ExpirationType
|
|
296
|
-
* @return {Object} Returns Promise that represents an object describing the newly-added ExpirationTypeItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=ExpirationTypeItem
|
|
297
|
-
*/
|
|
298
|
-
CaseAdmin.prototype.addExpiration = function (options) {
|
|
299
|
-
var _this = this;
|
|
300
|
-
return new Promise(function (resolve, reject) {
|
|
301
|
-
if (!_.has(options, 'OrgId') || !_.has(options, 'ExpirationTypeDesc')) {
|
|
302
|
-
reject(new error_1.CWError(5, 'OrgId and ExpirationTypeDesc must both be defined.'));
|
|
303
|
-
}
|
|
304
|
-
var data = options;
|
|
305
|
-
_this.cw.runRequest('Pll/ExpirationType/Add', data).then(function (r) {
|
|
306
|
-
resolve(r.Value);
|
|
307
|
-
}).catch(function (e) {
|
|
308
|
-
reject(e);
|
|
309
|
-
});
|
|
310
|
-
});
|
|
311
|
-
};
|
|
312
|
-
/**
|
|
313
|
-
* Get all Deposits
|
|
314
|
-
*
|
|
315
|
-
* @category Deposits
|
|
316
|
-
* @return {Object} Returns Promise that represents a collection of DepositItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=DepositItemBase
|
|
317
|
-
*/
|
|
318
|
-
CaseAdmin.prototype.getDeposits = function () {
|
|
319
|
-
var _this = this;
|
|
320
|
-
return new Promise(function (resolve, reject) {
|
|
321
|
-
var data = {};
|
|
322
|
-
_this.cw.runRequest('Pll/Deposit/All', data).then(function (r) {
|
|
323
|
-
resolve(r.Value);
|
|
324
|
-
}).catch(function (e) {
|
|
325
|
-
reject(e);
|
|
326
|
-
});
|
|
327
|
-
});
|
|
328
|
-
};
|
|
329
|
-
/**
|
|
330
|
-
* Search Deposits. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
|
|
331
|
-
*
|
|
332
|
-
* @param {Object} filters - The parameter(s) to search by (AccountCode, DepositCode, DepositDesc, DepositId, DepositTypeId).
|
|
333
|
-
* @return {Object} Returns Promise that represents an Array of FeeSetupIDs
|
|
334
|
-
*/
|
|
335
|
-
CaseAdmin.prototype.searchDeposits = function (filters) {
|
|
336
|
-
var _this = this;
|
|
337
|
-
return new Promise(function (resolve, reject) {
|
|
338
|
-
if (_.intersectionBy(_.keysIn(filters), ['AccountCode', 'DepositCode', 'DepositDesc', 'DepositId', 'DepositTypeId']).length == 0) {
|
|
339
|
-
reject(new error_1.CWError(4, 'At least one of the attributes (AccountCode, DepositCode, DepositDesc, DepositId, DepositTypeId) must be defined.'));
|
|
340
|
-
}
|
|
341
|
-
var data = filters;
|
|
342
|
-
_this.cw.runRequest('Pll/Deposit/Search', data).then(function (r) {
|
|
343
|
-
resolve(r.Value);
|
|
344
|
-
}).catch(function (e) {
|
|
345
|
-
reject(e);
|
|
346
|
-
});
|
|
347
|
-
});
|
|
348
|
-
};
|
|
349
|
-
/**
|
|
350
|
-
* Get all Disciplines
|
|
351
|
-
*
|
|
352
|
-
* @category Disciplines
|
|
353
|
-
* @return {Object} Returns Promise that represents a collection of DisciplineItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=DisciplineItem
|
|
354
|
-
*/
|
|
355
|
-
CaseAdmin.prototype.getDisciplines = function () {
|
|
356
|
-
var _this = this;
|
|
357
|
-
return new Promise(function (resolve, reject) {
|
|
358
|
-
var data = {};
|
|
359
|
-
_this.cw.runRequest('Pll/Discipline/All', data).then(function (r) {
|
|
360
|
-
resolve(r.Value);
|
|
361
|
-
}).catch(function (e) {
|
|
362
|
-
reject(e);
|
|
363
|
-
});
|
|
364
|
-
});
|
|
365
|
-
};
|
|
366
|
-
/**
|
|
367
|
-
* Add Department
|
|
368
|
-
*
|
|
369
|
-
* @category Departments & Divisions
|
|
370
|
-
* @param {string} departmentCode - The SubTypeId
|
|
371
|
-
* @param {string} departmentName - The SubTypeId
|
|
372
|
-
* @param {Object} options - Other SubType options.
|
|
373
|
-
* @return {Object} Returns Promise that represents an object describing the added DepartmentItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=DepartmentItem
|
|
374
|
-
*/
|
|
375
|
-
CaseAdmin.prototype.addDepartment = function (departmentCode, departmentName, options) {
|
|
376
|
-
var _this = this;
|
|
377
|
-
return new Promise(function (resolve, reject) {
|
|
378
|
-
var data_init = {
|
|
379
|
-
DepartmentCode: departmentCode,
|
|
380
|
-
DepartmentName: departmentName
|
|
381
|
-
};
|
|
382
|
-
var data = _.merge(data_init, options);
|
|
383
|
-
_this.cw.runRequest('Pll/Department/Add', data).then(function (r) {
|
|
384
|
-
resolve(r.Value);
|
|
385
|
-
}).catch(function (e) {
|
|
386
|
-
reject(e);
|
|
387
|
-
});
|
|
388
|
-
});
|
|
389
|
-
};
|
|
390
|
-
/**
|
|
391
|
-
* Get Departments
|
|
392
|
-
*
|
|
393
|
-
* @category Departments & Divisions
|
|
394
|
-
* @return {Object} Returns Promise that represents a collection of SubTypeItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=DepartmentItem
|
|
395
|
-
*/
|
|
396
|
-
CaseAdmin.prototype.getDepartments = function () {
|
|
397
|
-
var _this = this;
|
|
398
|
-
return new Promise(function (resolve, reject) {
|
|
399
|
-
var data = {};
|
|
400
|
-
_this.cw.runRequest('Pll/Department/GetList', data).then(function (r) {
|
|
401
|
-
resolve(r.Value);
|
|
402
|
-
}).catch(function (e) {
|
|
403
|
-
reject(e);
|
|
404
|
-
});
|
|
405
|
-
});
|
|
406
|
-
};
|
|
407
|
-
/**
|
|
408
|
-
* Add Division
|
|
409
|
-
*
|
|
410
|
-
* @category Departments & Divisions
|
|
411
|
-
* @return {Object} Returns Promise that represents an object describing the newly-added DivisionItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=DivisionItem
|
|
412
|
-
*/
|
|
413
|
-
CaseAdmin.prototype.addDivision = function (departmentId, divisionName, options) {
|
|
414
|
-
var _this = this;
|
|
415
|
-
return new Promise(function (resolve, reject) {
|
|
416
|
-
var data_init = {
|
|
417
|
-
DepartmentId: departmentId,
|
|
418
|
-
DivisionName: divisionName
|
|
419
|
-
};
|
|
420
|
-
var data = _.merge(data_init, options);
|
|
421
|
-
_this.cw.runRequest('Pll/Division/Add', data).then(function (r) {
|
|
422
|
-
resolve(r.Value);
|
|
423
|
-
}).catch(function (e) {
|
|
424
|
-
reject(e);
|
|
425
|
-
});
|
|
426
|
-
});
|
|
427
|
-
};
|
|
428
|
-
/**
|
|
429
|
-
* Get all Divisions
|
|
430
|
-
*
|
|
431
|
-
* @category Departments & Divisions
|
|
432
|
-
* @return {Object} Returns Promise that represents a collection of DivisionItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=DivisionItem
|
|
433
|
-
*/
|
|
434
|
-
CaseAdmin.prototype.getDivisions = function () {
|
|
435
|
-
var _this = this;
|
|
436
|
-
return new Promise(function (resolve, reject) {
|
|
437
|
-
var data = {};
|
|
438
|
-
_this.cw.runRequest('Pll/Division/GetList', data).then(function (r) {
|
|
439
|
-
resolve(r.Value);
|
|
440
|
-
}).catch(function (e) {
|
|
441
|
-
reject(e);
|
|
442
|
-
});
|
|
443
|
-
});
|
|
444
|
-
};
|
|
445
|
-
/**
|
|
446
|
-
* Add Inspection Time Block
|
|
447
|
-
*
|
|
448
|
-
* @category Inspections
|
|
449
|
-
* @param {string} labelText - Label for the time block
|
|
450
|
-
* @param {string} startTime - Start time in 24 hour format (HH:mm)
|
|
451
|
-
* @param {string} endTime - End time in 24 hour format (HH:mm)
|
|
452
|
-
* @param {Object} inspTimeBlocksDetails - See: /{subdirectory}/apidocs/#/data-type-info;dataType=InspTimeBlocksDetailItem
|
|
453
|
-
* @return {Object} Returns Promise that represents an object describing the newly-added InspectionTimeBlocksItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=InspectionTimeBlocksItem
|
|
454
|
-
*/
|
|
455
|
-
CaseAdmin.prototype.addInspectionTimeBlock = function (labelText, startTime, endTime, inspTimeBlocksDetails) {
|
|
456
|
-
var _this = this;
|
|
457
|
-
return new Promise(function (resolve, reject) {
|
|
458
|
-
var data = {
|
|
459
|
-
LabelText: labelText,
|
|
460
|
-
StartTime: startTime,
|
|
461
|
-
EndTime: endTime
|
|
462
|
-
};
|
|
463
|
-
if (typeof (inspTimeBlocksDetails) != 'undefined') {
|
|
464
|
-
_.set(data, 'InspTimeBlocksDetails', inspTimeBlocksDetails);
|
|
465
|
-
}
|
|
466
|
-
_this.cw.runRequest('Pll/InspectionTimeBlock/Add', data).then(function (r) {
|
|
467
|
-
resolve(r.Value);
|
|
468
|
-
}).catch(function (e) {
|
|
469
|
-
reject(e);
|
|
470
|
-
});
|
|
471
|
-
});
|
|
472
|
-
};
|
|
473
|
-
/**
|
|
474
|
-
* Get all Inspection Time Blocks
|
|
475
|
-
*
|
|
476
|
-
* @category Inspections
|
|
477
|
-
* @return {Object} Returns Promise that represents a collection of InspectionTimeBlocksItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=InspectionTimeBlocksItem
|
|
478
|
-
*/
|
|
479
|
-
CaseAdmin.prototype.getInspectionTimeBlocks = function () {
|
|
480
|
-
var _this = this;
|
|
481
|
-
return new Promise(function (resolve, reject) {
|
|
482
|
-
var data = {};
|
|
483
|
-
_this.cw.runRequest('Pll/InspectionTimeBlock/GetList', data).then(function (r) {
|
|
484
|
-
resolve(r.Value);
|
|
485
|
-
}).catch(function (e) {
|
|
486
|
-
reject(e);
|
|
487
|
-
});
|
|
488
|
-
});
|
|
489
|
-
};
|
|
490
|
-
/**
|
|
491
|
-
* Get all NotificationCases
|
|
492
|
-
*
|
|
493
|
-
* @category Notifications
|
|
494
|
-
* @return {Object} Returns Promise that represents a collection of NotificationCaseItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=NotificationCaseItem
|
|
495
|
-
*/
|
|
496
|
-
CaseAdmin.prototype.getNotificationCases = function () {
|
|
497
|
-
var _this = this;
|
|
498
|
-
return new Promise(function (resolve, reject) {
|
|
499
|
-
var data = {};
|
|
500
|
-
_this.cw.runRequest('Pll/NotificationCase/GetNotificationCaseList', data).then(function (r) {
|
|
501
|
-
resolve(r.Value);
|
|
502
|
-
}).catch(function (e) {
|
|
503
|
-
reject(e);
|
|
504
|
-
});
|
|
505
|
-
});
|
|
506
|
-
};
|
|
507
|
-
/**
|
|
508
|
-
* Get all Notification Types
|
|
509
|
-
*
|
|
510
|
-
* @category Notifications
|
|
511
|
-
* @return {Object} Returns Promise that represents a collection of NotificationCaseItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=NotificationTypeItem
|
|
512
|
-
*/
|
|
513
|
-
CaseAdmin.prototype.getNotificationTypes = function () {
|
|
514
|
-
var _this = this;
|
|
515
|
-
return new Promise(function (resolve, reject) {
|
|
516
|
-
var data = {};
|
|
517
|
-
_this.cw.runRequest('Pll/NotificationType/GetNotificationTypeList', data).then(function (r) {
|
|
518
|
-
resolve(r.Value);
|
|
519
|
-
}).catch(function (e) {
|
|
520
|
-
reject(e);
|
|
521
|
-
});
|
|
522
|
-
});
|
|
523
|
-
};
|
|
524
|
-
/**
|
|
525
|
-
* Add Numbering Group
|
|
526
|
-
*
|
|
527
|
-
* @category NumberingGroups
|
|
528
|
-
* @param {number} options - attributes or update
|
|
529
|
-
* @return {Object} Returns Promise that represents an object describing the newly-added NumberingGroupItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=NumberingGroupItem
|
|
530
|
-
*/
|
|
531
|
-
CaseAdmin.prototype.addNumberingGroup = function (options) {
|
|
532
|
-
var _this = this;
|
|
533
|
-
return new Promise(function (resolve, reject) {
|
|
534
|
-
var data = options;
|
|
535
|
-
_this.cw.runRequest('Pll/NumberingGroup/Add', data).then(function (r) {
|
|
536
|
-
resolve(r.Value);
|
|
537
|
-
}).catch(function (e) {
|
|
538
|
-
reject(e);
|
|
539
|
-
});
|
|
540
|
-
});
|
|
541
|
-
};
|
|
542
|
-
/**
|
|
543
|
-
* Update Numbering Group
|
|
544
|
-
*
|
|
545
|
-
* @category NumberingGroups
|
|
546
|
-
* @param {number} numberingGroupId - ID of NumberGroup to update
|
|
547
|
-
* @param {number} options - updates attributes
|
|
548
|
-
* @return {Object} Returns Promise that represents an object describing the newly-added HolidaysItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=NumberingGroupItem
|
|
549
|
-
*/
|
|
550
|
-
CaseAdmin.prototype.updateNumberingGroup = function (numberingGroupId, options) {
|
|
551
|
-
var _this = this;
|
|
552
|
-
return new Promise(function (resolve, reject) {
|
|
553
|
-
var data_init = {
|
|
554
|
-
NumberingGroupId: numberingGroupId
|
|
555
|
-
};
|
|
556
|
-
var data = _.merge(data_init, options);
|
|
557
|
-
_this.cw.runRequest('Pll/NumberingGroup/Update', data).then(function (r) {
|
|
558
|
-
resolve(r.Value);
|
|
559
|
-
}).catch(function (e) {
|
|
560
|
-
reject(e);
|
|
561
|
-
});
|
|
562
|
-
});
|
|
563
|
-
};
|
|
564
|
-
/**
|
|
565
|
-
* Get all Numbering Groups
|
|
566
|
-
*
|
|
567
|
-
* @category NumberingGroups
|
|
568
|
-
* @return {Object} Returns Promise that represents a collection of NumberingGroupItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=NumberingGroupItem
|
|
569
|
-
*/
|
|
570
|
-
CaseAdmin.prototype.getNumberingGroups = function () {
|
|
571
|
-
var _this = this;
|
|
572
|
-
return new Promise(function (resolve, reject) {
|
|
573
|
-
var data = {};
|
|
574
|
-
_this.cw.runRequest('Pll/NumberingGroup/GetList', data).then(function (r) {
|
|
575
|
-
resolve(r.Value);
|
|
576
|
-
}).catch(function (e) {
|
|
577
|
-
reject(e);
|
|
578
|
-
});
|
|
579
|
-
});
|
|
580
|
-
};
|
|
581
|
-
/**
|
|
582
|
-
* Add Person
|
|
583
|
-
*
|
|
584
|
-
* @category People
|
|
585
|
-
* @param {string} name - Name of person
|
|
586
|
-
* @param {Object} options - attributes for new person
|
|
587
|
-
* @return {Object} Returns Promise that represents an object describing the newly-added NumberingGroupItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=NumberingGroupItem
|
|
588
|
-
*/
|
|
589
|
-
CaseAdmin.prototype.addPerson = function (name, options) {
|
|
590
|
-
var _this = this;
|
|
591
|
-
return new Promise(function (resolve, reject) {
|
|
592
|
-
var data_init = {
|
|
593
|
-
Name: name
|
|
594
|
-
};
|
|
595
|
-
var data = _.merge(options, data_init);
|
|
596
|
-
_this.cw.runRequest('Pll/People/Add', data).then(function (r) {
|
|
597
|
-
resolve(r.Value);
|
|
598
|
-
}).catch(function (e) {
|
|
599
|
-
reject(e);
|
|
600
|
-
});
|
|
601
|
-
});
|
|
602
|
-
};
|
|
603
|
-
/**
|
|
604
|
-
* Get all People
|
|
605
|
-
*
|
|
606
|
-
* @category People
|
|
607
|
-
* @return {Object} Returns Promise that represents a collection of PeopleItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=PeopleItem
|
|
608
|
-
*/
|
|
609
|
-
CaseAdmin.prototype.getPeople = function () {
|
|
610
|
-
var _this = this;
|
|
611
|
-
return new Promise(function (resolve, reject) {
|
|
612
|
-
var data = {};
|
|
613
|
-
_this.cw.runRequest('Pll/People/GetList', data).then(function (r) {
|
|
614
|
-
resolve(r.Value);
|
|
615
|
-
}).catch(function (e) {
|
|
616
|
-
reject(e);
|
|
617
|
-
});
|
|
618
|
-
});
|
|
619
|
-
};
|
|
620
|
-
/**
|
|
621
|
-
* Add People Role
|
|
622
|
-
*
|
|
623
|
-
* @category People
|
|
624
|
-
* @param {string} name - Name of person
|
|
625
|
-
* @param {Object} options - attributes for new person. See: /{subdirectory}/apidocs/#/service-info/Pll/PeopleRole
|
|
626
|
-
* @return {Object} Returns Promise that represents an object describing the newly-added PeopleRoleItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=PeopleRoleItem
|
|
627
|
-
*/
|
|
628
|
-
CaseAdmin.prototype.addPeopleRole = function (roleCode, options) {
|
|
629
|
-
var _this = this;
|
|
630
|
-
return new Promise(function (resolve, reject) {
|
|
631
|
-
var data_init = {
|
|
632
|
-
RoleCode: roleCode
|
|
633
|
-
};
|
|
634
|
-
var data = _.merge(options, data_init);
|
|
635
|
-
_this.cw.runRequest('Pll/People/Add', data).then(function (r) {
|
|
636
|
-
resolve(r.Value);
|
|
637
|
-
}).catch(function (e) {
|
|
638
|
-
reject(e);
|
|
639
|
-
});
|
|
640
|
-
});
|
|
641
|
-
};
|
|
642
|
-
/**
|
|
643
|
-
* Get all PeopleRoles
|
|
644
|
-
*
|
|
645
|
-
* @category People
|
|
646
|
-
* @return {Object} Returns Promise that represents a collection of PeopleRoleItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=PeopleRoleItem
|
|
647
|
-
*/
|
|
648
|
-
CaseAdmin.prototype.getPeopleRoles = function () {
|
|
649
|
-
var _this = this;
|
|
650
|
-
return new Promise(function (resolve, reject) {
|
|
651
|
-
var data = {};
|
|
652
|
-
_this.cw.runRequest('Pll/PeopleRole/GetList', data).then(function (r) {
|
|
653
|
-
resolve(r.Value);
|
|
654
|
-
}).catch(function (e) {
|
|
655
|
-
reject(e);
|
|
656
|
-
});
|
|
657
|
-
});
|
|
658
|
-
};
|
|
659
|
-
/**
|
|
660
|
-
* Add TaskResultDetail
|
|
661
|
-
*
|
|
662
|
-
* @category TaskResults
|
|
663
|
-
* @param {Object} options - attributes for new TaskResultDetail. See: /{subdirectory}/apidocs/#/service-info/Pll/TaskResultDetail
|
|
664
|
-
* @return {Object} Returns Promise that represents an object describing the newly-added TaskResultDetailItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=TaskResultDetailItem
|
|
665
|
-
*/
|
|
666
|
-
CaseAdmin.prototype.addTaskResultDetail = function (options) {
|
|
667
|
-
var _this = this;
|
|
668
|
-
return new Promise(function (resolve, reject) {
|
|
669
|
-
var data = options;
|
|
670
|
-
_this.cw.runRequest('Pll/TaskResultDetail/Add', data).then(function (r) {
|
|
671
|
-
resolve(r.Value);
|
|
672
|
-
}).catch(function (e) {
|
|
673
|
-
reject(e);
|
|
674
|
-
});
|
|
675
|
-
});
|
|
676
|
-
};
|
|
677
|
-
/**
|
|
678
|
-
* Update TaskResultDetail
|
|
679
|
-
*
|
|
680
|
-
* @category TaskResults
|
|
681
|
-
* @param {string} resultDetailId - Result Detail ID
|
|
682
|
-
* @param {Object} options - attributes for new person. See: /{subdirectory}/apidocs/#/service-info/Pll/TaskResultDetail
|
|
683
|
-
* @return {Object} Returns Promise that represents an object describing the newly-added TaskResultDetailItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=TaskResultDetailItem
|
|
684
|
-
*/
|
|
685
|
-
CaseAdmin.prototype.updateTaskResultDetail = function (resultDetailId, options) {
|
|
686
|
-
var _this = this;
|
|
687
|
-
return new Promise(function (resolve, reject) {
|
|
688
|
-
var data_init = {
|
|
689
|
-
ResultDetailId: resultDetailId
|
|
690
|
-
};
|
|
691
|
-
var data = _.merge(options, data_init);
|
|
692
|
-
_this.cw.runRequest('Pll/TaskResultDetail/Add', data).then(function (r) {
|
|
693
|
-
resolve(r.Value);
|
|
694
|
-
}).catch(function (e) {
|
|
695
|
-
reject(e);
|
|
696
|
-
});
|
|
697
|
-
});
|
|
698
|
-
};
|
|
699
|
-
/**
|
|
700
|
-
* Get all TaskResultDetails
|
|
701
|
-
*
|
|
702
|
-
* @category TaskResults
|
|
703
|
-
* @return {Object} Returns Promise that represents a collection of PeopleRoleItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=PeopleRoleItem
|
|
704
|
-
*/
|
|
705
|
-
CaseAdmin.prototype.getTaskResultDetails = function () {
|
|
706
|
-
var _this = this;
|
|
707
|
-
return new Promise(function (resolve, reject) {
|
|
708
|
-
var data = {};
|
|
709
|
-
_this.cw.runRequest('Pll/TaskResultDetail/GetList', data).then(function (r) {
|
|
710
|
-
resolve(r.Value);
|
|
711
|
-
}).catch(function (e) {
|
|
712
|
-
reject(e);
|
|
713
|
-
});
|
|
714
|
-
});
|
|
715
|
-
};
|
|
716
|
-
/**
|
|
717
|
-
* Add TaskResultFeeInsert
|
|
718
|
-
*
|
|
719
|
-
* @category TaskResults
|
|
720
|
-
* @param {Object} options - attributes for new TaskResultFeeInsert. See: /{subdirectory}/apidocs/#/service-info/Pll/TaskResultFeeInsert
|
|
721
|
-
* @return {Object} Returns Promise that represents an object describing the newly-added TaskResultFeeInsertItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=TaskResultFeeInsertItem
|
|
722
|
-
*/
|
|
723
|
-
CaseAdmin.prototype.addTaskResultFeeInsert = function (options) {
|
|
724
|
-
var _this = this;
|
|
725
|
-
return new Promise(function (resolve, reject) {
|
|
726
|
-
var data = options;
|
|
727
|
-
_this.cw.runRequest('Pll/TaskResultFeeInsert/Add', data).then(function (r) {
|
|
728
|
-
resolve(r.Value);
|
|
729
|
-
}).catch(function (e) {
|
|
730
|
-
reject(e);
|
|
731
|
-
});
|
|
732
|
-
});
|
|
733
|
-
};
|
|
734
|
-
/**
|
|
735
|
-
* Delete TaskResultFeeInsert
|
|
736
|
-
*
|
|
737
|
-
* @category TaskResults
|
|
738
|
-
* @param {number} taskResultFeeInsertId - ID for TaskResultFeeInsert to be deleted.
|
|
739
|
-
* @return {Object} Returns Promise that represents the ID Number of the deleted TaskResultFeeInsertItem.
|
|
740
|
-
*/
|
|
741
|
-
CaseAdmin.prototype.deleteTaskResultFeeInsert = function (taskResultFeeInsertId) {
|
|
742
|
-
var _this = this;
|
|
743
|
-
return new Promise(function (resolve, reject) {
|
|
744
|
-
var data = {
|
|
745
|
-
TaskResultFeeInsertId: taskResultFeeInsertId
|
|
746
|
-
};
|
|
747
|
-
_this.cw.runRequest('Pll/TaskResultFeeInsert/Delete', data).then(function (r) {
|
|
748
|
-
resolve(r.Value);
|
|
749
|
-
}).catch(function (e) {
|
|
750
|
-
reject(e);
|
|
751
|
-
});
|
|
752
|
-
});
|
|
753
|
-
};
|
|
754
|
-
/**
|
|
755
|
-
* Delete TaskResultFeeInsert(s) by Task ID
|
|
756
|
-
*
|
|
757
|
-
* @category TaskResults
|
|
758
|
-
* @param {number} taskId - ID for Task parent of TaskResultFeeInsert(s) to be deleted.
|
|
759
|
-
* @return {Object} Returns Promise that represents the ID Number of the Task parent of the deleted TaskResultFeeInsertItem(s).
|
|
760
|
-
*/
|
|
761
|
-
CaseAdmin.prototype.deleteTaskResultFeeInsertByTaskId = function (taskId) {
|
|
762
|
-
var _this = this;
|
|
763
|
-
return new Promise(function (resolve, reject) {
|
|
764
|
-
var data = {
|
|
765
|
-
TaskId: taskId
|
|
766
|
-
};
|
|
767
|
-
_this.cw.runRequest('Pll/TaskResultFeeInsert/DeleteByTaskId', data).then(function (r) {
|
|
768
|
-
resolve(r.Value);
|
|
769
|
-
}).catch(function (e) {
|
|
770
|
-
reject(e);
|
|
771
|
-
});
|
|
772
|
-
});
|
|
773
|
-
};
|
|
774
|
-
/**
|
|
775
|
-
* Update TaskResultFeeInsert
|
|
776
|
-
*
|
|
777
|
-
* @category TaskResults
|
|
778
|
-
* @param {number} taskResultFeeInsertId - ID for TaskResultFeeInsert to be updated.
|
|
779
|
-
* @param {number} taskId - Updated TaskID
|
|
780
|
-
* @param {number} taskResultId - Updated TaskResultId
|
|
781
|
-
* @param {number} [feeSetupId] - Fee setup ID update for TaskResultFeeInsert
|
|
782
|
-
* @return {Object} Returns Promise that represents the ID Number of the updated TaskResultFeeInsertItem.
|
|
783
|
-
*/
|
|
784
|
-
CaseAdmin.prototype.updateTaskResultFeeInsert = function (taskResultFeeInsertId, taskId, taskResultId, feeSetupId) {
|
|
785
|
-
var _this = this;
|
|
786
|
-
return new Promise(function (resolve, reject) {
|
|
787
|
-
var data = {
|
|
788
|
-
TaskResultFeeInsertId: taskResultFeeInsertId,
|
|
789
|
-
TaskId: taskId,
|
|
790
|
-
TaskResultId: taskResultId
|
|
791
|
-
};
|
|
792
|
-
if (typeof (feeSetupId) != 'undefined') {
|
|
793
|
-
_.set(data, 'FeeSetupId', feeSetupId);
|
|
794
|
-
}
|
|
795
|
-
_this.cw.runRequest('Pll/TaskResultFeeInsert/Update', data).then(function (r) {
|
|
796
|
-
resolve(r.Value);
|
|
797
|
-
}).catch(function (e) {
|
|
798
|
-
reject(e);
|
|
799
|
-
});
|
|
800
|
-
});
|
|
801
|
-
};
|
|
802
|
-
/**
|
|
803
|
-
* Get all TaskResultFeeInsert
|
|
804
|
-
*
|
|
805
|
-
* @category TaskResults
|
|
806
|
-
* @return {Object} Returns Promise that represents a collection of TaskResultFeeInsertItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=TaskResultFeeInsertItem
|
|
807
|
-
*/
|
|
808
|
-
CaseAdmin.prototype.getTaskResultFeeInsert = function () {
|
|
809
|
-
var _this = this;
|
|
810
|
-
return new Promise(function (resolve, reject) {
|
|
811
|
-
var data = {};
|
|
812
|
-
_this.cw.runRequest('Pll/TaskResultFeeInsert/GetList', data).then(function (r) {
|
|
813
|
-
resolve(r.Value);
|
|
814
|
-
}).catch(function (e) {
|
|
815
|
-
reject(e);
|
|
816
|
-
});
|
|
817
|
-
});
|
|
818
|
-
};
|
|
819
|
-
return CaseAdmin;
|
|
820
|
-
}());
|
|
821
|
-
exports.CaseAdmin = CaseAdmin;
|