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.

246 lines
11 KiB

3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html lang="en" dir="">
  3. <meta charset="UTF-8">
  4. <html xmlns:th="http://www.thymeleaf.org">
  5. <head th:replace="~{fragments/modules/base/head :: head}"></head>
  6. <body>
  7. <!--[if lt IE 8]>
  8. <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>
  9. <![endif]-->
  10. <div class="wrapper">
  11. <!-- header top menu Start -->
  12. <header th:replace="~{fragments/modules/base/header :: header}"></header>
  13. <!-- header top menu end -->
  14. <div class="page-wrap">
  15. <!--=============== Left Menu side Start ================-->
  16. <div th:replace="~{fragments/modules/base/menu :: menu}"></div>
  17. <!--=============== Left side End ================-->
  18. <div class="main-content">
  19. <div class="container-fluid">
  20. <div class="page-header">
  21. <div class="row align-items-end">
  22. <div class="col-lg-8">
  23. <div class="page-header-title">
  24. <i class="fa fa-list-alt bg-blue"></i>
  25. <div class="d-inline">
  26. <h5>PGR COMPLAINT QA/QC</h5>
  27. <span>PGR COMPLAINT QA/QC Reports list module</span>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="col-lg-4">
  32. <nav class="breadcrumb-container" aria-label="breadcrumb">
  33. <ol class="breadcrumb">
  34. <li class="breadcrumb-item">
  35. <a href="/index"><i class="ik ik-home"></i></a>
  36. </li>
  37. <li class="breadcrumb-item">PGR Complaints</li>
  38. <li class="breadcrumb-item">QA/QC Reports</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" th:value="${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" th:value="${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. <br>
  66. <div>
  67. <table id="assetDatatable" class="table table-striped table-bordered table-hover dataTable" role="grid" width="100%">
  68. <thead class="thead-dark">
  69. <tr role="row">
  70. <th class="text-center no-sort" width="1%">S.No</th>
  71. <th class="text-center" width="10%">Complaint Number</th>
  72. <th class="text-center" width="10%">Department</th>
  73. <th class="text-center" width="10%">Complaint Type Name</th>
  74. <th class="text-center" width="10%">Complaint Date</th>
  75. <th class="text-center" width="10%">Time</th>
  76. <th class="text-center" width="10%">Complaint Details</th>
  77. <th class="text-center" width="10%">Complaint Name</th>
  78. <th class="text-center" width="10%">Complaint Mobile Number</th>
  79. <th class="text-center" width="10%">Official Name</th>
  80. <th class="text-center" width="10%">Official Mobile Number</th>
  81. <th class="text-center" width="10%">Completion Date</th>
  82. <th class="text-center" width="10%">Status</th>
  83. </tr>
  84. </theadclass="thead-dark">
  85. <tbody>
  86. <tr th:each="qaqc, i : ${qaqclist}" class="qaqcreportlist">
  87. <td th:text="${i.count}">0</td>
  88. <td class="text-center" th:text="${qaqc.COMPLAINTNUMBER }"></td>
  89. <td class="text-center" th:text="${qaqc.DEPT_NAME }"></td>
  90. <td class="text-center" th:text="${qaqc.COMPLAINTTYPENAME}"></td>
  91. <td th:text="${qaqc.COMPLAINTDATE}"></td>
  92. <td th:text="${qaqc.COMPLAINTTIME}"></td>
  93. <td th:text="${qaqc.COMPLAINTDETAILS}"></td>
  94. <td th:text="${qaqc.COMPLAINANTFIRSTNAME}"></td>
  95. <td th:text="${qaqc.COMPLAINANTMOBILENUMBER}"></td>
  96. <td th:text="${qaqc.USER_NAME}"></td>
  97. <td th:text="${qaqc.MOBILE_NUMBER}"></td>
  98. <td th:text="${qaqc.COMPLAINTCOMPLETIONDATE}"></td>
  99. <td th:text="${qaqc.STATUS}"></td>
  100. </tr>
  101. </tbody>
  102. <tfoot class="thead-dark">
  103. <tr>
  104. <th class="text-center">S.No</th>
  105. <th class="text-center">Complaint Number</th>
  106. <th class="text-center">Department</th>
  107. <th class="text-center">Complaint Type Name</th>
  108. <th class="text-center">Complaint Date</th>
  109. <th class="text-center">Time</th>
  110. <th class="text-center">Complaint Details</th>
  111. <th class="text-center">Complaint Name</th>
  112. <th class="text-center">Complaint Mobile Number</th>
  113. <th class="text-center">Official Name</th>
  114. <th class="text-center">Official Mobile Number</th>
  115. <th class="text-center">Completion Date</th>
  116. <th class="text-center">Status</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. $('#assetDatatable').DataTable( {
  175. dom: 'Bftip',
  176. columnDefs: [
  177. { targets: 'no-sort', orderable: false }
  178. ],
  179. lengthMenu: [
  180. [ 50, 100, 200, 500, -1 ],
  181. [ '50 rows', '100 rows', '200 rows','500 rows', 'Show all' ]
  182. ],
  183. scrollY: '50vh',
  184. fixedColumns: {
  185. left: 1,
  186. right: 1
  187. },
  188. buttons: [buttons],
  189. fixedHeader: true,
  190. autoWidth: true,
  191. responsive: true,
  192. searching: false,
  193. select: false,
  194. processing: false,
  195. } );
  196. } );
  197. function callAdd(){
  198. $('#addForm').modal({
  199. backdrop: 'static',
  200. keyboard: false
  201. })
  202. $('#addForm').modal('show');
  203. }
  204. function getReport(){
  205. alert("Hello Developers")
  206. let sFrDate = document.getElementById("fromdate").value;
  207. let sToDate = document.getElementById("todate").value;
  208. /* let toDate = new Date(sToDate);
  209. // Add one day to the toDate
  210. toDate.setDate(toDate.getDate() + 1);
  211. let modifiedToDate = toDate.toISOString().split('T')[0]; */
  212. window.location.href='/qaqc?sFrDate='+sFrDate+'&sToDate='+sToDate;
  213. }
  214. </script>
  215. </body>
  216. </html>