cy
2022-06-28 2ba5c891b24d4d0cd6ce7ef833592e4f576ee5e8
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
91
92
93
94
95
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>DSL列表</title>
[#include "/business/pages/include/static.html" /]
[#include "/component/dslCateTree.html"/]
</head>
<body>
<div class="fs_main clearfix">
    <div class="event_fill list_common_select">
    <table><tr><th width="85%">
        <div class="fill_item"><label>搜索码:</label><input class="general" type="text" id="dslSearchCode"/></div>
        <div class="fill_item"><label>DSL名称:</label><input class="general" type="text" id="dslName"/></div>
        [@dslCateTree textName="categoryName" valueName="categoryId" url="${base}/business/pages/servicelist/dsl/dslCateTree.html" width="200px"/]
    </th><td width="15%">
        <a class="retrievebtn" id="reset">重置</a><a class="retrievebtn focus" onclick="query();">查询</a>
    </td></tr></table>
    </div>
</div>
 
    
<div class="fs_main clearfix">
    <div id="main"></div>   
    <div class="paging clearfix" id="pagination"></div>
</div>
    
    
    
 
<script type="text/javascript">
    var proId = '${RequestParameters.proId}';
    var flowId = '${RequestParameters.flowId}';
    function query(){
        var dslIds = '${RequestParameters.dslIds}';
        var dslSearchCode = $.trim($("#dslSearchCode").val());
        var dslName = $.trim($("#dslName").val());
        var dslCate = $.trim($("#dslCate").val());
        var dslCate = $.trim($("#categoryId").val());
        var params = {"flowId":flowId,"proId":proId,"dslSearchCode":dslSearchCode,"dslName":dslName,"dslCate":dslCate,"dslIds":dslIds};
        pagination("${base}/business/pages/ciadd/proDslData.html","${base}/business/pages/ciadd/proDslCount.html","main","pagination",{psize:10},params);
    }
    
    function queryStatus(status) {
        query();
    }
    
    $(function() {
        query();
        $("#reset").click(function() {
            window.location.reload(true);
        });
    })
    
    function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            var dslIds = getDslIds();
            var verIds = getVerIds();
            window.top.hideDialog(dialogID);
            window.top.document.getElementById("dslIframe").contentWindow.addLinkDsl(dslIds,verIds);
        }
    }
    
    function getDslIds(){
        var dslIds = '';
        $('input[name=selector]:checkbox:checked').each(function(){
            var dslId = $(this).next().val();
            if(dslIds==''){
                dslIds = dslIds + dslId;
            }else{
                dslIds = dslIds + ',' + dslId;
            }
        });
        return dslIds;
    }
    
    function getVerIds(){
        var verIds = '';
        $('input[name=selector]:checkbox:checked').each(function(){
            var verId = $(this).next().next().val();
            if($.util.isEmpty(verId)){
                verId = 'blank';
            }
            if(verIds==''){
                verIds = verIds + verId;
            }else{
                verIds = verIds + ',' + verId;
            }
        });
        return verIds;
    }
</script>
 
</body>
</html>