123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863 |
- <%@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="X-UA-Compatible" content="IE=edge,chrome=1" />
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>预警通知单填报,修改</title>
- <%@include file="../../../../include1.jsp"%>
- <script type="text/javascript"
- src="<%=path%>/scripts/business/am/org/maintenance/orgSel.js"></script>
- <!--(遮罩)加载中开始-->
- <!--<script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/system/loading/loading.js"></script> -->
- <!--<link href="/nwyj/scripts/freamwork/com/sinosoft/system/loading/loading.css" rel="stylesheet" type="text/css"/> -->
- <!--(遮罩)加载中结束-->
- <%-- <script type="text/javascript" src="<%=path%>/scripts/business/em/alert/warning/WarningAddEdit.js"></script> --%>
- <!-- 20161121 -->
- <script type="text/javascript"
- src="<%=path%>/scripts/business/em/alert/warning/WarningAddEdit.js"></script>
- <style type="text/css">
- .class_color {
- background-color: rgb(237, 239, 253);
- }
- .inline_block {
- display: inline-block;
- vertical-align: middle;
- }
- </style>
- <script type="text/javascript">
-
- var fd_id = "<%=request.getParameter("fd_id")%>";
- var is_adjst = "<%=request.getParameter("is_adjst")%>";
- //是否动态页签 true为是动态页签
- var isActivePage = "<%=request.getParameter("isActivePage")%>";
- //预警研判跳转 预警研判页面通知单的id_是
- var is_yanPan = "<%=request.getParameter("is_yanPan")%>";
- var alertNum=""; //预警编号
- var firstdiag;
- var dateTitle = "";
- var dateTitleId = "";
- var nowTime = "";//后台获取当前时间
- //取得用户真实名字
- var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
- var realName_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- //部门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 CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- var Corp_names = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
- var roleid = top.com.sinosoft.lz.system.user.LoginInfo.getRoleids();
- var roleName = top.com.sinosoft.lz.system.user.LoginInfo.getRolenames();
- var parentId1 = "";//通过CorpArea(Corp_ids)查parentId
- var planMsg = "";
- var isLastId365 = "";//关联ID
- function getDateTime(){
- var s="";
- var d = allGetServerTime();
- var vYear = d.getFullYear();
- var vMon = d.getMonth() + 1;
- var vDay = d.getDate();
- var h = d.getHours();
- var m = d.getMinutes();
- s=vYear+"-"+(vMon<10 ? "0" + vMon : vMon)+"-"+(vDay<10 ? "0"+ vDay : vDay)+" "+(h<10 ? "0"+ h : h)+":"+(m<10 ? "0" + m : m);
- return s;
- }
- $(function(){
- $("#yjbh").live("change",function(){
- getYjNum();
- var node = $("#yjbh").data("selectedNode");
- if(node && node.report_type_id){
- $("#PLAN_TYPE_ID_365").val(node.report_type_id);
- }
- mouse("",1);
- inputEarlyWarningName();
- })
-
- if(isActivePage=="true"){
- //如果是动态页签,则隐藏返回按钮
- $("#back").parent().hide();
- }
-
- $.ajax({
- url : $.pathname()+ '/ws/response/responseService/getIssueUnitName',
- data : CorpArea,
- type : 'post',
- dataType : 'json',
- async : false,
- success : function(data){
- //alert(data.issueUnitName)
- $("#WRITE_DEPT_365_SHOW").text(data.issueUnitName);
- },error : function(e){
- top.Dialog.alert("系统错误!");
- }
- });
-
-
- var allTime = getDateTime();
- var nowYear = allTime.split("-")[0];
- $("#fbYear").val(nowYear);
-
- loadEventType();
-
-
- /** 查当前单位的parentId **/
- $.ajax({
- url : $.pathname() + '/ws/duty/DutyRecordsService/getparengId',
- type : 'post',
- timeout : 15000,
- data : CorpArea,
- dataType : 'text',
- async : false,
- success : function(theParentId){
- parentId1 = theParentId;
- },
- error : function(e){
- top.Dialog.alert("系统错误!");
- }
- });
-
- var defaultOpts={
- // 自动上传。
- auto : true,
- // swf文件路径
- swf : '/nwyj/scripts/webUploader/Uploader.swf',
- // 文件接收服务端。
- //server : '/nwyj/Upload',
- server : $.pathname() +"/ws/uploadForm/FileUpDownService/indexUpLoad",
- // 选择文件的按钮。可选。
- pick : '#picker',
- fileNumLimit: 5,
- fileSizeLimit: 200 * 1024 * 1024, // 200 M
- fileSingleSizeLimit: 50 * 1024 * 1024, // 50 M
- chunked: false,
- chunkSize: 512 * 1024,
- fileTypeLimit :"exe,jsp,asp",
- accept: {
- extensions: 'jpg,png,doc,docx,pdf'
- },
- /*
- formData: {},
- runtimeOrder: 'flash',
- */
- //禁掉全局的拖拽功能。这样不会出现图片拖进页面的时候,把图片打开。
- disableGlobalDnd: true
- };
- $('#fileDiv').newAsyncFileUpload(defaultOpts,fd_id,"1");
- $("#EARLY_WARNING_AREA_NAME_365").OrgSel({is_alert:"is_alert",is_alert:"is_alert",valuetype:"showunit_0003",selectedMulti : true,loadId_in:CorpArea,loadCorp:"loadCorp",setMulti : {
- "Y" : "s",
- "N" : ""
- }});
- if(fd_id.length>0 && is_adjst == 0){ //修改表单
- //加载附件列表
-
- $(".titleShow").text("修改预警发布通知单");
- $("#chongzhi2").show(); //显示重置按钮
-
- $('#CURRENT_EW_LEVEL_365').initCanstSelect('BM_WarningState'); //本次预警级别
- $('#PREV_EW_LEVEL').initCanstSelect('BM_WarningState'); //上次预警级别
-
-
-
- $("#PREV_EW_ID").initYewuSelect("365","FD_OBJECTID","EARLY_WARNING_ID","IS_DEL=0 and IS_SEND = 5 and is_alert='0' and RELEASE_UNIT='"+CorpArea+"' and WRITER_ID='"+realName_ID+"' ");//上次预警单号
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '365',
- objectID : fd_id
- };
- $.request.query(url,params,function(data){
- $('#editForm').ajaxWrite({data:data});
- $('#editForm input[name="classid"]').val('365');
- $("#show_EARLY_WARNING_AREA_NAME_365").val(data.EARLY_WARNING_AREA_NAME_365);
- $("#EARLY_WARNING_AREA_NAME_365").val(data.EARLY_WARNING_AREA_ID_365);
- $("#EARLY_WARNING_AREA_NAME_365_show").val(data.EARLY_WARNING_AREA_NAME_365);
-
- isLastId365 = data.IS_LAST_ID_365;
- var val = data.PLAN_TYPE_ID_365;
- if(val=='9'){
- var tempDate = data.TYPHOON_DATE_365;
- if(tempDate != null && tempDate != ''){
- $("#isTFDate").show();
- $("#typhoonDate").show();
- }else{
- $("#isTFDate").show();
- $(".IsTF[value='false']").attr('checked','checkked');
- }
- }
- $("#yjbh").setValue(data.MEET_EMERGENCIES_PLAN_365);//突发事件类型主键
- $("#WRITER_365").val(data.WRITER_365); //填报人
- $("#show_EARLY_WARNING_AREA_NAME_365").val(data.EARLY_WARNING_AREA_NAME_365);//预警范围显示
- $("#EARLY_WARNING_AREA_NAME_365").val(data.EARLY_WARNING_AREA_ID_365);//预警范围ID
- $("#EARLY_WARNING_AREA_NAME_365_show").val(data.EARLY_WARNING_AREA_NAME_365);//预警范围NAME
- //========================================================
- if(data.EARLY_WARNING_PROPERTY_365 == 50){ //预警性质 49是初次发布50是非初次发布(即调整)
- $("#WETHER_EW_ADJUST").attr("checked","checked");
- }else if(data.EARLY_WARNING_PROPERTY_365 == 49){
- $("#WARNING_PROPERTY").attr("checked","checked");
- }
- dateTitle = data.PLAN_TYPE_ID_365_SHOW;
- if("1"==data.WETHER_EW_ADJUST_365){
- mouse1(dateTitle);
- }else{
- mouse(dateTitle,1);
- }
- //========================================================上次预警级别
- var val = data.PREV_EW_ID_365;
- debugger;
- $.ajax({
- url : $.pathname() + '/ws/duty/DutyRecordsService/getlastLevel',
- type : 'post',
- timeout : 15000,
- data:val,
- dataType : 'text',
- async:false,
- success : function(result){
- var lastLevel = result;
- $("#PREV_EW_LEVEL").setValue(lastLevel);
- },
- error : function(e){
- top.Dialog.alert("保存失败");
- }
- });
- if(data.EARLY_WARNING_PROPERTY_365==50){
- //经过调整的记录,在修改页面加载上次预警编号和预警级别
- $('#PREV_EW_LEVEL').setValue(data.PREV_EW_LEVEL_365); //上次预警级别
- $('#PREV_EW_LEVEL').render();
- $("#PREV_EW_LEVEL_365").val(data.PREV_EW_LEVEL_365);
- $("#PREV_EW_ID").setValue(data.IS_LAST_ID_365); //上次预警单号
- $("#PREV_EW_ID").render();
-
- $("#WETHER_EW_ADJUST").attr("checked","checked");//那么预警调整被勾选
- }
- $("#show_EARLY_WARNING_AREA_NAME_365").val(data.EARLY_WARNING_AREA_NAME_365);
- $("#EARLY_WARNING_NAME_365").val(data.EARLY_WARNING_NAME_365);
- var yjNum = data.EARLY_WARNING_ID_365;
- mouse(yjNum[0]);//调整修改页面出不来
- console.log(yjNum);
- yjNum = yjNum.split("-");
- $("#is_chuci").val(yjNum[1]);
- $("#fbYear").val(yjNum[2]);
- $("#yj_num").setValue(yjNum[3]);
- });
-
- }else{//新增
- $(".titleShow").text("填报预警发布通知单");
- $("#chongzhi").show();//显示重置按钮
-
- $('#CURRENT_EW_LEVEL_365').initCanstSelect('BM_WarningState'); //本次预警级别
- $('#PREV_EW_LEVEL').initCanstSelect('BM_WarningState'); //上次预警级别
-
- $("#WARNING_PROPERTY").attr("checked","checked"); //预警性质--默认勾选初次
- $("#PREV_EW_ID").initYewuSelect("365","FD_OBJECTID","EARLY_WARNING_ID","IS_DEL=0 and IS_SEND = 5 and is_alert='0' and RELEASE_UNIT='"+CorpArea+"' and WRITER_ID='"+realName_ID+"' ");//上次预警单号
- $("#EARLY_WARNING_PROPERTY_365").val(49); //预警性质 49 初次发布 50非初次发布 51 解除
- $("#WETHER_EW_ADJUST_365").val(0); //是否预警调整 0非预警调整1、是预警
- $("#CHECK_STATUS_365").val(41); //41初次 42调整 43解除 操作
- //默认选中登录人所属部门
-
- $('#WRITE_DEPT_365').val(CorpArea);
- //$("#WRITE_DEPT_365_SHOW").text(Corp_names);
- $("#RELEASE_UNIT_365").val(CorpArea);//发布单位
- $("#WRITER_365").val(realName); //填报人
- //$("#WRITER_365_SHOW").text(realName); //填报人
- $("#WRITER_ID_365").val(realName_ID); //填报人ID
- $("#is_chuci").val("F");
- }
-
- $.ajax({//后台获取系统当前时间
- url : $.pathname()+ '/ws/response/responseService/getNowTime',
- // data : {},
- type : 'post',
- dataType : 'text',
- async : false,
- timeout : 6000,
- success : function(result){
- nowTime=result;
- },error : function(e){
- top.Dialog.alert("获取后台时间失败!");
- return;
- }
- });
-
-
-
- $(".IsTF").bind("click",function(){
- var value = $(this).attr('value');
- if(value == 'true'){
- $("#dateTitle").text("预计台风登陆时间:");
- $("#typhoonDate").show();
- $("#TYPHOON_DATE_365").attr('class','date validate[required]');
- }else{
- $("#typhoonDate").hide();
- $("#TYPHOON_DATE_365").attr('class','date');
- $("#TYPHOON_DATE_365").val('');
- }
- });
- $("#CURRENT_EW_LEVEL_365").bind("change",function(){
- //预警级别
- var level = $("#CURRENT_EW_LEVEL_365").attr("relText");
- if(level == undefined || level == '请选择'){
- level = '';
- }
- if(dateTitle == undefined || dateTitle == '请选择'){
- dateTitle = '';
- }
- inputEarlyWarningName();
- //预警名称
- //$("#EARLY_WARNING_NAME_365").val(dateTitle+level);
- });
- $("#RELEASE_RELIEVE_DATE_365").on("blur",function(){//用于修改预警编号》》发布时间的改变
- var allTime = $(this).val();
- var nowYear = allTime.split("-")[0];
- mouse(nowYear,2);
- });
-
- $("#WARNING_PROPERTY").on("change",function(){//用于修改预警编号》》选择初次发布
- var isChecked = $(this).attr("checked");
- if(isChecked == "checked"){
- mouse("F",3);//如果预警调整被勾选-----2
- $(".titleShow").text("预警发布通知单");
- $("#titleShow_red").text("预警发布通知单");
- $("#PREV_EW_ID").resetValue();//上次预警单号重置
- $("#PREV_EW_ID").attr("disabled",true);//上次预警单号禁用
- $("#PREV_EW_ID").render();
- $("#WETHER_EW_ADJUST").attr("checked",false);
- }else{
- mouse("T",4);
- $(".titleShow").text("预警调整通知单");
- $("#titleShow_red").text("预警调整通知单");
- $("#PREV_EW_ID").attr("disabled",false);//上次预警单号解除禁用
- $("#PREV_EW_ID").render();
- $("#WETHER_EW_ADJUST").attr("checked",true);
- }
- });
-
- $("#WETHER_EW_ADJUST").on("change",function(){//用于修改预警编号》》选择调整
-
- var isChecked = $(this).attr("checked");
- if(isChecked == "checked"){
- mouse("T",4);
- $(".titleShow").text("预警调整通知单");
- $("#titleShow_red").text("预警调整通知单");
- $("#PREV_EW_ID").attr("disabled",false);//上次预警单号解除禁用
- $("#PREV_EW_ID").render();
- $("#WARNING_PROPERTY").attr("checked",false);
- }else{
- mouse("F",3);//如果预警调整被勾选-----2
- $(".titleShow").text("预警发布通知单");
- $("#titleShow_red").text("预警发布通知单");
- $("#PREV_EW_ID").resetValue();//上次预警单号重置
- $("#PREV_EW_ID").attr("disabled",true);//上次预警单号禁用
- $("#PREV_EW_ID").render();
- $("#WARNING_PROPERTY").attr("checked",true);
- }
- });
- });
- /*******自动输入预警/响应名称*************/
- function inputEarlyWarningName(){
- var yjbh = $("#yjbh").attr("reltext");
- var jb = $("#CURRENT_EW_LEVEL_365").attr("reltext");
- yjbh = !yjbh?"":yjbh;
- jb = !jb?"":jb;
- $("#EARLY_WARNING_NAME_365").val(yjbh+jb);
- }
- //修改重置
- function formReset2(){
- $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/em/alert/warning/WarningAddEdit.jsp?fd_id="+ fd_id+"&is_adjst=0");
- }
- //新增重置方法
- function formReset(){
- $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/em/alert/warning/WarningAddEdit.jsp?fd_id=&is_adjst=");
- }
- //预警编号--鼠标事件(填报,修改,转响应页面)--------初次
- function mouse(thing,num){//num的值【1:说明是预案的改变进来的】【2:说明是发布时间的改变进来的】【3:说明是选择了初次发布进来的】【4:说明是选择了调整进来的】
- if(thing == undefined || thing == '请选择'){
- thing = '';
- }
- //预警级别
- var level = $("#CURRENT_EW_LEVEL_365").attr("relText");
- if(level == undefined || level == '请选择'){
- level = '';
- }
- //预警名称
- //获取系统年份
- var year = allGetServerTime().getFullYear();
- var planTypeId = $("#PLAN_TYPE_ID_365").val();
- $("#PLAN_TYPE_ID_368").val(planTypeId);
- //=====================修改预警编号start
- var isF = $("#WARNING_PROPERTY").attr("checked");
- var isT = $("#WETHER_EW_ADJUST").attr("checked");
- var isForT = "";
- if(isF == "checked"){
- isForT = "F";
- $("#is_chuci").val("F");
- }else if(isT == "checked"){
- isForT = "T";
- $("#is_chuci").val("T");
- }
- //=====================修改预警编号end
- if(num == "2"){//-----------------【2:说明是发布时间的改变进来的】
- year = thing;
- }
- var params = {
- companyId : CorpArea,
- year : year,
- //isAdjust : 'F',
- isAdjust : isForT,
- isAlert:'0',
- plan_type_id : planTypeId
- };
-
- var url = $.pathname()+ '/ws/response/responseService/getAlertresponse';
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- dataType : 'json',
- data : params,
- success : function(data) {
- /**************************20160615 ljp 根据需求,当有通知单不走系统时,会出现跳编号情况,这时候,查出当前最大编号,往后推十个号供选择**********************************/
- $("#NUM_368").val(data);
- data = Number(data);
- var dataJson = {"list":[]};
- var dataJson1 = {"list":[]};
-
- //=====================修改预警编号start
- var warningNum = $("#yj_num").attr("relText");//预警编号----防风防汛-F-2017-1
- warningNum += "";
-
- var thing1 = warningNum.split("-")[0];
- var getYear = warningNum.split("-")[2];
- if(thing1 == "undefined" || thing1 == undefined){
- thing1 = "";
- }
- if(getYear == "undefined" || getYear == undefined){
- getYear = year;
- }
- for (var i = 0; i < 10; i++) {
- if(data==0){
- data++;
- }
- if(data<10 && data>=0){
- dataJson1.list.push({"key":"00"+data,"value":"00"+data});
- }else if(data<100 && data>=10){
- dataJson1.list.push({"key":"0"+data,"value":"0"+data});
- }else{
- dataJson1.list.push({"key":data,"value":data});
- }
- data++;
- }
- if(num == "1"){//-----------------【1:说明是预案的改变进来的】
- for (var i = 0; i < 10; i++) {
- data++;
- alertNum = thing + "-" + "F" + "-" + year + "-" + data;
- dataJson.list.push({"key":alertNum,"value":alertNum});
- }
- }else if(num == "2"){//-----------------【2:说明是发布时间的改变进来的】
- for (var i = 0; i < 10; i++) {
- data++;
- alertNum = thing1 + "-" + "F" + "-" + thing + "-" + data;
- dataJson.list.push({"key":alertNum,"value":alertNum});
- }
- $("#fbYear").val(thing);
- }else if(num == "3"){//-----------------【3:说明是选择了初次发布进来的】
- for (var i = 0; i < 10; i++) {
- data++;
- alertNum = thing1 + "-" + "F" + "-" + getYear + "-" + data;
- dataJson.list.push({"key":alertNum,"value":alertNum});
- }
- }else if(num == "4"){//-----------------【4:说明是选择了调整进来的】
- for (var i = 0; i < 10; i++) {
- data++;
- alertNum = thing1 + "-" + "T" + "-" + getYear + "-" + data;
- dataJson.list.push({"key":alertNum,"value":alertNum});
- }
- }
-
- $("#COMPANY_ID_368").val(CorpArea);
- $("#YEAR_368").val(year);
- $("#yj_num").data("data",dataJson1);//<input>显示
- $("#yj_num").render();
- getYjNum();
- }
- });
- };
- //修改调整通知单时
- function mouse1(thing){
- if(thing == undefined || thing == '请选择'){
- thing = '';
- }
- //预警级别
- var level = $("#CURRENT_EW_LEVEL_365").attr("relText");
- if(level == undefined || level == '请选择'){
- level = '';
- }
- //预警名称
- //获取系统年份
- var year = allGetServerTime().getFullYear();
- var params = {
- companyId : CorpArea,
- year : year,
- isAdjust : 'T',
- isAlert:'0'
- };
- var url = $.pathname()+ '/ws/response/responseService/getAlertresponse';
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- dataType : 'json',
- data : params,
- success : function(data) {
- /**************************20160615 ljp 根据需求,当有通知单不走系统时,会出现跳编号情况,这时候,查出当前最大编号,往后推十个号供选择**********************************/
- $("#NUM_368").val(data);
- data = parseInt(data)-1;
- var dataJson = {"list":[]};
- for (var i = 0; i < 10; i++) {
- data++;
- alertNum = thing + "-" + "F" + "-" + year + "-" + data;
- dataJson.list.push({"key":alertNum,"value":alertNum});
- }
-
-
- $("#COMPANY_ID_368").val(CorpArea);
- $("#YEAR_368").val(year);
- $("#yj_num").data("data",dataJson);//<input>显示
- $("#yj_num").render();
- }
- });
- };
- //初次发布的鼠标事件
- $(function(){
- /* $("#WARNING_PROPERTY").click(function(){
- if($("#WARNING_PROPERTY").attr("checked")=="checked"){//如果初次发布被勾选-----1
- $("#WETHER_EW_ADJUST").attr("checked",false);//那么预警调整不被勾选
- $(".titleShow").text("预警发布通知单");
- $("#PREV_EW_ID").resetValue();//上次预警单号重置
- $("#PREV_EW_LEVEL").setValue("请选择");//上次预警级别重置
- //mouse();
- $("#PREV_EW_LEVEL").attr("disabled",true);//上次预警级别禁用
- $("#PREV_EW_LEVEL").render();
- $("#PREV_EW_ID").attr("disabled",true);//上次预警单号禁用
- $("#PREV_EW_ID").render();
- }
- });
- //预警调整的鼠标事件
- $("#WETHER_EW_ADJUST").click(function(){
- if($("#WETHER_EW_ADJUST").attr("checked")=="checked"){//如果预警调整被勾选-----2
- $("#WARNING_PROPERTY").attr("checked",false);//那么初次发布不被勾选
- $(".titleShow").text("预警调整通知单");
- $("#PREV_EW_LEVEL").attr("disabled",false);//上次预警级别解除禁用
- $("#PREV_EW_LEVEL").render();
- $("#PREV_EW_ID").attr("disabled",false);//上次预警单号解除禁用
- $("#PREV_EW_ID").render();
- }
- }); */
- $(".templateSelect").bind("click",function(){
- if($(this).val() == "newTemplate"){
- $("#templateList").hide();
- $("#templateTitle").show();
- }else{
- $("#templateList").show();
- }
- });
- $("#PREV_EW_ID").bind("change",function(){
- var val=$(this).attr("relValue");
-
- if(val!=''){
- /* $.ajax({
- url : $.pathname() + '/ws/duty/DutyRecordsService/getlastLevel',
- type : 'post',
- timeout : 15000,
- data:val,
- dataType : 'text',
- success : function(result){
- var lastLevel = result;
- $("#PREV_EW_LEVEL").setValue(lastLevel);
- },
- error : function(e){
- top.Dialog.alert("保存失败");
- }
- }); */
- var name = $(this).attr("reltext");
- top.Dialog.confirm("是否调整"+name,function(){//点击确定--弹出调整页签
- top.createActiveTab("预警调整",$.pathname()+ "/page/business/em/alert/warning/WarningAdjust.jsp?fd_id="+ val+"&is_adjst="+1);
- });
- };
- });
- });
- function selectEarlyWarningNum(){
- var early_num = $("#yj_num").attr("relvalue");
- $("#NUM_368").val(early_num);
- getYjNum();
- }
- /******加载突发事件类型*********/
- function loadEventType(){
-
- $.ajax({
- url : $.pathname() + '/ws/sys/constantService/getAllEventType/',
- type : 'post',
- timeout : 60000,
- //data : { sql : AreaSql },
- dataType : 'json',
- async: false,
- success : function(data){
- $("#yjbh").data("data",data);
- $("#yjbh").render();
- getYjNum();
- }
- });
-
- }
- //查询预案Id——214
- function queryPlanId(planType){
- $.ajax({
- url : $.pathname() + '/ws/sys/constantService/getPlanId/',
- data : { unitId : CorpArea , planType : planType },
- type : 'post',
- dataType : 'text',
- async : false,
- success : function(resultData){
- if(resultData == null){
- planMsg = "noPlan";
- }else{
- planMsg = resultData.FD_OBJECTID+","+resultData.planName;
- }
- },error : function(e){
- }
- });
- }
- function getYjNum(){
- var event_type_name = $("#yjbh").attr("relText");
- $("#EARLY_WARNING_ID_365").val(event_type_name+"-"+$("#is_chuci").val()+"-"+$("#fbYear").val()+"-"+$("#yj_num").attr("relvalue"))
- $("#MEET_EMERGENCIES_PLAN_365").val($("#yjbh").attr("relValue"));
- }
- </script>
- </head>
- <body style="width: 1000px; margin: 0 auto; margin-top: 15px"
- align="center">
- <div class="box1" id="formContent"
- style="border: 1px solid #E4E4E4; background: #F8F8F8;" width="1000px">
- <!-- <div style="height: 50px; background: #F8F8F8;" align="center">
- <a href="javascript:;"> <img id="back" align="left" alt="返回"
- title="返回" src="/nwyj/images/temp/back.png" />
- </a> <font style="font-weight: bold; font-size: 20px; line-height: 45px;"
- class="titleShow"></font>
- </div> -->
- <form id="editForm" method="post">
- <input type="hidden" id="WRITE_DEPT_365" name="WRITE_DEPT_365" /> <input
- id="is_adjst" value='' type="hidden" /> <input name="classid"
- value="365" type="hidden" /> <input name="CHECK_STATUS_365"
- id="CHECK_STATUS_365" type="hidden" /> <input name="IS_SEND_365"
- id="IS_SEND_365" value="0" type="hidden" /> <input
- name="IS_LAST_ID_365" id="IS_LAST_ID_365" type="hidden" /> <input
- id="EARLY_WARNING_PROPERTY_365" name="EARLY_WARNING_PROPERTY_365"
- type="hidden" /> <input id="WETHER_EW_ADJUST_365"
- name="WETHER_EW_ADJUST_365" type="hidden" /> <input
- id="RELEASE_UNIT_365" name="RELEASE_UNIT_365" type="hidden" /> <input
- id="WRITE_TIME_365" name="WRITE_TIME_365" type="hidden" /> <input
- id="PREV_EW_LEVEL_365" name="PREV_EW_LEVEL_365" type="hidden" /> <input
- id="EARLY_WARNING_AREA_ID_365" name="EARLY_WARNING_AREA_ID_365"
- type="hidden" />
- <!-- <input id="PREV_EW_ID_365" name="PREV_EW_ID_365" type="hidden"/> -->
- <input type="hidden" name="FD_OBJECTID365" id="FD_OBJECTID365"
- value="" /> <input type="hidden" name="IS_ALERT_365"
- id="IS_ALERT_365" value="0" /> <input type="hidden"
- name="WRITER_ID_365" id="WRITER_ID_365" /> <input type="hidden"
- name="PLAN_TYPE_ID_365" id="PLAN_TYPE_ID_365" /> <input
- type="hidden" name="MEET_EMERGENCIES_PLAN_365"
- id="MEET_EMERGENCIES_PLAN_365" /> <input type="hidden"
- name="EVENT_ID_365" id="EVENT_ID_365" /> <input type="hidden"
- id="AGREE_ISSUE_LEADER_ID_365" name="AGREE_ISSUE_LEADER_ID_365" /> <input
- type="hidden" id="AGREE_ISSUE_LEADER_NAME_365"
- name="AGREE_ISSUE_LEADER_NAME_365" /> <input type="hidden"
- id="EARLY_WARNING_ID_365" name="EARLY_WARNING_ID_365" />
- <!-- 预警响应编号 -->
- <!-- 保存和重置 -->
- <br />
- <div style="float: right" id="divOfButton">
- <input type="button" id="is_Send" value="发送" /> <input
- type="button" id="is_Issue" value="发布"
- title="上传盖章后的通知单附件,可以不经发送、审核直接发布" /> <input value="保存"
- type="button" id="save" /> <input id="chongzhi"
- style="display: none;" value="重置" onclick="formReset();"
- type="button" />
- <!-- 新增重置 -->
- <input id="chongzhi2" style="display: none;" value="重置"
- onclick="formReset2();" type="button" />
- <!-- 修改重置 -->
- </div>
- <br />
- <div align="center">
- <font style="font-weight: bold; font-size: 30px; line-height: 45px;"
- color="red" id="titleShow_red">预警发布通知单</font>
- </div>
- <!-- 填报单位和填报人 -->
- <table align="center" width="960px"
- style="padding-left: 10px; padding-right: 10px; margin: auto">
- <tr>
- <td align="left">
- <div style="float: left">
- <span>发布单位:</span>
- </div>
- <div style="float: left">
- <label id="WRITE_DEPT_365_SHOW"></label>
- <!-- <div class="selectTree" style="display: none;" selWidth="" id="WRITE_DEPT_365" name="WRITE_DEPT_365" ></div> -->
- </div>
- </td>
- <td align="right" style="padding-right: 60px;">签发人:<label
- id="WRITER_365_SHOW1"></label><input style="display: none;"
- id="WRITER_365" name="WRITER_365" type="text" /></td>
- </tr>
- </table>
- <!-- 正文表格 -->
- <table width="960px" class="tableStyle" align="center">
- <tr>
- <td align="right" width="120px" class="class_color"><span
- class="star">*</span>预警名称:</td>
- <td colspan="2"><input type="text" class="validate[required,custom[illegalLetter]]" maxLength="50"
- name="EARLY_WARNING_NAME_365" id="EARLY_WARNING_NAME_365" title="预警名称可根据所选预警编号和预警级别自动填入,无需手动输入"
- style="width: 750px;" /></td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color"><span
- class="star">*</span>发布时间:</td>
- <td colspan="2"><input style="width: 750px" type="text"
- id="RELEASE_RELIEVE_DATE_365" name="RELEASE_RELIEVE_DATE_365"
- class="validate[required] date" dateFmt="yyyy-MM-dd HH:mm" /></td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color"><span
- class="star">*</span>预警编号:</td>
- <td colspan="2">
- <div class='inline_block'>
- <select selWidth="288" editable=false class="validate[required]"
- id='yjbh' prompt="请选择" selAlign=""></select>
- </div>
- <div class='inline_block'>
- <input type="text"
- class="validate[required,custom[illegalLetter]]"
- readonly="readonly" maxLength="1" id='is_chuci'
- style="width: 100px; height: 30px;" />
- </div>
- <div class='inline_block'>
- <input type="text"
- class="validate[required,custom[illegalLetter]]"
- readonly="readonly" maxLength="4" id='fbYear'
- style="width: 100px; height: 30px;" />
- </div>
- <div class='inline_block'>
- <select selWidth="256" editable=false class="validate[required]"
- id="yj_num" selAlign="" onchange="selectEarlyWarningNum()"></select>
- </div>
- </td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color"><span
- class="star">*</span>预警范围:</td>
- <!-- class="validate[required]" -->
- <td colspan="2"><div style="width: 826px;" allclickset="1"
- id="EARLY_WARNING_AREA_NAME_365"></div></td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color"><span>预警性质:</span></td>
- <td width="420px"><input type="checkbox" id="WARNING_PROPERTY" /><label for='WARNING_PROPERTY'>初次发布</label></td>
- <td width="420px"><span>预警调整:</span> <input type="checkbox"
- id="WETHER_EW_ADJUST" /><label for='WETHER_EW_ADJUST'>预警调整</label><br />
- <div style="float: left">
- <span>上次预警单号:</span>
- </div>
- <div style="float: left">
- <select disabled="true" editable=false id="PREV_EW_ID"
- name="PREV_EW_ID_365" prompt="请选择" selWidth="246"></select>
- </div></td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color"><span
- class="star">*</span><span>预警级别:</span></td>
- <td width="420px"><div style="float: left">
- <span>本次:</span>
- </div>
- <div style="float: left">
- <select name="CURRENT_EW_LEVEL_365" class="validate[required]"
- id="CURRENT_EW_LEVEL_365" selAlign="right" prompt="请选择"
- selWidth="300"></select>
- </div> </td>
- <td width="420px"><div style="float: left">
- <span>上次:</span>
- </div>
- <div style="float: left">
- <select disabled="true" id="PREV_EW_LEVEL"
- name="PREV_EW_LEVEL_365" selAlign="right" prompt="请选择"
- selWidth="290"></select>
- </div> </td>
- <!-- disabled="disabled" -->
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color">预警概要:</td>
- <td colspan="2"><textarea maxNum="2000"
- style="width: 750px; height: 270px;" name="EW_SUMMARY_365"
- id="EW_SUMMARY_365"></textarea></td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color">预防措施及<br>工作要求:</td>
- <td colspan="2"><textarea maxNum="2000"
- style="width: 750px; height: 270px;"
- name="MEASURE_AND_REQUEST_365" id="MEASURE_AND_REQUEST_365"></textarea>
- </td>
- <!-- id="templateContent" -->
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color">备注:</td>
- <td colspan="2"><textarea maxNum="2000" name="REMARK_365"
- id="REMARK_365" style="width: 750px; height: 270px;"></textarea></td>
- </tr>
- </table>
- <fieldset
- style="border-color: #999999; border-top-color: rgb(200, 200, 200); border-right-color: rgb(200, 200, 200); border-bottom-color: rgb(200, 200, 200); border-left-color: rgb(200, 200, 200); width: 960px"
- align="center">
- <legend width="960px">附件信息:</legend>
- <table width="960px" class="tableStyle" align="center">
- <tr>
- <td width="110px" class="class_color" align="right"><span>纸质扫描件:</span></td>
- <td colspan="2"><font color=red>只有领导审核、签发的word、pdf、图片(png/jpg)附件才可以上传直接发布</font></td>
- </tr>
- <tr>
- <td width="110px" class="class_color" align="right"><span
- align="right" class="star">*</span>上传附件:</td>
- <td width="750px" colspan="3"><div style="width: 750px"
- id="fileDiv" name="fileDiv"></div></td>
- </tr>
- </table>
- </fieldset>
- </form>
- <form id="alertResponseNumForm" method="post">
- <input name="classid" value="368" type="hidden" /> <input
- type="hidden" id="COMPANY_ID_368" name="COMPANY_ID_368" /> <input
- type="hidden" id="YEAR_368" name="YEAR_368" /> <input type="hidden"
- id="NUM_368" name="NUM_368" /> <input type="hidden"
- id="IS_ADJUST_368" name="IS_ADJUST_368" value="F" /> <input
- type="hidden" id="IS_ALERT_368" name="IS_ALERT_368" value="0" /> <input
- type="hidden" id="PLAN_TYPE_ID_368" name="PLAN_TYPE_ID_368"
- value="-1" />
- </form>
- </div>
- </body>
- </html>
|