@ningboyz/types 1.4.120 → 1.4.121
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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {THznj, TCore, TStim} from "..";
|
|
2
2
|
import _ from "lodash";
|
|
3
3
|
import { TFlowDataResponse } from "../flow";
|
|
4
4
|
|
|
@@ -96,6 +96,7 @@ export interface IHznjNotiResponse {
|
|
|
96
96
|
listFrom: THznj.IHznjXmjjItemResponse[];
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
type Type = IHznjNotiResponse
|
|
99
100
|
export class THznjNotiResponse implements IHznjNotiResponse {
|
|
100
101
|
whoBuild: number = 0;
|
|
101
102
|
userIndx: number = 0;
|
|
@@ -209,4 +210,15 @@ export class THznjNotiResponse implements IHznjNotiResponse {
|
|
|
209
210
|
static toFlowDatas(list: IHznjNotiResponse[]): TFlowDataResponse[] {
|
|
210
211
|
return list.map((data) => this.toFlowData(data));
|
|
211
212
|
}
|
|
213
|
+
|
|
214
|
+
static toWldyPrintData(noti: Type) {
|
|
215
|
+
const data = new TStim.TStimulsoftPrintData();
|
|
216
|
+
data.billMain = noti.notiIndx;
|
|
217
|
+
data.menuUUID = noti.menuUUID;
|
|
218
|
+
return data;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
static toWldyPrintDatas(listNoti: Type[]) {
|
|
222
|
+
return listNoti.map((u) => this.toWldyPrintData(u));
|
|
223
|
+
}
|
|
212
224
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {THznk, TCore, TStim} from "..";
|
|
2
2
|
import { TFlowDataResponse } from "../flow";
|
|
3
3
|
import _ from "lodash";
|
|
4
4
|
|
|
@@ -95,6 +95,7 @@ export interface IHznkXmysResponse {
|
|
|
95
95
|
listDept: THznk.IHznkXmysDeptResponse[];
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
type Type = IHznkXmysResponse
|
|
98
99
|
export class THznkXmysResponse implements IHznkXmysResponse {
|
|
99
100
|
whoBuild: number = 0;
|
|
100
101
|
userIndx: number = 0;
|
|
@@ -178,17 +179,17 @@ export class THznkXmysResponse implements IHznkXmysResponse {
|
|
|
178
179
|
listYSXQ: THznk.IHznkXmysYsxqResponse[] = [];
|
|
179
180
|
listDept: THznk.IHznkXmysDeptResponse[] = [];
|
|
180
181
|
|
|
181
|
-
constructor(data: Partial<
|
|
182
|
+
constructor(data: Partial<Type> = {}) {
|
|
182
183
|
if (data) {
|
|
183
184
|
_.merge(this, _.pick(data, Object.keys(this)));
|
|
184
185
|
}
|
|
185
186
|
}
|
|
186
187
|
|
|
187
|
-
static toFlowDatas(card:
|
|
188
|
+
static toFlowDatas(card: Type[]): TFlowDataResponse[] {
|
|
188
189
|
return card.map((u) => this.toFlowData(u));
|
|
189
190
|
}
|
|
190
191
|
|
|
191
|
-
static toFlowData(xmys:
|
|
192
|
+
static toFlowData(xmys: Type): TFlowDataResponse {
|
|
192
193
|
let result = new TFlowDataResponse();
|
|
193
194
|
result.whoBuild = xmys.whoBuild;
|
|
194
195
|
result.userIndx = xmys.userIndx;
|
|
@@ -209,4 +210,15 @@ export class THznkXmysResponse implements IHznkXmysResponse {
|
|
|
209
210
|
result.menuUUID = xmys.menuUUID;
|
|
210
211
|
return result;
|
|
211
212
|
}
|
|
213
|
+
|
|
214
|
+
static toWldyPrintData(noti: Type) {
|
|
215
|
+
const data = new TStim.TStimulsoftPrintData();
|
|
216
|
+
data.billMain = noti.xmysIndx;
|
|
217
|
+
data.menuUUID = noti.menuUUID;
|
|
218
|
+
return data;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
static toWldyPrintDatas(listNoti: Type[]) {
|
|
222
|
+
return listNoti.map((u) => this.toWldyPrintData(u));
|
|
223
|
+
}
|
|
212
224
|
}
|