IT-KIMI_SHI\SINOIT.KIMI
2018-06-04 b12dfac6e495d6cf38df6b7e5222191f59762900
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
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>审批历史列表</title>
    <link href="../../../css/common.css" rel="stylesheet" />
    <link href="../../../css/control.css" rel="stylesheet" />
    <link href="../../../css/grid.css" rel="stylesheet" type="text/css">
    <link href="../../../css/query.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/grid.js"></script>
    
    <script type="text/javascript" >
        var title, grid, filter, param = "";
        
        function refresh(row) {
            var data = row.data;
        
            data.agentcode = data.agentcode ? data.agentcode : "";
            data.agentname = data.agentname ? data.agentname : "";
            
            if(row.data.workflowid){
            
                var url = "root/data/procedure/getHistoryAction/getSetByPage?pageno=1&pagesize=10&workflowid=" + row.data.workflowid;
                grid.setURL(url);
                title.html(data.agentcode + "   " + data.agentname);
            }
            else{
                alert("无相关数据");
            }
        }
        
        $(document).ready(function() {
            grid = new $.fm.Grid({
                element: "sheet",
                showPage:true,
                limit: 12,
                columns: [
                    {field: "activityid", caption: "类型编码", width: 100, align: "left"},
                    {field: "activityname", caption: "类型名称", width: 100, align: "left"},
                    {field: "assignee", caption: "处理人", width: 100},
                    {field: "starttime", caption: "开始时间", width: 180},
                    {field: "endtime", caption: "结束时间", width: 180},
                ]
            });    
            
            title = $("#title");    
            Win.onShow(refresh);
        });
    </script>    
</head>
 
<body style="overflow: hidden;">
    <div style="height: 40px; line-height: 40px; font-size: 15px; font-weight: bold; border-bottom: 1px solid #fdebeb; padding-left: 20px;">
        <img src="root/image/record.png" width=20px; style="float: left; margin-top: 10px;">
        <div id="title" style="float: left; margin: 2px 0px 0px 10px; ">客户名称:</div>
    </div>
    
    <div id="sheet" style="position: absolute; top: 40px; left: 20px; right: 20px;"></div>
    <div class="footer" align="right">
        <div id="btn_close" class="btn btn-green" onclick="Win.close();" style="margin-right: 50px;">关闭</div>
    </div>
</body>
</html>