ludc
2025-01-16 986aa62ed00bee39363bab41b4eeb8259d446efd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
package com.vci.server.portal;
 
import java.util.Date;
 
import org.omg.CORBA.IntHolder;
 
import com.vci.corba.portal.PortalService;
import com.vci.corba.portal.data.Constraint;
import com.vci.corba.portal.data.PLAction;
import com.vci.corba.portal.data.PLActionCls;
import com.vci.corba.portal.data.PLActionParam;
import com.vci.corba.portal.data.PLCommandParameter;
import com.vci.corba.portal.data.PLPageDefination;
import com.vci.corba.portal.data.PLUILayout;
import com.vci.corba.portal.data.PLTabButton;
import com.vci.corba.portal.data.PLTabPage;
import com.vci.corba.portal.data.PLTypeAction;
import com.vci.corba.portal.data.PortalVI;
import com.vci.server.BaseService;
import com.vci.server.base.exception.ExceptionLocalHandler;
import com.vci.server.portal.delegate.PortalServiceDelegate;
import com.zeroc.Ice.Current;
import com.vci.common.ServiceNames;
import com.vci.common.exception.VciExceptionTool;
import com.vci.corba.common.VCIError;
 
public class PortalServiceImpl extends BaseService implements PortalService {
    
    PortalServiceDelegate delegate = null;
    
    public PortalServiceImpl() {
//        ActionClsCacheUtil.initCache();
//        ActionCacheUtil.initCache();
//        ActionParamCacheUtil.initCache();
//        ComponentCacheUtil.initCache();
//        ComponentBtnCacheUtil.initCache();
//        ButtonParamCacheUtil.initCache();
//        UIContextCacheUtil.initCache();
//        PortalVICacheUtil.initCache();
//        TabPageCacheUtil.initCache();
    }
    
    private VCIError getLocalVciError(String key, Throwable e) {
        VCIError error = new VCIError(key, new String[]{VciExceptionTool.getExceptionStr(e), VciExceptionTool.getExceptionDetail(e)});
        VCIError rsError = ExceptionLocalHandler.getInstance().getLocalString(error, "PLMUIService");
        return rsError;
    }
    
    private PortalServiceDelegate getPortalServiceDelegate() {
        delegate = PortalServiceDelegate.getInstance();
        return delegate;
    }
    
    @Override
    public String getServiceName() {
        return ServiceNames.UISERVICE;
    }
    
    @Override
    public void test(com.zeroc.Ice.Current current) {
        String op = current.operation;
        String adapter = current.adapter.getName();
        String id = current.id.name;
        String time = new Date().toString();
        System.out.println(String.format("== %s [PortalService.test] (adapter=%s, id=%s, op=%s)",  time, adapter, id, op));
    }
 
 
    /**
     * 保存视图
     */
    @Override
    public boolean savePortalVI(PortalVI portalVI, Current current) throws VCIError{
        try{
            return getPortalServiceDelegate().savePortalVI(portalVI);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00001", e);
        }
    }
 
    /**
     * 更新视图
     */
    @Override
    public boolean updatePortalVI(PortalVI portalVI, Current current) throws VCIError{
        try{
            return getPortalServiceDelegate().updatePortalVI(portalVI);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00002", e);
        }
        
    }
 
    /**
     * 删除视图
     */
    @Override
    public boolean deletePortalVI(PortalVI portalVI, Current current) throws VCIError{
        try{
            return getPortalServiceDelegate().deletePortalVI(portalVI);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00003", e);
        }
    }
 
    /**
     * 删除指定ID的视图
     */
    @Override
    public boolean deletePortalVIByID(String id, Current current) throws VCIError{
        
        try{
            return getPortalServiceDelegate().deletePortalVIByID(id);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00003", e);
        }
    }
 
