123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>预警通知单填报</title>
- <style type="text/css">
- .hlight{background-color:lightblue}
- .normal{backgroud-color:#E8F2FE}
- </style>
- <!--框架必需start 扁平风格-->
- <link href="/nwyj/scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
- <link href="/nwyj/scripts/qui/libs/skins/flatBlue/style.css" rel="stylesheet" type="text/css" id="theme" themeColor="flatBlue" positionTarget="positionContent" selInputHeight="32" selButtonWidth="35" defaultSelWidth="200" fileBtnWidth="60" defaultFileInputWidth="200" defaultGridHeaderHeight="34" defaultGridRowHeight="38" defaultFontSize="14" defaultPageSelWidth="55" defaultFilterItemHeight="32" dialogWidthFix="0" defaultSelItemHeight="32" defaultFontFamily="宋体"/>
- <link href="/nwyj/scripts/qui/system/layout_flat/skin/style.css" rel="stylesheet" type="text/css" id="skin" skinPath="/scripts/qui/system/layout_flat/skin/"/>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/framework.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
- <!--框架必需end-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/text/vticker.js"></script>
- <!--自动提示框start-->
- <script type='text/javascript' src='/nwyj/scripts/qui/libs/js/form/suggestion.js'></script>
- <!--自动提示框end-->
- <!--数据表格start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/table/quiGrid.js" ></script>
- <!--数据表格end-->
- <!--表单提交start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/form.js"></script>
- <!--表单提交end-->
- <!--表单验证start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/validation.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/validationRule.js"></script>
- <!--表单提交end-->
- <!-- 数字步进器start -->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/stepper.js"></script>
- <!-- 数字步进器end -->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/datePicker/WdatePicker.js"></script>
- <!--数据表格end-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/thirdparty/highcharts/js/highcharts.js"></script>
- <!--弹窗组件start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/popup/messager.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/popup/drag.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/popup/dialog.js"></script>
- <!--弹窗组件end-->
- <!--布局组件start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/layout.js"></script>
- <!--布局组件start-->
- <!--基本选项卡start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/basicTab.js"></script>
- <!--基本选项卡end-->
- <!--动态选项卡start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/dynamicTab.js"></script>
- <!--动态选项卡end-->
- <!--树组件start-->
- <link rel="stylesheet" type="text/css" href="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.css" />
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/selectTree.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/listerTree.js"></script>
- <!--树组件end-->
- <!--纵向抽屉容器start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/accordion.js"></script>
- <!--纵向抽屉容器end-->
- <!-- 双向选择器start -->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/lister.js"></script>
- <!--双向选择器end-->
- <!--上传附件start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/upload/fileUpload.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/upload/handlers.js"></script>
- <!-- 上传附件end -->
- <!--分隔条start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/spliter.js"></script>
- <!--分隔条end-->
- <!-- 扩展工具js -->
- <script type="text/javascript" src="/nwyj/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/common.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/DateUtil.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/commom/common/common.js"></script>
- <!--浮动面板start-->
- <script type="text/javascript" src="../scripts/qui/libs/js/popup/floatPanel.js"></script>
- <!--浮动面板end-->
- <!-- 日期选择框start -->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/datePicker/WdatePicker.js"></script>
- <!-- 日期选择框end -->
- <!-- <script type="text/javascript" src="/nwyj/scripts/business/em/alert/notice/manage/manage_add&modify.js"></script> -->
- <script type="text/javascript">
- $(function(){
- //修改表单信息,获取记录
- if((window.location.href).indexOf('?')>-1){
- var fd_id = (window.location.href).split('?')[1];
- getFileList(fd_id);//加载附件调用的方法
-
- $('#fileListLegend').css("display","block");
- $('#fileList').css("display","block");
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '331',
- objectID : fd_id
- };
-
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- data : params,
- dataType : 'json',
- success : function(data){
- //alert(JSON.stringify(data));
- //判断是否初次发布选矿
- if(data.ANSWER_TYPE_331 == '初次发布'){
- $("#ANSWER_TYPE_331").attr("checked",true);
- }else{
- $("#ANSWER_TYPE_331").attr("checked",false);
- }
-
-
- $('#fillForm').ajaxWrite({data:data});
- //var name = data.list[0].value;
- //alert("name=" + name);
- $('#fillForm input[name="classid"]').val('331');
- //alert(data.EARLY_WARNING_PROPERTY_365);
- // $('#fillForm input[name="EARLY_WARNING_PROPERTY_365"]').val(data.EARLY_WARNING_PROPERTY_365);
- //alert(data.CURRENT_EW_LEVEL_365);//获取字段本次预警级别的值
- level();//复选框的方法
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
- });
- //返回主页面
- function goBack() {
- //获取iframe中的元素值
- var iframe =parent.document.getElementsByName("frmright")[0];
- iframe.src = "/nwyj/page/business/em/response/notice/eme_response.jsp";
- }
- //修改保存
- function saveAlertNotice(){
- /* //预警性质
- if($("#XY_NATURE_331").attr('checked') == 'checked'){
- $("#temp1").val("初次发布");
- }else{
- $("#temp1").val("非初次发布");
- }
- //是否预警调整
- if($("#XY_ADJUST_TYPE_331").attr('checked') == 'checked'){
- $("#temp2").val("是");
- }else{
- $("#temp2").val("否");
- }
- */
- var myDate=new Date() ;
- var formValue = $("#fillForm").serialize();
- /* var url = $.pathname() + '/ws/crud/CRUDService/create'; */
- var url = $.pathname() + '/ws/crud/CRUDService/update';
- $.ajax({
- url : url,
- type : 'post',
- data :formValue,
- dataType : 'text',
- timeout : 60000,
- success : function(data){
- goBack() ;
-
- g.loadData();//刷新列表
-
- },
- error : function(){
- $.messager.alert('操作失败');
- }
- });
-
- }
-
- $(function(){
-
- //部门id
- var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
-
- 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){
- $("#ANSWER_RANGE_331").data("data",data);
- $("#ANSWER_RANGE_331").render();
- }, "json");
- })
-
-
- </script>
- </head>
- <body style="height: 545px;">
- <div class="box1" id="formContent" style="overflow:auto;height:545px;border: 1px solid #E4E4E4;background: #F8F8F8;">
- <!-- 左上角的返回按钮 -->
- <div style="height: 50px;background: #F8F8F8;" align="center"><img align="left" alt="返回" title="返回" src="/nwyj/images/temp/back.png" onclick="goBack();">
- <label style="font-size:25px;">响应通知单修改</label></div>
- <form id="fillForm" method="post">
- <div style="float:left ;color:#0099CC"> 响应通知单信息</div><div style="float:right"><input value="保存" type="button" onclick="saveAlertNotice()"/> <input value="取消" onclick="goBack()" type="reset" /> </div><br/>
- <!-- 大红字 -->
- <div align="center" style="color:red;font-size:35px">应急响应通知单</div><br/>
-
- <!-- <div style="float:left;display:none;e"> 发布单位:<input id="PUBLISH_DEPARTMENT_331" name="PUBLISH_DEPARTMENT_331" type="text"/></div><div style="float:right;display: none">签发人:<input id="SIGNER_331" name="SIGNER_331" type="text"/> </div><br/> -->
-
-
- <input type="hidden" id="temp1" name="ANSWER_TYPE_331" />
- <input type="hidden" id="PUBLISH_DEPARTMENT_331" name="PUBLISH_DEPARTMENT_331" />
-
-
-
- <table class="tableStyle" >
- <tr style="display: none;">
- <td colspan="2">
- <input type="hidden" id="classid" name="classid" value="331" required="true"/>
- <input type="hidden" id="fd_id331" name="FD_OBJECTID331" required="true"/>
- </td></tr>
- <tr><td width="15%" align="center"><font id="ANSWER_NAME">响应名称</font></td>
- <td colspan="2" width="85%"><input id="ANSWER_NAME_331" name="ANSWER_NAME_331" type="text" style="width: 95%;background-color: #FFFFFF;"/></td></tr>
- <tr><td align="center"><font id="PUBLISH_TIME">发布时间</font></td>
- <td colspan="2"><input id="PUBLISH_TIME_331" name="PUBLISH_TIME_331" type="text" dateFmt="yyyy-MM-dd HH:mm:ss" class="date" style="width: 95%;background-color: #FFFFFF;"/></div></td></tr>
- <tr><td align="center"><font id="ANSWER_CODE" name="">响应编号</font></td>
- <td colspan="2"><input id="ANSWER_CODE_331" name="ANSWER_CODE_331" type="text" style="width: 95%;background-color: #FFFFFF;"/></td></tr>
- <tr><td align="center"><font id="ANSWER_RANGE">响应范围</font></td>
- <td colspan="2"><div class="selectTree validate[required]" id="ANSWER_RANGE_331" name="ANSWER_RANGE_331" multiMode="true" noGroup="true" selWidth="790" style="width:95%" class="validate[required,custom[noSpecialCaracters]]"><span class="star">*</span></div></td>
- <!-- <td colspan="2"><div class="selectTree" id="ANSWER_RANGE_331" name="ANSWER_RANGE_331" multiMode="true" noGroup="true" style="width:95%" selWidth="790"></div></td> -->
- <!-- <td colspan="2"><input id="ANSWER_RANGE_331" name="ANSWER_RANGE_331" type="text" style="width: 95%;background-color: #FFFFFF;"/></td> --></tr>
- <tr><td width="15%" align="center"><font>响应性质</font></td>
- <td width="40%"><input id="ANSWER_TYPE_331" type = "checkbox"/>初次发布</td>
- <td width="45%"><input id="WHETHER_ANSWER_ADJUST_331" name="WHETHER_ANSWER_ADJUST_331" type = "checkbox"/>响应调整<br/>上次响应单号(<input disabled="disabled" id="LAST_ANSWERN_CODE_331" name="LAST_ANSWERN_CODE_331" type="text"/>)</td></tr>
- <tr><td align="center" width="15%"><font id="THIS_ANSWER_GRADE">响应级别</font></td>
- <td width="40%"><div style="float: left;">本次:</div><div style="float:left;"><select id="THIS_ANSWER_GRADE_331" name="THIS_ANSWER_GRADE_331" data='{"list":[{"value":"红色","key":"红色"},{"value":"橙色","key":"橙色"},{"value":"黄色","key":"黄色"},{"value":"蓝色","key":"蓝色"}]}'/>
- </td>
- <td width="45%"><div style="float: left;">上次:</div><div style="float:left;"><select disabled="disabled" id="LAST_ANSWER_GRADE_331" name="LAST_ANSWER_GRADE_331" data='{"list":[{"value":"","key":""},{"value":"红色","key":"红色"},{"value":"橙色","key":"橙色"},{"value":"黄色","key":"黄色"},{"value":"蓝色","key":"蓝色"}]}'/>
- </div></td></tr>
- <tr height="60px"><td align="center"><font id="EVENTOVERVIEW">响应概要</font></td>
- <td colspan="2"><textarea id="EVENTOVERVIEW_331" name="EVENTOVERVIEW_331" type="text" resize="false" style="width: 95%;height:50px;background-color: #FFFFFF;"></textarea></td></tr>
- <tr height="80px"><td align="center"><font id="PRECAUTION_JOB_REQUIRE">处置措施<br/>工作要求</font></td>
- <td colspan="2"><textarea id="PRECAUTION_JOB_REQUIRE_331" name="PRECAUTION_JOB_REQUIRE_331" type="text" resize="false" style="width: 95%;height:70px;background-color: #FFFFFF;"></textarea></td></tr>
- <tr height="60px"><td align="center"><font id="REMARKS">备注</font></td>
- <td colspan="2"><textarea id="REMARKS_331" name="REMARKS_331" type="text" resize="false" style="width: 95%;height:50px;background-color: #FFFFFF;"></textarea></td></tr>
- <tr><td><div id="fileDiv"></div></td></tr>
- </table>
-
-
- </form>
- <div id="maingrid"></div>
- </div>
- </body>
- </html>
|