<!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>
|