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.

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