123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- <%@page contentType="text/html" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title></title>
- <%@include file="../../../../include.jsp" %>
- <!--引用资源文件,JS CSS-->
- <script type="text/javascript" src="/nwyj/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/common.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/common/common.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/business/he/common/common.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
- <link href="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="/nwyj/scripts/business/gps/queryStatistics/list/List_addEdit.js"></script>
- <script type="text/javascript">
- var fd_id = "<%=request.getParameter("fd_id")%>";
- //取得用户真实名字
- var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
- var userId = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- var CorpName = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
- //页面初始化
- $(function(){
-
- $("#back").hover(function(){
- $(this).attr("src","/nwyj/images/temp/back_hover.png");
- },function(){
- $(this).attr("src","/nwyj/images/temp/back.png");
- });
- //alert(dept_level);
- //修改表单
-
- var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- var url = $.pathname() + '/ws/BGDMXB/BGDMXBService/queryByConditions/';
- var params = {
- deptId : CorpArea,
- userId:userId
- };
- $.ajax({
- url : url,
- type : 'post',
- data : params,
- dataType : 'text',
- success : function(data){
- data = data.replace(/VALUE/g,"value");
- data = data.replace(/KEY/g,"key");
- data = eval('('+data+')');
- $("#TASK_ID_620").data("data",data);
- $("#TASK_ID_620").render();
- },
- error : function(e){
- $.messager.alert('查询保供电任务失败!', 'error');
- }
- });
-
- $("#TASK_ID_620").live("change",function(){
- if(!$(this).attr("relValue")){
- // top.Dialog.alert("");
- }else{
- var node=$(this).data("selectedNode");
- $("#TASK_NAME_620").val($(this).attr("relText"));//任务名称
- $("#GPS_TASK_NUMBER_620").val(node.GPS_TASK_NUMBER);
- for(i in node){
- var $dom = $("#"+i+"_620");
- if($dom){
- $dom.val(node[i]);
- }
- }
- }
- })
- if(fd_id.length>0){
- $("#titleShow").text("修改保供电报表");
- edit();
-
- }else{//新增
- $("#titleShow").text("添加保供电报表");
- }
-
- });
- //获得当前系统时间
- function getDateTime(){
- var s="";
- var d = allGetServerTime();
- var vYear = d.getFullYear();
- var vMon = d.getMonth() + 1;
- var vDay = d.getDate();
- var h = d.getHours();
- var m = d.getMinutes();
- var se = d.getSeconds();
- 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);
- return s;
- }
-
- function edit(){
- //保供电级别
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '620',
- objectID : fd_id
- };
- $.request.query(url,params,function(data){
- $('#editForm').ajaxWrite({data:data});
- //setTimeout('$("#TASK_ID_620").change(); $("#TASK_ID_620").setValue(data.TASK_ID_620); $("#BGD_DW_620").render(); ', '100');
-
- });
- }
-
- // 重置
- function formReset(){
- $('#frmright', top.document).attr('src',$.pathname()+"/page/business/gps/queryStatistics/list/List_add.jsp?fd_id="+fd_id);
- }
-
- </script>
- </head>
- <body class="bd" align="center" >
- <div id="formContent" class="d_ground">
- <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>
- <form id="editForm">
- <input name="classid" value="620" type="hidden" />
- <input type="hidden" name="FD_OBJECTID620" value=""/>
- <input name="INPUT_UNIT_ID_620" id="INPUT_UNIT_ID_620" type="hidden">
- <input name="INPUT_UNIT_NAME_620" id="INPUT_UNIT_NAME_620" type="hidden">
- <input name="INPUT_NAME_620" id="INPUT_NAME_620" type="hidden">
- <input name="INPUT_NAME_ID_620" id="INPUT_NAME_ID_620" type="hidden">
- <input name="INPUT_NAME_ID_620" id="INPUT_NAME_ID_620" type="hidden">
- <input name="INPUT_TIME_620" id="INPUT_TIME_620" type="hidden">
- <input name="TASK_NAME_620" id="TASK_NAME_620" type="hidden">
- <br/>
- <div class="button_jl">
- <input value="保存" type="button"
- id="save" /> <input value="重置" input
- type="button" onclick="formreset()" />
- </div><br />
- <fieldset class="fieldset">
- <legend class="legend">保供电任务:</legend>
- <table class="tableStyle" >
- <tr>
- <td width="17%" align="right"><span class="star">*</span>保供电任务名称:</td>
- <td width="32%" ><select name="TASK_ID_620" class="validate[required] selectWidth " swidth="88%" id="TASK_ID_620" prompt="请选择"></select></td>
-
- <td width="15%" align="right"><span class="star">*</span>保供电任务编号:</td>
- <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>
- </tr>
- </table>
- </fieldset>
- <fieldset class="fieldset">
- <legend class="legend">保供电资源投入:</legend>
- <fieldset class="fieldset1">
- <legend class="legend">应急发电车(UPS电源):</legend>
- <table class="tableStyle" >
- <tr>
- <td width="15%" class="class_color" align="right"><span class="star">*</span>单日最大用量:</td>
- <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"> /台</td>
- <td width="16%" class="class_color" align="right"><span class="star">*</span>投入总量:</td>
- <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"> /台次</td>
- </tr>
- </table>
- </fieldset>
-
- <fieldset class="fieldset1">
- <legend class="legend">应急发电机(UPS电源):</legend>
- <table class="tableStyle" >
- <tr>
- <td width="15%" class="class_color" align="right"><span class="star">*</span>单日最大用量:</td>
- <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"> /台</td>
- <td width="16%" class="class_color" align="right"><span class="star">*</span>投入总量:</td>
- <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"> /台次</td>
- </tr>
- </table>
- </fieldset>
-
- <table class="tableStyle" >
- <tr>
- <td width="17%" class="class_color" align="right"><span class="star">*</span>车辆:</td>
- <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"> /辆次</td>
- </tr>
- </table>
- </fieldset>
-
- <fieldset class="fieldset">
- <legend class="legend">保供电人员投入:</legend>
- <table class="tableStyle" >
- <tr>
- <td width="17%" class="class_color" align="right"><span class="star">*</span>值班指挥管理人员:</td>
- <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"> /人日</td>
- <td width="15%" class="class_color" align="right"><span class="star">*</span>本单位班组人员:</td>
- <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"> /人日</td>
- </tr>
- <tr>
- <td class="class_color" align="right"><span class="star">*</span>安保人员:</td>
- <td ><input type="text" class="validate[required,custom[onlyNumber]]" maxlength="6" name="GPS_TASK_ABRY_620" inputMode="numberOnly" id="GPS_TASK_ABRY_620"> /人日</td>
- <td class="class_color" align="right"><span class="star">*</span>外委生产人员:</td>
- <td ><input type="text" class="validate[required,custom[onlyNumber]]" maxlength="6" name="GPS_TASK_WWSCRY_620" inputMode="numberOnly" id="GPS_TASK_WWSCRY_620"> /人日</td>
- </tr>
- </table>
- </fieldset>
- </form>
- </div>
- </body>
|