cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>关联工单</title>
</head>
 
<body>
[#include "/business/pages/include/static.html" /]
            <div class="deal_switch_con" style="display:block;">
                <div class="deal_record_tittle"><a href="javascript:linkOrder();">添加关联工单</a></div>
                [#if orders?? && orders?size>0]
                    [#list orders as order]
                           <div class="order_list">
                            <div class="ol_title">
                                <h3>工单编号:${order.ORDER_CODE}</h3>
                                [#if userId==order.USER_ID]
                                <a href="javascript:delOrder('${order.LINK_ID}')"><img alt="" src="${common_static}/static/ui/images/zc-icon-49.gif"></a>
                                [/#if]
                                [#if order.BUSINESSTYPE == Constants.WORKFLOW_BASE_BUSINESS_TYPE_CI_REMIND]
                                    <a href="${base}/business/pages/ciremind/orderdeal/ciRemindDetail.html?orderId=${order.BUSINESS_ID}&flowId=${order.ID}" target="_parent"><img src="${common_static}/static/ui/images/zc-icon-37.gif" alt="" /></a>
                                [#elseif order.BUSINESSTYPE == Constants.WORKFLOW_BASE_BUSINESS_TYPE_CI_HEALTH]
                                    <a href="${base}/business/pages/healthCustomize/healthDetail.html?orderId=${order.BUSINESS_ID}&flowId=${order.ID}" target="_parent"><img src="${common_static}/static/ui/images/zc-icon-37.gif" alt="" /></a>
                                [#elseif order.BUSINESSTYPE == Constants.WORKFLOW_BASE_BUSINESS_TYPE_INCIDENT]
                                    <a href="${base}/business/pages/incident/incidentDetail.html?orderId=${order.BUSINESS_ID}&flowId=${order.ID}" target="_parent"><img src="${common_static}/static/ui/images/zc-icon-37.gif" alt="" /></a>
                                [#elseif order.BUSINESSTYPE == Constants.WORKFLOW_BASE_BUSINESS_TYPE_QUESTION ]
                                    <a href="${base}/business/pages/question/questionDetail.html?orderId=${order.BUSINESS_ID}&flowId=${order.ID}" target="_parent"><img src="${common_static}/static/ui/images/zc-icon-37.gif" alt="" /></a>
                                [#elseif order.BUSINESSTYPE == Constants.WORKFLOW_BASE_BUSINESS_TYPE_INCIDENT_LOCAL ]
                                    <a href="${base}/business/pages/zcyw/zcywDetail.html?orderId=${order.BUSINESS_ID}&flowId=${order.ID}" target="_parent"><img src="${common_static}/static/ui/images/zc-icon-37.gif" alt="" /></a>
                                [#elseif order.BUSINESSTYPE == Constants.WORKFLOW_BASE_BUSINESS_TYPE_RELEASE]
                                    <a href="${base}/business/pages/releaseManage/releaseOverview.html?orderId=${order.BUSINESS_ID}&flowId=${order.ID}" target="_parent"><img src="${common_static}/static/ui/images/zc-icon-37.gif" alt="" /></a>
                                [#elseif order.BUSINESSTYPE == Constants.WORKFLOW_BASE_BUSINESS_TYPE_CI_CHANGE]
                                    <a href="${base}/business/pages/change/changeDetail.html?orderId=${order.BUSINESS_ID}&flowId=${order.ID}" target="_parent"><img src="${common_static}/static/ui/images/zc-icon-37.gif" alt="" /></a>
                                [/#if]</div>
                            <div class="ol_con">
                                <table>
                                    <tbody>
                                        <tr>
                                            <th rowspan="3">
                                                <a>
                                                    <img alt="" src="${common_static}/static/ui/images/fixStart.gif">
                                                    <span>${Constants.mapWORKFLOW_BUSINESS_TYPE_Label(order.BUSINESSTYPE)}</span>
                                                </a>
                                            </th>
                                            <td>
                                                <em>当前节点:</em>
                                                <span class="olc_txt">${order.CURRENT_NODE_NAME}</span>
                                                <em>工单状态:</em>
                                                <span class="olc_txt">${Constants.getWORKFLOW_BASE_WFSTATE_Label(order.WFSTATE)}</span>
                                                <em>创建时间:</em>
                                                <span class="olc_txt last">${DateUtil.format("yyyy-MM-dd HH:mm:ss",order.CREATETIME)}</span>
                                            </td>
                                        </tr>
                                    <tr><td><em>事项:</em>${order.WFNAME}</td></tr>
                                    <tr><td><em>内容概述:</em>${order.WFNOTE}</td></tr>
                                </tbody></table>
                            </div>
                        </div>
                    [/#list]
                [#else]
                <div class="loadpos"><span class="nodata"></span></div>
                [/#if]
    </div>
 
 
<script type="text/javascript">
var flowId = '${flowId}';
function linkOrder() {
    window.top.openDialog("0","添加关联工单",
                         {},
                         {"width":85,"height":80},
                         [{btnId:"btnSure", btnName:"选择", btnStyle:"bluebtn"}],
                         "${base}/business/pages/incident/dealLinkOrder.html?flowId="+flowId);
}
 
function delOrder(linkId) {
    window.top.confirmInfo('提示', '确定要删除吗?', function(){
                $.post("${base}/business/pages/incident/delLinkOrder.html",{"linkId":linkId},function(data,textStatus) {
                    if(data==1) {
                        window.location.reload(true);
                        window.top.popupTips("删除成功");
                    } else {
                        window.top.popupTips("删除失败");
                    }
                })
            })
}
</script>
</body>
</html>