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.

377 lines
13 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
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns:th="http://www.thymeleaf.org">
  3. <head th:replace="~{fragments/modules/base/head :: head}">
  4. <meta charset="UTF-8">
  5. </head>
  6. <body>
  7. <div class="wrapper">
  8. <!-- header top menu Start -->
  9. <header th:replace="~{fragments/modules/base/header :: header}"></header>
  10. <!-- header top menu end -->
  11. <div class="page-wrap">
  12. <!--=============== Left Menu side Start ================-->
  13. <div th:replace="~{fragments/modules/base/menu :: menu}"></div>
  14. <!--=============== Left side End ================-->
  15. <div class="main-content">
  16. <div class="container-fluid">
  17. <div class="page-header">
  18. <div class="row align-items-end">
  19. <div class="col-lg-6">
  20. <div class="page-header-title">
  21. <i class="fas fa-receipt bg-blue"></i>
  22. <div class="d-inline">
  23. <h5>PGR COMPLAINT Reopen Zone Wise</h5>
  24. <span>PGR COMPLAINT Reopen Zone Wise Reports list
  25. module</span>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="col-lg-6">
  30. <nav class="breadcrumb-container" aria-label="breadcrumb">
  31. <ol class="breadcrumb">
  32. <li class="breadcrumb-item"><a href="/index"><i
  33. class="ik ik-home"></i></a></li>
  34. <li class="breadcrumb-item">PGR Complaints</li>
  35. <li class="breadcrumb-item">User ID Wise Reports</li>
  36. <li class="breadcrumb-item active" aria-current="page">Reopen
  37. 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. <div>
  49. <table id="assetDatatable"
  50. class="table table-striped table-bordered table-hover dataTable"
  51. role="grid" width="100%">
  52. <thead class="thead-dark">
  53. <tr role="row">
  54. <th class="text-center no-sort" width="1%">S.No</th>
  55. <th class="text-center" width="10%">Complaint No</th>
  56. <th class="text-center" width="10%">Department</th>
  57. <th class="text-center" width="10%">Complaint Type</th>
  58. <th class="text-center" width="10%">Complaint Date</th>
  59. <th class="text-center" width="10%">Complaint Details</th>
  60. <th class="text-center" width="10%">Person Name</th>
  61. <th class="text-center" width="10%">User Name</th>
  62. </tr>
  63. </theadclass="thead-dark">
  64. <tbody>
  65. <tr
  66. th:each="reopenzonecomplaint, i : ${reopenzonecomplaintlist}"
  67. class="reopenzonecomplaintreportlists">
  68. <td th:text="${i.count}">0</td>
  69. <td><a href="#"
  70. th:onclick="return callview([[${reopenzonecomplaint.COMPLAINTID}]]);"
  71. th:text="${reopenzonecomplaint.COMPLAINTNUMBER}"
  72. data-bs-toggle="tooltip" data-bs-animation="true"
  73. data-bs-placement="top" title="View complaint details"
  74. style="color: blue; text-decoration: underline; cursor: default;"><i
  75. class="far fa-bookmark" style="font-size: 18px;"></i></a></td>
  76. <td class="text-center"
  77. th:text="${reopenzonecomplaint.DEPT_NAME}"></td>
  78. <td th:text="${reopenzonecomplaint.COMPLAINTTITLE}"></td>
  79. <td th:text="${reopenzonecomplaint.COMPLAINTDATE}"></td>
  80. <td class="text-center"
  81. th:text="${reopenzonecomplaint.COMPLAINTDETAILS}"></td>
  82. <td th:text="${reopenzonecomplaint.COMPLAINANTFIRSTNAME}"></td>
  83. <td th:text="${reopenzonecomplaint.USER_NAME}"></td>
  84. </tr>
  85. </tbody>
  86. <tfoot class="thead-dark">
  87. <tr>
  88. <th class="text-center">S.No</th>
  89. <th class="text-center">Complaint No</th>
  90. <th class="text-center">Department</th>
  91. <th class="text-center">Complaint Type</th>
  92. <th class="text-center">Complaint Date</th>
  93. <th class="text-center">Complaint Details</th>
  94. <th class="text-center">Person Name</th>
  95. <th class="text-center">User Name</th>
  96. </tr>
  97. </tfoot>
  98. </table>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. ----------------------------------------------------------
  107. <div class="modal fade" id="infoForm" tabindex="-1" role="dialog"
  108. aria-labelledby="exampleModalCenterLabel" aria-hidden="true">
  109. <div
  110. class="modal-dialog modal-dialog-centered modal-xl modal-dialog-scrollable"
  111. role="document">
  112. <div class="modal-content">
  113. <div class="modal-header">
  114. <h3 class="modal-title" id="exampleModalCenterLabel">Complaint
  115. Details</h3>
  116. <button type="button" class="close" data-dismiss="modal"
  117. aria-label="Close">
  118. <span aria-hidden="true">&times;</span>
  119. </button>
  120. </div>
  121. <div class="modal-body">
  122. <!-- <div id="modelbodyhtml">
  123. <center>Loading...</center>
  124. </div> -->
  125. <div class="form-group row">
  126. <label class="col-sm-12 col-form-label" for="comno">Complaint
  127. No:</label> <input type="text"
  128. style="color: #000000; font-weight: bold; font-size: 15px;"
  129. class="form-control text-center" name="comno" id="comno"
  130. disabled />
  131. </div>
  132. <div class="form-group row">
  133. <label class="col-sm-12 col-form-label" for="dep">Department:</label>
  134. <input type="text"
  135. style="color: #000000; font-weight: bold; font-size: 15px;"
  136. class="form-control text-center" name="dep" id="dep" disabled />
  137. </div>
  138. <div class="form-group row">
  139. <label class="col-sm-12 col-form-label" for="comtyp">Complaint
  140. Type:</label> <input type="text"
  141. style="color: #000000; font-weight: bold; font-size: 15px;"
  142. class="form-control text-center" name="comtyp" id="comtyp"
  143. disabled />
  144. </div>
  145. <div class="form-group row">
  146. <label class="col-sm-12 col-form-label" for="comdat">Complaint
  147. Date</label> <input type="text"
  148. style="color: #000000; font-weight: bold; font-size: 15px;"
  149. class="form-control text-center" name="comdat" id="comdat"
  150. disabled />
  151. </div>
  152. <div class="form-group row">
  153. <label class="col-sm-12 col-form-label" for="perna">Person
  154. Name:</label> <input type="text"
  155. style="color: #000000; font-weight: bold; font-size: 15px;"
  156. class="form-control text-center" name="perna" id="perna"
  157. disabled />
  158. </div>
  159. <div class="form-group row">
  160. <label class="col-sm-12 col-form-label" for="addr">Address:</label>
  161. <input type="text"
  162. style="color: #000000; font-weight: bold; font-size: 15px;"
  163. class="form-control text-center" name="addr" id="addr" disabled />
  164. </div>
  165. <div class="form-group row">
  166. <label class="col-sm-12 col-form-label" for="pinco">Pin-code:</label>
  167. <input type="text"
  168. style="color: #000000; font-weight: bold; font-size: 15px;"
  169. class="form-control text-center" name="pinco" id="pinco"
  170. disabled />
  171. </div>
  172. <div class="form-group row">
  173. <label class="col-sm-12 col-form-label" for="mobno">Mobile
  174. Number:</label> <input type="text"
  175. style="color: #000000; font-weight: bold; font-size: 15px;"
  176. class="form-control text-center" name="mobno" id="mobno"
  177. disabled />
  178. </div>
  179. <div class="form-group row">
  180. <label class="col-sm-12 col-form-label" for="email">Email</label>
  181. <input type="text"
  182. style="color: #000000; font-weight: bold; font-size: 15px;"
  183. class="form-control text-center" name="email" id="email"
  184. disabled />
  185. </div>
  186. <div class="form-group row">
  187. <label class="col-sm-12 col-form-label" for="comptit">Complaint
  188. Title:</label> <input type="text"
  189. style="color: #000000; font-weight: bold; font-size: 15px;"
  190. class="form-control text-center" name="comptit" id=comptit
  191. disabled />
  192. </div>
  193. <div class="form-group row">
  194. <label class="col-sm-12 col-form-label" for="compldet">Complaint
  195. Details:</label>
  196. <!-- <textarea type="text" class="form-control text-center" name="compldet" id="compldet" disabled />
  197. -->
  198. <textarea
  199. style="color: #000000; font-weight: bold; font-size: 15px;"
  200. class="form-control text-center" name="compldet" id="compldet"
  201. disabled></textarea>
  202. </div>
  203. <div class="form-group row">
  204. <label class="col-sm-12 col-form-label" for="comlo">Complaint
  205. Location:</label>
  206. <textarea
  207. style="color: #000000; font-weight: bold; font-size: 15px;"
  208. class="form-control text-center" name="comlo" id="comlo"
  209. disabled></textarea>
  210. </div>
  211. </div>
  212. <div class="modal-footer">
  213. <button type="button" class="btn btn-secondary"
  214. data-dismiss="modal">Close</button>
  215. </div>
  216. <!-- </form> -->
  217. </div>
  218. </div>
  219. </div>
  220. ----------------------------------------------------------
  221. <footer th:replace="~{fragments/modules/base/footer :: footer}"></footer>
  222. </div>
  223. </div>
  224. <div th:replace="~{fragments/modules/base/app_module_menu_box :: div}"></div>
  225. <script th:replace="~{fragments/modules/base/script :: script}"></script>
  226. <script>
  227. function callview(COMPLAINTNUMBER){
  228. alert("wait for popup message...");
  229. $.ajax({
  230. type: "GET",
  231. url: '/pgr/reopenzonecomplaintdetail',
  232. data: {
  233. 'complaintno': COMPLAINTNUMBER
  234. },
  235. success: function (data) {
  236. showcomplaintInfo(data);
  237. }
  238. });
  239. return false;
  240. }
  241. function showcomplaintInfo(reopenzonecomplaint){
  242. $('#infoForm').modal({
  243. backdrop: 'static',
  244. keyboard: false
  245. });
  246. console.log(reopenzonecomplaint[0]["COMPLAINTTITLE"]);
  247. $("#comptit").val(reopenzonecomplaint[0]["COMPLAINTTITLE"]);
  248. $("#email").val(reopenzonecomplaint[0]["COMPLAINANTEMAIL"]);
  249. $("#comno").val(reopenzonecomplaint[0]["COMPLAINTNUMBER"]);
  250. $("#dep").val(reopenzonecomplaint[0]["DEPT_NAME"]);
  251. $("#comdat").val(reopenzonecomplaint[0]["COMPLAINTDATE"]);
  252. $("#perna").val(reopenzonecomplaint[0]["COMPLAINANTFIRSTNAME"]);
  253. $("#addr").val(reopenzonecomplaint[0]["COMPLAINANTADDRESS"]);
  254. $("#mobno").val(reopenzonecomplaint[0]["MOBILENUMBER"]);
  255. $("#pinco").val(reopenzonecomplaint[0]["PINCODE"]);
  256. $("#compldet").val(reopenzonecomplaint[0]["COMPLAINTDETAILS"]);
  257. $("#comlo").val(reopenzonecomplaint[0]["COMPLAINTLOCATION"]);
  258. $('#infoForm').modal('show');
  259. return false;
  260. }
  261. $(document).ready(function() {
  262. // DataTables buttons configuration
  263. var buttons = [
  264. {
  265. extend: 'pageLength',
  266. className: 'btn btn-warning'
  267. },
  268. {
  269. title: 'Data export',
  270. extend: 'copyHtml5',
  271. text: 'Copy',
  272. className: 'btn btn-secondary',
  273. id: 'copyBtn'
  274. },
  275. {
  276. extend: 'excelHtml5',
  277. text: 'Excel',
  278. className: 'btn btn-secondary',
  279. id: 'excelBtn'
  280. },
  281. {
  282. extend: 'csvHtml5',
  283. text: 'CSV',
  284. className: 'btn btn-secondary',
  285. id: 'csvBtn'
  286. },
  287. {
  288. extend: 'pdfHtml5',
  289. text: 'PDF',
  290. className: 'btn btn-secondary',
  291. id: 'pdfBtn',
  292. title:'ZoneWise'
  293. },
  294. // Additional button
  295. /*
  296. {
  297. text: '<i class="far fa-plus-square"></i> Add New Asset',
  298. className: 'btn btn-warning',
  299. action: function () {
  300. callAdd();
  301. }
  302. }
  303. */
  304. ];
  305. $('#assetDatatable').DataTable( {
  306. dom: 'Bftip',
  307. columnDefs: [
  308. { targets: 'no-sort', orderable: false }
  309. ],
  310. lengthMenu: [
  311. [ 50, 100, 200, 500, -1 ],
  312. [ '50 rows', '100 rows', '200 rows','500 rows', 'Show all' ]
  313. ],
  314. scrollY: '50vh',
  315. fixedColumns: {
  316. left: 1,
  317. right: 1
  318. },
  319. buttons: [buttons],
  320. fixedHeader: true,
  321. autoWidth: true,
  322. responsive: true,
  323. searching: false,
  324. select: false,
  325. processing: false,
  326. } );
  327. } );
  328. function callAdd(){
  329. $('#addForm').modal({
  330. backdrop: 'static',
  331. keyboard: false
  332. })
  333. $('#addForm').modal('show');
  334. }
  335. </script>
  336. </body>
  337. </html>