<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>增加/修改例行维护项</title>
|
|
[#include "/business/pages/include/static.html" /]
|
[#include "/component/newsel.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: "提醒项不能为空"}).inputValidator({min: 1, max: 200, onError: "提醒项不能为空! 不超过200个字符"});
|
$("#cycle").formValidator({empty:false,onFocus:"请输入频度"}).inputValidator({min:1,max:5,onError:"频度为1到5位的正整数数字"})
|
.regexValidator({regExp:"intege1", dataType:"enum", onError:"频度必须为正整数数字"});
|
$("#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: 1000,onError: "提醒项描述不能为空!不超过1000个字符"});
|
$("#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}" style="width:300px;"/>
|
<table class="edit_layout2">
|
<tr><th ><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><input class="general" type="text" name="cycle" id="cycle" value="${info.getCycle()}" />
|
<div id="cycleTip" 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 class="general" style="width:360px;" name="item_note" id="item_note" />${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><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>
|