@ningboyz/types 1.0.60 → 1.0.61
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/index.ts +3 -1
- package/package.json +1 -1
- package/src/myoa/IMyoaCashResponse.ts +107 -0
- package/src/myoa/IMyoaMainResponse.ts +362 -0
- package/src/myoa/IMyoaPGDWResponse.ts +49 -0
- package/src/myoa/index.ts +3 -0
- package/src/yzcb/IYzcbBillResponse.ts +49 -0
- package/src/yzcb/IYzcbMainResponse.ts +189 -0
- package/src/yzcg/IYzcgBillResponse.ts +72 -0
- package/src/yzcg/IYzcgGshdResponse.ts +59 -0
- package/src/yzcg/IYzcgLockResponse.ts +41 -0
- package/src/yzcg/IYzcgMainResponse.ts +94 -0
- package/src/yzcq/IYzcqMainResponse.ts +120 -0
- package/src/yzcq/index.ts +3 -0
package/index.ts
CHANGED
|
@@ -33,6 +33,7 @@ import * as TTask from "./src/task";
|
|
|
33
33
|
import * as TGztb from "./src/gztb";
|
|
34
34
|
import * as TAntv from "./src/antv";
|
|
35
35
|
import * as TNoti from "./src/noti";
|
|
36
|
+
import * as TMyoa from "./src/myoa";
|
|
36
37
|
|
|
37
38
|
export {
|
|
38
39
|
Const,
|
|
@@ -72,5 +73,6 @@ export {
|
|
|
72
73
|
TYzht,
|
|
73
74
|
TZbhd,
|
|
74
75
|
TZfht,
|
|
75
|
-
TZfsq
|
|
76
|
+
TZfsq,
|
|
77
|
+
TMyoa
|
|
76
78
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export interface IMyoaCashResponse {
|
|
2
|
+
whoBuild: number;
|
|
3
|
+
userIndx: number;
|
|
4
|
+
cashIndx: number;
|
|
5
|
+
myoaMain: number;
|
|
6
|
+
dataStat: number;
|
|
7
|
+
dataHide: number;
|
|
8
|
+
dataOrdr: number;
|
|
9
|
+
dataFrom: number;
|
|
10
|
+
dataType: number;
|
|
11
|
+
dataDate: number;
|
|
12
|
+
dataTime: number;
|
|
13
|
+
createBy: string;
|
|
14
|
+
createAt: number;
|
|
15
|
+
updateBy: string;
|
|
16
|
+
updateAt: number;
|
|
17
|
+
deleteBy: string;
|
|
18
|
+
deleteAt: number;
|
|
19
|
+
cashBzxs: number; //#保证金形式(字典)
|
|
20
|
+
cashBzlx: number; //#保证金类型(字典)
|
|
21
|
+
cashBzbl: number; //#保证金比例
|
|
22
|
+
outMoney: number; //#保证金金额
|
|
23
|
+
cashYjdq: number; //#预计到期
|
|
24
|
+
cashNrtk: string; //#内容条款
|
|
25
|
+
cashMemo: string; //#备注信息
|
|
26
|
+
bzxsText: string;
|
|
27
|
+
bzlxText: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export class TMyoaCashResponse implements IMyoaCashResponse {
|
|
31
|
+
whoBuild: number = 0;
|
|
32
|
+
userIndx: number = 0;
|
|
33
|
+
cashIndx: number = 0;
|
|
34
|
+
myoaMain: number = 0;
|
|
35
|
+
dataStat: number = 0;
|
|
36
|
+
dataHide: number = 0;
|
|
37
|
+
dataOrdr: number = 0;
|
|
38
|
+
dataFrom: number = 0;
|
|
39
|
+
dataType: number = 0;
|
|
40
|
+
dataDate: number = 0;
|
|
41
|
+
dataTime: number = 0;
|
|
42
|
+
createBy: string = "";
|
|
43
|
+
createAt: number = 0;
|
|
44
|
+
updateBy: string = "";
|
|
45
|
+
updateAt: number = 0;
|
|
46
|
+
deleteBy: string = "";
|
|
47
|
+
deleteAt: number = 0;
|
|
48
|
+
cashBzxs: number = 0;
|
|
49
|
+
cashBzlx: number = 0;
|
|
50
|
+
cashBzbl: number = 0;
|
|
51
|
+
outMoney: number = 0;
|
|
52
|
+
cashYjdq: number = 0;
|
|
53
|
+
cashNrtk: string = "";
|
|
54
|
+
cashMemo: string = "";
|
|
55
|
+
bzxsText: string = "";
|
|
56
|
+
bzlxText: string = "";
|
|
57
|
+
|
|
58
|
+
static CopyIt(aData: TMyoaCashResponse): TMyoaCashResponse {
|
|
59
|
+
let result = new TMyoaCashResponse();
|
|
60
|
+
result.CopyIt(aData);
|
|
61
|
+
return result;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
static InitIt(aList: TMyoaCashResponse[]): TMyoaCashResponse[] {
|
|
65
|
+
let result: TMyoaCashResponse[] = [];
|
|
66
|
+
|
|
67
|
+
aList.forEach(function (Item) {
|
|
68
|
+
let aData: TMyoaCashResponse = new TMyoaCashResponse();
|
|
69
|
+
aData.CopyIt(Item);
|
|
70
|
+
result.push(aData);
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
return result;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
public CopyIt(aMyoaCashResponse: TMyoaCashResponse) {
|
|
77
|
+
// let keys = Object.getOwnPropertyNames(aMyoaCashResponse);
|
|
78
|
+
// keys.forEach(element => {
|
|
79
|
+
// this[element] = aMyoaCashResponse[element];
|
|
80
|
+
// });
|
|
81
|
+
|
|
82
|
+
this.whoBuild = aMyoaCashResponse.whoBuild;
|
|
83
|
+
this.userIndx = aMyoaCashResponse.userIndx;
|
|
84
|
+
this.cashIndx = aMyoaCashResponse.cashIndx;
|
|
85
|
+
this.myoaMain = aMyoaCashResponse.myoaMain;
|
|
86
|
+
this.dataStat = aMyoaCashResponse.dataStat;
|
|
87
|
+
this.dataHide = aMyoaCashResponse.dataHide;
|
|
88
|
+
this.dataOrdr = aMyoaCashResponse.dataOrdr;
|
|
89
|
+
this.dataFrom = aMyoaCashResponse.dataFrom;
|
|
90
|
+
this.dataType = aMyoaCashResponse.dataType;
|
|
91
|
+
this.dataDate = aMyoaCashResponse.dataDate;
|
|
92
|
+
this.dataTime = aMyoaCashResponse.dataTime;
|
|
93
|
+
this.createBy = aMyoaCashResponse.createBy;
|
|
94
|
+
this.createAt = aMyoaCashResponse.createAt;
|
|
95
|
+
this.updateBy = aMyoaCashResponse.updateBy;
|
|
96
|
+
this.updateAt = aMyoaCashResponse.updateAt;
|
|
97
|
+
this.deleteBy = aMyoaCashResponse.deleteBy;
|
|
98
|
+
this.deleteAt = aMyoaCashResponse.deleteAt;
|
|
99
|
+
this.cashBzxs = aMyoaCashResponse.cashBzxs;
|
|
100
|
+
this.cashBzlx = aMyoaCashResponse.cashBzlx;
|
|
101
|
+
this.cashBzbl = aMyoaCashResponse.cashBzbl;
|
|
102
|
+
this.outMoney = aMyoaCashResponse.outMoney;
|
|
103
|
+
this.cashYjdq = aMyoaCashResponse.cashYjdq;
|
|
104
|
+
this.cashNrtk = aMyoaCashResponse.cashNrtk;
|
|
105
|
+
this.cashMemo = aMyoaCashResponse.cashMemo;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
import * as Const from "../const";
|
|
2
|
+
import { IPathResponse } from "../core/IPathResponse";
|
|
3
|
+
import { IYzhtMainResponse } from "../yzht/IYzhtMainResponse";
|
|
4
|
+
import { ICardMainResponse } from "../card/ICardMainResponse";
|
|
5
|
+
import { IDeptResponse } from "../core/IDeptResponse";
|
|
6
|
+
import { IUserLiteResponse } from "../core/IUserLiteResponse";
|
|
7
|
+
import { IUserResponse } from "../core/IUserResponse";
|
|
8
|
+
import { TFlowDataResponse } from "../flow/IFlowDataResponse";
|
|
9
|
+
import { IYzcgMainResponse } from "../yzcg/IYzcgMainResponse";
|
|
10
|
+
import { IMyoaCashResponse } from "./IMyoaCashResponse";
|
|
11
|
+
import { IMyoaPGDWResponse } from "./IMyoaPGDWResponse";
|
|
12
|
+
import _ from "lodash";
|
|
13
|
+
|
|
14
|
+
export interface IMyoaMainResponse {
|
|
15
|
+
typeName: string;
|
|
16
|
+
whoBuild: number;
|
|
17
|
+
userIndx: number;
|
|
18
|
+
myoaIndx: number;
|
|
19
|
+
|
|
20
|
+
parentID: number;
|
|
21
|
+
hashCode: number;
|
|
22
|
+
dataLevl: number;
|
|
23
|
+
dataFrom: number;
|
|
24
|
+
kjndKJQJ: number;
|
|
25
|
+
dataStat: number;
|
|
26
|
+
dataOrdr: number;
|
|
27
|
+
dataDate: number;
|
|
28
|
+
dataTime: number;
|
|
29
|
+
dataHide: number;
|
|
30
|
+
dataGUID: string;
|
|
31
|
+
mastName: string;
|
|
32
|
+
mastGUID: string;
|
|
33
|
+
createBy: string;
|
|
34
|
+
createAt: number;
|
|
35
|
+
updateBy: string;
|
|
36
|
+
updateAt: number;
|
|
37
|
+
deleteBy: string;
|
|
38
|
+
deleteAt: number;
|
|
39
|
+
queuesBy: number;
|
|
40
|
+
entityID: string;
|
|
41
|
+
|
|
42
|
+
myoaCode: string;
|
|
43
|
+
myoaType: number;
|
|
44
|
+
myoaStat: number;
|
|
45
|
+
myoaDate: number;
|
|
46
|
+
unitMain: number;
|
|
47
|
+
unitNamf: string;
|
|
48
|
+
deptMain: number;
|
|
49
|
+
dictMain: number;
|
|
50
|
+
startOut: number; //#用车申请.出车时间 YYYYMMDDHHMM
|
|
51
|
+
endedOut: number; //#用车申请.结束时间 YYYYMMDDHHMM
|
|
52
|
+
totalOut: number;
|
|
53
|
+
canClose: number; //#用车申请.是否归还
|
|
54
|
+
closedBy: string; //#用车申请.归还用户
|
|
55
|
+
closedAt: number; //#用车申请.归还时间 YYYYMMDDHHMMSS
|
|
56
|
+
myoaUses: string; //#用车申请.用车事由
|
|
57
|
+
myoaMemo: string;
|
|
58
|
+
sourceND: number;
|
|
59
|
+
sourceDW: string;
|
|
60
|
+
flowText: string;
|
|
61
|
+
flowUndo: number;
|
|
62
|
+
|
|
63
|
+
outMoney: number;
|
|
64
|
+
yzcgCgxm: string;
|
|
65
|
+
yzcgCgfs: number;
|
|
66
|
+
yzcgCgmj: number;
|
|
67
|
+
yzcgCode: string;
|
|
68
|
+
yzcgMain: number;
|
|
69
|
+
dddwText: string;
|
|
70
|
+
dldwText: string;
|
|
71
|
+
yzcgZbkz: number; //招标控制价格
|
|
72
|
+
yzcgZbbh: string; //招标编号
|
|
73
|
+
editedBy: string; //编制人
|
|
74
|
+
|
|
75
|
+
yzhtHtbh: string;
|
|
76
|
+
yzhtQdrq: number;
|
|
77
|
+
yzhtYsrq: number;
|
|
78
|
+
yzhtCode: string;
|
|
79
|
+
yzhtMain: number;
|
|
80
|
+
autoType: number;
|
|
81
|
+
menuUUID: string;
|
|
82
|
+
coverURL: string;
|
|
83
|
+
touchURL: string;
|
|
84
|
+
flowMain: number;
|
|
85
|
+
flowNode: number;
|
|
86
|
+
|
|
87
|
+
cgfsText: string;
|
|
88
|
+
cgmjText: string;
|
|
89
|
+
sqbmText: string;
|
|
90
|
+
sqyhText: string; // 经办人
|
|
91
|
+
userName: string;
|
|
92
|
+
userMain: number;
|
|
93
|
+
|
|
94
|
+
authStat: number; //#取钥状态
|
|
95
|
+
autoCpbh: string; //#车牌号码
|
|
96
|
+
authDate: number; //#取钥时间.YYYYMMDDHHMMSS
|
|
97
|
+
|
|
98
|
+
wldyMain: number;
|
|
99
|
+
startTxt: string; //#用车申请.始发地
|
|
100
|
+
startLat: string; //#用车申请.始发地(定位)
|
|
101
|
+
endedTxt: string; //#用车申请.目的地
|
|
102
|
+
endedLat: string; //#用车申请.目的地(定位)
|
|
103
|
+
cardType: number; //#用车申请.车辆类型(字典)
|
|
104
|
+
rangeOut: number; //#用车申请.出行范围(字典)
|
|
105
|
+
mobileID: string; //#用车申请.用户短号
|
|
106
|
+
usesNbyh: number; //#用车申请.是否需求司机
|
|
107
|
+
nbyhText: string; //#用车申请.司机名称
|
|
108
|
+
userSize: number; //#用车申请.司乘人数
|
|
109
|
+
cardUses: number; //#用车申请.车辆用途
|
|
110
|
+
autoMode: number;
|
|
111
|
+
deptName: string;
|
|
112
|
+
lastMemo: string;
|
|
113
|
+
usesDzqz: number; //是否签章0:否,1:是
|
|
114
|
+
flowUser: string;
|
|
115
|
+
cardUnitText: string;
|
|
116
|
+
cardDeptText: string;
|
|
117
|
+
cardTypeText: string;
|
|
118
|
+
cardUsesText: string;
|
|
119
|
+
cardJldwText: string;
|
|
120
|
+
cardLaidText: string;
|
|
121
|
+
cardUserText: string;
|
|
122
|
+
autoTypeText: string;
|
|
123
|
+
rangeOutText: string;
|
|
124
|
+
autoModeText: string;
|
|
125
|
+
|
|
126
|
+
listLock: IMyoaMainResponse[];
|
|
127
|
+
listCard: ICardMainResponse[];
|
|
128
|
+
listPath: IPathResponse[];
|
|
129
|
+
listSQBM: IDeptResponse[];
|
|
130
|
+
listSQYH: IUserResponse[];
|
|
131
|
+
listNBYH: IUserResponse[];
|
|
132
|
+
|
|
133
|
+
//#合同签订
|
|
134
|
+
listYZHT: IYzhtMainResponse[];
|
|
135
|
+
listYZCG: IYzcgMainResponse[];
|
|
136
|
+
listCash: IMyoaCashResponse[]; //#保证金
|
|
137
|
+
listDDDW: IUserLiteResponse[];
|
|
138
|
+
listDLDW: IUserLiteResponse[];
|
|
139
|
+
listPGDW: IMyoaPGDWResponse[]; // 评审审批时的评审代表
|
|
140
|
+
|
|
141
|
+
//虚拟字段
|
|
142
|
+
detailId: number;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export class TMyoaMainResponse implements IMyoaMainResponse {
|
|
146
|
+
typeName: string = "TMyoaMainResponse";
|
|
147
|
+
whoBuild: number = 0;
|
|
148
|
+
userIndx: number = 0;
|
|
149
|
+
myoaIndx: number = 0;
|
|
150
|
+
|
|
151
|
+
parentID: number = 0;
|
|
152
|
+
hashCode: number = 0;
|
|
153
|
+
dataLevl: number = 0;
|
|
154
|
+
dataFrom: number = 0;
|
|
155
|
+
kjndKJQJ: number = 0;
|
|
156
|
+
dataStat: number = 0;
|
|
157
|
+
dataOrdr: number = 0;
|
|
158
|
+
dataDate: number = 0;
|
|
159
|
+
dataTime: number = 0;
|
|
160
|
+
dataHide: number = 0;
|
|
161
|
+
dataGUID: string = "";
|
|
162
|
+
mastName: string = "";
|
|
163
|
+
mastGUID: string = "";
|
|
164
|
+
createBy: string = "";
|
|
165
|
+
createAt: number = 0;
|
|
166
|
+
updateBy: string = "";
|
|
167
|
+
updateAt: number = 0;
|
|
168
|
+
deleteBy: string = "";
|
|
169
|
+
deleteAt: number = 0;
|
|
170
|
+
queuesBy: number = 0;
|
|
171
|
+
entityID: string = "";
|
|
172
|
+
myoaCode: string = "";
|
|
173
|
+
myoaType: number = 0;
|
|
174
|
+
myoaStat: number = 0;
|
|
175
|
+
myoaDate: number = 0;
|
|
176
|
+
menuUUID: string = "";
|
|
177
|
+
unitMain: number = 0;
|
|
178
|
+
unitNamf: string = "";
|
|
179
|
+
deptMain: number = 0;
|
|
180
|
+
dictMain: number = 0;
|
|
181
|
+
startOut: number = 0; //拟公告时间
|
|
182
|
+
endedOut: number = 0;
|
|
183
|
+
totalOut: number = 0;
|
|
184
|
+
canClose: number = 0;
|
|
185
|
+
closedBy: string = "";
|
|
186
|
+
closedAt: number = 0;
|
|
187
|
+
myoaUses: string = "";
|
|
188
|
+
myoaMemo: string = "";
|
|
189
|
+
sourceND: number = 0;
|
|
190
|
+
sourceDW: string = "";
|
|
191
|
+
flowText: string = "";
|
|
192
|
+
flowUndo: number = 0;
|
|
193
|
+
|
|
194
|
+
outMoney: number = 0; //预算资金
|
|
195
|
+
yzcgCgxm: string = ""; //采购项目名称
|
|
196
|
+
yzcgCgfs: number = 0; //采购方式
|
|
197
|
+
yzcgCgmj: number = 0; //拟公告媒介
|
|
198
|
+
yzcgCode: string = "";
|
|
199
|
+
yzcgMain: number = 0;
|
|
200
|
+
dddwText: string = "";
|
|
201
|
+
dldwText: string = "";
|
|
202
|
+
yzcgZbkz: number = 0;
|
|
203
|
+
yzcgZbbh: string = "";
|
|
204
|
+
editedBy: string = "";
|
|
205
|
+
|
|
206
|
+
yzhtHtbh: string = ""; //#合同编号
|
|
207
|
+
yzhtQdrq: number = 0; //#签订日期
|
|
208
|
+
yzhtYsrq: number = 0; //#验收日期
|
|
209
|
+
yzhtCode: string = ""; //#合同单号
|
|
210
|
+
yzhtMain: number = 0; //#合同标识
|
|
211
|
+
autoType: number = 0;
|
|
212
|
+
|
|
213
|
+
coverURL: string = "";
|
|
214
|
+
touchURL: string = "";
|
|
215
|
+
flowMain: number = 0;
|
|
216
|
+
flowNode: number = 0;
|
|
217
|
+
|
|
218
|
+
cgfsText: string = "";
|
|
219
|
+
cgmjText: string = "";
|
|
220
|
+
sqbmText: string = "";
|
|
221
|
+
sqyhText: string = "";
|
|
222
|
+
userName: string = "";
|
|
223
|
+
userMain: number = 0;
|
|
224
|
+
|
|
225
|
+
authStat: number = 0;
|
|
226
|
+
autoCpbh: string = "";
|
|
227
|
+
authDate: number = 0;
|
|
228
|
+
|
|
229
|
+
wldyMain: number = 0;
|
|
230
|
+
startTxt: string = "";
|
|
231
|
+
startLat: string = "";
|
|
232
|
+
endedTxt: string = "";
|
|
233
|
+
endedLat: string = "";
|
|
234
|
+
cardType: number = 0;
|
|
235
|
+
cardUses: number = 0;
|
|
236
|
+
rangeOut: number = 0;
|
|
237
|
+
mobileID: string = "";
|
|
238
|
+
usesNbyh: number = 0;
|
|
239
|
+
nbyhText: string = "";
|
|
240
|
+
userSize: number = 0;
|
|
241
|
+
autoMode: number = 0;
|
|
242
|
+
deptName: string = "";
|
|
243
|
+
lastMemo: string = "";
|
|
244
|
+
usesDzqz: number = 0;
|
|
245
|
+
flowUser: string = "";
|
|
246
|
+
|
|
247
|
+
cardUnitText: string = "";
|
|
248
|
+
cardDeptText: string = "";
|
|
249
|
+
cardTypeText: string = "";
|
|
250
|
+
cardUsesText: string = "";
|
|
251
|
+
cardJldwText: string = "";
|
|
252
|
+
cardLaidText: string = "";
|
|
253
|
+
cardUserText: string = "";
|
|
254
|
+
autoTypeText: string = "";
|
|
255
|
+
rangeOutText: string = "";
|
|
256
|
+
autoModeText: string = "";
|
|
257
|
+
|
|
258
|
+
listLock: IMyoaMainResponse[] = [];
|
|
259
|
+
listCard: ICardMainResponse[] = [];
|
|
260
|
+
listPath: IPathResponse[] = [];
|
|
261
|
+
listSQBM: IDeptResponse[] = [];
|
|
262
|
+
listSQYH: IUserResponse[] = [];
|
|
263
|
+
listNBYH: IUserResponse[] = [];
|
|
264
|
+
|
|
265
|
+
listYZHT: IYzhtMainResponse[] = [];
|
|
266
|
+
listYZCG: IYzcgMainResponse[] = [];
|
|
267
|
+
listCash: IMyoaCashResponse[] = [];
|
|
268
|
+
listDDDW: IUserLiteResponse[] = [];
|
|
269
|
+
listDLDW: IUserLiteResponse[] = [];
|
|
270
|
+
listPGDW: IMyoaPGDWResponse[] = []; // 评审审批时的评审代表
|
|
271
|
+
|
|
272
|
+
//虚拟字段
|
|
273
|
+
detailId: number = 0;
|
|
274
|
+
|
|
275
|
+
constructor(card: any = {}) {
|
|
276
|
+
if (card) {
|
|
277
|
+
_.merge(this, _.pick(card, Object.keys(this)));
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
static toFlowDatas(card: TMyoaMainResponse[]): TFlowDataResponse[] {
|
|
282
|
+
return card.map((u) => this.toFlowData(u));
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
//#进入流程
|
|
286
|
+
static toFlowData(myoa: TMyoaMainResponse): TFlowDataResponse {
|
|
287
|
+
let result = new TFlowDataResponse();
|
|
288
|
+
result.whoBuild = myoa.whoBuild;
|
|
289
|
+
result.userIndx = myoa.userIndx;
|
|
290
|
+
result.flowMain = myoa.flowMain;
|
|
291
|
+
result.flowNode = myoa.flowNode;
|
|
292
|
+
result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_HTQD_WAIT;
|
|
293
|
+
result.entityID = myoa.entityID;
|
|
294
|
+
result.billMain = myoa.myoaIndx;
|
|
295
|
+
result.billCode = myoa.myoaCode;
|
|
296
|
+
result.billMemo = myoa.myoaMemo;
|
|
297
|
+
result.createAt = myoa.createAt;
|
|
298
|
+
result.mastName = myoa.mastName;
|
|
299
|
+
result.createBy = myoa.createBy;
|
|
300
|
+
result.unitMain = myoa.unitMain;
|
|
301
|
+
result.menuUUID = myoa.menuUUID;
|
|
302
|
+
result.deptMain = myoa.deptMain;
|
|
303
|
+
result.flowStat = myoa.myoaStat;
|
|
304
|
+
return result;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
//#取车状态
|
|
308
|
+
static getAuthStat(myoa: TMyoaMainResponse): string {
|
|
309
|
+
let result: string = "";
|
|
310
|
+
|
|
311
|
+
if (myoa.myoaStat !== Const.Flow.CONST_FLOW_NODE_STAT_VOID) {
|
|
312
|
+
return "";
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
switch (myoa.authStat) {
|
|
316
|
+
case 1:
|
|
317
|
+
result = "待取车";
|
|
318
|
+
break;
|
|
319
|
+
case 2:
|
|
320
|
+
result = "待还车";
|
|
321
|
+
if (myoa.canClose === 1) {
|
|
322
|
+
result = "已还车";
|
|
323
|
+
}
|
|
324
|
+
break;
|
|
325
|
+
default:
|
|
326
|
+
break;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
return result;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
//#流程状态
|
|
333
|
+
static getMyoaStat(myoa: TMyoaMainResponse): string {
|
|
334
|
+
let result: string = "";
|
|
335
|
+
|
|
336
|
+
if (myoa.dataHide === 1) {
|
|
337
|
+
return "";
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
switch (myoa.myoaStat) {
|
|
341
|
+
case -2:
|
|
342
|
+
result = "已作废";
|
|
343
|
+
break;
|
|
344
|
+
case -1:
|
|
345
|
+
result = "已退回";
|
|
346
|
+
break;
|
|
347
|
+
case 1:
|
|
348
|
+
result = "待审核";
|
|
349
|
+
if (myoa.lastMemo !== "") {
|
|
350
|
+
result = `待审核:${myoa.lastMemo}`;
|
|
351
|
+
}
|
|
352
|
+
break;
|
|
353
|
+
case 2:
|
|
354
|
+
result = "已终审";
|
|
355
|
+
break;
|
|
356
|
+
default:
|
|
357
|
+
break;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
return result;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export interface IMyoaPGDWResponse {
|
|
2
|
+
whoBuild: number;
|
|
3
|
+
userIndx: number;
|
|
4
|
+
myoaIndx: number;
|
|
5
|
+
detailID: number;
|
|
6
|
+
dataStat: number;
|
|
7
|
+
dataHide: number;
|
|
8
|
+
dataOrdr: number;
|
|
9
|
+
dataFrom: number;
|
|
10
|
+
dataDate: number;
|
|
11
|
+
dataTime: number;
|
|
12
|
+
createBy: string;
|
|
13
|
+
createAt: number;
|
|
14
|
+
updateBy: string;
|
|
15
|
+
updateAt: number;
|
|
16
|
+
deleteBy: string;
|
|
17
|
+
deleteAt: number;
|
|
18
|
+
queuesBy: number;
|
|
19
|
+
|
|
20
|
+
userName: string; // 姓名
|
|
21
|
+
userIdcd: string; // 身份证
|
|
22
|
+
mobileID: string; // 手机长号
|
|
23
|
+
reasonBy: string; // 不参加理由
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class TMyoaPGDWResponse implements IMyoaPGDWResponse {
|
|
27
|
+
whoBuild: number = 0;
|
|
28
|
+
userIndx: number = 0;
|
|
29
|
+
myoaIndx: number = 0;
|
|
30
|
+
detailID: number = 0;
|
|
31
|
+
dataStat: number = 0;
|
|
32
|
+
dataHide: number = 0;
|
|
33
|
+
dataOrdr: number = 0;
|
|
34
|
+
dataFrom: number = 0;
|
|
35
|
+
dataDate: number = 0;
|
|
36
|
+
dataTime: number = 0;
|
|
37
|
+
createBy: string = "";
|
|
38
|
+
createAt: number = 0;
|
|
39
|
+
updateBy: string = "";
|
|
40
|
+
updateAt: number = 0;
|
|
41
|
+
deleteBy: string = "";
|
|
42
|
+
deleteAt: number = 0;
|
|
43
|
+
queuesBy: number = 0;
|
|
44
|
+
|
|
45
|
+
userName: string = "";
|
|
46
|
+
userIdcd: string = "";
|
|
47
|
+
mobileID: string = "";
|
|
48
|
+
reasonBy: string = "";
|
|
49
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export interface IYzcbBillResponse {
|
|
2
|
+
whoBuild: number;
|
|
3
|
+
userIndx: number;
|
|
4
|
+
billIndx: number;
|
|
5
|
+
yzcbMain: number;
|
|
6
|
+
dataStat: number;
|
|
7
|
+
dataHide: number;
|
|
8
|
+
dataOrdr: number;
|
|
9
|
+
dataFrom: number;
|
|
10
|
+
dataDate: number;
|
|
11
|
+
dataTime: number;
|
|
12
|
+
createBy: string;
|
|
13
|
+
createAt: number;
|
|
14
|
+
updateBy: string;
|
|
15
|
+
updateAt: number;
|
|
16
|
+
deleteBy: string;
|
|
17
|
+
deleteAt: number;
|
|
18
|
+
outMoney: number;
|
|
19
|
+
yzcbTzlx: number;
|
|
20
|
+
yzcbDate: number;
|
|
21
|
+
billMemo: string;
|
|
22
|
+
tzlxText: string;
|
|
23
|
+
billNumber: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class TYzcbBillResponse implements IYzcbBillResponse {
|
|
27
|
+
whoBuild: number = 0;
|
|
28
|
+
userIndx: number = 0;
|
|
29
|
+
billIndx: number = 0;
|
|
30
|
+
yzcbMain: number = 0;
|
|
31
|
+
dataStat: number = 1;
|
|
32
|
+
dataHide: number = 0;
|
|
33
|
+
dataOrdr: number = 0;
|
|
34
|
+
dataFrom: number = 0;
|
|
35
|
+
dataDate: number = 0;
|
|
36
|
+
dataTime: number = 0;
|
|
37
|
+
createBy: string = "";
|
|
38
|
+
createAt: number = 0;
|
|
39
|
+
updateBy: string = "";
|
|
40
|
+
updateAt: number = 0;
|
|
41
|
+
deleteBy: string = "";
|
|
42
|
+
deleteAt: number = 0;
|
|
43
|
+
outMoney: number = 0;
|
|
44
|
+
yzcbTzlx: number = 0;
|
|
45
|
+
yzcbDate: number = 0;
|
|
46
|
+
billMemo: string = "";
|
|
47
|
+
tzlxText: string = "";
|
|
48
|
+
billNumber: number = 0;
|
|
49
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import * as Const from "../const";
|
|
2
|
+
import { IDeptResponse } from "../core/IDeptResponse";
|
|
3
|
+
import { IPathResponse } from "../core/IPathResponse";
|
|
4
|
+
import { IUserResponse } from "../core/IUserResponse";
|
|
5
|
+
import { TFlowDataResponse } from "../flow/IFlowDataResponse";
|
|
6
|
+
import { IHzcbRypqResponse } from "../hzcb/IHzcbRypqResponse";
|
|
7
|
+
import { IYzcbBillResponse } from "./IYzcbBillResponse";
|
|
8
|
+
|
|
9
|
+
export interface IYzcbMainResponse {
|
|
10
|
+
whoBuild: number;
|
|
11
|
+
userIndx: number;
|
|
12
|
+
yzcbIndx: number;
|
|
13
|
+
parentID: number;
|
|
14
|
+
hashCode: number;
|
|
15
|
+
dataLevl: number;
|
|
16
|
+
dataFrom: number;
|
|
17
|
+
kjndKJQJ: number;
|
|
18
|
+
dataStat: number;
|
|
19
|
+
dataOrdr: number;
|
|
20
|
+
dataHide: number;
|
|
21
|
+
dataType: number;
|
|
22
|
+
dataDate: number;
|
|
23
|
+
dataTime: number;
|
|
24
|
+
dataGUID: string;
|
|
25
|
+
mastName: string;
|
|
26
|
+
mastGUID: string;
|
|
27
|
+
createBy: string;
|
|
28
|
+
createAt: number;
|
|
29
|
+
updateBy: string;
|
|
30
|
+
updateAt: number;
|
|
31
|
+
deleteBy: string;
|
|
32
|
+
deleteAt: number;
|
|
33
|
+
queuesBy: number;
|
|
34
|
+
entityID: string;
|
|
35
|
+
sourceND: number;
|
|
36
|
+
unitMain: number;
|
|
37
|
+
deptMain: number;
|
|
38
|
+
yzcbStat: number;
|
|
39
|
+
flowUndo: number;
|
|
40
|
+
flowText: string;
|
|
41
|
+
yzcbCode: string;
|
|
42
|
+
sqbmText: string;
|
|
43
|
+
sqyhText: string;
|
|
44
|
+
yzcbSqrq: number;
|
|
45
|
+
yzcbFlno: string;
|
|
46
|
+
yzcbName: string;
|
|
47
|
+
yzcbXmlb: number;
|
|
48
|
+
yzcbJsdd: string;
|
|
49
|
+
yzcbXmxz: number;
|
|
50
|
+
yzcbXmgm: number;
|
|
51
|
+
outMoney: number;
|
|
52
|
+
yzcgMoney: number;
|
|
53
|
+
yzhtMoney: number;
|
|
54
|
+
yzcbKgrq: number;
|
|
55
|
+
yzcbWgrq: number;
|
|
56
|
+
yzcbXmfzr: string;
|
|
57
|
+
dContact: string;
|
|
58
|
+
yzcbXmzq: string;
|
|
59
|
+
yzcbJsgm: string;
|
|
60
|
+
yzcbMemo: string;
|
|
61
|
+
userMain: number;
|
|
62
|
+
coverURL: string;
|
|
63
|
+
touchURL: string;
|
|
64
|
+
deptName: string;
|
|
65
|
+
sourceBm: string;
|
|
66
|
+
unitNamf: string;
|
|
67
|
+
sourceDw: string;
|
|
68
|
+
lastDate: number;
|
|
69
|
+
lastTime: number;
|
|
70
|
+
flowMain: number;
|
|
71
|
+
flowNode: number;
|
|
72
|
+
flowStat: number;
|
|
73
|
+
didFirst: number;
|
|
74
|
+
lastMemo: string;
|
|
75
|
+
userName: string;
|
|
76
|
+
userGUID: string;
|
|
77
|
+
menuUUID: string;
|
|
78
|
+
xmlbText: string;
|
|
79
|
+
xmxzText: string;
|
|
80
|
+
xmgmText: string;
|
|
81
|
+
hzcbName: string;
|
|
82
|
+
listSQBM: IDeptResponse[];
|
|
83
|
+
listSQYH: IUserResponse[];
|
|
84
|
+
listBill: IYzcbBillResponse[];
|
|
85
|
+
listPath: IPathResponse[];
|
|
86
|
+
listHzcb: IHzcbRypqResponse[];
|
|
87
|
+
listLock: IYzcbMainResponse[];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export class TYzcbMainResponse implements IYzcbMainResponse {
|
|
91
|
+
whoBuild: number = 0;
|
|
92
|
+
userIndx: number = 0;
|
|
93
|
+
yzcbIndx: number = 0;
|
|
94
|
+
parentID: number = 0;
|
|
95
|
+
hashCode: number = 0;
|
|
96
|
+
dataLevl: number = 0;
|
|
97
|
+
dataFrom: number = 0;
|
|
98
|
+
kjndKJQJ: number = 0;
|
|
99
|
+
dataStat: number = 1;
|
|
100
|
+
dataOrdr: number = 0;
|
|
101
|
+
dataHide: number = 0;
|
|
102
|
+
dataType: number = 0;
|
|
103
|
+
dataDate: number = 0;
|
|
104
|
+
dataTime: number = 0;
|
|
105
|
+
dataGUID: string = "";
|
|
106
|
+
mastName: string = "";
|
|
107
|
+
mastGUID: string = "";
|
|
108
|
+
createBy: string = "";
|
|
109
|
+
createAt: number = 0;
|
|
110
|
+
updateBy: string = "";
|
|
111
|
+
updateAt: number = 0;
|
|
112
|
+
deleteBy: string = "";
|
|
113
|
+
deleteAt: number = 0;
|
|
114
|
+
queuesBy: number = 0;
|
|
115
|
+
entityID: string = "";
|
|
116
|
+
sourceND: number = 0;
|
|
117
|
+
unitMain: number = 0;
|
|
118
|
+
deptMain: number = 0;
|
|
119
|
+
yzcbStat: number = 0;
|
|
120
|
+
flowUndo: number = 0;
|
|
121
|
+
flowText: string = "";
|
|
122
|
+
yzcbCode: string = "";
|
|
123
|
+
sqbmText: string = "";
|
|
124
|
+
sqyhText: string = "";
|
|
125
|
+
yzcbSqrq: number = 0;
|
|
126
|
+
yzcbFlno: string = "";
|
|
127
|
+
yzcbName: string = "";
|
|
128
|
+
yzcbXmlb: number = 0;
|
|
129
|
+
yzcbJsdd: string = "";
|
|
130
|
+
yzcbXmxz: number = 0;
|
|
131
|
+
yzcbXmgm: number = 0;
|
|
132
|
+
outMoney: number = 0;
|
|
133
|
+
yzcgMoney: number = 0;
|
|
134
|
+
yzhtMoney: number = 0;
|
|
135
|
+
yzcbKgrq: number = 0;
|
|
136
|
+
yzcbWgrq: number = 0;
|
|
137
|
+
yzcbXmfzr: string = "";
|
|
138
|
+
dContact: string = "";
|
|
139
|
+
yzcbXmzq: string = "";
|
|
140
|
+
yzcbJsgm: string = "";
|
|
141
|
+
yzcbMemo: string = "";
|
|
142
|
+
userMain: number = 0;
|
|
143
|
+
coverURL: string = "";
|
|
144
|
+
touchURL: string = "";
|
|
145
|
+
deptName: string = "";
|
|
146
|
+
sourceBm: string = "";
|
|
147
|
+
unitNamf: string = "";
|
|
148
|
+
sourceDw: string = "";
|
|
149
|
+
lastDate: number = 0;
|
|
150
|
+
lastTime: number = 0;
|
|
151
|
+
flowMain: number = 0;
|
|
152
|
+
flowNode: number = 0;
|
|
153
|
+
flowStat: number = 0;
|
|
154
|
+
didFirst: number = 0;
|
|
155
|
+
lastMemo: string = "";
|
|
156
|
+
userName: string = "";
|
|
157
|
+
userGUID: string = "";
|
|
158
|
+
menuUUID: string = "";
|
|
159
|
+
xmlbText: string = "";
|
|
160
|
+
xmxzText: string = "";
|
|
161
|
+
xmgmText: string = "";
|
|
162
|
+
hzcbName: string = "";
|
|
163
|
+
listSQBM: IDeptResponse[] = [];
|
|
164
|
+
listSQYH: IUserResponse[] = [];
|
|
165
|
+
listBill: IYzcbBillResponse[] = [];
|
|
166
|
+
listPath: IPathResponse[] = [];
|
|
167
|
+
listHzcb: IHzcbRypqResponse[] = [];
|
|
168
|
+
listLock: IYzcbMainResponse[] = [];
|
|
169
|
+
|
|
170
|
+
static toFlowData(yzcb: TYzcbMainResponse): TFlowDataResponse {
|
|
171
|
+
let result = new TFlowDataResponse();
|
|
172
|
+
result.whoBuild = yzcb.whoBuild;
|
|
173
|
+
result.userIndx = yzcb.userIndx;
|
|
174
|
+
result.flowMain = yzcb.flowMain;
|
|
175
|
+
result.flowNode = yzcb.flowNode;
|
|
176
|
+
result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_YZCB_WAIT;
|
|
177
|
+
result.entityID = yzcb.entityID;
|
|
178
|
+
result.billMain = yzcb.yzcbIndx;
|
|
179
|
+
result.billCode = yzcb.yzcbCode;
|
|
180
|
+
result.billMemo = yzcb.yzcbMemo;
|
|
181
|
+
result.outMoney = yzcb.outMoney;
|
|
182
|
+
result.createAt = yzcb.createAt;
|
|
183
|
+
result.mastName = yzcb.mastName;
|
|
184
|
+
result.createBy = yzcb.createBy;
|
|
185
|
+
result.unitMain = yzcb.unitMain;
|
|
186
|
+
result.deptMain = yzcb.deptMain;
|
|
187
|
+
return result;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export interface IYzcgBillResponse {
|
|
2
|
+
whoBuild: number;
|
|
3
|
+
userIndx: number;
|
|
4
|
+
billIndx: number;
|
|
5
|
+
yzcgMain: number;
|
|
6
|
+
dataStat: number;
|
|
7
|
+
dataHide: number;
|
|
8
|
+
dataOrdr: number;
|
|
9
|
+
dataFrom: number;
|
|
10
|
+
dataDate: number;
|
|
11
|
+
dataTime: number;
|
|
12
|
+
createBy: string;
|
|
13
|
+
createAt: number;
|
|
14
|
+
updateBy: string;
|
|
15
|
+
updateAt: number;
|
|
16
|
+
deleteBy: string;
|
|
17
|
+
deleteAt: number;
|
|
18
|
+
billCgnr: string; //#采购内容 采购委托业务-费用名称
|
|
19
|
+
billCgyq: string; //#采购要求 采购委托业务-单价(万元)
|
|
20
|
+
billCgml: number; //#采购目录
|
|
21
|
+
billCgsl: number; //#采购数量
|
|
22
|
+
billCgdj: number; //#采购单价
|
|
23
|
+
billJldw: string; //#计量单位
|
|
24
|
+
outMoney: number; //#采购金额
|
|
25
|
+
billMemo: string; //#备注信息
|
|
26
|
+
canClose: number; //#可否关闭
|
|
27
|
+
cgslText: string;
|
|
28
|
+
|
|
29
|
+
aplMoney: number; //申请金额
|
|
30
|
+
nowMoney: number; //剩余金额
|
|
31
|
+
|
|
32
|
+
billNumber: number;
|
|
33
|
+
cgmlText: string;
|
|
34
|
+
|
|
35
|
+
entityID: string;
|
|
36
|
+
pathPara: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class TYzcgBillResponse implements IYzcgBillResponse {
|
|
40
|
+
whoBuild: number = 0;
|
|
41
|
+
userIndx: number = 0;
|
|
42
|
+
billIndx: number = 0;
|
|
43
|
+
yzcgMain: number = 0;
|
|
44
|
+
dataStat: number = 1;
|
|
45
|
+
dataHide: number = 0;
|
|
46
|
+
dataOrdr: number = 0;
|
|
47
|
+
dataFrom: number = 0;
|
|
48
|
+
dataDate: number = 0;
|
|
49
|
+
dataTime: number = 0;
|
|
50
|
+
createBy: string = "";
|
|
51
|
+
createAt: number = 0;
|
|
52
|
+
updateBy: string = "";
|
|
53
|
+
updateAt: number = 0;
|
|
54
|
+
deleteBy: string = "";
|
|
55
|
+
deleteAt: number = 0;
|
|
56
|
+
billCgnr: string = "";
|
|
57
|
+
billCgyq: string = "";
|
|
58
|
+
billCgml: number = 0;
|
|
59
|
+
billCgsl: number = 0;
|
|
60
|
+
billCgdj: number = 0;
|
|
61
|
+
billJldw: string = "";
|
|
62
|
+
outMoney: number = 0;
|
|
63
|
+
billMemo: string = "";
|
|
64
|
+
canClose: number = 0;
|
|
65
|
+
billNumber: number = 0;
|
|
66
|
+
cgslText: string = ""; //采购委托业务-数量
|
|
67
|
+
cgmlText: string = "";
|
|
68
|
+
aplMoney: number = 0; //申请金额
|
|
69
|
+
nowMoney: number = 0; //剩余金额
|
|
70
|
+
entityID: string = "";
|
|
71
|
+
pathPara: string = "";
|
|
72
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export interface IYzcgGshdResponse {
|
|
2
|
+
whoBuild: number;
|
|
3
|
+
userIndx: number;
|
|
4
|
+
yzcgIndx: number;
|
|
5
|
+
dataStat: number;
|
|
6
|
+
dataHide: number;
|
|
7
|
+
dataOrdr: number;
|
|
8
|
+
dataFrom: number;
|
|
9
|
+
dataDate: number;
|
|
10
|
+
dataTime: number;
|
|
11
|
+
mastName: string;
|
|
12
|
+
mastGUID: string;
|
|
13
|
+
createBy: string;
|
|
14
|
+
createAt: number;
|
|
15
|
+
updateBy: string;
|
|
16
|
+
updateAt: number;
|
|
17
|
+
deleteBy: string;
|
|
18
|
+
deleteAt: number;
|
|
19
|
+
getMoney: number;
|
|
20
|
+
incMoney: number;
|
|
21
|
+
allMoney: number;
|
|
22
|
+
outMoney: number;
|
|
23
|
+
unFormal: number;
|
|
24
|
+
onFormal: number;
|
|
25
|
+
nowMoney: number;
|
|
26
|
+
finalOut: number;
|
|
27
|
+
aplMoney: number;
|
|
28
|
+
afterApl: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export class TYzcgGshdResponse implements IYzcgGshdResponse {
|
|
32
|
+
whoBuild: number = 0;
|
|
33
|
+
userIndx: number = 0;
|
|
34
|
+
yzcgIndx: number = 0;
|
|
35
|
+
dataStat: number = 1;
|
|
36
|
+
dataHide: number = 0;
|
|
37
|
+
dataOrdr: number = 0;
|
|
38
|
+
dataFrom: number = 0;
|
|
39
|
+
dataDate: number = 0;
|
|
40
|
+
dataTime: number = 0;
|
|
41
|
+
mastName: string = "";
|
|
42
|
+
mastGUID: string = "";
|
|
43
|
+
createBy: string = "";
|
|
44
|
+
createAt: number = 0;
|
|
45
|
+
updateBy: string = "";
|
|
46
|
+
updateAt: number = 0;
|
|
47
|
+
deleteBy: string = "";
|
|
48
|
+
deleteAt: number = 0;
|
|
49
|
+
getMoney: number = 0;
|
|
50
|
+
incMoney: number = 0;
|
|
51
|
+
allMoney: number = 0;
|
|
52
|
+
outMoney: number = 0;
|
|
53
|
+
unFormal: number = 0;
|
|
54
|
+
onFormal: number = 0;
|
|
55
|
+
nowMoney: number = 0;
|
|
56
|
+
finalOut: number = 0;
|
|
57
|
+
aplMoney: number = 0;
|
|
58
|
+
afterApl: number = 0;
|
|
59
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface IYzcgLockResponse {
|
|
2
|
+
whoBuild: number;
|
|
3
|
+
userIndx: number;
|
|
4
|
+
yzcgIndx: number;
|
|
5
|
+
dataStat: number;
|
|
6
|
+
dataHide: number;
|
|
7
|
+
dataOrdr: number;
|
|
8
|
+
dataFrom: number;
|
|
9
|
+
dataDate: number;
|
|
10
|
+
dataTime: number;
|
|
11
|
+
createBy: string;
|
|
12
|
+
createAt: number;
|
|
13
|
+
updateBy: string;
|
|
14
|
+
updateAt: number;
|
|
15
|
+
deleteBy: string;
|
|
16
|
+
deleteAt: number;
|
|
17
|
+
fromWhoBuild: number;
|
|
18
|
+
fromUserIndx: number;
|
|
19
|
+
fromYzcgIndx: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class TYzcgLockResponse implements IYzcgLockResponse {
|
|
23
|
+
whoBuild: number = 0;
|
|
24
|
+
userIndx: number = 0;
|
|
25
|
+
yzcgIndx: number = 0;
|
|
26
|
+
dataStat: number = 0;
|
|
27
|
+
dataHide: number = 0;
|
|
28
|
+
dataOrdr: number = 0;
|
|
29
|
+
dataFrom: number = 0;
|
|
30
|
+
dataDate: number = 0;
|
|
31
|
+
dataTime: number = 0;
|
|
32
|
+
createBy: string = "";
|
|
33
|
+
createAt: number = 0;
|
|
34
|
+
updateBy: string = "";
|
|
35
|
+
updateAt: number = 0;
|
|
36
|
+
deleteBy: string = "";
|
|
37
|
+
deleteAt: number = 0;
|
|
38
|
+
fromWhoBuild: number = 0;
|
|
39
|
+
fromUserIndx: number = 0;
|
|
40
|
+
fromYzcgIndx: number = 0;
|
|
41
|
+
}
|
|
@@ -1,4 +1,25 @@
|
|
|
1
|
+
import * as Const from "../const";
|
|
2
|
+
import { IDeptResponse } from "../core/IDeptResponse";
|
|
3
|
+
import { IPathResponse } from "../core/IPathResponse";
|
|
4
|
+
import { IUserLiteResponse } from "../core/IUserLiteResponse";
|
|
5
|
+
import { IUserResponse } from "../core/IUserResponse";
|
|
6
|
+
import { TFlowDataResponse } from "../flow/IFlowDataResponse";
|
|
7
|
+
import { IGamsBillResponse } from "../gams/IGamsBillResponse";
|
|
8
|
+
import { IZbhdMainResponese } from "../gams/IZbhdMainResponese";
|
|
9
|
+
import { IYzcbMainResponse } from "../yzcb/IYzcbMainResponse";
|
|
10
|
+
import { IYzcqMainResponse } from "../yzcq/IYzcqMainResponse";
|
|
11
|
+
import { IYzcgBillResponse, TYzcgBillResponse } from "./IYzcgBillResponse";
|
|
12
|
+
import { IYzcgGshdResponse } from "./IYzcgGshdResponse";
|
|
13
|
+
import { IYzcgLockResponse } from "./IYzcgLockResponse";
|
|
14
|
+
import { IExpdMainResponse } from "../expd/IExpdMainResponse";
|
|
15
|
+
import { IYzhtMainResponse } from "../yzht/IYzhtMainResponse";
|
|
16
|
+
import _ from "lodash";
|
|
17
|
+
|
|
1
18
|
export interface IYzcgMainResponse {
|
|
19
|
+
typeName: string;
|
|
20
|
+
key: string;
|
|
21
|
+
title: string;
|
|
22
|
+
value: string;
|
|
2
23
|
whoBuild: number;
|
|
3
24
|
userIndx: number;
|
|
4
25
|
yzcgIndx: number;
|
|
@@ -104,9 +125,31 @@ export interface IYzcgMainResponse {
|
|
|
104
125
|
yzcbName: string;
|
|
105
126
|
hzcbName: string;
|
|
106
127
|
detailId: number;
|
|
128
|
+
|
|
129
|
+
expdMoney: number;
|
|
130
|
+
|
|
131
|
+
listPath: IPathResponse[];
|
|
132
|
+
listSQBM: IDeptResponse[];
|
|
133
|
+
listSQYH: IUserResponse[] | IUserLiteResponse[];
|
|
134
|
+
listBill: TYzcgBillResponse[];
|
|
135
|
+
listZBHD: IZbhdMainResponese[];
|
|
136
|
+
listYzcb: IYzcbMainResponse[];
|
|
137
|
+
listGams: IGamsBillResponse[];
|
|
138
|
+
listGshd: IYzcgGshdResponse[];
|
|
139
|
+
listLock: IYzcgLockResponse[];
|
|
140
|
+
listDddw: IUserLiteResponse[];
|
|
141
|
+
listDldw: IUserLiteResponse[];
|
|
142
|
+
listYzcq: IYzcqMainResponse[];
|
|
143
|
+
|
|
144
|
+
lockExpd: IExpdMainResponse[];
|
|
145
|
+
listYzht: IYzhtMainResponse[];
|
|
107
146
|
}
|
|
108
147
|
|
|
109
148
|
export class TYzcgMainResponse implements IYzcgMainResponse {
|
|
149
|
+
typeName: string = "TYzcgMainResponse";
|
|
150
|
+
key: string = "";
|
|
151
|
+
title: string = "";
|
|
152
|
+
value: string = "";
|
|
110
153
|
whoBuild: number = 0;
|
|
111
154
|
userIndx: number = 0;
|
|
112
155
|
yzcgIndx: number = 0;
|
|
@@ -210,4 +253,55 @@ export class TYzcgMainResponse implements IYzcgMainResponse {
|
|
|
210
253
|
yzcbName: string = "";
|
|
211
254
|
hzcbName: string = "";
|
|
212
255
|
detailId: number = 0;
|
|
256
|
+
|
|
257
|
+
expdMoney: number = 0;
|
|
258
|
+
|
|
259
|
+
listPath: IPathResponse[] = [];
|
|
260
|
+
listSQBM: IDeptResponse[] = [];
|
|
261
|
+
listSQYH: IUserResponse[] | IUserLiteResponse[] = [];
|
|
262
|
+
listBill: IYzcgBillResponse[] = [];
|
|
263
|
+
listZBHD: IZbhdMainResponese[] = [];
|
|
264
|
+
listYzcb: IYzcbMainResponse[] = [];
|
|
265
|
+
listGams: IGamsBillResponse[] = [];
|
|
266
|
+
listGshd: IYzcgGshdResponse[] = [];
|
|
267
|
+
listLock: IYzcgLockResponse[] = [];
|
|
268
|
+
listDddw: IUserLiteResponse[] = [];
|
|
269
|
+
listDldw: IUserLiteResponse[] = [];
|
|
270
|
+
listYzcq: IYzcqMainResponse[] = [];
|
|
271
|
+
|
|
272
|
+
lockExpd: IExpdMainResponse[] = [];
|
|
273
|
+
listYzht: IYzhtMainResponse[] = [];
|
|
274
|
+
|
|
275
|
+
constructor(card: any = {}) {
|
|
276
|
+
if (card) {
|
|
277
|
+
_.merge(this, _.pick(card, Object.keys(this)));
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
static toFlowDatas(card: TYzcgMainResponse[]): TFlowDataResponse[] {
|
|
282
|
+
return card.map((u) => this.toFlowData(u));
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
static toFlowData(yzcg: TYzcgMainResponse): TFlowDataResponse {
|
|
286
|
+
let result = new TFlowDataResponse();
|
|
287
|
+
result.whoBuild = yzcg.whoBuild;
|
|
288
|
+
result.userIndx = yzcg.userIndx;
|
|
289
|
+
result.flowMain = yzcg.flowMain;
|
|
290
|
+
result.flowNode = yzcg.flowNode;
|
|
291
|
+
result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_YZCG_WAIT;
|
|
292
|
+
result.entityID = yzcg.entityID;
|
|
293
|
+
result.billMain = yzcg.yzcgIndx;
|
|
294
|
+
result.billCode = yzcg.yzcgCode;
|
|
295
|
+
result.billMemo = yzcg.yzcgMemo;
|
|
296
|
+
result.ysxmText = yzcg.yzcgCgxm;
|
|
297
|
+
result.outMoney = yzcg.outMoney;
|
|
298
|
+
result.createAt = yzcg.createAt;
|
|
299
|
+
result.mastName = yzcg.mastName;
|
|
300
|
+
result.createBy = yzcg.createBy;
|
|
301
|
+
result.unitMain = yzcg.unitMain;
|
|
302
|
+
result.deptMain = yzcg.deptMain;
|
|
303
|
+
result.flowStat = yzcg.yzcgStat;
|
|
304
|
+
result.menuUUID = yzcg.menuUUID;
|
|
305
|
+
return result;
|
|
306
|
+
}
|
|
213
307
|
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { IPathResponse } from "../core/IPathResponse";
|
|
2
|
+
import { IUserLiteResponse } from "../core/IUserLiteResponse";
|
|
3
|
+
|
|
4
|
+
export interface IYzcqMainResponse {
|
|
5
|
+
whoBuild: number;
|
|
6
|
+
userIndx: number;
|
|
7
|
+
yzcqIndx: number;
|
|
8
|
+
parentID: number;
|
|
9
|
+
hashCode: number;
|
|
10
|
+
dataLevl: number;
|
|
11
|
+
dataFrom: number;
|
|
12
|
+
kjndKJQJ: number;
|
|
13
|
+
dataStat: number;
|
|
14
|
+
dataOrdr: number;
|
|
15
|
+
dataHide: number;
|
|
16
|
+
dataType: number;
|
|
17
|
+
dataDate: number;
|
|
18
|
+
dataTime: number;
|
|
19
|
+
dataGUID: string;
|
|
20
|
+
mastName: string;
|
|
21
|
+
mastGUID: string;
|
|
22
|
+
createBy: string;
|
|
23
|
+
createAt: number;
|
|
24
|
+
updateBy: string;
|
|
25
|
+
updateAt: number;
|
|
26
|
+
deleteBy: string;
|
|
27
|
+
deleteAt: number;
|
|
28
|
+
queuesBy: number;
|
|
29
|
+
entityID: string;
|
|
30
|
+
sourceNd: number;
|
|
31
|
+
unitMain: number;
|
|
32
|
+
deptMain: number;
|
|
33
|
+
yzcqStat: number;
|
|
34
|
+
flowUndo: number;
|
|
35
|
+
flowText: string;
|
|
36
|
+
sqbmText: string;
|
|
37
|
+
sqyhText: string;
|
|
38
|
+
yzcqCode: string;
|
|
39
|
+
dldwText: string;
|
|
40
|
+
yzcqDate: number;
|
|
41
|
+
yzcqUses: string;
|
|
42
|
+
yzcqMemo: string;
|
|
43
|
+
yzcqType: number;
|
|
44
|
+
matchVal: string;
|
|
45
|
+
billMain: number;
|
|
46
|
+
hashText: string;
|
|
47
|
+
|
|
48
|
+
listPath: IPathResponse[];
|
|
49
|
+
listZBDW: IUserLiteResponse[];
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export class TYzcqMainResponse implements IYzcqMainResponse {
|
|
53
|
+
whoBuild: number = 0;
|
|
54
|
+
userIndx: number = 0;
|
|
55
|
+
yzcqIndx: number = 0;
|
|
56
|
+
parentID: number = 0;
|
|
57
|
+
hashCode: number = 0;
|
|
58
|
+
dataLevl: number = 0;
|
|
59
|
+
dataFrom: number = 0;
|
|
60
|
+
kjndKJQJ: number = 0;
|
|
61
|
+
dataStat: number = 1;
|
|
62
|
+
dataOrdr: number = 0;
|
|
63
|
+
dataHide: number = 0;
|
|
64
|
+
dataType: number = 0;
|
|
65
|
+
dataDate: number = 0;
|
|
66
|
+
dataTime: number = 0;
|
|
67
|
+
dataGUID: string = "";
|
|
68
|
+
mastName: string = "";
|
|
69
|
+
mastGUID: string = "";
|
|
70
|
+
createBy: string = "";
|
|
71
|
+
createAt: number = 0;
|
|
72
|
+
updateBy: string = "";
|
|
73
|
+
updateAt: number = 0;
|
|
74
|
+
deleteBy: string = "";
|
|
75
|
+
deleteAt: number = 0;
|
|
76
|
+
queuesBy: number = 0;
|
|
77
|
+
entityID: string = "";
|
|
78
|
+
sourceNd: number = 0;
|
|
79
|
+
unitMain: number = 0;
|
|
80
|
+
deptMain: number = 0;
|
|
81
|
+
|
|
82
|
+
yzcqStat: number = 0;
|
|
83
|
+
flowUndo: number = 0;
|
|
84
|
+
flowText: string = "";
|
|
85
|
+
sqbmText: string = "";
|
|
86
|
+
sqyhText: string = "";
|
|
87
|
+
yzcqCode: string = "";
|
|
88
|
+
dldwText: string = "";
|
|
89
|
+
yzcqDate: number = 0;
|
|
90
|
+
yzcqUses: string = "";
|
|
91
|
+
yzcqMemo: string = "";
|
|
92
|
+
yzcqType: number = 0;
|
|
93
|
+
matchVal: string = "";
|
|
94
|
+
billMain: number = 0;
|
|
95
|
+
hashText: string = "";
|
|
96
|
+
|
|
97
|
+
listPath: IPathResponse[] = [];
|
|
98
|
+
listZBDW: IUserLiteResponse[] = [];
|
|
99
|
+
|
|
100
|
+
// static toFlowData(yzcg: TYzcqMainResponse): TFlowDataResponse {
|
|
101
|
+
// let result = new TFlowDataResponse();
|
|
102
|
+
// result.whoBuild = yzcg.whoBuild;
|
|
103
|
+
// result.userIndx = yzcg.userIndx;
|
|
104
|
+
// result.flowMain = yzcg.flowMain;
|
|
105
|
+
// result.flowNode = yzcg.flowNode;
|
|
106
|
+
// result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_YZCG_WAIT;
|
|
107
|
+
// result.entityID = yzcg.entityID;
|
|
108
|
+
// result.billMain = yzcg.yzcgIndx;
|
|
109
|
+
// result.billCode = yzcg.yzcgCode;
|
|
110
|
+
// result.billMemo = yzcg.yzcgMemo;
|
|
111
|
+
// result.ysxmText = yzcg.yzcgCgxm;
|
|
112
|
+
// result.outMoney = yzcg.outMoney;
|
|
113
|
+
// result.createAt = yzcg.createAt;
|
|
114
|
+
// result.mastName = yzcg.mastName;
|
|
115
|
+
// result.createBy = yzcg.createBy;
|
|
116
|
+
// result.unitMain = yzcg.unitMain;
|
|
117
|
+
// result.deptMain = yzcg.deptMain;
|
|
118
|
+
// return result;
|
|
119
|
+
// }
|
|
120
|
+
}
|