<!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/cfgcateSelector.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;
|
}});
|
|
$("#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,onFocus:"请输入顺序号"}).inputValidator({min:1,max:5,onError:"顺序号必须为1到5位数字"})
|
.regexValidator({regExp:"intege", dataType:"enum", onError:"顺序号必须为1到5位数字"});
|
$("#cycle").formValidator({empty:false,onShow:"请输入频度"}).inputValidator({min:1,max:5,onError:"频度不能为1到5个数字"})
|
.regexValidator({regExp:"intege", dataType:"enum", onError:"频度必须为1到5位数字"});
|
})
|
</script>
|
|
<div class="edit_txt">
|
<form action="editRemindItem.html" method="post" id="myform" name="myform">
|
<input type="hidden" name="id" value="${RequestParameters.id}"/>
|
<input type="hidden" name="customer_id" value="${RequestParameters.cusId}"/>
|
<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.item_name}"/>
|
<div id="item_nameTip" style="display:inline-block;width:180px;"></div>
|
</td>
|
</tr>
|
|
<tr>
|
<th><label class="required">配置分类:</label></th>
|
<td>
|
[@cfgcate id="full_cate_id" name="full_cate_name" lv="2" value="${info.full_cate_id}" text="${info.full_cate_name}"/]
|
</td>
|
</tr>
|
|
<tr><th><label class="required">频度:</label></th>
|
<td><input class="general" type="text" name="cycle" id="cycle" value="${info.cycle}" />
|
<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" labelName="priority_level_name" source=priList textField="DATAKEY" valueField="DATAVALUE" value="${info.priority_level_id}" text="${info.priority_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.item_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.order_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"){
|
if($("#cate_id").val()==""){
|
popupTips("配置分类不能为空");
|
return;
|
}
|
$("#myform").submit();
|
}
|
}
|
</script>
|
|
|
</body>
|
</html>
|