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.

240 lines
8.1 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
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns:th="http://www.thymeleaf.org">
  3. <meta charset="UTF-8">
  4. <head th:replace="~{fragments/modules/base/head :: head}"></head>
  5. <body>
  6. <div class="wrapper">
  7. <!-- header top menu Start -->
  8. <header th:replace="~{fragments/modules/base/header :: header}"></header>
  9. <!-- header top menu end -->
  10. <div class="page-wrap">
  11. <!--=============== Left Menu side Start ================-->
  12. <div th:replace="~{fragments/modules/base/menu :: menu}"></div>
  13. <!--=============== Left side End ================-->
  14. <div class="main-content">
  15. <div class="container-fluid">
  16. <div class="page-header">
  17. <div class="row align-items-end">
  18. <div class="col-lg-8">
  19. <div class="page-header-title">
  20. <i class="fa fa-list-alt bg-blue"></i>
  21. <div class="d-inline">
  22. <h5>PGR COMPLAINT QA/QC</h5>
  23. <span>PGR COMPLAINT QA/QC Reports list 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">QA/QC Reports</li>
  34. </ol>
  35. </nav>
  36. </div>
  37. </div>
  38. </div>
  39. <hr>
  40. <div class="row">
  41. <div class="col-md-12">
  42. <div class="card">
  43. <div class="card-block">
  44. <form class="" action="" onsubmit="getReport()">
  45. <div class="row">
  46. <div class="col">
  47. <label for="fromDate" class="">From Date</label> <input
  48. type="date" class="form-control" id="fromDate"
  49. name="sFrDate" th:value="${sFrDate}"
  50. data-date-format="dd/mm/yy" required>
  51. </div>
  52. <div class="col">
  53. <label for="toDate" class="">To Date</label> <input
  54. type="date" class="form-control" id="toDate" name="sToDate"
  55. th:value="${sToDate}" data-date-format="dd/mm/yy" required>
  56. </div>
  57. <div class="col-md-3"
  58. style="display: flex; justify-content: space-between; align-items: center; margin-top: 25px;">
  59. <button type="submit" style="width: 100%; height: auto;"
  60. class=" btn btn-sm btn-primary btn-l">search</button>
  61. </div>
  62. </div>
  63. </form>
  64. <br>
  65. <div>
  66. <table id="assetDatatable"
  67. class="table table-striped table-bordered table-hover dataTable"
  68. role="grid" width="100%">
  69. <thead class="thead-dark">
  70. <tr role="row">
  71. <th class="text-center no-sort" width="1%">S.No</th>
  72. <th class="text-center" width="10%">Complaint Number</th>
  73. <th class="text-center" width="10%">Department</th>
  74. <th class="text-center" width="10%">Complaint Type
  75. Name</th>
  76. <th class="text-center" width="10%">Complaint Date</th>
  77. <th class="text-center" width="10%">Time</th>
  78. <th class="text-center" width="10%">Complaint Details</th>
  79. <th class="text-center" width="10%">Complaint Name</th>
  80. <th class="text-center" width="10%">Complaint Mobile
  81. Number</th>
  82. <th class="text-center" width="10%">Official Name</th>
  83. <th class="text-center" width="10%">Official Mobile
  84. Number</th>
  85. <th class="text-center" width="10%">Completion Date</th>
  86. <th class="text-center" width="10%">Status</th>
  87. </tr>
  88. </theadclass="thead-dark">
  89. <tbody>
  90. <tr th:each="qaqc, i : ${qaqclist}" class="qaqcreportlist">
  91. <td th:text="${i.count}">0</td>
  92. <td class="text-center" th:text="${qaqc.COMPLAINTNUMBER }"></td>
  93. <td class="text-center" th:text="${qaqc.DEPT_NAME }"></td>
  94. <td class="text-center" th:text="${qaqc.COMPLAINTTYPENAME}"></td>
  95. <td th:text="${qaqc.COMPLAINTDATE}"></td>
  96. <td th:text="${qaqc.COMPLAINTTIME}"></td>
  97. <td th:text="${qaqc.COMPLAINTDETAILS}"></td>
  98. <td th:text="${qaqc.COMPLAINANTFIRSTNAME}"></td>
  99. <td th:text="${qaqc.COMPLAINANTMOBILENUMBER}"></td>
  100. <td th:text="${qaqc.USER_NAME}"></td>
  101. <td th:text="${qaqc.MOBILE_NUMBER}"></td>
  102. <td th:text="${qaqc.COMPLAINTCOMPLETIONDATE}"></td>
  103. <td th:text="${qaqc.STATUS}"></td>
  104. </tr>
  105. </tbody>
  106. <tfoot class="thead-dark">
  107. <tr>
  108. <th class="text-center">S.No</th>
  109. <th class="text-center">Complaint Number</th>
  110. <th class="text-center">Department</th>
  111. <th class="text-center">Complaint Type Name</th>
  112. <th class="text-center">Complaint Date</th>
  113. <th class="text-center">Time</th>
  114. <th class="text-center">Complaint Details</th>
  115. <th class="text-center">Complaint Name</th>
  116. <th class="text-center">Complaint Mobile Number</th>
  117. <th class="text-center">Official Name</th>
  118. <th class="text-center">Official Mobile Number</th>
  119. <th class="text-center">Completion Date</th>
  120. <th class="text-center">Status</th>
  121. </tr>
  122. </tfoot>
  123. </table>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. <footer th:replace="~{fragments/modules/base/footer :: footer}"></footer>
  132. </div>
  133. </div>
  134. <div th:replace="~{fragments/modules/base/app_module_menu_box :: div}"></div>
  135. <script th:replace="~{fragments/modules/base/script :: script}"></script>
  136. <script>
  137. $(document).ready(function() {
  138. // DataTables buttons configuration
  139. var buttons = [
  140. {
  141. extend: 'pageLength',
  142. className: 'btn btn-warning'
  143. },
  144. {
  145. title: 'Data export',
  146. extend: 'copyHtml5',
  147. text: 'Copy',
  148. className: 'btn btn-secondary',
  149. id: 'copyBtn'
  150. },
  151. {
  152. extend: 'excelHtml5',
  153. text: 'Excel',
  154. className: 'btn btn-secondary',
  155. id: 'excelBtn'
  156. },
  157. {
  158. extend: 'csvHtml5',
  159. text: 'CSV',
  160. className: 'btn btn-secondary',
  161. id: 'csvBtn'
  162. },
  163. {
  164. extend: 'pdfHtml5',
  165. text: 'PDF',
  166. className: 'btn btn-secondary',
  167. id: 'pdfBtn'
  168. },
  169. // Additional button
  170. /* {
  171. text: '<i class="far fa-plus-square"></i> Add New Asset',
  172. className: 'btn btn-warning',
  173. action: function () {
  174. callAdd();
  175. }
  176. } */
  177. ];
  178. $('#assetDatatable').DataTable( {
  179. dom: 'Bftip',
  180. columnDefs: [
  181. { targets: 'no-sort', orderable: false }
  182. ],
  183. lengthMenu: [
  184. [ 50, 100, 200, 500, -1 ],
  185. [ '50 rows', '100 rows', '200 rows','500 rows', 'Show all' ]
  186. ],
  187. scrollY: '50vh',
  188. fixedColumns: {
  189. left: 1,
  190. right: 1
  191. },
  192. buttons: [buttons],
  193. fixedHeader: true,
  194. autoWidth: true,
  195. responsive: true,
  196. searching: false,
  197. select: false,
  198. processing: false,
  199. } );
  200. } );
  201. function callAdd(){
  202. $('#addForm').modal({
  203. backdrop: 'static',
  204. keyboard: false
  205. })
  206. $('#addForm').modal('show');
  207. }
  208. function getReport(){
  209. alert("Wait for response to load data...")
  210. let sFrDate = document.getElementById("fromdate").value;
  211. let sToDate = document.getElementById("todate").value;
  212. window.location.href='/qaqc?sFrDate='+sFrDate+'&sToDate='+sToDate;
  213. }
  214. </script>
  215. </body>
  216. </html>