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.

299 lines
13 KiB

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