123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770 |
- <%@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="../../../../include1.jsp" %>
- <!-- 附件上传 -->
- <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/webUploader/css/webuploader.css" />
- <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/webUploader/css/style.css" />
- <script type="text/javascript" src="<%=path%>/scripts/webUploader/webuploader.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/webUploader/upload.js"></script>
- <!-- 附件上传 -->
- <script type="text/javascript" src="<%=path%>/scripts/business/am/org/maintenance/orgSel.js"></script>
-
- <script type="text/javascript" src="<%=path%>/scripts/business/em/response/emergencyResponse/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 planMsg = "";
- var isLastId365 = "";//关联ID
-
- $(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();
-
-
- 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",valuetype:"showunit_0003",selectedMulti : true,loadId_in:CorpArea,loadCorp:"loadCorp",setMulti : {
- "Y" : "s",
- "N" : ""
- }});
- if(fd_id.length>0 && is_adjst == 5){ //修改表单
- $(".titleShow").text("修改响应启动通知单");
- $('#chongzhi2').show();
-
- $("#PREV_EW_ID").initYewuSelect("365","FD_OBJECTID","EARLY_WARNING_ID","IS_DEL=0 and IS_SEND = 5 and is_alert='1' and RELEASE_UNIT='"+CorpArea+"' and WRITER_ID='"+realName_ID+"' ");//上次响应单号
- $('#CURRENT_ER_LEVEL_365').initCanstSelect('BM_REPONSELEVEL'); //本次响应级别
- $('#PREV_ER_LEVEL_365').initCanstSelect('BM_REPONSELEVEL'); //上次响应级别
-
- 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');
-
- isLastId365 = data.IS_LAST_ID_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);
- $("#WRITER_365").val(data.WRITER_365); //填报人
- $("#yjbh").setValue(data.MEET_EMERGENCIES_PLAN_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');
- }
- }
- if(data.WETHER_EW_ADJUST_365 == 1){ //是否响应调整 0非响应调整1、是响应调整
- $("#WETHER_EW_ADJUST").attr("checked","checked");
- }else{
- $("#WARNING_PROPERTY").attr("checked","checked"); //是否初次发布 1是初次发布 2是非初次发布(即调整)
- }
- dateTitle = data.PLAN_TYPE_ID_365_SHOW;
- if("1"==data.WETHER_EW_ADJUST_365){
- mouse1(dateTitle);
- }else{
- mouse(dateTitle,1);
- }
- if(data.EARLY_WARNING_PROPERTY_365==50){
- //经过调整的记录,在修改页面加载上次响应编号和响应级别
- $("#PREV_EW_ID").setValue(data.IS_LAST_ID_365); //上次响应单号
- $("#PREV_EW_ID").render();
- }
- $("#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;
- console.log(yjNum);
- yjNum = yjNum.split("-");
- mouse(yjNum[0]);//调整修改页面出不来
- $("#is_chuci").val(yjNum[1]);
- $("#fbYear").val(yjNum[2]);
- $("#yj_num").setValue(yjNum[3]);
- });
- }else{//---------------------------------------------新增
- $(".titleShow").text("响应启动通知单");
- $("#chongzhi").show();//显示重置按钮
- $("#PREV_EW_ID").initYewuSelect("365","FD_OBJECTID","EARLY_WARNING_ID","IS_DEL=0 and IS_SEND = 5 and is_alert='1' and RELEASE_UNIT='"+CorpArea+"' and WRITER_ID='"+realName_ID+"' ");//上次响应单号
- $('#CURRENT_ER_LEVEL_365').initCanstSelect('BM_REPONSELEVEL'); //本次响应级别
- $('#PREV_ER_LEVEL_365').initCanstSelect('BM_REPONSELEVEL'); //上次响应级别
-
- $("#WARNING_PROPERTY").attr("checked","checked"); //响应性质--默认勾选初次
- $("#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);
- $("#RELEASE_UNIT_365").val(CorpArea);//发布单位
- $("#WRITER_365").val(realName); //填报人
- $("#WRITER_ID_365").val(realName_ID); //填报人ID
- }
-
- $.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_ER_LEVEL_365").bind("change",function(){
- //响应级别
- var level = $("#CURRENT_ER_LEVEL_365").attr("relText");
- if(level == undefined || level == '请选择'){
- level = '';
- }else{
- 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);
- console.log(nowYear);
- });
-
- /* $("#WARNING_PROPERTY").on("click",function(){//用于修改响应编号》》选择初次发布
- var isChecked = $(this).attr("checked");
- if(isChecked == "checked"){
- mouse("F",3);
- }
- });
-
- $("#WETHER_EW_ADJUST").on("click",function(){//用于修改响应编号》》选择调整
- $("#titleShow_red").text("响应调整通知单");
-
- var isChecked = $(this).attr("checked");
- if(isChecked == "checked"){
- mouse("T",4);
- }
- }); */
-
- $("#WARNING_PROPERTY").on("change",function(){//用于修改响应编号》》选择初次发布
- $("#titleShow_red").text("响应启动通知单");
- var isChecked = $(this).attr("checked");
- if(isChecked == "checked"){
- mouse("F",3);//如果响应调整被勾选-----2
- //$(".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").attr("checked",false);
- }else{
- mouse("T",4);
- //$(".titleShow").text("响应调整通知单");
- $("#PREV_EW_LEVEL").attr("disabled",false);//上次响应级别解除禁用
- $("#PREV_EW_LEVEL").render();
- $("#PREV_EW_ID").attr("disabled",false);//上次响应单号解除禁用
- $("#PREV_EW_ID").render();
- $("#WETHER_EW_ADJUST").attr("checked",true);
- }
- });
-
- $("#WETHER_EW_ADJUST").on("change",function(){//用于修改响应编号》》选择调整
- $("#titleShow_red").text("响应调整通知单");
-
- var isChecked = $(this).attr("checked");
- if(isChecked == "checked"){
- mouse("T",4);
- //$(".titleShow").text("响应调整通知单");
- $("#PREV_EW_LEVEL").attr("disabled",false);//上次响应级别解除禁用
- $("#PREV_EW_LEVEL").render();
- $("#PREV_EW_ID").attr("disabled",false);//上次响应单号解除禁用
- $("#PREV_EW_ID").render();
- $("#WARNING_PROPERTY").attr("checked",false);
- }else{
- mouse("F",3);//如果响应调整被勾选-----2
- //$(".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();
- $("#WARNING_PROPERTY").attr("checked",true);
- }
- });
- });
- //获得当前系统时间
- 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 formReset(){
- $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/em/response/emergencyResponse/WarningAddEdit.jsp?fd_id=&is_adjst=4");
- }
- //修改重置方法
- function formReset2(){
- $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/em/response/emergencyResponse/WarningAddEdit.jsp?fd_id="+ fd_id+"&is_adjst=5");
-
- }
- //响应编号--响应名称失去焦点时生成----初次
- function mouse(thing,num){//num的值【1:说明是预案的改变进来的】【2:说明是发布时间的改变进来的】【3:说明是选择了初次发布进来的】【4:说明是选择了调整进来的】
- //响应级别
- var level = $("#CURRENT_ER_LEVEL_365").attr("relText");
- if(level == undefined || level == '请选择'){
- level = '';
- }else{
- level = level+"响应";
- }
- if(thing == undefined || thing == '请选择'){
- thing = '';
- }
- //响应名称
- //$("#EARLY_WARNING_NAME_365").val(thing+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!=""?thing:year;
- }
-
- var params = {
- companyId : CorpArea,
- year : year,
- //isAdjust : 'F',
- isAdjust : isForT,
- isAlert:'1',
- 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){
- //响应级别
- var level = $("#CURRENT_ER_LEVEL_365").attr("relText");
- if(level == undefined || level == '请选择'){
- level = '';
- }else{
- level = level+"响应";
- }
- if(thing == undefined || thing == '请选择'){
- thing = '';
- }
- //响应名称
- var year = allGetServerTime().getFullYear();
- var params = {
- companyId : CorpArea,
- year : year,
- isAdjust : 'T',
- isAlert:'1'
- };
- var url = $.pathname()+ '/ws/response/responseService/getAlertresponse';
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- dataType : 'json',
- data : params,
- success : function(data) {
- $("#NUM_368").val(data);
- /**************************20160615 ljp 根据需求,当有通知单不走系统时,会出现跳编号情况,这时候,查出当前最大编号,往后推十个号供选择**********************************/
- data = parseInt(data)-1;
- var dataJson = {"list":[]};
- for (var i = 0; i < 10; i++) {
- data++;
- alertNum = thing + "-" + "T" + "-" + 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_ER_LEVEL_365").setValue("请选择");//上次响应级别重置
- //mouse();
- $("#PREV_ER_LEVEL_365").attr("disabled",true);//上次响应级别的禁用
- $("#PREV_ER_LEVEL_365").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_ER_LEVEL_365").attr("disabled",false);//上次响应级别的解除禁用
- $("#PREV_ER_LEVEL_365").render();
- $("#PREV_EW_ID").attr("disabled",false);//上次响应级别的解除禁用
- $("#PREV_EW_ID").render();
- }
- }); */
-
- $("#PREV_EW_ID").bind("change",function(){
- var val=$(this).attr("relValue");
- //alert(val);
- if(val!=''){
- /* $.ajax({
- url : $.pathname() + '/ws/duty/DutyRecordsService/getlastLevel0',
- type : 'post',
- timeout : 15000,
- data:val,
- dataType : 'text',
- success : function(result){
- var lastLevel = result;
- //alert(lastLevel);
- $("#PREV_ER_LEVEL_365").setValue(lastLevel);
- },
- error : function(e){
- top.Dialog.alert("访问服务失败!");
- }
- }); */
- var name = $(this).attr("reltext");
- top.Dialog.confirm("是否调整"+name,function(){//点击确定--弹出调整页签
- top.createActiveTab("响应调整",$.pathname()+ "/page/business/em/response/emergencyResponse/WarningAdjust.jsp?fd_id="+ val+"&is_adjst=1");
- });
- //$('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/em/response/emergencyResponse/WarningAdjust.jsp?fd_id="+ val+"&is_adjst=1");
-
- };
- });
- });
- /*******自动输入响应/响应名称*************/
- function inputEarlyWarningName(){
- var yjbh = $("#yjbh").attr("reltext");
- var jb = $("#CURRENT_ER_LEVEL_365").attr("reltext");
- yjbh = !yjbh?"":yjbh;
- jb = !jb?"":jb+"响应";
- $("#EARLY_WARNING_NAME_365").val(yjbh+jb);
- }
- 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="返回" 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 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 name="RELEASE_UNIT_365" id="RELEASE_UNIT_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="EARLY_WARNING_AREA_ID_365" name="EARLY_WARNING_AREA_ID_365" type="hidden"/>
- <input id="WRITE_TIME_365" name="WRITE_TIME_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="1"/>
- <input id="WRITER_365" name="WRITER_365" type="hidden"/>
- <input type="hidden" name="WRITER_ID_365" id="WRITER_ID_365"/>
- <input type="hidden" name="WRITE_DEPT_365" id="WRITE_DEPT_365"/>
- <input type="hidden" name="EVENT_ID_365" id="EVENT_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" 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 value="重置" onclick="formReset();" id="chongzhi" style="display: none;" type="button"/>
- <input value="重置" onclick="formReset2();" id="chongzhi2" style="display: none;" 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>
- <!-- <label id="RELEASE_UNIT_365"></label> -->
- <!-- <div class="selectTree" selWidth="" id="WRITE_DEPT_365" name="WRITE_DEPT_365" ></div> -->
- </div><!-- <label id="unitId"></label> -->
- </td>
- <td align="right" style="padding-right: 60px;">签发人:<label id='WRITER_365_SHOW1'></label></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" maxLength="50" class="validate[required,length[0,50],custom[illegalLetter]]" 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" readonly="readonly" 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">
- <!-- <input type="text" class="validate[required]" name="yj_num" id="yj_num" style="width: 750px;"/> -->
- <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>
- <td align="right" width="120px" class="class_color"><span class="star">*</span>响应范围:</td><!-- class="validate[required]" -->
- <td colspan="2"><div style="width: 826px;" id="EARLY_WARNING_AREA_NAME_365" allclickset="1" ></div></td>
- </tr>
- <tr>
- <td align="right" width="120px" class="class_color">响应性质:</td>
- <td width="420px">
- <input type="checkbox" id="WARNING_PROPERTY"/><label for="WARNING_PROPERTY">初次发布</label>
- </td>
- <td width="420px">
- <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 selWidth="246" disabled="true" editable=false id="PREV_EW_ID" name="PREV_EW_ID_365" prompt="请选择" ></select>
- </div>
- </td>
- </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_ER_LEVEL_365" class="validate[required]" id="CURRENT_ER_LEVEL_365" selAlign="right" prompt="请选择" selWidth="300"></select>
- </div>
- </td>
- <td width="420px" align="left">
- <div style="float:left"> <span>上次:</span></div>
- <div style="float:left"><select disabled="true" name="PREV_ER_LEVEL_365" id="PREV_ER_LEVEL_365" selAlign="right" prompt="请选择" selWidth="290"></select>
- </div>
- </td>
- </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>
- </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="1"/>
- <input type="hidden" id="PLAN_TYPE_ID_368" name="PLAN_TYPE_ID_368" value="-1"/>
-
- </form>
- </div>
- </body>
- </html>
|