cy
2022-06-23 da30b02214ab3a35a3b2ac163afce87e70a39ff4
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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>增加/修改健康检查项</title>
 
[#include "/business/pages/include/static.html" /]
[#include "/component/newsel.html" /]
[#include "/component/HtmlEditor.html" /]
</head>
<body class="end_task_body widthauto">
 
<script type="text/javascript">
$(function() {
    $.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
                        document.getElementById("myform").target = window.top.openDialog("1","操作",
                         {},
                         {"width":40,"height":40},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
                         return true;
        }});
 
 
    $("#item_name").formValidator({empty: false, onShow: "检查项名称不能为空", onFocus: "检查项名称不能为空!"}).inputValidator({min: 1, max: 200, onError: "检查项名称不能超过200个字符!"});
    $("#priority_level_id").formValidator({empty: false, onShow: "优先级不能为空", onFocus: "优先级不能为空!"}).inputValidator({min: 1, max: 200, onError: "优先级不能超过200个字符!"});
    $("#item_note").formValidator({empty: false, onShow: "检查项说明不能为空", onFocus: "检查项说明不能为空!"}).inputValidator({min: 1, max: 200, onError: "检查项说明不能超过200个字符!"});
    $("#steps").formValidator({empty: false, onShow: "检测标准及方法不能为空", onFocus: "检测标准及方法不能为空!"}).inputValidator({min: 1, max: 200, onError: "检测标准及方法不能超过200个字符!"});
    $("#expect_value").formValidator({empty: false, onShow: "期望值不能为空"}).inputValidator({min: 1, max: 200, onError: "期望值不能超过200个字符!"});
    $("#order_num").formValidator({empty:false,onFocus:"请输入顺序号"}).inputValidator({min:1,max:5,onError:"顺序号必须为1到5位正整数数字"})
            .regexValidator({regExp:"intege1", dataType:"enum", onError:"顺序号必须为1到5位正整数数字"});
})
</script>
 
<div class="edit_txt">
    <form action="" method="post" id="myform" name="myform">
                <input type="hidden" name="categoryid" value="${categoryid}"/>
         <table class="edit_layout2" >
                <tr><th style="width:20%;"><label class="required" >检查项名称:</label></th>
                    <td><input class="general" type="text"  name="item_name"  id="item_name" value="${info.getItem_name()}" />
                    <div id="item_nameTip" style="display:inline-block;width:180px;"></div>
                    </td>
                </tr>
               <tr><th><label class="required">优先级:</label></th>
                    <td >
                    [@sel id="priority_level_id" name="priority_level_id"  source=businessType textField="DATAKEY" valueField="DATAVALUE" labelName="priority_level_id_TEXT" value="${info.getPriority_level_id()}" text="${info.getPriority_level_name()}" /]
                    <div id="priority_level_idTip" style="display:inline-block;width:180px;"></div>
                    </td>
                </tr>
                
                <tr><th><label class="required">检查项说明:</label></th>
                    <td >
                    <textarea id="item_note" name="item_note" class="general">${info.getItem_note()}</textarea>
                    <div id="item_noteTip" style="display:inline-block;width:180px;"></div>
                    </td>
                </tr>
                
                
                <tr><th ><label class="required" >检测标准及方法:</label></th>
                    <td>
                    <textarea id="steps" name="steps" class="general">${info.getSteps()}</textarea>
                    <div id="stepsTip" style="display:inline-block;width:180px;"></div>
                    </td>
                </tr>
                
                <tr><th ><label class="required" >期望值:</label></th>
                    <td><input class="general" type="text" name="expect_value"  id="expect_value" value="${info.getExpect_value()}" />
                    <div id="expect_valueTip" style="display:inline-block;width:180px;"></div>
                    </td>
                </tr>
                <tr><th ><label class="required" >显示顺序:</label></th>
                    <td><input class="general" type="text" id="order_num" name="order_num" value="${info.getOrder_num()}" />
                    <div id="order_numTip" style="display:inline-block;width:180px;"></div>
                    </td>
                </tr>
                 
            </table>
     </form>
</div>
 
 
 
<script type="text/javascript">
function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            $("#myform").submit();
        }
    }
 
</script>
 
 
</body>
</html>