@ningboyz/types 1.8.40 → 1.8.42
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 +1 -1
- package/src/hznj/IHznjBzgxResponse.ts +109 -0
- package/src/hznj/index.ts +8 -1
package/package.json
CHANGED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import _ from "lodash";
|
|
2
|
+
import { TCore, TStim } from "..";
|
|
3
|
+
|
|
4
|
+
import { TFlowDataResponse } from "../flow";
|
|
5
|
+
|
|
6
|
+
export interface IHznjBzgxResponse {
|
|
7
|
+
bzgxCode: string;
|
|
8
|
+
oldValue: string;
|
|
9
|
+
newValue: string;
|
|
10
|
+
dContact: string;
|
|
11
|
+
bzgxMemo: string;
|
|
12
|
+
whoBuild: number;
|
|
13
|
+
userIndx: number;
|
|
14
|
+
sourceND: number;
|
|
15
|
+
bzgxIndx: number;
|
|
16
|
+
menuUUID: string;
|
|
17
|
+
sourceID: number;
|
|
18
|
+
deptMain: number;
|
|
19
|
+
sqbmText: string;
|
|
20
|
+
userMain: number;
|
|
21
|
+
createAt: number;
|
|
22
|
+
createBy: string;
|
|
23
|
+
mastName: string;
|
|
24
|
+
mastGUID: string;
|
|
25
|
+
unitMain: number;
|
|
26
|
+
sqyhText: string;
|
|
27
|
+
bzgxDate: number;
|
|
28
|
+
bzgxStat: number;
|
|
29
|
+
dataStat: number;
|
|
30
|
+
entityID: string;
|
|
31
|
+
flowMain: number;
|
|
32
|
+
flowNode: number;
|
|
33
|
+
flowStat: number;
|
|
34
|
+
lastMemo: string;
|
|
35
|
+
listPath: TCore.IPathResponse[];
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export class THznjBzgxResponse implements IHznjBzgxResponse {
|
|
39
|
+
bzgxCode: string = "";
|
|
40
|
+
oldValue: string = "";
|
|
41
|
+
newValue: string = "";
|
|
42
|
+
dContact: string = "";
|
|
43
|
+
bzgxMemo: string = "";
|
|
44
|
+
whoBuild: number = 0;
|
|
45
|
+
userIndx: number = 0;
|
|
46
|
+
sourceND: number = 0;
|
|
47
|
+
bzgxIndx: number = 0;
|
|
48
|
+
sourceID: number = 0;
|
|
49
|
+
deptMain: number = 0;
|
|
50
|
+
sqbmText: string = "";
|
|
51
|
+
userMain: number = 0;
|
|
52
|
+
sqyhText: string = "";
|
|
53
|
+
bzgxDate: number = 0;
|
|
54
|
+
bzgxStat: number = 0;
|
|
55
|
+
dataStat: number = 0;
|
|
56
|
+
entityID: string = "";
|
|
57
|
+
flowMain: number = 0;
|
|
58
|
+
menuUUID: string = "";
|
|
59
|
+
flowNode: number = 0;
|
|
60
|
+
unitMain: number = 0;
|
|
61
|
+
flowStat: number = 0;
|
|
62
|
+
lastMemo: string = "";
|
|
63
|
+
createAt: number = 0;
|
|
64
|
+
createBy: string = "";
|
|
65
|
+
mastName: string = "";
|
|
66
|
+
mastGUID: string = "";
|
|
67
|
+
listPath: TCore.IPathResponse[] = [];
|
|
68
|
+
|
|
69
|
+
constructor(data: Partial<IHznjBzgxResponse> = {}) {
|
|
70
|
+
if (data) {
|
|
71
|
+
_.merge(this, _.pick(data, Object.keys(this)));
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
static toFlowData(data: IHznjBzgxResponse): TFlowDataResponse {
|
|
75
|
+
const result = new TFlowDataResponse();
|
|
76
|
+
result.whoBuild = data.whoBuild;
|
|
77
|
+
result.userIndx = data.userIndx;
|
|
78
|
+
result.flowMain = data.flowMain;
|
|
79
|
+
result.flowNode = data.flowNode;
|
|
80
|
+
result.notified = "";
|
|
81
|
+
result.entityID = data.entityID;
|
|
82
|
+
result.billMain = data.bzgxIndx;
|
|
83
|
+
// result.billCode = data.dzqrCode;
|
|
84
|
+
result.billMemo = data.lastMemo;
|
|
85
|
+
result.flowStat = data.bzgxStat;
|
|
86
|
+
result.createAt = data.createAt;
|
|
87
|
+
result.mastName = data.mastName;
|
|
88
|
+
result.createBy = data.createBy;
|
|
89
|
+
result.unitMain = data.unitMain;
|
|
90
|
+
result.deptMain = data.deptMain;
|
|
91
|
+
result.menuUUID = data.menuUUID;
|
|
92
|
+
return result;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static toWldyPrintData(noti: IHznjBzgxResponse) {
|
|
96
|
+
const data = new TStim.TStimulsoftPrintData();
|
|
97
|
+
data.billMain = String(noti.bzgxIndx);
|
|
98
|
+
data.menuUUID = noti.menuUUID;
|
|
99
|
+
return data;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
static toWldyPrintDatas(listNoti: IHznjBzgxResponse[]) {
|
|
103
|
+
return listNoti.map((u) => this.toWldyPrintData(u));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
static toFlowDatas(list: IHznjBzgxResponse[]): TFlowDataResponse[] {
|
|
107
|
+
return list.map((data) => this.toFlowData(data));
|
|
108
|
+
}
|
|
109
|
+
}
|
package/src/hznj/index.ts
CHANGED
|
@@ -37,10 +37,15 @@ import { THznjZbthItemResponse, IHznjZbthItemResponse } from "./IHznjZbthItemRes
|
|
|
37
37
|
import { THznjZbczResponse, IHznjZbczResponse } from "./IHznjZbczResponse";
|
|
38
38
|
import { THznjZbczBillResponse, IHznjZbczBillResponse } from "./IHznjZbczBillResponse";
|
|
39
39
|
import { THznjZbczItemResponse, IHznjZbczItemResponse } from "./IHznjZbczItemResponse";
|
|
40
|
+
|
|
41
|
+
//#bzgx
|
|
42
|
+
import { THznjBzgxResponse, IHznjBzgxResponse } from "./IHznjBzgxResponse";
|
|
43
|
+
|
|
40
44
|
//#main
|
|
41
45
|
import { THznjMainResponse, IHznjMainResponse } from "./IHznjMainResponse";
|
|
42
46
|
import { THznjBillResponse, IHznjBillResponse } from "./IHznjBillResponse";
|
|
43
47
|
|
|
48
|
+
|
|
44
49
|
export {
|
|
45
50
|
THznjBaseResponse,
|
|
46
51
|
THznjBasePathResponse,
|
|
@@ -72,6 +77,7 @@ export {
|
|
|
72
77
|
THznjZbczItemResponse,
|
|
73
78
|
THznjMainResponse,
|
|
74
79
|
THznjBillResponse,
|
|
80
|
+
THznjBzgxResponse,
|
|
75
81
|
type IHznjBaseResponse,
|
|
76
82
|
type IHznjBasePathResponse,
|
|
77
83
|
type IHznjBaseItemResponse,
|
|
@@ -101,5 +107,6 @@ export {
|
|
|
101
107
|
type IHznjZbczBillResponse,
|
|
102
108
|
type IHznjZbczItemResponse,
|
|
103
109
|
type IHznjMainResponse,
|
|
104
|
-
type IHznjBillResponse
|
|
110
|
+
type IHznjBillResponse,
|
|
111
|
+
type IHznjBzgxResponse
|
|
105
112
|
};
|