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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>选择关联工单</title>
<!--(start) public flies-->
 
</head>
[#include "/business/pages/include/static.html" /]
<body class="search_list_body">
<div class="search_list">
    <div class="sl_search clearfix">
        <table><tr><td>
            <ul>
                <li><label>工单名称:</label><input class="general" type="text" id="orderName" name="orderName" /></li>
                <li><label>工单编码:</label><input class="general" type="text" id="orderCode" name="orderCode"/></li>
            </ul>
        </td><td>
            <a class="retrievebtn" href="javascript:window.location.reload(true);">重置</a><a class="retrievebtn focus" href="javascript:query();">查询</a>
        </td></tr></table>
    </div>
    <table class="display_form" id="main">
        
    </table>
</div>
 
<script type="text/javascript">
    niceform('div.search_list .businesstype');
    var type = '${RequestParameters.type}';
    function query() {
        var customerid = '${RequestParameters.customerid}';
        var projectId = '${RequestParameters.projectId}';
        var reordercode = '${RequestParameters.reordercode}';
        var orderid = '${RequestParameters.orderid}';
        var orderName = $.util.encode($.trim($("#orderName").val()));
        var orderCode = $.util.encode($.trim($("#orderCode").val()));
        $.post("${base}/business/pages/question/orderwtList.html",{"customerid":customerid,"projectId":projectId,"orderid":orderid,"orderName":orderName,"orderCode":orderCode,"reordercode":reordercode},function(data,textStatus) {
            if(data=='${SysConstants.Ajax_login_Time_Out_Key}') {
                window.location.href="${base}/business/login.html";
            }
            $("#main").html(data);
            niceform('input[type=radio]').create();
        })
        
    }
    
    function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            var checkedradio = $("#main :radio:checked");
            if(checkedradio.length==0) {
                popupTips("请选择关联的工单");
                return;
            }
            var $str = $(checkedradio).parents("tr.linkTr");
            window.top.document.getElementById('dialogIframeorderclose').contentWindow.showLinkwtOrder($(checkedradio).val(),$.trim($str.find("td.orderCode").text()));
             window.top.hideDialog(dialogID);
        }
    }
    
    $(function() {
        query();
    })
</script>
</body>
</html>