123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- <%@page language="java" 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="../../../../include1.jsp" %>
- <!--引用资源文件,JS CSS-->
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
- <link href="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="/nwyj/scripts/positionTab.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/system/invoking/invoking.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <!-- 日期选择框start -->
- <%-- <script type="text/javascript" src="<%=path%>/libs/js/form/datePicker/WdatePicker.js"></script> --%>
- <!-- 日期选择框end -->
- <!-- <script type='text/javascript' src='/nwyj/dwr/engine.js'></script>
- <script type='text/javascript' src='/nwyj/dwr/util.js'></script> -->
- <script type="text/javascript" src="<%=path%>/scripts/business/gps/duty/onetable/bgd_duty_list.js"></script>
- <script type="text/javascript">
- $(function(){
- $('#REPORT_TYPE_321').initCanstSelect('BM_ReportInputState');
- $("#HAS_DUTY_610").data("data",[{"key":"未发布","value":"1"},{"key":"已发布","value":"2"}]);
- $("#HAS_DUTY_610").render();
- //enter---->>查询
- /* $("#PROGRAM_NAME_610").bind("enter",function(){
- $("#searchButt").focus();
- }); */
- $("#PROGRAM_NAME_610").keydown(function(event){
- if(event.keyCode == 13){
- search();
- }
- });
- });
- var conditionData = {"list":[
- {"name":"任务状态","className":"HAS_DUTY","list":[
- {"key":"全部","value":"0000"},{"key":"未发布","value":"1"},{"key":"已发布","value":"2"}
- ]}//,
- ]};
- function initComplete(){
- //获取当前主题风格,用于设置日期控件的皮肤
- try {
- dateSkin=themeColor;
- }
- catch(e){}
-
- //自定义点击触发日期控件
- document.getElementById('startTime').onfocus=function(){
- var endtimeTf=$dp.$('endTime');
- WdatePicker({
- skin:dateSkin,onpicked:function(){endtimeTf.focus();},maxDate:'#F{$dp.$D(\'endTime\')}'
- });
- };
- document.getElementById('endTime').onfocus=function(){
- //这里设置了最大日期为当前日期,如果不需要则把maxDate:'%y-%M-%d'去掉
- WdatePicker({skin:dateSkin,/* maxDate:'%y-%M-%d', */minDate:'#F{$dp.$D(\'startTime\')}'});
- };
-
-
- //自定义点击触发日期控件
- document.getElementById('start2').onfocus=function(){
- var endtimeTf=$dp.$('end2');
- WdatePicker({
- skin:dateSkin,onpicked:function(){endtimeTf.focus();},maxDate:'#F{$dp.$D(\'end2\')}'
- });
- };
- document.getElementById('end2').onfocus=function(){
- //这里设置了最大日期为当前日期,如果不需要则把maxDate:'%y-%M-%d'去掉
- WdatePicker({skin:dateSkin,/* maxDate:'%y-%M-%d', */minDate:'#F{$dp.$D(\'start2\')}'});
- };
- }
- //检查日期
- function checkdate(i){
- if(i=1){
- is_ok_release = true;
- var begintimestr = $("#beginTime").val();
- var endtimestr = $("#endTime").val();
- if(begintimestr=="" || begintimestr==null || begintimestr==undefined ||
- endtimestr=="" || endtimestr==null || endtimestr==undefined){
- return;
- }
- var begintime = stringToDate(begintimestr);//该方法在common.js中
- var engtime = stringToDate(endtimestr);
- if(begintime > engtime){
- is_ok_release = false;
- }
- if(!is_ok_release){
- top.Dialog.alert("起始日期不能晚于截至日期!");
- }
- }
- if(i=2){
- is_ok_sendup = true;
- var begintimestr = $("#beginTime1").val();
- var endtimestr = $("#endTime1").val();
- if(begintimestr=="" || begintimestr==null || begintimestr==undefined ||
- endtimestr=="" || endtimestr==null || endtimestr==undefined){
- return;
- }
- var begintime = stringToDate(begintimestr);//该方法在common.js中
- var engtime = stringToDate(endtimestr);
- if(begintime > engtime){
- is_ok_release = false;
- }
- if(!is_ok_release){
- top.Dialog.alert("起始日期不能晚于截至日期!");
- }
- }
- }
- $(function(){
- createConditionsDom(conditionData);
- });
-
- </script>
- </head>
- </head>
- <!-- <body style="height: 585px;overflow:auto; overflow-x:hidden;" onload="dwr.engine.setActiveReverseAjax(true);dwr.engine.setNotifyServerOnPageUnload(true);"> -->
- <body style="height: 585px;overflow:auto; overflow-x:hidden;">
- <div class="box2" panelTitle="" id="searchPanel" statusType="none" style="margin:10px 0">
- <fieldset>
- <form id="queryForm" method="post">
- <input type="text" style="display: none;"/>
- <table style="width:100%;">
- <tr>
- <td width="80%">
- <input type="text" name="PROGRAM_NAME_610" id="PROGRAM_NAME_610" maxlength="25" watermark="请输入任务名称" width="300px"/>
- <a id="searchButt"><img src="/nwyj/scripts/qui/libs/icons/toolbar_icons/search_tem.png" alt="" /></a>
- <!-- <button id='searchButt' type="button"><span class="icon_find">查询</span></button> -->
- </td>
- <td width="20%" align="right"><a href="#"><span id="more" class="more_hide">综合查询</span></a></td>
- </tr>
- </table>
- <div id="moreDiv" style="display: none;">
- <!-- 可选条件,改div作为容器,需保留 -->
- <div class="conditions" id="conditions">
- <ul>
- <li class="condiTitle">开始时间:</li>
- <li><input readonly="readonly" type="text" class="dateIcon beginTime" name="START_TIME" id="startTime" /> ~
- <input readonly="readonly" type="text" class="dateIcon endTime" name="START_TIME" id="endTime"/></li></ul>
- <ul>
- <li class="condiTitle">结束时间:</li>
- <li><input readonly="readonly" type="text" class="dateIcon beginTime" name="END_TIME" id="start2" /> ~
- <input readonly="readonly" type="text" class="dateIcon endTime" name="END_TIME" id="end2"/></li></ul>
- <!-- <tr>
- <td>保供电范围:</td>
- <td><input type="text" id="GPS_AREA_610" name="GPS_AREA_610" /></td>
- </tr> -->
- </div>
- </div>
- </form>
- </fieldset>
- </div>
- <div id="dataGrid">
- </div>
- </body>
- </html>
|