@ningboyz/types 1.4.117 → 1.4.119

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
3
  "type": "module",
4
- "version": "1.4.117",
4
+ "version": "1.4.119",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -4,7 +4,7 @@ import _ from "lodash";
4
4
  import { IPathResponse } from "../core/IPathResponse";
5
5
  import { TFlowDataResponse } from "../flow/IFlowDataResponse";
6
6
  import * as Const from "../const";
7
- import { TCore } from "../index.ts";
7
+ import {TCore, TStim} from "../index.ts";
8
8
  import { IMyoaMainResponse } from "../myoa/IMyoaMainResponse.ts";
9
9
  /**
10
10
  车辆保险:dataType=1加001,使用单位(unitDict),投保单位(dddwText),生效日期(handleAt),到期日期(autoBxrq)
@@ -159,7 +159,8 @@ export interface IDataResponse {
159
159
  wContact: string;
160
160
  }
161
161
 
162
- export class TDataResponse implements IDataResponse {
162
+ type Type = IDataResponse;
163
+ export class TDataResponse implements Type {
163
164
  whoBuild: number = 0;
164
165
  userIndx: number = 0;
165
166
  dataIndx: number = 0;
@@ -298,7 +299,7 @@ export class TDataResponse implements IDataResponse {
298
299
  cardMastText: string = "";
299
300
  wContact: string = "";
300
301
 
301
- static toFlowData(card: TDataResponse): TFlowDataResponse {
302
+ static toFlowData(card: Type): TFlowDataResponse {
302
303
  let result = new TFlowDataResponse();
303
304
  result.whoBuild = card.whoBuild;
304
305
  result.userIndx = card.userIndx;
@@ -321,11 +322,11 @@ export class TDataResponse implements IDataResponse {
321
322
  return result;
322
323
  }
323
324
 
324
- static toFlowDatas(card: IDataResponse[]): TFlowDataResponse[] {
325
+ static toFlowDatas(card: Type[]): TFlowDataResponse[] {
325
326
  return card.map((u) => this.toFlowData(u));
326
327
  }
327
328
 
328
- static toTravel(card: IDataResponse): TCore.ISysTravelResponse {
329
+ static toTravel(card: Type): TCore.ISysTravelResponse {
329
330
  const travel = new TCore.TSysTravelResponse();
330
331
  travel.whoBuild = card.whoBuild;
331
332
  travel.flowMain = card.flowMain;
@@ -340,7 +341,7 @@ export class TDataResponse implements IDataResponse {
340
341
  }
341
342
 
342
343
  /** 转换成记录日志需要的数据(第一层,不包含菜单) */
