bb514534d9e6bf929f0a12a1a710f0678d142a3a.svn-base 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  1. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <title>应急响应值班安排表修改</title>
  7. <!--引入QUI框架js -->
  8. <%@include file="../../response/duty/need.jsp" %>
  9. <script type="text/javascript" src="<%=path%>/scripts/setiframeheight.js" ></script>
  10. <script type="text/javascript" src="<%=path%>/scripts/business/am/org/maintenance/orgSel.js"></script>
  11. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/system/invoking/invoking.js"></script>
  12. <script>
  13. var flag=false;
  14. var isNew=false;
  15. var isNewSave=true;
  16. var editingRow; // 双击的当前编辑行
  17. var isValida=true;
  18. //取得用户真实名字
  19. var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
  20. //部门id
  21. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  22. //部门名称
  23. var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
  24. //父部门id
  25. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  26. var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  27. var g;
  28. var dutyid;
  29. var dutyData={"list":[{"value":"0","key":"08::00-20:00"},{"value":"1","key":"20:00-08:00"}]};
  30. var departNode;
  31. var duty_man;
  32. var dutydept;
  33. var newrowid=200;
  34. //获得值班人员姓名
  35. function getZhiBanMan() {
  36. var urls = $.pathname() + '/ws/bgd_duty/BgdDutyService/getlei_ZhiBan_Man1';
  37. $.ajax({
  38. url : urls,
  39. type : 'post',
  40. timeout : 15000,
  41. //async : false,
  42. data : {
  43. deptId : deptId
  44. },
  45. dataType : 'json',
  46. success : function(data) {
  47. duty_man1 = data;
  48. initGrid(dutyid);
  49. },
  50. error : function(e) {
  51. alert("获取数据失败!!!!");
  52. }
  53. });
  54. }
  55. function getZhiBanMan1() {
  56. var urls = $.pathname() + '/ws/bgd_duty/BgdDutyService/getlei_ZhiBan_Man';
  57. $.ajax({
  58. url : urls,
  59. type : 'post',
  60. timeout : 15000,
  61. //async : false,
  62. data : {
  63. deptId : deptId
  64. },
  65. dataType : 'json',
  66. success : function(data) {
  67. duty_man = data;
  68. initGrid(dutyid);
  69. },
  70. error : function(e) {
  71. alert("获取数据失败!!!!");
  72. }
  73. });
  74. }
  75. function initComplete(){
  76. var AUrl = $.pathname() + "/ws/crud/CRUDService/queryQui/";
  77. var Aparams = {
  78. listId : "365",
  79. condition : " IS_DEL ='0' AND IS_ALERT='1' and IS_SEND='5' and EARLY_WARNING_PROPERTY != '51' and WRITE_DEPT ='"+CorpArea+"'"
  80. };
  81. var Alist = [];
  82. $.post(AUrl, Aparams, function(result) {
  83. for (var i = 0; i < result.rows.length; i++) {
  84. var Akey = result.rows[i].EARLY_WARNING_ID_365;
  85. var val = result.rows[i].FD_OBJECTID365
  86. Alist.push({
  87. "value" : val,
  88. "key" : Akey
  89. })
  90. }
  91. var selData = {
  92. "list" : Alist
  93. };
  94. // 赋给data
  95. $("#name_id").data("data", selData);
  96. $("#name_id").render();
  97. }, "json");
  98. $("#name_id").bind("change",function(){
  99. var tm = $(this).attr("relText");
  100. if(tm == "请选择"){
  101. return;
  102. }
  103. var taskName = tm+"_"+deptName+"_"+getNowFormatDate1();
  104. $("#name").val(taskName);
  105. $("#name2").val(taskName);
  106. });
  107. if((window.location.href).indexOf('?')>-1){
  108. dutyid = (window.location.href).split('?')[1];//获取记录id
  109. var url = $.pathname() + "/ws/alertduty/RespAlertDutyService/getDutyById/";
  110. var params = {
  111. dutyid : dutyid
  112. };
  113. $.ajax({
  114. url : url,
  115. type : 'post',
  116. timeout : 15000,
  117. data : params,
  118. dataType : 'json',
  119. success : function(data){
  120. $("#name_id").setValue(data.name_id);
  121. $("#oper_name").html(data.oper_name);
  122. $("#oper_time").html(data.oper_time);
  123. $("#name").val(data.name);
  124. $("#name2").val(data.name);
  125. $('#RespDutyForm').ajaxWrite({data:data});
  126. $.ajax({
  127. url : $.pathname() + '/ws/duty/DutyRecordsService/getunitname',
  128. data : {dept_id:data.dept_names},
  129. type : 'post',
  130. dataType : 'text',
  131. success : function(data){
  132. $("#dept_names").html(data);
  133. },error : function(e){
  134. top.Dialog.alert("error");
  135. }
  136. })
  137. $.ajax({
  138. url : $.pathname() + '/ws/duty1/DutyRecordsService1/getunitname',
  139. data : {dept_id:data.oper_dept},
  140. type : 'post',
  141. dataType : 'text',
  142. success : function(data){
  143. $("#oper_dept").html(data);
  144. },error : function(e){
  145. top.Dialog.alert("error");
  146. }
  147. })
  148. },
  149. error : function(e){
  150. top.Dialog.alert("访问服务失败!");
  151. }
  152. });
  153. }
  154. if(typeof dutyid === 'undefined' || dutyid === null){ //预存值班表 主键, 如果不存在,生成主键, 值班表、值班明细表新增时使用
  155. $.ajax({
  156. url : $.pathname() + '/ws/alertduty/RespAlertDutyService/queryPid',
  157. type : 'post',
  158. timeout : 15000,
  159. data : {'classid':335},
  160. dataType : 'json',
  161. success : function(data){
  162. dutyid = data.pid;
  163. initGrid(dutyid);
  164. },
  165. error : function(e){
  166. top.Dialog.alert("访问服务失败!");
  167. }
  168. });
  169. }
  170. getZhiBanMan(dutyid);
  171. getZhiBanMan1(dutyid);
  172. }
  173. //值班人员带出电话
  174. $(".l-grid-body2 .l-grid-row").find(".l-grid-row-cell select:eq(1)").live("change",function(i){//申请单位联系人的绑定事件
  175. var userId = $(this).data("selectedNode").userid;
  176. if(userId!=''){
  177. $.ajax({
  178. url : $.pathname() + '/ws/getPhone/BGDPhoneDUtyUser/getPhoneNoByDUtyUserId',
  179. type : 'post',
  180. //async : false,
  181. timeout : 15000,
  182. data: {
  183. userId : userId
  184. },
  185. dataType : 'json',
  186. success : function(result){
  187. $(".l-grid-body2 .l-grid-row .l-grid-row-cell input:eq(6)").val(result);
  188. },
  189. error : function(e){
  190. top.Dialog.alert("系统错误!");
  191. }
  192. });
  193. };
  194. });
  195. function initGrid(dutyid){
  196. g = $("#maingrid").quiGrid({
  197. columns: [
  198. { display: '日期', name: 'day_time', align: 'center', width: "16%",editor: { type: 'date',dateFmt:'yyyy-MM-dd' }},
  199. { display: '值班时间', name: 'date_time', align: 'center', width: "16%",editor: { type: 'select',data:dutyData,selWidth:145 },render:function (item){
  200. for (var i = 0; i < dutyData["list"].length; i++)
  201. {
  202. if (dutyData["list"][i]['value'] == item.date_time)
  203. return dutyData["list"][i]['key']
  204. }
  205. return item.date_time;
  206. }},
  207. { display: '部门', name: 'duty_dept', align: 'center', width: "16%",editor: { type : 'text',data : dutydept}},
  208. { display: '值班成员', name: 'duty_name', align: 'center', width: "16%",editor: { type : 'select',data : duty_man,selWidth : 145}},
  209. { display: '手机', name: 'duty_name_tel', align: 'center', width: "16%",editor: { type: 'text',inputMode:'numberOnly'}},
  210. { display: '操作', isSort: false, width: 110, render: function (rowdata, rowindex, value)
  211. {
  212. var h = "";
  213. if (!rowdata._editing)
  214. {
  215. flag=false;
  216. h += "<a onclick='onDelete(" + rowindex + ")'><span class='icon_delete'>删除</span></a> ";
  217. }
  218. else
  219. {
  220. flag=true;
  221. h += "<a onclick='endEdit(" + rowindex + ")'><span class='icon_ok'>确定</span></a> ";
  222. h += "<a onclick='onDelete(" + rowindex + ")'><span class='icon_delete'>取消</span></a> ";
  223. }
  224. return h;
  225. }
  226. }
  227. ],
  228. // $.pathname() + '/ws/duty/DutyRecordsService/delDetailByID',
  229. url: $.pathname() + '/ws/alertduty/RespAlertDutyService/queryDetailByDutyId',
  230. params :{"dutyid":dutyid,"is_del":0},
  231. sortName: 'duty_date',
  232. rownumbers:true,
  233. // pageSize:10,
  234. // dataAction:"server",
  235. // usePager: false,
  236. // percentWidthMode : true,
  237. // onAfterShowData:function(){setHeight();},
  238. height: "500px",
  239. enabledEdit: true,
  240. clickToEdit: false,
  241. onDblClickRow:function(rowdata, rowindex){
  242. // if(flag){
  243. // top.Dialog.alert("请先完成当前记录的编辑!");
  244. // return;
  245. // }
  246. editingRow=parseInt(rowindex.slice(1))-1001;
  247. g.beginEdit(rowindex);
  248. },
  249. onBeforeEdit: onBeforeEdit,
  250. onBeforeSubmitEdit: onBeforeSubmitEdit,
  251. onAfterSubmitEdit: onAfterSubmitEdit,
  252. // onAfterShowData:binddiag,
  253. toolbar:
  254. {
  255. items: [
  256. { text: '新增', click: addUser, iconClass: 'icon_add' },
  257. { line: true }/*,
  258. { text: '全部确认修改', click: endAllEdit, iconClass: 'icon_ok' },
  259. { line: true },
  260. { text: '全部取消修改', click: cancelAllEdit, iconClass: 'icon_no' } */
  261. ]
  262. }
  263. });
  264. }
  265. //查看
  266. function onView(rowidx){
  267. }
  268. function binddiag(){
  269. // var $_tr = $("#maingrid .l-grid2 .l-grid-body-table").children("tbody").children("tr");
  270. // for(var i=0;i<$_tr.length;i++){
  271. // var $_td = $_tr.eq(i).children("td").eq(4);
  272. // $_td.on("click",openaddwindow);
  273. // }
  274. }
  275. //删除
  276. function onDelete(rowidx){
  277. if(rowidx!=editingRow && flag==true){
  278. top.Dialog.alert("请先完成当前记录的编辑1!");
  279. return;
  280. }
  281. if(rowidx != editingRow){
  282. top.Dialog.confirm("此删除操作将无法撤回,是否继续?",function(){
  283. //删除记录
  284. var row = g.getRow(rowidx)
  285. //删除操作
  286. $.post($.pathname() + '/ws/alertduty/RespAlertDutyService/delDetailByID',
  287. {"fd_objectid":row.fd_objectid},
  288. function(result){
  289. if (result.Msg.sucsess == true) {
  290. top.Dialog.alert("删除成功!");
  291. g.loadData();
  292. } else {
  293. top.Dialog.alert("删除失败!");
  294. }
  295. },"json");
  296. });
  297. }
  298. else if(isNew){
  299. top.Dialog.confirm("确定要删除该记录吗?",function(){
  300. isNewSave=false;
  301. isValida=false;
  302. endEdit(rowidx);
  303. //删除记录
  304. var row = g.getRow(rowidx)
  305. // alert(row.fd_objectid)
  306. //删除操作
  307. g.deleteRow(row);
  308. });
  309. }else{
  310. isNewSave=false;
  311. isValida=false;
  312. endEdit(rowidx);
  313. g.loadData();
  314. }
  315. }
  316. //编辑
  317. function beginEdit(rowid) {
  318. if(flag){
  319. top.Dialog.alert("请先完成当前记录的编辑2!");
  320. return;
  321. }
  322. g.beginEdit(rowid);
  323. }
  324. //取消编辑
  325. function cancelEdit(rowid) {
  326. g.cancelEdit(rowid);
  327. }
  328. //结束编辑
  329. function endEdit(rowid){
  330. //editingRow=undefined;
  331. g.endEdit(rowid);
  332. }
  333. //新增
  334. function addUser(){
  335. if(flag){
  336. top.Dialog.alert("请先完成当前记录的编辑3!");
  337. return;
  338. }
  339. isNew=true;
  340. editingRow=0;
  341. var row = g.getRow(0);
  342. var rowData={
  343. duty_date:getNowDate(),
  344. duty_way:"请选择",
  345. duty_dept:deptName
  346. };
  347. g.addEditRow(rowData, row, false);
  348. }
  349. function getNowFormatDate1(){
  350. var s="";
  351. var d = allGetServerTime();
  352. var vYear = d.getFullYear();
  353. var vMon = d.getMonth() + 1;
  354. var vDay = d.getDate();
  355. // var h = d.getHours();
  356. // var m = d.getMinutes();
  357. s=vYear+"-"+(vMon<10 ? "0" + vMon : vMon)+"-"+(vDay<10 ? "0"+ vDay : vDay);
  358. return s;
  359. }
  360. function getNowDate(){
  361. var date = allGetServerTime();
  362. var seperator1 = "-";
  363. var seperator2 = ":";
  364. var year = date.getFullYear();
  365. var month = date.getMonth() + 1;
  366. var strDate = date.getDate();
  367. if (month >= 1 && month <= 9) {
  368. month = "0" + month;
  369. }
  370. if (strDate >= 0 && strDate <= 9) {
  371. strDate = "0" + strDate;
  372. }
  373. var currentdate = year + seperator1 + month + seperator1 + strDate;
  374. return currentdate;
  375. }
  376. function getNowDate(){
  377. var date = allGetServerTime();
  378. var seperator1 = "-";
  379. var seperator2 = ":";
  380. var year = date.getFullYear();
  381. var month = date.getMonth() + 1;
  382. var strDate = date.getDate();
  383. if (month >= 1 && month <= 9) {
  384. month = "0" + month;
  385. }
  386. if (strDate >= 0 && strDate <= 9) {
  387. strDate = "0" + strDate;
  388. }
  389. var currentdate = year + seperator1 + month + seperator1 + strDate;
  390. return currentdate;
  391. }
  392. //将row JSON对象转化为bo对象
  393. function rowToBO(row) {
  394. // var params = '&userinfor.userId='+row.userId+'&userinfor.userName='+row.userName+'&userinfor.userSex='+row.userSex+'&userinfor.userAge='+Math.ceil(row.userAge)+'&userinfor.userDepartment='+row.userDepartment+'&userinfor.userEmployTime='+row.userEmployTime+'&userinfor.userPassword='+row.userPassword+'&userinfor.userEducation='+row.userEducation+'&userinfor.userLoginName='+row.userLoginName;
  395. var params = '&EcmDutyDetail.fd_objectid='+row.fd_objectid+'&EcmDutyDetail.duty_id='+dutyid+'&EcmDutyDetail.duty_date='+row.duty_date+'&EcmDutyDetail.start_time='+row.start_time+'&EcmDutyDetail.end_time='+row.end_time+'&EcmDutyDetail.leader='+row.leader+'&EcmDutyDetail.leader_tel='+row.leader_tel+'&EcmDutyDetail.name='+row.name+'&EcmDutyDetail.telephone='+row.telephone+'&EcmDutyDetail.duty_way='+row.duty_way;
  396. return params;
  397. }
  398. //删除后的提示
  399. function handleResult(result){
  400. if(result == 1){
  401. top.Dialog.alert("删除成功!",null,null,null,1);
  402. g.loadData();
  403. }else{
  404. top.Dialog.alert("删除失败!");
  405. }
  406. }
  407. //全部确认修改
  408. function endAllEdit(){
  409. g.endEdit();
  410. }
  411. //全部取消修改
  412. function cancelAllEdit()
  413. {
  414. g.cancelEdit();
  415. }
  416. //编辑前事件
  417. function onBeforeEdit(e)
  418. {
  419. var str="编辑前事件,可阻止某些行或列进行编辑。列名:"+e.column.name+";行号:"+e.rowindex+";编辑前的值:"+e.value+"\n";
  420. //if(e.record.id=="121"){
  421. //top.Dialog.alert("此行不可编辑",null,null,null,2);
  422. // return false;
  423. //}
  424. }
  425. //编辑提交前事件
  426. function onBeforeSubmitEdit(e){
  427. if(isValida){
  428. if(e.newdata.duty_date==""){
  429. top.Dialog.alert("日期列有输入值为空!");
  430. return false;
  431. }
  432. if(e.newdata.date_time==""){
  433. top.Dialog.alert("时间段列有输入值为空!");
  434. return false;
  435. }
  436. var r=/^((0\d{2,3}-\d{7,8})|(1[3584]\d{9}))$/;
  437. if(r.test(e.newdata.duty_name_tel)){
  438. return true;
  439. }else{
  440. top.Dialog.alert("电话号码输入不正确!");
  441. return false;
  442. }
  443. }
  444. isValida=true;
  445. }
  446. //编辑后事件
  447. function onAfterSubmitEdit(e){
  448. if(isNewSave){
  449. var fd_objectid = e.record.fd_objectid;
  450. var rowData = e.newdata;
  451. var row = JSON.stringify(rowData);
  452. row += "#"+dutyid+"#"+fd_objectid;
  453. //ajax方式提交数据到数据库
  454. // $.post($.pathname() + '/ws/duty/DutyRecordsService/saveDetail',row,function(data){
  455. // g.loadData();
  456. // },"json");
  457. $.ajax({
  458. url : $.pathname() + '/ws/alertduty/RespAlertDutyService/saveDetail',
  459. type : 'post',
  460. timeout : 15000,
  461. data : row,
  462. async:false,
  463. dataType : 'text',
  464. success : function(result){
  465. top.Dialog.alert("保存成功!");
  466. isNew=false;
  467. isNewSave = false;
  468. },
  469. error : function(e){
  470. top.Dialog.alert("保存失败");
  471. }
  472. });
  473. }
  474. //var row =certInfoGrid.getRow(e.rowindex);
  475. //$.post("/material/certInfo/saveCertInfo.do?",rowToBO(row),function(){},"json");
  476. }
  477. var token = 0;
  478. function saveDuty(validaFormId,isPublish){
  479. $("#release").val('0');
  480. if(flag){
  481. top.Dialog.alert("请先完成当前记录的编辑!");
  482. return;
  483. }
  484. var valid=$(validaFormId).validationEngine({returnIsValid: true});
  485. if(!valid){
  486. top.Dialog.alert(CHECKREDBOX);
  487. }
  488. if(valid){
  489. // if(token>0){
  490. // top.Dialog.alert("已经保存过!");
  491. // return;
  492. // }
  493. if(g.getRow(0) == undefined){
  494. top.Dialog.alert("请安排值班人员!");
  495. return;
  496. }
  497. token++;
  498. //保存并发布
  499. if(isPublish){
  500. $("#release").val("1");
  501. }
  502. var forms = $('#RespDutyForm').serialize();
  503. forms =forms+"&"+"fd_objectid="+dutyid;
  504. if(isPublish){
  505. top.Dialog.confirm("确定保存并发布吗?|发布", function() {
  506. $.ajax({
  507. url : $.pathname() + '/ws/alertduty/RespAlertDutyService/updateDuty',
  508. type : 'post',
  509. timeout : 15000,
  510. data : forms,
  511. dataType : 'json',
  512. success : function(result){
  513. if (result.Msg.sucsess == true) {
  514. top.Dialog.confirm("发布成功,是否发送短信通知?|提醒", function() {
  515. getNameTel(dutyid);
  516. },function(){
  517. window.location.href="/nwyj/page/business/em/alert/duty/resp_duty_list.jsp";
  518. });
  519. } else {
  520. top.Dialog.alert("保存失败!");
  521. }
  522. },
  523. error : function(e){
  524. top.Dialog.alert("保存失败");
  525. }
  526. });
  527. })
  528. }else{
  529. $.ajax({
  530. url : $.pathname() + '/ws/alertduty/RespAlertDutyService/updateDuty',
  531. type : 'post',
  532. timeout : 15000,
  533. data : forms,
  534. dataType : 'json',
  535. success : function(result){
  536. if (result.Msg.sucsess == true) {
  537. top.Dialog.alert("保存成功!");
  538. } else {
  539. top.Dialog.alert("保存失败!");
  540. }
  541. history.go(-1);
  542. },
  543. error : function(e){
  544. top.Dialog.alert("保存失败");
  545. }
  546. });
  547. }
  548. }
  549. }
  550. /* function getNameTel(data){
  551. $.ajax({
  552. url : $.pathname() + '/ws/bgd_duty/BgdDutyService/getNameTel/',
  553. type : 'post',
  554. data : data,
  555. async:false,
  556. dataType : 'json',
  557. success : function(data){
  558. var receiver = ""; //接收人员 + 领导
  559. var telephine = "";
  560. var arr = data.rows;
  561. for(var i=0;i<arr.length;i++){
  562. //值班成员
  563. receiver+=arr[i].DUTY_NAME+";";
  564. //电话
  565. telephine+=arr[i].DUTY_NAME_TEL+";";
  566. };
  567. addMsg(receiver,telephine,"新发布了一个响应值班安排表,请及时查看!","1");
  568. },
  569. error : function(e){
  570. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  571. }
  572. });
  573. } */
  574. function getNameTel(data){
  575. $.ajax({
  576. url : $.pathname() + '/ws/alertduty/RespAlertDutyService/sendDutyMsg/',
  577. type : 'post',
  578. data : {dept_id:data},
  579. async:false,
  580. dataType : 'text',
  581. success : function(data){
  582. if(data=="true"){
  583. top.Dialog.alert("发送短信成功!");
  584. }else{
  585. top.Dialog.alert("发送短信失败!");
  586. }
  587. },
  588. error : function(e){
  589. top.Dialog.alert("发送短信失败!");
  590. }
  591. });
  592. }
  593. function resetDuty(){
  594. window.location.href="resp_duty_editor.jsp?"+dutyid;
  595. }
  596. $(function(){
  597. $("#back").hover(function(){
  598. $(this).attr("src","/nwyj/images/temp/back_hover.png");
  599. },function(){
  600. $(this).attr("src","/nwyj/images/temp/back.png");
  601. });
  602. var bodyheight = $(window.document.body).height();
  603. $(parent.document.body).find("#frmright").height(bodyheight);
  604. })
  605. </script>
  606. <style type="text/css">
  607. .title_font{
  608. font-weight: bold;
  609. font-size: 24px;
  610. line-height: 45px;
  611. color:#3e62a0;
  612. }
  613. .back{
  614. margin:10px 0px 10px 15px;
  615. }
  616. .title{
  617. height: 50px;
  618. /* background: #F8F8F8; */
  619. border-style:solid;
  620. border-width:1px;
  621. border-right:1px;
  622. border-left:1px;
  623. border-top:1px;
  624. border-color:#cdcaca;
  625. }
  626. .legend{
  627. font-family:宋体;
  628. font-weight: bold;
  629. font-size:14px;
  630. color:#3e62a0;
  631. }
  632. </style>
  633. </head>
  634. <body style="width: 1000px; margin:0 auto; margin-top:15px" align="center" >
  635. <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8;">
  636. <div class="title" align="center">
  637. <a href="javascript:;">
  638. <img id="back" class="back" align="left" alt="返回" src="/nwyj/images/temp/back.png" title="返回" onclick="javascript:window.location.href='resp_duty_list.jsp';" />
  639. </a>
  640. <font style="font-weight: bold;font-size: 20px;line-height: 45px;" >应急响应值班安排表修改</font>
  641. </div>
  642. <form id="RespDutyForm" method="post" >
  643. <br />
  644. <tr>
  645. <div style="float:right">
  646. <input type="button" onclick="javascript:saveDuty('#RespDutyForm',true);" value="保存并发布" />
  647. <input type="button" onclick="javascript:saveDuty('#RespDutyForm');" value="保存" />
  648. <input type="button" onclick="javascript:resetDuty();" value="重置" />
  649. <input name="release" id="release" type="hidden" value="0" />
  650. <input name="dept_names" id="deptnames" type="hidden"/>
  651. <input name="oper_name" id="opernames" type="hidden"/>
  652. <input name="oper_time" id="opertimes" type="hidden"/>
  653. <input name="oper_dept" id="operdept" type="hidden"/>
  654. </div>
  655. </tr>
  656. <fieldset style=" border-color:#999999; border-top-color: rgb(200,200,200); border-right-color: rgb(200,200,200); border-bottom-color: rgb(200,200,200); border-left-color: rgb(200,200,200); width: 960px " align="center" >
  657. <legend width="960px" class="legend">基本信息:</legend>
  658. <table width="960px" class="tableStyle" align="center">
  659. <tr>
  660. <td align="right">响应编号:</td>
  661. <td align="left"><select editable=false name="name_id" class="validate[required] selectWidth" id="name_id" selAlign="" prompt="请选择" swidth="94%"></select></td>
  662. <td width="10%" align="right" class="class_color"><span class="star">*</span>名称:</td>
  663. <!-- <input style="width:20%;" id="name2" type="text" class="validate[required]" disabled="disabled"/>
  664. <input style="width:98%;" id="name" name="name" type="hidden" class="validate[required]" readonly="readonly"/> -->
  665. <input style="width:98%;" id="name" name="name" type="hidden" class="validate[required]" readonly="readonly"/>
  666. <td width="20%" align="left"><input id="name2" name="" style="width:295px" type="text" class="validate[required]" disabled="disabled"> </td>
  667. </tr>
  668. <tr>
  669. <td width="10%" align="right" class="class_color">单位:</td>
  670. <td width="20%" align="left"><div id="oper_dept"></div></td>
  671. <td align="right" class="class_color">填报人员:</td>
  672. <td align="left"><div id="oper_name"></div></td>
  673. </tr>
  674. <tr>
  675. <td align="right" class="class_color">填报部门:</td>
  676. <td align="left"><div id="dept_names"></div></td>
  677. <td align="right" class="class_color">填报时间:</td>
  678. <td align="left"><div id="oper_time"></div></td>
  679. </tr>
  680. </table>
  681. </fieldset>
  682. <fieldset style=" border-color:#999999; border-top-color: rgb(200,200,200); border-right-color: rgb(200,200,200); border-bottom-color: rgb(200,200,200); border-left-color: rgb(200,200,200); width: 960px " align="center" >
  683. <legend width="960px" class="legend">值班信息:</legend>
  684. <div class="padding_right5">
  685. <div id="maingrid"></div>
  686. </div>
  687. </fieldset>
  688. </form>
  689. </div>
  690. </body>
  691. </html>