|
|
@ -325,7 +325,7 @@ |
|
|
|
|
|
|
|
|
<thead class="table-header"> |
|
|
<thead class="table-header"> |
|
|
<tr> |
|
|
<tr> |
|
|
<th class="text-center">Complaint Name</th> |
|
|
|
|
|
|
|
|
<!--<th class="text-center">Complaint Name</th>--> |
|
|
|
|
|
|
|
|
<th class="text-center">Before Image</th> |
|
|
<th class="text-center">Before Image</th> |
|
|
<th class="text-center">Complaint Created Date</th> |
|
|
<th class="text-center">Complaint Created Date</th> |
|
|
@ -366,7 +366,7 @@ |
|
|
|
|
|
|
|
|
<div class="table-responsive"> |
|
|
<div class="table-responsive"> |
|
|
|
|
|
|
|
|
<table class="table table-bordered text-center"> |
|
|
|
|
|
|
|
|
<table id="schemeTable" class="table table-bordered text-center"> |
|
|
|
|
|
|
|
|
<thead class="table-header"> |
|
|
<thead class="table-header"> |
|
|
|
|
|
|
|
|
@ -415,7 +415,7 @@ |
|
|
|
|
|
|
|
|
<div class="table-responsive"> |
|
|
<div class="table-responsive"> |
|
|
|
|
|
|
|
|
<table class="table table-bordered text-center"> |
|
|
|
|
|
|
|
|
<table id="tenementComplaintTable" class="table table-bordered text-center"> |
|
|
|
|
|
|
|
|
<thead class=" table-header"> |
|
|
<thead class=" table-header"> |
|
|
|
|
|
|
|
|
@ -612,7 +612,7 @@ |
|
|
|
|
|
|
|
|
html += ` |
|
|
html += ` |
|
|
<tr> |
|
|
<tr> |
|
|
<td>${c.complaint_name}</td> |
|
|
|
|
|
|
|
|
<td>${c.complaint_name}</td> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
<td> |
|
|
@ -639,23 +639,30 @@ ${c.after_image ? `<img src="${c.after_image}" width="80" class="preview-img" st |
|
|
|
|
|
|
|
|
$("#complaintDetailsBody").html(html); |
|
|
$("#complaintDetailsBody").html(html); |
|
|
$("#complaintTable").DataTable({ |
|
|
$("#complaintTable").DataTable({ |
|
|
|
|
|
|
|
|
destroy: true, |
|
|
destroy: true, |
|
|
|
|
|
|
|
|
|
|
|
pageLength: 10, |
|
|
|
|
|
|
|
|
dom: 'Bfrtip', |
|
|
dom: 'Bfrtip', |
|
|
|
|
|
|
|
|
buttons: [ |
|
|
buttons: [ |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
extend: 'excelHtml5', |
|
|
extend: 'excelHtml5', |
|
|
text: 'Download Excel', |
|
|
text: 'Download Excel', |
|
|
title: 'Complaint_Details' |
|
|
title: 'Complaint_Details' |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
extend: 'pdfHtml5', |
|
|
extend: 'pdfHtml5', |
|
|
text: 'Download PDF', |
|
|
text: 'Download PDF', |
|
|
title: 'Complaint_Details', |
|
|
title: 'Complaint_Details', |
|
|
orientation: 'landscape' |
|
|
|
|
|
|
|
|
orientation: 'landscape', |
|
|
|
|
|
pageSize: 'A4' |
|
|
} |
|
|
} |
|
|
] |
|
|
] |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
$("#complaintModal").modal("show"); |
|
|
$("#complaintModal").modal("show"); |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
@ -956,7 +963,7 @@ ${( |
|
|
|
|
|
|
|
|
$("#zoneTable tbody").html(rows); |
|
|
$("#zoneTable tbody").html(rows); |
|
|
|
|
|
|
|
|
$('#zoneTable').DataTable({ |
|
|
|
|
|
|
|
|
/*$('#zoneTable').DataTable({ |
|
|
|
|
|
|
|
|
destroy: true, |
|
|
destroy: true, |
|
|
paging: false, |
|
|
paging: false, |
|
|
@ -965,6 +972,36 @@ ${( |
|
|
info: false, |
|
|
info: false, |
|
|
autoWidth: false, |
|
|
autoWidth: false, |
|
|
scrollX: true |
|
|
scrollX: true |
|
|
|
|
|
});*/ |
|
|
|
|
|
$('#zoneTable').DataTable({ |
|
|
|
|
|
|
|
|
|
|
|
destroy: true, |
|
|
|
|
|
paging: false, |
|
|
|
|
|
searching: true, |
|
|
|
|
|
ordering: false, |
|
|
|
|
|
info: false, |
|
|
|
|
|
autoWidth: false, |
|
|
|
|
|
scrollX: true, |
|
|
|
|
|
|
|
|
|
|
|
dom: 'Bfrtip', |
|
|
|
|
|
|
|
|
|
|
|
buttons: [ |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
extend: 'excelHtml5', |
|
|
|
|
|
text: 'Download Excel', |
|
|
|
|
|
title: 'IE_Complaints_Report' |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
extend: 'pdfHtml5', |
|
|
|
|
|
text: 'Download PDF', |
|
|
|
|
|
title: 'IE_Complaints_Report', |
|
|
|
|
|
orientation: 'landscape', |
|
|
|
|
|
pageSize: 'A3' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
] |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
}).fail(function (err) { |
|
|
}).fail(function (err) { |
|
|
@ -1227,6 +1264,9 @@ ${( |
|
|
garbageData.length, |
|
|
garbageData.length, |
|
|
tenementData.length |
|
|
tenementData.length |
|
|
); |
|
|
); |
|
|
|
|
|
if ($.fn.DataTable.isDataTable('#wardTable')) { |
|
|
|
|
|
$('#wardTable').DataTable().destroy(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// ward name map |
|
|
// ward name map |
|
|
let wardNameMap = { |
|
|
let wardNameMap = { |
|
|
@ -1262,7 +1302,7 @@ ${( |
|
|
|
|
|
|
|
|
<!-- HOTSPOT --> |
|
|
<!-- HOTSPOT --> |
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
<!--<td> |
|
|
|
|
|
|
|
|
${h.total_count > 0 ? |
|
|
${h.total_count > 0 ? |
|
|
|
|
|
|
|
|
@ -1281,12 +1321,59 @@ ${h.total_count} |
|
|
|
|
|
|
|
|
<td>${h.pending_count || 0}</td> |
|
|
<td>${h.pending_count || 0}</td> |
|
|
|
|
|
|
|
|
|
|
|
--> |
|
|
|
|
|
<!-- HOTSPOT --> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
<!-- TRANSPORT --> |
|
|
|
|
|
|
|
|
${h.total_count > 0 ? |
|
|
|
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openComplaintDetails('${zone}','${ward}','4','all')"> |
|
|
|
|
|
|
|
|
|
|
|
${h.total_count} |
|
|
|
|
|
|
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
<td> |
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${h.completed_count > 0 ? |
|
|
|
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openComplaintDetails('${zone}','${ward}','4','completed')"> |
|
|
|
|
|
|
|
|
|
|
|
${h.completed_count} |
|
|
|
|
|
|
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${h.pending_count > 0 ? |
|
|
|
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openComplaintDetails('${zone}','${ward}','4','pending')"> |
|
|
|
|
|
|
|
|
|
|
|
${h.pending_count} |
|
|
|
|
|
|
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- TRANSPORT --> |
|
|
|
|
|
|
|
|
|
|
|
<!--<td> |
|
|
|
|
|
|
|
|
${t.total_count > 0 ? |
|
|
${t.total_count > 0 ? |
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
`<a href="javascript:void(0)" |
|
|
@ -1302,14 +1389,60 @@ ${t.total_count} |
|
|
|
|
|
|
|
|
<td>${t.completed_count || 0}</td> |
|
|
<td>${t.completed_count || 0}</td> |
|
|
|
|
|
|
|
|
<td>${t.pending_count || 0}</td> |
|
|
|
|
|
|
|
|
<td>${t.pending_count || 0}</td>--> |
|
|
|
|
|
<!-- RC BIN --> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${t.total_count > 0 ? |
|
|
|
|
|
|
|
|
<!-- GARBAGE --> |
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openComplaintDetails('${zone}','${ward}','6','all')"> |
|
|
|
|
|
|
|
|
|
|
|
${t.total_count} |
|
|
|
|
|
|
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
<td> |
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${t.completed_count > 0 ? |
|
|
|
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openComplaintDetails('${zone}','${ward}','6','completed')"> |
|
|
|
|
|
|
|
|
|
|
|
${t.completed_count} |
|
|
|
|
|
|
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${t.pending_count > 0 ? |
|
|
|
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openComplaintDetails('${zone}','${ward}','6','pending')"> |
|
|
|
|
|
|
|
|
|
|
|
${t.pending_count} |
|
|
|
|
|
|
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- GARBAGE --> |
|
|
|
|
|
|
|
|
|
|
|
<!--<td> |
|
|
|
|
|
|
|
|
${g.total_count > 0 ? |
|
|
${g.total_count > 0 ? |
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
`<a href="javascript:void(0)" |
|
|
@ -1325,7 +1458,53 @@ ${g.total_count} |
|
|
|
|
|
|
|
|
<td>${g.completed_count || 0}</td> |
|
|
<td>${g.completed_count || 0}</td> |
|
|
|
|
|
|
|
|
<td>${g.pending_count || 0}</td> |
|
|
|
|
|
|
|
|
<td>${g.pending_count || 0}</td>--> |
|
|
|
|
|
<!-- GARBAGE --> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${g.total_count > 0 ? |
|
|
|
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openComplaintDetails('${zone}','${ward}','12','all')"> |
|
|
|
|
|
|
|
|
|
|
|
${g.total_count} |
|
|
|
|
|
|
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${g.completed_count > 0 ? |
|
|
|
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openComplaintDetails('${zone}','${ward}','12','completed')"> |
|
|
|
|
|
|
|
|
|
|
|
${g.completed_count} |
|
|
|
|
|
|
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${g.pending_count > 0 ? |
|
|
|
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openComplaintDetails('${zone}','${ward}','12','pending')"> |
|
|
|
|
|
|
|
|
|
|
|
${g.pending_count} |
|
|
|
|
|
|
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1355,9 +1534,38 @@ ${ten.total_complaint_count} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$("#wardTableBody").html(html); |
|
|
$("#wardTableBody").html(html); |
|
|
|
|
|
$('#wardTable').DataTable({ |
|
|
|
|
|
|
|
|
|
|
|
destroy: true, |
|
|
|
|
|
|
|
|
|
|
|
dom: 'Bfrtip', |
|
|
|
|
|
|
|
|
|
|
|
pageLength: 15, |
|
|
|
|
|
|
|
|
|
|
|
scrollX: true, |
|
|
|
|
|
|
|
|
|
|
|
buttons: [ |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
extend: 'excelHtml5', |
|
|
|
|
|
text: 'Download Excel', |
|
|
|
|
|
title: 'Ward_Activity_Report' |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
extend: 'pdfHtml5', |
|
|
|
|
|
text: 'Download PDF', |
|
|
|
|
|
title: 'Ward_Activity_Report', |
|
|
|
|
|
orientation: 'landscape', |
|
|
|
|
|
pageSize: 'A3' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
] |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
$("#wardModal").modal("show"); |
|
|
$("#wardModal").modal("show"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
function openWardModalworking(zone) { |
|
|
function openWardModalworking(zone) { |
|
|
@ -1550,7 +1758,72 @@ ${ten.total_complaint_count} |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
function openComplaintDetails(zone, ward, complaintId) { |
|
|
|
|
|
|
|
|
function openComplaintDetails(zone, ward, complaintId, status) { |
|
|
|
|
|
|
|
|
|
|
|
let fromDate = $("#fromDate").val(); |
|
|
|
|
|
let toDate = $("#toDate").val(); |
|
|
|
|
|
|
|
|
|
|
|
$.get("/commissionerreview/api/iecomplaints/vendorcomplaintDetails", { |
|
|
|
|
|
|
|
|
|
|
|
zone: zone, |
|
|
|
|
|
ward: ward, |
|
|
|
|
|
complaintId: complaintId, |
|
|
|
|
|
status: status, |
|
|
|
|
|
fromDate: fromDate, |
|
|
|
|
|
toDate: toDate |
|
|
|
|
|
|
|
|
|
|
|
}, function (res) { |
|
|
|
|
|
|
|
|
|
|
|
console.log(res); |
|
|
|
|
|
|
|
|
|
|
|
let data = res.data || []; |
|
|
|
|
|
|
|
|
|
|
|
let html = ""; |
|
|
|
|
|
|
|
|
|
|
|
data.forEach(item => { |
|
|
|
|
|
|
|
|
|
|
|
html += ` |
|
|
|
|
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <td>${item.complaint_name || ''}</td> --> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
${item.before_image ? |
|
|
|
|
|
|
|
|
|
|
|
`<img src="${item.before_image}" |
|
|
|
|
|
style="width:80px;height:80px;" class="preview-img" style="cursor:pointer" >` |
|
|
|
|
|
|
|
|
|
|
|
: 'No Image'} |
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
<td>${item.complaint_created_date || ''}</td> |
|
|
|
|
|
|
|
|
|
|
|
<td>${item.complaint_street_name || ''}</td> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
${item.after_image ? |
|
|
|
|
|
|
|
|
|
|
|
`<img src="${item.after_image}" |
|
|
|
|
|
style="width:80px;height:80px;" class="preview-img" style="cursor:pointer" >` |
|
|
|
|
|
|
|
|
|
|
|
: 'Pending'} |
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
<td>${item.completion_date || 'Pending'}</td> |
|
|
|
|
|
|
|
|
|
|
|
<td>${item.completion_street_name || 'Pending'}</td> |
|
|
|
|
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
`; |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$("#complaintDetailsBody").html(html); |
|
|
|
|
|
|
|
|
|
|
|
$("#complaintModal").modal("show"); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
function openComplaintDetailslastworkinglive(zone, ward, complaintId) { |
|
|
|
|
|
|
|
|
let fromDate = $("#fromDate").val(); |
|
|
let fromDate = $("#fromDate").val(); |
|
|
let toDate = $("#toDate").val(); |
|
|
let toDate = $("#toDate").val(); |
|
|
@ -1580,8 +1853,8 @@ ${ten.total_complaint_count} |
|
|
<tr> |
|
|
<tr> |
|
|
<td>${row.complaint_name || ''}</td> |
|
|
<td>${row.complaint_name || ''}</td> |
|
|
<td> |
|
|
<td> |
|
|
<img src="${row.before_image}" |
|
|
|
|
|
width="80" |
|
|
|
|
|
|
|
|
<img src="${row.before_image} " |
|
|
|
|
|
width="80" c |
|
|
height="80"> |
|
|
height="80"> |
|
|
</td> |
|
|
</td> |
|
|
<td>${row.complaint_created_date || ''}</td> |
|
|
<td>${row.complaint_created_date || ''}</td> |
|
|
@ -1749,15 +2022,86 @@ height="80">` |
|
|
: 0} |
|
|
: 0} |
|
|
</td> |
|
|
</td> |
|
|
|
|
|
|
|
|
<td>${row.total_complaint_closed_count || 0}</td> |
|
|
|
|
|
|
|
|
<!--<td>${row.total_complaint_closed_count || 0}</td> |
|
|
|
|
|
|
|
|
|
|
|
<td>${row.total_complaint_pending_count || 0}</td>--> |
|
|
|
|
|
<!-- COMPLETED --> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${row.total_complaint_closed_count > 0 |
|
|
|
|
|
|
|
|
|
|
|
? `<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openTenementComplaintModal( |
|
|
|
|
|
'${ward}', |
|
|
|
|
|
'${row.schemeid}', |
|
|
|
|
|
'completed' |
|
|
|
|
|
)"> |
|
|
|
|
|
|
|
|
|
|
|
${row.total_complaint_closed_count} |
|
|
|
|
|
|
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
<!-- PENDING --> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${row.total_complaint_pending_count > 0 |
|
|
|
|
|
|
|
|
<td>${row.total_complaint_pending_count || 0}</td> |
|
|
|
|
|
|
|
|
? `<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openTenementComplaintModal( |
|
|
|
|
|
'${ward}', |
|
|
|
|
|
'${row.schemeid}', |
|
|
|
|
|
'created' |
|
|
|
|
|
)"> |
|
|
|
|
|
|
|
|
|
|
|
${row.total_complaint_pending_count} |
|
|
|
|
|
|
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
</tr> |
|
|
</tr> |
|
|
`; |
|
|
`; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$("#schemeTableBody").html(html); |
|
|
$("#schemeTableBody").html(html); |
|
|
|
|
|
if ($.fn.DataTable.isDataTable('#schemeTable')) { |
|
|
|
|
|
$('#schemeTable').DataTable().destroy(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$('#schemeTable').DataTable({ |
|
|
|
|
|
|
|
|
|
|
|
destroy: true, |
|
|
|
|
|
|
|
|
|
|
|
dom: 'Bfrtip', |
|
|
|
|
|
|
|
|
|
|
|
pageLength: 10, |
|
|
|
|
|
|
|
|
|
|
|
buttons: [ |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
extend: 'excelHtml5', |
|
|
|
|
|
text: 'Download Excel', |
|
|
|
|
|
title: 'Tenement_Scheme_Report' |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
extend: 'pdfHtml5', |
|
|
|
|
|
text: 'Download PDF', |
|
|
|
|
|
title: 'Tenement_Scheme_Report', |
|
|
|
|
|
orientation: 'landscape', |
|
|
|
|
|
pageSize: 'A4' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
] |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
// ATTACH EVENT FIRST |
|
|
// ATTACH EVENT FIRST |
|
|
$('#wardModal').one('hidden.bs.modal', function () { |
|
|
$('#wardModal').one('hidden.bs.modal', function () { |
|
|
@ -1779,7 +2123,8 @@ height="80">` |
|
|
} |
|
|
} |
|
|
function openTenementComplaintModal( |
|
|
function openTenementComplaintModal( |
|
|
ward, |
|
|
ward, |
|
|
schemeid |
|
|
|
|
|
|
|
|
schemeid, |
|
|
|
|
|
status |
|
|
) { |
|
|
) { |
|
|
console.log("WARD", ward); |
|
|
console.log("WARD", ward); |
|
|
console.log("SCHEMEID", schemeid); |
|
|
console.log("SCHEMEID", schemeid); |
|
|
@ -1792,13 +2137,17 @@ height="80">` |
|
|
{ |
|
|
{ |
|
|
ward: ward, |
|
|
ward: ward, |
|
|
schemeid: schemeid, |
|
|
schemeid: schemeid, |
|
|
|
|
|
|
|
|
|
|
|
status: status, |
|
|
fromDate: fromDate, |
|
|
fromDate: fromDate, |
|
|
toDate: toDate |
|
|
toDate: toDate |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
function (res) { |
|
|
function (res) { |
|
|
console.log("RES=", res); |
|
|
console.log("RES=", res); |
|
|
|
|
|
if ($.fn.DataTable.isDataTable('#tenementComplaintTable')) { |
|
|
|
|
|
|
|
|
|
|
|
$('#tenementComplaintTable').DataTable().destroy(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
let data = res.data || []; |
|
|
let data = res.data || []; |
|
|
|
|
|
|
|
|
@ -1852,6 +2201,38 @@ ${row.after_image ? `<img src="${row.after_image}" width="80" class="preview-img |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
$("#tenementComplaintTableBody").html(html); |
|
|
$("#tenementComplaintTableBody").html(html); |
|
|
|
|
|
if ($.fn.DataTable.isDataTable('#tenementComplaintTable')) { |
|
|
|
|
|
|
|
|
|
|
|
$('#tenementComplaintTable').DataTable().destroy(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$('#tenementComplaintTable').DataTable({ |
|
|
|
|
|
|
|
|
|
|
|
pageLength: 10, |
|
|
|
|
|
|
|
|
|
|
|
searching: true, |
|
|
|
|
|
|
|
|
|
|
|
ordering: false, |
|
|
|
|
|
|
|
|
|
|
|
lengthChange: false, |
|
|
|
|
|
|
|
|
|
|
|
dom: 'Bfrtip', |
|
|
|
|
|
|
|
|
|
|
|
buttons: [ |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
extend: 'excelHtml5', |
|
|
|
|
|
title: 'Tenement Complaint Details' |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
extend: 'pdfHtml5', |
|
|
|
|
|
title: 'Tenement Complaint Details', |
|
|
|
|
|
orientation: 'landscape', |
|
|
|
|
|
pageSize: 'A4' |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
$("#tenementComplaintModal").modal("show"); |
|
|
$("#tenementComplaintModal").modal("show"); |
|
|
} |
|
|
} |
|
|
@ -2000,7 +2381,7 @@ ${w.ward} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$("#zoneTableBody").html(html); |
|
|
$("#zoneTableBody").html(html); |
|
|
$("#zoneTable").DataTable({ |
|
|
|
|
|
|
|
|
/*$("#zoneTable").DataTable({ |
|
|
destroy: true, |
|
|
destroy: true, |
|
|
dom: 'Bfrtip', |
|
|
dom: 'Bfrtip', |
|
|
pageLength: 15, |
|
|
pageLength: 15, |
|
|
@ -2017,6 +2398,36 @@ ${w.ward} |
|
|
orientation: 'landscape' |
|
|
orientation: 'landscape' |
|
|
} |
|
|
} |
|
|
] |
|
|
] |
|
|
|
|
|
});*/ |
|
|
|
|
|
$('#zoneTable').DataTable({ |
|
|
|
|
|
|
|
|
|
|
|
destroy: true, |
|
|
|
|
|
paging: false, |
|
|
|
|
|
searching: true, |
|
|
|
|
|
ordering: false, |
|
|
|
|
|
info: false, |
|
|
|
|
|
autoWidth: false, |
|
|
|
|
|
scrollX: true, |
|
|
|
|
|
|
|
|
|
|
|
dom: 'Bfrtip', |
|
|
|
|
|
|
|
|
|
|
|
buttons: [ |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
extend: 'excelHtml5', |
|
|
|
|
|
text: 'Download Excel', |
|
|
|
|
|
title: 'IE_Complaints_Report' |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
extend: 'pdfHtml5', |
|
|
|
|
|
text: 'Download PDF', |
|
|
|
|
|
title: 'IE_Complaints_Report', |
|
|
|
|
|
orientation: 'landscape', |
|
|
|
|
|
pageSize: 'A3' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
] |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
@ -2084,7 +2495,10 @@ ${w.ward} |
|
|
<div class="card-header complaint-header"> |
|
|
<div class="card-header complaint-header"> |
|
|
${item.complaint_id == 6 |
|
|
${item.complaint_id == 6 |
|
|
? 'RC Bin Overflow' |
|
|
? 'RC Bin Overflow' |
|
|
: item.complaint_name} |
|
|
|
|
|
|
|
|
: item.complaint_id == 12 |
|
|
|
|
|
? 'Unauthorized garbage dumping' |
|
|
|
|
|
: item.complaint_name |
|
|
|
|
|
} |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!--<div class="card-header complaint-header"> |
|
|
<!--<div class="card-header complaint-header"> |
|
|
|