74e443a0e38793c38f4814395849beeb9463ce2f.svn-base 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. $(function(){
  2. //getRelevancyInfo(sub_fd_id,SUB_BM_YAXHLB);//初始化存入库表的值
  3. getOrgInfo();//初始化应急组织列表
  4. /** 绑定更多的按钮点击事件 */
  5. });
  6. //取预案的主键
  7. var sub_fd_id ="";
  8. //取页面传过来的预案主键ID : 传过来的预案ID
  9. sub_fd_id = parent.parent.fd_id;
  10. //预案的类型
  11. var SUB_BM_YAXHLB= "";
  12. SUB_BM_YAXHLB = parent.parent.BM_YAXHLB;
  13. var tempValue="";
  14. /**************************拼接类型*************************************************/
  15. //判断细化类型
  16. /**
  17. * 细化类型
  18. * 4、人身事故
  19. * 5、大面积停电事件
  20. * 6、设备事故
  21. * 7、电厂大坝厂房事故
  22. * 8、环境污染
  23. * 9、防风防汛
  24. * 10、地震灾害
  25. * 11、低温雨雪冰冻灾害
  26. * 12、电力供应及客户服务
  27. * 13、生产场所防恐怖袭击
  28. * 14、突发性群体事件
  29. * 15、突发新闻事件
  30. * 16、涉外突发事件
  31. * 17、网络与信息安全
  32. * 18、突发公共卫生
  33. * **/
  34. if(SUB_BM_YAXHLB=="4"){
  35. tempValue="4_5_2";
  36. }else if(SUB_BM_YAXHLB=="5"){
  37. tempValue="5_5_2";
  38. }else if(SUB_BM_YAXHLB=="6"){
  39. tempValue="6_5_2";
  40. }else if(SUB_BM_YAXHLB=="7"){
  41. tempValue="7_5_2";
  42. }else if(SUB_BM_YAXHLB=="8"){
  43. tempValue="8_5_2";
  44. }else if(SUB_BM_YAXHLB=="9"){
  45. tempValue="9_5_2";
  46. }else if(SUB_BM_YAXHLB=="10"){
  47. tempValue="10_5_2";
  48. }else if(SUB_BM_YAXHLB=="11"){
  49. tempValue="11_5_2";
  50. }else if(SUB_BM_YAXHLB=="12"){
  51. tempValue="12_5_2";
  52. }else if(SUB_BM_YAXHLB=="13"){
  53. tempValue="13_5_2";
  54. }else if(SUB_BM_YAXHLB=="14"){
  55. tempValue="14_5_2";
  56. }else if(SUB_BM_YAXHLB=="15"){
  57. tempValue="15_5_2";
  58. }else if(SUB_BM_YAXHLB=="16"){
  59. tempValue="16_5_2";
  60. }else if(SUB_BM_YAXHLB=="17"){
  61. tempValue="17_5_2";
  62. }else if(SUB_BM_YAXHLB=="18"){
  63. tempValue="18_5_2";
  64. }else if(SUB_BM_YAXHLB=="21"){
  65. tempValue="21_5_2";
  66. }else if(SUB_BM_YAXHLB=="22"){
  67. tempValue="22_5_2";
  68. }else if(SUB_BM_YAXHLB=="23"){
  69. tempValue="23_5_2";
  70. }else if(SUB_BM_YAXHLB=="24"){
  71. tempValue="24_5_2";
  72. }
  73. var type = SUB_BM_YAXHLB + "5_2";//拼短信通知的类型
  74. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  75. /*****************************************测试返回数据*************************************************/
  76. //单位ID
  77. var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  78. var loadData;
  79. function getOrgInfo() {
  80. var roleCons = roleButtonArr();
  81. var toolBarOpt2 = {
  82. items:[
  83. //{text: '查看', click: "onView", iconClass: 'view_tem',id:"10003"}
  84. ],
  85. roleCons:roleCons
  86. };
  87. /*********************************************工具条******************************************/
  88. var grid_option1 = {
  89. columns: [
  90. {display : '姓名',name : 'name',align : 'center',width : '20%'},
  91. { display: '一级响应',level1 : 'level1', isAllowHide: false, align: 'center', width:'20%',
  92. render: function (rowdata, rowindex, value, column){
  93. var fabu='';
  94. if(rowdata.level1=="1"){//"1"代表被选中的
  95. fabu = '<span id="1" class="getUserInfo1 hand" title="取消" ></span>';
  96. }else{
  97. fabu = '<span id="1" class="getUserInfo2 hand" title="取消" ></span>';
  98. }
  99. return fabu;
  100. },
  101. },
  102. { display: '二级响应',level2 : 'level2', isAllowHide: false, align: 'center', width:'20%',
  103. render: function (rowdata, rowindex, value, column){
  104. var fabu='';
  105. if(rowdata.level2=="1"){
  106. fabu = '<span id="2" class="getUserInfo1 hand" title="取消" ></span>';
  107. }else{
  108. fabu = '<span id="2" class="getUserInfo2 hand" title="选中" ></span>';
  109. }
  110. return fabu;
  111. },
  112. },
  113. { display: '三级响应',level3 : 'level3', isAllowHide: false, align: 'center', width:'20%',
  114. render: function (rowdata, rowindex, value, column){
  115. var fabu='';
  116. if(rowdata.level3=="1"){
  117. fabu = '<span id="3" class="getUserInfo1 hand" title="取消" ></span>';
  118. }else{
  119. fabu = '<span id="3" class="getUserInfo2 hand" title="选中" ></span>';
  120. }
  121. return fabu;
  122. },
  123. },
  124. { display: '四级响应',level4 : 'level4', isAllowHide: false, align: 'center', width:'20%',
  125. render: function (rowdata, rowindex, value, column){
  126. var fabu='';
  127. if(rowdata.level4=="1"){
  128. fabu = '<span id="4" class="getUserInfo1 hand" title="取消" ></span>';
  129. }else{
  130. fabu = '<span id="4" class="getUserInfo2 hand" title="选中" ></span>';
  131. }
  132. return fabu;
  133. },
  134. }
  135. ],
  136. rownumbers : true,
  137. checkbox : true,
  138. pageSize : 10,
  139. percentWidthMode : true,
  140. isChecked:checkedHandler,
  141. onCheckRow: checkRowHandler,
  142. onCheckAllRow: checkAllRowHandler
  143. };
  144. var options1={
  145. url :$.pathname()+ "/ws/planService/PlanService/queryExpert",
  146. params:{
  147. fdId : sub_fd_id,
  148. gtype:"2",
  149. //gtype:tempValue,
  150. deptId:deptId
  151. },
  152. gridOptions:grid_option1,
  153. singleRecodeOptions:{a:"aa"},
  154. paperOpration:{showInput:"true"},
  155. toolBarOptions:toolBarOpt2
  156. };
  157. org=gridAndSingleRecode=$("#maingrizhuanjia").quickgridAndSingleRecode(options1);
  158. }
  159. $.messager=top.Dialog;