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.

440 lines
21 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}"></head>
  4. <meta charset="UTF-8">
  5. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Tamil+Font">
  6. <style>
  7. .tamil-text {
  8. font-family: 'Tamil Font', sans-serif;
  9. }
  10. </style>
  11. <body>
  12. <!--[if lt IE 8]>
  13. <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>
  14. <![endif]-->
  15. <div class="wrapper">
  16. <!-- header top menu Start -->
  17. <header th:replace="~{fragments/modules/base/header :: header}"></header>
  18. <!-- header top menu end -->
  19. <div class="page-wrap">
  20. <!--=============== Left Menu side Start ================-->
  21. <div th:replace="~{fragments/modules/base/menu :: menu}"></div>
  22. <!--=============== Left side End ================-->
  23. <div class="main-content">
  24. <div class="container-fluid">
  25. <div class="page-header">
  26. <div class="row align-items-end">
  27. <div class="col-lg-6">
  28. <div class="page-header-title">
  29. <i class="fas fa-receipt bg-blue"></i>
  30. <div class="d-inline">
  31. <h5>PGR COMPLAINT AGE ANALYSIS</h5>
  32. <span>PGR COMPLAINT AGE ANALYSIS Reports list module</span>
  33. </div>
  34. </div>
  35. </div>
  36. <div class="col-lg-6">
  37. <nav class="breadcrumb-container" aria-label="breadcrumb">
  38. <ol class="breadcrumb">
  39. <li class="breadcrumb-item">
  40. <a href="/index"><i class="ik ik-home"></i></a>
  41. </li>
  42. <li class="breadcrumb-item">PGR Complaints</li>
  43. <li class="breadcrumb-item">User ID Wise Reports</li>
  44. <li class="breadcrumb-item active" aria-current="page">AGE ANALYSIS</li>
  45. </ol>
  46. </nav>
  47. </div>
  48. </div>
  49. </div>
  50. <hr>
  51. <div class="row">
  52. <div class="col-md-12">
  53. <div class="card">
  54. <div class="card-block">
  55. <div>
  56. <table id="assetDatatable" class="table table-striped table-bordered table-hover dataTable" 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 th:each="ageancomplaint, i : ${ageanalysiscomplaintlist}" class="ageanalysiscomplaintreportlists">
  71. <td th:text="${i.count}">0</td>
  72. <td><a href="#" th:onclick="return callview([[${ageancomplaint.COMPLAINTID}]]);" th:text="${ageancomplaint.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></td>
  73. <td class="text-center" th:text="${ageancomplaint.DEPT_NAME}"></td>
  74. <td th:text="${ageancomplaint.COMPLAINTTITLE}"></td>
  75. <td th:text="${ageancomplaint.COMPLAINTDATE}"></td>
  76. <td th:utext="${ageancomplaint.COMPLAINTDETAILS}"></td>
  77. <!-- <td th:text="${ageancomplaint.COMPLAINTDETAILS}"></td> -->
  78. <td th:text="${ageancomplaint.COMPLAINANTFIRSTNAME}"></td>
  79. <td th:text="${ageancomplaint.USER_NAME}"></td>
  80. </tr>
  81. </tbody>
  82. <tfoot class="thead-dark">
  83. <tr>
  84. <th class="text-center">S.No</th>
  85. <th class="text-center">Complaint No</th>
  86. <th class="text-center">Department</th>
  87. <th class="text-center">Complaint Type</th>
  88. <th class="text-center">Complaint Date</th>
  89. <th class="text-center">Complaint Details</th>
  90. <th class="text-center">Person Name</th>
  91. <th class="text-center">User Name</th>
  92. </tr>
  93. </tfoot>
  94. </table>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <footer th:replace="~{fragments/modules/base/footer :: footer}"></footer>
  103. </div>
  104. </div>
  105. ----------------------------------------------------------
  106. <div class="modal fade" id="infoForm" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterLabel" aria-hidden="true">
  107. <div class="modal-dialog modal-dialog-centered modal-xl modal-dialog-scrollable" role="document">
  108. <div class="modal-content">
  109. <div class="modal-header">
  110. <h3 class="modal-title" id="exampleModalCenterLabel">Complaint Details</h3>
  111. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  112. </div>
  113. <div class="modal-body">
  114. <!-- <div id="modelbodyhtml">
  115. <center>Loading...</center>
  116. </div> -->
  117. <div class="form-group row">
  118. <label class="col-sm-12 col-form-label" for="comno">Complaint No:</label>
  119. <input type="text" class="form-control text-center" name="comno" id="comno" disabled />
  120. </div>
  121. <div class="form-group row">
  122. <label class="col-sm-12 col-form-label" for="dep">Department:</label>
  123. <input type="text" class="form-control text-center" name="dep" id="dep" disabled />
  124. </div>
  125. <div class="form-group row">
  126. <label class="col-sm-12 col-form-label" for="comtyp">Complaint Type:</label>
  127. <input type="text" class="form-control text-center" name="comtyp" id="comtyp" disabled />
  128. </div>
  129. <div class="form-group row">
  130. <label class="col-sm-12 col-form-label" for="comdat">Complaint Date</label>
  131. <input type="text" class="form-control text-center" name="comdat" id="comdat" disabled />
  132. </div>
  133. <div class="form-group row">
  134. <label class="col-sm-12 col-form-label" for="perna">Person Name:</label>
  135. <input type="text" class="form-control text-center" name="perna" id="perna" disabled />
  136. </div>
  137. <div class="form-group row">
  138. <label class="col-sm-12 col-form-label" for="addr">Address:</label>
  139. <input type="text" class="form-control text-center" name="addr" id="addr" disabled />
  140. </div>
  141. <div class="form-group row">
  142. <label class="col-sm-12 col-form-label" for="pinco">Pin-code:</label>
  143. <input type="text" class="form-control text-center" name="pinco" id="pinco" disabled />
  144. </div>
  145. <div class="form-group row">
  146. <label class="col-sm-12 col-form-label" for="mobno">Mobile Number:</label>
  147. <input type="text" class="form-control text-center" name="mobno" id="mobno" disabled />
  148. </div>
  149. <div class="form-group row">
  150. <label class="col-sm-12 col-form-label" for="email">Email</label>
  151. <input type="text" class="form-control text-center" name="email" id="email" disabled />
  152. </div>
  153. <div class="form-group row">
  154. <label class="col-sm-12 col-form-label" for="comptit">Complaint Title:</label>
  155. <input type="text" class="form-control text-center" name="comptit" id=comptit disabled />
  156. </div>
  157. <div class="form-group row">
  158. <label class="col-sm-12 col-form-label" for="compldet">Complaint Details:</label>
  159. <!-- <textarea type="text" class="form-control text-center" name="compldet" id="compldet" disabled />
  160. --> <textarea class="form-control " name="compldet" id="compldet" disabled ></textarea>
  161. </div>
  162. <div class="form-group row">
  163. <label class="col-sm-12 col-form-label" for="comlo">Complaint Location:</label>
  164. <textarea class="form-control " name="comlo" id="comlo" disabled ></textarea>
  165. </div>
  166. </div>
  167. <div class="modal-footer">
  168. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
  169. </div>
  170. <!-- </form> -->
  171. </div>
  172. </div>
  173. </div>
  174. ----------------------------------------------------------
  175. <div class="modal fade" id="addForm" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterLabel" aria-hidden="true">
  176. <div class="modal-dialog modal-dialog-centered" role="document">
  177. <div class="modal-content">
  178. <div class="modal-header">
  179. <h5 class="modal-title" id="exampleModalCenterLabel">Master Category Form</h5>
  180. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  181. </div>
  182. <div class="modal-body">
  183. <div class="form-group row">
  184. <label for="catName" class="col-sm-12 col-form-label">Asset Category Name</label>
  185. <div class="col-sm-12">
  186. <input type="text" class="form-control" name="catName" id="catName" placeholder="Category Name" required>
  187. </div>
  188. </div>
  189. <div class="form-group row">
  190. <label for="isActive" class="col-sm-12 col-form-label">IsActive</label>
  191. <div class="col-sm-12">
  192. <select class="form-control" id="isActive" name="isActive" >
  193. <option value=1>Yes</option>
  194. <option value=0>No</option>
  195. </select>
  196. </div>
  197. </div>
  198. </div>
  199. <div class="modal-footer">
  200. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
  201. <button type="button" class="btn btn-primary">Save changes</button>
  202. </div>
  203. </div>
  204. </div>
  205. </div>
  206. <div class="modal fade" id="addForm2" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="staticBackdropLabel" aria-hidden="true">
  207. <div class="modal-dialog" role="document">
  208. <div class="modal-content">
  209. <form action="#" th:action="@{/saveCategory}" method="post">
  210. <div class="block block-rounded block-themed block-transparent mb-0">
  211. <div class="block-header bg-primary-dark">
  212. <h3 class="block-title">Master Category Form</h3>
  213. <div class="block-options">
  214. <button type="button" class="btn-block-option" data-bs-dismiss="modal" aria-label="Close">
  215. <i class="fa fa-fw fa-times"></i>
  216. </button>
  217. </div>
  218. </div>
  219. <div class="block-content">
  220. <div class="form-group row">
  221. <label for="exampleInputUsername2" class="col-sm-3 col-form-label">Username</label>
  222. <div class="col-sm-9">
  223. <input type="text" class="form-control" id="exampleInputUsername2" placeholder="Username">
  224. </div>
  225. </div>
  226. <div class="form-group row">
  227. <label for="exampleInputEmail2" class="col-sm-3 col-form-label">Email</label>
  228. <div class="col-sm-9">
  229. <input type="email" class="form-control" id="exampleInputEmail2" placeholder="Email">
  230. </div>
  231. </div>
  232. <div class="row">
  233. <div class="mb-3">
  234. <label for="catName">Asset Category Name</label>
  235. <input type="text" class="form-control" name="catName" id="catName" placeholder="Category Name" required>
  236. <!--<small id="emailHelp" class="form-text text-muted">Set of assets grouped under this unique category</small>-->
  237. </div>
  238. <div class="mb-3">
  239. <label class="form-check-label">IsActive</label>
  240. <select class="form-select" id="isActive" name="isActive" >
  241. <option value=1>Yes</option>
  242. <option value=0>No</option>
  243. </select>
  244. </div>
  245. </div><!--end row-->
  246. </div><!--end modal-body-->
  247. </div>
  248. <div class="block-content block-content-full text-end bg-body">
  249. <button type="button" class="btn btn-de-secondary btn-sm" data-bs-dismiss="modal">Close</button>
  250. <button type="submit" class="btn btn-primary btn-sm">Save</button>
  251. </div><!--end modal-footer-->
  252. </form>
  253. </div><!--end modal-content-->
  254. </div><!--end modal-dialog-->
  255. </div><!--end modal-->
  256. <div th:replace="~{fragments/modules/base/app_module_menu_box :: div}"></div>
  257. <script th:replace="~{fragments/modules/base/script :: script}"></script>
  258. <script>
  259. function callview(COMPLAINTNUMBER){
  260. alert("Wait for Popup message");
  261. $.ajax({
  262. type: "GET",
  263. url: '/pgr/ageanalysiscomplaintdetail',
  264. data: {
  265. 'complaintno': COMPLAINTNUMBER
  266. },
  267. success: function (data) {
  268. showcomplaintInfo(data);
  269. }
  270. });
  271. return false;
  272. }
  273. function showcomplaintInfo(ageanalysiscomplaint){
  274. $('#infoForm').modal({
  275. backdrop: 'static',
  276. keyboard: false
  277. });
  278. console.log(ageanalysiscomplaint[0]["COMPLAINTTITLE"]);
  279. $("#comptit").val(ageanalysiscomplaint[0]["COMPLAINTTITLE"]);
  280. $("#email").val(ageanalysiscomplaint[0]["COMPLAINANTEMAIL"]);
  281. $("#comno").val(ageanalysiscomplaint[0]["COMPLAINTNUMBER"]);
  282. $("#dep").val(ageanalysiscomplaint[0]["DEPT_NAME"]);
  283. $("#comdat").val(ageanalysiscomplaint[0]["COMPLAINTDATE"]);
  284. $("#perna").val(ageanalysiscomplaint[0]["COMPLAINANTFIRSTNAME"]);
  285. $("#addr").val(ageanalysiscomplaint[0]["COMPLAINANTADDRESS"]);
  286. $("#mobno").val(ageanalysiscomplaint[0]["MOBILENUMBER"]);
  287. $("#pinco").val(ageanalysiscomplaint[0]["PINCODE"]);
  288. $("#compldet").val(ageanalysiscomplaint[0]["COMPLAINTDETAILS"]);
  289. $("#comlo").val(ageanalysiscomplaint[0]["COMPLAINTLOCATION"]);
  290. //$("#testmail").html(zonecomplaint[0]["COMPLAINANTEMAIL"]); //testmail
  291. /* document.getElementById("sno").value =zonecomplaint.i.count;
  292. document.getElementById("comno").value =zonecomplaint.COMPLAINTNUMBER;
  293. document.getElementById("dep").value =zonecomplaint.DEPT_NAME;
  294. document.getElementById("comtyp").value =zonecomplaint.COMPLAINTTITLE;
  295. document.getElementById("comdat").value =zonecomplaint.COMPLAINTDATE;
  296. document.getElementById("perna").value =zonecomplaint.COMPLAINANTFIRSTNAME;
  297. document.getElementById("addr").value =zonecomplaint.COMPLAINANTADDRESS;
  298. document.getElementById("pinco").value =zonecomplaint.PINCODE;
  299. document.getElementById("mobno").value =zonecomplaint.MOBILENUMBER;
  300. document.getElementById("comptit").value =zonecomplaint.COMPLAINANTEMAIL;
  301. document.getElementById("compldet").value =zonecomplaint.COMPLAINTDETAILS;
  302. document.getElementById("comlo").value =zonecomplaint.COMPLAINTLOCATION; */
  303. $('#infoForm').modal('show');
  304. return false;
  305. }
  306. $(document).ready(function() {
  307. // DataTables buttons configuration
  308. var buttons = [
  309. {
  310. extend: 'pageLength',
  311. className: 'btn btn-warning'
  312. },
  313. {
  314. title: 'Data export',
  315. extend: 'copyHtml5',
  316. text: 'Copy',
  317. className: 'btn btn-secondary',
  318. id: 'copyBtn'
  319. },
  320. {
  321. extend: 'excelHtml5',
  322. text: 'Excel',
  323. className: 'btn btn-secondary',
  324. id: 'excelBtn'
  325. },
  326. {
  327. extend: 'csvHtml5',
  328. text: 'CSV',
  329. className: 'btn btn-secondary',
  330. id: 'csvBtn'
  331. },
  332. {
  333. extend: 'pdfHtml5',
  334. text: 'PDF',
  335. className: 'btn btn-secondary',
  336. id: 'pdfBtn',
  337. title:'ZoneWise'
  338. },
  339. // Additional button
  340. /*
  341. {
  342. text: '<i class="far fa-plus-square"></i> Add New Asset',
  343. className: 'btn btn-warning',
  344. action: function () {
  345. callAdd();
  346. }
  347. }
  348. */
  349. ];
  350. $('#assetDatatable').DataTable( {
  351. dom: 'Bftip',
  352. columnDefs: [
  353. { targets: 'no-sort', orderable: false }
  354. ],
  355. lengthMenu: [
  356. [ 50, 100, 200, 500, -1 ],
  357. [ '50 rows', '100 rows', '200 rows','500 rows', 'Show all' ]
  358. ],
  359. scrollY: '50vh',
  360. fixedColumns: {
  361. left: 1,
  362. right: 1
  363. },
  364. buttons: [buttons],
  365. fixedHeader: true,
  366. autoWidth: true,
  367. responsive: true,
  368. searching: false,
  369. select: false,
  370. processing: false,
  371. } );
  372. } );
  373. function callAdd(){
  374. $('#addForm').modal({
  375. backdrop: 'static',
  376. keyboard: false
  377. })
  378. $('#addForm').modal('show');
  379. }
  380. function replaceEmojis(text) {
  381. // Replace Unicode emoji sequences with corresponding HTML entities
  382. return text.replace(/([\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{2600}-\u{26FF}\u{2700}-\u{27BF}])/gu, (match) => `&#${match.codePointAt(0)};`);
  383. }
  384. </script>
  385. </body>
  386. </html>