<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>index</title>
|
[#include "/business/pages/include/static.html" /]
|
[#include "/component/DatePicker.html" /]
|
[#include "/component/sel.html" /]
|
<link rel="stylesheet" href="${common_static}/static/plugins/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
|
<script type="text/javascript" src="${common_static}/static/plugins/ztree/js/jquery.ztree.all-3.5.min.js"></script>
|
</head>
|
|
<body>
|
|
|
<div>
|
<form>
|
<table class="edit_layout" style="margin-top:30px">
|
|
<tr>
|
<th><label class="required">要求完成时间:</label></th>
|
<td>[@datepicker id="dispatcher_require_date" value="" class="general" length=8/]</td>
|
</tr>
|
|
|
<tr></tr>
|
<tr>
|
<th><label class="required">主负责人:</label></th>
|
<td>
|
[@sel id="fzr_id" name="fzr_id" source=userList textField="ID" valueField="ZSXM" labelName="ZSXM"/]
|
</td>
|
</tr>
|
|
<tr>
|
<th class="postop"><label>备注说明:</label></th>
|
<td colspan="3"><textarea id="note" name="note" value="" class="general"></textarea></td>
|
</tr>
|
</table>
|
</form>
|
</div>
|
|
</body>
|
<script type="text/javascript">
|
/*
|
var setting = {
|
async: {
|
enable: true,
|
url:"${base}/business/pages/ciadd/userTree.html",
|
autoParam:["id"]
|
},callback: {
|
onClick: onClick
|
}
|
};
|
*/
|
|
$(document).ready(function(){
|
//combotree("fzr_name").create().treeCon().attr({"id":"ztree"});
|
//combotree("fzr_name").treeCon().addClass("ztree");
|
//$.fn.zTree.init($("#ztree"), setting);
|
});
|
|
//树点击事件
|
|
function onClick(event, treeId, treeNode, clickFlag) {
|
var categoryName;
|
name = treeNode.name;
|
id = treeNode.id;
|
$("#fzr_id").val(id);
|
$("#fzr_name").val(name);
|
$("#ztree").hide();
|
}
|
|
//点击事件
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
if($("#dispatcher_require_date").val()==''){
|
popupTips('请指定要求完成时间', 1);
|
return false
|
}else if($("#fzr_id").val()==''){
|
popupTips('请选择主负责人', 1);
|
return false
|
}
|
|
window.top.confirmInfo('提示', '确定要提交吗?', function(){
|
var info = new $.HashMap();
|
info.put("dispatcher_require_date",$("#dispatcher_require_date").val());
|
info.put("fzr_id",$("#fzr_id").val());
|
info.put("fzr_name",$("#ZSXM").val());
|
info.put("note",$("#note").val());
|
window.parent.SubForm(info);
|
window.top.hideDialog(dialogID);
|
})
|
|
}
|
}
|
|
</script>
|
</html>
|