343
- static toTravelData(card?: IDataResponse | IDataResponse[]): TCore.ISysTravelResponse[] {
344
+ static toTravelData(card?: Type | Type[]): TCore.ISysTravelResponse[] {
344
345
  if (_.isNil(card)) {
345
346
  return [];
346
347
  }
@@ -352,9 +353,20 @@ export class TDataResponse implements IDataResponse {
352
353
  return [this.toTravel(card)];
353
354
  }
354
355
 
355
- constructor(card: Partial<IDataResponse> = {}) {
356
+ constructor(card: Partial<Type> = {}) {
356
357
  if (card) {
357
358
  _.merge(this, _.pick(card, Object.keys(this)));
358
359
  }
359
360
  }
361
+
362
+ static toWldyPrintData(noti: Type) {
363
+ const data = new TStim.TStimulsoftPrintData();
364
+ data.billMain = noti.dataIndx;
365
+ data.menuUUID = noti.menuUUID;
366
+ return data;
367
+ }
368
+
369
+ static toWldyPrintDatas(listNoti: Type[]) {
370
+ return listNoti.map((u) => this.toWldyPrintData(u));
371
+ }
360
372
  }
@@ -1,5 +1,5 @@
1
1
  import _ from "lodash";
2
- import { Const, TCore } from "..";
2
+ import {Const, TCore, TStim} from "..";
3
3
  import { IDeptResponse, IDictResponse, ILaidResponse, IPathResponse, IUnitResponse, IUserLiteResponse } from "../core";
4
4
  import { TFlowDataResponse } from "../flow";
5
5
  import { ICardBookResponse } from "./ICardBookResponse";
@@ -451,8 +451,8 @@ export interface ICardMainResponse {
451
451
 
452
452
  ywdjIndx: number;
453
453
  }
454
-
455
- export class TCardMainResponse implements ICardMainResponse {
454
+ type Type = TCardMainResponse
455
+ export class TCardMainResponse implements Type {
456
456
  whoBuild: number = 0;
457
457
  cardIndx: number = 0;
458
458
  interval: number = 0;
@@ -722,13 +722,13 @@ export class TCardMainResponse implements ICardMainResponse {
722
722
 
723
723
  myoaStat: number = 0;
724
724
 
725
- constructor(card: any = {}) {
725
+ constructor(card: Partial<Type> = {}) {
726
726
  if (card) {
727
727
  _.merge(this, _.pick(card, Object.keys(this)));
728
728
  }
729
729
  }
730
730
 
731
- static toFlowData(card: ICardMainResponse): TFlowDataResponse {
731
+ static toFlowData(card: Type): TFlowDataResponse {
732
732
  const result = new TFlowDataResponse();
733
733
  result.whoBuild = card.whoBuild;
734
734
  result.flowMain = card.flowMain;
@@ -748,11 +748,11 @@ export class TCardMainResponse implements ICardMainResponse {
748
748
  return result;
749
749
  }
750
750
 
751
- static toFlowDatas(card: ICardMainResponse[]): TFlowDataResponse[] {
751
+ static toFlowDatas(card: Type[]): TFlowDataResponse[] {
752
752
  return card.map((u) => this.toFlowData(u));
753
753
  }
754
754
 
755
- static toTravel(card: ICardMainResponse): TCore.ISysTravelResponse {
755
+ static toTravel(card: Type): TCore.ISysTravelResponse {
756
756
  const travel = new TCore.TSysTravelResponse();
757
757
  travel.whoBuild = card.whoBuild;
758
758
  travel.flowMain = card.flowMain;
@@ -767,7 +767,7 @@ export class TCardMainResponse implements ICardMainResponse {
767
767
  }
768
768
 
769
769
  /** 转换成记录日志需要的数据(第一层,不包含菜单) */
770
- static toTravelData(card?: ICardMainResponse | ICardMainResponse[]): TCore.ISysTravelResponse[] {
770
+ static toTravelData(card?: Type | Type[]): TCore.ISysTravelResponse[] {
771
771
  if (_.isNil(card)) {
772
772
  return [];
773
773
  }
@@ -778,4 +778,15 @@ export class TCardMainResponse implements ICardMainResponse {
778
778
  }
779
779
  return [this.toTravel(card)];
780
780
  }
781
+
782
+ static toWldyPrintData(noti: Type) {
783
+ const data = new TStim.TStimulsoftPrintData();
784
+ data.billMain = noti.cardIndx;
785
+ data.menuUUID = noti.menuUUID;
786
+ return data;
787
+ }
788
+
789
+ static toWldyPrintDatas(listNoti: Type[]) {
790
+ return listNoti.map((u) => this.toWldyPrintData(u));
791
+ }
781
792
  }
@@ -1,5 +1,5 @@
1
1
  import _ from "lodash";
2
- import { Const, TCore, THzcb } from "..";
2
+ import {Const, TCore, THzcb, TStim} from "..";
3
3
  import { TFlowDataResponse } from "../flow";
4
4
 
5
5
  export interface IHzcbMainResponse {
@@ -150,8 +150,8 @@ export interface IHzcbMainResponse {
150
150
  listNode: THzcb.IHzcbNodeResponse[];
151
151
  listLock: THzcb.IHzcbMainResponse[];
152
152
  }
153
-
154
- export class THzcbMainResponse implements IHzcbMainResponse {
153
+ type Type = IHzcbMainResponse;
154
+ export class THzcbMainResponse implements Type {
155
155
  xmxzText: string = "";
156
156
  typeText: string = "";
157
157
  whoBuild: number = 0;
@@ -281,11 +281,11 @@ export class THzcbMainResponse implements IHzcbMainResponse {
281
281
  }
282
282
  }
283
283
 
284
- static toFlowDatas(card: THzcbMainResponse[]): TFlowDataResponse[] {
284
+ static toFlowDatas(card: Type[]): TFlowDataResponse[] {
285
285
  return card.map((u) => this.toFlowData(u));
286
286
  }
287
287
 
288
- static toFlowData(xmyk: THzcbMainResponse): TFlowDataResponse {
288
+ static toFlowData(xmyk: Type): TFlowDataResponse {
289
289
  let result = new TFlowDataResponse();
290
290
  result.whoBuild = xmyk.whoBuild;
291
291
  result.userIndx = xmyk.userIndx;
@@ -306,4 +306,15 @@ export class THzcbMainResponse implements IHzcbMainResponse {
306
306
  result.flowStat = xmyk.hzcbStat;
307
307
  return result;
308
308
  }
309
+
310
+ static toWldyPrintData(noti: Type) {
311
+ const data = new TStim.TStimulsoftPrintData();
312
+ data.billMain = noti.hzcbIndx;
313
+ data.menuUUID = noti.menuUUID;
314
+ return data;
315
+ }
316
+
317
+ static toWldyPrintDatas(listNoti: Type[]) {
318
+ return listNoti.map((u) => this.toWldyPrintData(u));
319
+ }
309
320
  }
@@ -1,4 +1,4 @@
1
- import { THzcb, TCore } from "..";
1
+ import {THzcb, TCore, TStim} from "..";
2
2
  import { TFlowDataResponse } from "../flow";
3
3
  import _ from "lodash";
4
4
 
@@ -83,8 +83,8 @@ export interface IHzcbNdjhResponse {
83
83
  /** 关联结果 */
84
84
  listFrom: THzcb.IHzcbMainResponse[];
85
85
  }
86
-
87
- export class THzcbNdjhResponse implements IHzcbNdjhResponse {
86
+ type Type = IHzcbNdjhResponse
87
+ export class THzcbNdjhResponse implements Type {
88
88
  whoBuild: number = 0;
89
89
  userIndx: number = 0;
90
90
  ndjhIndx: number = 0;
@@ -158,11 +158,11 @@ export class THzcbNdjhResponse implements IHzcbNdjhResponse {
158
158
  }
159
159
  }
160
160
 
161
- static toFlowDatas(notis: THzcbNdjhResponse[]): TFlowDataResponse[] {
161
+ static toFlowDatas(notis: Type[]): TFlowDataResponse[] {
162
162
  return notis.map((u) => this.toFlowData(u));
163
163
  }
164
164
 
165
- static toFlowData(ndjh: THzcbNdjhResponse): TFlowDataResponse {
165
+ static toFlowData(ndjh: Type): TFlowDataResponse {
166
166
  const result = new TFlowDataResponse();
167
167
  result.whoBuild = ndjh.whoBuild;
168
168
  result.userIndx = ndjh.userIndx;
@@ -185,4 +185,15 @@ export class THzcbNdjhResponse implements IHzcbNdjhResponse {
185
185
  result.flowStat = ndjh.ndjhStat;
186
186
  return result;
187
187
  }
188
+
189
+ static toWldyPrintData(noti: Type) {
190
+ const data = new TStim.TStimulsoftPrintData();
191
+ data.billMain = noti.ndjhIndx;
192
+ data.menuUUID = noti.menuUUID;
193
+ return data;
194
+ }
195
+
196
+ static toWldyPrintDatas(listNoti: Type[]) {
197
+ return listNoti.map((u) => this.toWldyPrintData(u));
198
+ }
188
199
  }
@@ -1,4 +1,4 @@
1
- import { THzcb, TCore } from "..";
1
+ import {THzcb, TCore, TStim} from "..";
2
2
  import { TFlowDataResponse } from "../flow";
3
3
  import _ from "lodash";
4
4
 
@@ -90,8 +90,8 @@ export interface IHzcbTdssResponse {
90
90
  /** 关联项目 */
91
91
  listFrom: THzcb.IHzcbMainResponse[];
92
92
  }
93
-
94
- export class THzcbTdssResponse implements IHzcbTdssResponse {
93
+ type Type = IHzcbTdssResponse;
94
+ export class THzcbTdssResponse implements Type {
95
95
  whoBuild: number = 0;
96
96
  userIndx: number = 0;
97
97
  tdssIndx: number = 0;
@@ -170,11 +170,11 @@ export class THzcbTdssResponse implements IHzcbTdssResponse {
170
170
  }
171
171
  }
172
172
 
173
- static toFlowDatas(notis: THzcbTdssResponse[]): TFlowDataResponse[] {
173
+ static toFlowDatas(notis: Type[]): TFlowDataResponse[] {
174
174
  return notis.map((u) => this.toFlowData(u));
175
175
  }
176
176
 
177
- static toFlowData(xmss: THzcbTdssResponse): TFlowDataResponse {
177
+ static toFlowData(xmss: Type): TFlowDataResponse {
178
178
  const result = new TFlowDataResponse();
179
179
  result.whoBuild = xmss.whoBuild;
180
180
  result.userIndx = xmss.userIndx;
@@ -197,4 +197,15 @@ export class THzcbTdssResponse implements IHzcbTdssResponse {
197
197
  result.flowStat = xmss.tdssStat;
198
198
  return result;
199
199
  }
200
+
201
+ static toWldyPrintData(noti: Type) {
202
+ const data = new TStim.TStimulsoftPrintData();
203
+ data.billMain = noti.tdssIndx;
204
+ data.menuUUID = noti.menuUUID;
205
+ return data;
206
+ }
207
+
208
+ static toWldyPrintDatas(listNoti: Type[]) {
209
+ return listNoti.map((u) => this.toWldyPrintData(u));
210
+ }
200
211
  }
@@ -1,4 +1,4 @@
1
- import { THzcb, TCore } from "..";
1
+ import {THzcb, TCore, TStim} from "..";
2
2
  import { TFlowDataResponse } from "../flow";
3
3
  import _ from "lodash";
4
4
 
@@ -83,8 +83,8 @@ export interface IHzcbXmssResponse {
83
83
  /** 关联年度计划 */
84
84
  listFrom: THzcb.IHzcbNdjhResponse[];
85
85
  }
86
-
87
- export class THzcbXmssResponse implements IHzcbXmssResponse {
86
+ type Type = IHzcbXmssResponse;
87
+ export class THzcbXmssResponse implements Type {
88
88
  whoBuild: number = 0;
89
89
  userIndx: number = 0;
90
90
  xmssIndx: number = 0;
@@ -152,17 +152,17 @@ export class THzcbXmssResponse implements IHzcbXmssResponse {
152
152
  listBill: THzcb.IHzcbXmssBillResponse[] = [];
153
153
  listFrom: THzcb.IHzcbNdjhResponse[] = [];
154
154
 
155
- constructor(response: any = {}) {
155
+ constructor(response: Partial<Type> = {}) {
156
156
  if (response) {
157
157
  _.merge(this, _.pick(response, Object.keys(this)));
158
158
  }
159
159
  }
160
160
 
161
- static toFlowDatas(notis: THzcbXmssResponse[]): TFlowDataResponse[] {
161
+ static toFlowDatas(notis: Type[]): TFlowDataResponse[] {
162
162
  return notis.map((u) => this.toFlowData(u));
163
163
  }
164
164
 
165
- static toFlowData(xmss: THzcbXmssResponse): TFlowDataResponse {
165
+ static toFlowData(xmss: Type): TFlowDataResponse {
166
166
  const result = new TFlowDataResponse();
167
167
  result.whoBuild = xmss.whoBuild;
168
168
  result.userIndx = xmss.userIndx;
@@ -185,4 +185,15 @@ export class THzcbXmssResponse implements IHzcbXmssResponse {
185
185
  result.flowStat = xmss.xmssStat;
186
186
  return result;
187
187
  }
188
+
189
+ static toWldyPrintData(noti: Type) {
190
+ const data = new TStim.TStimulsoftPrintData();
191
+ data.billMain = noti.xmssIndx;
192
+ data.menuUUID = noti.menuUUID;
193
+ return data;
194
+ }
195
+
196
+ static toWldyPrintDatas(listNoti: Type[]) {
197
+ return listNoti.map((u) => this.toWldyPrintData(u));
198
+ }
188
199
  }
@@ -1,4 +1,4 @@
1
- import { THznj, TCore } from "..";
1
+ import {THznj, TCore, TStim} from "..";
2
2
  import _ from "lodash";
3
3
 
4
4
  export interface IHznjBaseResponse {
@@ -79,7 +79,8 @@ export interface IHznjBaseResponse {
79
79
  listRange: THznj.IHznjBaseItemResponse[];
80
80
  }
81
81
 
82
- export class THznjBaseResponse implements IHznjBaseResponse {
82
+ type Type = IHznjBaseResponse
83
+ export class THznjBaseResponse implements Type {
83
84
  whoBuild: number = 0;
84
85
  userIndx: number = 0;
85
86
  baseIndx: number = 0;
@@ -148,9 +149,20 @@ export class THznjBaseResponse implements IHznjBaseResponse {
148
149
  /**检测依据范围 */
149
150
  listRange: THznj.IHznjBaseItemResponse[] = [];
150
151
 
151
- constructor(data: Partial<IHznjBaseResponse> = {}) {
152
+ constructor(data: Partial<Type> = {}) {
152
153
  if (data) {
153
154
  _.merge(this, _.pick(data, Object.keys(this)));
154
155
  }
155
156
  }
157
+
158
+ static toWldyPrintData(noti: Type) {
159
+ const data = new TStim.TStimulsoftPrintData();
160
+ data.billMain = noti.baseIndx;
161
+ data.menuUUID = noti.menuUUID;
162
+ return data;
163
+ }
164
+
165
+ static toWldyPrintDatas(listNoti: Type[]) {
166
+ return listNoti.map((u) => this.toWldyPrintData(u));
167
+ }
156
168
  }
@@ -1,4 +1,4 @@
1
- import { THznj, TCore } from "..";
1
+ import {THznj, TCore, TStim} from "..";
2
2
  import _ from "lodash";
3
3
  import { TFlowDataResponse } from "../flow";
4
4
 
@@ -87,8 +87,8 @@ export interface IHznjDzqrResponse {
87
87
  /** 关联项目 */
88
88
  listFrom: THznj.IHznjXmsyResponse[];
89
89
  }
90
-
91
- export class THznjDzqrResponse implements IHznjDzqrResponse {
90
+ type Type = IHznjDzqrResponse;
91
+ export class THznjDzqrResponse implements Type {
92
92
  whoBuild: number = 0;
93
93
  userIndx: number = 0;
94
94
  dzqrIndx: number = 0;
@@ -161,13 +161,13 @@ export class THznjDzqrResponse implements IHznjDzqrResponse {
161
161
  listPath: TCore.IPathResponse[] = [];
162
162
  listFrom: THznj.IHznjXmsyResponse[] = [];
163
163
 
164
- constructor(data: Partial<IHznjDzqrResponse> = {}) {
164
+ constructor(data: Partial<Type> = {}) {
165
165
  if (data) {
166
166
  _.merge(this, _.pick(data, Object.keys(this)));
167
167
  }
168
168
  }
169
169
 
170
- static toFlowData(data: IHznjDzqrResponse): TFlowDataResponse {
170
+ static toFlowData(data: Type): TFlowDataResponse {
171
171
  const result = new TFlowDataResponse();
172
172
  result.whoBuild = data.whoBuild;
173
173
  result.userIndx = data.userIndx;
@@ -188,7 +188,18 @@ export class THznjDzqrResponse implements IHznjDzqrResponse {
188
188
  return result;
189
189
  }
190
190
 
191
- static toFlowDatas(list: IHznjDzqrResponse[]): TFlowDataResponse[] {
191
+ static toWldyPrintData(noti: Type) {
192
+ const data = new TStim.TStimulsoftPrintData();
193
+ data.billMain = noti.dzqrIndx;
194
+ data.menuUUID = noti.menuUUID;
195
+ return data;
196
+ }
197
+
198
+ static toWldyPrintDatas(listNoti: Type[]) {
199
+ return listNoti.map((u) => this.toWldyPrintData(u));
200
+ }
201
+
202
+ static toFlowDatas(list: Type[]): TFlowDataResponse[] {
192
203
  return list.map((data) => this.toFlowData(data));
193
204
  }
194
205
  }
@@ -1,4 +1,4 @@
1
- import { THznj, TCore } from "..";
1
+ import {THznj, TCore, TStim} from "..";
2
2
  import _ from "lodash";
3
3
  import { TFlowDataResponse } from "../flow";
4
4
 
@@ -95,8 +95,8 @@ export interface IHznjMainResponse {
95
95
  listBill: THznj.IHznjBillResponse[];
96
96
  listFrom: THznj.IHznjNotiResponse[];
97
97
  }
98
-
99
- export class THznjMainResponse implements IHznjMainResponse {
98
+ type Type = IHznjMainResponse;
99
+ export class THznjMainResponse implements Type {
100
100
  whoBuild: number = 0;
101
101
  userIndx: number = 0;
102
102
  hznjIndx: number = 0;
@@ -173,13 +173,13 @@ export class THznjMainResponse implements IHznjMainResponse {
173
173
  listBill: THznj.IHznjBillResponse[] = [];
174
174
  listFrom: THznj.IHznjNotiResponse[] = [];
175
175
 
176
- constructor(data: Partial<IHznjMainResponse> = {}) {
176
+ constructor(data: Partial<Type> = {}) {
177
177
  if (data) {
178
178
  _.merge(this, _.pick(data, Object.keys(this)));
179
179
  }
180
180
  }
181
181
 
182
- static toFlowData(data: IHznjMainResponse): TFlowDataResponse {
182
+ static toFlowData(data: Type): TFlowDataResponse {
183
183
  const result = new TFlowDataResponse();
184
184
  result.whoBuild = data.whoBuild;
185
185
  result.userIndx = data.userIndx;
@@ -200,7 +200,18 @@ export class THznjMainResponse implements IHznjMainResponse {
200
200
  return result;
201
201
  }
202
202
 
203
- static toFlowDatas(list: IHznjMainResponse[]): TFlowDataResponse[] {
203
+ static toFlowDatas(list: Type[]): TFlowDataResponse[] {
204
204
  return list.map((data) => this.toFlowData(data));
205
205
  }
206
+
207
+ static toWldyPrintData(noti: Type) {
208
+ const data = new TStim.TStimulsoftPrintData();
209
+ data.billMain = noti.hznjIndx;
210
+ data.menuUUID = noti.menuUUID;
211
+ return data;
212
+ }
213
+
214
+ static toWldyPrintDatas(listNoti: Type[]) {
215
+ return listNoti.map((u) => this.toWldyPrintData(u));
216
+ }
206
217
  }
@@ -1,5 +1,6 @@
1
1
  import _ from "lodash";
2
2
  import { TFlowDataResponse } from "../flow";
3
+ import { TStim } from "../index.ts";
3
4
 
4
5
  export interface IHznjNotiBillResponse {
5
6
  whoBuild: number;
@@ -124,8 +125,8 @@ export interface IHznjNotiBillResponse {
124
125
  flowMain: number;
125
126
  flowNode: number;
126
127
  }
127
-
128
- export class THznjNotiBillResponse implements IHznjNotiBillResponse {
128
+ type Type = IHznjNotiBillResponse;
129
+ export class THznjNotiBillResponse implements Type {
129
130
  whoBuild: number = 0;
130
131
  userIndx: number = 0;
131
132
  notiIndx: number = 0;
@@ -228,13 +229,13 @@ export class THznjNotiBillResponse implements IHznjNotiBillResponse {
228
229
  /**判定依据 */
229
230
  accorTxt: string = "";
230
231
 
231
- constructor(data: Partial<IHznjNotiBillResponse> = {}) {
232
+ constructor(data: Partial<Type> = {}) {
232
233
  if (data) {
233
234
  _.merge(this, _.pick(data, Object.keys(this)));
234
235
  }
235
236
  }
236
237
 
237
- static toFlowData(data: IHznjNotiBillResponse): TFlowDataResponse {
238
+ static toFlowData(data: Type): TFlowDataResponse {
238
239
  const result = new TFlowDataResponse();
239
240
  result.whoBuild = data.whoBuild;
240
241
  result.userIndx = data.userIndx;
@@ -255,7 +256,18 @@ export class THznjNotiBillResponse implements IHznjNotiBillResponse {
255
256
  return result;
256
257
  }
257
258
 
258
- static toFlowDatas(list: IHznjNotiBillResponse[]): TFlowDataResponse[] {
259
+ static toFlowDatas(list: Type[]): TFlowDataResponse[] {
259
260
  return list.map((data) => this.toFlowData(data));
260
261
  }
262
+
263
+ static toWldyPrintData(noti: Type) {
264
+ const data = new TStim.TStimulsoftPrintData();
265
+ data.billMain = noti.idEntity;
266
+ data.menuUUID = noti.menuUUID;
267
+ return data;
268
+ }
269
+
270
+ static toWldyPrintDatas(listNoti: Type[]) {
271
+ return listNoti.map((u) => this.toWldyPrintData(u));
272
+ }
261
273
  }
@@ -1,4 +1,4 @@
1
- import { THznj, TCore, Const } from "..";
1
+ import {THznj, TCore, Const, TStim} from "..";
2
2
  import _ from "lodash";
3
3
  import { TFlowDataResponse } from "../flow";
4
4
 
@@ -83,7 +83,8 @@ export interface IHznjRwqxResponse {
83
83
  listFrom: THznj.IHznjXmsyResponse[];
84
84
  }
85
85
 
86
- export class THznjRwqxResponse implements IHznjRwqxResponse {
86
+ type Type = IHznjRwqxResponse
87
+ export class THznjRwqxResponse implements Type {
87
88
  whoBuild: number = 0;
88
89
  userIndx: number = 0;
89
90
  rwqxIndx: number = 0;
@@ -154,13 +155,13 @@ export class THznjRwqxResponse implements IHznjRwqxResponse {
154
155
  listPath: TCore.IPathResponse[] = [];
155
156
  listFrom: THznj.IHznjXmsyResponse[] = [];
156
157
 
157
- constructor(data: Partial<IHznjRwqxResponse> = {}) {
158
+ constructor(data: Partial<Type> = {}) {
158
159
  if (data) {
159
160
  _.merge(this, _.pick(data, Object.keys(this)));
160
161
  }
161
162
  }
162
163
 
163
- static toFlowData(zcbd: IHznjRwqxResponse): TFlowDataResponse {
164
+ static toFlowData(zcbd: Type): TFlowDataResponse {
164
165
  const result = new TFlowDataResponse();
165
166
  result.whoBuild = zcbd.whoBuild;
166
167
  result.userIndx = zcbd.userIndx;
@@ -181,7 +182,18 @@ export class THznjRwqxResponse implements IHznjRwqxResponse {
181
182
  return result;
182
183
  }
183
184
 
184
- static toFlowDatas(zcbds: IHznjRwqxResponse[]): TFlowDataResponse[] {
185
+ static toFlowDatas(zcbds: Type[]): TFlowDataResponse[] {
185
186
  return zcbds.map((u) => this.toFlowData(u));
186
187
  }
188
+
189
+ static toWldyPrintData(noti: Type) {
190
+ const data = new TStim.TStimulsoftPrintData();
191
+ data.billMain = noti.rwqxIndx;
192
+ data.menuUUID = noti.menuUUID;
193
+ return data;
194
+ }
195
+
196
+ static toWldyPrintDatas(listNoti: Type[]) {
197
+ return listNoti.map((u) => this.toWldyPrintData(u));
198
+ }
187
199
  }
@@ -1,4 +1,4 @@
1
- import { THznj, TCore } from "..";
1
+ import {THznj, TCore, TStim} from "..";
2
2
  import _ from "lodash";
3
3
  import { TFlowDataResponse } from "../flow";
4
4
 
@@ -86,7 +86,8 @@ export interface IHznjXmjjResponse {
86
86
  listFrom: THznj.IHznjXmsyResponse[];
87
87
  }
88
88
 
89
- export class THznjXmjjResponse implements IHznjXmjjResponse {
89
+ type Type = IHznjXmjjResponse;
90
+ export class THznjXmjjResponse implements Type {
90
91
  whoBuild: number = 0;
91
92
  userIndx: number = 0;
92
93
  xmjjIndx: number = 0;
@@ -159,13 +160,13 @@ export class THznjXmjjResponse implements IHznjXmjjResponse {
159
160
  listItem: THznj.IHznjXmjjItemResponse[] = [];
160
161
  listFrom: THznj.IHznjXmsyResponse[] = [];
161
162
 
162
- constructor(data: Partial<IHznjXmjjResponse> = {}) {
163
+ constructor(data: Partial<Type> = {}) {
163
164
  if (data) {
164
165
  _.merge(this, _.pick(data, Object.keys(this)));
165
166
  }
166
167
  }
167
168
 
168
- static toFlowData(data: IHznjXmjjResponse): TFlowDataResponse {
169
+ static toFlowData(data: Type): TFlowDataResponse {
169
170
  const result = new TFlowDataResponse();
170
171
  result.whoBuild = data.whoBuild;
171
172
  result.userIndx = data.userIndx;
@@ -186,7 +187,18 @@ export class THznjXmjjResponse implements IHznjXmjjResponse {
186
187
  return result;
187
188
  }
188
189
 
189
- static toFlowDatas(list: IHznjXmjjResponse[]): TFlowDataResponse[] {
190
+ static toFlowDatas(list: Type[]): TFlowDataResponse[] {
190
191
  return list.map((data) => this.toFlowData(data));
191
192
  }
193
+
194
+ static toWldyPrintData(noti: Type) {
195
+ const data = new TStim.TStimulsoftPrintData();
196
+ data.billMain = noti.xmjjIndx;
197
+ data.menuUUID = noti.menuUUID;
198
+ return data;
199
+ }
200
+
201
+ static toWldyPrintDatas(listNoti: Type[]) {
202
+ return listNoti.map((u) => this.toWldyPrintData(u));
203
+ }
192
204
  }
@@ -1,4 +1,4 @@
1
- import { THznj, TCore } from "..";
1
+ import {THznj, TCore, TStim} from "..";
2
2
  import _ from "lodash";
3
3
  import { TFlowDataResponse } from "../flow";
4
4
 
@@ -160,7 +160,7 @@ export interface IHznjXmsyResponse {
160
160
  * */
161
161
  xmjjIndx: number;
162
162
  }
163
-
163
+ type Type = IHznjXmsyResponse;
164
164
  export class THznjXmsyResponse implements IHznjXmsyResponse {
165
165
  whoBuild: number = 0;
166
166
  userIndx: number = 0;
@@ -280,13 +280,13 @@ export class THznjXmsyResponse implements IHznjXmsyResponse {
280
280
  listWTDW: THznj.IHznjXmsyWtdwResponse[] = [];
281
281
  listNBYH: TCore.IUserLiteResponse[] = [];
282
282
 
283
- constructor(data: Partial<IHznjXmsyResponse> = {}) {
283
+ constructor(data: Partial<Type> = {}) {
284
284
  if (data) {
285
285
  _.merge(this, _.pick(data, Object.keys(this)));
286
286
  }
287
287
  }
288
288
 
289
- static toFlowData(data: IHznjXmsyResponse): TFlowDataResponse {
289
+ static toFlowData(data: Type): TFlowDataResponse {
290
290
  const result = new TFlowDataResponse();
291
291
  result.whoBuild = data.whoBuild;
292
292
  result.userIndx = data.userIndx;
@@ -307,7 +307,18 @@ export class THznjXmsyResponse implements IHznjXmsyResponse {
307
307
  return result;
308
308
  }
309
309
 
310
- static toFlowDatas(list: IHznjXmsyResponse[]): TFlowDataResponse[] {
310
+ static toFlowDatas(list: Type[]): TFlowDataResponse[] {
311
311
  return list.map((data) => this.toFlowData(data));
312
312
  }
313
+
314
+ static toWldyPrintData(noti: Type) {
315
+ const data = new TStim.TStimulsoftPrintData();
316
+ data.billMain = noti.xmsyIndx;
317
+ data.menuUUID = noti.menuUUID;
318
+ return data;
319
+ }
320
+
321
+ static toWldyPrintDatas(listNoti: Type[]) {
322
+ return listNoti.map((u) => this.toWldyPrintData(u));
323
+ }
313
324
  }
@@ -1,4 +1,4 @@
1
- import { THznj, TCore } from "..";
1
+ import {THznj, TCore, TStim} from "..";
2
2
  import _ from "lodash";
3
3
  import { TFlowDataResponse } from "../flow";
4
4
 
@@ -180,4 +180,15 @@ export class THznjZbczResponse implements IHznjZbczResponse {
180
180
  static toFlowDatas(list: IHznjZbczResponse[]): TFlowDataResponse[] {
181
181
  return list.map((data) => this.toFlowData(data));
182
182
  }
183
+
184
+ static toWldyPrintData(noti: IHznjZbczResponse) {
185
+ const data = new TStim.TStimulsoftPrintData();
186
+ data.billMain = noti.zbczIndx;
187
+ data.menuUUID = noti.menuUUID;
188
+ return data;
189
+ }
190
+
191
+ static toWldyPrintDatas(listNoti: IHznjZbczResponse[]) {
192
+ return listNoti.map((u) => this.toWldyPrintData(u));
193
+ }
183
194
  }
@@ -1,4 +1,4 @@
1
- import { THznj, TCore } from "..";
1
+ import {THznj, TCore, TStim} from "..";
2
2
  import _ from "lodash";
3
3
  import { TFlowDataResponse } from "../flow";
4
4
 
@@ -87,7 +87,7 @@ export interface IHznjZbjgResponse {
87
87
  /** 关联录入 */
88
88
  listFrom: THznj.IHznjZblrResponse[];
89
89
  }
90
-
90
+ type Type = IHznjZbjgResponse;
91
91
  export class THznjZbjgResponse implements IHznjZbjgResponse {
92
92
  whoBuild: number = 0;
93
93
  userIndx: number = 0;
@@ -189,4 +189,15 @@ export class THznjZbjgResponse implements IHznjZbjgResponse {
189
189
  static toFlowDatas(list: IHznjZbjgResponse[]): TFlowDataResponse[] {
190
190
  return list.map((data) => this.toFlowData(data));
191
191
  }
192
+
193
+ static toWldyPrintData(noti: Type) {
194
+ const data = new TStim.TStimulsoftPrintData();
195
+ data.billMain = noti.zbjgIndx;
196
+ data.menuUUID = noti.menuUUID;
197
+ return data;
198
+ }
199
+
200
+ static toWldyPrintDatas(listNoti: Type[]) {
201
+ return listNoti.map((u) => this.toWldyPrintData(u));
202
+ }
192
203
  }
@@ -1,4 +1,4 @@
1
- import { THznj, TCore } from "..";
1
+ import {THznj, TCore, TStim} from "..";
2
2
  import _ from "lodash";
3
3
  import { TFlowDataResponse } from "../flow";
4
4
 
@@ -82,6 +82,7 @@ export interface IHznjZblrResponse {
82
82
  listFrom: THznj.IHznjNotiResponse[];
83
83
  }
84
84
 
85
+ type Type = IHznjZblrResponse
85
86
  export class THznjZblrResponse implements IHznjZblrResponse {
86
87
  whoBuild: number = 0;
87
88
  userIndx: number = 0;
@@ -180,4 +181,15 @@ export class THznjZblrResponse implements IHznjZblrResponse {
180
181
  static toFlowDatas(list: IHznjZblrResponse[]): TFlowDataResponse[] {
181
182
  return list.map((data) => this.toFlowData(data));
182
183
  }
184
+
185
+ static toWldyPrintData(noti: Type) {
186
+ const data = new TStim.TStimulsoftPrintData();
187
+ data.billMain = noti.zblrIndx;
188
+ data.menuUUID = noti.menuUUID;
189
+ return data;
190
+ }
191
+
192
+ static toWldyPrintDatas(listNoti: Type[]) {
193
+ return listNoti.map((u) => this.toWldyPrintData(u));
194
+ }
183
195
  }
@@ -1,4 +1,4 @@
1
- import { THznj, TCore } from "..";
1
+ import {THznj, TCore, TStim} from "..";
2
2
  import _ from "lodash";
3
3
  import { TFlowDataResponse } from "../flow";
4
4
 
@@ -92,6 +92,7 @@ export interface IHznjZblyResponse {
92
92
  listFrom: THznj.IHznjZbjgResponse[];
93
93
  }
94
94
 
95
+ type Type = IHznjZblyResponse
95
96
  export class THznjZblyResponse implements IHznjZblyResponse {
96
97
  whoBuild: number = 0;
97
98
  userIndx: number = 0;
@@ -195,4 +196,15 @@ export class THznjZblyResponse implements IHznjZblyResponse {
195
196
  static toFlowDatas(list: IHznjZblyResponse[]): TFlowDataResponse[] {
196
197
  return list.map((data) => this.toFlowData(data));
197
198
  }
199
+
200
+ static toWldyPrintData(noti: Type) {
201
+ const data = new TStim.TStimulsoftPrintData();
202
+ data.billMain = noti.zblyIndx;
203
+ data.menuUUID = noti.menuUUID;
204
+ return data;
205
+ }
206
+
207
+ static toWldyPrintDatas(listNoti: Type[]) {
208
+ return listNoti.map((u) => this.toWldyPrintData(u));
209
+ }
198
210
  }
@@ -1,4 +1,4 @@
1
- import { THznj, TCore } from "..";
1
+ import {THznj, TCore, TStim} from "..";
2
2
  import _ from "lodash";
3
3
  import { TFlowDataResponse } from "../flow";
4
4
 
@@ -83,7 +83,7 @@ export interface IHznjZbthResponse {
83
83
  listFrom: THznj.IHznjZblyResponse[];
84
84
  listItem: THznj.IHznjZbthItemResponse[];
85
85
  }
86
-
86
+ type Type = IHznjZbthResponse
87
87
  export class THznjZbthResponse implements IHznjZbthResponse {
88
88
  whoBuild: number = 0;
89
89
  userIndx: number = 0;
@@ -154,13 +154,13 @@ export class THznjZbthResponse implements IHznjZbthResponse {
154
154
  listFrom: THznj.IHznjZblyResponse[] = [];
155
155
  listItem: THznj.IHznjZbthItemResponse[] = [];
156
156
 
157
- constructor(data: Partial<IHznjZbthResponse> = {}) {
157
+ constructor(data: Partial<Type> = {}) {
158
158
  if (data) {
159
159
  _.merge(this, _.pick(data, Object.keys(this)));
160
160
  }
161
161
  }
162
162
 
163
- static toFlowData(data: IHznjZbthResponse): TFlowDataResponse {
163
+ static toFlowData(data: Type): TFlowDataResponse {
164
164
  const result = new TFlowDataResponse();
165
165
  result.whoBuild = data.whoBuild;
166
166
  result.userIndx = data.userIndx;
@@ -181,7 +181,18 @@ export class THznjZbthResponse implements IHznjZbthResponse {
181
181
  return result;
182
182
  }
183
183
 
184
- static toFlowDatas(list: IHznjZbthResponse[]): TFlowDataResponse[] {
184
+ static toFlowDatas(list: Type[]): TFlowDataResponse[] {
185
185
  return list.map((data) => this.toFlowData(data));
186
186
  }
187
+
188
+ static toWldyPrintData(noti: Type) {
189
+ const data = new TStim.TStimulsoftPrintData();
190
+ data.billMain = noti.zbthIndx;
191
+ data.menuUUID = noti.menuUUID;
192
+ return data;
193
+ }
194
+
195
+ static toWldyPrintDatas(listNoti: Type[]) {
196
+ return listNoti.map((u) => this.toWldyPrintData(u));
197
+ }
187
198
  }
@@ -1,6 +1,7 @@
1
- import { THznk, TCore } from "..";
1
+ import {THznk, TCore, TStim} from "..";
2
2
  import _ from "lodash";
3
3
  import { TFlowDataResponse } from "../flow/IFlowDataResponse";
4
+
4
5
  export interface IHznkDataResponse {
5
6
  whoBuild: number;
6
7
  userIndx: number;
@@ -185,7 +186,8 @@ export interface IHznkDataResponse {
185
186
  listDept: THznk.IHznkDataDeptResponse[];
186
187
  }
187
188
 
188
- export class THznkDataResponse implements IHznkDataResponse {
189
+ type Type = IHznkDataResponse;
190
+ export class THznkDataResponse implements Type {
189
191
  whoBuild: number = 0;
190
192
  userIndx: number = 0;
191
193
  dataIndx: number = 0;
@@ -326,11 +328,11 @@ export class THznkDataResponse implements IHznkDataResponse {
326
328
  }
327
329
  }
328
330
 
329
- static toFlowDatas(notis: THznkDataResponse[]): TFlowDataResponse[] {
331
+ static toFlowDatas(notis: Type[]): TFlowDataResponse[] {
330
332
  return notis.map((u) => this.toFlowData(u));
331
333
  }
332
334
 
333
- static toFlowData(hznk: THznkDataResponse): TFlowDataResponse {
335
+ static toFlowData(hznk: Type): TFlowDataResponse {
334
336
  const result = new TFlowDataResponse();
335
337
  result.whoBuild = hznk.whoBuild;
336
338
  result.userIndx = hznk.userIndx;
@@ -353,4 +355,15 @@ export class THznkDataResponse implements IHznkDataResponse {
353
355
  result.flowStat = hznk.hznkStat;
354
356
  return result;
355
357
  }
358
+
359
+ static toWldyPrintData(noti: Type) {
360
+ const data = new TStim.TStimulsoftPrintData();
361
+ data.billMain = noti.dataIndx;
362
+ data.menuUUID = noti.menuUUID;
363
+ return data;
364
+ }
365
+
366
+ static toWldyPrintDatas(listNoti: Type[]) {
367
+ return listNoti.map((u) => this.toWldyPrintData(u));
368
+ }
356
369
  }
@@ -1,4 +1,4 @@
1
- import { THznk, TCore } from "..";
1
+ import {THznk, TCore, TStim} from "..";
2
2
  import { TFlowDataResponse } from "../flow";
3
3
 
4
4
  export interface IHznkFydwResponse {
@@ -84,7 +84,8 @@ export interface IHznkFydwResponse {
84
84
  listDept: THznk.IHznkFydwDeptResponse[];
85
85
  }
86
86
 
87
- export class THznkFydwResponse implements IHznkFydwResponse {
87
+ type Type = IHznkFydwResponse
88
+ export class THznkFydwResponse implements Type {
88
89
  whoBuild: number = 0;
89
90
  userIndx: number = 0;
90
91
  fydwIndx: number = 0;
@@ -154,12 +155,12 @@ export class THznkFydwResponse implements IHznkFydwResponse {
154
155
  listWBDW: THznk.IHznkFydwWbdwResponse[] = [];
155
156
  listDept: THznk.IHznkFydwDeptResponse[] = [];
156
157
 
157
- static toFlowDatas(card: IHznkFydwResponse[]): TFlowDataResponse[] {
158
+ static toFlowDatas(card: Type[]): TFlowDataResponse[] {
158
159
  return card.map((u) => this.toFlowData(u));
159
160
  }
160
161
 
161
162
  //#进入流程
162
- static toFlowData(data: IHznkFydwResponse): TFlowDataResponse {
163
+ static toFlowData(data: Type): TFlowDataResponse {
163
164
  const result = new TFlowDataResponse();
164
165
  result.whoBuild = data.whoBuild;
165
166
  result.userIndx = data.userIndx;
@@ -182,4 +183,15 @@ export class THznkFydwResponse implements IHznkFydwResponse {
182
183
  result.flowStat = data.fydwStat;
183
184
  return result;
184
185
  }
186
+
187
+ static toWldyPrintData(noti: Type) {
188
+ const data = new TStim.TStimulsoftPrintData();
189
+ data.billMain = noti.fydwIndx;
190
+ data.menuUUID = noti.menuUUID;
191
+ return data;
192
+ }
193
+
194
+ static toWldyPrintDatas(listNoti: Type[]) {
195
+ return listNoti.map((u) => this.toWldyPrintData(u));
196
+ }
185
197
  }
@@ -1,4 +1,4 @@
1
- import { THznk, TCore } from "..";
1
+ import {THznk, TCore, TStim} from "..";
2
2
  import { TFlowDataResponse } from "../flow";
3
3
  import _ from "lodash";
4
4
 
@@ -84,8 +84,8 @@ export interface IHznkFytqResponse {
84
84
  listSKYH: TCore.IUserLiteResponse[];
85
85
  listBill: THznk.IHznkFytqBillResponse[];
86
86
  }
87
-
88
- export class THznkFytqResponse implements IHznkFytqResponse {
87
+ type Type = IHznkFytqResponse
88
+ export class THznkFytqResponse implements Type {
89
89
  whoBuild: number = 0;
90
90
  userIndx: number = 0;
91
91
  fytqIndx: number = 0;
@@ -155,13 +155,13 @@ export class THznkFytqResponse implements IHznkFytqResponse {
155
155
  listSKDW: TCore.IUserAcnoResponse[] = [];
156
156
  listSKYH: TCore.IUserLiteResponse[] = [];
157
157
  listBill: THznk.IHznkFytqBillResponse[] = [];
158
- constructor(data: Partial<IHznkFytqResponse> = {}) {
158
+ constructor(data: Partial<Type> = {}) {
159
159
  if (data) {
160
160
  _.merge(this, _.pick(data, Object.keys(this)));
161
161
  }
162
162
  }
163
163
 
164
- static toFlowData(data: IHznkFytqResponse): TFlowDataResponse {
164
+ static toFlowData(data: Type): TFlowDataResponse {
165
165
  const result = new TFlowDataResponse();
166
166
  result.whoBuild = data.whoBuild;
167
167
  result.flowMain = data.flowMain;
@@ -181,7 +181,18 @@ export class THznkFytqResponse implements IHznkFytqResponse {
181
181
  return result;
182
182
  }
183
183
 
184
- static toFlowDatas(data: IHznkFytqResponse[]): TFlowDataResponse[] {
184
+ static toFlowDatas(data: Type[]): TFlowDataResponse[] {
185
185
  return data.map((u) => this.toFlowData(u));
186
186
  }
187
+
188
+ static toWldyPrintData(noti: Type) {
189
+ const data = new TStim.TStimulsoftPrintData();
190
+ data.billMain = noti.fytqIndx;
191
+ data.menuUUID = noti.menuUUID;
192
+ return data;
193
+ }
194
+
195
+ static toWldyPrintDatas(listNoti: Type[]) {
196
+ return listNoti.map((u) => this.toWldyPrintData(u));
197
+ }
187
198
  }
@@ -1,4 +1,4 @@
1
- import { THznk, TCore } from "..";
1
+ import {THznk, TCore, TStim} from "..";
2
2
  import _ from "lodash";
3
3
  import { TFlowDataResponse } from "../flow";
4
4
 
@@ -124,7 +124,7 @@ export interface IHznkMainResponse {
124
124
  listData: THznk.IHznkDataResponse[];
125
125
 
126
126
  }
127
-
127
+ type Type = IHznkMainResponse
128
128
  export class THznkMainResponse implements IHznkMainResponse {
129
129
  whoBuild: number = 0;
130
130
  userIndx: number = 0;
@@ -217,13 +217,13 @@ export class THznkMainResponse implements IHznkMainResponse {
217
217
  /** 项目下关联的业务 */
218
218
  listData: THznk.IHznkDataResponse[] = [];
219
219
 
220
- constructor(data: Partial<IHznkMainResponse> = {}) {
220
+ constructor(data: Partial<Type> = {}) {
221
221
  if (data) {
222
222
  _.merge(this, _.pick(data, Object.keys(this)));
223
223
  }
224
224
  }
225
225
 
226
- static toFlowData(data: IHznkMainResponse): TFlowDataResponse {
226
+ static toFlowData(data: Type): TFlowDataResponse {
227
227
  const result = new TFlowDataResponse();
228
228
  result.whoBuild = data.whoBuild;
229
229
  result.flowMain = data.flowMain;
@@ -243,7 +243,18 @@ export class THznkMainResponse implements IHznkMainResponse {
243
243
  return result;
244
244
  }
245
245
 
246
- static toFlowDatas(data: IHznkMainResponse[]): TFlowDataResponse[] {
246
+ static toFlowDatas(data: Type[]): TFlowDataResponse[] {
247
247
  return data.map((u) => this.toFlowData(u));
248
248
  }
249
+
250
+ static toWldyPrintData(noti: Type) {
251
+ const data = new TStim.TStimulsoftPrintData();
252
+ data.billMain = noti.hznkIndx;
253
+ data.menuUUID = noti.menuUUID;
254
+ return data;
255
+ }
256
+
257
+ static toWldyPrintDatas(listNoti: Type[]) {
258
+ return listNoti.map((u) => this.toWldyPrintData(u));
259
+ }
249
260
  }
@@ -1,4 +1,4 @@
1
- import { THznk, TCore } from "..";
1
+ import {THznk, TCore, TStim} from "..";
2
2
  import { TFlowDataResponse } from "../flow";
3
3
 
4
4
  export interface IHznkNoteResponse {
@@ -70,8 +70,8 @@ export interface IHznkNoteResponse {
70
70
  listPath: TCore.IPathResponse[];
71
71
  listFrom: THznk.IHznkMainResponse[];
72
72
  }
73
-
74
- export class THznkNoteResponse implements IHznkNoteResponse {
73
+ type Type = IHznkNoteResponse
74
+ export class THznkNoteResponse implements Type {
75
75
  whoBuild: number = 0;
76
76
  userIndx: number = 0;
77
77
  noteIndx: number = 0;
@@ -134,11 +134,11 @@ export class THznkNoteResponse implements IHznkNoteResponse {
134
134
  listPath: TCore.IPathResponse[] = [];
135
135
  listFrom: THznk.IHznkMainResponse[] = [];
136
136
 
137
- static toFlowDatas(card: IHznkNoteResponse[]): TFlowDataResponse[] {
137
+ static toFlowDatas(card: Type[]): TFlowDataResponse[] {
138
138
  return card.map((u) => this.toFlowData(u));
139
139
  }
140
140
 
141
- static toFlowData(xmtz: IHznkNoteResponse): TFlowDataResponse {
141
+ static toFlowData(xmtz: Type): TFlowDataResponse {
142
142
  let result = new TFlowDataResponse();
143
143
  result.whoBuild = xmtz.whoBuild;
144
144
  result.userIndx = xmtz.userIndx;
@@ -159,4 +159,15 @@ export class THznkNoteResponse implements IHznkNoteResponse {
159
159
  result.menuUUID = xmtz.menuUUID;
160
160
  return result;
161
161
  }
162
+
163
+ static toWldyPrintData(noti: Type) {
164
+ const data = new TStim.TStimulsoftPrintData();
165
+ data.billMain = noti.noteIndx;
166
+ data.menuUUID = noti.menuUUID;
167
+ return data;
168
+ }
169
+
170
+ static toWldyPrintDatas(listNoti: Type[]) {
171
+ return listNoti.map((u) => this.toWldyPrintData(u));
172
+ }
162
173
  }
@@ -1,4 +1,4 @@
1
- import { THznk, TCore } from "..";
1
+ import {THznk, TCore, TStim} from "..";
2
2
  import { TFlowDataResponse } from "../flow";
3
3
 
4
4
  export interface IHznkYssqResponse {
@@ -85,8 +85,8 @@ export interface IHznkYssqResponse {
85
85
  listFrom: THznk.IHznkMainResponse[];
86
86
  listYsxq: THznk.IHznkYssqYsxqResponse[];
87
87
  }
88
-
89
- export class THznkYssqResponse implements IHznkYssqResponse {
88
+ type Type = IHznkYssqResponse
89
+ export class THznkYssqResponse implements Type {
90
90
  whoBuild: number = 0;
91
91
  userIndx: number = 0;
92
92
  yssqIndx: number = 0;
@@ -162,11 +162,11 @@ export class THznkYssqResponse implements IHznkYssqResponse {
162
162
  listFrom: THznk.IHznkMainResponse[] = [];
163
163
  listYsxq: THznk.IHznkYssqYsxqResponse[] = [];
164
164
 
165
- static toFlowDatas(card: IHznkYssqResponse[]): TFlowDataResponse[] {
165
+ static toFlowDatas(card: Type[]): TFlowDataResponse[] {
166
166
  return card.map((u) => this.toFlowData(u));
167
167
  }
168
168
 
169
- static toFlowData(yssq: IHznkYssqResponse): TFlowDataResponse {
169
+ static toFlowData(yssq: Type): TFlowDataResponse {
170
170
  let result = new TFlowDataResponse();
171
171
  result.whoBuild = yssq.whoBuild;
172
172
  result.userIndx = yssq.userIndx;
@@ -187,4 +187,15 @@ export class THznkYssqResponse implements IHznkYssqResponse {
187
187
  result.menuUUID = yssq.menuUUID;
188
188
  return result;
189
189
  }
190
+
191
+ static toWldyPrintData(noti: Type) {
192
+ const data = new TStim.TStimulsoftPrintData();
193
+ data.billMain = noti.yssqIndx;
194
+ data.menuUUID = noti.menuUUID;
195
+ return data;
196
+ }
197
+
198
+ static toWldyPrintDatas(listNoti: Type[]) {
199
+ return listNoti.map((u) => this.toWldyPrintData(u));
200
+ }
190
201
  }
@@ -216,7 +216,8 @@ export interface IMyoaMainResponse {
216
216
  dzyzQife: number;
217
217
  }
218
218
 
219
- export class TMyoaMainResponse implements IMyoaMainResponse {
219
+ type Type = IMyoaMainResponse
220
+ export class TMyoaMainResponse implements Type {
220
221
  typeName: string = "TMyoaMainResponse";
221
222
  whoBuild: number = 0;
222
223
  userIndx: number = 0;
@@ -404,18 +405,18 @@ export class TMyoaMainResponse implements IMyoaMainResponse {
404
405
  bField03: number = 0;
405
406
  bField04: number = 0;
406
407
  bField05: number = 0;
407
- constructor(card: keyof TMyoaMainResponse | object) {
408
+ constructor(card: keyof Type | object) {
408
409
  if (card) {
409
410
  _.merge(this, _.pick(card, Object.keys(this)));
410
411
  }
411
412
  }
412
413
 
413
- static toFlowDatas(card: TMyoaMainResponse[]): TFlowDataResponse[] {
414
+ static toFlowDatas(card: Type[]): TFlowDataResponse[] {
414
415
  return card.map((u) => this.toFlowData(u));
415
416
  }
416
417
 
417
418
  //#进入流程
418
- static toFlowData(myoa: TMyoaMainResponse): TFlowDataResponse {
419
+ static toFlowData(myoa: Type): TFlowDataResponse {
419
420
  const result = new TFlowDataResponse();
420
421
  result.whoBuild = myoa.whoBuild;
421
422
  result.userIndx = myoa.userIndx;
@@ -440,7 +441,7 @@ export class TMyoaMainResponse implements IMyoaMainResponse {
440
441
  }
441
442
 
442
443
  //#取车状态
443
- static getAuthStat(myoa: TMyoaMainResponse): string {
444
+ static getAuthStat(myoa: Type): string {
444
445
  let result: string = "";
445
446
 
446
447
  if (myoa.myoaStat !== Const.Flow.CONST_FLOW_NODE_STAT_VOID) {
@@ -465,7 +466,7 @@ export class TMyoaMainResponse implements IMyoaMainResponse {
465
466
  }
466
467
 
467
468
  //#流程状态
468
- static getMyoaStat(myoa: TMyoaMainResponse): string {
469
+ static getMyoaStat(myoa: Type): string {
469
470
  let result: string = "";
470
471
 
471
472
  if (myoa.dataHide === 1) {
@@ -498,7 +499,7 @@ export class TMyoaMainResponse implements IMyoaMainResponse {
498
499
  /**
499
500
  * 用来记录操作
500
501
  * */
501
- static toTravel(card: IMyoaMainResponse): TCore.ISysTravelResponse {
502
+ static toTravel(card: Type): TCore.ISysTravelResponse {
502
503
  const travel = new TCore.TSysTravelResponse();
503
504
  travel.whoBuild = card.whoBuild;
504
505
  travel.flowMain = card.flowMain;
@@ -513,7 +514,7 @@ export class TMyoaMainResponse implements IMyoaMainResponse {
513
514
  }
514
515
 
515
516
  /** 转换成记录日志需要的数据(第一层,不包含菜单) */
516
- static toTravelData(card?: IMyoaMainResponse | IMyoaMainResponse[]): TCore.ISysTravelResponse[] {
517
+ static toTravelData(card?: Type | Type[]): TCore.ISysTravelResponse[] {
517
518
  if (_.isNil(card)) {
518
519
  return [];
519
520
  }
@@ -525,14 +526,14 @@ export class TMyoaMainResponse implements IMyoaMainResponse {
525
526
  return [this.toTravel(card)];
526
527
  }
527
528
 
528
- static toWldyPrintData(noti: IMyoaMainResponse) {
529
+ static toWldyPrintData(noti: Type) {
529
530
  const data = new TStim.TStimulsoftPrintData();
530
531
  data.billMain = noti.myoaIndx;
531
532
  data.menuUUID = noti.menuUUID;
532
533
  return data;
533
534
  }
534
535
 
535
- static toWldyPrintDatas(listNoti: IMyoaMainResponse[]) {
536
+ static toWldyPrintDatas(listNoti: Type[]) {
536
537
  return listNoti.map((u) => this.toWldyPrintData(u));
537
538
  }
538
539
  }
@@ -1,4 +1,4 @@
1
- import { TCore, THznk, TVary } from "..";
1
+ import {TCore, THznk, TStim, TVary} from "..";
2
2
  import { TFlowDataResponse } from "../flow";
3
3
  import _ from "lodash";
4
4
 
@@ -77,8 +77,8 @@ export interface IVaryMainResponse {
77
77
  listBill: TVary.IVaryBillResponse[];
78
78
  listFrom: THznk.IHznkMainResponse[];
79
79
  }
80
-
81
- export class TVaryMainResponse implements IVaryMainResponse {
80
+ type Type = IVaryMainResponse
81
+ export class TVaryMainResponse implements Type {
82
82
  whoBuild: number = 0;
83
83
  userIndx: number = 0;
84
84
  varyIndx: number = 0;
@@ -181,4 +181,15 @@ export class TVaryMainResponse implements IVaryMainResponse {
181
181
  static toFlowDatas(data: IVaryMainResponse[]): TFlowDataResponse[] {
182
182
  return data.map((u) => this.toFlowData(u));
183
183
  }
184
+
185
+ static toWldyPrintData(noti: Type) {
186
+ const data = new TStim.TStimulsoftPrintData();
187
+ data.billMain = noti.varyIndx;
188
+ data.menuUUID = noti.menuUUID;
189
+ return data;
190
+ }
191
+
192
+ static toWldyPrintDatas(listNoti: Type[]) {
193
+ return listNoti.map((u) => this.toWldyPrintData(u));
194
+ }
184
195
  }