794fa7f114d6eb7c055088b568350acfcd87fd22.svn-base 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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 xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title></title>
  7. <%@include file="../../../../include.jsp" %>
  8. <!--引用资源文件,JS CSS-->
  9. <script type="text/javascript" src="/nwyj/scripts/jquery/plugins/jquery.extension.util.js"></script>
  10. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/common.js"></script>
  11. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  12. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  13. <script type="text/javascript" src="/nwyj/scripts/common/common.js"></script>
  14. <script type="text/javascript" src="/nwyj/scripts/business/he/common/common.js"></script>
  15. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  16. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
  17. <link href="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.css" rel="stylesheet" type="text/css" />
  18. <script type="text/javascript" src="/nwyj/scripts/business/gps/queryStatistics/list/List_addEdit.js"></script>
  19. <script type="text/javascript">
  20. var fd_id = "<%=request.getParameter("fd_id")%>";
  21. //取得用户真实名字
  22. var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
  23. var userId = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  24. var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  25. var CorpName = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
  26. //页面初始化
  27. $(function(){
  28. $("#back").hover(function(){
  29. $(this).attr("src","/nwyj/images/temp/back_hover.png");
  30. },function(){
  31. $(this).attr("src","/nwyj/images/temp/back.png");
  32. });
  33. //alert(dept_level);
  34. //修改表单
  35. var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  36. var url = $.pathname() + '/ws/BGDMXB/BGDMXBService/queryByConditions/';
  37. var params = {
  38. deptId : CorpArea,
  39. userId:userId
  40. };
  41. $.ajax({
  42. url : url,
  43. type : 'post',
  44. data : params,
  45. dataType : 'text',
  46. success : function(data){
  47. data = data.replace(/VALUE/g,"value");
  48. data = data.replace(/KEY/g,"key");
  49. data = eval('('+data+')');
  50. $("#TASK_ID_620").data("data",data);
  51. $("#TASK_ID_620").render();
  52. },
  53. error : function(e){
  54. $.messager.alert('查询保供电任务失败!', 'error');
  55. }
  56. });
  57. $("#TASK_ID_620").live("change",function(){
  58. if(!$(this).attr("relValue")){
  59. // top.Dialog.alert("");
  60. }else{
  61. var node=$(this).data("selectedNode");
  62. $("#TASK_NAME_620").val($(this).attr("relText"));//任务名称
  63. $("#GPS_TASK_NUMBER_620").val(node.GPS_TASK_NUMBER);
  64. for(i in node){
  65. var $dom = $("#"+i+"_620");
  66. if($dom){
  67. $dom.val(node[i]);
  68. }
  69. }
  70. }
  71. })
  72. if(fd_id.length>0){
  73. $("#titleShow").text("修改保供电报表");
  74. edit();
  75. }else{//新增
  76. $("#titleShow").text("添加保供电报表");
  77. }
  78. });
  79. //获得当前系统时间
  80. function getDateTime(){
  81. var s="";
  82. var d = allGetServerTime();
  83. var vYear = d.getFullYear();
  84. var vMon = d.getMonth() + 1;
  85. var vDay = d.getDate();
  86. var h = d.getHours();
  87. var m = d.getMinutes();
  88. var se = d.getSeconds();
  89. s=vYear+"-"+(vMon<10 ? "0" + vMon : vMon)+"-"+(vDay<10 ? "0"+ vDay : vDay)+" "+(h<10 ? "0"+ h : h)+":"+(m<10 ? "0" + m : m)+":"+(se<10 ? "0" +se : se);
  90. return s;
  91. }
  92. function edit(){
  93. //保供电级别
  94. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  95. var params = {
  96. classid : '620',
  97. objectID : fd_id
  98. };
  99. $.request.query(url,params,function(data){
  100. $('#editForm').ajaxWrite({data:data});
  101. //setTimeout('$("#TASK_ID_620").change(); $("#TASK_ID_620").setValue(data.TASK_ID_620); $("#BGD_DW_620").render(); ', '100');
  102. });
  103. }
  104. // 重置
  105. function formReset(){
  106. $('#frmright', top.document).attr('src',$.pathname()+"/page/business/gps/queryStatistics/list/List_add.jsp?fd_id="+fd_id);
  107. }
  108. </script>
  109. </head>
  110. <body class="bd" align="center" >
  111. <div id="formContent" class="d_ground">
  112. <div class="title" align="center"><a href="javascript:;"><img class="back" id='back' align="left" alt="返回" src="/nwyj/images/temp/back.png" ></img></a><font class="title_font" id="titleShow"></font></div>
  113. <form id="editForm">
  114. <input name="classid" value="620" type="hidden" />
  115. <input type="hidden" name="FD_OBJECTID620" value=""/>
  116. <input name="INPUT_UNIT_ID_620" id="INPUT_UNIT_ID_620" type="hidden">
  117. <input name="INPUT_UNIT_NAME_620" id="INPUT_UNIT_NAME_620" type="hidden">
  118. <input name="INPUT_NAME_620" id="INPUT_NAME_620" type="hidden">
  119. <input name="INPUT_NAME_ID_620" id="INPUT_NAME_ID_620" type="hidden">
  120. <input name="INPUT_NAME_ID_620" id="INPUT_NAME_ID_620" type="hidden">
  121. <input name="INPUT_TIME_620" id="INPUT_TIME_620" type="hidden">
  122. <input name="TASK_NAME_620" id="TASK_NAME_620" type="hidden">
  123. <br/>
  124. <div class="button_jl">
  125. <input value="保存" type="button"
  126. id="save" />&nbsp;&nbsp;<input value="重置" input
  127. type="button" onclick="formreset()" />
  128. </div><br />
  129. <fieldset class="fieldset">
  130. <legend class="legend">保供电任务:</legend>
  131. <table class="tableStyle" >
  132. <tr>
  133. <td width="17%" align="right"><span class="star">*</span>保供电任务名称:</td>
  134. <td width="32%" ><select name="TASK_ID_620" class="validate[required] selectWidth " swidth="88%" id="TASK_ID_620" prompt="请选择"></select></td>
  135. <td width="15%" align="right"><span class="star">*</span>保供电任务编号:</td>
  136. <td width="35%"><input id="GPS_TASK_NUMBER_620" name="GPS_TASK_NUMBER_620" type="text" style="width:85%" readonly="readonly" class="validate[required]" ></td>
  137. </tr>
  138. </table>
  139. </fieldset>
  140. <fieldset class="fieldset">
  141. <legend class="legend">保供电资源投入:</legend>
  142. <fieldset class="fieldset1">
  143. <legend class="legend">应急发电车(UPS电源):</legend>
  144. <table class="tableStyle" >
  145. <tr>
  146. <td width="15%" class="class_color" align="right"><span class="star">*</span>单日最大用量:</td>
  147. <td width="35%" ><input type="text" class="validate[required,custom[onlyNumber]]" maxlength="6" name="GPS_TASK_FDC_DAY_620" inputMode="numberOnly" id="GPS_TASK_FDC_DAY_620">&nbsp;/台</td>
  148. <td width="16%" class="class_color" align="right"><span class="star">*</span>投入总量:</td>
  149. <td width="34%" ><input type="text" class="validate[required,custom[onlyNumber]]" maxlength="6" name="GPS_TASK__FDC_TOTAL_620" inputMode="numberOnly" id="GPS_TASK__FDC_TOTAL_620">&nbsp;/台次</td>
  150. </tr>
  151. </table>
  152. </fieldset>
  153. <fieldset class="fieldset1">
  154. <legend class="legend">应急发电机(UPS电源):</legend>
  155. <table class="tableStyle" >
  156. <tr>
  157. <td width="15%" class="class_color" align="right"><span class="star">*</span>单日最大用量:</td>
  158. <td width="35%" ><input type="text" class="validate[required,custom[onlyNumber]]" maxlength="6" name="GPS_TASK_FDJ_DAY_620" inputMode="numberOnly" id="GPS_TASK_FDJ_DAY_620">&nbsp;/台</td>
  159. <td width="16%" class="class_color" align="right"><span class="star">*</span>投入总量:</td>
  160. <td width="34%" ><input type="text" class="validate[required,custom[onlyNumber]]" maxlength="6" name="GPS_TASK_FDJ_TOTAL_620" inputMode="numberOnly" id="GPS_TASK_FDJ_TOTAL_620">&nbsp;/台次</td>
  161. </tr>
  162. </table>
  163. </fieldset>
  164. <table class="tableStyle" >
  165. <tr>
  166. <td width="17%" class="class_color" align="right"><span class="star">*</span>车辆:</td>
  167. <td colspan="3" ><input type="text" class="validate[required,custom[onlyNumber]]" maxlength="6" name="GPS_TASK_CAR_620" inputMode="numberOnly" id="GPS_TASK_CAR_620">&nbsp;/辆次</td>
  168. </tr>
  169. </table>
  170. </fieldset>
  171. <fieldset class="fieldset">
  172. <legend class="legend">保供电人员投入:</legend>
  173. <table class="tableStyle" >
  174. <tr>
  175. <td width="17%" class="class_color" align="right"><span class="star">*</span>值班指挥管理人员:</td>
  176. <td width="32%" ><input type="text" class="validate[required,custom[onlyNumber]]" maxlength="6" name="GPS_TASK_ZBZHGLRY_620" inputMode="numberOnly" id="GPS_TASK_ZBZHGLRY_620">&nbsp;/人日</td>
  177. <td width="15%" class="class_color" align="right"><span class="star">*</span>本单位班组人员:</td>
  178. <td width="35%" ><input type="text" class="validate[required,custom[onlyNumber]]" maxlength="6" name="GPS_TASK_BDWBZRY_620" inputMode="numberOnly" id="GPS_TASK_BDWBZRY_620">&nbsp;/人日</td>
  179. </tr>
  180. <tr>
  181. <td class="class_color" align="right"><span class="star">*</span>安保人员:</td>
  182. <td ><input type="text" class="validate[required,custom[onlyNumber]]" maxlength="6" name="GPS_TASK_ABRY_620" inputMode="numberOnly" id="GPS_TASK_ABRY_620">&nbsp;/人日</td>
  183. <td class="class_color" align="right"><span class="star">*</span>外委生产人员:</td>
  184. <td ><input type="text" class="validate[required,custom[onlyNumber]]" maxlength="6" name="GPS_TASK_WWSCRY_620" inputMode="numberOnly" id="GPS_TASK_WWSCRY_620">&nbsp;/人日</td>
  185. </tr>
  186. </table>
  187. </fieldset>
  188. </form>
  189. </div>
  190. </body>