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.

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