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.

421 lines
20 KiB

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