<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>增加/修改部门</title>
|
|
[#include "/business/pages/include/static.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;
|
}});
|
|
|
$("#jgmc").formValidator({empty:false,onFocus:"请输入部门名称"}).inputValidator({min:4,max:20,onError:"部门名称4-20个字符或2-10个汉字"});
|
$("#sxh").formValidator({empty:false,onFocus:"请输入顺序号"}).inputValidator({min:1,max:5,onError:"顺序号必须为1到5位"})
|
.regexValidator({regExp:"intege1", dataType:"enum", onError:"顺序号必须为正整数"});
|
|
})
|
</script>
|
|
<div class="edit_txt">
|
<form action="addBmSubmit.html" method="post" id="myform" name="myform" >
|
<input type="hidden" name="id" value="${RequestParameters.id}" />
|
<input type="hidden" name="sjbh" value="${info.SJBH}" />
|
<input type="hidden" name="cengj" value="${info.CENGJ}" />
|
<input type="hidden" name="zt" value="${info.ZT}" />
|
<input type="hidden" name="type" value="${info.TYPE}" />
|
<table class="edit_layout2" >
|
<tr><th ><label class="required" >部门名称:</label></th>
|
<td><input class="general" type="text" value="${info.JGMC}" name="jgmc" id="jgmc"/>
|
<div id="jgmcTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr><th><label class="required">顺序号:</label></th>
|
<td ><input class="general" type="text" value="${info.SXH}" class="input-text" name="sxh" id="sxh"/>
|
<div id="sxhTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
|
<tr><th><label >说明:</label></th>
|
<td ><textarea class="general" style="width:360px;" id="beiz" name="beiz" />${info.BEIZ}</textarea>
|
</td>
|
</tr>
|
</table>
|
</form>
|
</div>
|
|
|
|
<script type="text/javascript">
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
$("#myform").submit();
|
}
|
}
|
|
</script>
|
|
|
</body>
|
</html>
|