123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- //2015-09-29 可以取到父页面的预案ID
- var sub_fd_id ="";
- //取预案PLAN_BIAOZHI字段,如果该字段等于0,说明该预案没有修订版本。没有绑定过任何条件。如果不等于0,则该预案有过修订版本。可能存在绑定过的条件。
- var PLAN_BIAOZHI="";
- //取页面传过来的预案主键ID
- sub_fd_id = parent.fd_id;
- PLAN_BIAOZHI = parent.PLAN_BIAOZHI;
-
- //取父页面传过来的预案细化类型
- var SUB_BM_YAXHLB = "";
- SUB_BM_YAXHLB = parent.BM_YAXHLB;
-
- //给页面赋值细化类型
- var tempValue = "";
- //判断细化类型
- /**
- * 细化类型
- * 4、人身事故
- * 5、大面积停电事件
- * 6、设备事故
- * 7、电厂大坝厂房事故
- * 8、环境污染
- * 9、防风防汛
- * 10、地震灾害
- * 11、低温雨雪冰冻灾害
- * 12、电力供应及客户服务
- * 13、生产场所防恐怖袭击
- * 14、突发性群体事件
- * 15、突发新闻事件
- * 16、涉外突发事件
- * 17、网络与信息安全
- * 18、突发公共卫生
- * **/
- if(SUB_BM_YAXHLB=="4"){
- tempValue="4_7_1";
- }else if(SUB_BM_YAXHLB=="5"){
- tempValue="5_7_1";
- }else if(SUB_BM_YAXHLB=="6"){
- tempValue="6_7_1";
- }else if(SUB_BM_YAXHLB=="7"){
- tempValue="7_7_1";
- }else if(SUB_BM_YAXHLB=="8"){
- tempValue="8_7_1";
- }else if(SUB_BM_YAXHLB=="9"){
- tempValue="9_7_1";
- }else if(SUB_BM_YAXHLB=="10"){
- tempValue="10_7_1";
- }else if(SUB_BM_YAXHLB=="11"){
- tempValue="11_7_1";
- }else if(SUB_BM_YAXHLB=="12"){
- tempValue="12_7_1";
- }else if(SUB_BM_YAXHLB=="13"){
- tempValue="13_7_1";
- }else if(SUB_BM_YAXHLB=="14"){
- tempValue="14_7_1";
- }else if(SUB_BM_YAXHLB=="15"){
- tempValue="15_7_1";
- }else if(SUB_BM_YAXHLB=="16"){
- tempValue="16_7_1";
- }else if(SUB_BM_YAXHLB=="17"){
- tempValue="17_7_1";
- }else if(SUB_BM_YAXHLB=="18"){
- tempValue="18_7_1";
- }else if(SUB_BM_YAXHLB=="21"){
- tempValue="21_7_1";
- }else if(SUB_BM_YAXHLB=="22"){
- tempValue="22_7_1";
- }else if(SUB_BM_YAXHLB=="23"){
- tempValue="23_7_1";
- }else if(SUB_BM_YAXHLB=="24"){
- tempValue="24_7_1";
- }
- var temp1="";
-
- if(PLAN_BIAOZHI=="0"){
- temp1 = sub_fd_id;
- }else{
- temp1 =PLAN_BIAOZHI;
- }
-
- $(function(){
- $("#titlename").html(parent.titlename);
-
- var url = $.pathname()
- + "/ws/sendmenu/SendMsgService/PlanInfo";
- var params = {
- file_id : sub_fd_id,
- grade_type:tempValue,
- };
- $.ajax({
- url : url,
- type : 'post',
- timeout : 12000,
- data : params,
- dataType : 'json',
- success : function(data) {
- /***********************一级响应****************************/
- var units1="";
- var units2="";
- var units3="";
- var units4="";
- var dataValue = JSON.stringify(data);
- if(dataValue.length>13){
- var FRIST_GRADE = data.rows[0].FRIST_GRADE;
- var strs= new Array(); //定义一数组
- strs=FRIST_GRADE.split("@"); //字符分割
-
- var strs1= new Array(); //定义一数组 存放部门的
- strs1 = strs[0];
-
- var strs2= new Array(); //定义一数组 存放部门的
- strs2 = strs1.split(",");
- if(strs2.length>0){
-
- for(var i=0; i<strs2.length; i++){
- if(strs2[i]=="112"){
- units1+="安全监察部" + ";";
- }if(strs2[i]=="113"){
- units1+="系统运行部" + ";";
- }if(strs2[i]=="114"){
- units1+="国际部" + ";";
- }if(strs2[i]=="115"){
- units1+="生产设备管理部" + ";";
- }if(strs2[i]=="116"){
- units1+="信息部" + ";";
- }if(strs2[i]=="117"){
- units1+="市场营销部" + ";";
- }if(strs2[i]=="118"){
- units1+="办公厅" + ";";
- }
- }
- $("#zbfw1").html(units1);
- if(strs[1]=="1"){
- $("#zbfs1").html("电话值班");
- }else if(strs[1]=="2"){
- $("#zbfs1").html("在岗值班");
- }else if(strs[1]=="3"){
- $("#zbfs1").html("在岗集中值班");
- }
-
- }
- /***********************二级响应****************************/
- var SECOND_GRADE = data.rows[0].SECOND_GRADE;
- var strs= new Array(); //定义一数组
- strs=SECOND_GRADE.split("@"); //字符分割
-
- var strs1= new Array(); //定义一数组 存放部门的
- strs1 = strs[0];
-
- var strs2= new Array(); //定义一数组 存放部门的
- strs2 = strs1.split(",");
- if(strs2.length>0){
-
- for(var i=0; i<strs2.length; i++){
- if(strs2[i]=="112"){
- units2+="安全监察部" + ";";
- }if(strs2[i]=="113"){
- units2+="系统运行部" + ";";
- }if(strs2[i]=="114"){
- units2+="国际部" + ";";
- }if(strs2[i]=="115"){
- units2+="生产设备管理部" + ";";
- }if(strs2[i]=="116"){
- units2+="信息部" + ";";
- }if(strs2[i]=="117"){
- units2+="市场营销部" + ";";
- }if(strs2[i]=="118"){
- units2+="办公厅" + ";";
- }
- }
- $("#zbfw2").html(units2);
- if(strs[1]=="1"){
- $("#zbfs2").html("电话值班");
- }else if(strs[1]=="2"){
- $("#zbfs2").html("在岗值班");
- }else if(strs[1]=="3"){
- $("#zbfs2").html("在岗集中值班");
- }
- }
-
-
- /***********************三级响应****************************/
- var THRID_GRADE = data.rows[0].THRID_GRADE;
- var strs= new Array(); //定义一数组
- strs=THRID_GRADE.split("@"); //字符分割
-
- var strs1= new Array(); //定义一数组 存放部门的
- strs1 = strs[0];
-
- var strs2= new Array(); //定义一数组 存放部门的
- strs2 = strs1.split(",");
- if(strs2.length>0){
-
- for(var i=0; i<strs2.length; i++){
- if(strs2[i]=="112"){
- units3+="安全监察部" + ";";
- }if(strs2[i]=="113"){
- units3+="系统运行部" + ";";
- }if(strs2[i]=="114"){
- units3+="国际部" + ";";
- }if(strs2[i]=="115"){
- units3+="生产设备管理部" + ";";
- }if(strs2[i]=="116"){
- units3+="信息部" + ";";
- }if(strs2[i]=="117"){
- units3+="市场营销部" + ";";
- }if(strs2[i]=="118"){
- units3+="办公厅" + ";";
- }
- }
- $("#zbfw3").html(units3);
- if(strs[1]=="1"){
- $("#zbfs3").html("电话值班");
- }else if(strs[1]=="2"){
- $("#zbfs3").html("在岗值班");
- }else if(strs[1]=="3"){
- $("#zbfs3").html("在岗集中值班");
- }
- }
-
-
- /***********************三级响应****************************/
- var FOURTH_GRADE = data.rows[0].FOURTH_GRADE;
- var strs= new Array(); //定义一数组
- strs=FOURTH_GRADE.split("@"); //字符分割
-
- var strs1= new Array(); //定义一数组 存放部门的
- strs1 = strs[0];
-
- var strs2= new Array(); //定义一数组 存放部门的
- strs2 = strs1.split(",");
- if(strs2.length>0){
-
- for(var i=0; i<strs2.length; i++){
- if(strs2[i]=="112"){
- units4+="安全监察部" + ";";
- }if(strs2[i]=="113"){
- units4+="系统运行部" + ";";
- }if(strs2[i]=="114"){
- units4+="国际部" + ";";
- }if(strs2[i]=="115"){
- units4+="生产设备管理部" + ";";
- }if(strs2[i]=="116"){
- units4+="信息部" + ";";
- }if(strs2[i]=="117"){
- units4+="市场营销部" + ";";
- }if(strs2[i]=="118"){
- units4+="办公厅" + ";";
- }
- }
- $("#zbfw4").html(units4);
- if(strs[1]=="1"){
- $("#zbfs4").html("电话值班");
- }else if(strs[1]=="2"){
- $("#zbfs4").html("在岗值班");
- }else if(strs[1]=="3"){
- $("#zbfs4").html("在岗集中值班");
- }
- }
- }
- //负责人1234
- $('#fuzeren1').html(data.rows[0].FUZEREN1);
- $('#fuzeren2').html(data.rows[0].FUZEREN2);
- $('#fuzeren3').html(data.rows[0].FUZEREN3);
- $('#fuzeren4').html(data.rows[0].FUZEREN4);
-
- //其他人员1234
- $('#qitarenyuan1').html(data.rows[0].QITARENYUAN1);
- $('#qitarenyuan2').html(data.rows[0].QITARENYUAN2);
- $('#qitarenyuan3').html(data.rows[0].QITARENYUAN3);
- $('#qitarenyuan4').html(data.rows[0].QITARENYUAN4);
- },
- error : function(e) {
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- });
-
- $.messager=top.Dialog;
|