瀏覽代碼

调整修改报错

main
hulei 6 小時之前
父節點
當前提交
4a4e3addbc
共有 23 個文件被更改,包括 555 次插入409 次删除
  1. 10
    8
      ant-design-pro-vue3/src/views/front/develop/Constract/ContractBase/EntryBase.ts
  2. 0
    29
      ant-design-pro-vue3/src/views/front/develop/Constract/ContractBase/HomePageBase.ts
  3. 40
    1
      ant-design-pro-vue3/src/views/front/develop/Constract/ContractBase/PageBase.ts
  4. 18
    8
      ant-design-pro-vue3/src/views/front/develop/Constract/ContractBase/TradeAPIsHelper.ts
  5. 24
    19
      ant-design-pro-vue3/src/views/front/develop/Library.Ext/Function/SystemFunction.ts
  6. 195
    182
      ant-design-pro-vue3/src/views/front/develop/Library.Ext/Function/UserFunction.ts
  7. 11
    20
      ant-design-pro-vue3/src/views/front/develop/Library.Ext/TradeExtension/Currency2DicManager.ts
  8. 1
    1
      ant-design-pro-vue3/src/views/front/develop/Library.Ext/TradeExtension/SystemBatch/BatchHelper.ts
  9. 13
    13
      ant-design-pro-vue3/src/views/front/develop/Library.Ext/TradeExtension/TradeAttach/DeviceManager.ts
  10. 9
    6
      ant-design-pro-vue3/src/views/front/develop/Library.Ext/TradeExtension/TradeAttach/Encrypte.ts
  11. 7
    9
      ant-design-pro-vue3/src/views/front/develop/Library.Ext/TradeExtension/TradeAttach/ExamSystem.ts
  12. 3
    3
      ant-design-pro-vue3/src/views/front/develop/Library.Ext/TradeExtension/TradeAttach/InputDevice.ts
  13. 2
    1
      ant-design-pro-vue3/src/views/front/develop/Library.Ext/TradeInterface/MainPage/MainPageManager.ts
  14. 11
    6
      ant-design-pro-vue3/src/views/front/develop/Library.Ext/Variables/UserVariable.ts
  15. 11
    11
      ant-design-pro-vue3/src/views/front/develop/ServiceProxy.Ext/ServiceHelper/ServiceEntitys.ts
  16. 34
    31
      ant-design-pro-vue3/src/views/front/develop/ServiceProxy.Ext/ServiceHelper/TradeHandle.ts
  17. 131
    0
      ant-design-pro-vue3/src/views/front/develop/ServiceProxy.Ext/ServiceHelper/TradeManagerHandle.ts
  18. 2
    2
      ant-design-pro-vue3/src/views/front/platfrom/common/BasicFunctions/PageFunctions/TradeModel.ts
  19. 1
    1
      ant-design-pro-vue3/src/views/front/platfrom/common/RunningParameters/PlatformSettings.ts
  20. 7
    5
      ant-design-pro-vue3/src/views/front/platfrom/presentation/Interfaces/Ipage.ts
  21. 20
    48
      ant-design-pro-vue3/src/views/front/platfrom/presentation/PageFunctions/TradePage.ts
  22. 1
    1
      ant-design-pro-vue3/src/views/front/platfrom/serviceproxy/ServiceFunction/AttachFile.ts
  23. 4
    4
      ant-design-pro-vue3/src/views/front/platfrom/serviceproxy/ServiceFunction/TransitEntity.ts

+ 10
- 8
ant-design-pro-vue3/src/views/front/develop/Constract/ContractBase/EntryBase.ts 查看文件

@@ -3,13 +3,16 @@ import type { PageBase } from './PageBase'
3 3
 import type { ITradeHelper } from './ITradeHelper'
4 4
 import type { TradeBusHelper } from './TradeBusHelper'
5 5
 import type { TradeInfoHelper } from './TradeInfoHelper'
6
-import type { TradeAPIsHelper } from './TradeAPIsHelper'
6
+
7 7
 import type { TradeResourcesHelper } from './TradeResourcesHelper'
8
+import TradeAPIsHelper from "./TradeAPIsHelper";
9
+import { reactive } from "vue";
8 10
 
9 11
 /**
10 12
  * 入口基类,包括Message和PageBase
11 13
  */
