12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256 |
- $.messager=top.Dialog;
-
- /*************************接收预案的类型,根据原类型来判断各个预案该展示什么样的报表*********************************/
- var planType = parent.BM_YAXHLB;
- /****
- * 下面是为了判断预案的细化类别具体值,有些存在预警的,
- * 有预警的预案比没有预警的预案多了一层父页面。
- * 下面的处理适合有没有预警的预案都能取到预案的细化类别。
- * 2016-08-28(徐威)
- */
- if(planType==undefined){
- planType=parent.parent.BM_YAXHLB;
- }
-
- var g3;var g4;var g5;var g6; var g;var g7;var g8;var g9; var gwl; var gxz;
- /* var condition = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430210') ";//系统运行部
- var condition1 = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430211') ";//生产设备部
- var condition2 = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430212') ";//市场营销部
- var condition3 = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430213') ";//安全监管部
-
- var condition4 = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430210') ";//系统运行部
- var condition5 = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430211') ";//生产设备部
- var condition6 = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430212') ";//市场营销部
- var condition7 = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430213') ";//安全监管部
-
- //信息部,行政
- var conditionwl = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430') ";
- var conditionxz = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430') ";*/
-
- /**************************组合多选下拉框********************************/
-
- /**
- * 各个预案加载的表,现在是通过应急角色的ID来加载的
- * 现在许永山提出来要根据不同的预案加载只有那个预案才有的表,过滤无关的表。
- * 下面需要根据具体的预案类型来判断。
- */
- var anjianbu = "";
- var condition ="";
- var condition1 = "";
- var condition2 = "";
- var condition3 = "";
- var condition4 = "";
- var condition5 = "";
- var condition6 = "";
- var condition7 = "";
- var conditionwl = "";
- var conditionxz = "";
- if(planType=="4"){
- //人身事故应急预案,报表类型为10,9。目前只有安监部填表:伤亡人员明细表,伤亡人员汇总表
- condition3 = "and REPORT_TYPE in('9','10')";//安监部
- }else if(planType=="5"){
- //大面积停电事件
- /**
- * 系统部:
- * 500KV线路跳闸明细;11
- * 220KV线路跳闸明细;12
- * 220kV以下线路跳闸明细;13
- * 变电站失压情况;14
- * 累计损失负荷及用户情况;15
- * 当期输电线路跳闸情况汇总表;16
- * 累计输电线路跳闸情况汇总表17
- */
- condition= "and REPORT_TYPE in('11','12','13','14','15','16','17')";
- /**
- * 市场部:
- * 供电损失信息;18
- */
- condition2="and REPORT_TYPE in('18')";
- /** 安监部:
- * 应急处置信息;19
- * */
- condition3="and REPORT_TYPE in('19')";
- }else if(planType=="6"){
- //设备事故,暂时只有生产设备管理部需要填写该表。缺少:受损设备信息填报统计表(表单)
- /**
- * 生产设备管理部:
- * 设备受损及恢复情况统计表;20
- * 设备事故事件抢修人员信息填报统计表;21
- * 应急人员调动情况统计表;22
- * 设备事故事件抢修材料使用情况填报统计表;23
- * 应急物资调配情况统计表;24
- * 设备事故事件抢修机具使用情况填报统计表;25
- * 应急资源需求情况统计表;26
- */
- condition1="and REPORT_TYPE in('20','21','22','23','24','25','26')";
- }else if(planType=="7"){
- //电厂大坝厂房事故 ,目前只有生产设备管理部填表
- /***
- * 生产设备管理部:
- * 设备受损及恢复情况统计表;20
- * 应急人员调动情况统计表;22
- * 应急物资调配情况统计表;24
- * 应急资源需求情况统计表;26
- */
- condition1="and REPORT_TYPE in('20','22','24','26')";
- }else if(planType=="8"){
- //环境污染
- /***
- * 系统运行部:
- * 受环境污染导致变电站停运及恢复情况统计表(座);31
- * 受环境污染导致线路停运及恢复情况统计表(条);32
- *
- */
- condition="and REPORT_TYPE in('31','32')";
- /**
- * 市场营销部
- * 受环境污染导致停电影响的区域及恢复情况统计表;33
- * 受环境污染导致停电影响的用户数及恢复情况统计表;34
- */
- condition2="and REPORT_TYPE in('33','34')";
- /**
- * 安全监管部:
- * 环境污染事故人员装备投入情况;35
- */
- condition3="and REPORT_TYPE in('35')";
- /**
- * 生产设备管理部:
- * 环境污染事故应急资源需求情况统计表;36
- * 环境污染事故应急物资调配情况统计表;37
- */
- // condition1="and REPORT_TYPE in('36','37')";
- condition1="and REPORT_TYPE in('31','32','36','37')";
- }else if(planType=="9"){
- //防风防汛 台风登陆期间
- /**
- * 系统运行部:
- * 线路停运及恢复情况表;1
- * 变电站停运及恢复情况表;2
- */
- condition="and REPORT_TYPE in('1','2')";
- /**
- * 设备管理部
- * 设备部所有表
- */
- // condition1="and REPORT_TYPE in('3','4','20','21','22','23','25','36','37','38','26','24')";
- condition1="and REPORT_TYPE in('1','2','3','4','20','21','22','23','25','36','37','38','26','24')";
- /**
- * 市场营销部:
- * 供电损失及客户停电情况表;5
- * 行政区域停电情况表;6
- */
- condition2="and REPORT_TYPE in('5','6')";
- /**
- * 安全监察部
- * 安监部所有表
- */
- condition3="and REPORT_TYPE in('7','8','9','10','19','35','41','42')";
-
- //防风防汛 台风登陆后
- /**
- * 系统运行部:
- * 线路停运及恢复情况;1
- * 变电站失压及恢复情况;2
- */
- condition4="and REPORT_TYPE in('1','2')";
- /**
- * 市场营销部:
- * 供电损失及客户停电情况;5
- * 行政区域停电情况;6
- */
- condition6="and REPORT_TYPE in('5','6')";
- /**
- * 生产设备管理部:
- * 线路倒杆情况;3
- * 线路及配变受损情况4
- */
- // condition5="and REPORT_TYPE in('3','4')";
- condition5="and REPORT_TYPE in('1','2','3','4')";
- /***
- * 安监部:
- * 预警发布或响应启动情况;
- * 应急资源情况;
- */
- condition7="and REPORT_TYPE in('7','8')";
- }else if(planType=="10"){
-
-
- //地震灾害 地震发生7小时内
- /**
- * 系统运行部:
- * 线路停运及恢复情况表;1
- * 变电站停运及恢复情况表;2
- */
- condition="and REPORT_TYPE in('1','2')";
- /**
- * 市场营销部:
- * 供电损失及客户停电情况表;5
- */
- condition2="and REPORT_TYPE in('5','6')";
- //地震灾害 地震发生8小时以后
- /**
- * 系统运行部
- * 线路停运及恢复情况表;1
- * 变电站停运及恢复情况表;2
- */
- condition4="and REPORT_TYPE in('1','2')";
- /**
- * 市场营销部:
- * 供电损失及客户停电情况表;5
- * 行政区域停电情况表6
- */
- condition6="and REPORT_TYPE in('5','6')";
- /**
- * 生产设备管理部:
- * 线路倒杆情况统计表;20
- * 设备受损及恢复情况统计表;3
- * 构建筑物受损情况;38
- */
- // condition5="and REPORT_TYPE in('20','3','38')";
- condition5="and REPORT_TYPE in('1','2','20','3','38')";
- /**
- * 安监部:
- * 应急资源情况表;8
- */
- condition7="and REPORT_TYPE in('8')";
- }else if(planType=="11"){
- //低温冰冻灾害 按照响应的表来
- /**
- * 系统运行部:
- * 线路停运及恢复情况表;1
- * 变电站停运及恢复情况表;2
- */
- condition = "and REPORT_TYPE in('1','2')";
- /**
- * 生产设备管理部:
- * 线路倒杆情况统计表;3
- * 线路及配变受损情况表;4
- *
- */
- // condition1 = "and REPORT_TYPE in('3','4')";
- condition1 = "and REPORT_TYPE in('1','2','3','4')";
- /**
- * 市场营销部:
- * 供电损失及客户停电情况表;5
- * 行政区域停电情况表;6
- */
- condition2="and REPORT_TYPE in('5','6')";
- /**
- * 安全监察部:
- * 预警发布或响应启动情况表;7
- * 应急资源情况表;8
- */
- condition3="and REPORT_TYPE in('7','8')";
- }else if(planType=="12"){
- //电力供应及客户服务
- /**
- * 市场部:
- * 受停电影响行政区域恢复情况统计表:报表暂时没有,需要龙志伟那里提供报表类型的值
- * 受停电影响的工业和居民用户数及恢复情况统计表;39
- */
- condition2="and REPORT_TYPE in('39')";//受停电影响行政区域恢复情况统计表:报表暂时没有,需要龙志伟那里提供报表类型的值
- /**
- * 系统运行部:
- * 电力电量情况;40
- */
- condition = "and REPORT_TYPE in('40')";
- /**
- * 安全监察部:
- * 应急发电机(车)配置情况 41
- */
- condition3 = "and REPORT_TYPE in('41')";
- }else if(planType=="13"){
- //生产场所防恐怖袭击
- //TODO 由于没有行政部门角色。也没有该表,需要龙志伟那边按照保供电填报手册将表做好后告诉这边报表的类型是什么。
- //需要补上 2016-08-28 徐威
- }else if(planType=="14"){
- //突发性群体事件
- //TODO 新的保供电填报手册里无表要填。
- //暂不需要补上。 2016-08-28 徐威
- }else if(planType=="15"){
- //突发新闻事件
- //TODO 新的保供电手册里没有表需要填。
- //暂不需要补上。 2016-08-28
- }else if(planType=="16"){
- //涉外突发事件
- //TODO 新的保供电手册里没有表需要填。
- //暂不需要补上。 2016-08-28
- }else if(planType=="17"){
- //网络与信息安全
- //TODO 新的保供电手册里要求 信息管理部门填写: 业务系统受损情况统计表;网络及终端受损情况统计表;应急处置情况统计表;
- //系统暂时没有这几张表,需要龙志伟补上后告诉我们。2016-08-28
- }else if(planType=="18"){
- //突发公共卫生
- //TODO 需要行政部门填写:应急物资、人员调配(使用)情况;应急资源需求情况统计表;
- //系统暂时没有行政部门角色,小龙那边建立好后告诉这边补上。
- }
-
-
- var loadParams = {
- "listId" : '329',
- "condition" : condition
- };
- var loadParams1 = {
- "listId" : '329',
- "condition" : condition1
- };
- var loadParams2 = {
- "listId" : '329',
- "condition" : condition2
- };
- var loadParams3 = {
- "listId" : '329',
- "condition" : condition3
- };
-
-
- var loadParams4 = {
- "listId" : '329',
- "condition" : condition4
- };
- var loadParams5 = {
- "listId" : '329',
- "condition" : condition5
- };
- var loadParams6 = {
- "listId" : '329',
- "condition" : condition6
- };
- var loadParams7 = {
- "listId" : '329',
- "condition" : condition7
- };
-
- var loadParamswl = {
- "listId" : '329',
- "condition" : conditionwl
- };
-
- var loadParamsxz = {
- "listId" : '329',
- "condition" : conditionxz
- };
-
-
- function initComplete(){
- g3 = $("#customContent3").quiGrid({
- columns: [
- { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
- { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
- ],
- url :$.pathname() + '/ws/crud/CRUDService/getTabList',
- params : loadParams,
- rownumbers:true,
- checkbox:true,
- // height: '100%',
- // width:"100%",
- usePager : false,
- percentWidthMode:true,
-
- showPageInfo:false,
- selectRowButtonOnly:false,
- isChecked:checkedHandler,
- onCheckRow: checkRowHandler,
- onCheckAllRow: checkAllRowHandler
- });
-
- g4 = $("#customContent4").quiGrid({
- columns: [
- { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
- { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
- ],
- url :$.pathname() + '/ws/crud/CRUDService/getTabList',
- params : loadParams1,
- rownumbers:true,
- checkbox:true,
- // height: '100%',
- // width:"100%",
- usePager : false,
- percentWidthMode:true,
-
- showPageInfo:false,
- selectRowButtonOnly:false,
- isChecked:checkedHandler1,
- onCheckRow: checkRowHandler1,
- onCheckAllRow: checkAllRowHandler1
- });
- g5 = $("#customContent5").quiGrid({
- columns: [
- { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
- { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
- ],
- url :$.pathname() + '/ws/crud/CRUDService/getTabList',
- params : loadParams2,
- rownumbers:true,
- checkbox:true,
- // height: '100%',
- // width:"100%",
- usePager : false,
- percentWidthMode:true,
-
- showPageInfo:false,
- selectRowButtonOnly:false,
- isChecked:checkedHandler2,
- onCheckRow: checkRowHandler2,
- onCheckAllRow: checkAllRowHandler2
- });
- g6 = $("#customContent6").quiGrid({
- columns: [
- { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
- { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
- ],
- url :$.pathname() + '/ws/crud/CRUDService/getTabList',
- params : loadParams3,
- rownumbers:true,
- checkbox:true,
- // height: '100%',
- // width:"100%",
- usePager : false,
- percentWidthMode:true,
-
- showPageInfo:false,
- selectRowButtonOnly:false,
- isChecked:checkedHandler3,
- onCheckRow: checkRowHandler3,
- onCheckAllRow: checkAllRowHandler3
- });
-
-
-
- g = $("#customContent1").quiGrid({
- columns: [
- { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
- { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
- ],
- url :$.pathname() + '/ws/crud/CRUDService/getTabList',
- params : loadParams4,
- rownumbers:true,
- checkbox:true,
- // height: '100%',
- // width:"100%",
- usePager : false,
- percentWidthMode:true,
-
- showPageInfo:false,
- selectRowButtonOnly:false,
- isChecked:checkedHandler4,
- onCheckRow: checkRowHandler4,
- onCheckAllRow: checkAllRowHandler4
- });
- g7 = $("#customContent7").quiGrid({
- columns: [
- { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
- { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
- ],
- url :$.pathname() + '/ws/crud/CRUDService/getTabList',
- params : loadParams5,
- rownumbers:true,
- checkbox:true,
- // height: '100%',
- // width:"100%",
- usePager : false,
- percentWidthMode:true,
-
- showPageInfo:false,
- selectRowButtonOnly:false,
- isChecked:checkedHandler5,
- onCheckRow: checkRowHandler5,
- onCheckAllRow: checkAllRowHandler5
- });
- g8 = $("#customContent8").quiGrid({
- columns: [
- { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
- { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
- ],
- url :$.pathname() + '/ws/crud/CRUDService/getTabList',
- params : loadParams6,
- rownumbers:true,
- checkbox:true,
- // height: '100%',
- // width:"100%",
- usePager : false,
- percentWidthMode:true,
-
- showPageInfo:false,
- selectRowButtonOnly:false,
- isChecked:checkedHandler6,
- onCheckRow: checkRowHandler6,
- onCheckAllRow: checkAllRowHandler6
- });
- g9 = $("#customContent9").quiGrid({
- columns: [
- { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
- { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
- ],
- url :$.pathname() + '/ws/crud/CRUDService/getTabList',
- params : loadParams7,
- rownumbers:true,
- checkbox:true,
- // height: '100%',
- // width:"100%",
- usePager : false,
- percentWidthMode:true,
-
- showPageInfo:false,
- selectRowButtonOnly:false,
- isChecked:checkedHandler7,
- onCheckRow: checkRowHandler7,
- onCheckAllRow: checkAllRowHandler7
- });
-
- gwl = $("#customContentwl").quiGrid({
- columns: [
- { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
- { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
- ],
- url :$.pathname() + '/ws/crud/CRUDService/getTabList',
- params : loadParamswl,
- rownumbers:true,
- checkbox:true,
- // height: '100%',
- // width:"100%",
- usePager : false,
- percentWidthMode:true,
-
- showPageInfo:false,
- selectRowButtonOnly:false,
- isChecked:checkedHandlerwl,
- onCheckRow: checkRowHandlerwl,
- onCheckAllRow: checkAllRowHandlerwl
- });
-
- gxz = $("#customContentxz").quiGrid({
- columns: [
- { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
- { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
- ],
- url :$.pathname() + '/ws/crud/CRUDService/getTabList',
- params : loadParamsxz,
- rownumbers:true,
- checkbox:true,
- // height: '100%',
- // width:"100%",
- usePager : false,
- percentWidthMode:true,
-
- showPageInfo:false,
- selectRowButtonOnly:false,
- isChecked:checkedHandlerxz,
- onCheckRow: checkRowHandlerxz,
- onCheckAllRow: checkAllRowHandlerxz
- });
-
- /*************系统****************/
- $("#selectCostom3").bind("boxOpen",function(){
- g3.resetHeight();
- g3.resetWidth();
- });
- $("#selectCostom3").bind("boxClose",function(){
- $("#selectCostom3").setValue(checkedArray,checkedTextArray.join(";"));
- });
- /**************设备***************/
- $("#selectCostom4").bind("boxOpen",function(){
- g4.resetHeight();
- g4.resetWidth();
- });
- $("#selectCostom4").bind("boxClose",function(){
- $("#selectCostom4").setValue(checkedArray1,checkedTextArray1.join(";"));
- });
- /*************市场****************/
- $("#selectCostom5").bind("boxOpen",function(){
- g5.resetHeight();
- g5.resetWidth();
- });
- $("#selectCostom5").bind("boxClose",function(){
- $("#selectCostom5").setValue(checkedArray2,checkedTextArray2.join(";"));
- });
- /**************安监***************/
- $("#selectCostom6").bind("boxOpen",function(){
- g6.resetHeight();
- g6.resetWidth();
- });
- $("#selectCostom6").bind("boxClose",function(){
- $("#selectCostom6").setValue(checkedArray3,checkedTextArray3.join(";"));
- });
-
-
-
-
- /***************第二部分****************/
-
- /*************系统****************/
- $("#selectCostom1").bind("boxOpen",function(){
- g.resetHeight();
- g.resetWidth();
- });
- $("#selectCostom1").bind("boxClose",function(){
- $("#selectCostom1").setValue(checkedArray4,checkedTextArray4.join(";"));
- });
- /**************设备***************/
- $("#selectCostom7").bind("boxOpen",function(){
- g7.resetHeight();
- g7.resetWidth();
- });
- $("#selectCostom7").bind("boxClose",function(){
- $("#selectCostom7").setValue(checkedArray5,checkedTextArray5.join(";"));
- });
- /*************市场****************/
- $("#selectCostom8").bind("boxOpen",function(){
- g8.resetHeight();
- g8.resetWidth();
- });
- $("#selectCostom8").bind("boxClose",function(){
- $("#selectCostom8").setValue(checkedArray6,checkedTextArray6.join(";"));
- });
- /**************安监***************/
- $("#selectCostom9").bind("boxOpen",function(){
- g9.resetHeight();
- g9.resetWidth();
- });
- $("#selectCostom9").bind("boxClose",function(){
- $("#selectCostom9").setValue(checkedArray7,checkedTextArray7.join(";"));
- });
- /**************网络信息部***************/
- $("#selectCostomwl").bind("boxOpen",function(){
- gwl.resetHeight();
- gwl.resetWidth();
- });
- $("#selectCostomwl").bind("boxClose",function(){
- $("#selectCostomwl").setValue(checkedArraywl,checkedTextArraywl.join(";"));
- });
- /**************行政部***************/
- $("#selectCostomxz").bind("boxOpen",function(){
- gxz.resetHeight();
- gxz.resetWidth();
- });
- $("#selectCostomxz").bind("boxClose",function(){
- $("#selectCostomxz").setValue(checkedArrayxz,checkedTextArrayxz.join(";"));
- });
-
-
-
- }
-
- /**************************记忆 系统运行部****************************/
- var checkedArray = [];
- var checkedTextArray = [];
- function findCheckedArray(id)
- {
- for(var i =0;i<checkedArray.length;i++)
- {
- if(checkedArray[i] == id) return i;
- }
- return -1;
- }
- function addCheckedArray(id,name)
- {
- if(findCheckedArray(id) == -1){
- checkedArray.push(id);
- checkedTextArray.push(name);
- }
- }
- function removeCheckedArray(id)
- {
- var i = findCheckedArray(id);
- if(i==-1) return;
- checkedArray.splice(i,1);
- checkedTextArray.splice(i,1);
- }
- function checkedHandler(rowdata)
- {
- if (findCheckedArray(rowdata.REPORT_TYPE_329) == -1)
- return false;
- return true;
- }
- function checkRowHandler(checked, data)
- {
- if (checked) addCheckedArray(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- else removeCheckedArray(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- }
- function checkAllRowHandler(checked)
- {
- for (var rowid in this.records)
- {
- if(checked)
- addCheckedArray(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- else
- removeCheckedArray(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- }
- }
- /*************************记忆 设备管理部********************************/
- var checkedArray1 = [];
- var checkedTextArray1 = [];
- function findCheckedArray1(id)
- {
- for(var i =0;i<checkedArray1.length;i++)
- {
- if(checkedArray1[i] == id) return i;
- }
- return -1;
- }
- function addCheckedArray1(id,name)
- {
- if(findCheckedArray1(id) == -1){
- checkedArray1.push(id);
- checkedTextArray1.push(name);
- }
- }
- function removeCheckedArray1(id)
- {
- var i = findCheckedArray1(id);
- if(i==-1) return;
- checkedArray1.splice(i,1);
- checkedTextArray1.splice(i,1);
- }
- function checkedHandler1(rowdata)
- {
- if (findCheckedArray1(rowdata.REPORT_TYPE_329) == -1)
- return false;
- return true;
- }
- function checkRowHandler1(checked, data)
- {
- if (checked) addCheckedArray1(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- else removeCheckedArray1(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- }
- function checkAllRowHandler1(checked)
- {
- for (var rowid in this.records)
- {
- if(checked)
- addCheckedArray1(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- else
- removeCheckedArray1(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- }
- }
- /*************************记忆 市场营销部********************************/
- var checkedArray2 = [];
- var checkedTextArray2 = [];
- function findCheckedArray2(id)
- {
- for(var i =0;i<checkedArray2.length;i++)
- {
- if(checkedArray2[i] == id) return i;
- }
- return -1;
- }
- function addCheckedArray2(id,name)
- {
- if(findCheckedArray2(id) == -1){
- checkedArray2.push(id);
- checkedTextArray2.push(name);
- }
- }
- function removeCheckedArray2(id)
- {
- var i = findCheckedArray2(id);
- if(i==-1) return;
- checkedArray2.splice(i,1);
- checkedTextArray2.splice(i,1);
- }
- function checkedHandler2(rowdata)
- {
- if (findCheckedArray2(rowdata.REPORT_TYPE_329) == -1)
- return false;
- return true;
- }
- function checkRowHandler2(checked, data)
- {
- if (checked) addCheckedArray2(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- else removeCheckedArray2(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- }
- function checkAllRowHandler2(checked)
- {
- for (var rowid in this.records)
- {
- if(checked)
- addCheckedArray2(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- else
- removeCheckedArray2(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- }
- }
- /*************************记忆 安全监察部********************************/
- var checkedArray3 = [];
- var checkedTextArray3 = [];
- function findCheckedArray3(id)
- {
- for(var i =0;i<checkedArray3.length;i++)
- {
- if(checkedArray3[i] == id) return i;
- }
- return -1;
- }
- function addCheckedArray3(id,name)
- {
- if(findCheckedArray3(id) == -1){
- checkedArray3.push(id);
- checkedTextArray3.push(name);
- }
- }
- function removeCheckedArray3(id)
- {
- var i = findCheckedArray3(id);
- if(i==-1) return;
- checkedArray3.splice(i,1);
- checkedTextArray3.splice(i,1);
- }
- function checkedHandler3(rowdata)
- {
- if (findCheckedArray3(rowdata.REPORT_TYPE_329) == -1)
- return false;
- return true;
- }
- function checkRowHandler3(checked, data)
- {
- if (checked) addCheckedArray3(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- else removeCheckedArray3(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- }
- function checkAllRowHandler3(checked)
- {
- for (var rowid in this.records)
- {
- if(checked)
- addCheckedArray3(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- else
- removeCheckedArray3(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- }
- }
-
-
- /*************************第二部分****************************/
-
-
-
- /**************************记忆 系统运行部****************************/
- var checkedArray4 = [];
- var checkedTextArray4 = [];
- function findCheckedArray4(id)
- {
- for(var i =0;i<checkedArray4.length;i++)
- {
- if(checkedArray4[i] == id) return i;
- }
- return -1;
- }
- function addCheckedArray4(id,name)
- {
- if(findCheckedArray4(id) == -1){
- checkedArray4.push(id);
- checkedTextArray4.push(name);
- }
- }
- function removeCheckedArray4(id)
- {
- var i = findCheckedArray4(id);
- if(i==-1) return;
- checkedArray4.splice(i,1);
- checkedTextArray4.splice(i,1);
- }
- function checkedHandler4(rowdata)
- {
- if (findCheckedArray4(rowdata.REPORT_TYPE_329) == -1)
- return false;
- return true;
- }
- function checkRowHandler4(checked, data)
- {
- if (checked) addCheckedArray4(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- else removeCheckedArray4(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- }
- function checkAllRowHandler4(checked)
- {
- for (var rowid in this.records)
- {
- if(checked)
- addCheckedArray4(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- else
- removeCheckedArray4(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- }
- }
- /*************************记忆 设备管理部********************************/
- var checkedArray5 = [];
- var checkedTextArray5 = [];
- function findCheckedArray5(id)
- {
- for(var i =0;i<checkedArray5.length;i++)
- {
- if(checkedArray5[i] == id) return i;
- }
- return -1;
- }
- function addCheckedArray5(id,name)
- {
- if(findCheckedArray5(id) == -1){
- checkedArray5.push(id);
- checkedTextArray5.push(name);
- }
- }
- function removeCheckedArray5(id)
- {
- var i = findCheckedArray5(id);
- if(i==-1) return;
- checkedArray5.splice(i,1);
- checkedTextArray5.splice(i,1);
- }
- function checkedHandler5(rowdata)
- {
- if (findCheckedArray5(rowdata.REPORT_TYPE_329) == -1)
- return false;
- return true;
- }
- function checkRowHandler5(checked, data)
- {
- if (checked) addCheckedArray5(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- else removeCheckedArray5(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- }
- function checkAllRowHandler5(checked)
- {
- for (var rowid in this.records)
- {
- if(checked)
- addCheckedArray5(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- else
- removeCheckedArray5(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- }
- }
- /*************************记忆 市场营销部********************************/
- var checkedArray6 = [];
- var checkedTextArray6 = [];
- function findCheckedArray6(id)
- {
- for(var i =0;i<checkedArray6.length;i++)
- {
- if(checkedArray6[i] == id) return i;
- }
- return -1;
- }
- function addCheckedArray6(id,name)
- {
- if(findCheckedArray6(id) == -1){
- checkedArray6.push(id);
- checkedTextArray6.push(name);
- }
- }
- function removeCheckedArray6(id)
- {
- var i = findCheckedArray6(id);
- if(i==-1) return;
- checkedArray6.splice(i,1);
- checkedTextArray6.splice(i,1);
- }
- function checkedHandler6(rowdata)
- {
- if (findCheckedArray6(rowdata.REPORT_TYPE_329) == -1)
- return false;
- return true;
- }
- function checkRowHandler6(checked, data)
- {
- if (checked) addCheckedArray6(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- else removeCheckedArray6(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- }
- function checkAllRowHandler6(checked)
- {
- for (var rowid in this.records)
- {
- if(checked)
- addCheckedArray6(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- else
- removeCheckedArray6(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- }
- }
- /*************************记忆 安全监察部********************************/
- var checkedArray7 = [];
- var checkedTextArray7 = [];
- function findCheckedArray7(id)
- {
- for(var i =0;i<checkedArray7.length;i++)
- {
- if(checkedArray7[i] == id) return i;
- }
- return -1;
- }
- function addCheckedArray7(id,name)
- {
- if(findCheckedArray7(id) == -1){
- checkedArray7.push(id);
- checkedTextArray7.push(name);
- }
- }
- function removeCheckedArray7(id)
- {
- var i = findCheckedArray7(id);
- if(i==-1) return;
- checkedArray7.splice(i,1);
- checkedTextArray7.splice(i,1);
- }
- function checkedHandler7(rowdata)
- {
- if (findCheckedArray7(rowdata.REPORT_TYPE_329) == -1)
- return false;
- return true;
- }
- function checkRowHandler7(checked, data)
- {
- if (checked) addCheckedArray7(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- else removeCheckedArray7(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- }
- function checkAllRowHandler7(checked)
- {
- for (var rowid in this.records)
- {
- if(checked)
- addCheckedArray7(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- else
- removeCheckedArray7(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- }
- }
-
- /*************************记忆 信息部********************************/
- var checkedArraywl = [];
- var checkedTextArraywl = [];
- function findcheckedArraywl(id)
- {
- for(var i =0;i<checkedArraywl.length;i++)
- {
- if(checkedArraywl[i] == id) return i;
- }
- return -1;
- }
- function addcheckedArraywl(id,name)
- {
- if(findcheckedArraywl(id) == -1){
- checkedArraywl.push(id);
- checkedTextArraywl.push(name);
- }
- }
- function removecheckedArraywl(id)
- {
- var i = findcheckedArraywl(id);
- if(i==-1) return;
- checkedArraywl.splice(i,1);
- checkedTextArraywl.splice(i,1);
- }
- function checkedHandlerwl(rowdata)
- {
- if (findcheckedArraywl(rowdata.REPORT_TYPE_329) == -1)
- return false;
- return true;
- }
- function checkRowHandlerwl(checked, data)
- {
- if (checked) addcheckedArraywl(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- else removecheckedArraywl(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- }
- function checkAllRowHandlerwl(checked)
- {
- for (var rowid in this.records)
- {
- if(checked)
- addcheckedArraywl(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- else
- removecheckedArraywl(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- }
- }
-
- /*************************记忆 行政部********************************/
- var checkedArrayxz = [];
- var checkedTextArrayxz = [];
- function findCheckedArrayxz(id)
- {
- for(var i =0;i<checkedArrayxz.length;i++)
- {
- if(checkedArrayxz[i] == id) return i;
- }
- return -1;
- }
- function addCheckedArrayxz(id,name)
- {
- if(findCheckedArrayxz(id) == -1){
- checkedArrayxz.push(id);
- checkedTextArrayxz.push(name);
- }
- }
- function removeCheckedArrayxz(id)
- {
- var i = findCheckedArrayxz(id);
- if(i==-1) return;
- checkedArrayxz.splice(i,1);
- checkedTextArrayxz.splice(i,1);
- }
- function checkedHandlerxz(rowdata)
- {
- if (findCheckedArrayxz(rowdata.REPORT_TYPE_329) == -1)
- return false;
- return true;
- }
- function checkRowHandlerxz(checked, data)
- {
- if (checked) addCheckedArrayxz(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- else removeCheckedArrayxz(data.REPORT_TYPE_329,data.REPORT_NAME_329);
- }
- function checkAllRowHandlerxz(checked)
- {
- for (var rowid in this.records)
- {
- if(checked)
- addCheckedArrayxz(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- else
- removeCheckedArrayxz(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
- }
- }
-
-
-
-
|