<!doctype html>
|
<html class="no-js">
|
<head>
|
<title>巡检计划</title>
|
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
|
<meta http-equiv="description" content="this is my page"/>
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
[#include "/business/pages/include/static.html" /]
|
[#include "/component/sel.html" /]
|
<script type="text/javascript">
|
$(document).ready(function() {
|
$.formValidator.initConfig({formID: "myform", onError: function (msg) {
|
|
}, onSuccess: function() {
|
document.getElementById("myform").target = window.top.openDialog(1, 30, 30, '操作提示:');
|
return true;
|
}});
|
$("#priority_level_id").formValidator({empty: false, onShow: "不能为空", onFocus: "优先级不能为空!"}).inputValidator({min: 1, max: 200, onError: "优先级不能为空!"});;
|
$("#item_note").formValidator({empty: false, onShow: "不能为空", onFocus: "提醒项描述不能为空!"}).inputValidator({min: 1, onError: "提醒项描述不能为空!"});
|
$("#item_name").formValidator({empty: false, onShow: "不能为空"}).inputValidator({min: 1, max: 200, onError: "指标名称不能为空!"});
|
$("#normal_value").formValidator({empty: false, onShow: "不能为空"}).inputValidator({min: 1, max: 200, onError: "正常值不能为空!"});
|
$("#order_num").formValidator({empty:false,onShow: "不能为空",onFocus:"请输入顺序号"}).inputValidator({min:1,max:5,onError:"顺序号必须为1到5位数字"})
|
.regexValidator({regExp:"intege", dataType:"enum", onError:"顺序号必须为1到5位数字"});
|
$("#cycle").formValidator({empty:false,onShow: "不能为空",onFocus:"请输入周期"}).inputValidator({min:1,max:2,onError:"顺序号必须为1到2位数字"})
|
.regexValidator({regExp:"intege", dataType:"enum", onError:"周期必须为1到2位数字"});
|
});
|
|
//点击事件
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
$("#myform").submit();
|
}
|
}
|
</script>
|
</head>
|
<body>
|
<div>
|
<div>
|
<div id="div_setting_1">
|
<form action="" method="post" id="myform" name="myform">
|
<table class="edit_layout" width="85%">
|
<br/>
|
<tr>
|
<th align="right"><label>提醒项名称:</label></th>
|
<td>
|
<input type="text" class="general" name="item_name" id="item_name" value="${info.ITEM_NAME}" style="width:100px;"/>
|
<div id="item_nameTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th align="right"><label>周期(天):</label></th>
|
<td colspan="2">
|
<input type="text" class="general" name="cycle" id="cycle" value="${info.CYCLE}" style="width:100px;"/>
|
<div id="cycleTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th align="right"><label>优先级:</label></th>
|
<td>
|
[@sel id="priority_level_id" name="priority_level_id" source=businessType textField="ID" valueField="DATAVALUE" labelName="priority_level_name"/]
|
<div id="priority_level_idTip" style="display:inline-block;"></div>
|
|
</td>
|
</tr>
|
<tr>
|
<th align="right"><label>提醒项描述:</label></th>
|
<td colspan="2">
|
<textarea class="general" rows="3" cols="20" style="width: 80%" name="item_note"
|
id="item_note">${info.ITEM_NOTE}</textarea>
|
<div id="item_noteTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th align="right"><label>显示顺序:</label></th>
|
<td>
|
<input type="text" class="general" id="order_num" name="order_num" value="${info.ORDER_NUM}" style="width:100px;"/>
|
<div id="order_numTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
</table>
|
</form>
|
</div>
|
</div>
|
<div id="dd"></div>
|
</div>
|
</body>
|
</html>
|