@ningboyz/types 1.7.105 → 1.7.107

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.7.105",
4
+ "version": "1.7.107",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -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(card: any = {}) {
218
- if (card) {
219
- _.merge(this, _.pick(card, Object.keys(this)));
217
+ constructor(xmyk: any = {}) {
218
+ if (xmyk) {
219
+ _.merge(this, _.pick(xmyk, Object.keys(this)));
220
220
  }
221
221
  }
222
222
 
223
- static toFlowDatas(card: THzcbXmykResponse[]): TFlowDataResponse[] {
224
- return card.map((u) => this.toFlowData(u));
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
  }
@@ -0,0 +1,27 @@
1
+ import _ from "lodash";
2
+
3
+ export interface IEquityInfoPledgeeResponse {
4
+ equityInfoPledgeeId: number;
5
+ equityInfoItemId: number;
6
+ /**
7
+ * 质权人公司 ID
8
+ */
9
+ pledgeeId: number;
10
+ /**
11
+ * 质权人公司名称
12
+ */
13
+ name: string;
14
+ }
15
+
16
+ export class TEquityInfoPledgeeResponse implements IEquityInfoPledgeeResponse {
17
+ equityInfoPledgeeId: number = 0;
18
+ equityInfoItemId: number = 0;
19
+ pledgeeId: number = 0;
20
+ name: string = "";
21
+
22
+ constructor(data: Partial<IEquityInfoPledgeeResponse> = {}) {
23
+ if (data) {
24
+ _.merge(this, _.pick(data, Object.keys(this)));
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,27 @@
1
+ import _ from "lodash";
2
+
3
+ export interface IEquityInfoPledgorResponse {
4
+ equityInfoPledgorId: number;
5
+ equityInfoItemId: number;
6
+ /**
7
+ * 出质人公司 ID
8
+ */
9
+ pledgorId: number;
10
+ /**
11
+ * 出质人公司名称
12
+ */
13
+ name: string;
14
+ }
15
+
16
+ export class TEquityInfoPledgorResponse implements IEquityInfoPledgorResponse {
17
+ equityInfoPledgorId: number = 0;
18
+ equityInfoItemId: number = 0;
19
+ pledgorId: number = 0;
20
+ name: string = "";
21
+
22
+ constructor(data: Partial<IEquityInfoPledgorResponse> = {}) {
23
+ if (data) {
24
+ _.merge(this, _.pick(data, Object.keys(this)));
25
+ }
26
+ }
27
+ }
@@ -1,6 +1,8 @@
1
1
  import _ from "lodash";
2
2
  import type { IEquityInfoCompanyResponse } from "./IEquityInfoCompanyResponse";
3
3
  import type { IEquityInfoItemResponse } from "./IEquityInfoItemResponse";
4
+ import type { IEquityInfoPledgeeResponse } from "./IEquityInfoPledgeeResponse";
5
+ import type { IEquityInfoPledgorResponse } from "./IEquityInfoPledgorResponse";
4
6
 
5
7
  export interface IEquityInfoResponse {
6
8
  equityInfoId: number;
@@ -13,6 +15,8 @@ export interface IEquityInfoResponse {
13
15
  */
14
16
  equityInfoItems: IEquityInfoItemResponse[];
15
17
  equityInfoCompanys: IEquityInfoCompanyResponse[];
18
+ equityInfoPledgees: IEquityInfoPledgeeResponse[];
19
+ equityInfoPledgors: IEquityInfoPledgorResponse[];
16
20
  }
17
21
 
18
22
  export class TEquityInfoResponse implements IEquityInfoResponse {
@@ -23,6 +27,8 @@ export class TEquityInfoResponse implements IEquityInfoResponse {
23
27
  uploadDate: number = 0;
24
28
  equityInfoItems: IEquityInfoItemResponse[] = [];
25
29
  equityInfoCompanys: IEquityInfoCompanyResponse[] = [];
30
+ equityInfoPledgees: IEquityInfoPledgeeResponse[] = [];
31
+ equityInfoPledgors: IEquityInfoPledgorResponse[] = [];
26
32
 
27
33
  constructor(data: Partial<IEquityInfoResponse> = {}) {
28
34
  if (data) {
package/src/tyc/index.ts CHANGED
@@ -17,6 +17,8 @@ import { IDishonestStaffResponse, TDishonestStaffResponse } from "./IDishonestSt
17
17
  import { IEquityInfoResponse, TEquityInfoResponse } from "./IEquityInfoResponse";
18
18
  import { IEquityInfoItemResponse, TEquityInfoItemResponse } from "./IEquityInfoItemResponse";
19
19
  import { IEquityInfoCompanyResponse, TEquityInfoCompanyResponse } from "./IEquityInfoCompanyResponse";
20
+ import { IEquityInfoPledgeeResponse, TEquityInfoPledgeeResponse } from "./IEquityInfoPledgeeResponse";
21
+ import { IEquityInfoPledgorResponse, TEquityInfoPledgorResponse } from "./IEquityInfoPledgorResponse";
20
22
  import { IFindHistoryRongziResponse, TFindHistoryRongziResponse } from "./IFindHistoryRongziResponse";
21
23
  import { IFindHistoryRongziItemResponse, TFindHistoryRongziItemResponse } from "./IFindHistoryRongziItemResponse";
22
24
  import { IFindJingpinResponse, TFindJingpinResponse } from "./IFindJingpinResponse";
@@ -101,6 +103,10 @@ export {
101
103
  TEquityInfoItemResponse,
102
104
  type IEquityInfoCompanyResponse,
103
105
  TEquityInfoCompanyResponse,
106
+ type IEquityInfoPledgeeResponse,
107
+ TEquityInfoPledgeeResponse,
108
+ type IEquityInfoPledgorResponse,
109
+ TEquityInfoPledgorResponse,
104
110
  type IFindHistoryRongziResponse,
105
111
  TFindHistoryRongziResponse,
106
112
  type IFindHistoryRongziItemResponse,
@@ -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
  }