@ningboyz/types 1.0.111 → 1.0.113
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/package.json +1 -1
- package/src/cron/ICronMainResponse.ts +125 -230
package/package.json
CHANGED
|
@@ -1,249 +1,151 @@
|
|
|
1
|
-
import { IPathResponse } from "../core/IPathResponse";
|
|
2
1
|
import { TFlowDataResponse } from "../flow/IFlowDataResponse";
|
|
3
|
-
import { IDictResponse, IPartResponse, IUnitResponse, IUserLiteResponse } from "../core";
|
|
4
2
|
import _ from "lodash";
|
|
5
3
|
|
|
6
|
-
/**
|
|
7
|
-
*后端已校验
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
4
|
export interface ICronMainResponse {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
billUUID: string;
|
|
6
|
+
bkColour: string;
|
|
7
|
+
createAt: number;
|
|
8
|
+
createBy: string;
|
|
9
|
+
cronCode: string;
|
|
10
|
+
cronIndx: number;
|
|
11
|
+
cronMemo: string;
|
|
12
|
+
cronName: string;
|
|
13
|
+
cronNoti: string;
|
|
14
|
+
cronNotiText: string;
|
|
15
|
+
cronPara: string;
|
|
16
|
+
cronReal: string;
|
|
17
|
+
cronRealText: string;
|
|
18
|
+
cronText: string;
|
|
19
|
+
cronUses: string;
|
|
20
|
+
dataDate: number;
|
|
21
|
+
dataFrom: number;
|
|
22
|
+
dataGUID: string;
|
|
23
|
+
dataHide: number;
|
|
17
24
|
dataLevl: number;
|
|
18
25
|
dataStat: number;
|
|
19
26
|
dataOrdr: number;
|
|
20
|
-
dataDate: number;
|
|
21
27
|
dataTime: number;
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
dataType: number;
|
|
29
|
+
deleteAt: number;
|
|
30
|
+
deleteBy: string;
|
|
31
|
+
deptMain: number;
|
|
32
|
+
dingNoti: number;
|
|
33
|
+
dingPara: string;
|
|
34
|
+
directAt: number;
|
|
35
|
+
enrollID: string;
|
|
36
|
+
entityID: string;
|
|
37
|
+
errLevel: number;
|
|
38
|
+
hashCode: number;
|
|
39
|
+
isPublic: number;
|
|
24
40
|
kjndKJQJ: number;
|
|
25
|
-
dataGUID: string;
|
|
26
41
|
mastName: string;
|
|
27
42
|
mastGUID: string;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
pathSize: number;
|
|
43
|
-
userSize: number;
|
|
44
|
-
readSize: number;
|
|
45
|
-
printCnt: number;
|
|
46
|
-
fetchCnt: number;
|
|
47
|
-
partText: string;
|
|
48
|
-
typeText: string;
|
|
49
|
-
notiName: string;
|
|
50
|
-
notiMemo: string;
|
|
51
|
-
deadLine: number;
|
|
52
|
-
deadDate: number;
|
|
53
|
-
deadTime: number;
|
|
54
|
-
canClose: number;
|
|
43
|
+
metaData: string;
|
|
44
|
+
notePara: string;
|
|
45
|
+
noteType: number;
|
|
46
|
+
noteTypeText: string;
|
|
47
|
+
notiPart: number[];
|
|
48
|
+
notiPartText: string;
|
|
49
|
+
notiText: string;
|
|
50
|
+
notiUser: number[];
|
|
51
|
+
notiUserText: string;
|
|
52
|
+
noticeAt: number;
|
|
53
|
+
noticeAtText: string;
|
|
54
|
+
queuesBy: number;
|
|
55
|
+
sql4data: string;
|
|
56
|
+
sql4user: string;
|
|
55
57
|
sysClasc: number;
|
|
58
|
+
sysClasd: string;
|
|
56
59
|
sysClasn: string;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
systemOn: number;
|
|
61
|
+
targetTo: string;
|
|
62
|
+
todoName: string;
|
|
63
|
+
todoSize: number;
|
|
61
64
|
unitMain: number;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
//from Flow
|
|
73
|
-
flowMain: number;
|
|
74
|
-
flowNode: number;
|
|
75
|
-
sourceDW: string;
|
|
76
|
-
unitText: string;
|
|
77
|
-
userMain: number;
|
|
78
|
-
touchURL: string;
|
|
79
|
-
coverURL: string;
|
|
80
|
-
lastDate: number;
|
|
81
|
-
lastTime: number;
|
|
82
|
-
flowStat: number;
|
|
83
|
-
didFirst: number;
|
|
84
|
-
lastMemo: string;
|
|
85
|
-
userName: string;
|
|
86
|
-
userGUID: string;
|
|
87
|
-
notified: string;
|
|
88
|
-
fileName: string; //文件名称
|
|
89
|
-
fileType: number; //文件分类
|
|
90
|
-
fileArea: number; //发布层级
|
|
91
|
-
fileCode: string; //文号
|
|
92
|
-
didValid: number; //是否现行有效
|
|
93
|
-
|
|
94
|
-
dxField0: string;
|
|
95
|
-
wbField0: string;
|
|
96
|
-
wbField1: string;
|
|
97
|
-
wbField2: string;
|
|
98
|
-
wbField3: string;
|
|
99
|
-
wbField4: string;
|
|
100
|
-
wbField5: string;
|
|
101
|
-
wbField6: string;
|
|
102
|
-
lockText: string; //对应法规,文件名称
|
|
103
|
-
lockPara: string; //对应法规,跳转参数
|
|
104
|
-
listLock: ICronMainResponse[];
|
|
105
|
-
|
|
106
|
-
fromSysPartc: number;
|
|
107
|
-
dictQueuesBy: number;
|
|
108
|
-
|
|
109
|
-
notiTypeText: string;
|
|
110
|
-
|
|
111
|
-
fileTypeText: string;
|
|
112
|
-
fileAreaText: string;
|
|
113
|
-
|
|
114
|
-
starType: number; //(评分等级,字典)
|
|
115
|
-
starTypeText: string; //(视图)
|
|
116
|
-
starSize: number; //(评分)
|
|
117
|
-
|
|
118
|
-
listUnit: IUnitResponse[];
|
|
119
|
-
usrPartn: IPartResponse[];
|
|
120
|
-
listType: IDictResponse[];
|
|
121
|
-
listPath: IPathResponse[];
|
|
122
|
-
listUser: IUserLiteResponse[];
|
|
123
|
-
|
|
124
|
-
//虚拟字段
|
|
125
|
-
typeArray?: number[];
|
|
126
|
-
unitArray?: number[];
|
|
127
|
-
diskArray?: number[];
|
|
65
|
+
updateBy: string;
|
|
66
|
+
updateAt: number;
|
|
67
|
+
userIndx: number; //#pk
|
|
68
|
+
userPswd: string;
|
|
69
|
+
usesNote: number;
|
|
70
|
+
usesNoti: number;
|
|
71
|
+
usesStat: number;
|
|
72
|
+
whoBuild: number; //#pk
|
|
73
|
+
workStat: number;
|
|
74
|
+
workerID: number;
|
|
128
75
|
}
|
|
129
76
|
|
|
130
77
|
export class TCronMainResponse implements ICronMainResponse {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
78
|
+
billType: string = "";
|
|
79
|
+
billUUID: string = "";
|
|
80
|
+
bkColour: string = "";
|
|
81
|
+
createAt: number = 0;
|
|
82
|
+
createBy: string = "";
|
|
83
|
+
cronCode: string = "";
|
|
84
|
+
cronIndx: number = 0;
|
|
85
|
+
cronMemo: string = "";
|
|
86
|
+
cronName: string = "";
|
|
87
|
+
cronNoti: string = "";
|
|
88
|
+
cronNotiText: string = "";
|
|
89
|
+
cronPara: string = "";
|
|
90
|
+
cronReal: string = "";
|
|
91
|
+
cronRealText: string = "";
|
|
92
|
+
cronText: string = "";
|
|
93
|
+
cronUses: string = "";
|
|
143
94
|
dataDate: number = 0;
|
|
144
|
-
dataTime: number = 0;
|
|
145
|
-
dataHide: number = 0;
|
|
146
95
|
dataFrom: number = 0;
|
|
147
|
-
kjndKJQJ: number = 0;
|
|
148
96
|
dataGUID: string = "";
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
deleteBy: string = "";
|
|
97
|
+
dataHide: number = 0;
|
|
98
|
+
dataLevl: number = 0;
|
|
99
|
+
dataOrdr: number = 0;
|
|
100
|
+
dataStat: number = 0;
|
|
101
|
+
dataTime: number = 0;
|
|
102
|
+
dataType: number = 0;
|
|
156
103
|
deleteAt: number = 0;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
104
|
+
deleteBy: string = "";
|
|
105
|
+
deptMain: number = 0;
|
|
106
|
+
dingNoti: number = 0;
|
|
107
|
+
dingPara: string = "";
|
|
108
|
+
directAt: number = 0;
|
|
109
|
+
enrollID: string = "";
|
|
161
110
|
entityID: string = "";
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
111
|
+
errLevel: number = 0;
|
|
112
|
+
hashCode: number = 0;
|
|
113
|
+
isPublic: number = 0;
|
|
114
|
+
kjndKJQJ: number = 0;
|
|
115
|
+
mastGUID: string = "";
|
|
116
|
+
mastName: string = "";
|
|
117
|
+
metaData: string = "";
|
|
118
|
+
notePara: string = "";
|
|
119
|
+
noteType: number = 0;
|
|
120
|
+
noteTypeText: string = "";
|
|
121
|
+
notiPart: number[] = [];
|
|
122
|
+
notiPartText: string = "";
|
|
123
|
+
notiText: string = "";
|
|
124
|
+
notiUser: number[] = [];
|
|
125
|
+
notiUserText: string = "";
|
|
126
|
+
noticeAt: number = 0;
|
|
127
|
+
noticeAtText: string = "";
|
|
128
|
+
queuesBy: number = 0;
|
|
129
|
+
sql4data: string = "";
|
|
130
|
+
sql4user: string = "";
|
|
178
131
|
sysClasc: number = 0;
|
|
132
|
+
sysClasd: string = "";
|
|
179
133
|
sysClasn: string = "";
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
sourceDW: string = "";
|
|
185
|
-
unitText: string = "";
|
|
134
|
+
systemOn: number = 0;
|
|
135
|
+
targetTo: string = "";
|
|
136
|
+
todoName: string = "";
|
|
137
|
+
todoSize: number = 0;
|
|
186
138
|
unitMain: number = 0;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
//from Flow
|
|
198
|
-
flowMain: number = 0;
|
|
199
|
-
flowNode: number = 0;
|
|
200
|
-
userMain: number = 0;
|
|
201
|
-
touchURL: string = "";
|
|
202
|
-
coverURL: string = "";
|
|
203
|
-
lastDate: number = 0;
|
|
204
|
-
lastTime: number = 0;
|
|
205
|
-
flowStat: number = 0;
|
|
206
|
-
didFirst: number = 0;
|
|
207
|
-
lastMemo: string = "";
|
|
208
|
-
userName: string = "";
|
|
209
|
-
userGUID: string = "";
|
|
210
|
-
notified: string = "";
|
|
211
|
-
fileCode: string = "";
|
|
212
|
-
didValid: number = 0;
|
|
213
|
-
|
|
214
|
-
dxField0: string = "";
|
|
215
|
-
wbField0: string = "";
|
|
216
|
-
wbField1: string = "";
|
|
217
|
-
wbField2: string = "";
|
|
218
|
-
wbField3: string = "";
|
|
219
|
-
wbField4: string = "";
|
|
220
|
-
wbField5: string = "";
|
|
221
|
-
wbField6: string = "";
|
|
222
|
-
lockText: string = ""; //对应法规,文件名称
|
|
223
|
-
lockPara: string = ""; //对应法规,跳转参数
|
|
224
|
-
listLock: INotiMainResponse[] = [];
|
|
225
|
-
|
|
226
|
-
fromSysPartc: number = 0;
|
|
227
|
-
dictQueuesBy: number = 0;
|
|
228
|
-
|
|
229
|
-
notiTypeText: string = "";
|
|
230
|
-
|
|
231
|
-
fileTypeText: string = "";
|
|
232
|
-
fileAreaText: string = "";
|
|
233
|
-
|
|
234
|
-
starType: number = 0; //(评分等级,字典)
|
|
235
|
-
starTypeText: string = ""; //(视图)
|
|
236
|
-
starSize: number = 0; //(评分)
|
|
237
|
-
|
|
238
|
-
listUnit: IUnitResponse[] = [];
|
|
239
|
-
usrPartn: IPartResponse[] = [];
|
|
240
|
-
listType: IDictResponse[] = [];
|
|
241
|
-
listPath: IPathResponse[] = [];
|
|
242
|
-
listUser: IUserLiteResponse[] = [];
|
|
243
|
-
|
|
244
|
-
typeArray?: number[] = [];
|
|
245
|
-
unitArray?: number[] = [];
|
|
246
|
-
diskArray?: number[] = [];
|
|
139
|
+
updateAt: number = 0;
|
|
140
|
+
updateBy: string = "";
|
|
141
|
+
userIndx: number = 0;
|
|
142
|
+
userPswd: string = "";
|
|
143
|
+
usesNote: number = 0;
|
|
144
|
+
usesNoti: number = 0;
|
|
145
|
+
usesStat: number = 0;
|
|
146
|
+
whoBuild: number = 0;
|
|
147
|
+
workStat: number = 0;
|
|
148
|
+
workerID: number = 0;
|
|
247
149
|
|
|
248
150
|
constructor(card: any = {}) {
|
|
249
151
|
if (card) {
|
|
@@ -251,31 +153,24 @@ export class TCronMainResponse implements ICronMainResponse {
|
|
|
251
153
|
}
|
|
252
154
|
}
|
|
253
155
|
|
|
254
|
-
static toFlowDatas(notis:
|
|
156
|
+
static toFlowDatas(notis: TCronMainResponse[]): TFlowDataResponse[] {
|
|
255
157
|
return notis.map((u) => this.toFlowData(u));
|
|
256
158
|
}
|
|
257
159
|
|
|
258
|
-
static toFlowData(aNoti:
|
|
160
|
+
static toFlowData(aNoti: TCronMainResponse): TFlowDataResponse {
|
|
259
161
|
const result = new TFlowDataResponse();
|
|
260
162
|
result.whoBuild = aNoti.whoBuild;
|
|
261
163
|
result.userIndx = aNoti.userIndx;
|
|
262
|
-
result.flowMain = aNoti.flowMain; //#flowmain=0
|
|
263
|
-
result.flowNode = aNoti.flowNode; //#flownode=0
|
|
264
164
|
result.entityID = aNoti.entityID;
|
|
265
|
-
result.billMain = aNoti.notiIndx;
|
|
266
|
-
result.billCode = aNoti.notiCode;
|
|
267
165
|
result.billMemo = "";
|
|
268
166
|
result.billUses = "";
|
|
269
167
|
result.ysxmText = "";
|
|
270
168
|
result.outMoney = 0;
|
|
271
|
-
result.notified = aNoti.notified;
|
|
272
169
|
result.createAt = aNoti.createAt;
|
|
273
170
|
result.mastName = aNoti.mastName;
|
|
274
171
|
result.createBy = aNoti.createBy;
|
|
275
172
|
result.unitMain = aNoti.unitMain;
|
|
276
173
|
result.deptMain = aNoti.deptMain;
|
|
277
|
-
result.flowStat = aNoti.notiStat;
|
|
278
|
-
result.menuUUID = aNoti.menuUUID;
|
|
279
174
|
return result;
|
|
280
175
|
}
|
|
281
176
|
}
|