@ningboyz/types 1.4.119 → 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,7 +1,7 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
3
  "type": "module",
4
- "version": "1.4.119",
4
+ "version": "1.4.121",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -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
 
@@ -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 { THznk, TCore } from "..";
1
+ import {THznk, TCore, TStim} from "..";
2
2
  import _ from "lodash";
3
3
  import { TFlowDataResponse } from "../flow";
4
4
 
@@ -106,7 +106,8 @@ export interface IHznkBaseResponse {
106
106
  listWBDW: THznk.IHznkBaseWbdwResponse[];
107
107
  }
108
108
 
109
- export class THznkBaseResponse implements IHznkBaseResponse {
109
+ type Type = IHznkBaseResponse
110
+ export class THznkBaseResponse implements Type {
110
111
  whoBuild: number = 0;
111
112
  userIndx: number = 0;
112
113
  baseIndx: number = 0;
@@ -188,13 +189,13 @@ export class THznkBaseResponse implements IHznkBaseResponse {
188
189
  listWBYH: TCore.IUserLiteResponse[] = [];
189
190
  listWBDW: THznk.IHznkBaseWbdwResponse[] = [];
190
191
 
191
- constructor(data: Partial<IHznkBaseResponse> = {}) {
192
+ constructor(data: Partial<Type> = {}) {
192
193
  if (data) {
193
194
  _.merge(this, _.pick(data, Object.keys(this)));
194
195
  }
195
196
  }
196
197
 
197
- static toFlowData(data: IHznkBaseResponse): TFlowDataResponse {
198
+ static toFlowData(data: Type): TFlowDataResponse {
198
199
  const result = new TFlowDataResponse();
199
200
  result.whoBuild = data.whoBuild;
200
201
  result.flowMain = data.flowMain;
@@ -214,7 +215,18 @@ export class THznkBaseResponse implements IHznkBaseResponse {
214
215
  return result;
215
216
  }
216
217
 
217
- static toFlowDatas(data: IHznkBaseResponse[]): TFlowDataResponse[] {
218
+ static toFlowDatas(data: Type[]): TFlowDataResponse[] {
218
219
  return data.map((u) => this.toFlowData(u));
219
220
  }
221
+
222
+ static toWldyPrintData(noti: Type) {
223
+ const data = new TStim.TStimulsoftPrintData();
224
+ data.billMain = noti.baseIndx;
225
+ data.menuUUID = noti.menuUUID;
226
+ return data;
227
+ }
228
+
229
+ static toWldyPrintDatas(listNoti: Type[]) {
230
+ return listNoti.map((u) => this.toWldyPrintData(u));
231
+ }
220
232
  }
@@ -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
 
@@ -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<IHznkXmysResponse> = {}) {
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: IHznkXmysResponse[]): TFlowDataResponse[] {
188
+ static toFlowDatas(card: Type[]): TFlowDataResponse[] {
188
189
  return card.map((u) => this.toFlowData(u));
189
190
  }
190
191
 
191
- static toFlowData(xmys: IHznkXmysResponse): TFlowDataResponse {
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
  }
@@ -47,7 +47,9 @@ export interface IMyoaMainResponse {
47
47
  unitMain: number;
48
48
  unitNamf: string;
49
49
  deptMain: number;
50
- dictMain: number;
50
+ dictMain: number
51
+ /** 会议室间歇时间 */
52
+ interval: number;
51
53
  startOut: number; //#用车申请.出车时间 YYYYMMDDHHMM
52
54
  endedOut: number; //#用车申请.结束时间 YYYYMMDDHHMM
53
55
  totalOut: number;
@@ -253,6 +255,8 @@ export class TMyoaMainResponse implements Type {
253
255
  unitNamf: string = "";
254
256
  deptMain: number = 0;
255
257
  dictMain: number = 0;
258
+ /** 会议室间歇时间 */
259
+ interval: number = 0;
256
260
  /** 拟公告时间 */
257
261
  startOut: number = 0;
258
262
  endedOut: number = 0;