IT-KIMI_SHI\SINOIT.KIMI
2018-06-01 64c40fb427bff513f575f11e4c1e7bd9a1bfe3e3
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
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>流程创建</title>
        <link href="../../../css/common.css" rel="stylesheet" type="text/css">
        <link href="../../../css/control.css" rel="stylesheet" type="text/css"/>
        
        <script src="../../../js/jquery-1.7.2.min.js"></script>
        <script src="../../../js/foundation-2.0.js"></script>
        <script src="../../../js/control.js"></script>    
        
    
        <script type="text/javascript">
        var selectedId ;
        
        function editModel(){
            if(selectedId){
                window.open("../../designer/modeler.html?modelId="+selectedId);   
                //location.href = "../../designer/modeler.html?modelId="+selectedId ;
            }
            else{
                alert("请选择要编辑model");
            }
            
        }
        
        function createModel(){
            Win.popup("createModel.html",function(data){
                alert(JSON.stringify(data));
                
            });
        /*
            Server.call("root/process/repository/createModel",null,function(callback){
                if(callback.success){
                    alert(JSON.stringify(callback));
                    window.open("../../designer/modeler.html?modelId="+callback.string);
                }
            });
            
            */
        }
        
        function deleteModel(){
            
        }
 
        $(document).ready(function() {
            Server.call("root/data/getmodelname/getDataSet",null,function(callback){
                if(callback.success){
                    list.loadData(callback.entityset);
                }
            });
            
            list = new DataList({
                    element: "list",
                    evenActive: false,
                    items: [
                        {text: "编码", field: "id", width: "18%", align: "center"},
                        {text: "model名称", field: "name", width: "70%", align: "center"}
                    ],
                    onRowSelected: function(data) {
                        selectedId = data.id;
                    }
                });
        
        });
        </script>        
    </head>
  
<body>
    <div id="list" style="position: absolute; left: 0px; top: 0px; width: 25%; bottom: 0px; border: 1px solid blue"></div>
    <div style="position: absolute; left: 25%; right: 0px; top: 0px; bottom: 0px;">
        <div style="position: absolute; top: 0px; left: 0px; height: 60px; right: 0px; border: 1px solid blue">
            <div style="height: 30px; line-height: 30px; margin-top: 15px; margin-right: 50px;" align="right">
                <div class="btn btn-green" onclick="editModel();">编辑</div>
                <div class="btn btn-green" onclick="createModel();">新建</div>
                <div class="btn btn-green" onclick="deleteModel();">删除</div>
            </div>    
        </div>
        <div id="diagram" style="position: absolute; left: 0px; top: 60px; right: 0px; bottom: 0px; border: 1px solid blue">
                
                    
        
        </div>
    </div>
    
</body>
</html>