| 1 |
- <html>
<head>
<script type="text/javascript">
function controlDisplay(sfyj) {
var sfyj = $("input[name='sfyj']").val();
if(sfyj==0) {
$('.yj').hide();
} else if(sfyj==1) {
//预警
$('.yj').show();
}
}
</script>
</head>
<body>
<%-- 来自工作节点。用到再弄。Lin --%>
<form id="myform" action='@service{name:"ws_gzjd_lrydcd_tj_sh",dest:"sys_info",param:{taskID:"${taskid}",shid:"${shid}",sqid:"${sqid}",gzjdid:"${gzjdid}",sfty:"1"}}@' method="post">
<div class="content-div">
<table class="form">
<tr>
<th>场地名称</th>
<td id="cdmc" colspan="3"></td>
<%-- 去掉,去掉 场地预订.描述 > 共用 .使用要求。Lin
<th>描述</th>
<td>
<div id="ms" width="100%" height="43px" value=""></div>
<wd:write type="growHeight" name="ms" mode="edit" maxHeight="150px"/>
</td>
--%>
</tr>
<tr>
<th>使用要求</th>
<td>
<%-- 改,不用 <growh@ss,直接用 <in@put。Lin
<div id="syyq" width="100%" height="43px" value=""></div>
<wd:write type="growHeight" name="syyq" mode="edit" maxHeight="150px"/>
--%> <input type="text" name="syyq" width="100%" height="43px"/>
</td>
<th>使用人数</th>
<td><input type="text" name="syrs"/></td>
</tr>
<tr>
<th>开始时间</th>
<td id="kssj"></td>
<th>结束时间</th>
<td id="jssj"></td>
</tr>
<tr>
<th>预订部门</th>
<td id="bmmc"></td>
<%-- 去掉,部门/班级 只有其中一个。Lin
<th>预订班级</th>
<td id="bjmc"></td>
--%>
<th>预订人</th>
<td id="rymc"></td>
</tr>
<tr>
<th>联系人</th>
<%-- 改,去掉 <in@put id="ydr"、<span id="ts1"/>。Lin
<td><in@put name="ydr" id="ydr" type="text"><span id="ts1" style="color: red;"/></td>
--%> <td><input name="lxr" type="text"></td>
<th>联系人电话</th>
<%-- 改,去掉 <in@put id="ydrdh"、<span id="ts2"/>。Lin
<td><in@put name="ydrdh" id="ydrdh" type="text"><span id="ts2" style="color: red;"/></td>
--%> <td><input name="lxrdh" type="text"></td>
<%-- 去掉,预订时间 改用数据库的默认时间。Lin
<th>预订时间</th>
<td>
<in@put name="ydsj" type="text" onFocus="wd.edit.datePicker()" format="yyyy-MM-dd" />
</td>
--%>
</tr>
<tr>
<th>是否预警</th>
<td colspan="3">
<input name="sfyj" type="button" value="否" ssVal="0"/> <%-- wdValue="0"。Lin --%>
<input name="sfyj" type="button" value="是" ssVal="1" /> <%-- wdValue="1"。Lin --%>
<%-- 改。Lin
<wd:write type="radio" name="sfyj" value="0" nullable="true" mode="edit" callback="controlDisplay"/> --%>
<onoff.ss rad="true" name="sfyj" val="0" null="true" mode="edit" run="controlDisplay"/>
</td>
</tr>
<tr class="yj">
<%-- 改。Lin
预警人员ID 改为 被预警人员ID
增加 被预警部门ID
<th>预警人员</th>
<td colspan="3">
<input name="yjryid" type="hidden" value="" />
<input name="yjryidName" style="width:118px;" type="text" />
<wd:write type="objectPicker" name="yjryid" codebook="hqry" />
</td>
--%>
<th>被预警部门</th>
<td><input name="byjbmid" style="width:118px;" type="text" ssCcp='{name:"bm_ry",prfx:"byj"}'/></td>
<th>被预警人员</th>
<td><input name="byjryid" style="width:118px;" type="text"/></td>
</tr>
<tr class="yj">
<th>预警时间长度</th>
<td><input type="number" name="yjsjcd" value="0"/></td>
<th>预警描述</th>
<td>
<%-- 改,不用 <growh@ss,直接用 <in@put。Lin
<div id="yjms" width="100%" height="43px" value=""></div>
<wd:write type="growHeight" name="yjms" mode="edit" maxHeight="150px"/>
--%> <input type="text" name="yjms" width="100%" height="43px"/>
</td>
</tr>
</table>
</div>
<div class='bottom-div' >
<div class="bottom-down-div border-top">
<input type="submit" value="保存提交" class="bottom-button" />
<input type="button" name="button" onclick="wd.display.closeDialog();" value="取消" class="bottom-button"/>
</div>
</div>
</form>
<%-- 去掉,编译时自动加。Lin
<validation:write name="cd_yd" />
--%>
<script>
var f=document.getElementById("myform");
</script>
<script type="text/javascript">
var data=${data};
console.info(data);
window.onload=function(){
$("#cdmc").append(data.mc[0].cdmc+"<input type='hidden' name='cdids' value='"+data.cd[2].cdids+"' />");
$("#kssj").append(data.cd[0].beginTime+"<input type='hidden' name='beginTime' value='"+data.cd[0].beginTime+"' />");
$("#jssj").append(data.cd[1].endTime+"<input type='hidden' name='endTime' value='"+data.cd[1].endTime+"' />");
/* 改,部门/班级 只有其中一个。Lin
$("#bjmc").append(data.mc[1].bjmc+"<input type='hidden' name='ydbjid' value='"+data.cd[3].bjid+"' />");
$("#bmmc").append(data.mc[2].bmmc+"<input type='hidden' name='ydbmid' value='"+data.cd[4].bmid+"' />");
*/
if (data.cd[3].bjid)
$("#bmmc").append(data.mc[1].bjmc+"<input type='hidden' name='ydbjid' value='"+data.cd[3].bjid+"' />");
else
$("#bmmc").append(data.mc[2].bmmc+"<input type='hidden' name='ydbmid' value='"+data.cd[4].bmid+"' />");
$("#rymc").append(data.mc[3].rymc+"<input type='hidden' name='ydryid' value='"+data.cd[5].ryid+"' />");
controlDisplay();
}
</script>
</body>
</html>
|