    /**
     * 获取指定类型下的所有视图
     */
    @Override
    public PortalVI[] getPortalVIArrayByTypeName(String typeName, Current current) throws VCIError {
        
        try{
            return getPortalServiceDelegate().getPortalVIArrayByTypeName(typeName);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00004", e);
        }
    }
    
//    @Override
//    public PortalVI[] getPagePortalVIArrayByTypeName(String typeName, long startPage, long endPage, Current current) throws VCIError {
//        
//        try{
//            return getPortalServiceDelegate().getPagePortalVIArrayByTypeName(typeName, startPage, endPage);
//        }catch(Throwable e){
//            e.printStackTrace();
//            throw this.getLocalVciError("P0010UIService-00004", e);
//        }
//    }
//    
//
//    @Override
//    public PortalVI[] getPagePortalVIArrayByCondition(String typeName,
//            short sheetType, String sheetName, long startPage, long endPage, Current current)
//            throws VCIError {
//        try{
//            return getPortalServiceDelegate().getPagePortalVIArrayByCondition(typeName, sheetType, sheetName, startPage, endPage);
//        }catch(Throwable e){
//            e.printStackTrace();
//            throw this.getLocalVciError("P0010UIService-00004", e);
//        }
//    }
 
    /**
     * 根据翻页参数返回表单
     * @param typeName 表单所在类型名称
     * @param viName 表单名称 模糊查询
     * @param viType 表单类型 PortalVIType.Table|Form
     * @param viTypeFlag 表单类型标识 PortalVITypeFlag.BtmType|LinkType
     * @param pageIndex 页号
     * @param pageSize 页大小
     * @param total 输出参数总数
     * @return
     * @throws Throwable
     */
    @Override
    public GetPagePortalVIArrayByPageInfoResult getPagePortalVIArrayByPageInfo(String typeName,
            String viName, short viType, short viTypeFlag, long pageIndex,
            long pageSize, Current current) throws VCIError {
        try{
            IntHolder total = new IntHolder();
            
            PortalVI[] vis = getPortalServiceDelegate().getPagePortalVIArrayByPageInfo(
                    typeName, viName, viType, viTypeFlag, pageIndex, pageSize, total);
            
            return new GetPagePortalVIArrayByPageInfoResult(vis, total.value);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00004", e);
        }
    }
    
