<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>选择关联工单</title>
|
<!--(start) public flies-->
|
|
</head>
|
[#include "/business/pages/include/static.html" /]
|
<body>
|
<div class="fs_main clearfix">
|
<div class="event_fill list_common_select">
|
<table><tr><th width="85%">
|
[#if businessTypes?? && businessTypes?size>0]
|
<div class="fill_item"><label>工单类型:</label>
|
<select class="businesstype mysel" id="businessType">
|
<option value="">请选择</option>
|
[#list businessTypes as types]
|
<option value="${types.id}">${types.text}</option>
|
[/#list]
|
</select>
|
</div>
|
[/#if]
|
<div class="fill_item">
|
<label>工单编号:</label><input class="general" type="text" id="orderCode" name="orderCode"/></div>
|
<div class="fill_item">
|
<label>工单名称:</label><input class="general" type="text" id="orderName" name="orderName" />
|
</div>
|
</th><td width="15%">
|
<a class="retrievebtn focus" onclick="query();">查询</a><a class="retrievebtn" href="javascript:window.location.reload(true);" id="reset">重置</a>
|
</td></tr></table>
|
</div>
|
</div>
|
|
<div class="fs_main clearfix">
|
<div id="main"></div>
|
</div>
|
|
<script type="text/javascript">
|
|
var flowId = '${RequestParameters.flowId}';
|
function query() {
|
var customerid = '${RequestParameters.customerid}';
|
var projectId = '${RequestParameters.projectId}';
|
var orderName = $.util.encode($.trim($("#orderName").val()));
|
var orderCode = $.util.encode($.trim($("#orderCode").val()));
|
var businessType = $("#businessType").val();
|
var orderids = '${RequestParameters.orderids}'
|
$.post("${base}/business/pages/incident/orderList.html",{"flowId":flowId,"customerid":customerid,"projectId":projectId,"orderName":orderName,"orderCode":orderCode,"businessType":businessType,"orderids":orderids},function(data,textStatus) {
|
$("#main").html(data);
|
niceform('input[type=checkbox]').create();
|
})
|
|
}
|
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
var checkedBox = $("#main :checkbox:checked");
|
if(checkedBox.length==0) {
|
popupTips("请选择关联的工单");
|
return;
|
}
|
|
var orders = new Array();
|
checkedBox.each(function() {
|
var $str = $(this).parents("tr.linkTr");
|
var map = new $.HashMap();
|
map.put("orderId",$(this).val());
|
map.put("businesstype",$.trim($str.find("td.businesstype").text()));
|
map.put("orderCode",$.trim($str.find("td.orderCode").text()));
|
map.put("wfname",$.trim($str.find("td.wfname").text()));
|
map.put("customerName",$.trim($str.find("td.customerName").text()));
|
map.put("createTime",$.trim($str.find("td.createTime").text()));
|
map.put("wfstateText",$.trim($str.find("td.wfstateText").text()));
|
orders.push(map);
|
});
|
|
|
var type = '${RequestParameters.type}';
|
if(type==1){
|
window.top.document.getElementById('dialogIframe10').contentWindow.showLinkOrder(orders);
|
}else{
|
window.parent.showLinkOrder(orders);
|
}
|
window.top.hideDialog(dialogID);
|
}
|
}
|
|
$(function() {
|
query();
|
})
|
</script>
|
</body>
|
</html>
|