c347d27cf4f7788c58c6791b0ca92a107e4e4e4b.svn-base 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <%@page language="java" 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="../../../../include1.jsp" %>
  8. <!--引用资源文件,JS CSS-->
  9. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
  10. <link href="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
  11. <script type="text/javascript" src="/nwyj/scripts/positionTab.js"></script>
  12. <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
  13. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
  14. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  15. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  16. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/system/invoking/invoking.js"></script>
  17. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  18. <!-- 日期选择框start -->
  19. <%-- <script type="text/javascript" src="<%=path%>/libs/js/form/datePicker/WdatePicker.js"></script> --%>
  20. <!-- 日期选择框end -->
  21. <!-- <script type='text/javascript' src='/nwyj/dwr/engine.js'></script>
  22. <script type='text/javascript' src='/nwyj/dwr/util.js'></script> -->
  23. <script type="text/javascript" src="<%=path%>/scripts/business/gps/duty/onetable/bgd_duty_list.js"></script>
  24. <script type="text/javascript">
  25. $(function(){
  26. $('#REPORT_TYPE_321').initCanstSelect('BM_ReportInputState');
  27. $("#HAS_DUTY_610").data("data",[{"key":"未发布","value":"1"},{"key":"已发布","value":"2"}]);
  28. $("#HAS_DUTY_610").render();
  29. //enter---->>查询
  30. /* $("#PROGRAM_NAME_610").bind("enter",function(){
  31. $("#searchButt").focus();
  32. }); */
  33. $("#PROGRAM_NAME_610").keydown(function(event){
  34. if(event.keyCode == 13){
  35. search();
  36. }
  37. });
  38. });
  39. var conditionData = {"list":[
  40. {"name":"任务状态","className":"HAS_DUTY","list":[
  41. {"key":"全部","value":"0000"},{"key":"未发布","value":"1"},{"key":"已发布","value":"2"}
  42. ]}//,
  43. ]};
  44. function initComplete(){
  45. //获取当前主题风格,用于设置日期控件的皮肤
  46. try {
  47. dateSkin=themeColor;
  48. }
  49. catch(e){}
  50. //自定义点击触发日期控件
  51. document.getElementById('startTime').onfocus=function(){
  52. var endtimeTf=$dp.$('endTime');
  53. WdatePicker({
  54. skin:dateSkin,onpicked:function(){endtimeTf.focus();},maxDate:'#F{$dp.$D(\'endTime\')}'
  55. });
  56. };
  57. document.getElementById('endTime').onfocus=function(){
  58. //这里设置了最大日期为当前日期,如果不需要则把maxDate:'%y-%M-%d'去掉
  59. WdatePicker({skin:dateSkin,/* maxDate:'%y-%M-%d', */minDate:'#F{$dp.$D(\'startTime\')}'});
  60. };
  61. //自定义点击触发日期控件
  62. document.getElementById('start2').onfocus=function(){
  63. var endtimeTf=$dp.$('end2');
  64. WdatePicker({
  65. skin:dateSkin,onpicked:function(){endtimeTf.focus();},maxDate:'#F{$dp.$D(\'end2\')}'
  66. });
  67. };
  68. document.getElementById('end2').onfocus=function(){
  69. //这里设置了最大日期为当前日期,如果不需要则把maxDate:'%y-%M-%d'去掉
  70. WdatePicker({skin:dateSkin,/* maxDate:'%y-%M-%d', */minDate:'#F{$dp.$D(\'start2\')}'});
  71. };
  72. }
  73. //检查日期
  74. function checkdate(i){
  75. if(i=1){
  76. is_ok_release = true;
  77. var begintimestr = $("#beginTime").val();
  78. var endtimestr = $("#endTime").val();
  79. if(begintimestr=="" || begintimestr==null || begintimestr==undefined ||
  80. endtimestr=="" || endtimestr==null || endtimestr==undefined){
  81. return;
  82. }
  83. var begintime = stringToDate(begintimestr);//该方法在common.js中
  84. var engtime = stringToDate(endtimestr);
  85. if(begintime > engtime){
  86. is_ok_release = false;
  87. }
  88. if(!is_ok_release){
  89. top.Dialog.alert("起始日期不能晚于截至日期!");
  90. }
  91. }
  92. if(i=2){
  93. is_ok_sendup = true;
  94. var begintimestr = $("#beginTime1").val();
  95. var endtimestr = $("#endTime1").val();
  96. if(begintimestr=="" || begintimestr==null || begintimestr==undefined ||
  97. endtimestr=="" || endtimestr==null || endtimestr==undefined){
  98. return;
  99. }
  100. var begintime = stringToDate(begintimestr);//该方法在common.js中
  101. var engtime = stringToDate(endtimestr);
  102. if(begintime > engtime){
  103. is_ok_release = false;
  104. }
  105. if(!is_ok_release){
  106. top.Dialog.alert("起始日期不能晚于截至日期!");
  107. }
  108. }
  109. }
  110. $(function(){
  111. createConditionsDom(conditionData);
  112. });
  113. </script>
  114. </head>
  115. </head>
  116. <!-- <body style="height: 585px;overflow:auto; overflow-x:hidden;" onload="dwr.engine.setActiveReverseAjax(true);dwr.engine.setNotifyServerOnPageUnload(true);"> -->
  117. <body style="height: 585px;overflow:auto; overflow-x:hidden;">
  118. <div class="box2" panelTitle="" id="searchPanel" statusType="none" style="margin:10px 0">
  119. <fieldset>
  120. <form id="queryForm" method="post">
  121. <input type="text" style="display: none;"/>
  122. <table style="width:100%;">
  123. <tr>
  124. <td width="80%">
  125. <input type="text" name="PROGRAM_NAME_610" id="PROGRAM_NAME_610" maxlength="25" watermark="请输入任务名称" width="300px"/>&nbsp;&nbsp;
  126. <a id="searchButt"><img src="/nwyj/scripts/qui/libs/icons/toolbar_icons/search_tem.png" alt="" /></a>
  127. <!-- <button id='searchButt' type="button"><span class="icon_find">查询</span></button> -->
  128. </td>
  129. <td width="20%" align="right"><a href="#"><span id="more" class="more_hide">综合查询</span></a></td>
  130. </tr>
  131. </table>
  132. <div id="moreDiv" style="display: none;">
  133. <!-- 可选条件,改div作为容器,需保留 -->
  134. <div class="conditions" id="conditions">
  135. <ul>
  136. <li class="condiTitle">开始时间:</li>
  137. <li><input readonly="readonly" type="text" class="dateIcon beginTime" name="START_TIME" id="startTime" />&nbsp; ~ &nbsp;
  138. <input readonly="readonly" type="text" class="dateIcon endTime" name="START_TIME" id="endTime"/></li></ul>
  139. <ul>
  140. <li class="condiTitle">结束时间:</li>
  141. <li><input readonly="readonly" type="text" class="dateIcon beginTime" name="END_TIME" id="start2" />&nbsp; ~ &nbsp;
  142. <input readonly="readonly" type="text" class="dateIcon endTime" name="END_TIME" id="end2"/></li></ul>
  143. <!-- <tr>
  144. <td>保供电范围:</td>
  145. <td><input type="text" id="GPS_AREA_610" name="GPS_AREA_610" /></td>
  146. </tr> -->
  147. </div>
  148. </div>
  149. </form>
  150. </fieldset>
  151. </div>
  152. <div id="dataGrid">
  153. </div>
  154. </body>
  155. </html>