You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

257 lines
12 KiB

3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns:th="http://www.thymeleaf.org">
  3. <head th:replace="~{fragments/modules/base/head :: head}"></head>
  4. <body>
  5. <!--[if lt IE 8]>
  6. <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
  7. <![endif]-->
  8. <div class="wrapper">
  9. <!-- header top menu Start -->
  10. <header th:replace="~{fragments/modules/base/header :: header}"></header>
  11. <!-- header top menu end -->
  12. <div class="page-wrap">
  13. <!--=============== Left Menu side Start ================-->
  14. <div th:replace="~{fragments/modules/base/menu :: menu}"></div>
  15. <!--=============== Left side End ================-->
  16. <div class="main-content">
  17. <div class="container-fluid">
  18. <div class="page-header">
  19. <div class="row align-items-end">
  20. <div class="col-lg-8">
  21. <div class="page-header-title">
  22. <i class="far fa-closed-captioning bg-blue"></i>
  23. <div class="d-inline">
  24. <h5>PGR COMPLAINT Reopen Zone Wise</h5>
  25. <span>PGR COMPLAINT Reopen Zone Wise Reports list module</span>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="col-lg-4">
  30. <nav class="breadcrumb-container" aria-label="breadcrumb">
  31. <ol class="breadcrumb">
  32. <li class="breadcrumb-item">
  33. <a href="/index"><i class="ik ik-home"></i></a>
  34. </li>
  35. <li class="breadcrumb-item">PGR Complaints</li>
  36. <li class="breadcrumb-item">User ID Wise Reports</li>
  37. <li class="breadcrumb-item active" aria-current="page">Reopen Zone Wise</li>
  38. </ol>
  39. </nav>
  40. </div>
  41. </div>
  42. </div>
  43. <hr>
  44. <div class="row">
  45. <div class="col-md-12">
  46. <div class="card">
  47. <div class="card-block">
  48. <form class="" action="" onsubmit="getReport()">
  49. <div class="row">
  50. <div class="col-md-6">
  51. <label for="fromDate" class="">From Date</label>
  52. <input type="date" class="form-control" id="fromDate"
  53. name="sFrDate" th:value="${sFrDate}" data-date-format="dd/mm/yy" required>
  54. </div>
  55. <div class="col-md-6">
  56. <label for="toDate" class="">To Date</label> <input
  57. type="date" class="form-control" id="toDate" name="sToDate" th:value="${sToDate}"
  58. data-date-format="dd/mm/yy" required>
  59. </div>
  60. </div>
  61. <div class="col-md-12">
  62. <label for="deptName">Select Department:</label> <select
  63. class="form-control text-center" name="DEPT_NAME" id="zone">
  64. <option value="0">All Zone</option>
  65. <option value="NA-THIRUVOTTIYUR"
  66. th:selected="${DEPT_NAME=='NA-THIRUVOTTIYUR'}">NA-THIRUVOTTIYUR</option>
  67. <option value="NB-MANALI"
  68. th:selected="${DEPT_NAME=='NB-MANALI'}">NB-MANALI</option>
  69. <option value="NC-MADHAVARAM"
  70. th:selected="${DEPT_NAME=='NC-MADHAVARAM'}">NC-MADHAVARAM</option>
  71. <option value="ND-TONDIARPET"
  72. th:selected="${DEPT_NAME=='ND-TONDIARPET'}">ND-TONDIARPET</option>
  73. <option value="NE-ROYAPURAM"
  74. th:selected="${DEPT_NAME=='NE-ROYAPURAM'}">NE-ROYAPURAM</option>
  75. <option value="NF-THIRU-VI-KA NAGAR"
  76. th:selected="${DEPT_NAME=='NF-THIRU-VI-KA NAGAR'}">NF-THIRU-VI-KA
  77. NAGAR</option>
  78. <option value="NG-AMBATTUR"
  79. th:selected="${DEPT_NAME=='NG-AMBATTUR'}">NG-AMBATTUR</option>
  80. <option value="NH-ANNA NAGAR"
  81. th:selected="${DEPT_NAME=='NH-ANNA NAGAR'}">NH-ANNA
  82. NAGAR</option>
  83. <option value="NJ-TEYNAMPET"
  84. th:selected="${DEPT_NAME=='NJ-TEYNAMPET'}">NJ-TEYNAMPET</option>
  85. <option value="NK-KODAMBAKKAM"
  86. th:selected="${DEPT_NAME=='NK-KODAMBAKKAM'}">NK-KODAMBAKKAM</option>
  87. <option value="NL-VALASARAVAKKAM"
  88. th:selected="${DEPT_NAME=='NL-VALASARAVAKKAM'}">NL-VALASARAVAKKAM</option>
  89. <option value="NM-ALANDUR"
  90. th:selected="${DEPT_NAME=='NM-ALANDUR'}">NM-ALANDUR</option>
  91. <option value="NN-ADYAR" th:selected="${DEPT_NAME=='NN-ADYAR'}">NN-ADYAR</option>
  92. <option value="NP-PERUNGUDI"
  93. th:selected="${DEPT_NAME=='NP-PERUNGUDI'}">NP-PERUNGUDI</option>
  94. <option value="NQ-SHOZHINGANALLUR"
  95. th:selected="${DEPT_NAME=='NQ-SHOZHINGANALLUR'}">NQ-SHOZHINGANALLUR</option>
  96. <option value="S-Chief Engineer Office (SWD, BRR, SP)"
  97. th:selected="${DEPT_NAME=='S-Chief Engineer Office (SWD, BRR, SP)'}">S-Chief
  98. Engineer Office (SWD, BRR, SP)</option>
  99. <option value="SP-SPECIAL PROJECTS"
  100. th:selected="${DEPT_NAME=='SP-SPECIAL PROJECTS'}">SP-SPECIAL
  101. PROJECTS</option>
  102. </select>
  103. </div>
  104. <div class="col-md-6" style="display: flex; justify-content: space-between; align-items: center; margin-top:11px;">
  105. <button type="submit" class=" btn btn-sm btn-primary btn-l">search</button>
  106. </div>
  107. </form>
  108. <br>
  109. <br>
  110. <div>
  111. <table id="assetDatatable" class="table table-striped table-bordered table-hover dataTable" role="grid" width="100%">
  112. <thead class="thead-dark">
  113. <tr role="row">
  114. <th class="text-center no-sort" width="1%">S.No</th>
  115. <th class="text-center" width="10%">Department</th>
  116. <th class="text-center" width="10%">User Name</th>
  117. <th class="text-center" width="10%">Mobile Number</th>
  118. <th class="text-center" width="10%">Nos</th>
  119. </tr>
  120. </theadclass="thead-dark">
  121. <tbody>
  122. <tr th:each="reopenzonewise, i : ${reopenzonewiselist}" class="zonewisereportlist">
  123. <td th:text="${i.count}">0</td>
  124. <td class="text-center" th:text="${reopenzonewise.DEPT_NAME}"></td>
  125. <td class="text-center" th:text="${reopenzonewise.USER_NAME}"></td>
  126. <td th:text="${reopenzonewise.MOBILENO}"></td>
  127. <td><a
  128. th:href="@{'/pgr/reopenzonecomplaintlist/?Deptid=' + ${reopenzonewise.DEPTID} + '&PgrUserID=' + ${reopenzonewise.IDUSER} + '&nos=' + ${reopenzonewise.NOS}+ '&sFrDate=' + ${#strings.replace(sFrDate, '/', '%2F')} + '&sToDate=' + ${#strings.replace(sToDate, '/', '%2F')}}"
  129. target="_self" th:text="${reopenzonewise.NOS}"
  130. style="color: blue; text-decoration: underline;cursor:default;"> View
  131. details </a></td>
  132. </tr>
  133. <!--th:href="@{'/pgr/reopenzonecomplaintlist/?Deptid=' + ${reopenzonewise.DEPTID} + '&PgrUserID=' + ${reopenzonewise.IDUSER} + '&nos=' + ${reopenzonewise.NOS}}"
  134. -->
  135. </tbody>
  136. <tfoot class="thead-dark">
  137. <tr>
  138. <th class="text-center">S.No</th>
  139. <th class="text-center">Department</th>
  140. <th class="text-center">User Name</th>
  141. <th class="text-center">Mobile Number</th>
  142. <th class="text-center">Nos</th>
  143. </tr>
  144. </tfoot>
  145. </table>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. <footer th:replace="~{fragments/modules/base/footer :: footer}"></footer>
  154. </div>
  155. </div>
  156. <div th:replace="~{fragments/modules/base/app_module_menu_box :: div}"></div>
  157. <script th:replace="~{fragments/modules/base/script :: script}"></script>
  158. <script>
  159. $(document).ready(function() {
  160. // DataTables buttons configuration
  161. var buttons = [
  162. {
  163. extend: 'pageLength',
  164. className: 'btn btn-warning'
  165. },
  166. {
  167. title: 'Data export',
  168. extend: 'copyHtml5',
  169. text: 'Copy',
  170. className: 'btn btn-secondary',
  171. id: 'copyBtn'
  172. },
  173. {
  174. extend: 'excelHtml5',
  175. text: 'Excel',
  176. className: 'btn btn-secondary',
  177. id: 'excelBtn'
  178. },
  179. {
  180. extend: 'csvHtml5',
  181. text: 'CSV',
  182. className: 'btn btn-secondary',
  183. id: 'csvBtn'
  184. },
  185. {
  186. extend: 'pdfHtml5',
  187. text: 'PDF',
  188. className: 'btn btn-secondary',
  189. id: 'pdfBtn'
  190. },
  191. // Additional button
  192. /* {
  193. text: '<i class="far fa-plus-square"></i> Add New Asset',
  194. className: 'btn btn-warning',
  195. action: function () {
  196. callAdd();
  197. }
  198. }
  199. */
  200. ];
  201. $('#assetDatatable').DataTable( {
  202. dom: 'Bftip',
  203. columnDefs: [
  204. { targets: 'no-sort', orderable: false }
  205. ],
  206. lengthMenu: [
  207. [ 50, 100, 200, 500, -1 ],
  208. [ '50 rows', '100 rows', '200 rows','500 rows', 'Show all' ]
  209. ],
  210. scrollY: '50vh',
  211. fixedColumns: {
  212. left: 1,
  213. right: 1
  214. },
  215. buttons: [buttons],
  216. fixedHeader: true,
  217. autoWidth: true,
  218. responsive: true,
  219. searching: false,
  220. select: false,
  221. processing: false,
  222. } );
  223. } );
  224. function callAdd(){
  225. $('#addForm').modal({
  226. backdrop: 'static',
  227. keyboard: false
  228. })
  229. $('#addForm').modal('show');
  230. }
  231. </script>
  232. </body>
  233. </html>