Browse Source

update the checklist code

master
Dizho A 9 months ago
parent
commit
2cb58da350
  1. 2
      src/main/java/com/gcc/publicgrievance/controller/ComplaintController.java
  2. 7
      src/main/resources/templates/checklistofficer/checklistofficer.html

2
src/main/java/com/gcc/publicgrievance/controller/ComplaintController.java

@ -199,7 +199,7 @@ public ResponseEntity<?> registerComplaint(
"&longtitude=" + URLEncoder.encode(longtitude != null ? longtitude : "", "UTF-8") + "&longtitude=" + URLEncoder.encode(longtitude != null ? longtitude : "", "UTF-8") +
"&Landmark=" + URLEncoder.encode(landmark != null ? landmark : "", "UTF-8") + "&Landmark=" + URLEncoder.encode(landmark != null ? landmark : "", "UTF-8") +
"&gender=" + URLEncoder.encode(gender != null ? gender : "", "UTF-8") + "&gender=" + URLEncoder.encode(gender != null ? gender : "", "UTF-8") +
"&compmode=2";
"&compmode=1";
try (OutputStream os = conn.getOutputStream()) { try (OutputStream os = conn.getOutputStream()) {
byte[] input = params.getBytes("UTF-8"); byte[] input = params.getBytes("UTF-8");

7
src/main/resources/templates/checklistofficer/checklistofficer.html

@ -154,6 +154,10 @@
<label>Complainant Type:</label> <label>Complainant Type:</label>
<input type="text" class="form-control" id="complaintType" disabled> <input type="text" class="form-control" id="complaintType" disabled>
</div> </div>
<div class="col-md-4">
<label>Complainant Mode:</label>
<input type="text" class="form-control" id="complaintMode" disabled>
</div>
<!--<div class="col-md-4"> <!--<div class="col-md-4">
Complainant Sub-Type: Complainant Sub-Type:
@ -304,6 +308,8 @@
document.getElementById("area").value = complaintDetails.Area || ''; document.getElementById("area").value = complaintDetails.Area || '';
document.getElementById("location").value = complaintDetails.Location || ''; document.getElementById("location").value = complaintDetails.Location || '';
document.getElementById("complaintType").value = complaintDetails.complainttype || ''; document.getElementById("complaintType").value = complaintDetails.complainttype || '';
document.getElementById("complaintMode").value = complaintDetails.COMP_MODE || '';
// Decode and populate complaint description // Decode and populate complaint description
document.getElementById("complaintdesc").value = decodeHtmlEntities(complaintDetails.complaintdetails || ''); document.getElementById("complaintdesc").value = decodeHtmlEntities(complaintDetails.complaintdetails || '');
@ -330,6 +336,7 @@
} else if (complaintCurrentStatus === 'WITHDRAWN') { } else if (complaintCurrentStatus === 'WITHDRAWN') {
addOption('WITHDRAWN', '8'); addOption('WITHDRAWN', '8');
addOption('REOPENED', '9'); addOption('REOPENED', '9');
document.getElementById('complaintActionDiv').style.display = 'none';
} }
else if (complaintCurrentStatus === 'CLOSE') { else if (complaintCurrentStatus === 'CLOSE') {
addOption('CLOSE', '10'); addOption('CLOSE', '10');

Loading…
Cancel
Save