5f493c749e393bf1a5a5b7c2bfcf2fa5d564d0bc.svn-base 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. $(function(){
  2. $("#titlename").html(parent.titlename);
  3. //getRelevancyInfo(sub_fd_id,SUB_BM_YAXHLB);//初始化存入库表的值
  4. getOrgInfo();//初始化应急组织列表
  5. });
  6. //取预案的主键
  7. var sub_fd_id ="";
  8. //取页面传过来的预案主键ID : 传过来的预案ID
  9. sub_fd_id = parent.fd_id;
  10. //预案的类型
  11. var SUB_BM_YAXHLB= "";
  12. SUB_BM_YAXHLB = 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 condition = "IS_DEL='0' and filler1='"+sub_fd_id+"' and grade_type='2'";
  74. //列表加载参数
  75. var loadParams = {
  76. "listId" : '215',
  77. "condition" : condition,
  78. direction:'DESC',
  79. sort: 'UPDATEDATE'
  80. };
  81. var type = SUB_BM_YAXHLB + "5_2";//拼短信通知的类型
  82. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  83. /*****************************************测试返回数据*************************************************/
  84. //单位ID
  85. var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  86. var loadData;
  87. function getOrgInfo() {
  88. var roleCons = roleButtonArr();
  89. var toolBarOpt2 = {
  90. items:[
  91. //{text: '查看', click: "onView", iconClass: 'view_tem',id:"10003"}
  92. ],
  93. roleCons:roleCons
  94. };
  95. /*********************************************工具条******************************************/
  96. var grid_option1 = {
  97. columns: [
  98. {display : '队伍名称',name : 'name',align : 'center',width : '20%'},
  99. { display: '一级响应',level1 : 'level1', isAllowHide: false, align: 'center', width:'20%',
  100. render: function (rowdata, rowindex, value, column){
  101. var fabu='';
  102. if(rowdata.level1=="1"){//"1"代表被选中的
  103. fabu = '<span id="1" class="getUserInfo1 hand" title="取消" ></span>';
  104. }else{
  105. fabu = '<span id="1" class="getUserInfo2 hand" title="选中" ></span>';
  106. }
  107. return fabu;
  108. },
  109. },
  110. { display: '二级响应',level2 : 'level2', isAllowHide: false, align: 'center', width:'20%',
  111. render: function (rowdata, rowindex, value, column){
  112. var fabu='';
  113. if(rowdata.level2=="1"){
  114. fabu = '<span id="2" class="getUserInfo1 hand" title="取消" ></span>';
  115. }else{
  116. fabu = '<span id="2" class="getUserInfo2 hand" title="选中" ></span>';
  117. }
  118. return fabu;
  119. },
  120. },
  121. { display: '三级响应',level3 : 'level3', isAllowHide: false, align: 'center', width:'20%',
  122. render: function (rowdata, rowindex, value, column){
  123. var fabu='';
  124. if(rowdata.level3=="1"){
  125. fabu = '<span id="3" class="getUserInfo1 hand" title="取消" ></span>';
  126. }else{
  127. fabu = '<span id="3" class="getUserInfo2 hand" title="选中" ></span>';
  128. }
  129. return fabu;
  130. },
  131. },
  132. { display: '四级响应',level4 : 'level4', isAllowHide: false, align: 'center', width:'20%',
  133. render: function (rowdata, rowindex, value, column){
  134. var fabu='';
  135. if(rowdata.level4=="1"){
  136. fabu = '<span id="4" class="getUserInfo1 hand" title="取消" ></span>';
  137. }else{
  138. fabu = '<span id="4" class="getUserInfo2 hand" title="选中" ></span>';
  139. }
  140. return fabu;
  141. },
  142. }
  143. ],
  144. rownumbers : true,
  145. checkbox : false,
  146. pageSize : 10,
  147. percentWidthMode : true,
  148. isChecked:checkedHandler,
  149. onCheckRow: checkRowHandler,
  150. onCheckAllRow: checkAllRowHandler
  151. };
  152. var options1={
  153. url :$.pathname()+ "/ws/planService/PlanService/queryTeam",
  154. params:{
  155. fdId : sub_fd_id,
  156. gtype:"2",
  157. //gtype:tempValue,
  158. deptId:deptId
  159. },
  160. gridOptions:grid_option1,
  161. singleRecodeOptions:{a:"aa"},
  162. paperOpration:{showInput:"true"},
  163. toolBarOptions:toolBarOpt2
  164. };
  165. org=gridAndSingleRecode=$("#maingritream").quickgridAndSingleRecode(options1);
  166. }
  167. $.messager=top.Dialog;