61aa1af565c497c84ffe9a3549eed974fdc8ff7c.svn-base 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>值班</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <!--框架必需start-->
  7. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
  8. <!--框架必需start-->
  9. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
  10. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/framework.js"></script>
  11. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
  12. <link rel="stylesheet" type="text/css" href="/nwyj/scripts/qui/libs/css/import_basic.css" />
  13. <link href="/nwyj/scripts/qui/libs/skins/flatBlue/style.css" rel="stylesheet" type="text/css"/>
  14. <!--框架必需end-->
  15. <!--数据表格start-->
  16. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/table/quiGrid.js" ></script>
  17. <!--数据表格end-->
  18. <!-- 扩展工具js -->
  19. <script type="text/javascript" src="/nwyj/scripts/jquery/plugins/jquery.extension.util.js"></script>
  20. <!--消息提示start-->
  21. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/popup/messager.js"></script>
  22. <!--设置首页高度 star -->
  23. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/system/right/ReSetIdxHeight.js" ></script>
  24. </head>
  25. <style>
  26. html,body{
  27. margin: 0 auto;
  28. width: 100%;
  29. /*min-height:100%!important;*/
  30. height: auto;
  31. }
  32. /**表格*/
  33. .l-grid-header {
  34. border-bottom: 1px solid #c7c6c6;
  35. height: 32px;
  36. line-height: 120%!important;
  37. background:#e7e9e9 !important;
  38. overflow: hidden;
  39. width: 100%;
  40. }
  41. .l-grid-row-cell {
  42. border-right: 1px solid #c7c6c6;
  43. border-bottom: 1px solid #c7c6c6;
  44. text-align: center;
  45. }
  46. .l-grid-hd-cell {
  47. padding: 0;
  48. margin: 0;
  49. overflow: hidden;
  50. border-right: 1px solid #c7c6c6;
  51. text-align: center;
  52. }
  53. /**表格*/
  54. .duty_grid_cont{
  55. width:98%;
  56. height: 100%;
  57. text-align: center;
  58. margin-left: 1%;
  59. margin-right: 1%;
  60. }
  61. .duty_grid_enter{
  62. margin: 0 auto;
  63. width:90%;
  64. height: 100%;
  65. }
  66. .caozuo{
  67. height:100%;
  68. line-height: 100%;
  69. }
  70. .caozuo_btn{
  71. background: #D9E0E7;
  72. cursor: pointer;
  73. height: 20px;
  74. line-height: 20px;
  75. display: inline-block;
  76. margin-top: 8px;
  77. padding: 2px 8px;
  78. }
  79. .caozuo_btn:hover{
  80. background:#7FF1B7
  81. }
  82. </style>
  83. <script type="text/javascript">
  84. var user_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  85. var role_id = top.com.sinosoft.lz.system.user.LoginInfo.getRoleids();
  86. var comp_id = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  87. var _this = this;
  88. _this.listGrid2 = null;// 值班数据列表
  89. $(function(){
  90. //console.log(_this);
  91. intdaibangrid("");
  92. //var params = resolveUrl();
  93. //console.log(params);
  94. getdaibanData();
  95. });
  96. function resolveUrl (){
  97. var encondeCondition=window.location.search;
  98. var condition= decodeURI(decodeURI(encondeCondition.substring(1,encondeCondition.length)));
  99. var conditionArr=condition.split("&");
  100. var condJson={};
  101. for(var item in conditionArr){
  102. var temArr=conditionArr[item].split("=");
  103. condJson[temArr[0]]=temArr[1];
  104. }
  105. return condJson;
  106. };
  107. /**
  108. * 改变所展示数据的长度,超过5条,只显示5条
  109. */
  110. function controlDataLength(data){
  111. var dataArr = data.rows;
  112. if(dataArr.length<=10){
  113. return data;
  114. }else{
  115. var setData = {};
  116. var showData = [];
  117. for(var i = 0;i<10;i++){
  118. showData.push(dataArr[i]);
  119. }
  120. //console.log(showData);
  121. setData.rows = showData;
  122. return setData;
  123. setData = null;
  124. showData = null;
  125. }
  126. dataArr = null;
  127. }
  128. function getdaibanData(){
  129. $.ajax({
  130. url : "/nwyj/ws/xianlutingyun/XianlutingyunService/getDBmsg",
  131. type : 'post',
  132. data : {
  133. user_id:user_id,
  134. // role_id:getRole_id(),
  135. role_id:getRole_id(role_id),
  136. company_id:comp_id,
  137. type:''
  138. },
  139. async:false,
  140. dataType : 'json',
  141. success : function(data){
  142. //console.log(data);
  143. _this.listGrid2.setOptions({data:controlDataLength(data.rows)});
  144. //_this.listGrid2.setOptions({data:data.rows});
  145. _this.listGrid2.loadData();
  146. setIframe("index_right_4");
  147. },
  148. error : function(e){
  149. try{
  150. $.messager.alert('访问服务失败!', 'error');
  151. }catch(e){
  152. }
  153. }
  154. }).done(function(){
  155. var text = $(".l-grid-body2").text();
  156. if(text==""){
  157. $("#dataGrid2 .l-grid-body2 table").css("width","100%");
  158. $("#dataGrid2 .l-grid-body2 tbody").append($('<tr style="text-align:center;width:100%;"><td colspan="6"><div style="height:50px;line-height:50px;font-size:14px;">此列表暂无数据!</div></td></tr>'));
  159. //$("#dataGrid2 .l-grid-body2").append($('<div style="text-align:center;width:100%;"><div style="height:50px;line-height:50px;font-size:14px;">此列表暂无数据!</div></div>'));
  160. }
  161. setIframe("index_right_4");
  162. });
  163. }
  164. function intdaibangrid(griddata) {
  165. _this.listGrid2 = $("#dataGrid2").quiGrid({
  166. columns: [
  167. { display: '事件类型', name: 'DB_TYPE', align: 'center' , width: "16%"},
  168. { display: '事件名称', name: 'NAME', align: 'left',showTitle:true, width: "26%"},
  169. { display: '下一步操作', name: 'IS_SEND', align: 'center', width: "8%",render:showRequire },
  170. { display: '发起时间', name: 'WRITE_TIME', align: 'center', width: "16%" },
  171. { display: '发起人', name: 'WRITER', align: 'center', width: "16%",},
  172. { display: '操作', name: 'count', align: 'center', width: "16%",
  173. render: function (rowdata, rowindex, value, column){
  174. var next_do='"'+rowdata.IS_SEND+'"';
  175. var type = '"'+rowdata.DB_TYPE+'"';
  176. var fd_id = '"'+rowdata.FD_OBJECTID+'"';
  177. var types = '"'+rowdata.EARLY_WARNING_PROPERTY+'"';
  178. var report_type = '"'+rowdata.REPORT_TYPE+'"';
  179. var plan_id = '"'+rowdata.PLAN_ID+'"';//报告填报要求id
  180. //var strhtml="<div class=tdContentStyle3><a class='showMsg'><img src='/nwyj/scripts/qui/libs/images/demo/to_do1.png'/ onclick='javascript:show("+next_do+","+type+","+fd_id+","+types+","+plan_id+","+report_type+");'></a></div>";
  181. //var strhtml="<div class='caozuo'><div class='caozuo_btn' onclick='javascript:show("+next_do+","+type+","+fd_id+","+types+","+plan_id+","+report_type+");'>立即处理</div></div>";
  182. var strhtml="<div class='caozuo'><div class='caozuo_btn' onclick='javascript:showNextDo("+next_do+","+type+","+fd_id+","+types+","+plan_id+","+report_type+");'>立即处理</div></div>";
  183. return strhtml;
  184. } }
  185. ],
  186. data:"",
  187. pageSize : 10,
  188. percentWidthMode : true,
  189. usePager : false,
  190. alternatingRow : false
  191. });
  192. }
  193. function showRequire(rowdata, rowindex, value, column){
  194. if(value=="0"){
  195. return "待处理";
  196. }
  197. if(value=="1"){
  198. return "待审核";
  199. }
  200. if(value=="3"){
  201. return "待签发";
  202. }
  203. if(value=="4"){
  204. return "待发布";
  205. }
  206. if(value=="132"){
  207. return "队伍待审核";
  208. }
  209. if(value=="133"){
  210. return "队伍待调拨";
  211. }
  212. if(value=="54"){
  213. return "装备待调拨";
  214. }
  215. if(value=="53"){
  216. return "装备待审核";
  217. }
  218. if(value=="999"){
  219. return "待填报";
  220. }
  221. if(value=="99999"){
  222. return "待维护";
  223. }
  224. }
  225. function getRole_id(id){
  226. if(id.indexOf(",")!=-1){
  227. var role_ids = id.split(",");
  228. for(var i=0;i<role_ids.length;i++){
  229. if(role_ids[i]=="R002105430210"||role_ids[i]=="R002105430211"||role_ids[i]=="R002105430212"||role_ids[i]=="R002105430213"){
  230. return role_ids[i];
  231. }
  232. }
  233. }else{
  234. return id;
  235. }
  236. }
  237. function showNextDo(next,type,id,types,plan_id,report_type){
  238. if(type=="响应通知单"){
  239. if(next=="1"){
  240. if(types=="51"){
  241. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/emergencyResponse/RelieveFlowAuditIssue.jsp?fd_id="+ id+"&is_audit="+0);
  242. }else{
  243. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/emergencyResponse/WarningAuditIssue.jsp?fd_id="+ id+"&is_audit="+0);
  244. }
  245. }else if(next=="3"){
  246. if(types=="51"){
  247. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/emergencyResponse/RelieveFlowAuditIssue.jsp?fd_id="+ id+"&is_audit="+1);
  248. }else{
  249. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/emergencyResponse/WarningAuditIssue.jsp?fd_id="+ id+"&is_audit="+1);
  250. }
  251. }else if(next=="4"){
  252. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/emergencyResponse/Warning.jsp");
  253. }
  254. }
  255. if(type=="预警通知单"){
  256. if(next=="1"){
  257. if(types=="51"){
  258. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/alert/warning/RelieveFlowAuditIssue.jsp?fd_id="+ id+"&is_audit="+0);
  259. }else{
  260. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/alert/warning/WarningAuditIssue.jsp?fd_id="+ id+"&is_audit="+0);
  261. }
  262. }else if(next=="3"){
  263. if(types=="51"){
  264. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/alert/warning/RelieveFlowAuditIssue.jsp?fd_id="+ id+"&is_audit="+1);
  265. }else{
  266. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/alert/warning/WarningAuditIssue.jsp?fd_id="+ id+"&is_audit="+1);
  267. }
  268. }else if(next=="4"){
  269. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/alert/warning/Warning.jsp");
  270. }
  271. }
  272. if(type=="预警报告填报要求"){
  273. if(report_type=="1"){
  274. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/alert/report/reportInput/ReportInputAddEdit.jsp?plan_id="+plan_id);
  275. }else if(report_type=="2"){
  276. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/alert/report/reportInput1/ReportInputAddEdit.jsp?plan_id="+plan_id);
  277. }
  278. }
  279. if(type=="响应报告填报要求"){
  280. if(report_type=="3"){
  281. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/report/reportInput/ReportInputAddEdit.jsp?plan_id="+plan_id);
  282. }else if(report_type=="4"){
  283. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/report/reportInput1/ReportInputAddEdit.jsp?plan_id="+plan_id);
  284. }
  285. }
  286. if(type=="队伍调拨"){
  287. //调拨
  288. if(next=="133"){
  289. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/team/TeamDemandAudit.jsp?fd_id="+ id + "&is_audit=" + 1);
  290. }
  291. if(next=="132"){
  292. //审核
  293. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/em/response/team/TeamDemandAuditCheck.jsp?fd_id="+ id + "&is_audit=" + 0);
  294. }
  295. if(next=="135"){
  296. //
  297. // window.parent.parent.document.getElementById("frmright").setAttribute("src",$.pathname()+ "/page/business/em/response/team/TeamAddEdit.jsp?fd_id="+id);
  298. window.parent.parent.document.getElementById("frmright").setAttribute("src",$.pathname()+ "/page/business/em/response/team/TeamAddEditTest.jsp?fd_id="+id);
  299. }
  300. }
  301. if(type=="装备调拨"){
  302. //审核
  303. if(next=="53"){
  304. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+"/page/business/em/response/equipment/EquipmentAudit.jsp?fd_id="+id+"&is_audit=0");
  305. //$.pathname()+"/page/business/em/response/equipment/EquipmentAudit.jsp?fd_id="+fd_id+"&is_audit=0"
  306. }
  307. if(next=="54"){
  308. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()
  309. + "/page/business/em/response/equipment/EquipmentAllot.jsp?fd_id="
  310. + id + "&is_audit=" + 1);
  311. }
  312. // if(next==""){
  313. // //装备调拨
  314. // window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+"/nwyj/page/business/em/response/equipment/EquipmentDemand.jsp");
  315. // }
  316. }
  317. if(type=="物资查看权限申请"){
  318. //alert(id);
  319. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+"/page/business/am/resource/ledger/readDeptMsginfo.jsp?"+id);
  320. }
  321. if(type=="报表填报计划"){
  322. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+"/page/business/em/report/Report_Add.html?"+report_type);
  323. }
  324. if(type=="日常报表填报计划"){
  325. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+"/page/business/am/report/reportinput/Report_Add.html?"+report_type);
  326. }
  327. if(type=="日常报表维护计划"){
  328. if(report_type=='1'){
  329. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/am/resource/team/teamer-inside.jsp");
  330. }
  331. if(report_type=='3'){
  332. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/am/resource/team/team-poll.jsp");
  333. }
  334. if(report_type=='4'){
  335. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/am/resource/team/team-poll-out.jsp");
  336. }
  337. if(report_type=='6'){
  338. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/am/resource/ledger/command-car.jsp");
  339. }
  340. if(report_type=='8'){
  341. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/am/resource/ledger/generator-car.jsp");
  342. }
  343. if(report_type=='10'){
  344. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/am/resource/ledger/generator.jsp");
  345. }
  346. if(report_type=='5'){
  347. window.parent.parent.document.getElementById("frmright").setAttribute("src", $.pathname()+ "/page/business/am/resource/expert/expert-maintenance.jsp");
  348. }
  349. }
  350. return false;
  351. }
  352. </script>
  353. <body>
  354. <div class="duty_grid_cont "><div class = "duty_grid_enter" id="dataGrid2"></div></div>
  355. </body>
  356. </html>