@ningboyz/types 1.0.109 → 1.0.110
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/cron/ICronMainResponse.ts +281 -0
- package/src/cron/index.ts +3 -0
package/index.ts
CHANGED
|
@@ -34,6 +34,7 @@ import * as TGztb from "./src/gztb";
|
|
|
34
34
|
import * as TAntv from "./src/antv";
|
|
35
35
|
import * as TNoti from "./src/noti";
|
|
36
36
|
import * as TMyoa from "./src/myoa";
|
|
37
|
+
import * as TCron from "./src/cron";
|
|
37
38
|
|
|
38
39
|
export {
|
|
39
40
|
Const,
|
|
@@ -74,5 +75,6 @@ export {
|
|
|
74
75
|
TZbhd,
|
|
75
76
|
TZfht,
|
|
76
77
|
TZfsq,
|
|
77
|
-
TMyoa
|
|
78
|
+
TMyoa,
|
|
79
|
+
TCron
|
|
78
80
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { IPathResponse } from "../core/IPathResponse";
|
|
2
|
+
import { TFlowDataResponse } from "../flow/IFlowDataResponse";
|
|
3
|
+
import { IDictResponse, IPartResponse, IUnitResponse, IUserLiteResponse } from "../core";
|
|
4
|
+
import _ from "lodash";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
*后端已校验
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export interface ICronMainResponse {
|
|
11
|
+
whoBuild: number; //#pk
|
|
12
|
+
userIndx: number; //#pk
|
|
13
|
+
notiIndx: number; //#pk
|
|
14
|
+
|
|
15
|
+
parentID: number;
|
|
16
|
+
hashCode: number;
|
|
17
|
+
dataLevl: number;
|
|
18
|
+
dataStat: number;
|
|
19
|
+
dataOrdr: number;
|
|
20
|
+
dataDate: number;
|
|
21
|
+
dataTime: number;
|
|
22
|
+
dataHide: number;
|
|
23
|
+
dataFrom: number;
|
|
24
|
+
kjndKJQJ: number;
|
|
25
|
+
dataGUID: string;
|
|
26
|
+
mastName: string;
|
|
27
|
+
mastGUID: string;
|
|
28
|
+
createBy: string;
|
|
29
|
+
createAt: number;
|
|
30
|
+
updateBy: string;
|
|
31
|
+
updateAt: number;
|
|
32
|
+
deleteBy: string;
|
|
33
|
+
deleteAt: number;
|
|
34
|
+
publicEd: number;
|
|
35
|
+
publicAt: number;
|
|
36
|
+
publicBy: string; //发布单位
|
|
37
|
+
publicTo: string;
|
|
38
|
+
entityID: string;
|
|
39
|
+
notiStat: number;
|
|
40
|
+
notiDate: number;
|
|
41
|
+
notiCode: string;
|
|
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;
|
|
55
|
+
sysClasc: number;
|
|
56
|
+
sysClasn: string;
|
|
57
|
+
everyOne: number;
|
|
58
|
+
menuUUID: string;
|
|
59
|
+
sysPartc: number;
|
|
60
|
+
sourceND: number;
|
|
61
|
+
unitMain: number;
|
|
62
|
+
deptMain: number;
|
|
63
|
+
flowUndo: number;
|
|
64
|
+
flowText: string;
|
|
65
|
+
notiBody: string;
|
|
66
|
+
replyTxt: string;
|
|
67
|
+
notiPara: string;
|
|
68
|
+
notiKJND: number;
|
|
69
|
+
notiKJQJ: number;
|
|
70
|
+
menuName: string;
|
|
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[];
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export class TCronMainResponse implements ICronMainResponse {
|
|
131
|
+
fileName: string = "";
|
|
132
|
+
fileType: number = 0;
|
|
133
|
+
fileArea: number = 0;
|
|
134
|
+
whoBuild: number = 0;
|
|
135
|
+
userIndx: number = 0;
|
|
136
|
+
notiIndx: number = 0;
|
|
137
|
+
|
|
138
|
+
parentID: number = 0;
|
|
139
|
+
hashCode: number = 0;
|
|
140
|
+
dataLevl: number = 0;
|
|
141
|
+
dataStat: number = 0;
|
|
142
|
+
dataOrdr: number = 0;
|
|
143
|
+
dataDate: number = 0;
|
|
144
|
+
dataTime: number = 0;
|
|
145
|
+
dataHide: number = 0;
|
|
146
|
+
dataFrom: number = 0;
|
|
147
|
+
kjndKJQJ: number = 0;
|
|
148
|
+
dataGUID: string = "";
|
|
149
|
+
mastName: string = "";
|
|
150
|
+
mastGUID: string = "";
|
|
151
|
+
createBy: string = "";
|
|
152
|
+
createAt: number = 0;
|
|
153
|
+
updateBy: string = "";
|
|
154
|
+
updateAt: number = 0;
|
|
155
|
+
deleteBy: string = "";
|
|
156
|
+
deleteAt: number = 0;
|
|
157
|
+
publicEd: number = 0;
|
|
158
|
+
publicAt: number = 0;
|
|
159
|
+
publicBy: string = "";
|
|
160
|
+
publicTo: string = "";
|
|
161
|
+
entityID: string = "";
|
|
162
|
+
notiStat: number = 0;
|
|
163
|
+
notiDate: number = 0;
|
|
164
|
+
notiCode: string = "";
|
|
165
|
+
pathSize: number = 0;
|
|
166
|
+
userSize: number = 0;
|
|
167
|
+
readSize: number = 0;
|
|
168
|
+
printCnt: number = 0;
|
|
169
|
+
fetchCnt: number = 0;
|
|
170
|
+
partText: string = "";
|
|
171
|
+
typeText: string = "";
|
|
172
|
+
notiName: string = "";
|
|
173
|
+
notiMemo: string = "";
|
|
174
|
+
deadLine: number = 0;
|
|
175
|
+
deadDate: number = 0; //项目完成时间
|
|
176
|
+
deadTime: number = 0;
|
|
177
|
+
canClose: number = 0;
|
|
178
|
+
sysClasc: number = 0;
|
|
179
|
+
sysClasn: string = "";
|
|
180
|
+
everyOne: number = 0;
|
|
181
|
+
menuUUID: string = "";
|
|
182
|
+
sysPartc: number = 0;
|
|
183
|
+
sourceND: number = 0;
|
|
184
|
+
sourceDW: string = "";
|
|
185
|
+
unitText: string = "";
|
|
186
|
+
unitMain: number = 0;
|
|
187
|
+
deptMain: number = 0;
|
|
188
|
+
flowUndo: number = 0;
|
|
189
|
+
flowText: string = "";
|
|
190
|
+
notiBody: string = "";
|
|
191
|
+
replyTxt: string = "";
|
|
192
|
+
notiPara: string = "";
|
|
193
|
+
notiKJND: number = 0;
|
|
194
|
+
notiKJQJ: number = 0;
|
|
195
|
+
menuName: string = "";
|
|
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[] = [];
|
|
247
|
+
|
|
248
|
+
constructor(card: any = {}) {
|
|
249
|
+
if (card) {
|
|
250
|
+
_.merge(this, _.pick(card, Object.keys(this)));
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
static toFlowDatas(notis: TNotiMainResponse[]): TFlowDataResponse[] {
|
|
255
|
+
return notis.map((u) => this.toFlowData(u));
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
static toFlowData(aNoti: TNotiMainResponse): TFlowDataResponse {
|
|
259
|
+
const result = new TFlowDataResponse();
|
|
260
|
+
result.whoBuild = aNoti.whoBuild;
|
|
261
|
+
result.userIndx = aNoti.userIndx;
|
|
262
|
+
result.flowMain = aNoti.flowMain; //#flowmain=0
|
|
263
|
+
result.flowNode = aNoti.flowNode; //#flownode=0
|
|
264
|
+
result.entityID = aNoti.entityID;
|
|
265
|
+
result.billMain = aNoti.notiIndx;
|
|
266
|
+
result.billCode = aNoti.notiCode;
|
|
267
|
+
result.billMemo = "";
|
|
268
|
+
result.billUses = "";
|
|
269
|
+
result.ysxmText = "";
|
|
270
|
+
result.outMoney = 0;
|
|
271
|
+
result.notified = aNoti.notified;
|
|
272
|
+
result.createAt = aNoti.createAt;
|
|
273
|
+
result.mastName = aNoti.mastName;
|
|
274
|
+
result.createBy = aNoti.createBy;
|
|
275
|
+
result.unitMain = aNoti.unitMain;
|
|
276
|
+
result.deptMain = aNoti.deptMain;
|
|
277
|
+
result.flowStat = aNoti.notiStat;
|
|
278
|
+
result.menuUUID = aNoti.menuUUID;
|
|
279
|
+
return result;
|
|
280
|
+
}
|
|
281
|
+
}
|