801a8821f7ba51108a07875b20d34de87ce88f6a.svn-base 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256
  1. $.messager=top.Dialog;
  2. /*************************接收预案的类型,根据原类型来判断各个预案该展示什么样的报表*********************************/
  3. var planType = parent.BM_YAXHLB;
  4. /****
  5. * 下面是为了判断预案的细化类别具体值,有些存在预警的,
  6. * 有预警的预案比没有预警的预案多了一层父页面。
  7. * 下面的处理适合有没有预警的预案都能取到预案的细化类别。
  8. * 2016-08-28(徐威)
  9. */
  10. if(planType==undefined){
  11. planType=parent.parent.BM_YAXHLB;
  12. }
  13. var g3;var g4;var g5;var g6; var g;var g7;var g8;var g9; var gwl; var gxz;
  14. /* var condition = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430210') ";//系统运行部
  15. var condition1 = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430211') ";//生产设备部
  16. var condition2 = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430212') ";//市场营销部
  17. var condition3 = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430213') ";//安全监管部
  18. var condition4 = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430210') ";//系统运行部
  19. var condition5 = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430211') ";//生产设备部
  20. var condition6 = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430212') ";//市场营销部
  21. var condition7 = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430213') ";//安全监管部
  22. //信息部,行政
  23. var conditionwl = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430') ";
  24. var conditionxz = "and REPORT_TYPE in (select REPORT_TYPE from BM_MAPFORREPORT where ROLE_ID = 'R002105430') ";*/
  25. /**************************组合多选下拉框********************************/
  26. /**
  27. * 各个预案加载的表,现在是通过应急角色的ID来加载的
  28. * 现在许永山提出来要根据不同的预案加载只有那个预案才有的表,过滤无关的表。
  29. * 下面需要根据具体的预案类型来判断。
  30. */
  31. var anjianbu = "";
  32. var condition ="";
  33. var condition1 = "";
  34. var condition2 = "";
  35. var condition3 = "";
  36. var condition4 = "";
  37. var condition5 = "";
  38. var condition6 = "";
  39. var condition7 = "";
  40. var conditionwl = "";
  41. var conditionxz = "";
  42. if(planType=="4"){
  43. //人身事故应急预案,报表类型为10,9。目前只有安监部填表:伤亡人员明细表,伤亡人员汇总表
  44. condition3 = "and REPORT_TYPE in('9','10')";//安监部
  45. }else if(planType=="5"){
  46. //大面积停电事件
  47. /**
  48. * 系统部:
  49. * 500KV线路跳闸明细;11
  50. * 220KV线路跳闸明细;12
  51. * 220kV以下线路跳闸明细;13
  52. * 变电站失压情况;14
  53. * 累计损失负荷及用户情况;15
  54. * 当期输电线路跳闸情况汇总表;16
  55. * 累计输电线路跳闸情况汇总表17
  56. */
  57. condition= "and REPORT_TYPE in('11','12','13','14','15','16','17')";
  58. /**
  59. * 市场部:
  60. * 供电损失信息;18
  61. */
  62. condition2="and REPORT_TYPE in('18')";
  63. /** 安监部:
  64. * 应急处置信息;19
  65. * */
  66. condition3="and REPORT_TYPE in('19')";
  67. }else if(planType=="6"){
  68. //设备事故,暂时只有生产设备管理部需要填写该表。缺少:受损设备信息填报统计表(表单)
  69. /**
  70. * 生产设备管理部:
  71. * 设备受损及恢复情况统计表;20
  72. * 设备事故事件抢修人员信息填报统计表;21
  73. * 应急人员调动情况统计表;22
  74. * 设备事故事件抢修材料使用情况填报统计表;23
  75. * 应急物资调配情况统计表;24
  76. * 设备事故事件抢修机具使用情况填报统计表;25
  77. * 应急资源需求情况统计表;26
  78. */
  79. condition1="and REPORT_TYPE in('20','21','22','23','24','25','26')";
  80. }else if(planType=="7"){
  81. //电厂大坝厂房事故 ,目前只有生产设备管理部填表
  82. /***
  83. * 生产设备管理部:
  84. * 设备受损及恢复情况统计表;20
  85. * 应急人员调动情况统计表;22
  86. * 应急物资调配情况统计表;24
  87. * 应急资源需求情况统计表;26
  88. */
  89. condition1="and REPORT_TYPE in('20','22','24','26')";
  90. }else if(planType=="8"){
  91. //环境污染
  92. /***
  93. * 系统运行部:
  94. * 受环境污染导致变电站停运及恢复情况统计表(座);31
  95. * 受环境污染导致线路停运及恢复情况统计表(条);32
  96. *
  97. */
  98. condition="and REPORT_TYPE in('31','32')";
  99. /**
  100. * 市场营销部
  101. * 受环境污染导致停电影响的区域及恢复情况统计表;33
  102. * 受环境污染导致停电影响的用户数及恢复情况统计表;34
  103. */
  104. condition2="and REPORT_TYPE in('33','34')";
  105. /**
  106. * 安全监管部:
  107. * 环境污染事故人员装备投入情况;35
  108. */
  109. condition3="and REPORT_TYPE in('35')";
  110. /**
  111. * 生产设备管理部:
  112. * 环境污染事故应急资源需求情况统计表;36
  113. * 环境污染事故应急物资调配情况统计表;37
  114. */
  115. // condition1="and REPORT_TYPE in('36','37')";
  116. condition1="and REPORT_TYPE in('31','32','36','37')";
  117. }else if(planType=="9"){
  118. //防风防汛 台风登陆期间
  119. /**
  120. * 系统运行部:
  121. * 线路停运及恢复情况表;1
  122. * 变电站停运及恢复情况表;2
  123. */
  124. condition="and REPORT_TYPE in('1','2')";
  125. /**
  126. * 设备管理部
  127. * 设备部所有表
  128. */
  129. // condition1="and REPORT_TYPE in('3','4','20','21','22','23','25','36','37','38','26','24')";
  130. condition1="and REPORT_TYPE in('1','2','3','4','20','21','22','23','25','36','37','38','26','24')";
  131. /**
  132. * 市场营销部:
  133. * 供电损失及客户停电情况表;5
  134. * 行政区域停电情况表;6
  135. */
  136. condition2="and REPORT_TYPE in('5','6')";
  137. /**
  138. * 安全监察部
  139. * 安监部所有表
  140. */
  141. condition3="and REPORT_TYPE in('7','8','9','10','19','35','41','42')";
  142. //防风防汛 台风登陆后
  143. /**
  144. * 系统运行部:
  145. * 线路停运及恢复情况;1
  146. * 变电站失压及恢复情况;2
  147. */
  148. condition4="and REPORT_TYPE in('1','2')";
  149. /**
  150. * 市场营销部:
  151. * 供电损失及客户停电情况;5
  152. * 行政区域停电情况;6
  153. */
  154. condition6="and REPORT_TYPE in('5','6')";
  155. /**
  156. * 生产设备管理部:
  157. * 线路倒杆情况;3
  158. * 线路及配变受损情况4
  159. */
  160. // condition5="and REPORT_TYPE in('3','4')";
  161. condition5="and REPORT_TYPE in('1','2','3','4')";
  162. /***
  163. * 安监部:
  164. * 预警发布或响应启动情况;
  165. * 应急资源情况;
  166. */
  167. condition7="and REPORT_TYPE in('7','8')";
  168. }else if(planType=="10"){
  169. //地震灾害 地震发生7小时内
  170. /**
  171. * 系统运行部:
  172. * 线路停运及恢复情况表;1
  173. * 变电站停运及恢复情况表;2
  174. */
  175. condition="and REPORT_TYPE in('1','2')";
  176. /**
  177. * 市场营销部:
  178. * 供电损失及客户停电情况表;5
  179. */
  180. condition2="and REPORT_TYPE in('5','6')";
  181. //地震灾害 地震发生8小时以后
  182. /**
  183. * 系统运行部
  184. * 线路停运及恢复情况表;1
  185. * 变电站停运及恢复情况表;2
  186. */
  187. condition4="and REPORT_TYPE in('1','2')";
  188. /**
  189. * 市场营销部:
  190. * 供电损失及客户停电情况表;5
  191. * 行政区域停电情况表6
  192. */
  193. condition6="and REPORT_TYPE in('5','6')";
  194. /**
  195. * 生产设备管理部:
  196. * 线路倒杆情况统计表;20
  197. * 设备受损及恢复情况统计表;3
  198. * 构建筑物受损情况;38
  199. */
  200. // condition5="and REPORT_TYPE in('20','3','38')";
  201. condition5="and REPORT_TYPE in('1','2','20','3','38')";
  202. /**
  203. * 安监部:
  204. * 应急资源情况表;8
  205. */
  206. condition7="and REPORT_TYPE in('8')";
  207. }else if(planType=="11"){
  208. //低温冰冻灾害 按照响应的表来
  209. /**
  210. * 系统运行部:
  211. * 线路停运及恢复情况表;1
  212. * 变电站停运及恢复情况表;2
  213. */
  214. condition = "and REPORT_TYPE in('1','2')";
  215. /**
  216. * 生产设备管理部:
  217. * 线路倒杆情况统计表;3
  218. * 线路及配变受损情况表;4
  219. *
  220. */
  221. // condition1 = "and REPORT_TYPE in('3','4')";
  222. condition1 = "and REPORT_TYPE in('1','2','3','4')";
  223. /**
  224. * 市场营销部:
  225. * 供电损失及客户停电情况表;5
  226. * 行政区域停电情况表;6
  227. */
  228. condition2="and REPORT_TYPE in('5','6')";
  229. /**
  230. * 安全监察部:
  231. * 预警发布或响应启动情况表;7
  232. * 应急资源情况表;8
  233. */
  234. condition3="and REPORT_TYPE in('7','8')";
  235. }else if(planType=="12"){
  236. //电力供应及客户服务
  237. /**
  238. * 市场部:
  239. * 受停电影响行政区域恢复情况统计表:报表暂时没有,需要龙志伟那里提供报表类型的值
  240. * 受停电影响的工业和居民用户数及恢复情况统计表;39
  241. */
  242. condition2="and REPORT_TYPE in('39')";//受停电影响行政区域恢复情况统计表:报表暂时没有,需要龙志伟那里提供报表类型的值
  243. /**
  244. * 系统运行部:
  245. * 电力电量情况;40
  246. */
  247. condition = "and REPORT_TYPE in('40')";
  248. /**
  249. * 安全监察部:
  250. * 应急发电机(车)配置情况 41
  251. */
  252. condition3 = "and REPORT_TYPE in('41')";
  253. }else if(planType=="13"){
  254. //生产场所防恐怖袭击
  255. //TODO 由于没有行政部门角色。也没有该表,需要龙志伟那边按照保供电填报手册将表做好后告诉这边报表的类型是什么。
  256. //需要补上 2016-08-28 徐威
  257. }else if(planType=="14"){
  258. //突发性群体事件
  259. //TODO 新的保供电填报手册里无表要填。
  260. //暂不需要补上。 2016-08-28 徐威
  261. }else if(planType=="15"){
  262. //突发新闻事件
  263. //TODO 新的保供电手册里没有表需要填。
  264. //暂不需要补上。 2016-08-28
  265. }else if(planType=="16"){
  266. //涉外突发事件
  267. //TODO 新的保供电手册里没有表需要填。
  268. //暂不需要补上。 2016-08-28
  269. }else if(planType=="17"){
  270. //网络与信息安全
  271. //TODO 新的保供电手册里要求 信息管理部门填写: 业务系统受损情况统计表;网络及终端受损情况统计表;应急处置情况统计表;
  272. //系统暂时没有这几张表,需要龙志伟补上后告诉我们。2016-08-28
  273. }else if(planType=="18"){
  274. //突发公共卫生
  275. //TODO 需要行政部门填写:应急物资、人员调配(使用)情况;应急资源需求情况统计表;
  276. //系统暂时没有行政部门角色,小龙那边建立好后告诉这边补上。
  277. }
  278. var loadParams = {
  279. "listId" : '329',
  280. "condition" : condition
  281. };
  282. var loadParams1 = {
  283. "listId" : '329',
  284. "condition" : condition1
  285. };
  286. var loadParams2 = {
  287. "listId" : '329',
  288. "condition" : condition2
  289. };
  290. var loadParams3 = {
  291. "listId" : '329',
  292. "condition" : condition3
  293. };
  294. var loadParams4 = {
  295. "listId" : '329',
  296. "condition" : condition4
  297. };
  298. var loadParams5 = {
  299. "listId" : '329',
  300. "condition" : condition5
  301. };
  302. var loadParams6 = {
  303. "listId" : '329',
  304. "condition" : condition6
  305. };
  306. var loadParams7 = {
  307. "listId" : '329',
  308. "condition" : condition7
  309. };
  310. var loadParamswl = {
  311. "listId" : '329',
  312. "condition" : conditionwl
  313. };
  314. var loadParamsxz = {
  315. "listId" : '329',
  316. "condition" : conditionxz
  317. };
  318. function initComplete(){
  319. g3 = $("#customContent3").quiGrid({
  320. columns: [
  321. { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
  322. { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
  323. ],
  324. url :$.pathname() + '/ws/crud/CRUDService/getTabList',
  325. params : loadParams,
  326. rownumbers:true,
  327. checkbox:true,
  328. // height: '100%',
  329. // width:"100%",
  330. usePager : false,
  331. percentWidthMode:true,
  332. showPageInfo:false,
  333. selectRowButtonOnly:false,
  334. isChecked:checkedHandler,
  335. onCheckRow: checkRowHandler,
  336. onCheckAllRow: checkAllRowHandler
  337. });
  338. g4 = $("#customContent4").quiGrid({
  339. columns: [
  340. { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
  341. { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
  342. ],
  343. url :$.pathname() + '/ws/crud/CRUDService/getTabList',
  344. params : loadParams1,
  345. rownumbers:true,
  346. checkbox:true,
  347. // height: '100%',
  348. // width:"100%",
  349. usePager : false,
  350. percentWidthMode:true,
  351. showPageInfo:false,
  352. selectRowButtonOnly:false,
  353. isChecked:checkedHandler1,
  354. onCheckRow: checkRowHandler1,
  355. onCheckAllRow: checkAllRowHandler1
  356. });
  357. g5 = $("#customContent5").quiGrid({
  358. columns: [
  359. { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
  360. { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
  361. ],
  362. url :$.pathname() + '/ws/crud/CRUDService/getTabList',
  363. params : loadParams2,
  364. rownumbers:true,
  365. checkbox:true,
  366. // height: '100%',
  367. // width:"100%",
  368. usePager : false,
  369. percentWidthMode:true,
  370. showPageInfo:false,
  371. selectRowButtonOnly:false,
  372. isChecked:checkedHandler2,
  373. onCheckRow: checkRowHandler2,
  374. onCheckAllRow: checkAllRowHandler2
  375. });
  376. g6 = $("#customContent6").quiGrid({
  377. columns: [
  378. { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
  379. { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
  380. ],
  381. url :$.pathname() + '/ws/crud/CRUDService/getTabList',
  382. params : loadParams3,
  383. rownumbers:true,
  384. checkbox:true,
  385. // height: '100%',
  386. // width:"100%",
  387. usePager : false,
  388. percentWidthMode:true,
  389. showPageInfo:false,
  390. selectRowButtonOnly:false,
  391. isChecked:checkedHandler3,
  392. onCheckRow: checkRowHandler3,
  393. onCheckAllRow: checkAllRowHandler3
  394. });
  395. g = $("#customContent1").quiGrid({
  396. columns: [
  397. { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
  398. { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
  399. ],
  400. url :$.pathname() + '/ws/crud/CRUDService/getTabList',
  401. params : loadParams4,
  402. rownumbers:true,
  403. checkbox:true,
  404. // height: '100%',
  405. // width:"100%",
  406. usePager : false,
  407. percentWidthMode:true,
  408. showPageInfo:false,
  409. selectRowButtonOnly:false,
  410. isChecked:checkedHandler4,
  411. onCheckRow: checkRowHandler4,
  412. onCheckAllRow: checkAllRowHandler4
  413. });
  414. g7 = $("#customContent7").quiGrid({
  415. columns: [
  416. { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
  417. { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
  418. ],
  419. url :$.pathname() + '/ws/crud/CRUDService/getTabList',
  420. params : loadParams5,
  421. rownumbers:true,
  422. checkbox:true,
  423. // height: '100%',
  424. // width:"100%",
  425. usePager : false,
  426. percentWidthMode:true,
  427. showPageInfo:false,
  428. selectRowButtonOnly:false,
  429. isChecked:checkedHandler5,
  430. onCheckRow: checkRowHandler5,
  431. onCheckAllRow: checkAllRowHandler5
  432. });
  433. g8 = $("#customContent8").quiGrid({
  434. columns: [
  435. { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
  436. { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
  437. ],
  438. url :$.pathname() + '/ws/crud/CRUDService/getTabList',
  439. params : loadParams6,
  440. rownumbers:true,
  441. checkbox:true,
  442. // height: '100%',
  443. // width:"100%",
  444. usePager : false,
  445. percentWidthMode:true,
  446. showPageInfo:false,
  447. selectRowButtonOnly:false,
  448. isChecked:checkedHandler6,
  449. onCheckRow: checkRowHandler6,
  450. onCheckAllRow: checkAllRowHandler6
  451. });
  452. g9 = $("#customContent9").quiGrid({
  453. columns: [
  454. { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
  455. { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
  456. ],
  457. url :$.pathname() + '/ws/crud/CRUDService/getTabList',
  458. params : loadParams7,
  459. rownumbers:true,
  460. checkbox:true,
  461. // height: '100%',
  462. // width:"100%",
  463. usePager : false,
  464. percentWidthMode:true,
  465. showPageInfo:false,
  466. selectRowButtonOnly:false,
  467. isChecked:checkedHandler7,
  468. onCheckRow: checkRowHandler7,
  469. onCheckAllRow: checkAllRowHandler7
  470. });
  471. gwl = $("#customContentwl").quiGrid({
  472. columns: [
  473. { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
  474. { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
  475. ],
  476. url :$.pathname() + '/ws/crud/CRUDService/getTabList',
  477. params : loadParamswl,
  478. rownumbers:true,
  479. checkbox:true,
  480. // height: '100%',
  481. // width:"100%",
  482. usePager : false,
  483. percentWidthMode:true,
  484. showPageInfo:false,
  485. selectRowButtonOnly:false,
  486. isChecked:checkedHandlerwl,
  487. onCheckRow: checkRowHandlerwl,
  488. onCheckAllRow: checkAllRowHandlerwl
  489. });
  490. gxz = $("#customContentxz").quiGrid({
  491. columns: [
  492. { display: '报表名称', name: 'REPORT_NAME_329', align: 'center', width: "400px"},
  493. { display: '报表类型', name: 'REPORT_TYPE_329', align: 'center', width: "300px"}
  494. ],
  495. url :$.pathname() + '/ws/crud/CRUDService/getTabList',
  496. params : loadParamsxz,
  497. rownumbers:true,
  498. checkbox:true,
  499. // height: '100%',
  500. // width:"100%",
  501. usePager : false,
  502. percentWidthMode:true,
  503. showPageInfo:false,
  504. selectRowButtonOnly:false,
  505. isChecked:checkedHandlerxz,
  506. onCheckRow: checkRowHandlerxz,
  507. onCheckAllRow: checkAllRowHandlerxz
  508. });
  509. /*************系统****************/
  510. $("#selectCostom3").bind("boxOpen",function(){
  511. g3.resetHeight();
  512. g3.resetWidth();
  513. });
  514. $("#selectCostom3").bind("boxClose",function(){
  515. $("#selectCostom3").setValue(checkedArray,checkedTextArray.join(";"));
  516. });
  517. /**************设备***************/
  518. $("#selectCostom4").bind("boxOpen",function(){
  519. g4.resetHeight();
  520. g4.resetWidth();
  521. });
  522. $("#selectCostom4").bind("boxClose",function(){
  523. $("#selectCostom4").setValue(checkedArray1,checkedTextArray1.join(";"));
  524. });
  525. /*************市场****************/
  526. $("#selectCostom5").bind("boxOpen",function(){
  527. g5.resetHeight();
  528. g5.resetWidth();
  529. });
  530. $("#selectCostom5").bind("boxClose",function(){
  531. $("#selectCostom5").setValue(checkedArray2,checkedTextArray2.join(";"));
  532. });
  533. /**************安监***************/
  534. $("#selectCostom6").bind("boxOpen",function(){
  535. g6.resetHeight();
  536. g6.resetWidth();
  537. });
  538. $("#selectCostom6").bind("boxClose",function(){
  539. $("#selectCostom6").setValue(checkedArray3,checkedTextArray3.join(";"));
  540. });
  541. /***************第二部分****************/
  542. /*************系统****************/
  543. $("#selectCostom1").bind("boxOpen",function(){
  544. g.resetHeight();
  545. g.resetWidth();
  546. });
  547. $("#selectCostom1").bind("boxClose",function(){
  548. $("#selectCostom1").setValue(checkedArray4,checkedTextArray4.join(";"));
  549. });
  550. /**************设备***************/
  551. $("#selectCostom7").bind("boxOpen",function(){
  552. g7.resetHeight();
  553. g7.resetWidth();
  554. });
  555. $("#selectCostom7").bind("boxClose",function(){
  556. $("#selectCostom7").setValue(checkedArray5,checkedTextArray5.join(";"));
  557. });
  558. /*************市场****************/
  559. $("#selectCostom8").bind("boxOpen",function(){
  560. g8.resetHeight();
  561. g8.resetWidth();
  562. });
  563. $("#selectCostom8").bind("boxClose",function(){
  564. $("#selectCostom8").setValue(checkedArray6,checkedTextArray6.join(";"));
  565. });
  566. /**************安监***************/
  567. $("#selectCostom9").bind("boxOpen",function(){
  568. g9.resetHeight();
  569. g9.resetWidth();
  570. });
  571. $("#selectCostom9").bind("boxClose",function(){
  572. $("#selectCostom9").setValue(checkedArray7,checkedTextArray7.join(";"));
  573. });
  574. /**************网络信息部***************/
  575. $("#selectCostomwl").bind("boxOpen",function(){
  576. gwl.resetHeight();
  577. gwl.resetWidth();
  578. });
  579. $("#selectCostomwl").bind("boxClose",function(){
  580. $("#selectCostomwl").setValue(checkedArraywl,checkedTextArraywl.join(";"));
  581. });
  582. /**************行政部***************/
  583. $("#selectCostomxz").bind("boxOpen",function(){
  584. gxz.resetHeight();
  585. gxz.resetWidth();
  586. });
  587. $("#selectCostomxz").bind("boxClose",function(){
  588. $("#selectCostomxz").setValue(checkedArrayxz,checkedTextArrayxz.join(";"));
  589. });
  590. }
  591. /**************************记忆 系统运行部****************************/
  592. var checkedArray = [];
  593. var checkedTextArray = [];
  594. function findCheckedArray(id)
  595. {
  596. for(var i =0;i<checkedArray.length;i++)
  597. {
  598. if(checkedArray[i] == id) return i;
  599. }
  600. return -1;
  601. }
  602. function addCheckedArray(id,name)
  603. {
  604. if(findCheckedArray(id) == -1){
  605. checkedArray.push(id);
  606. checkedTextArray.push(name);
  607. }
  608. }
  609. function removeCheckedArray(id)
  610. {
  611. var i = findCheckedArray(id);
  612. if(i==-1) return;
  613. checkedArray.splice(i,1);
  614. checkedTextArray.splice(i,1);
  615. }
  616. function checkedHandler(rowdata)
  617. {
  618. if (findCheckedArray(rowdata.REPORT_TYPE_329) == -1)
  619. return false;
  620. return true;
  621. }
  622. function checkRowHandler(checked, data)
  623. {
  624. if (checked) addCheckedArray(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  625. else removeCheckedArray(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  626. }
  627. function checkAllRowHandler(checked)
  628. {
  629. for (var rowid in this.records)
  630. {
  631. if(checked)
  632. addCheckedArray(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  633. else
  634. removeCheckedArray(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  635. }
  636. }
  637. /*************************记忆 设备管理部********************************/
  638. var checkedArray1 = [];
  639. var checkedTextArray1 = [];
  640. function findCheckedArray1(id)
  641. {
  642. for(var i =0;i<checkedArray1.length;i++)
  643. {
  644. if(checkedArray1[i] == id) return i;
  645. }
  646. return -1;
  647. }
  648. function addCheckedArray1(id,name)
  649. {
  650. if(findCheckedArray1(id) == -1){
  651. checkedArray1.push(id);
  652. checkedTextArray1.push(name);
  653. }
  654. }
  655. function removeCheckedArray1(id)
  656. {
  657. var i = findCheckedArray1(id);
  658. if(i==-1) return;
  659. checkedArray1.splice(i,1);
  660. checkedTextArray1.splice(i,1);
  661. }
  662. function checkedHandler1(rowdata)
  663. {
  664. if (findCheckedArray1(rowdata.REPORT_TYPE_329) == -1)
  665. return false;
  666. return true;
  667. }
  668. function checkRowHandler1(checked, data)
  669. {
  670. if (checked) addCheckedArray1(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  671. else removeCheckedArray1(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  672. }
  673. function checkAllRowHandler1(checked)
  674. {
  675. for (var rowid in this.records)
  676. {
  677. if(checked)
  678. addCheckedArray1(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  679. else
  680. removeCheckedArray1(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  681. }
  682. }
  683. /*************************记忆 市场营销部********************************/
  684. var checkedArray2 = [];
  685. var checkedTextArray2 = [];
  686. function findCheckedArray2(id)
  687. {
  688. for(var i =0;i<checkedArray2.length;i++)
  689. {
  690. if(checkedArray2[i] == id) return i;
  691. }
  692. return -1;
  693. }
  694. function addCheckedArray2(id,name)
  695. {
  696. if(findCheckedArray2(id) == -1){
  697. checkedArray2.push(id);
  698. checkedTextArray2.push(name);
  699. }
  700. }
  701. function removeCheckedArray2(id)
  702. {
  703. var i = findCheckedArray2(id);
  704. if(i==-1) return;
  705. checkedArray2.splice(i,1);
  706. checkedTextArray2.splice(i,1);
  707. }
  708. function checkedHandler2(rowdata)
  709. {
  710. if (findCheckedArray2(rowdata.REPORT_TYPE_329) == -1)
  711. return false;
  712. return true;
  713. }
  714. function checkRowHandler2(checked, data)
  715. {
  716. if (checked) addCheckedArray2(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  717. else removeCheckedArray2(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  718. }
  719. function checkAllRowHandler2(checked)
  720. {
  721. for (var rowid in this.records)
  722. {
  723. if(checked)
  724. addCheckedArray2(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  725. else
  726. removeCheckedArray2(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  727. }
  728. }
  729. /*************************记忆 安全监察部********************************/
  730. var checkedArray3 = [];
  731. var checkedTextArray3 = [];
  732. function findCheckedArray3(id)
  733. {
  734. for(var i =0;i<checkedArray3.length;i++)
  735. {
  736. if(checkedArray3[i] == id) return i;
  737. }
  738. return -1;
  739. }
  740. function addCheckedArray3(id,name)
  741. {
  742. if(findCheckedArray3(id) == -1){
  743. checkedArray3.push(id);
  744. checkedTextArray3.push(name);
  745. }
  746. }
  747. function removeCheckedArray3(id)
  748. {
  749. var i = findCheckedArray3(id);
  750. if(i==-1) return;
  751. checkedArray3.splice(i,1);
  752. checkedTextArray3.splice(i,1);
  753. }
  754. function checkedHandler3(rowdata)
  755. {
  756. if (findCheckedArray3(rowdata.REPORT_TYPE_329) == -1)
  757. return false;
  758. return true;
  759. }
  760. function checkRowHandler3(checked, data)
  761. {
  762. if (checked) addCheckedArray3(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  763. else removeCheckedArray3(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  764. }
  765. function checkAllRowHandler3(checked)
  766. {
  767. for (var rowid in this.records)
  768. {
  769. if(checked)
  770. addCheckedArray3(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  771. else
  772. removeCheckedArray3(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  773. }
  774. }
  775. /*************************第二部分****************************/
  776. /**************************记忆 系统运行部****************************/
  777. var checkedArray4 = [];
  778. var checkedTextArray4 = [];
  779. function findCheckedArray4(id)
  780. {
  781. for(var i =0;i<checkedArray4.length;i++)
  782. {
  783. if(checkedArray4[i] == id) return i;
  784. }
  785. return -1;
  786. }
  787. function addCheckedArray4(id,name)
  788. {
  789. if(findCheckedArray4(id) == -1){
  790. checkedArray4.push(id);
  791. checkedTextArray4.push(name);
  792. }
  793. }
  794. function removeCheckedArray4(id)
  795. {
  796. var i = findCheckedArray4(id);
  797. if(i==-1) return;
  798. checkedArray4.splice(i,1);
  799. checkedTextArray4.splice(i,1);
  800. }
  801. function checkedHandler4(rowdata)
  802. {
  803. if (findCheckedArray4(rowdata.REPORT_TYPE_329) == -1)
  804. return false;
  805. return true;
  806. }
  807. function checkRowHandler4(checked, data)
  808. {
  809. if (checked) addCheckedArray4(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  810. else removeCheckedArray4(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  811. }
  812. function checkAllRowHandler4(checked)
  813. {
  814. for (var rowid in this.records)
  815. {
  816. if(checked)
  817. addCheckedArray4(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  818. else
  819. removeCheckedArray4(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  820. }
  821. }
  822. /*************************记忆 设备管理部********************************/
  823. var checkedArray5 = [];
  824. var checkedTextArray5 = [];
  825. function findCheckedArray5(id)
  826. {
  827. for(var i =0;i<checkedArray5.length;i++)
  828. {
  829. if(checkedArray5[i] == id) return i;
  830. }
  831. return -1;
  832. }
  833. function addCheckedArray5(id,name)
  834. {
  835. if(findCheckedArray5(id) == -1){
  836. checkedArray5.push(id);
  837. checkedTextArray5.push(name);
  838. }
  839. }
  840. function removeCheckedArray5(id)
  841. {
  842. var i = findCheckedArray5(id);
  843. if(i==-1) return;
  844. checkedArray5.splice(i,1);
  845. checkedTextArray5.splice(i,1);
  846. }
  847. function checkedHandler5(rowdata)
  848. {
  849. if (findCheckedArray5(rowdata.REPORT_TYPE_329) == -1)
  850. return false;
  851. return true;
  852. }
  853. function checkRowHandler5(checked, data)
  854. {
  855. if (checked) addCheckedArray5(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  856. else removeCheckedArray5(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  857. }
  858. function checkAllRowHandler5(checked)
  859. {
  860. for (var rowid in this.records)
  861. {
  862. if(checked)
  863. addCheckedArray5(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  864. else
  865. removeCheckedArray5(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  866. }
  867. }
  868. /*************************记忆 市场营销部********************************/
  869. var checkedArray6 = [];
  870. var checkedTextArray6 = [];
  871. function findCheckedArray6(id)
  872. {
  873. for(var i =0;i<checkedArray6.length;i++)
  874. {
  875. if(checkedArray6[i] == id) return i;
  876. }
  877. return -1;
  878. }
  879. function addCheckedArray6(id,name)
  880. {
  881. if(findCheckedArray6(id) == -1){
  882. checkedArray6.push(id);
  883. checkedTextArray6.push(name);
  884. }
  885. }
  886. function removeCheckedArray6(id)
  887. {
  888. var i = findCheckedArray6(id);
  889. if(i==-1) return;
  890. checkedArray6.splice(i,1);
  891. checkedTextArray6.splice(i,1);
  892. }
  893. function checkedHandler6(rowdata)
  894. {
  895. if (findCheckedArray6(rowdata.REPORT_TYPE_329) == -1)
  896. return false;
  897. return true;
  898. }
  899. function checkRowHandler6(checked, data)
  900. {
  901. if (checked) addCheckedArray6(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  902. else removeCheckedArray6(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  903. }
  904. function checkAllRowHandler6(checked)
  905. {
  906. for (var rowid in this.records)
  907. {
  908. if(checked)
  909. addCheckedArray6(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  910. else
  911. removeCheckedArray6(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  912. }
  913. }
  914. /*************************记忆 安全监察部********************************/
  915. var checkedArray7 = [];
  916. var checkedTextArray7 = [];
  917. function findCheckedArray7(id)
  918. {
  919. for(var i =0;i<checkedArray7.length;i++)
  920. {
  921. if(checkedArray7[i] == id) return i;
  922. }
  923. return -1;
  924. }
  925. function addCheckedArray7(id,name)
  926. {
  927. if(findCheckedArray7(id) == -1){
  928. checkedArray7.push(id);
  929. checkedTextArray7.push(name);
  930. }
  931. }
  932. function removeCheckedArray7(id)
  933. {
  934. var i = findCheckedArray7(id);
  935. if(i==-1) return;
  936. checkedArray7.splice(i,1);
  937. checkedTextArray7.splice(i,1);
  938. }
  939. function checkedHandler7(rowdata)
  940. {
  941. if (findCheckedArray7(rowdata.REPORT_TYPE_329) == -1)
  942. return false;
  943. return true;
  944. }
  945. function checkRowHandler7(checked, data)
  946. {
  947. if (checked) addCheckedArray7(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  948. else removeCheckedArray7(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  949. }
  950. function checkAllRowHandler7(checked)
  951. {
  952. for (var rowid in this.records)
  953. {
  954. if(checked)
  955. addCheckedArray7(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  956. else
  957. removeCheckedArray7(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  958. }
  959. }
  960. /*************************记忆 信息部********************************/
  961. var checkedArraywl = [];
  962. var checkedTextArraywl = [];
  963. function findcheckedArraywl(id)
  964. {
  965. for(var i =0;i<checkedArraywl.length;i++)
  966. {
  967. if(checkedArraywl[i] == id) return i;
  968. }
  969. return -1;
  970. }
  971. function addcheckedArraywl(id,name)
  972. {
  973. if(findcheckedArraywl(id) == -1){
  974. checkedArraywl.push(id);
  975. checkedTextArraywl.push(name);
  976. }
  977. }
  978. function removecheckedArraywl(id)
  979. {
  980. var i = findcheckedArraywl(id);
  981. if(i==-1) return;
  982. checkedArraywl.splice(i,1);
  983. checkedTextArraywl.splice(i,1);
  984. }
  985. function checkedHandlerwl(rowdata)
  986. {
  987. if (findcheckedArraywl(rowdata.REPORT_TYPE_329) == -1)
  988. return false;
  989. return true;
  990. }
  991. function checkRowHandlerwl(checked, data)
  992. {
  993. if (checked) addcheckedArraywl(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  994. else removecheckedArraywl(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  995. }
  996. function checkAllRowHandlerwl(checked)
  997. {
  998. for (var rowid in this.records)
  999. {
  1000. if(checked)
  1001. addcheckedArraywl(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  1002. else
  1003. removecheckedArraywl(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  1004. }
  1005. }
  1006. /*************************记忆 行政部********************************/
  1007. var checkedArrayxz = [];
  1008. var checkedTextArrayxz = [];
  1009. function findCheckedArrayxz(id)
  1010. {
  1011. for(var i =0;i<checkedArrayxz.length;i++)
  1012. {
  1013. if(checkedArrayxz[i] == id) return i;
  1014. }
  1015. return -1;
  1016. }
  1017. function addCheckedArrayxz(id,name)
  1018. {
  1019. if(findCheckedArrayxz(id) == -1){
  1020. checkedArrayxz.push(id);
  1021. checkedTextArrayxz.push(name);
  1022. }
  1023. }
  1024. function removeCheckedArrayxz(id)
  1025. {
  1026. var i = findCheckedArrayxz(id);
  1027. if(i==-1) return;
  1028. checkedArrayxz.splice(i,1);
  1029. checkedTextArrayxz.splice(i,1);
  1030. }
  1031. function checkedHandlerxz(rowdata)
  1032. {
  1033. if (findCheckedArrayxz(rowdata.REPORT_TYPE_329) == -1)
  1034. return false;
  1035. return true;
  1036. }
  1037. function checkRowHandlerxz(checked, data)
  1038. {
  1039. if (checked) addCheckedArrayxz(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  1040. else removeCheckedArrayxz(data.REPORT_TYPE_329,data.REPORT_NAME_329);
  1041. }
  1042. function checkAllRowHandlerxz(checked)
  1043. {
  1044. for (var rowid in this.records)
  1045. {
  1046. if(checked)
  1047. addCheckedArrayxz(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  1048. else
  1049. removeCheckedArrayxz(this.records[rowid]['REPORT_TYPE_329'],this.records[rowid]['REPORT_NAME_329']);
  1050. }
  1051. }