<!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/subCusSelector.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;
|
}});
|
$("#plan_name").formValidator({empty: false, onShow: "计划名称不能为空"}).inputValidator({min: 1, max: 200, onError: "计划名称不能为空!"});
|
})
|
</script>
|
|
<div class="edit_txt">
|
<form action="editHealthPlan.html" method="post" id="myform" name="myform">
|
<input type="hidden" name="id" value="${RequestParameters.id}"/>
|
<input type="hidden" id="cus_id" name="cus_id" value="${RequestParameters.cusId}"/>
|
<table class="edit_layout2">
|
<tr><th ><label class="required" >计划名称:</label></th>
|
<td><input class="general" type="text" name="plan_name" id="plan_name" value="${info.plan_name}"/>
|
<div id="plan_nameTip" style="display:inline-block;width:180px;"></div>
|
</td>
|
</tr>
|
|
<tr>
|
<th><label class="required">${Constants.UNIT_CONSTANTS}:</label></th>
|
<td>
|
[@cub_cus id="sub_cus_id" name="sub_cus_name" cusConId="cus_id" iframe="{'lv1_id':'dialogIframe0'}" value="${info.sub_cus_id}" text="${info.sub_cus_name}"/]
|
</td>
|
</tr>
|
|
<tr><th ><label>备注:</label></th>
|
<td><textarea class="general" style="width:360px;" name="note" id="note" />${info.note}</textarea>
|
</td>
|
</tr>
|
|
</table>
|
</form>
|
</div>
|
|
<script type="text/javascript">
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
if($("#sub_cus_id").val()==""){
|
popupTips("${Constants.UNIT_CONSTANTS}不能为空");
|
return;
|
}
|
$("#myform").submit();
|
}
|
}
|
</script>
|
|
|
</body>
|
</html>
|