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.

248 lines
8.4 KiB

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