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.

361 lines
16 KiB

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. <!--[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-6">
  23. <div class="page-header-title">
  24. <i class="fas fa-receipt bg-blue"></i>
  25. <div class="d-inline">
  26. <h5>PGR COMPLAINT Zone Wise</h5>
  27. <span>PGR COMPLAINT Zone Wise Reports list module</span>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="col-lg-6">
  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">User ID Wise Reports</li>
  39. <li class="breadcrumb-item active" aria-current="page">Zone Wise</li>
  40. </ol>
  41. </nav>
  42. </div>
  43. </div>
  44. </div>
  45. <hr>
  46. <div class="row">
  47. <div class="col-md-12">
  48. <div class="card">
  49. <div class="card-block">
  50. <div>
  51. <table id="assetDatatable" class="table table-striped table-bordered table-hover dataTable" 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 th:each="zonecomplaint, i : ${zonecomplaintlist}" 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="#" th:onclick="return callview([[${zonecomplaint.COMPLAINTID}]]);" th:text="${zonecomplaint.COMPLAINTNUMBER}" data-bs-toggle="tooltip" data-bs-animation="true" data-bs-placement="top" title="View complaint details" style="color: blue; text-decoration: underline;cursor:default;"><i class="far fa-bookmark" style="font-size: 18px; "></i></a>
  70. <td th:text="${zonecomplaint.DEPT_NAME}"></td>
  71. <td th:text="${zonecomplaint.COMPLAINTTITLE}"></td>
  72. <td th:text="${zonecomplaint.COMPLAINTDATE}"></td>
  73. <td th:utext="${zonecomplaint.COMPLAINTDETAILS }"></td>
  74. <td th:text="${zonecomplaint.COMPLAINANTFIRSTNAME}"></td>
  75. <td th:text="${zonecomplaint.USER_NAME}"></td>
  76. </tr>
  77. </tbody>
  78. <tfoot class="thead-dark">
  79. <tr>
  80. <th class="text-center">S.No</th>
  81. <th class="text-center">Complaint No</th>
  82. <th class="text-center">Department</th>
  83. <th class="text-center">Complaint Type</th>
  84. <th class="text-center">Complaint Date</th>
  85. <th class="text-center">Complaint Details</th>
  86. <th class="text-center">Person Name</th>
  87. <th class="text-center">User Name</th>
  88. </tr>
  89. </tfoot>
  90. </table>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. <footer th:replace="~{fragments/modules/base/footer :: footer}"></footer>
  99. </div>
  100. </div>
  101. ------------------------------------------
  102. <div class="modal fade" id="infoForm" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterLabel" aria-hidden="true">
  103. <div class="modal-dialog modal-dialog-centered modal-xl modal-dialog-scrollable" role="document">
  104. <div class="modal-content">
  105. <div class="modal-header">
  106. <h3 class="modal-title" id="exampleModalCenterLabel">Complaint Details</h3>
  107. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  108. </div>
  109. <div class="modal-body">
  110. <!-- <div id="modelbodyhtml">
  111. <center>Loading...</center>
  112. </div> -->
  113. <div class="form-group row">
  114. <label class="col-sm-12 col-form-label" for="comno">Complaint No:</label>
  115. <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="comno" id="comno" disabled />
  116. </div>
  117. <div class="form-group row">
  118. <label class="col-sm-12 col-form-label" for="dep">Department:</label>
  119. <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="dep" id="dep" disabled />
  120. </div>
  121. <div class="form-group row">
  122. <label class="col-sm-12 col-form-label" for="comtyp">Complaint Type:</label>
  123. <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="comtyp" id="comtyp" disabled />
  124. </div>
  125. <div class="form-group row">
  126. <label class="col-sm-12 col-form-label" for="comdat">Complaint Date:</label>
  127. <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="comdat" id="comdat" disabled />
  128. </div>
  129. <div class="form-group row">
  130. <label class="col-sm-12 col-form-label" for="perna">Person Name:</label>
  131. <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="perna" id="perna" disabled />
  132. </div>
  133. <div class="form-group row">
  134. <label class="col-sm-12 col-form-label" for="addr">Address:</label>
  135. <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="addr" id="addr" disabled />
  136. </div>
  137. <div class="form-group row">
  138. <label class="col-sm-12 col-form-label" for="pinco">Pin-code:</label>
  139. <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="pinco" id="pinco" disabled />
  140. </div>
  141. <div class="form-group row">
  142. <label class="col-sm-12 col-form-label" for="mobno">Mobile Number:</label>
  143. <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="mobno" id="mobno" disabled />
  144. </div>
  145. <div class="form-group row">
  146. <label class="col-sm-12 col-form-label" for="email">Email:</label>
  147. <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="email" id="email" disabled />
  148. </div>
  149. <div class="form-group row">
  150. <label class="col-sm-12 col-form-label" for="comptit">Complaint Title:</label>
  151. <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="comptit" id=comptit disabled />
  152. </div>
  153. <div class="form-group row">
  154. <label class="col-sm-12 col-form-label" for="compldet">Complaint Details:</label>
  155. <!-- <textarea type="text" class="form-control text-center" name="compldet" id="compldet" disabled />
  156. --> <textarea style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center " name="compldet" id="compldet" disabled ></textarea>
  157. </div>
  158. <div class="form-group row">
  159. <label class="col-sm-12 col-form-label" for="comlo">Complaint Location:</label>
  160. <textarea style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center " name="comlo" id="comlo" disabled ></textarea>
  161. </div>
  162. </div>
  163. <div class="modal-footer">
  164. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
  165. </div>
  166. <!-- </form> -->
  167. </div>
  168. </div>
  169. </div>
  170. ------------------------------------------------------------
  171. <div th:replace="~{fragments/modules/base/app_module_menu_box :: div}"></div>
  172. <script th:replace="~{fragments/modules/base/script :: script}"></script>
  173. <script>
  174. function callview(COMPLAINTNUMBER){
  175. alert("wait for popup message...");
  176. $.ajax({
  177. type: "GET",
  178. url: '/pgr/zonecomplaintdetail',
  179. data: {
  180. 'complaintno': COMPLAINTNUMBER
  181. },
  182. success: function (data) {
  183. showcomplaintInfo(data);
  184. }
  185. });
  186. return false;
  187. }
  188. function showcomplaintInfo(zonecomplaint){
  189. $('#infoForm').modal({
  190. backdrop: 'static',
  191. keyboard: false
  192. });
  193. console.log(zonecomplaint[0]["COMPLAINTTITLE"]);
  194. $("#comptit").val(zonecomplaint[0]["COMPLAINTTITLE"]);
  195. $("#email").val(zonecomplaint[0]["COMPLAINANTEMAIL"]);
  196. $("#comno").val(zonecomplaint[0]["COMPLAINTNUMBER"]);
  197. $("#dep").val(zonecomplaint[0]["DEPT_NAME"]);
  198. $("#comdat").val(zonecomplaint[0]["COMPLAINTDATE"]);
  199. $("#perna").val(zonecomplaint[0]["COMPLAINANTFIRSTNAME"]);
  200. $("#addr").val(zonecomplaint[0]["COMPLAINANTADDRESS"]);
  201. $("#mobno").val(zonecomplaint[0]["MOBILENUMBER"]);
  202. $("#pinco").val(zonecomplaint[0]["PINCODE"]);
  203. $("#compldet").val(zonecomplaint[0]["COMPLAINTDETAILS"]);
  204. $("#comlo").val(zonecomplaint[0]["COMPLAINTLOCATION"]);
  205. //$("#testmail").html(zonecomplaint[0]["COMPLAINANTEMAIL"]); //testmail
  206. /* document.getElementById("sno").value =zonecomplaint.i.count;
  207. document.getElementById("comno").value =zonecomplaint.COMPLAINTNUMBER;
  208. document.getElementById("dep").value =zonecomplaint.DEPT_NAME;
  209. document.getElementById("comtyp").value =zonecomplaint.COMPLAINTTITLE;
  210. document.getElementById("comdat").value =zonecomplaint.COMPLAINTDATE;
  211. document.getElementById("perna").value =zonecomplaint.COMPLAINANTFIRSTNAME;
  212. document.getElementById("addr").value =zonecomplaint.COMPLAINANTADDRESS;
  213. document.getElementById("pinco").value =zonecomplaint.PINCODE;
  214. document.getElementById("mobno").value =zonecomplaint.MOBILENUMBER;
  215. document.getElementById("comptit").value =zonecomplaint.COMPLAINANTEMAIL;
  216. document.getElementById("compldet").value =zonecomplaint.COMPLAINTDETAILS;
  217. document.getElementById("comlo").value =zonecomplaint.COMPLAINTLOCATION; */
  218. $('#infoForm').modal('show');
  219. return false;
  220. }
  221. $(document).ready(function() {
  222. // DataTables buttons configuration
  223. var buttons = [
  224. {
  225. extend: 'pageLength',
  226. className: 'btn btn-warning'
  227. },
  228. {
  229. title: 'Data export',
  230. extend: 'copyHtml5',
  231. text: 'Copy',
  232. className: 'btn btn-secondary',
  233. id: 'copyBtn'
  234. },
  235. {
  236. extend: 'excelHtml5',
  237. text: 'Excel',
  238. className: 'btn btn-secondary',
  239. id: 'excelBtn'
  240. },
  241. {
  242. extend: 'csvHtml5',
  243. text: 'CSV',
  244. className: 'btn btn-secondary',
  245. id: 'csvBtn'
  246. },
  247. {
  248. extend: 'pdfHtml5',
  249. text: 'PDF',
  250. className: 'btn btn-secondary',
  251. id: 'pdfBtn',
  252. title:'ZoneWise'
  253. },
  254. // Additional button
  255. /*
  256. {
  257. text: '<i class="far fa-plus-square"></i> Add New Asset',
  258. className: 'btn btn-warning',
  259. action: function () {
  260. callAdd();
  261. }
  262. }
  263. */
  264. ];
  265. $('#assetDatatable').DataTable( {
  266. dom: 'Bftip',
  267. columnDefs: [
  268. { targets: 'no-sort', orderable: false }
  269. ],
  270. lengthMenu: [
  271. [ 50, 100, 200, 500, -1 ],
  272. [ '50 rows', '100 rows', '200 rows','500 rows', 'Show all' ]
  273. ],
  274. scrollY: '50vh',
  275. fixedColumns: {
  276. left: 1,
  277. right: 1
  278. },
  279. buttons: [buttons],
  280. fixedHeader: true,
  281. autoWidth: true,
  282. responsive: true,
  283. searching: false,
  284. select: false,
  285. processing: false,
  286. } );
  287. } );
  288. function callAdd(){
  289. $('#addForm').modal({
  290. backdrop: 'static',
  291. keyboard: false
  292. })
  293. $('#addForm').modal('show');
  294. }
  295. /* 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>';
  296. $("#modelbodyhtml").html(htmlcode); */
  297. </script>
  298. </body>
  299. </html>