@ningboyz/types 1.4.110 → 1.4.112
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,5 +1,5 @@
|
|
|
1
1
|
import _ from "lodash";
|
|
2
|
-
import { TCore } from "..";
|
|
2
|
+
import { TCore, TStim } from "..";
|
|
3
3
|
import { IDictResponse, IPartResponse, IUnitResponse, IUserLiteResponse } from "../core";
|
|
4
4
|
import { IPathResponse } from "../core/IPathResponse";
|
|
5
5
|
import { TFlowDataResponse } from "../flow/IFlowDataResponse";
|
|
@@ -414,12 +414,23 @@ export class TNotiMainResponse implements INotiMainResponse {
|
|
|
414
414
|
notiUses: string = "";
|
|
415
415
|
listDept: TCore.IDeptResponse[] = [];
|
|
416
416
|
|
|
417
|
-
constructor(
|
|
418
|
-
if (
|
|
419
|
-
_.merge(this, _.pick(
|
|
417
|
+
constructor(ntio: any = {}) {
|
|
418
|
+
if (ntio) {
|
|
419
|
+
_.merge(this, _.pick(ntio, Object.keys(this)));
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
|
|
423
|
+
static toWldyPrintData(noti: INotiMainResponse) {
|
|
424
|
+
const data = new TStim.TStimulsoftPrintData();
|
|
425
|
+
data.billMain = noti.notiIndx;
|
|
426
|
+
data.menuUUID = noti.menuUUID;
|
|
427
|
+
return data;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
static toWldyPrintDatas(listNoti: INotiMainResponse[]) {
|
|
431
|
+
return listNoti.map((u) => this.toWldyPrintData(u));
|
|
432
|
+
}
|
|
433
|
+
|
|
423
434
|
static toFlowDatas(notis: TNotiMainResponse[]): TFlowDataResponse[] {
|
|
424
435
|
return notis.map((u) => this.toFlowData(u));
|
|
425
436
|
}
|