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
91
92
93
94
95
96
97
98
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>index</title>
[#include "/business/pages/include/static.html" /]
[#include "/component/DatePicker.html" /]
[#include "/component/sel.html" /]
<link rel="stylesheet" href="${common_static}/static/plugins/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script type="text/javascript" src="${common_static}/static/plugins/ztree/js/jquery.ztree.all-3.5.min.js"></script>
</head>
 
<body>
 
 
<div>
<form>
    <table class="edit_layout" style="margin-top:30px">
            
            <tr>
                <th><label class="required">要求完成时间:</label></th>
                <td>[@datepicker id="dispatcher_require_date" value="" class="general" length=8/]</td>
            </tr>
       
            
            <tr></tr>
            <tr>
                <th><label class="required">主负责人:</label></th>
                <td>
                    [@sel id="fzr_id" name="fzr_id"  source=userList textField="ID" valueField="ZSXM" labelName="ZSXM"/]
                </td>
            </tr>
            
            <tr>
                <th class="postop"><label>备注说明:</label></th>
                <td colspan="3"><textarea id="note" name="note" value="" class="general"></textarea></td>
            </tr>
       </table>
</form>
</div>
 
</body>
<script type="text/javascript">
    /*
    var setting = {
        async: {
            enable: true,
            url:"${base}/business/pages/ciadd/userTree.html",
            autoParam:["id"]
        },callback: {
            onClick: onClick
        }
    };
    */
    
    $(document).ready(function(){
        //combotree("fzr_name").create().treeCon().attr({"id":"ztree"});
        //combotree("fzr_name").treeCon().addClass("ztree");
        //$.fn.zTree.init($("#ztree"), setting);
    });
    
    //树点击事件
    
    function onClick(event, treeId, treeNode, clickFlag) {
        var categoryName;
        name = treeNode.name;
        id = treeNode.id;
        $("#fzr_id").val(id);
        $("#fzr_name").val(name);
        $("#ztree").hide();
    }
    
    //点击事件
    function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            if($("#dispatcher_require_date").val()==''){
                popupTips('请指定要求完成时间', 1);
                return false
            }else if($("#fzr_id").val()==''){
                popupTips('请选择主负责人', 1);
                return false
            }
 
            window.top.confirmInfo('提示', '确定要提交吗?', function(){
                var info = new $.HashMap();
                info.put("dispatcher_require_date",$("#dispatcher_require_date").val());
                info.put("fzr_id",$("#fzr_id").val());
                info.put("fzr_name",$("#ZSXM").val());
                info.put("note",$("#note").val());
                window.parent.SubForm(info);
                 window.top.hideDialog(dialogID);
            })
            
        }
    }
    
</script>
</html>