12 14
 export class EntryBase implements ITradeHelper {
15
+    TradeResources: TradeAPIsHelper;
13 16
     //#region 数据属性
14 17
     private _messageData: Message | null = null
15 18
     private _pageData: PageBase | null = null
@@ -41,7 +44,7 @@ export class EntryBase implements ITradeHelper {
41 44
         // 检测参数变化
42 45
         if (page !== null && page === this.PageData) {
43 46
             if (message === this.MessageData ||
44
-                (message.FileData === this.MessageData?.FileData &&
47
+                (message.fileData === this.MessageData?.fileData &&
45 48
                     this.getDiffFields(message, this.MessageData).length === 0)) {
46 49
                 flag = false // 参数与历史登记一致,未作修改
47 50
             }
@@ -67,7 +70,6 @@ export class EntryBase implements ITradeHelper {
67 70
         return true
68 71
     }
69 72
 
70
-    #region ITradeHelper
71 73
     public get TradeBus(): TradeBusHelper {
72 74
         if (!this.PageData) throw new Error('PageData is null')
73 75
         return this.PageData.TradeBus
@@ -83,11 +85,11 @@ export class EntryBase implements ITradeHelper {
83 85
         return this.PageData.TradeAPIs
84 86
     }
85 87
 
86
-    public get TradeResources(): TradeResourcesHelper {
87
-        if (!this.PageData) throw new Error('PageData is null')
88
-        return this.PageData.TradeResources
89
-    }
90
-    #endregion
88
+    // public get TradeResources(): TradeResourcesHelper {
89
+    //     if (!this.PageData) throw new Error('PageData is null')
90
+    //     return this.PageData.TradeResources
91
+    // } hulei-/暂时注释
92
+
91 93
 }
92 94
 
93 95
 // Vue组件封装

+ 0
- 29
ant-design-pro-vue3/src/views/front/develop/Constract/ContractBase/HomePageBase.ts 查看文件

@@ -1,29 +0,0 @@
1
-import { PageBase } from './PageBase'
2
-import { defineComponent } from 'vue'
3
-
4
-/**
5
- * 主界面框架基础
6
- */
7
-export abstract class HomePageBase extends PageBase {
8
-    constructor() {
9
-        super()
10
-    }
11
-
12
-    /**
13
-     * 加载交易宿主
14
-     * @param host 宿主元素
15
-     */
16
-    public LoadTradeHost(host: HTMLElement): void {
17
-        // 实现加载逻辑
18
-    }
19
-}
20
-
21
-// Vue组件封装
22
-export const HomePageComponent = defineComponent({
23
-    extends: HomePageBase,
24
-    methods: {
25
-        LoadTradeHost(host: HTMLElement) {
26
-            super.LoadTradeHost(host)
27
-        }
28
-    }
29
-})

+ 40
- 1
ant-design-pro-vue3/src/views/front/develop/Constract/ContractBase/PageBase.ts 查看文件

@@ -11,6 +11,9 @@ import { ServiceSettings } from "@/views/front/develop/ServiceProxy.Ext/ServiceS
11 11
 import TradeHandle from '../../ServiceProxy.Ext/ServiceHelper/TradeHandle'
12 12
 import { PrintAttributes } from "../../PrintTemplate/Extension/PrintAttributes";
13 13
 import Message from '../../Communication/Message'
14
+import TradePage from '@/views/front/platfrom/presentation/PageFunctions/TradePage'
15
+import { PageContainer } from '@/views/front/platfrom/presentation/PageFunctions/PageContainer'
16
+import TradeModel from '@/views/front/platfrom/common/BasicFunctions/PageFunctions/TradeModel'
14 17
 //import TradeModel from "@/views/front/platfrom/common/BasicFunctions/";
15 18
 
16 19
 
@@ -18,7 +21,43 @@ import Message from '../../Communication/Message'
18 21
  * 页面基类,填充通用的业务接口API
19 22
  * 注意:该对象需要支持序列化/反序列化
20 23
  */
21
-export abstract class PageBase implements ITradeHelper {
24
+export abstract class PageBase implements TradePage, ITradeHelper {
25
+    get TradeModel(): TradeModel {
26
+        throw new Error('Method not implemented.')
27
+    }
28
+    set TradeModel(value: TradeModel) {
29
+        throw new Error('Method not implemented.')
30
+    }
31
+    get Ready(): { add: () => void; remove: () => void } {
32
+        throw new Error('Method not implemented.')
33
+    }
34
+    Dispose(): void {
35
+        throw new Error('Method not implemented.')
36
+    }
37
+    get OwnerContainer(): PageContainer {
38
+        throw new Error('Method not implemented.')
39
+    }
40
+    SetOwnerContainer(pageContainer: PageContainer): void {
41
+        throw new Error('Method not implemented.')
42
+    }
43
+    get InstanceId(): string {
44
+        throw new Error('Method not implemented.')
45
+    }
46
+    SetInstanceId(guid: string): void {
47
+        throw new Error('Method not implemented.')
48
+    }
49
+    get ViewStateData(): { [key: string]: any } {
50
+        throw new Error('Method not implemented.')
51
+    }
52
+    SetViewStateData(viewStateData: { [key: string]: any }): void {
53
+        throw new Error('Method not implemented.')
54
+    }
55
+    get PropertyChanged(): { add: () => void; remove: () => void } {
56
+        throw new Error('Method not implemented.')
57
+    }
58
+    protected raisePropertyChanged(propertyName: string): void {
59
+        throw new Error('Method not implemented.')
60
+    }
22 61
     // }
23 62
     // 冠字号对象
24 63
     // private cashCode: CashCodeEntry | null = null

+ 18
- 8
ant-design-pro-vue3/src/views/front/develop/Constract/ContractBase/TradeAPIsHelper.ts 查看文件

@@ -1,6 +1,16 @@
1 1
 import SystemFunction from "@/views/front/develop/Library.Ext/Function/SystemFunction"
2 2
 import { PageBase } from "@/views/front/develop/Constract/ContractBase/PageBase";
3 3
 import Message from "../../Communication/Message";
4
+import { TradeManagerHandle } from "../../ServiceProxy.Ext/ServiceHelper/TradeManagerHandle";
5
+import LoginUserInfo from "@/views/front/platfrom/common/RunningParameters/LoginUserInfo";
6
+import { TradePowerManager } from "../../Library.Ext/TradeExtension/TradeMenu/TradePowerManager";
7
+import { LoginAuthentication } from "../../Library.Ext/TradeExtension/SSO/LoginAuthentication";
8
+import { CheckConditionElements } from "../Function/TradeCheck/CheckConditionElements";
9
+import { AuthConditionElement } from "../Function/TradeAuth/AuthConditionElement";
10
+import { CheckDataHelper } from "../Function/TradeCheck/CheckDataHelper";
11
+import { AuthDataHelper } from "../Function/TradeAuth/AuthDataHelper";
12
+import { WorkFlowHandle } from "@/views/front/platfrom/serviceproxy/ServiceHelper/WorkFlowHandle";
13
+import { AsksuperResultType, CheckManager } from "../Function/TradeCheck/CheckManager";
4 14
 
5 15
 class TradeAPIsHelper {
6 16
     // ctor & Property
@@ -13,7 +23,7 @@ class TradeAPIsHelper {
13 23
     // 封装交易API函数
14 24
     // Message操作
15 25
     public InitFd(message: Message): void {
16
-        SystemFunction.InitFd(this.Page, message);
26
+        SystemFunction.InitFd(message);
17 27
     }
18 28
 
19 29
     public CommSend(message: Message): void {
@@ -21,27 +31,27 @@ class TradeAPIsHelper {
21 31
     }
22 32
 
23 33
     public CommSend96(message: Message): void {
24
-        SystemFunction.CommSend96(this.Page, message);
34
+        SystemFunction.CommSend(this.Page, message);
25 35
     }
26 36
 
27 37
     public CallServer(message: Message): boolean {
28
-        return this.Page.CallServer(message);
38
+        return SystemFunction.CallServer(message);
29 39
     }
30 40
 
31 41
     public CallAgn(message: Message): boolean {
32
-        return this.Page.CallAgn(message);
42
+        return SystemFunction.CallAgn(message);
33 43
     }
34 44
 
35 45
     public CallAgnTips(message: Message): boolean {
36
-        return this.Page.CallAgnTips(message);
46
+        return SystemFunction.CallAgnTips(message);
37 47
     }
38 48
 
39 49
     public CallAgnRun(message: Message): boolean {
40
-        return this.Page.CallAgnRun(message);
50
+        return SystemFunction.CallAgnRun(message);
41 51
     }
42 52
 
43 53
     public CallMobileBanking(message: Message): boolean {
44
-        return this.Page.DoTransit(message, TransitType.CallMobileBanking);
54
+        return SystemFunction.DoTransit(message, TransitType.CallMobileBanking);
45 55
     }
46 56
 
47 57
     public CallAgnCIS(message: Message): boolean {
@@ -1037,7 +1047,7 @@ class TradeAPIsHelper {
1037 1047
     }
1038 1048
 
1039 1049
     public GetCheckElement(args: any): CheckConditionElements | null {
1040
-        const SinAmt = args.SinAmt.toString();
1050
+        let SinAmt = args.SinAmt.toString();
1041 1051
         let result: CheckConditionElements | null = null;
1042 1052
         const message: Message = {};
1043 1053
         this.InitFd(message);

+ 24
- 19
ant-design-pro-vue3/src/views/front/develop/Library.Ext/Function/SystemFunction.ts 查看文件

@@ -5,6 +5,7 @@ import { IPage } from "@/views/front/platfrom/presentation/Interfaces/Ipage";
5 5
 import { TransitType } from "@/views/front/develop/Communication/MessageHelper/TransitType";
6 6
 import { MainPageManager } from "@/views/front/develop/Library.Ext/TradeInterface/MainPage/MainPageManager";
7 7
 import TransitErrorCodeMap from "../../Communication/MessageHelper/TransitErrorCodeMap";
8
+import { PageBase } from "../../Constract/ContractBase/PageBase";
8 9
 // interface IPage {
9 10
 //     // 这里需要根据实际情况补充IPage接口的属性和方法
10 11
 //     OwnerContainer: any;
@@ -102,6 +103,9 @@ const LoginAuthentication = {
102 103
 };
103 104
 
104 105
 export default class SystemFunction {
106
+    static Len(Password: any) {
107
+        return 6;
108
+    }
105 109
     static GetError(errorCode: string): string {
106 110
         return TransitErrorCodeMap.GetInstance().GetErrorMessage(errorCode);
107 111
     }
@@ -110,7 +114,7 @@ export default class SystemFunction {
110 114
         return dataString;
111 115
     }
112 116
 
113
-    static InitFd(target: IPage, message: Message): void {
117
+    static InitFd(message: Message): void {//hulei-、去掉参数arget: IPage,没用
114 118
         message.Init(Message.BitMap);
115 119
     }
116 120
 
@@ -266,7 +270,7 @@ export default class SystemFunction {
266 270
         }
267 271
     }
268 272
 
269
-    static DoTransit(target: IPage, message: Message, transitName?: string): boolean {
273
+    static DoTransit(message: Message, transitName?: string): boolean { //去掉Ipage hulei target: IPage,
270 274
         //hulei 通讯逻辑需要改写不能按原有的处理
271 275
         if (message === null) return false;
272 276
         if (transitName !== undefined) message.TransitName = transitName;
@@ -275,28 +279,29 @@ export default class SystemFunction {
275 279
         const action = () => {
276 280
             returnValue = message.DoTransit();
277 281
         };
278
-        if (target.OwnerContainer !== null) {
279
-            // 假设这里有获取主页面的逻辑
280
-            const page = MainPageManager.GetMainPage() as IPage;//hulei创建页面
281
-            // if (page === null || !page.isAncestorOf(target)) {
282
-            //     page = target;
283
-            // }
284
-            // 假设这里有ModalInvoke的逻辑
285
-            // page.OwnerContainer.ModalInvoke(action, "网络通讯中,请稍后...");
286
-            //hulei
287
-        } else {
288
-            action();
289
-        }
282
+        // if (target.OwnerContainer !== null) {
283
+        // 假设这里有获取主页面的逻辑
284
+        // const page = MainPageManager.GetMainPage() as IPage;//hulei-s创建页面不知道在vue中是否存在
285
+
286
+        // if (page === null || !page.isAncestorOf(target)) {
287
+        //     page = target;
288
+        // }
289
+        // 假设这里有ModalInvoke的逻辑
290
+        // page.OwnerContainer.ModalInvoke(action, "网络通讯中,请稍后...");
291
+        //hulei
292
+        // } else {
293
+        action();
294
+        // }
290 295
         // target.GetTradeInfoData().LatestMessage = message;
291 296
         return returnValue;
292 297
     }
293 298
 
294
-    static CallServer(target: IPage, message: Message): boolean {
295
-        return this.DoTransit(target, message, "TransitType.CallServer");//hulei 改为字符
299
+    static CallServer(message: Message): boolean {
300
+        return this.DoTransit(message, "TransitType.CallServer");//hulei-s改为字符   Ipage 对象 不适用于vue
296 301
     }
297 302
 
298
-    static CallAgn(target: IPage, message: Message): boolean {
299
-        return this.DoTransit(target, message, "TransitType.CallAgn");
303
+    static CallAgn(message: Message): boolean {
304
+        return this.DoTransit(message, "TransitType.CallAgn");//target: IPage hulei-s改为字符   Ipage 对象 不适用于vue
300 305
     }
301 306
 
302 307
     // 其他方法...
@@ -308,7 +313,7 @@ export default class SystemFunction {
308 313
         return parseInt(number, 10);
309 314
     }
310 315
 
311
-    static Itoa(number: number, format: string): string {
316
+    static Itoa(Page: PageBase, number: number, format: string): string {
312 317
         const rgx = /^%{1}(-)?(([0-9]*)[dD]{1})|(([0-9]*)(.)?([0-9]*)[fF]{1})$/;
313 318
         if (!rgx.test(format)) {
314 319
             throw new Error("不支持该格式转换!");

+ 195
- 182
ant-design-pro-vue3/src/views/front/develop/Library.Ext/Function/UserFunction.ts
文件差異過大導致無法顯示
查看文件


+ 11
- 20
ant-design-pro-vue3/src/views/front/develop/Library.Ext/TradeExtension/Currency2DicManager.ts 查看文件

@@ -1,19 +1,10 @@
1
-// 模拟依赖的类和方法
2
-class Message {
3
-    Fd16: string = '';
4
-    FileData: string = '';
5
-    TransitNode: any;
6
-    Fd12: string = '';
1
+import Message from "../../Communication/Message";
2
+import { TransitType } from "../../Communication/MessageHelper/TransitType";
7 3
 
8
-    DoTransit(): boolean {
9
-        // 模拟消息传输成功
10
-        return true;
11
-    }
12
-}
13 4
 
14 5
 namespace SystemFunction {
15
-    export function InitFd(_: any, message: Message) {}
16
-    export function CommSend(_: any, message: Message) {}
6
+    export function InitFd(_: any, message: Message) { }
7
+    export function CommSend(_: any, message: Message) { }
17 8
 }
18 9
 
19 10
 namespace UserFunction {
@@ -73,10 +64,10 @@ class Currency2DicManager {
73 64
             SystemFunction.CommSend(null, message);
74 65
             message.Fd16 = '2016';
75 66
             const dic: { [key: string]: string } = {};
76
-            message.FileData = UserFunction.ConvertDictionaryToXML(dic);
77
-            message.TransitNode = TellerSystem.Communication.MessageHelper.TransitType.CallNoFileSys;
67
+            message.fileData = UserFunction.ConvertDictionaryToXML(dic);
68
+            message.TransitNode = TransitType.CallNoFileSys;
78 69
             if (message.DoTransit() && message.Fd12 === '0000') {
79
-                const dt = UserFunction.ConvertXMLToDataTable(message.FileData);
70
+                const dt = UserFunction.ConvertXMLToDataTable(message.fileData);
80 71
                 dt.rows.forEach((row) => {
81 72
                     this._dicCurrency[row['CurrencyNo']] = row['CurrencyName'];
82 73
                 });
@@ -92,10 +83,10 @@ class Currency2DicManager {
92 83
             SystemFunction.CommSend(null, message);
93 84
             message.Fd16 = '2015';
94 85
             const dic: { [key: string]: string } = {};
95
-            message.FileData = UserFunction.ConvertDictionaryToXML(dic);
96
-            message.TransitNode = TellerSystem.Communication.MessageHelper.TransitType.CallNoFileSys;
86
+            message.fileData = UserFunction.ConvertDictionaryToXML(dic);
87
+            message.TransitNode = TransitType.CallNoFileSys;
97 88
             if (message.DoTransit() && message.Fd12 === '0000') {
98
-                const dt = UserFunction.ConvertXMLToDataTable(message.FileData);
89
+                const dt = UserFunction.ConvertXMLToDataTable(message.fileData);
99 90
                 dt.rows.forEach((row) => {
100 91
                     this._dicTicketDistinct[row['CouponsNo']] = row['CouponsName'];
101 92
                 });
@@ -115,4 +106,4 @@ class Currency2DicManager {
115 106
     }
116 107
 }
117 108
 
118
-export default Currency2DicManager;
109
+export default Currency2DicManager;

+ 1
- 1
ant-design-pro-vue3/src/views/front/develop/Library.Ext/TradeExtension/SystemBatch/BatchHelper.ts 查看文件

@@ -1,6 +1,6 @@
1 1
 // 假设这些类型在其他文件中定义,这里先使用 any 占位
2 2
 
3
-import { BatSysInfo } from "@/views/front/develop/SServiceProxy.Ext/ServiceEntitys/BatSysInfo";
3
+import { BatSysInfo } from "@/views/front/develop/ServiceProxy.Ext/ServiceEntitys/BatSysInfo";
4 4
 
5 5
 
6 6
 // 假设这些函数在其他文件中定义

+ 13
- 13
ant-design-pro-vue3/src/views/front/develop/Library.Ext/TradeExtension/TradeAttach/DeviceManager.ts 查看文件

@@ -200,11 +200,11 @@ class DeviceManager {
200 200
         // 是否设计时
201 201
         // 这里简化处理,假设设计时判断逻辑
202 202
         if (false) {
203
-            if (d instanceof TextBox || d instanceof PasswordBox) {
204
-                // 这里简化处理,假设 FocusManager 相关方法
205
-                // FocusManager.RemoveGotFocusHandler(d, DeviceManager.tb_GotFocus);
206
-                // FocusManager.AddGotFocusHandler(d, DeviceManager.tb_GotFocus);
207
-            }
203
+            // if (d instanceof TextBox || d instanceof PasswordBox) {
204
+            //     // 这里简化处理,假设 FocusManager 相关方法
205
+            //     // FocusManager.RemoveGotFocusHandler(d, DeviceManager.tb_GotFocus);
206
+            //     // FocusManager.AddGotFocusHandler(d, DeviceManager.tb_GotFocus);
207
+            // }
208 208
         }
209 209
     }
210 210
 
@@ -212,19 +212,19 @@ class DeviceManager {
212 212
         let parentPage: IPage | null = null;
213 213
         let parent = sender as DependencyObject;
214 214
         while (parent) {
215
-            if (parent instanceof IPage) {
216
-                break;
217
-            }
215
+            // if (parent instanceof IPage) {hulei-/外设相关代码
216
+            //     break;
217
+            // }
218 218
             // 这里简化处理,假设 VisualTreeHelper 相关方法
219 219
             // parent = VisualTreeHelper.GetParent(parent);
220 220
         }
221
-        if (parent) {
222
-            parentPage = parent as IPage;
223
-        }
221
+        // if (parent) {
222
+        //     parentPage = parent as IPage;
223
+        // }
224 224
 
225 225
         let element = sender as FrameworkElement;
226 226
         if (element) {
227
-            element.ToolTip = "按F10可重新调用设备!";
227
+            // element.ToolTip = "按F10可重新调用设备!";
228 228
             // 这里简化处理,假设事件处理
229 229
             // element.PreviewKeyUp -= DeviceManager.ActiveDevice;
230 230
             // element.PreviewKeyUp += DeviceManager.ActiveDevice;
@@ -268,4 +268,4 @@ class DeviceManager {
268 268
     }
269 269
 }
270 270
 
271
-export default DeviceManager;
271
+export default DeviceManager;

+ 9
- 6
ant-design-pro-vue3/src/views/front/develop/Library.Ext/TradeExtension/TradeAttach/Encrypte.ts 查看文件

@@ -1,7 +1,10 @@
1 1
 import { EncrypteHandle } from "../../../ServiceProxy.Ext/ServiceHelper/EncrypteHandle";
2
+import { TradeManagerHandle } from "../../../ServiceProxy.Ext/ServiceHelper/TradeManagerHandle";
2 3
 import SystemFunction from "../../Function/SystemFunction";
3 4
 import { LoginAuthentication } from "../SSO/LoginAuthentication";
4
-
5
+import UserFunction from "@/views/front/develop/Library.Ext/Function/UserFunction";
6
+// import TradeManagerHandle from "@/views/front/develop/ServiceProxy.Ext/ServiceHelper/";
7
+TellerSystem.ServiceProxy.Ext.ServiceHelper
5 8
 class Encrypte {
6 9
     private static readonly key = "33333333333333333333333333333333";
7 10
     public static AccountNo: string = "";
@@ -118,13 +121,13 @@ class Encrypte {
118 121
 
119 122
     private static GetAcctount(elementName: string, element: DependencyObject, acctount: { value: string }): void {
120 123
         if ('Text' in element && 'Name' in element && element.Name === elementName) {
121
-            acctount.value = (element as TextBox).Text;//hulei 
124
+            acctount.value = "";//(element as TextBox).Text;//hulei-r VUE中没有TextBox
122 125
         }
123 126
 
124
-        // 这里简化了 VisualTreeHelper 的逻辑,实际需要实现递归查找子元素
127
+        // hulei-r 这里简化了 VisualTreeHelper 的逻辑,实际需要实现递归查找子元素
125 128
     }
126 129
 
127
-    private static PreviewPasswordBox_LostFocus(sender: PasswordBox, e: any): void {
130
+    private static PreviewPasswordBox_LostFocus(sender: any, e: any): void {//hulei-s 密码控件处理需要重写
128 131
         if (SystemFunction.Len(sender.Password) !== 6) {
129 132
             sender.ShowTip("请输入6位密码!");
130 133
             sender.Password = "";
@@ -188,10 +191,10 @@ class Encrypte {
188 191
                         if (Encrypte.GetEncrypteType(sender)) {
189 192
                             res = EncrypteHandle.EncrypteUnion_GM(accountNo, sender.Password.trim(), legalPwdKey, encrypteType);
190 193
                         } else {
191
-                            res = EncrypteHandle.EncrypteUnion(accountNo, sender.Password.trim());
194
+                            res = EncrypteHandle.EncrypteUnion(accountNo, sender.Password.trim(), "");
192 195
                         }
193 196
                     } else {
194
-                        res = EncrypteHandle.EncrypteUnion(accountNo, sender.Password.trim());
197
+                        res = EncrypteHandle.EncrypteUnion(accountNo, sender.Password.trim(), "");
195 198
                     }
196 199
                     break;
197 200
             }

+ 7
- 9
ant-design-pro-vue3/src/views/front/develop/Library.Ext/TradeExtension/TradeAttach/ExamSystem.ts 查看文件

@@ -1,9 +1,7 @@
1 1
 // 假设这些类型和类在其他地方定义
2
-interface ConfigManager {
3
-    static GetInstance(): {
4
-        GetConfigValue(key: string, configType: any): string;
5
-    };
6
-}
2
+
3
+import { ConfigManager } from "@/views/front/platfrom/common/RunningParameters/ConfigManager";
4
+
7 5
 
8 6
 interface ExamObject {
9 7
     IsExamModel: boolean;
@@ -32,8 +30,8 @@ enum CommniucationFlag {
32 30
 class ExamSystem {
33 31
     private static _instance: ExamSystem;
34 32
     private constructor() {
35
-        this.InExamMode = ConfigManager.GetInstance().GetConfigValue("InExamMode", 'System').toLowerCase() === 'true';
36
-        this.ExamEntity = { IsExamModel: this.InExamMode };
33
+        // this.InExamMode = ConfigManager.GetInstance().GetConfigValue("InExamMode", 'System').toLowerCase() === 'true';
34
+        // this.ExamEntity = { IsExamModel: this.InExamMode };hulei-/考试系统相关暂时也不改动
37 35
     }
38 36
 
39 37
     public static get Instance(): ExamSystem {
@@ -52,7 +50,7 @@ class ExamSystem {
52 50
         return this._submitExamCommand ?? (this._submitExamCommand = (obj) => {
53 51
             if (!this.InExamMode) return;
54 52
             // 模拟 Process.GetProcessesByName
55
-            const isProcessRunning = false; 
53
+            const isProcessRunning = false;
56 54
             if (!isProcessRunning) {
57 55
                 try {
58 56
                     // 模拟文件操作
@@ -149,4 +147,4 @@ class ExamSystem {
149 147
     }
150 148
 }
151 149
 
152
-export default ExamSystem;
150
+export default ExamSystem;

+ 3
- 3
ant-design-pro-vue3/src/views/front/develop/Library.Ext/TradeExtension/TradeAttach/InputDevice.ts 查看文件

@@ -28,7 +28,7 @@ interface DeviceEntity<T> {
28 28
     Data?: T;
29 29
 }
30 30
 
31
-interface PassWordEntity {}
31
+interface PassWordEntity { }
32 32
 
33 33
 class DeviceHelper {
34 34
     static FingerIsMatch(fingerUser: string): DeviceEntity<any> {
@@ -68,7 +68,7 @@ class InputDevice {
68 68
 
69 69
     constructor(tb: TextBox) {
70 70
         this.Target = tb;
71
-        this.ParentPage = tb.FindVisualTreeAncestor(x => x instanceof IPage) as IPage;
71
+        // this.ParentPage = tb.FindVisualTreeAncestor(x => x instanceof IPage) as IPage;
72 72
     }
73 73
 
74 74
     static GetInput(obj: TextBox): InputMode {
@@ -202,4 +202,4 @@ class InputDevice {
202 202
     }
203 203
 }
204 204
 
205
-export { InputDevice, InputMode, DeviceType };
205
+export { InputDevice, InputMode, DeviceType };

+ 2
- 1
ant-design-pro-vue3/src/views/front/develop/Library.Ext/TradeInterface/MainPage/MainPageManager.ts 查看文件

@@ -1,5 +1,6 @@
1 1
 // 模拟 IMainPage 接口
2 2
 interface IMainPage {
3
+    AddForceNotifyPlan(target: any): unknown;
3 4
     // 这里可以根据实际情况添加接口方法
4 5
 }
5 6
 
@@ -34,4 +35,4 @@ class MainPageManager {
34 35
     }
35 36
 }
36 37
 
37
-export { MainPageManager, IMainPage };
38
+export { MainPageManager, IMainPage };

+ 11
- 6
ant-design-pro-vue3/src/views/front/develop/Library.Ext/Variables/UserVariable.ts 查看文件

@@ -1,3 +1,5 @@
1
+import { List } from "ant-design-vue";
2
+
1 3
 // 定义 KeyValuePair 类型
2 4
 type KeyValuePair = { key: string; value: string };
3 5
 
@@ -37,6 +39,9 @@ class SelectionManager {
37 39
 
38 40
 // 定义 UserVariable 类
39 41
 class UserVariable {
42
+    static GetCardBin(target: any) {
43
+        return null;
44
+    }
40 45
     static GetYorN(): KeyValuePair[] {
41 46
         return [
42 47
             { key: "是", value: "Y" },
@@ -145,11 +150,11 @@ class UserVariable {
145 150
         ];
146 151
     }
147 152
 
148
-    static GetCurNo(): KeyValuePair[] {
149
-        return [
150
-            { key: "人民币", value: "01" }
151
-        ];
152
-    }
153
+    // static GetCurNo(): KeyValuePair[] {
154
+    //     return [
155
+    //         { key: "人民币", value: "01" }
156
+    //     ];
157
+    // }hulei-/
153 158
 
154 159
     static GetCurNo_WB(): KeyValuePair[] {
155 160
         return SelectionManager.Instance.PullSelection("CUR_NO", null);
@@ -199,4 +204,4 @@ class UserVariable {
199 204
 }
200 205
 
201 206
 // 导出 UserVariable 类
202
-export default UserVariable;
207
+export default UserVariable;

+ 11
- 11
ant-design-pro-vue3/src/views/front/develop/ServiceProxy.Ext/ServiceHelper/ServiceEntitys.ts 查看文件

@@ -1,12 +1,12 @@
1
-export class TransitEntity {
2
-  ServiceName: string = ''
3
-  FuncName: string = ''
4
-  Parameters: Record<string, string> = {}
5
-  AttachFiles: AttachFile[] = []
6
-}
1
+// export class TransitEntity {
2
+//   ServiceName: string = ''
3
+//   FuncName: string = ''
4
+//   Parameters: Record<string, string> = {}
5
+//   AttachFiles: AttachFile[] = []
6
+// }
7 7
 
8
-export class AttachFile {
9
-  AttachIndex: string = ''
10
-  AttachType: string = ''
11
-  AttachValue: any = null
12
-}
8
+// export class AttachFile {
9
+//   AttachIndex: string = ''
10
+//   AttachType: string = ''
11
+//   AttachValue: any = null
12
+// }

+ 34
- 31
ant-design-pro-vue3/src/views/front/develop/ServiceProxy.Ext/ServiceHelper/TradeHandle.ts 查看文件

@@ -1,13 +1,15 @@
1 1
 import { ref } from 'vue'
2 2
 import { message } from 'ant-design-vue'
3 3
 import ServiceManager from "@/views/front/platfrom/serviceproxy/ServiceHelper/TradeHandle";
4
-import { TransitEntity, AttachFile } from './ServiceEntitys'
4
+
5 5
 import CommonFunction from "@/views/front/platfrom/serviceproxy/CommonFunction";
6 6
 import { ServiceSettings } from "@/views/front/develop/ServiceProxy.Ext/ServiceSettings"
7 7
 import FilesHandle from '@/views/front/platfrom/serviceproxy/ServiceHelper/FilesHandle';
8 8
 import { CheckInfo } from '@/views/front/develop/ServiceProxy.Ext/ServiceEntitys/CheckInfo';
9 9
 import { CheckResult } from '@/views/front/develop/ServiceProxy.Ext/ServiceEntitys/CheckResult';
10 10
 import { AuthResult } from '@/views/front/develop/ServiceProxy.Ext/ServiceEntitys/AuthResult';
11
+import TransitEntity from '@/views/front/platfrom/serviceproxy/ServiceFunction/TransitEntity';
12
+// import { AttachFile } from '@/views/front/platfrom/serviceproxy/ServiceFunction/AttachFile';
11 13
 
12 14
 
13 15
 export enum Transit {
@@ -39,13 +41,14 @@ export default class TradeHandle {
39 41
         }
40 42
 
41 43
         const entity = new TransitEntity()
42
-        entity.ServiceName = 'TradeService'
43
-        entity.FuncName = 'GetFdItemMap'
44
-        entity.Parameters = { '1': type }
44
+        entity.ServiceName = 'TradeService';
45
+        entity.FuncName = 'GetFdItemMap';
46
+        entity.Parameters = { '1': type };
47
+
48
+        const tmpresult = ServiceManager.GetInstance().Commit(entity)
45 49
 
46
-        const tmpresult = await ServiceManager.GetInstance().Commit(entity)
47 50
         let data = null
48
-        if (tmpresult && tmpresult.length === 1) {
51
+        if (tmpresult && (await tmpresult).length === 1) {
49 52
             data = tmpresult[0].AttachValue as string
50 53
         }
51 54
 
@@ -86,17 +89,17 @@ export default class TradeHandle {
86 89
                 '7': serialNo
87 90
             }
88 91
 
89
-            const data = new AttachFile()
90
-            data.AttachIndex = '2'
91
-            data.AttachType = 'ByteType'
92
-            data.AttachValue = integrateData
93
-            entity.AttachFiles.push(data)
92
+            // const data = new AttachFile()
93
+            // data.AttachIndex = '2'
94
+            // data.AttachType = 'ByteType'
95
+            // data.AttachValue = integrateData
96
+            // entity.AttachFiles.push(data)
94 97
 
95
-            const data1 = new AttachFile()
96
-            data1.AttachIndex = '5'
97
-            data1.AttachType = 'ByteType'
98
-            data1.AttachValue = fileData
99
-            entity.AttachFiles.push(data1)
98
+            // const data1 = new AttachFile()
99
+            // data1.AttachIndex = '5'
100
+            // data1.AttachType = 'ByteType'
101
+            // data1.AttachValue = fileData
102
+            // entity.AttachFiles.push(data1)
100 103
 
101 104
             const tmpresult = await ServiceManager.GetInstance().Commit(entity)
102 105
             if (tmpresult) {
@@ -132,11 +135,11 @@ export default class TradeHandle {
132 135
                 '3': 'false'
133 136
             }
134 137
 
135
-            const data = new AttachFile()
136
-            data.AttachIndex = '2'
137
-            data.AttachType = 'ByteType'
138
-            data.AttachValue = new Uint8Array(0)
139
-            entity.AttachFiles.push(data)
138
+            // const data = new AttachFile()
139
+            // data.AttachIndex = '2'hulei-/ 
140
+            // data.AttachType = 'ByteType'
141
+            // data.AttachValue = new Uint8Array(0)
142
+            // entity.AttachFiles.push(data)
140 143
 
141 144
             const tmpresult = await ServiceManager.GetInstance().Commit(entity)
142 145
             if (tmpresult && tmpresult.length === 1) {
@@ -158,11 +161,11 @@ export default class TradeHandle {
158 161
             entity.ServiceName = 'TradeService'
159 162
             entity.FuncName = 'Check'
160 163
 
161
-            const data = new AttachFile()
162
-            data.AttachIndex = '1'
163
-            data.AttachType = 'TableType'
164
-            data.AttachValue = CommonFunction.ChangeEntityToTable([inf])
165
-            entity.AttachFiles.push(data)
164
+            // const data = new AttachFile()
165
+            // data.AttachIndex = '1' hulei-/ 
166
+            // data.AttachType = 'TableType'
167
+            // data.AttachValue = CommonFunction.ChangeEntityToTable([inf])
168
+            // entity.AttachFiles.push(data)
166 169
 
167 170
             const tmpresult = await ServiceManager.GetInstance().Commit(entity)
168 171
             if (tmpresult && tmpresult.length === 1) {
@@ -207,11 +210,11 @@ export default class TradeHandle {
207 210
                 '8': refuseReason
208 211
             }
209 212
 
210
-            const data = new AttachFile()
211
-            data.AttachIndex = '7'
212
-            data.AttachType = 'ByteType'
213
-            data.AttachValue = pagedata
214
-            entity.AttachFiles.push(data)
213
+            // const data = new AttachFile()
214
+            // data.AttachIndex = '7'
215
+            // data.AttachType = 'ByteType'
216
+            // data.AttachValue = pagedata
217
+            // entity.AttachFiles.push(data)
215 218
 
216 219
             const tmpresult = await ServiceManager.GetInstance().Commit(entity)
217 220
             if (tmpresult && tmpresult.length === 1) {

+ 131
- 0
ant-design-pro-vue3/src/views/front/develop/ServiceProxy.Ext/ServiceHelper/TradeManagerHandle.ts 查看文件

@@ -0,0 +1,131 @@
1
+
2
+
3
+import TransitEntity from '@/views/front/platfrom/serviceproxy/ServiceFunction/TransitEntity';
4
+import TT_KinbrInfo from '../TradeBusinessEntitys/TT_KinbrInfo';
5
+import { TT_LoginUser } from '../TradeBusinessEntitys/TT_LoginUser';
6
+// import { Types } from "@/views/front/platfrom/serviceproxy/ServiceFunction/Types";
7
+// import { AttachFile } from '@/views/front/platfrom/serviceproxy/ServiceFunction/AttachFile';
8
+
9
+
10
+
11
+export class TradeManagerHandle {
12
+    static Query_GroupCodeByUserCode(userCode: string): string[] {
13
+        throw new Error("Method not implemented.");
14
+    }
15
+    static GetKinbrLogo(kinbrno: string) {
16
+        throw new Error("Method not implemented.");
17
+    }
18
+    static GetClearingKinbrno(): string[] {
19
+        throw new Error("Method not implemented.");
20
+    }
21
+    static TT_SYSCONFIG_GetConfigValueByConfigID(arg0: string) {
22
+        return "V21";
23
+    }
24
+    // 查询机构信息
25
+    public static async GetAllKinbrInfo(kinbrNo: string): Promise<TT_KinbrInfo[]> {
26
+        try {
27
+            const entity = new TransitEntity()
28
+            entity.ServiceName = "tradeManagerService",
29
+                entity.FuncName = "GetAllKinbrInfo",
30
+                entity.Parameters = { "1": kinbrNo }
31
+
32
+
33
+            const tmpresult = ServiceManager.GetInstance().Commit(entity);
34
+            if (tmpresult && tmpresult.length === 1) {
35
+                return CommonFunction.changeTableToEntitys<TT_KinbrInfo>(tmpresult[0].AttachValue);
36
+            }
37
+            return [];
38
+        } catch (e) {
39
+            throw e;
40
+        }
41
+    }
42
+
43
+    // 查询柜员信息
44
+    public static async GetLoginuserList(kinbrno: string): Promise<TT_LoginUser[]> {
45
+        try {
46
+            const entity = new TransitEntity()
47
+            entity.ServiceName = 'tradeManagerService'
48
+            entity.FuncName = 'tradeManagerService'
49
+            entity.Parameters = { "1": kinbrno }
50
+
51
+            const tmpresult = await ServiceManager.GetInstance().Commit(entity);
52
+            if (tmpresult && tmpresult.length === 1) {
53
+                return CommonFunction.changeTableToEntitys<TT_LoginUser>(tmpresult[0].AttachValue);
54
+            }
55
+            return [];
56
+        } catch (e) {
57
+            throw e;
58
+        }
59
+    }
60
+
61
+    // 获取机构类型
62
+    public static async GetKinbrtypeByKinbrno(kinbrno: string): Promise<string> {
63
+        try {
64
+            const entity = new TransitEntity()
65
+            entity.ServiceName = 'tradeManagerService',
66
+                entity.FuncName = "GetKinbrtypeByKinbrno",
67
+                entity.Parameters = { "1": kinbrno }
68
+
69
+
70
+            const tmpresult = await ServiceManager.GetInstance().Commit(entity);
71
+            if (tmpresult && tmpresult.length === 1) {
72
+                return tmpresult[0].AttachValue.toString();
73
+            }
74
+            return "";
75
+        } catch (e) {
76
+            throw e;
77
+        }
78
+    }
79
+
80
+    // 机构同步
81
+    public static async tt_kinbrinfo_Sync(
82
+        deletelist: string,
83
+        add: TT_KinbrInfo[],
84
+        update: TT_KinbrInfo[]
85
+    ): Promise<string> {
86
+        try {
87
+            const entity = new TransitEntity()
88
+            entity.ServiceName = 'tradeManagerService',
89
+                entity.FuncName = "TT_kinbrinfo_Sync",
90
+                entity.Parameters = { "1": deletelist }
91
+            // entity.AttachFiles.push(new AttachFile({
92
+            //     AttachIndex: "2",
93
+            //     AttachType: Types.TableType,
94
+            //     AttachValue: CommonFunction.changeEntityToTable(add)
95
+            // }));
96
+
97
+            // entity.AttachFiles.push(new AttachFile({
98
+            //     AttachIndex: "3",
99
+            //     AttachType: Types.TableType,
100
+            //     AttachValue: CommonFunction.changeEntityToTable(update)
101
+            // }));hulei-/暂时不加附件 后面再说
102
+
103
+            const tmpresult = await ServiceManager.GetInstance().Commit(entity);
104
+            if (tmpresult && tmpresult.length === 1) {
105
+                return tmpresult[0].AttachValue.toString();
106
+            }
107
+            return "9999";
108
+        } catch (e) {
109
+            throw e;
110
+        }
111
+    }
112
+
113
+    // 其他方法实现类似,根据业务需求补充...
114
+}
115
+
116
+// 辅助函数类
117
+class CommonFunction {
118
+    public static changeTableToEntitys<T>(table: any): T[] {
119
+        // 实现DataTable到实体数组的转换
120
+        return [];
121
+    }
122
+
123
+    public static changeEntityToTable(entities: any[]): any {
124
+        // 实现实体数组到DataTable的转换
125
+        return {};
126
+    }
127
+
128
+    public static changArrayToStr(arr: string[]): string {
129
+        return arr.join(",");
130
+    }
131
+}

+ 2
- 2
ant-design-pro-vue3/src/views/front/platfrom/common/BasicFunctions/PageFunctions/TradeModel.ts 查看文件

@@ -1,7 +1,7 @@
1 1
 // 假设 NotificationObject 类的定义如下
2 2
 class NotificationObject {
3 3
     protected raisePropertyChanged(propertyName: string) {
4
-        // 这里可以实现属性变更通知的逻辑
4
+        // 这里可以实现属性变更通知的逻辑hulei-s 实现
5 5
         console.log(`Property ${propertyName} has changed.`);
6 6
     }
7 7
 }
@@ -106,4 +106,4 @@ class TradeModel extends NotificationObject {
106 106
     }
107 107
 }
108 108
 
109
-export default TradeModel;
109
+export default TradeModel;

+ 1
- 1
ant-design-pro-vue3/src/views/front/platfrom/common/RunningParameters/PlatformSettings.ts 查看文件

@@ -23,7 +23,7 @@ enum ConfigType {
23 23
 }
24 24
 
25 25
 
26
-export class PlatformSettings {
26
+export default class PlatformSettings {
27 27
     private static _encoding: BufferEncoding;
28 28
 
29 29
     /**

+ 7
- 5
ant-design-pro-vue3/src/views/front/platfrom/presentation/Interfaces/Ipage.ts 查看文件

@@ -1,10 +1,12 @@
1 1
 // 定义 Disposable 接口,模拟 C# 的 IDisposable
2
-interface Disposable {
3
-    dispose(): void;
4
-}
2
+// interface Disposable {
3
+//     dispose(): void;hulei-swindows系统的东西
4
+// }
5
+
6
+import { PageContainer } from "../PageFunctions/PageContainer";
5 7
 
6
-// 假设 PageContainer 类型定义
7
-class PageContainer { }
8
+// // 假设 PageContainer 类型定义
9
+// class PageContainer { }
8 10
 
9 11
 // 定义 IPage 接口
10 12
 export interface IPage extends Disposable {

+ 20
- 48
ant-design-pro-vue3/src/views/front/platfrom/presentation/PageFunctions/TradePage.ts 查看文件

@@ -1,56 +1,28 @@
1
-// 定义相关类型
2
-interface TradeModel {}
3
-interface PageContainer {}
4
-interface IPage {
5
-    Dispose(): void;
6
-    OwnerContainer: PageContainer;
7
-    SetOwnerContainer(pageContainer: PageContainer): void;
8
-    InstanceId: string;
9
-    SetInstanceId(guid: string): void;
10
-    ViewStateData: { [key: string]: any };
11
-    SetViewStateData(viewStateData: { [key: string]: any }): void;
12
-}
13
-
14
-interface EventHandler {
15
-    (sender: any, e: any): void;
16
-}
1
+import TradeModel from "../../common/BasicFunctions/PageFunctions/TradeModel";
2
+import { IPage } from "../Interfaces/Ipage";
3
+import { PageContainerHelper } from "../PagesHelper/PageContainerHelper";
4
+import { PageHelper } from "../PagesHelper/PageHelper";
5
+import { PageContainer } from "./PageContainer";
17 6
 
18
-interface PropertyChangedEventHandler {
19
-    (sender: any, e: { propertyName: string }): void;
20
-}
21
-
22
-// 模拟辅助类
23
-class PageHelper {
24
-    static GetTradeModel(sender: any): TradeModel {
25
-        return {} as TradeModel;
26
-    }
27
-    static SetTradeModel(sender: any, value: TradeModel) {}
28
-    static SetOwnerPage(sender: any, page: any) {}
29
-    static GetViewStateData(sender: any): { [key: string]: any } {
30
-        return {};
31
-    }
32
-    static SetViewStateData(sender: any, viewStateData: { [key: string]: any }) {}
33
-}
34 7
 
35
-class PageContainerHelper {
36
-    static GetOwnerContainer(sender: any): PageContainer {
37
-        return {} as PageContainer;
38
-    }
39
-    static SetOwnerContainer(sender: any, pageContainer: PageContainer) {}
40
-    static GetInstanceId(sender: any): string {
41
-        return "";
42
-    }
43
-    static SetInstanceId(sender: any, guid: string) {}
44
-}
45 8
 
46 9
 class TradePage implements IPage {
47
-    private _ready: EventHandler | null = null;
48
-    private _propertyChanged: PropertyChangedEventHandler | null = null;
10
+    // private _ready: EventHandler | null = null;
11
+    // private _propertyChanged: PropertyChangedEventHandler | null = null;//hulei-s 微软自带
49 12
 
50 13
     constructor() {
51 14
         // 模拟加载事件
52 15
         this.triggerLoad();
53 16
     }
17
+    GetTradeInfoData(): unknown {
18
+        throw new Error("Method not implemented.");
19
+    }
20
+    dispose(): void {
21
+        throw new Error("Method not implemented.");
22
+    }
23
+    [Symbol.dispose](): void {
24
+        throw new Error("Method not implemented.");
25
+    }
54 26
 
55 27
     get TradeModel(): TradeModel {
56 28
         return PageHelper.GetTradeModel(this);
@@ -81,9 +53,9 @@ class TradePage implements IPage {
81 53
         this.onTradePageLoaded();
82 54
     }
83 55
 
84
-    protected onTradePageLoaded() {}
56
+    protected onTradePageLoaded() { }
85 57
 
86
-    Dispose() {}
58
+    Dispose() { }
87 59
 
88 60
     get OwnerContainer(): PageContainer {
89 61
         return PageContainerHelper.GetOwnerContainer(this);
@@ -117,7 +89,7 @@ class TradePage implements IPage {
117 89
             add: (handler: PropertyChangedEventHandler) => {
118 90
                 this._propertyChanged = handler;
119 91
             },
120
-            remove: (handler: PropertyChangedEventHandler) => {
92
+            remove: () => {
121 93
                 if (this._propertyChanged === handler) {
122 94
                     this._propertyChanged = null;
123 95
                 }
@@ -132,4 +104,4 @@ class TradePage implements IPage {
132 104
     }
133 105
 }
134 106
 
135
-export default TradePage;
107
+export default TradePage;

+ 1
- 1
ant-design-pro-vue3/src/views/front/platfrom/serviceproxy/ServiceFunction/AttachFile.ts 查看文件

@@ -17,4 +17,4 @@ export class AttachFile {
17 17
         this.AttachType = attachType;
18 18
         this.AttachValue = attachValue;
19 19
     }
20
-}
20
+}

+ 4
- 4
ant-design-pro-vue3/src/views/front/platfrom/serviceproxy/ServiceFunction/TransitEntity.ts 查看文件

@@ -1,7 +1,7 @@
1 1
 // 假设 AttachFile 类的定义如下,实际使用时需要根据具体情况修改
2
-class AttachFile {
3
-    // 这里可以添加 AttachFile 类的具体属性和方法
4
-}
2
+// class AttachFile {
3
+//     // 这里可以添加 AttachFile 类的具体属性和方法
4
+// }
5 5
 
6 6
 export default class TransitEntity {
7 7
     // 服务方法名
@@ -11,7 +11,7 @@ export default class TransitEntity {
11 11
     // 方法参数(以Dictionary方式,key为参数在方法中的位置,value为参数值)
12 12
     public Parameters: { [key: string]: string };
13 13
     // 附件列表,特殊结构(转换成table结构)与大数据byte[]参数做为附件传递
14
-    public AttachFiles?: AttachFile[];
14
+    public AttachFiles: AttachFile[];
15 15
     // 超时设置,单位ms
16 16
     public Timeout?: number;
17 17
 

Loading…
取消
儲存