@ningboyz/types 1.7.105 → 1.7.106
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,3 +1,4 @@
|
|
|
1
|
+
import { TStim } from "..";
|
|
1
2
|
import { IPathResponse } from "../core";
|
|
2
3
|
import { TFlowDataResponse } from "../flow";
|
|
3
4
|
import { ICardRoomResponse } from "./ICardRoomResponse";
|
|
@@ -236,4 +237,15 @@ export class TCardFwczResponse implements ICardFwczResponse {
|
|
|
236
237
|
result.menuUUID = fwcz.menuUUID;
|
|
237
238
|
return result;
|
|
238
239
|
}
|
|
240
|
+
|
|
241
|
+
static toWldyPrintData(fwcz: ICardFwczResponse) {
|
|
242
|
+
const data = new TStim.TStimulsoftPrintData();
|
|
243
|
+
data.billMain = String(fwcz.fwczIndx);
|
|
244
|
+
data.menuUUID = fwcz.menuUUID;
|
|
245
|
+
return data;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
static toWldyPrintDatas(listFwcz: ICardFwczResponse[]) {
|
|
249
|
+
return listFwcz.map((u) => this.toWldyPrintData(u));
|
|
250
|
+
}
|
|
239
251
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Const } from "..";
|
|
1
|
+
import { Const, TStim } from "..";
|
|
2
2
|
import { IPathResponse } from "../core";
|
|
3
3
|
import { TFlowDataResponse } from "../flow";
|
|
4
4
|
import { IYzhtMainResponse } from "../yzht";
|
|
@@ -211,4 +211,15 @@ export class THzcbXmtzResponse implements IHzcbXmtzResponse {
|
|
|
211
211
|
result.menuUUID = xmtz.menuUUID;
|
|
212
212
|
return result;
|
|
213
213
|
}
|
|
214
|
+
|
|
215
|
+
static toWldyPrintData(xmtz: IHzcbXmtzResponse) {
|
|
216
|
+
const data = new TStim.TStimulsoftPrintData();
|
|
217
|
+
data.billMain = String(xmtz.xmtzIndx);
|
|
218
|
+
data.menuUUID = xmtz.menuUUID;
|
|
219
|
+
return data;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
static toWldyPrintDatas(listXmtz: IHzcbXmtzResponse[]) {
|
|
223
|
+
return listXmtz.map((u) => this.toWldyPrintData(u));
|
|
224
|
+
}
|
|
214
225
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _ from "lodash";
|
|
2
|
-
import { Const } from "..";
|
|
2
|
+
import { Const, TStim } from "..";
|
|
3
3
|
import { IPathResponse, IUnitResponse } from "../core";
|
|
4
4
|
import { TFlowDataResponse } from "../flow";
|
|
5
5
|
import { IYzhtBillResponse } from "../yzht";
|
|
@@ -214,14 +214,14 @@ export class THzcbXmykResponse implements IHzcbXmykResponse {
|
|
|
214
214
|
listPath: IPathResponse[] = [];
|
|
215
215
|
listUnit: IUnitResponse[] = [];
|
|
216
216
|
|
|
217
|
-
constructor(
|
|
218
|
-
if (
|
|
219
|
-
_.merge(this, _.pick(
|
|
217
|
+
constructor(xmyk: any = {}) {
|
|
218
|
+
if (xmyk) {
|
|
219
|
+
_.merge(this, _.pick(xmyk, Object.keys(this)));
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
static toFlowDatas(
|
|
224
|
-
return
|
|
223
|
+
static toFlowDatas(xmyk: THzcbXmykResponse[]): TFlowDataResponse[] {
|
|
224
|
+
return xmyk.map((u) => this.toFlowData(u));
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
static toFlowData(xmyk: THzcbXmykResponse): TFlowDataResponse {
|
|
@@ -245,4 +245,15 @@ export class THzcbXmykResponse implements IHzcbXmykResponse {
|
|
|
245
245
|
result.flowStat = xmyk.xmykStat;
|
|
246
246
|
return result;
|
|
247
247
|
}
|
|
248
|
+
|
|
249
|
+
static toWldyPrintData(xmyk: IHzcbXmykResponse) {
|
|
250
|
+
const data = new TStim.TStimulsoftPrintData();
|
|
251
|
+
data.billMain = String(xmyk.xmykIndx);
|
|
252
|
+
data.menuUUID = xmyk.menuUUID;
|
|
253
|
+
return data;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
static toWldyPrintDatas(listXmyk: IHzcbXmykResponse[]) {
|
|
257
|
+
return listXmyk.map((u) => this.toWldyPrintData(u));
|
|
258
|
+
}
|
|
248
259
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { TCore } from "..";
|
|
1
|
+
import { TCore, TStim } from "..";
|
|
2
2
|
import { TFlowDataResponse } from "../flow";
|
|
3
|
-
|
|
4
3
|
import type { ITablDataResponse } from "./ITablDataResponse";
|
|
5
4
|
import _ from "lodash";
|
|
6
5
|
import { ITablWzk8Response } from "./ITablWzk8Response";
|
|
@@ -206,4 +205,15 @@ export class TTablMainResponse implements ITablMainResponse {
|
|
|
206
205
|
result.flowStat = myoa.tablStat;
|
|
207
206
|
return result;
|
|
208
207
|
}
|
|
208
|
+
|
|
209
|
+
static toWldyPrintData(tabl: ITablMainResponse) {
|
|
210
|
+
const data = new TStim.TStimulsoftPrintData();
|
|
211
|
+
data.billMain = String(tabl.tablIndx);
|
|
212
|
+
data.menuUUID = tabl.menuUUID;
|
|
213
|
+
return data;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
static toWldyPrintDatas(listTabl: ITablMainResponse[]) {
|
|
217
|
+
return listTabl.map((u) => this.toWldyPrintData(u));
|
|
218
|
+
}
|
|
209
219
|
}
|
|
@@ -6,6 +6,7 @@ import { IHzcbMainResponse } from "../hzcb";
|
|
|
6
6
|
import { IYzhtBillResponse } from "./IYzhtBillResponse";
|
|
7
7
|
import { IYzhtDzmxResponse } from "./IYzhtDzmxResponse";
|
|
8
8
|
import { IYzhtFymxResponse } from "./IYzhtFymxResponse";
|
|
9
|
+
import { TStim } from "..";
|
|
9
10
|
|
|
10
11
|
export interface IYzhtMainResponse {
|
|
11
12
|
whoBuild: number;
|
|
@@ -848,4 +849,15 @@ export class TYzhtMainResponse implements IYzhtMainResponse {
|
|
|
848
849
|
result.flowStat = bill.yzhtStat;
|
|
849
850
|
return result;
|
|
850
851
|
}
|
|
852
|
+
|
|
853
|
+
static toWldyPrintData(yzht: IYzhtMainResponse) {
|
|
854
|
+
const data = new TStim.TStimulsoftPrintData();
|
|
855
|
+
data.billMain = String(yzht.yzhtIndx);
|
|
856
|
+
data.menuUUID = yzht.menuUUID;
|
|
857
|
+
return data;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
static toWldyPrintDatas(listYzht: IYzhtMainResponse[]) {
|
|
861
|
+
return listYzht.map((u) => this.toWldyPrintData(u));
|
|
862
|
+
}
|
|
851
863
|
}
|