monthProgress_list2.jsp 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  4. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  5. <%
  6. String path = request.getContextPath();
  7. String basePath = request.getScheme() + "://"
  8. + request.getServerName() + ":" + request.getServerPort()
  9. + path + "/";
  10. %>
  11. <!DOCTYPE html>
  12. <html lang="en">
  13. <head>
  14. <base href="<%=basePath%>">
  15. <!-- 下拉框 -->
  16. <link rel="stylesheet" href="static/ace/css/chosen.css" />
  17. <!-- jsp文件头和头部 -->
  18. <%@ include file="../../system/index/top.jsp"%>
  19. <!-- 日期框 -->
  20. <link rel="stylesheet" href="static/ace/css/datepicker.css" />
  21. </head>
  22. <body class="no-skin">
  23. <!-- /section:basics/navbar.layout -->
  24. <div class="main-container" id="main-container">
  25. <!-- /section:basics/sidebar -->
  26. <div class="main-content">
  27. <div class="main-content-inner">
  28. <div class="page-content">
  29. <div class="row">
  30. <div class="col-xs-12">
  31. <!-- 检索 -->
  32. <form action="monthProgress/list2.do" method="post" name="Form" id="Form">
  33. <table style="margin-top:5px;">
  34. <tr>
  35. <td>
  36. <div class="nav-search">
  37. <span class="input-icon">
  38. <input type="text" placeholder="这里输入关键词" class="nav-search-input" id="nav-search-input" autocomplete="off" name="keywords" value="${pd.keywords }" placeholder="这里输入关键词"/>
  39. <i class="ace-icon fa fa-search nav-search-icon"></i>
  40. </span>
  41. </div>
  42. </td>
  43. <c:if test="${QX.cha == 1 }">
  44. <td style="vertical-align:top;padding-left:2px"><a class="btn btn-light btn-xs" onclick="tosearch();" title="检索"><i id="nav-search-icon" class="ace-icon fa fa-search bigger-110 nav-search-icon blue"></i></a></td>
  45. </c:if>
  46. <c:if test="${QX.toExcel == 1 }"><td style="vertical-align:top;padding-left:2px;"><a class="btn btn-light btn-xs" onclick="toExcel();" title="导出到EXCEL"><i id="nav-search-icon" class="ace-icon fa fa-download bigger-110 nav-search-icon blue"></i></a></td></c:if>
  47. </tr>
  48. </table>
  49. <!-- 检索 -->
  50. <table id="simple-table" class="table table-striped table-bordered table-hover" style="margin-top:5px;">
  51. <thead>
  52. <tr>
  53. <!-- <th class="center" style="width:35px;">
  54. <label class="pos-rel"><input type="checkbox" class="ace" id="zcheckbox" /><span class="lbl"></span></label>
  55. </th> -->
  56. <th class="center" style="width:50px;">序号</th>
  57. <th class="center">名称</th>
  58. <th class="center">创建时间</th>
  59. <th class="center">修改时间</th>
  60. <th class="center">当前状态</th>
  61. </tr>
  62. </thead>
  63. <tbody>
  64. <!-- 开始循环 -->
  65. <tr>
  66. <td class='center' style="width: 50px;">1</td>
  67. <td class='center'><a href="javascript:showTableRecod()">2018年11月高速公路技术状况汇总表</a></td>
  68. <td class='center'>2018-10-08 17:04:04</td>
  69. <td class='center'>2018-10-08 17:04:04</td>
  70. <td class='center'>编制中</td>
  71. </tr>
  72. <tr>
  73. <td class='center' style="width: 50px;">2</td>
  74. <td class='center'><a href="javascript:showTableRecod()">2018年11月桥梁技术状况汇总表</a></td>
  75. <td class='center'>2018-10-08 17:04:04</td>
  76. <td class='center'>2018-10-08 17:04:04</td>
  77. <td class='center'>编制中</td>
  78. </tr>
  79. <tr>
  80. <td class='center' style="width: 50px;">3</td>
  81. <td class='center'><a href="javascript:showTableRecod()">2018年11月当月日常养护工程量完成情况</a></td>
  82. <td class='center'>2018-10-08 17:04:04</td>
  83. <td class='center'>2018-10-08 17:04:04</td>
  84. <td class='center'>编制中</td>
  85. </tr>
  86. </tbody>
  87. </table>
  88. <div class="page-header position-relative">
  89. <table style="width:100%;">
  90. <tr>
  91. <td style="vertical-align:top;">
  92. <%-- <c:if test="${QX.add == 1 }">
  93. <a class="btn btn-mini btn-success" onclick="add();">新增</a>
  94. </c:if> --%>
  95. <%-- <c:if test="${QX.del == 1 }">
  96. <a title="删除" class="btn btn-mini btn-danger" onclick="makeAll('确定要删除选中的数据吗?');" >删除</a>
  97. </c:if> --%>
  98. <%-- <c:if test="${QX.del == 1 }">
  99. <a title="提交审批" class="btn btn-mini btn-info" onclick="makeAll('确定要提交审批选中的报告吗?');" >提交审批</a>
  100. </c:if> --%>
  101. </td>
  102. <td style="vertical-align:top;"><div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div></td>
  103. </tr>
  104. </table>
  105. </div>
  106. </form>
  107. </div>
  108. <!-- /.col -->
  109. </div>
  110. <!-- /.row -->
  111. </div>
  112. <!-- /.page-content -->
  113. </div>
  114. </div>
  115. <!-- /.main-content -->
  116. <!-- 返回顶部 -->
  117. <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
  118. <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
  119. </a>
  120. </div>
  121. <!-- /.main-container -->
  122. <!-- basic scripts -->
  123. <!-- 页面底部js¨ -->
  124. <%@ include file="../../system/index/foot.jsp"%>
  125. <!-- 删除时确认窗口 -->
  126. <script src="static/ace/js/bootbox.js"></script>
  127. <!-- ace scripts -->
  128. <script src="static/ace/js/ace/ace.js"></script>
  129. <!-- 下拉框 -->
  130. <script src="static/ace/js/chosen.jquery.js"></script>
  131. <!-- 日期框 -->
  132. <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
  133. <!--提示框-->
  134. <script type="text/javascript" src="static/js/jquery.tips.js"></script>
  135. <script type="text/javascript">
  136. $(getTop(globalThis).hangge());//关闭加载状态
  137. //检索
  138. function tosearch(){
  139. getTop(globalThis).jzts();
  140. $("#Form").submit();
  141. }
  142. <%-- //获取报告和报告中所有的表格
  143. function goSonTable(ANNUALPLAN_ID){
  144. getTop(globalThis).jzts();
  145. window.location.href="<%=basePath%>annualPlan/goSonTable.do?ANNUALPLAN_ID="+ANNUALPLAN_ID;
  146. window.location.href="<%=basePath%>monthProgress/goReport.do?";
  147. }; --%>
  148. //获取报告中所有表格列表
  149. function showTableRecod(){
  150. getTop(globalThis).jzts();
  151. var year = "2018";
  152. /* var company = str.split("年")[1].split("单位")[0]; */
  153. var company = "江阴大桥路公司";
  154. window.location.href="<%=basePath%>monthProgress/showTableRecod.do?YEAR=" +year + "&COMPANY="+company;
  155. };
  156. $(function() {
  157. //日期框
  158. $('.date-picker').datepicker({
  159. autoclose: true,
  160. todayHighlight: true
  161. });
  162. //下拉框
  163. if(!ace.vars['touch']) {
  164. $('.chosen-select').chosen({allow_single_deselect:true});
  165. $(window)
  166. .off('resize.chosen')
  167. .on('resize.chosen', function() {
  168. $('.chosen-select').each(function() {
  169. var $this = $(this);
  170. $this.next().css({'width': $this.parent().width()});
  171. });
  172. }).trigger('resize.chosen');
  173. $(document).on('settings.ace.chosen', function(e, event_name, event_val) {
  174. if(event_name != 'sidebar_collapsed') return;
  175. $('.chosen-select').each(function() {
  176. var $this = $(this);
  177. $this.next().css({'width': $this.parent().width()});
  178. });
  179. });
  180. $('#chosen-multiple-style .btn').on('click', function(e){
  181. var target = $(this).find('input[type=radio]');
  182. var which = parseInt(target.val());
  183. if(which == 2) $('#form-field-select-4').addClass('tag-input-style');
  184. else $('#form-field-select-4').removeClass('tag-input-style');
  185. });
  186. }
  187. //复选框全选控制
  188. var active_class = 'active';
  189. $('#simple-table > thead > tr > th input[type=checkbox]').eq(0).on('click', function(){
  190. var th_checked = this.checked;//checkbox inside "TH" table header
  191. $(this).closest('table').find('tbody > tr').each(function(){
  192. var row = this;
  193. if(th_checked) $(row).addClass(active_class).find('input[type=checkbox]').eq(0).prop('checked', true);
  194. else $(row).removeClass(active_class).find('input[type=checkbox]').eq(0).prop('checked', false);
  195. });
  196. });
  197. });
  198. //新增
  199. function add(){
  200. getTop(globalThis).jzts();
  201. var diag = new getTop(globalThis).Dialog();
  202. diag.Drag=true;
  203. diag.Title ="新增";
  204. diag.URL = '<%=basePath%>annualPlan/goAdd.do';
  205. diag.Width = 800;
  206. diag.Height = 600;
  207. diag.CancelEvent = function(){ //关闭事件
  208. tosearch();
  209. diag.close();
  210. };
  211. diag.show();
  212. }
  213. <%-- //删除
  214. function del(Id){
  215. bootbox.confirm("确定要删除吗?", function(result) {
  216. if(result) {
  217. getTop(globalThis).jzts();
  218. var url = "<%=basePath%>attached/delete.do?ATTACHED_ID="+Id+"&tm="+new Date().getTime();
  219. $.get(url,function(data){
  220. if("success" == data.result){
  221. nextPage(${page.currentPage});
  222. }else if("false" == data.result){
  223. getTop(globalThis).hangge();
  224. bootbox.dialog({
  225. message: "<span class='bigger-110'>删除失败,请先删除明细数据!</span>",
  226. buttons:
  227. {
  228. "button" :
  229. {
  230. "label" : "确定",
  231. "className" : "btn-sm btn-success"
  232. }
  233. }
  234. });
  235. }
  236. });
  237. }
  238. });
  239. }
  240. //修改
  241. function edit(Id){
  242. getTop(globalThis).jzts();
  243. var diag = new getTop(globalThis).Dialog();
  244. diag.Drag=true;
  245. diag.Title ="编辑";
  246. diag.URL = '<%=basePath%>attached/goEdit.do?ATTACHED_ID='+Id;
  247. diag.Width = 800;
  248. diag.Height = 600;
  249. diag.CancelEvent = function(){ //关闭事件
  250. if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){
  251. tosearch();
  252. }
  253. diag.close();
  254. };
  255. diag.show();
  256. } --%>
  257. //导出excel
  258. function toExcel(){
  259. window.location.href='<%=basePath%>annualPlan/excel.do';
  260. }
  261. </script>
  262. </body>
  263. </html>