    /**
     * 根据OID级联删除表单
     * @param oids 表单 oids
     * @return
     * @throws Throwable
     */
    @Override
    public boolean deletePagePortalVIForCascade(String[] oids, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().deletePagePortalVIForCascade(oids);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00003", e);
        }
    }
 
    
    @Override
    public long getPortalVICountByTypeName(String typeName, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getPortalVICountByTypeName(typeName);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00004", e);
        }
    }
    
 
    @Override
    public long getPortalVICountByCondition(String typeName, short sheetType,
            String sheetName, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getPortalVICountByCondition(typeName, sheetType, sheetName);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00004", e);
        }
    }
 
    /**
     * 获取指定ID的视图
     */
    @Override
    public PortalVI getPortalVIById(String id, Current current) throws VCIError{
        try{
            return getPortalServiceDelegate().getPortalVIById(id);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00005", e);
        }
    }
    
    /**
     * 获取指定标示的视图
     */
    @Override
    public PortalVI getPortalVIBySymbol(String symbol, Current current) throws VCIError{
        try{
            return getPortalServiceDelegate().getPortalVIBySymbol(symbol);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00005", e);
        }
    }
    
 
    /**
     * 保存Action
     */
    @Override
    public boolean savePLAction(PLAction plAction, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().savePLAction(plAction);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00006", e);
        }
        
    }
 
    /**
     * 更新Action
     */
    @Override
    public boolean updatePLAction(PLAction plAction, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().updatePLAction(plAction);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00007", e);
        }
    }
 
    /**
     * 删除Action
     */
    @Override
    public boolean deletePLAction(PLAction plAction, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().deletePLAction(plAction);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00008", e);
        }
        
    }
 
    /**
     * 删除Action
     */
    @Override
    public boolean deletePLActionByID(String id, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().deletePLActionByID(id);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00008", e);
        }
        
    }
 
    /**
     * 保存command参数
     */
    @Override
    public boolean savePLCommandParameter(PLCommandParameter plCommandParameter, Current current)
            throws VCIError {
        try{
            return getPortalServiceDelegate().savePLCommandParameter(plCommandParameter);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00009", e);
        }
        
    }
 
    /**
     * 更新command参数
     */
    @Override
    public boolean updatePLCommandParameter(
            PLCommandParameter plCommandParameter, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().updatePLCommandParameter(plCommandParameter);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00010", e);
        }
        
    }
 
    /**
     * 删除command参数
     */
    @Override
    public boolean deletePLCommandParameter(
            PLCommandParameter plCommandParameter, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().deletePLCommandParameter(plCommandParameter);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00011", e);
        }
        
    }
 
    /**
     * 删除command参数
     */
    @Override
    public boolean deletePLCommandParameterByID(String id, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().deletePLCommandParameterByID(id);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00011", e);
        }
        
    }
    
    /**
     * 根据TabButtonID删除参数信息
     */
    @Override
    public boolean deletePLCommandParameterByTabButtonId(String id, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().deletePLCommandParameterByTabButtonId(id);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00011", e);
        }
    }
 
    /**
     * 保存页面布局
     */
    @Override
    public boolean savePLUILayout(
            PLUILayout plUILayout, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().savePLUILayout(plUILayout);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00012", e);
        }
        
    }
 
    /**
     * 更新页面布局
     */
    @Override
    public boolean updatePLUILayout(
            PLUILayout plUILayout, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().updatePLUILayout(plUILayout);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00013", e);
        }
        
    }
 
    /**
     * 删除页面布局
     */
    @Override
    public boolean deletePLUILayout(
            PLUILayout plUILayout, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().deletePLUILayout(plUILayout);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00014", e);
        }
        
    }
 
    /**
     * 删除页面布局
     */
    @Override
    public boolean deletePLUILayoutByID(String id, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().deletePLUILayoutByID(id);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00014", e);
        }
        
    }
 
    public boolean deletePLUILayoutByOidsForCascade(String[] oids, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().deletePLUILayoutByOidsForCascade(oids);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00014", e);
        }
    }
    /**
     * 保存页签按钮
     */
    @Override
    public boolean savePLTabButton(PLTabButton plTabButton, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().savePLTabButton(plTabButton);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00015", e);
        }
        
    }
 
    /**
     * 保存按钮及参数
     */
    @Override
    public boolean savePLTabButtonAndParams(PLTabButton[] plTabButton,
            PLCommandParameter[] btnParams, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().savePLTabButtonAndParams(plTabButton, btnParams);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00015", e);
        }
    }
    
    /**
     * 更新页签按钮
     */
    @Override
    public boolean updatePLTabButton(PLTabButton plTabButton, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().updatePLTabButton(plTabButton);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00016", e);
        }
        
    }
 
    /**
     * 删除页签按钮
     */
    @Override
    public boolean deletePLTabButton(PLTabButton plTabButton, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().deletePLTabButton(plTabButton);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00017", e);
        }
        
    }
 
    /**
     * 删除页签按钮
     */
    @Override
    public boolean deletePLTabButtonByID(String id, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().deletePLTabButtonByID(id);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00017", e);
        }
        
    }
    @Override
    public boolean deletePLTabButtonByOidsForCascade(String[] oids, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().deletePLTabButtonByOidsForCascade(oids);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00017", e);
        }
    }
    /**
     * 保存页签
     */
    @Override
    public boolean savePLTabPage(PLTabPage plTabPage, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().savePLTabPage(plTabPage);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00018", e);
        }
        
    }
 
    /**
     * 更新页签
     */
    @Override
    public boolean updatePLTabPage(PLTabPage plTabPage, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().updatePLTabPage(plTabPage);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00019", e);
        }
        
    }
 
    /**
     * 删除页签
     */
    @Override
    public boolean deletePLTabPage(PLTabPage plTabPage, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().deletePLTabPage(plTabPage);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00020", e);
        }
        
    }
 
    /**
     * 删除页签
     */
    @Override
    public boolean deletePLTabPageByID(String id, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().deletePLTabPageByID(id);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00020", e);
        }
        
    }
 
    @Override
    public boolean deletePLTabPageByOidsForCascade(String[] oids, Current current) throws VCIError{
        try{
            return getPortalServiceDelegate().deletePLTabPageByOidsForCascade(oids);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00020", e);
        }
    }
    /**
     * 根据ID获取指定的PLAction
     */
    @Override
    public PLAction getPLActionById(String plOId, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getPLActionById(plOId);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00021", e);
        }
        
    }
 
    /**
     * 获取所有PLAction
     */
    @Override
    public PLAction[] getAllPLAction(Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getAllPLAction();
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00022", e);
        }
        
    }
    
    /**
     * 根据ID获取指定的PLCommandParameter
     */
    @Override
    public PLCommandParameter getPLCommandParameterById(String plOId, Current current)
            throws VCIError {
        try{
            return getPortalServiceDelegate().getPLCommandParameterById(plOId);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00023", e);
        }
        
    }
 
    /**
     * 根据plCommandOId获取PLCommandParameterArray
     */
    @Override
    public PLCommandParameter[] getPLCommandParametersByCommandOId(
            String plCommandOId, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getPLCommandParametersByCommandOId(plCommandOId);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00024", e);
        }
        
    }
 
    /**
     * 根据ID获取指定的PLUILayout
     */
    @Override
    public PLUILayout getPLUILayoutById(String plOId, Current current)
            throws VCIError {
        try{
            return getPortalServiceDelegate().getPLUILayoutById(plOId);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00025", e);
        }
        
    }
    @Override
    public PLUILayout[] getPLUILayoutEntity(String contentStr, Current current)    throws VCIError {
        try{
            return getPortalServiceDelegate().getPLUILayoutEntity(contentStr);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00039", e);
        }
        
    }
 
    /**
     * 根据关联类型获取PLUILayoutArray
     */
    @Override
    public PLUILayout[] getPLUILayoutsByRelatedType(
            String plRelatedType, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getPLUILayoutsByRelatedType(plRelatedType);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00026", e);
        }
        
    }
    @Override
    public GetPLUILayoutsByRelatedTypeAndQueryInfoResult getPLUILayoutsByRelatedTypeAndQueryInfo(String plRelatedType,
            String name, String code, long pageIndex, long pageSize, Current current) throws VCIError{
        try{
            IntHolder total = new IntHolder();
            PLUILayout[] uis = getPortalServiceDelegate().getPLUILayoutsByRelatedTypeAndQueryInfo(
                    plRelatedType, name, code, (int)pageIndex, (int)pageSize, total);
            
            return new GetPLUILayoutsByRelatedTypeAndQueryInfoResult(uis, total.value);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00026", e);
        }
    }
    /**
     * 根据关联类型获取PLUILayoutArray
     */
    @Override
    public PLUILayout[] getPLUILayoutEntityByTypeAndCode(
            String plRelatedType, String code, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getPLUILayoutEntity(plRelatedType, code);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00045", e);
        }
        
    }
    
    
 
    /**
     * 根据ID获取指定的PLTabPage
     */
    @Override
    public PLTabPage getPLTabPageById(String plOId, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getPLTabPageById(plOId);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00027", e);
        }
        
    }
 
    /**
     * 根据plPageDefinationOId获取PLUILayoutArray
     */
    @Override
    public PLTabPage[] getPLTabPagesByPageDefinationOId(
            String plPageDefinationOId, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getPLTabPagesByPageDefinationOId(plPageDefinationOId);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00028", e);
        }
        
    }
    
    /**
     * 根据上下文ID和区域类型,按顺序获取当前区域的tab页
     */
    @Override
    public PLTabPage[] getTabPagesByContextIdAndType(String contextId, short type, Current current) throws VCIError {
        try {
            return getPortalServiceDelegate().getTabPagesByContextIdAndType(contextId, type);
        } catch (Throwable e) {
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00028", e);
        }
    }
 
    /**
     * 根据ID获取指定的PLTabButton
     */
    @Override
    public PLTabButton getPLTabButtonById(String plOId, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getPLTabButtonById(plOId);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00029", e);
        }
        
    }
 
    /**
     * 根据plTableOId获取PLTabButtonArray
     */
    @Override
    public PLTabButton[] getPLTabButtonsByTableOId(String plTableOId, Current current)
            throws VCIError {
        try{
            return getPortalServiceDelegate().getPLTabButtonsByTableOId(plTableOId);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00030", e);
        }
        
    }
 
    /**
     * 保存界面
     */
    @Override
    public boolean savePLPageDefination(PLPageDefination plPageDefination, Current current)
            throws VCIError {
        try{
            return getPortalServiceDelegate().savePLPageDefination(plPageDefination);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00031", e);
        }
    }
 
    /**
     * 更新界面
     */
    @Override
    public boolean updatePLPageDefination(PLPageDefination plPageDefination, Current current)
            throws VCIError {
        try{
            return getPortalServiceDelegate().updatePLPageDefination(plPageDefination);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00032", e);
        }
        
    }
 
    /**
     * 删除界面
     */
    @Override
    public boolean deletePLPageDefination(PLPageDefination plPageDefination, Current current)
            throws VCIError {
        try{
            return getPortalServiceDelegate().deletePLPageDefination(plPageDefination);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00033", e);
        }
    }
 
    /**
     * 删除界面
     */
    @Override
    public boolean deletePLPageDefinationByID(String id, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().deletePLPageDefinationByID(id);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00033", e);
        }
    }
 
    @Override
    public boolean deletePLPageDefinationByOidsForCascade(String[] oids, Current current) throws VCIError{
        try{
            return getPortalServiceDelegate().deletePLPageDefinationByOidsForCascade(oids);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00033", e);
        }
    }
    /**
     * 根据ID获取指定的PLPageDefination
     */
    @Override
    public PLPageDefination getPLPageDefinationById(String plOId, Current current)
            throws VCIError {
        try{
            return getPortalServiceDelegate().getPLPageDefinationById(plOId);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00034", e);
        }
        
    }
 
    /**
     * 根据plPageContextOId获取指定的PLPageDefinationArray
     */
    @Override
    public PLPageDefination[] getPLPageDefinationsByPageContextOId(
            String plPageContextOId, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getPLPageDefinationsByPageContextOId(plPageContextOId);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00035", e);
        }
        
    }
 
    /**
     * 根据type,code获取指定的PLTabPage
     */
    @Override
    public PLTabPage[] getPLTabPagesByTypeANDCode(String type,
            String code, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getPLTabPagesByTypeANDCode(type, code);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00036", e);
        }
        
    }
 
    /**
     * 根据类型名和视图名获取视图
     */
    @Override
    public PortalVI getPortalVIByTypeNameAndVIName(String typeName, String viName, Current current)
            throws VCIError {
        try{
            return getPortalServiceDelegate().getPortalVIByTypeNameAndVIName(typeName, viName);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00037", e);
        }
    }
 
    /**
     * 根据约束条件组查询数组, 查询PLActions
     */
    @Override
    public PLAction[] getPLActionsByConsArray(Constraint[] consArray, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getPLActionsByConsArray(consArray);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00038", e);
        }
    }
 
 
    /**
     * 查询所有Action分类
     */
    @Override
    public PLActionCls[] getPLActionClsArray(Current current) throws VCIError {
        return getPortalServiceDelegate().getPLActionClsArray();
    }
 
    /**
     * 创建Action分类
     */
    @Override
    public String creaetePLActionCls(PLActionCls cls, Current current) {
        return getPortalServiceDelegate().creaetePLActionCls(cls);
    }
 
    /**
     * 修改Action分类信息
     */
    @Override
    public String editPLActionCls(PLActionCls cls, Current current) {
        return getPortalServiceDelegate().editPLActionCls(cls);
    }
 
    /**
     * 删除分类
     */
    @Override
    public String deletePLActionClsById(String id, Current current) {
        return getPortalServiceDelegate().deletePLActionClsById(id);
    }
 
    /**
     * 根据ActionID查询按钮参数列表
     */
    @Override
    public PLActionParam[] getPLActionParamArrayByActionId(String actionId, Current current)
            throws VCIError {
        return getPortalServiceDelegate().getPLActionParamArrayByActionId(actionId);
    }
    /**
     * 创建参数分类
     */
    @Override
    public String createPLActionParam(PLActionParam param, Current current) {
        return getPortalServiceDelegate().createPLActionParam(param);
    }
    /**
     * 批量创建分类
     */
    @Override
    public String createPLActionParamBatch(PLActionParam[] params, Current current) {
        return getPortalServiceDelegate().createPLActionParamBatch(params);
    }
    /**
     * 修改参数
     */
    @Override
    public String editPLActionParam(PLActionParam param, Current current) {
        return getPortalServiceDelegate().editPLActionParam(param);
    }
    /**
     * 删除参数
     */
    @Override
    public String deletePLActionParam(String id, Current current) {
        return getPortalServiceDelegate().deletePLActionParam(id);
    }
 
    @Override
    public boolean savePLTypeActionEntity(PLTypeAction plTypeAction, Current current)throws VCIError {
        try {
            return getPortalServiceDelegate().savePLTypeActionEntity(plTypeAction);
        } catch (Throwable e) {
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00040", e);
        }
    }
 
 
    @Override
    public boolean deletePLTypeActionEntityByTypeAndAction(String type,String actionoId, Current current) throws VCIError {
        try {
            return getPortalServiceDelegate().deletePLTypeActionEntityByTypeAndAction(type, actionoId);
        } catch (Throwable e) {
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00041", e);
        }
    }
 
 
    @Override
    public PLAction[] getAllPLActionEntityByType(String type, Current current)
            throws VCIError {
        try {
            return getPortalServiceDelegate().getAllPLActionEntityByType(type);
        } catch (Throwable e) {
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00042", e);
        }
    }
 
    /**
     * 根据type和formName判断表单是否能被修改
     * @param type
     * @param name
     * @return
     */
    @Override
    public boolean judgeUpdateButton(short type, String viName, String typeName, Current current)
            throws VCIError {
        try {
            return getPortalServiceDelegate().judgeUpdateButton(type, viName, typeName);
        } catch (Throwable e) {
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00043", e);
        }
    }
    
    /**
     * 根据id判断表单是否能被删除
     * @param type
     * @param name
     * @return
     */
    @Override
    public boolean judgeDeleteButton(String id, String typeName, Current current)
            throws VCIError {
        try {
            return getPortalServiceDelegate().judgeDeleteButton(id, typeName);
        } catch (Throwable e) {
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00044", e);
        }
    }
 
 
    @Override
    public PLUILayout[] getAllPLUILayouts(Current current)
            throws VCIError {
        try{
            return getPortalServiceDelegate().getAllPLUILayouts();
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00026", e);
        }
    }
 
 
    @Override
    public PLTabPage[] getAllPLTabPages(Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getAllPLTabPages();
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00036", e);
        }
    }
 
 
    @Override
    public PLPageDefination[] getAllPLPageDefinations(Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getAllPLPageDefinations();
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00035", e);
        }
    }
    
    @Override
    public PLPageDefination[] getAllPLPageDefinationsWithNoConf(Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getAllPLPageDefinationsWithNoConf();
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00035", e);
        }
    }
    
    @Override
    public PLTabButton[] getAllPLTabButtons(Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getAllPLTabButtons();
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00030", e);
        }
    }
 
 
    @Override
    public PLCommandParameter[] getAllPLCommandParameters(Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getAllPLCommandParameters();
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00024", e);
        }
    }
 
 
    @Override
    public PortalVI[] getAllPortalVI(Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().getAllPortalVI();
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00004", e);
        }
    }
 
    @Override
    public PortalVI[] getPortalVIBySymbolAndTypeName(String viName, String type, Current current)
            throws VCIError {
        try{
            return getPortalServiceDelegate().getPortalVIBySymbolAndTypeName(viName, type);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00047", e);
        }
    }
 
    @Override
    public boolean copyTabPageToPageLayout(String[] tabPageOids,
            PLUILayout plUILayout, short areaType, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().copyTabPageToPageLayout(tabPageOids, 
                    plUILayout, areaType);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00048", e);
        }
    }
 
    @Override
    public boolean copyComptToTabPage(String[] comptOids, PLTabPage plTabPage, Current current) throws VCIError {
        try{
            return getPortalServiceDelegate().copyComptToTabPage(comptOids, plTabPage);
        }catch(Throwable e){
            e.printStackTrace();
            throw this.getLocalVciError("P0010UIService-00004", e);
        }
    }
 
 
 
}