12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247 |
- var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
- var parent_id = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- var parent_ids = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
- //登陆用户的单位名称
- var corp_name = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
- $(function(){
-
- // getShareNum();
- // getXiubianNum();
- getChildInfo();
- /** 绑定更多的按钮点击事件 */
- $more = $("#more"); // 更多按钮
- $more.bind('click', function() {
- more();
- });
-
- $searchButt = $("#searchButt");// 更多查询按钮
- $searchButt.live('click', function() {
- searchHandler();
- });
- //清空条件
- $("#emptyCondition").bind("click",function(){
- $("#PLAN_NAME_214").val("");
- var $selConditions = $("#selectConditions");
- var $selCon = $selConditions.find(".selectCondi");
- for(var i=0;i<$selCon.length;i++){
- $selCon[i].click();
- }
- });
- $searchOne = $("#searchOne");//查询图标绑定查询事件
- $searchOne.bind('click', function() {
- searchHandler();
- });
- });
- //造数据用的测试方法
- function zaoshuju(){
- alert(111);
- var url = $.pathname() + '/ws/PlanHuiZong/ContingencyPlanHuiZong/zaoshuju/';
- var params = {
- id : parent_id,
- };
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- data : params,
- dataType : 'json',
- success : function(data){
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
-
- //导出
- function daochu(){
- var rows = g.getSelectedRows();
- var rowsLength = rows.length;
- if (rowsLength == 0) {
- top.Dialog.confirm("是否导出所有的应急预案信息?|确定", function() {
- excelExport(214,loadParams,"应急预案","CHANGE_TYPE,PLAN_BIAOZHI,FD_OBJECTID,IS_DEL,PLAN_ID,UPDATEDATE,REMARK1,COLUMN_1,PLAN_STAT,REPORT_COMP_ID,PLAN_STAT1,PLAN_STURTS,UPLOAND_FLAG,ENTERING_TEL,PLAN_VERSION_REMARK,PLAN_SHARE,ENTERING");});
- return;
- }
- var ids = "";
- for ( var i = 0; i < rowsLength; i++) {
- ids += "'"+rows[i].FD_OBJECTID214+"'" + ",";
- }
- var temp = ids.substring(0,ids.length-1);
- var condition = " IS_DEL='0' ";
- condition += " AND FD_OBJECTID IN (" + temp + ") " ;
- var sql = {
- "listId" :'214' ,
- "condition" : condition,
- direction:'DESC',
- sort: 'UPDATEDATE'
- };
- excelExport(214,sql,"应急预案","CHANGE_TYPE,PLAN_BIAOZHI,FD_OBJECTID,IS_DEL,PLAN_ID,UPDATEDATE,REMARK1,COLUMN_1,PLAN_STAT,REPORT_COMP_ID,PLAN_STAT1,PLAN_STURTS,UPLOAND_FLAG,ENTERING_TEL,PLAN_VERSION_REMARK,PLAN_SHARE,ENTERING");
- }
- //后台返回待修编的预案个数
- function getXiubianNum(){
-
- //取系统时间:年月日时分秒
- var date = allGetServerTime();
- var seperator1 = "";
- var seperator2 = "";
- var month = date.getMonth() + 1;
- var strDate = date.getDate();
- if (month >= 1 && month <= 9) {
- month = "0" + month;
- }
- if (strDate >= 0 && strDate <= 9) {
- strDate = "0" + strDate;
- }
-
- var time = date.getFullYear() + seperator1 +"-" + month + "-"+seperator1 + strDate;
-
-
- var url = $.pathname() + '/ws/PlanHuiZong/ContingencyPlanHuiZong/getXiubianNum/';
- var params = {
- id : parent_id,
- time:time
- };
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- data : params,
- dataType : 'json',
- success : function(data){
- var num = data.rows[0].NUM;
- appendTwoDiv(num);
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
-
- }
-
-
- //后台返回共享中的预案个数
- function getShareNum(){
- var url = $.pathname() + '/ws/PlanHuiZong/ContingencyPlanHuiZong/getShareNum/';
- var params = {
- id : parent_id,
- time:time
- };
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- data : params,
- dataType : 'json',
- success : function(data){
- var num = data.rows[0].NUM;
- appendOneDiv(num);
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
-
- }
-
- var conditionData2="";
-
- //String sql ="select DEPT_ID ,DEPT_NAME from SYS_DEPARTMENT where dept_id in(select parent_id from sys_department where dept_id='"+id+"') or PARENT_ID='"+id+"'and DEPT_TYPE='CORP' and (DEPT_NAME like '%供电局%' or DEPT_NAME like '%供电分局%' or DEPT_NAME ='广东电网有限责任公司' or DEPT_NAME like '%广西电网%' or DEPT_NAME like '%海南电网%' or DEPT_NAME like '%云南电网%' or DEPT_NAME like '%贵州电网%') order by sort ASC" ;
-
- //取下级单位
- function getChildInfo(){
- var url = $.pathname() + '/ws/PlanHuiZong/ContingencyPlanHuiZong/getChidInfo/';
- var params = {
- id : parent_id,
- parentID:parent_ids
- };
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- data : params,
- dataType : 'json',
- success : function(data){
- conditionData2 = JSON.stringify(data);
- conditionData2 = conditionData2.replace(/\\\"/g,"\"");
- conditionData2 = conditionData2.replace(/\"{/g,"{");
- conditionData2 = conditionData2.replace(/}\"/g,"}");
- var test = eval("("+conditionData2+")");
- if(conditionData2!='{"list":[{"name":"查询单位","className":"UNITS","equalType":"equal","list":[]}]}'){
- test.dept.list[0].equalType = "equal";
- conditionData.list.push(test.dept.list[0]);
- }
- /* if(parent_id!="1"){
- conditionData.list.push(test1.list[0]);
- }*/
-
-
-
- createConditionsDom(conditionData);
- $(".item").unbind("click").bind("click",bindSelectOne);
-
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
- var g;
- /**定义变量**/
- var getUser_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id()+""; //登录人ID
-
-
-
- //列表默认显示上级单位发布、下级单位上报的信息
- //var condition = "IS_DEL='0' and (PLAN_STAT='1' or PLAN_STAT1='1' or REMARK1='"+ getUser_id +"') and (UNITS='"+parent_id+"' or units='"+parent_ids+"' or UNITS IN(SELECT A.ID FROM EMC_AM_ORG_DEPARTMENT_TEST A WHERE A.PARENT_ID='"+parent_id+"' ) and PLAN_STAT1='1')";
- //列表默认显示本级单位的数据。
- var condition = "IS_DEL='0' and PLAN_TYPE = '103' and (PLAN_STAT='1' or PLAN_STAT1='1' or REMARK1='"+ getUser_id +"') and UNITS='"+parent_id+"'";
- //var condition = "IS_DEL='0' and ( REMARK1='"+ getUser_id +"' or (PLAN_STAT='1' and (UNITS='"+parent_id+"' or UNITS='"+parent_ids+"')) or (PLAN_STAT1='1' and UNITS IN(SELECT A.ID FROM EMC_AM_ORG_DEPARTMENT_TEST A WHERE A.PARENT_ID='"+parent_id+"')))";
- //列表加载参数
- var loadParams = {
- "listId" : '214',
- "condition" : condition,
- direction:'DESC',
- sort: 'UPDATEDATE'
- };
-
- function initComplete(){
- $("body").eq(0).showLoading();
- /**
- * 工具条
- */
- var roleCons = roleButtonArr();
-
- var toolBarOpt1 = {
- items:[
- {text: '新增', click: "addUnit", iconClass: 'add1_tem',id:"rcxz"},
- {text: '删除', click: "deleteUnit", iconClass: 'delete_tem',id:"rcsc"},
- {text: '修改', click: "updateUnit", iconClass: 'update_tem',id:"rcxg"},
- {text: '绑定', click: "bangDing", iconClass: 'binding_tem',id:"rcbd"},
- {text: '撤销', click: "noPublish", iconClass: 'release_tem',id:"10215"}
- ],
-
- roleCons:roleCons
-
- };
- /**
- * 树形列
- */
- var grid_option1 = {
- columns: [
- { display: '预案名称', name: 'PLAN_NAME_214', align: 'center', width: "12%",isPrimaryKey:true,
- // render : function(rowdata, value) {
- // return '<a href="javascript:void(0)" '
- // + 'onclick=jumpPage("'
- // + rowdata.FD_OBJECTID214+'","'+rowdata.PLAN_BIAOZHI_214+'","'+ rowdata.PLAN_REFINE_CATEGORY_214+'","'+ rowdata.PLAN_NAME_214 +'","'+ rowdata.PLAN_TYPE_214
- // +'")>'+ rowdata.PLAN_NAME_214 +'</a>';
- // }
- render : function(rowdata, rowindex, value, column) {
- return "<a href='javascript:;' style='width:100%;height:100%;display:block' title='" + value + "' onclick='openDetail(" + rowindex + ")'>" + value + "</a>";
- }
- },
- { display: '预案编码', name: 'PLAN_NO_214', align: 'center', width: '10%',showTitle:true},
- { display: '预案类型', name: 'PLAN_TYPE_214_SHOW', align: 'center', width: '10%',showTitle:true},
- { display: '突发事件类型', name: 'BYSUNESS_TYPE_214_SHOW', align: 'center', width: '10%',showTitle:true},
-
- // { display: '变更类别', name: 'CHANGE_TYPE_214_SHOW', align: 'center' , width: '10%',showTitle:true},
- //{ display: '适用范围', name: 'SYFW_214', align: 'center', width: '8%',showTitle:true},
- { display: '归口部门', name: 'INS_UNITS_214_SHOW', align: 'center', width: '8%',showTitle:true},
- { display: '颁布日期', name: 'TAKE_DATE_214', align: 'center' , width: '8%' ,showTitle:true},
- { display: '实施日期', name: 'ISSUE_DATE_214', align: 'center' , width: '8%' ,showTitle:true},
- { display: '所属单位', name: 'UNITS_214_SHOW', align: 'center', width: '12%',showTitle:true },
- { display: '简要说明', name: 'SYFW_214', align: 'center', width: '14%',showTitle:true},
- { display: '操作', isAllowHide: false, align: 'center', width:'8%',
- render: function (rowdata, rowindex, value, column){
- //判断是否已经发布。取发布的状态,如果已经发布为“1”;未发布为“0”
- var fabu='';//fabu
- if(rowdata.PLAN_STAT_214=="1"){
- fabu = '<span class="fashang_07 hand" title="发布" onclick="fabu1()"></span>';
- }else{
- fabu = '<span class="fashang_06 hand" title="发布" onclick="fabu(' + rowindex + ')"></span>';
- }
- //判断是否已经发布。取发布的状态,如果已经上报为“1”;未上报为“0”fashang_09fashang_plan
- var shangbao='';
- if(rowdata.PLAN_STAT1_214=="1"){
- shangbao = '<span class="sendup_templan hand" title="上报" onclick="shangbao1(' + rowindex + ')"></span>';
- }else{
- shangbao = '<span class="fashang_plan hand" title="上报" onclick="shangbao(' + rowindex + ')"></span>';
- //shangbao = '<span class="fashang_plan hand" title="上报" onclick="fillShangbao(' + rowindex + ')"></span>';
- }
- //判断是否已经共享。取共享的状态,如果已经共享为“1”;未共享为“0”
- var gongxiang='';
- if(rowdata.PLAN_SHARE_214=="1"){
- gongxiang = '<span class="share_07 hand" title="撤销共享" onclick="gongxiang1(' + rowindex + ')"></span>';
- }else{
- gongxiang = '<span class="share_03 hand" title="共享" onclick="gongxiang(' + rowindex + ')"></span>';
- }
- return fabu + shangbao + gongxiang;
- }
- }
- ],
- rownumbers : true,
- checkbox : true,
- pageSize : 10,
- percentWidthMode : true
- };
- var options1={
- url :'/nwyj/ws/crud/CRUDService/queryQui',
- params:loadParams,
- height: '100%',
- width:"100%",
- gridOptions:grid_option1,
- singleRecodeOptions:{a:"aa"},
- paperOpration:{showInput:"true"},
- toolBarOptions:toolBarOpt1
- };
- g=gridAndSingleRecode=$("#maingrid").quickgridAndSingleRecode(options1);
- $("body").eq(0).hideLoading();
- }
-
- function showImportDialog(){
- window.location.href="ContingencyPlan-import.jsp";
- };
-
- //历史版本
- function showVersion(){
- var rows = g.getSelectedRows();
- if(rows.length==0){
- top.Dialog.alert("请选择一条记录");
- return;
- }
- if(rows.length>1){
- top.Dialog.alert("只能选择一条记录");
- return;
- }
- //上一个版本的预案ID
-
- var fd_id = rows[0].PLAN_BIAOZHI_214;
- var fd_id1 = rows[0].FD_OBJECTID214;
-
- $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/am/contingencyPlan/PlanVersion.jsp?"+fd_id+"?"+fd_id1);
- }
-
-
- //预案共享
- function publicShare(){
-
- var rows = g.getSelectedRows();
- var rowsLength = rows.length;
- if (rowsLength == 0) {
- top.Dialog.alert("请选中要分享的记录!");
- return;
- }
- var REMARK1 = rows[0].REMARK1_214;
- if(REMARK1!=getUser_id){
- top.Dialog.alert("只能分享自己上传的预案!");
- return;
- }
-
-
-
- var ids = "";
- var sturtssb = "";
- for ( var i = 0; i < rowsLength; i++) {
- ids += rows[i].FD_OBJECTID214 + ",";
- sturtssb += rows[i].PLAN_STAT_214 + ",";
- if(rows[i].PLAN_STAT_214!="1"){
- if(rowsLength==1){
- top.Dialog.alert("您选中的记录未发布!");
- }else{
- top.Dialog.alert("您选中的记录有未发布的!");
- }
- return;
- }
- }
-
- $("#BUSINE_ID_217").val(ids);
-
- var diag = new top.Dialog();
- diag.Title = "文件共享";
- diag.URL = $.pathname() + '/page/business/am/public/readDept.jsp';
- diag.Width = 700;
- diag.Height = 500;
- diag.Top = "80%";
- diag.Left = "50%";
- diag.ShowButtonRow=true;
- diag.ButtonAlign = 'center';
- diag.OkButtonText="确 定";
- diag.OKEvent = function(){
- Validate(diag);
- };
- diag.show();
- }
-
- function Validate(diag){
- var zhh="";//总指挥
- var fzhh="";//副总指挥
- var yjbzr="";//应急办主任
- var yjbfzr="";//应急办副主任
- var yjbcy="";//应急办副成员
- var zyglry="";//专业部门管理人员
-
- var getUser_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id()+""; //登录人ID
- //分享单位的ID deptId
- var time1=diag.innerFrame.contentWindow.$("#time1").val();
- var time2=diag.innerFrame.contentWindow.$("#time2").val();
-
-
- //获取应急角色被勾选的值
- if(diag.innerFrame.contentWindow.document.getElementById("football-1").checked){
- //选中取值(可以取到这个值)
- zhh = "R002105430201";
- }else{
- zhh = "";
- }
-
- if(diag.innerFrame.contentWindow.document.getElementById("football-2").checked){
- //选中取值(可以取到这个值)
- fzhh = "R002105430202";
- }else{
- zyglry = "";
- }
-
- if(diag.innerFrame.contentWindow.document.getElementById("football-3").checked){
- //选中取值(可以取到这个值)
- yjbzr = "R002105430203";
- }else{
- yjbzr = "";
- }
-
- if(diag.innerFrame.contentWindow.document.getElementById("football-4").checked){
- //选中取值(可以取到这个值)
- yjbfzr = "R002105430204";
- }else{
- yjbfzr = "";
- }
-
- if(diag.innerFrame.contentWindow.document.getElementById("football-5").checked){
- //选中取值(可以取到这个值)
- yjbcy = "R002105430205";
- }else{
- yjbcy = "";
- }
-
- if(diag.innerFrame.contentWindow.document.getElementById("football-6").checked){
- //选中取值(可以取到这个值)
- zyglry = "R002105430206||R002105430207||R002105430208||R002105430209||R002105430210||R002105430211||R002105430212||R002105430213||R002105430214";
- }else{
- zyglry = "";
- }
-
- //被分享查看的人
- var RECEIVE_MAN = zhh + "||" + fzhh + "||" + yjbzr + "||" + yjbfzr + "||" + yjbcy + "||" + zyglry;
-
- //分享的单位 deptId
-
- //获取zTree对象
- var zTree = diag.innerFrame.contentWindow.$.fn.zTree.getZTreeObj("tree-1");
- //得到选中的数据集
- var checkedNodes = zTree.getCheckedNodes(true);
- if(time1==""||time2==""){
- $.messager.alert('请选择分享的起始时间!');
- return;
- }
- if(time1>time2){
- $.messager.alert('请选择正确的分享起始时间!');
- return;
- }
- if(checkedNodes==""){
- $.messager.alert('请选择要申请查看的单位!');
- return;
- }
- var compValue="";
- //var compValue2="";
- for(var i = 0; i < checkedNodes.length; i++){
- //机构名称
- compValue += checkedNodes[i].id + ",";
- //compValue2 += checkedNodes[i].name+",";
- }
- var compid = compValue.substring(0,compValue.length-1);
- //var compname = compValue2.substring(0,compValue2.length-1);
-
- //给第二个form的字段设置值
- $("#SHARE_MAN_217").val(getUser_id); //SHARE_MAN_217 分享人
- $("#SHARE_UNITS_217").val(deptId); //SHARE_UNITS_217分享单位
- $("#RECEIVE_UNITS_217").val(compid); //RECEIVE_UNITS_217 被分享单位
- //SHARE_TYPE_217分享的业务类型 写死3
- $("#SHARE_START_TIME_217").val(time1); //SHARE_START_TIME_217开始时间
- $("#SHARE_END_TIME_217").val(time2); //SHARE_END_TIME_217结束时间
- //BUSINE_ID_217业务ID 点击分享的时候已经赋值给页面了
- $("#RECEIVE_MAN_217").val(RECEIVE_MAN); //RECEIVE_MAN_217接收的人
-
- var $form = $('#fillForm1');
- var url = $.pathname() + '/ws/crud/CRUDService/create';
- $.ajax({
- url : url,
- type : 'post',
- data : $form.serialize(),
- dataType : 'text',
- timeout : 60000,
- success : function(data){
- $.messager.alert("共享成功",null,null,null,-1);
- },
- error : function(){
- $.messager.alert('操作失败');
- }
-
- });
-
- top.Dialog.close();//关闭新增窗口
- }
-
- //下载
- function onDownload(){
- var FD_OBJECTID = "";
- var rows = g.getSelectedRows();
- for (var i = 0; i < rows.length; i++) {
- var FD_OBJECTID1= rows[i].FD_OBJECTID214;//预案的主键
- var PLAN_BIAOZHI1 =rows[i].PLAN_BIAOZHI_214;//预案的标识位(新的预案还是旧的预案)
- var UPLOAND_FLAG1 =rows[i].UPLOAND_FLAG_214;//上传标识
- var PLAN_VERSION_REMAR1 =rows[i].PLAN_VERSION_REMARK_214;//修改预案后新增预案的情况,也必有附件
-
- //新增预案,控制必传附件 纯新增
- if(PLAN_BIAOZHI1=="0"&&PLAN_VERSION_REMAR1=="0"&&UPLOAND_FLAG1=="1"){
- //getFileList(fd_id,1);
- FD_OBJECTID += "'"+FD_OBJECTID1 +"'"+ ",";//预案的主键
- }
- //修改预案后新增预案的情况,也必有附件 纯修编
- if(PLAN_BIAOZHI1!="0"&&PLAN_VERSION_REMAR1!="0"&&UPLOAND_FLAG1=="1"){
- //getFileList(fd_bojectid,1);
- FD_OBJECTID += "'"+FD_OBJECTID1+"'" + ",";//预案的主键
- }
- //纯修改
- if(PLAN_BIAOZHI1=="0"&&PLAN_VERSION_REMAR1!="0"&&UPLOAND_FLAG1=="0"){
- //getFileList(PLAN_VERSION_REMARK,1);
- FD_OBJECTID += "'"+PLAN_VERSION_REMAR1+"'" + ",";//预案的主键
- }
- //修编修改
- if(PLAN_BIAOZHI1!="0"&&PLAN_VERSION_REMAR1!="0"&&UPLOAND_FLAG1=="0"){
- //getFileList(PLAN_VERSION_REMARK,1);
- FD_OBJECTID += "'"+PLAN_VERSION_REMAR1+"'" + ",";//预案的主键
- }
- }
-
- var temp = FD_OBJECTID.substring(0,FD_OBJECTID.length-1);
- //alert("temp****"+temp + "****99999****");
-
-
- //发送请求,获取文件名的集合。
- var url = $.pathname() + '/ws/PlanHuiZong/ContingencyPlanHuiZong/getPlanFile/';
- var params = {
- fileId : temp
- };
-
- var SAVENAME1="";
- var NAME1 = "";
- var FILEEXT1="";
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- data : params,
- dataType : 'json',
- success : function(data){
- var dataLenth = data.rows.length;
- var filenames="";
- var downfilename = "";
-
- for (var i = 0; i < dataLenth; i++) {
- SAVENAME1= data.rows[i].SAVENAME;
- NAME1= data.rows[i].NAME;
- FILEEXT1= data.rows[i].FILEEXT;
-
- filenames +=SAVENAME1 + "." + FILEEXT1 + ";";
- downfilename+=NAME1 + "." + FILEEXT1 + ";";
-
-
- }
-
- var filenames1 = filenames.substring(0,filenames.length-1);
- filenames = decodeURI(filenames1);
- var downfilename1 = downfilename.substring(0,downfilename.length-1);
- downfilename = decodeURI(downfilename1);
- showFile(filenames1,downfilename1);
- //alert(downfilename1+"============"+filenames1);
- //返回回调打包下载的函数,拼传给回调函数的filenames,downfilename
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
-
- function showFile(downfilename,filenames){
- var url = "/nwyj/page/business/am/org/query/getZipFile.jsp?downfilename="+downfilename+"&filenames="+filenames;
- window.open(url);
- }
-
- //高级查询
- function searchHandler(){
-
- $queryForm = $("#queryForm");
- if($("#PLAN_NAME").val()=="预案名称"){
- $("#PLAN_NAME").val("");
- }
- var name = $("#PLAN_NAME").val();
- $queryForm.serialize();
- var $comp_id = $("#selectConditions").find(".UNITS");
- var loadParams11;
-
- //判断是否有用单位做查询条件
- if(!!$comp_id.prop("outerHTML")){
- if(name==""){
- loadParams11 = {
- "listId" : '214',
- "condition" : "IS_DEL='0' and (PLAN_STAT='1' or PLAN_STAT1='1' or REMARK1='"+ getUser_id +"') and (UNITS='"+parent_id+"' or units='"+parent_ids+"' or UNITS IN(SELECT A.DEPT_ID FROM SYS_DEPARTMENT A WHERE A.PARENT_ID='"+parent_id+"' ) and PLAN_STAT1='1') ",
- direction:'DESC',
- sort: 'UPDATEDATE'
- };
- }else{
- loadParams11 = {
- "listId" : '214',
- "condition" : "IS_DEL='0' and (PLAN_STAT='1' or PLAN_STAT1='1' or REMARK1='"+ getUser_id +"') and (UNITS='"+parent_id+"' or units='"+parent_ids+"' or UNITS IN(SELECT A.ID FROM EMC_AM_ORG_DEPARTMENT_TEST A WHERE A.PARENT_ID='"+parent_id+"' ) and PLAN_STAT1='1') and (PLAN_NO like '%"+name+"%' or PLAN_NAME like '%"+name+"%' or SYFW like '%"+name+"%' or ISSUE_DATE like '%"+name+"%' or TAKE_DATE like '%"+name+"%')",
- direction:'DESC',
- sort: 'UPDATEDATE'
- };
- }
- }else{
- if(name==""){
- loadParams11 = $.extend({},loadParams,loadParams);
- }else{
- loadParams11 = {
- "listId" : '214',
- "condition" : "IS_DEL='0' and PLAN_TYPE = '103' and (PLAN_STAT='1' or PLAN_STAT1='1' or REMARK1='"+ getUser_id +"') and UNITS='"+parent_id+"' and (PLAN_NO like '%"+name+"%' or PLAN_NAME like '%"+name+"%' or SYFW like '%"+name+"%' or ISSUE_DATE like '%"+name+"%' or TAKE_DATE like '%"+name+"%')",
- direction:'DESC',
- sort: 'UPDATEDATE'
- };
- }
- }
-
- //获取选中的值
- var searchCondition = getSelectCon(conditionData);
- var queryParams = getQueryFormParams($queryForm);
- var params=$.extend({},loadParams11,queryParams);
- //与之前参数条件拼接
- params.condition = searchCondition.condition + params.condition;
- g.setOptions({"params":params});
- //加载数据
- g.rend();
- }
-
- //绑定
- function bangDing(){
- //根据预案类型分别跳转不同的预案绑定的页面
- var rows = g.getSelectedRows();
- if(rows.length==0){
- top.Dialog.alert("请选择一条记录");
- return;
- }
- if(rows.length>1){
- top.Dialog.alert("只能选择一条记录");
- return;
- }
- /**
- * 如果是地震预案,跳转到地震对应的预案.
- * 传给子页面的值:
- * 1、主键
- * 2、 版本(初次版本为0;方便日后修订预案后将原有预案的绑定条件带出来。避免用户再次录入绑定条件)
- * 3、预案具体业务分类,方便分别找到对应的报表填报计划页面
- *
-
- * **/
- var PLAN_TYPE = rows[0].PLAN_TYPE_214;
- if(PLAN_TYPE!="103"){
- top.Dialog.alert("绑定关系请选择专项预案!");
- return;
- }
-
- var fd_id = rows[0].FD_OBJECTID214;
- var PLAN_BIAOZHI = rows[0].PLAN_BIAOZHI_214;
- // var PLAN_REFINE_CATEGORY = rows[0].PLAN_REFINE_CATEGORY_214;
- var BM_YAXHLB = rows[0].PLAN_REFINE_CATEGORY_214;
- var PLAN_NAME = rows[0].PLAN_NAME_214;
- window.location.href="PlanNexus.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB+"?ZX";
-
- // if(PLAN_REFINE_CATEGORY=="17"){//网络与信息安全
- // window.location.href="PlanType/PlanNexusTFQT.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="4"){//人身事故
- // window.location.href="PlanType/PlanNexusRSSG.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="5"){//大面积停电事件
- // window.location.href="PlanType/PlanNexusDMJTD.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="6"){//设备事故
- // window.location.href="PlanType/PlanNexusSBSG.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="7"){//电厂大坝厂房事故
- // window.location.href="PlanType/PlanNexusDCDB.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="8"){//环境污染
- // window.location.href="PlanType/PlanNexusHJWR.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="9"){//防风防汛
- // window.location.href="PlanNexus.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- //
- // }else if(PLAN_REFINE_CATEGORY=="10"){//地震灾害
- // window.location.href="PlanType/PlanNexusDZZH.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="11"){//低温雨雪冰冻灾害
- // window.location.href="PlanType/PlanNexusDWBD.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="12"){//电力供应及客户服务PlanNexusDLGY.jsp
- // window.location.href="PlanType/PlanNexusDLGY.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="13"){//生产场所防恐怖袭击
- // window.location.href="PlanType/PlanNexusKBXJ.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="14"){//突发性群体事件
- // window.location.href="PlanType/PlanNexusTFQT.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="15"){//突发新闻事件
- // window.location.href="PlanType/PlanNexusTFQT.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="16"){//涉外突发事件
- // window.location.href="PlanType/PlanNexusTFQT.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="18"){//突发公共卫生
- // window.location.href="PlanType/PlanNexusGGWS.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else{
- // top.Dialog.alert("您选中的预案未填写包含的突发事件类型,请在修改页面勾选该预案的突发事件类型后再进行绑定!");
- // return;
- // }
- }
-
- //新增
- function addUnit(){
- window.location.href="PlanAdd.jsp?ZX";
- }
-
- //发布(修改预案的状态)
- function fabu1(){
- top.Dialog.alert("该预案已经发布!");
- }
-
- function fabu(data){
- var row = g.getRow(data);
- var fd_id = row.FD_OBJECTID214;
- var REMARK1 = row.REMARK1_214;
- if(REMARK1!=getUser_id){
- top.Dialog.alert("只能发布自己上传的预案!");
- return;
- }
- top.Dialog.confirm("确定要发布吗?|发布", function() {
- // 发布
- $.post($.pathname() +"/ws/EmcPlan/EmgencyPlanService/issue/", {
- //当前单位id
- comp_id : deptId,
- fd_id : fd_id,
- }, function(result) {
- if (result.Msg.sucsess == true) {
- $.messager.alert("发布成功",null,null,null,-1);
- // 刷新表格数据
- g.rend();
- } else {
- top.Dialog.alert("发布失败!");
- }
- }, "json");
-
- });
- }
-
- //撤销发布
- function noPublish(){
- var rows = g.getSelectedRows();
- var rowsLength = rows.length;
- if (rowsLength == 0) {
- top.Dialog.alert("请选中要撤销的记录!");
- return;
- } else if (rowsLength > 1) {
- top.Dialog.alert("请选中一条要撤销的记录!");
- return;
- }
- var ids = "";
-
- for ( var i = 0; i < rowsLength; i++) {
- ids += rows[i].FD_OBJECTID214 + ",";
- //判断是否包含已经发布的记录
- if(rows[i].PLAN_STAT_214=="0"){
- top.Dialog.alert("您选中的记录还未发布!");
- return;
- }
- }
- top.Dialog.confirm("确定要撤销发布吗?|撤销", function() {
- $.post($.pathname() +"/ws/EmcPlan/EmgencyPlanService/noissue/", {
- comp_id : deptId,
- fd_id : ids,
- }, function(result) {
- if (result.Msg.sucsess == true) {
- $.messager.alert("撤销成功",null,null,null,-1);
- g.rend();// 刷新表格数据
- } else {
- top.Dialog.alert("撤销失败!");
- }
- }, "json");
-
- });
-
- }
-
-
- //撤销共享
- //预案共享
- function gongxiang1(data){
- var row = g.getRow(data);
- var fd_id = row.FD_OBJECTID214;
- var flag = row.UPLOAND_FLAG_214;
- var user = row.ENTERING_214;//录入人ID
- var sata = row.PLAN_STAT_214;//发布状态
- if(getUser_id!=user){
- top.Dialog.alert("只能共享自己上传的预案!");
- return;
- }
- if(sata=="0"){
- top.Dialog.alert("该预案未发布,请发布后在共享!");
- return;
- }
- top.Dialog.confirm("确定要撤销共享吗?|撤销共享", function() {
-
- $.post($.pathname() +"/ws/EmcPlan/EmgencyPlanService/planShare/", {
- //当前单位id
- fd_id : fd_id,
- share:"0"
- }, function(result) {
- if (result.Msg.sucsess == true) {
- $.messager.alert("撤销共享成功",null,null,null,-1);
- getShareNum();
- // 刷新表格数据 上报成功后不能刷新表格
- g.rend();
- } else {
- top.Dialog.alert("撤销共享失败!");
- }
- }, "json");
-
- });
- }
-
-
- //预案共享
- function gongxiang(data){
- var row = g.getRow(data);
- var fd_id = row.FD_OBJECTID214;
- var flag = row.UPLOAND_FLAG_214;
- var user = row.ENTERING_214;//录入人ID
- var sata = row.PLAN_STAT_214;//发布状态
- if(getUser_id!=user){
- top.Dialog.alert("只能共享自己上传的预案!");
- return;
- }
- if(sata=="0"){
- top.Dialog.alert("该预案未发布,请发布后在共享!");
- return;
- }
- top.Dialog.confirm("确定要共享吗?|共享", function() {
- // 上报
- $.post($.pathname() +"/ws/EmcPlan/EmgencyPlanService/planShare/", {
- //当前单位id
- fd_id : fd_id,
- share:"1"
- }, function(result) {
- if (result.Msg.sucsess == true) {
- $.messager.alert("共享成功",null,null,null,-1);
- // 刷新表格数据 上报成功后不能刷新表格
- getShareNum();
- g.rend();
- } else {
- top.Dialog.alert("共享失败!");
- }
- }, "json");
-
- });
- }
-
-
- function shangbao1(data){
-
- var row = g.getRow(data);
- var fd_id = row.FD_OBJECTID214;
- var REMARK1 = row.REMARK1_214;
- if(REMARK1!=getUser_id){
- top.Dialog.alert("只能撤销自己上传的预案!");
- return;
- }
-
- top.Dialog.confirm("确定要撤销上报吗?|撤销", function() {
- // 上报
- $.post($.pathname() +"/ws/EmcPlan/EmgencyPlanService/appear1/", {
- //当前单位id
- comp_id : 214,
- fd_id : fd_id,
- }, function(result) {
- if (result.Msg.sucsess == true) {
- $.messager.alert("撤销成功",null,null,null,-1);
- //推送消息
- //fillShangbao(data);
- // 刷新表格数据 上报成功后不能刷新表格
- g.rend();
- } else {
- top.Dialog.alert("撤销上报失败!");
- }
- }, "json");
-
- });
- }
-
-
- //上报前先给上级单位公共消息库里插入一条记录
- /**
- * 1、取本级单位ID
- * 2、上报人ID
- * 3、上报消息主键
- * 4、服务名称(URL)
- **/
- function fillShangbao(data){
- var row = g.getRow(data);
- var fd_id = row.FD_OBJECTID214;
- var flag = row.UPLOAND_FLAG_214;
- var remark;
- if(flag=="0")
- remark = row.PLAN_VERSION_REMARK_214;
- else
- remark=fd_id;
- //向后台发送请求调用dwr
- var url = $.pathname() + '/ws/PlanHuiZong/ContingencyPlanHuiZong/sendMsgDwr/';
- var msg = "<a href=\"javascript:void(0)\" onclick=\"openY('/nwyj/page/business/am/public/Planinfo.jsp?"+fd_id+"?"+ remark +"')\">"+corp_name+"的应急预案</a>";
- //var msg = "<a href=\"javascript:void(0)\" onclick=\"openY('/nwyj/page/business/am/contingencyPlan/PlanAdd.jsp')\">应急预案</a>";
- var params = {
- parentDeptName:parent_ids,
- msg:msg
- };
-
- $.ajax({
- url : url,
- type : 'post',
- data : params,
- dataType : 'text',
- timeout : 60000,
- success : function(data){
- },
- error : function(){
- $.messager.alert('操作失败');
- }
-
- });
- }
-
- //上报(修改预案的状态)
- function shangbao(data){
-
- var row = g.getRow(data);
- var fd_id = row.FD_OBJECTID214;
- var REMARK1 = row.REMARK1_214;
- if(REMARK1!=getUser_id){
- top.Dialog.alert("只能上报自己上传的预案!");
- return;
- }
-
- top.Dialog.confirm("确定要上报吗?|上报", function() {
- // 上报
- $.post($.pathname() +"/ws/EmcPlan/EmgencyPlanService/appear/", {
- //当前单位id
- comp_id : 214,
- fd_id : fd_id,
- }, function(result) {
- if (result.Msg.sucsess == true) {
- $.messager.alert("上报成功",null,null,null,-1);
- //推送消息
- fillShangbao(data);
- // 刷新表格数据 上报成功后不能刷新表格
- g.rend();
- } else {
- top.Dialog.alert("上报失败!");
- }
- }, "json");
-
- });
- }
-
-
- //历史版本(查看该预案的历史版本信息)
- function lishibanb(){
- window.location.href="expertadd.jsp";
- }
-
- //汇总(汇总本级单位预案信息)
- function huizong(){
- window.location.href="ContingencyPlanHuiZong.jsp";
- }
-
- //汇总(汇总本级单位预案修编信息)
- function xiubianhuizong(){
- window.location.href="ContingencyPlanXBHuiZong.jsp";
- }
-
- //修改
- function updateUnit(){
- var rows = g.getSelectedRows();
- //判断是不是自己上传的预案
- //取当前登录人ID getUser_id
-
- var fd_id = rows[0].FD_OBJECTID214;
- var REMARK1 = rows[0].REMARK1_214;
- if(REMARK1!=getUser_id){
- top.Dialog.alert("只能修改自己上传的预案!");
- return;
- }
- if(rows.length==0){
- top.Dialog.alert("请选择一条记录");
- return;
- }
- if(rows.length>1){
- top.Dialog.alert("只能选择一条记录");
- return;
- }
- var sturtssb = rows[0].PLAN_STAT_214;
- if(sturtssb=="1"){
- top.Dialog.alert("您选中的记录已经发布!");
- }
- //上报不允许修改
- /*else if(rows[0].PLAN_STAT1_214=="1"){
- top.Dialog.alert("您选中的记录已经上报!");
- }*/
-
- else{
- window.location.href="PlanEdit.jsp?"+fd_id+"?ZX";
- }
-
- }
-
- //删除
- function deleteUnit(){
- var rows = g.getSelectedRows();
- var rowsLength = rows.length;
- if (rowsLength == 0) {
- top.Dialog.alert("请选中要删除的记录!");
- return;
- }
-
- var REMARK1 = rows[0].REMARK1_214;
- if(REMARK1!=getUser_id){
- top.Dialog.alert("只能删除自己上传的预案!");
- return;
- }
-
- var ids = "";
- var sturtssb = "";
- for ( var i = 0; i < rowsLength; i++) {
- ids += rows[i].FD_OBJECTID214 + ",";
- sturtssb += rows[i].PLAN_STAT_214 + ",";
- if(rows[i].PLAN_STAT_214=="1"){
- if(rowsLength==1){
- top.Dialog.alert("您选中的记录已经发布!");
- }else{
- top.Dialog.alert("您选中的记录有已经发布的!");
- }
- return;
- }
- if(rows[i].PLAN_STAT1_214=="1"){
- if(rowsLength==1){
- top.Dialog.alert("您选中的记录已经上报!");
- }else{
- top.Dialog.alert("您选中的记录有已经上报的!");
- }
- return;
- }
- }
- top.Dialog.confirm("确定要删除吗?|删除", function() {
- // 删除记录
-
- $.post($.pathname() +"/ws/crud/CRUDService/delete/", {
- "objectIDs" : ids,
- classid : 214
- }, function(result) {
- if (result.Msg.sucsess == true) {
- $.messager.alert("删除成功",null,null,null,-1);
- // 刷新表格数据
- g.rend();
- } else {
- top.Dialog.alert("删除失败!");
- }
- }, "json");
-
- });
- }
-
-
-
- //点击主键跳转详细信息页面
- this.openDetail = function(rowindex) {
- var row = g.getRow(rowindex);
- var fd_id = row.FD_OBJECTID214;
- var PLAN_BIAOZHI = row.PLAN_BIAOZHI_214;
- var BM_YAXHLB = row.PLAN_REFINE_CATEGORY_214;
- var PLAN_NAME = row.PLAN_NAME_214;
- var PLAN_TYPE = row.PLAN_TYPE_214;
-
- if(PLAN_TYPE!="103"){
- window.location.href="Planinfo.jsp?"+fd_id;
- }else{
- window.location.href="/nwyj/page/business/am/contingencyPlan/PlanNexusView.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB+"?ZX";
- };
- };
- function showPrimaryKey(obj,index){
- var fd_id = obj.FD_OBJECTID214;
- var PLAN_BIAOZHI = obj.PLAN_BIAOZHI_214;
- var BM_YAXHLB = obj.PLAN_REFINE_CATEGORY_214;
- var PLAN_NAME = obj.PLAN_NAME_214;
- var PLAN_TYPE = obj.PLAN_TYPE_214;
-
- if(PLAN_TYPE!="103"){
- window.location.href="Planinfo.jsp?"+fd_id;
- }else{
- window.location.href="/nwyj/page/business/am/contingencyPlan/PlanNexusView.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB+"?ZX";
- };
- }
-
- //点击查看
- function jumpPage(fd_id,PLAN_BIAOZHI,BM_YAXHLB,PLAN_NAME,PLAN_TYPE){
-
- if(PLAN_TYPE!="103"){
- window.location.href="Planinfo.jsp?"+fd_id;
- }else{
-
- window.location.href="/nwyj/page/business/am/contingencyPlan/PlanNexusView.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB+"?" + PLAN_NAME;
-
- // if(PLAN_REFINE_CATEGORY=="17"){//网络与信息安全
- // //window.location.href="huizong.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // window.location.href="PlanOnViewNexus/PlanNexusTFQT.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="4"){//人身事故
- // window.location.href="PlanOnViewNexus/PlanNexusRSSG.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="5"){//大面积停电事件
- // window.location.href="PlanOnViewNexus/PlanNexusDMJTD.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="6"){//设备事故
- // window.location.href="PlanOnViewNexus/PlanNexusSBSG.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="7"){//电厂大坝厂房事故
- // window.location.href="PlanOnViewNexus/PlanNexusDCDB.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="8"){//环境污染
- // window.location.href="PlanOnViewNexus/PlanNexusHJWR.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="9"){//防风防汛PlanOnViewList\NewMsgNotice
- // window.location.href="PlanOnViewNexus/PlanNexus.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="10"){//地震灾害
- // window.location.href="PlanOnViewNexus/PlanNexusDZZH.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="11"){//低温雨雪冰冻灾害
- // window.location.href="PlanOnViewNexus/PlanNexusDWBD.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="12"){//电力供应及客户服务PlanNexusDLGY.jsp
- // window.location.href="PlanOnViewNexus/PlanNexusDLGY.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="13"){//生产场所防恐怖袭击
- // window.location.href="PlanOnViewNexus/PlanNexusKBXJ.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="14"){//突发性群体事件
- // window.location.href="PlanOnViewNexus/PlanNexusTFQT.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="15"){//突发新闻事件
- // window.location.href="PlanOnViewNexus/PlanNexusTFQT.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="16"){//涉外突发事件
- // window.location.href="PlanOnViewNexus/PlanNexusTFQT.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else if(PLAN_REFINE_CATEGORY=="18"){//突发公共卫生
- // window.location.href="PlanOnViewNexus/PlanNexusGGWS.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }else{
- // window.location.href="PlanNexus.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- // }
- }
- }
-
- function onView(){
- //根据预案类型分别跳转不同的预案绑定的页面
- var rows = g.getSelectedRows();
- if(rows.length==0){
- top.Dialog.alert("请选择一条记录");
- return;
- }
- if(rows.length>1){
- top.Dialog.alert("只能选择一条记录");
- return;
- }
- /**
- * 如果是地震预案,跳转到地震对应的预案.
- * 传给子页面的值:
- * 1、主键
- * 2、 版本(初次版本为0;方便日后修订预案后将原有预案的绑定条件带出来。避免用户再次录入绑定条件)
- * 3、预案具体业务分类,方便分别找到对应的报表填报计划页面
- *
- * **/
- var fd_id = rows[0].FD_OBJECTID214;
- var PLAN_BIAOZHI = rows[0].PLAN_BIAOZHI_214;
- var PLAN_REFINE_CATEGORY = rows[0].PLAN_REFINE_CATEGORY_214;
- var BM_YAXHLB = rows[0].PLAN_REFINE_CATEGORY_214;
- var PLAN_TYPE = rows[0].PLAN_TYPE_214;
- if(PLAN_TYPE!="103"){
- window.location.href="Planinfo.jsp?"+fd_id;
- }else{
- if(PLAN_REFINE_CATEGORY=="17"){//网络与信息安全
- window.location.href="PlanOnViewNexus/PlanNexusTFQT.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- }else if(PLAN_REFINE_CATEGORY=="4"){//人身事故
- window.location.href="PlanOnViewNexus/PlanNexusRSSG.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- }else if(PLAN_REFINE_CATEGORY=="5"){//大面积停电事件
- window.location.href="PlanOnViewNexus/PlanNexusDMJTD.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- }else if(PLAN_REFINE_CATEGORY=="6"){//设备事故
- window.location.href="PlanOnViewNexus/PlanNexusSBSG.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- }else if(PLAN_REFINE_CATEGORY=="7"){//电厂大坝厂房事故
- window.location.href="PlanOnViewNexus/PlanNexusDCDB.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- }else if(PLAN_REFINE_CATEGORY=="8"){//环境污染
- window.location.href="PlanOnViewNexus/PlanNexusHJWR.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- }else if(PLAN_REFINE_CATEGORY=="9"){//防风防汛
- window.location.href="PlanOnViewNexus/PlanNexus.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- }else if(PLAN_REFINE_CATEGORY=="10"){//地震灾害
- window.location.href="PlanOnViewNexus/PlanNexusDZZH.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- }else if(PLAN_REFINE_CATEGORY=="11"){//低温雨雪冰冻灾害
- window.location.href="PlanOnViewNexus/PlanNexusDWBD.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- }else if(PLAN_REFINE_CATEGORY=="12"){//电力供应及客户服务PlanNexusDLGY.jsp
- window.location.href="PlanOnViewNexus/PlanNexusDLGY.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- }else if(PLAN_REFINE_CATEGORY=="13"){//生产场所防恐怖袭击
- window.location.href="PlanOnViewNexus/PlanNexusKBXJ.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- }else if(PLAN_REFINE_CATEGORY=="14"){//突发性群体事件
- window.location.href="PlanOnViewNexus/PlanNexusTFQT.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- }else if(PLAN_REFINE_CATEGORY=="15"){//突发新闻事件
- window.location.href="PlanOnViewNexus/PlanNexusTFQT.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- }else if(PLAN_REFINE_CATEGORY=="16"){//涉外突发事件
- window.location.href="PlanOnViewNexus/PlanNexusTFQT.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- }else if(PLAN_REFINE_CATEGORY=="18"){//突发公共卫生
- window.location.href="PlanOnViewNexus/PlanNexusGGWS.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- }else{
- window.location.href="PlanNexus.jsp?"+fd_id+"?"+PLAN_BIAOZHI+"?" + BM_YAXHLB;
- }
- }
- }
-
-
- $.messager=top.Dialog;
-
- /************动态more*****************/
- // 更多
- function more() {
- $('#moreDiv').toggle(400,function(){
- $("#emptyCondition").click();
- $(parent.document.body).find("#frmright").height($(window.document.body).height()+30);
- });
- }
-
- /*****************非动态more**********************/
- /* // 更多
- function more() {
- $('#moreDiv').toggle();
- $(parent.document.body).find("#frmright").height($(window.document.body).height());
- }*/
-
- $.messager=top.Dialog;
|