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
package com.vci.client.portal.test;
 
import org.junit.Assert;
import org.junit.Test;
 
import com.vci.client.portal.utility.UITools;
import com.vci.common.utility.ObjectUtility;
import com.vci.corba.common.VCIError;
import com.vci.corba.portal.data.PLUILayout;
 
public class TestPLUILayoutDefination {
    
    //test保存PLAction
    @org.junit.Test
    public void testSavePLUILayout(){
        PLUILayout plPageLayoutDefination = new PLUILayout();
        plPageLayoutDefination.plOId = ObjectUtility.getNewObjectID36();
        System.out.println(plPageLayoutDefination.plOId);
        plPageLayoutDefination.plCode = "StandardManagementContext";
        plPageLayoutDefination.plName = "标准管理";
        plPageLayoutDefination.plRelatedType = "StandardManagement";
        plPageLayoutDefination.plDesc = "标准管理";
        plPageLayoutDefination.plIsShowForm = 0;
        plPageLayoutDefination.plIsShowNavigator = 0;
        plPageLayoutDefination.plIsShowTab = 1;
        plPageLayoutDefination.plCreateUser = "developer";
        plPageLayoutDefination.plModifyUser = "developer";
        plPageLayoutDefination.plLicensOrs = "";
        
        try {
            boolean flag = UITools.getService().savePLUILayout(plPageLayoutDefination);
            Assert.assertTrue(flag);
        } catch (VCIError e) {
            e.printStackTrace();
        }
    }
//    
//    // test更新PLAction
//    @org.junit.Test
//    public void testUpdatePLUILayout() {
//        PLUILayout plPageLayoutDefination = new PLUILayout();
//        plPageLayoutDefination.plOId = "EBA543FF-275B-2EE0-3368-38C5E569C954";
//        plPageLayoutDefination.plCode = "updateplCode2";
//        plPageLayoutDefination.plName = "updateplName2";
//        plPageLayoutDefination.plRelatedType = "plRelatedType";
//        plPageLayoutDefination.plDesc = "plDesc";
//        plPageLayoutDefination.plIsShowForm = 1;
//        plPageLayoutDefination.plIsShowNavigator = 2;
//        plPageLayoutDefination.plIsShowTab = 1;
//        plPageLayoutDefination.plCreateUser = "plCreateUser";
//        plPageLayoutDefination.plModifyUser = "plModifyUser";
//        plPageLayoutDefination.plLicensOrs = "plLicensOrs";
//        
//        try {
//            boolean flag = Tool.getService().updatePLUILayout(plPageLayoutDefination);
//            Assert.assertTrue(flag);
//        } catch (VCIError e) {
//            e.printStackTrace();
//        }
//    }
//    
//    // test删除PLAction
//    @org.junit.Test
//    public void testDeletePLUILayout() {
//        PLUILayout plPageLayoutDefination = new PLUILayout();
//        plPageLayoutDefination.plOId = "F026CE02-C09F-6ED8-D5E8-3CE0D67748F7";
//        
//        try {
//            boolean flag = Tool.getService().deletePLUILayout(plPageLayoutDefination);
//            Assert.assertTrue(flag);
//        } catch (VCIError e) {
//            e.printStackTrace();
//        }
//    }
//    
//    // test删除PLAction
//    @org.junit.Test
//    public void testDeletePLUILayoutByID() {
//        
//        try {
//            boolean flag = Tool.getService().deletePLUILayoutByID("BBD2FF49-1129-5656-ACE5-092A46784943");
//            Assert.assertTrue(flag);
//        } catch (VCIError e) {
//            e.printStackTrace();
//        }
//    }
    @Test
    public void testGetPLUILayoutById(){
        try {
            PLUILayout obj = UITools.getService().getPLUILayoutById("57597060-F771-9EF9-B59F-AE032264DBB0");
            System.out.println();
        } catch (VCIError e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
    
    @Test
    public void testGetPLUILayoutByRelatedType(){
        try {
            PLUILayout[] obj = UITools.getService().getPLUILayoutsByRelatedType("plRelatedType");
            System.out.println();
        } catch (VCIError e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
}