123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- <%@page contentType="text/html" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title></title>
- <%@include file="/page/include1.jsp" %>
- <script type="text/javascript" src="<%=path%>/scripts/business/em/event/EventAddEdit.js"></script>
- <style type="text/css">
- .class_color{
- background-color: rgb(237, 239, 253);
- }
- </style>
- <script type="text/javascript">
- var fd_id = "<%=request.getParameter("fd_id")%>";
- //取得用户真实名字
- var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
- //部门id
- var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
- //部门名称
- var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
- //父部门id
- var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
-
- var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
- $.post(deptUrl,{id:parentId,name:''},function(data){
- $("#WRITE_DEPT_394").data("data",data);
- $("#WRITE_DEPT_394").render();
- }, "json");
-
- function getNowFormatDate() {
-
- var date = allGetServerTime();
- var seperator1 = "-";
- var seperator2 = ":";
- var year = date.getFullYear();
- var month = date.getMonth() + 1;
- var strDate = date.getDate();
- var hour=date.getHours();
- var minu=date.getMinutes();
- var sec=date.getSeconds();
- if (month >= 1 && month <= 9) {
- month = "0" + month;
- }
- if (strDate >= 0 && strDate <= 9) {
- strDate = "0" + strDate;
- }
- if(hour>=0 && hour<=9){
- hour="0"+hour;
- }
- if(minu>=0 && minu<=9){
- minu="0"+minu;
- }
- if(sec>=0 && sec<=9){
- sec="0"+sec;
- }
- var currentdate = year + seperator1 + month + seperator1 + strDate
- + " " + hour + seperator2 + minu;
- return currentdate;
- }
- //页面初始化
- $(function(){
- $('#TYPE_394').initCanstSelect('BM_EMC_WarningName');
- $('#LEVEL_394').initCanstSelect('BM_EVENTLEVEL');
- //修改表单
- if(fd_id.length>0){
- $("#titleShow").text("修改突发事件信息");
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '394',
- objectID : fd_id
- };
- $.request.query(url,params,function(data){
- $('#editForm').ajaxWrite({data:data});
- $('#editForm input[name="classid"]').val('394');
- });
- }else{//新增
- $("#titleShow").text("添加突发事件信息");
- $('#WRITE_TIME_394').val(getNowFormatDate());//填报时间
- $('#WRITER_394').val(realName);//填报人
- //默认选中登录人所属部门
- $('#WRITE_DEPT_394').attr('selectedValue',deptId);
- }
-
- $("#back").hover(function(){
- $(this).attr("src","/nwyj/images/temp/back_hover.png");
- },function(){
- $(this).attr("src","/nwyj/images/temp/back.png");
- });
-
- })
- </script>
- <style type="text/css">
- body,div,ul,li,p{
- margin:0;
- padding:0;
- font-size: 14px;
- }
- .d_ground{
- border: 1px solid #cdcaca;
- background: white;
- width:1000px;
- }
- .fieldset{
- border-style:solid;
- border-width:1px;
- border-color:#cdcaca;
- margin:0px 20px 20px 20px;
- width: 935px
- }
- .button_jl{
- margin:10px 20px 0px 0px;
- float:right;
- }
- .back{
- margin:8px 0px 0px 15px;
- }
- </style>
- </head>
- <body style="width: 1000px; margin:0 auto; margin-top:15px" align="center" >
- <div class="d_ground" id="formContent" >
- <div style="height: 50px;background: white;" align="center">
- <a href="javascript:;"><img id="back" class="back" align="left" alt="返回" title="返回" src="/nwyj/images/temp/back.png"></img></a>
- <font style="font-weight: bold;font-size: 20px;line-height: 45px;color: #3e62a0" id="titleShow"></font>
- </div>
- <hr/>
- <form id="editForm" method="post">
-
- <div class="button_jl">
- <input value='保存' id='save' type='button'/>
- <input id='cancel' value='重置' type='reset'/>
- </div>
-
- <fieldset class="fieldset">
- <legend>基本信息:</legend>
- <table width="960px" class="tableStyle" align="center">
- <tr style="display:none;">
- <td colspan="2"><input type="hidden" name="classid" value="394" required="true"/></td>
- <td colspan="2">
- <input type="hidden" id="FD_OBJECTID394" name="FD_OBJECTID394" required="true"/>
- </td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color"><span class="star">*</span>事件名称:</td>
- <td width="280px"><input type="text" style="width: 265px;" maxlength="50" name="EVENT_NAME_394" id="EVENT_NAME_394" class="validate[required,length[0,50]]"/></td>
- <td align="right" width="120px" class="class_color"><span class="star">*</span>事件类型:</td>
- <td width="280px"><select class="validate[required]" selWidth="270" prompt="请选择" name="TYPE_394" id="TYPE_394"></select></td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color"><span class="star">*</span>事件级别:</td>
- <td><select class="validate[required]" prompt="请选择" selWidth="270" name="LEVEL_394" id="LEVEL_394"></select></td>
- <td align="right" width="120px" class="class_color"><span class="star">*</span>属地:</td>
- <td><input type="text" maxlength="50" style="width: 265px;" name="AREA_394" id="AREA_394" class="validate[required,length[0,50]]"/></td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color">详细描述:</td>
- <td colspan="3"><textarea style="height:120px;width: 750px;" maxNum="450" name="REMARK_394" id="REMARK_394" class="validate[length[0,500]]"></textarea></td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color"><span class="star">*</span> 填报部门</td>
- <td><div class="selectTree validate[required]" selWidth="270" id="WRITE_DEPT_394" name="WRITE_DEPT_394" selWidth="200" boxHeight="260"></div></td>
- <td align="right" width="120px" class="class_color"><span class="star">*</span> 填报人员</td>
- <td><input name="WRITER_394" id="WRITER_394" type="text" style="width: 265px;" maxlength="15" class="validate[required]" ></td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color"><span class="star">*</span> 填报时间</td>
- <td colspan="3"><input readonly="readonly" name="WRITE_TIME_394" id="WRITE_TIME_394" style="width: 265px;" type="text" class="date validate[required]" dateFmt="yyyy-MM-dd HH:mm" ></td>
- </tr>
- </table>
- </fieldset>
- </form>
-
- </div>
- </body>
- </html>
|