|
|
@ -106,6 +106,81 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Sweeping */ |
|
|
|
|
|
#zoneTable tbody td:nth-child(2), |
|
|
|
|
|
#zoneTable tbody td:nth-child(3), |
|
|
|
|
|
#zoneTable tbody td:nth-child(4) { |
|
|
|
|
|
background-color: #f8f9fa; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Hotspot - Dark */ |
|
|
|
|
|
#zoneTable tbody td:nth-child(5), |
|
|
|
|
|
#zoneTable tbody td:nth-child(6), |
|
|
|
|
|
#zoneTable tbody td:nth-child(7) { |
|
|
|
|
|
background-color: #E1ECFC; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* RC Bin Overflow */ |
|
|
|
|
|
#zoneTable tbody td:nth-child(8), |
|
|
|
|
|
#zoneTable tbody td:nth-child(9), |
|
|
|
|
|
#zoneTable tbody td:nth-child(10) { |
|
|
|
|
|
background-color: #f8f9fa; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Unauthorized Garbage Dumping - Dark */ |
|
|
|
|
|
#zoneTable tbody td:nth-child(11), |
|
|
|
|
|
#zoneTable tbody td:nth-child(12), |
|
|
|
|
|
#zoneTable tbody td:nth-child(13) { |
|
|
|
|
|
background-color: #E1ECFC; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Tenement */ |
|
|
|
|
|
#zoneTable tbody td:nth-child(14), |
|
|
|
|
|
#zoneTable tbody td:nth-child(15), |
|
|
|
|
|
#zoneTable tbody td:nth-child(16) { |
|
|
|
|
|
background-color: #f8f9fa; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Sweeping */ |
|
|
|
|
|
#wardTable tbody td:nth-child(2), |
|
|
|
|
|
#wardTable tbody td:nth-child(3), |
|
|
|
|
|
#wardTable tbody td:nth-child(4), |
|
|
|
|
|
#wardTable tbody td:nth-child(5) { |
|
|
|
|
|
background-color: #f8f9fa; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Hotspot */ |
|
|
|
|
|
#wardTable tbody td:nth-child(6), |
|
|
|
|
|
#wardTable tbody td:nth-child(7), |
|
|
|
|
|
#wardTable tbody td:nth-child(8), |
|
|
|
|
|
#wardTable tbody td:nth-child(9) { |
|
|
|
|
|
background-color: #E1ECFC; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* RC Bin Overflow */ |
|
|
|
|
|
#wardTable tbody td:nth-child(10), |
|
|
|
|
|
#wardTable tbody td:nth-child(11), |
|
|
|
|
|
#wardTable tbody td:nth-child(12), |
|
|
|
|
|
#wardTable tbody td:nth-child(13) { |
|
|
|
|
|
background-color: #f8f9fa; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Unauthorized Garbage Dumping */ |
|
|
|
|
|
#wardTable tbody td:nth-child(14), |
|
|
|
|
|
#wardTable tbody td:nth-child(15), |
|
|
|
|
|
#wardTable tbody td:nth-child(16), |
|
|
|
|
|
#wardTable tbody td:nth-child(17) { |
|
|
|
|
|
background-color: #E1ECFC; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Tenement */ |
|
|
|
|
|
#wardTable tbody td:nth-child(18), |
|
|
|
|
|
#wardTable tbody td:nth-child(19), |
|
|
|
|
|
#wardTable tbody td:nth-child(20), |
|
|
|
|
|
#wardTable tbody td:nth-child(21) { |
|
|
|
|
|
background-color: #f8f9fa; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
</head> |
|
|
</head> |
|
|
|
|
|
|
|
|
@ -200,6 +275,9 @@ |
|
|
<th rowspan="2" class="text-center align-middle"> |
|
|
<th rowspan="2" class="text-center align-middle"> |
|
|
Zone |
|
|
Zone |
|
|
</th> |
|
|
</th> |
|
|
|
|
|
<th colspan="3" class="text-center"> |
|
|
|
|
|
Sweeping |
|
|
|
|
|
</th> |
|
|
|
|
|
|
|
|
<!-- Garbage --> |
|
|
<!-- Garbage --> |
|
|
<th colspan="3" class="text-center"> |
|
|
<th colspan="3" class="text-center"> |
|
|
@ -225,6 +303,11 @@ |
|
|
|
|
|
|
|
|
<tr> |
|
|
<tr> |
|
|
|
|
|
|
|
|
|
|
|
<!-- Sweeping --> |
|
|
|
|
|
<th class="text-center">Complaints</th> |
|
|
|
|
|
<th class="text-center">Completed</th> |
|
|
|
|
|
<th class="text-center">Pending</th> |
|
|
|
|
|
|
|
|
<!-- Garbage --> |
|
|
<!-- Garbage --> |
|
|
<th class="text-center">Complaints</th> |
|
|
<th class="text-center">Complaints</th> |
|
|
<th class="text-center">Completed</th> |
|
|
<th class="text-center">Completed</th> |
|
|
@ -272,32 +355,49 @@ |
|
|
<thead class="table-header"> |
|
|
<thead class="table-header"> |
|
|
<tr> |
|
|
<tr> |
|
|
<th rowspan="2" class="text-center align-middle">Ward</th> |
|
|
<th rowspan="2" class="text-center align-middle">Ward</th> |
|
|
|
|
|
<!-- Sweeping --> |
|
|
|
|
|
<th colspan="4" class="text-center">Sweeping</th> |
|
|
<!-- Hotspot --> |
|
|
<!-- Hotspot --> |
|
|
<th colspan="3" class="text-center">Hotspot</th> |
|
|
|
|
|
|
|
|
<th colspan="4" class="text-center">Hotspot</th> |
|
|
<!-- Transport --> |
|
|
<!-- Transport --> |
|
|
<th colspan="3" class="text-center">RC Bin Overflow</th> |
|
|
|
|
|
|
|
|
<th colspan="4" class="text-center">RC Bin Overflow</th> |
|
|
<!-- Garbage --> |
|
|
<!-- Garbage --> |
|
|
<th colspan="3" class="text-center">Unauthorized garbage dumping</th> |
|
|
|
|
|
|
|
|
<th colspan="4" class="text-center">Unauthorized garbage dumping</th> |
|
|
<!-- Tenement --> |
|
|
<!-- Tenement --> |
|
|
<th colspan="3" class="text-center">Tenement</th> |
|
|
|
|
|
|
|
|
<th colspan="4" class="text-center">Tenement</th> |
|
|
</tr> |
|
|
</tr> |
|
|
<tr> |
|
|
<tr> |
|
|
|
|
|
<!-- Sweeping --> |
|
|
|
|
|
<th class="text-center">Total</th> |
|
|
|
|
|
<th class="text-center">Completed</th> |
|
|
|
|
|
<th class="text-center">Vendor Pending</th> |
|
|
|
|
|
<th class="text-center">IE Pending</th> |
|
|
|
|
|
|
|
|
<!-- Hotspot --> |
|
|
<!-- Hotspot --> |
|
|
<th class="text-center">Total</th> |
|
|
<th class="text-center">Total</th> |
|
|
<th class="text-center">Completed</th> |
|
|
<th class="text-center">Completed</th> |
|
|
<th class="text-center">Pending</th> |
|
|
|
|
|
|
|
|
<th class="text-center">Vendor Pending</th> |
|
|
|
|
|
<th class="text-center">IE Pending</th> |
|
|
|
|
|
|
|
|
<!-- Transport --> |
|
|
<!-- Transport --> |
|
|
<th class="text-center">Total</th> |
|
|
<th class="text-center">Total</th> |
|
|
<th class="text-center">Completed</th> |
|
|
<th class="text-center">Completed</th> |
|
|
<th class="text-center">Pending</th> |
|
|
|
|
|
|
|
|
<th class="text-center">Vendor Pending</th> |
|
|
|
|
|
<th class="text-center">IE Pending</th> |
|
|
|
|
|
|
|
|
<!-- Garbage --> |
|
|
<!-- Garbage --> |
|
|
<th class="text-center">Total</th> |
|
|
<th class="text-center">Total</th> |
|
|
<th class="text-center">Completed</th> |
|
|
<th class="text-center">Completed</th> |
|
|
<th class="text-center">Pending</th> |
|
|
|
|
|
|
|
|
<th class="text-center">Vendor Pending</th> |
|
|
|
|
|
<th class="text-center">IE Pending</th> |
|
|
|
|
|
|
|
|
<!-- Tenement --> |
|
|
<!-- Tenement --> |
|
|
<th class="text-center">Total</th> |
|
|
<th class="text-center">Total</th> |
|
|
<th class="text-center">Completed</th> |
|
|
<th class="text-center">Completed</th> |
|
|
<th class="text-center">Pending</th> |
|
|
|
|
|
|
|
|
<th class="text-center">Vendor Pending</th> |
|
|
|
|
|
<th class="text-center">IE Pending</th> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</tr> |
|
|
</tr> |
|
|
</thead> |
|
|
</thead> |
|
|
|
|
|
|
|
|
@ -378,7 +478,8 @@ |
|
|
<th>Scheme Name</th> |
|
|
<th>Scheme Name</th> |
|
|
<th>Total</th> |
|
|
<th>Total</th> |
|
|
<th>Completed</th> |
|
|
<th>Completed</th> |
|
|
<th>Pending</th> |
|
|
|
|
|
|
|
|
<th>Vendor Pending</th> |
|
|
|
|
|
<th>IE Pending</th> |
|
|
|
|
|
|
|
|
</tr> |
|
|
</tr> |
|
|
|
|
|
|
|
|
@ -771,6 +872,14 @@ ${wardCell} |
|
|
let toDate = $("#toDate").val(); |
|
|
let toDate = $("#toDate").val(); |
|
|
|
|
|
|
|
|
$.when( |
|
|
$.when( |
|
|
|
|
|
// SWEeping |
|
|
|
|
|
$.get("/commissionerreview/api/iecomplaints/vendorzoneActivity", { |
|
|
|
|
|
|
|
|
|
|
|
fromDate: fromDate, |
|
|
|
|
|
toDate: toDate, |
|
|
|
|
|
complaintId: 3 |
|
|
|
|
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
// HOTSPOT |
|
|
// HOTSPOT |
|
|
$.get("/commissionerreview/api/iecomplaints/vendorzoneActivity", { |
|
|
$.get("/commissionerreview/api/iecomplaints/vendorzoneActivity", { |
|
|
@ -809,6 +918,7 @@ ${wardCell} |
|
|
|
|
|
|
|
|
).done(function ( |
|
|
).done(function ( |
|
|
|
|
|
|
|
|
|
|
|
sweepingRes, |
|
|
hotspotRes, |
|
|
hotspotRes, |
|
|
transportRes, |
|
|
transportRes, |
|
|
garbageRes, |
|
|
garbageRes, |
|
|
@ -816,6 +926,7 @@ ${wardCell} |
|
|
|
|
|
|
|
|
) { |
|
|
) { |
|
|
|
|
|
|
|
|
|
|
|
let sweepingData = sweepingRes[0].data || []; |
|
|
let hotspotData = hotspotRes[0].data || []; |
|
|
let hotspotData = hotspotRes[0].data || []; |
|
|
let transportData = transportRes[0].data || []; |
|
|
let transportData = transportRes[0].data || []; |
|
|
let garbageData = garbageRes[0].data || []; |
|
|
let garbageData = garbageRes[0].data || []; |
|
|
@ -830,11 +941,17 @@ ${wardCell} |
|
|
$("#zoneTable tbody").empty(); |
|
|
$("#zoneTable tbody").empty(); |
|
|
|
|
|
|
|
|
// maps |
|
|
// maps |
|
|
|
|
|
let sweepingMap = {}; |
|
|
let hotspotMap = {}; |
|
|
let hotspotMap = {}; |
|
|
let transportMap = {}; |
|
|
let transportMap = {}; |
|
|
let garbageMap = {}; |
|
|
let garbageMap = {}; |
|
|
let tenementMap = {}; |
|
|
let tenementMap = {}; |
|
|
|
|
|
|
|
|
|
|
|
sweepingData.forEach(item => { |
|
|
|
|
|
|
|
|
|
|
|
sweepingMap[item.zone_name] = item; |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
hotspotData.forEach(item => { |
|
|
hotspotData.forEach(item => { |
|
|
|
|
|
|
|
|
hotspotMap[item.zone_name] = item; |
|
|
hotspotMap[item.zone_name] = item; |
|
|
@ -903,6 +1020,7 @@ ${wardCell} |
|
|
let h = hotspotMap[zone] || {}; |
|
|
let h = hotspotMap[zone] || {}; |
|
|
let t = transportMap[zone] || {}; |
|
|
let t = transportMap[zone] || {}; |
|
|
let g = garbageMap[zone] || {}; |
|
|
let g = garbageMap[zone] || {}; |
|
|
|
|
|
let s = sweepingMap[zone] || {}; |
|
|
|
|
|
|
|
|
let ten = tenementMap[zone] || { |
|
|
let ten = tenementMap[zone] || { |
|
|
|
|
|
|
|
|
@ -918,11 +1036,13 @@ ${wardCell} |
|
|
<tr> |
|
|
<tr> |
|
|
|
|
|
|
|
|
<td> |
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${( |
|
|
${( |
|
|
g.total_count > 0 || |
|
|
g.total_count > 0 || |
|
|
h.total_count > 0 || |
|
|
h.total_count > 0 || |
|
|
t.total_count > 0 || |
|
|
t.total_count > 0 || |
|
|
|
|
|
s.total_count > 0 || |
|
|
ten.total > 0 |
|
|
ten.total > 0 |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
@ -943,6 +1063,12 @@ ${( |
|
|
|
|
|
|
|
|
</td> |
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
<!-- SWEEPING --> |
|
|
|
|
|
|
|
|
|
|
|
<td>${s.total_count || 0}</td> |
|
|
|
|
|
<td>${s.completed_count || 0}</td> |
|
|
|
|
|
<td>${s.pending_count || 0}</td> |
|
|
|
|
|
|
|
|
<!-- HOTSPOT --> |
|
|
<!-- HOTSPOT --> |
|
|
|
|
|
|
|
|
<td>${h.total_count || 0}</td> |
|
|
<td>${h.total_count || 0}</td> |
|
|
@ -1215,6 +1341,16 @@ ${( |
|
|
|
|
|
|
|
|
$.when( |
|
|
$.when( |
|
|
|
|
|
|
|
|
|
|
|
// SWEEPING |
|
|
|
|
|
$.get("/commissionerreview/api/iecomplaints/vendorwardActivity", { |
|
|
|
|
|
|
|
|
|
|
|
zone: zone, |
|
|
|
|
|
complaintId: 3, |
|
|
|
|
|
fromDate: fromDate, |
|
|
|
|
|
toDate: toDate |
|
|
|
|
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
// HOTSPOT |
|
|
// HOTSPOT |
|
|
$.get("/commissionerreview/api/iecomplaints/vendorwardActivity", { |
|
|
$.get("/commissionerreview/api/iecomplaints/vendorwardActivity", { |
|
|
|
|
|
|
|
|
@ -1255,7 +1391,7 @@ ${( |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
).done(function ( |
|
|
).done(function ( |
|
|
|
|
|
|
|
|
|
|
|
sweepingRes, |
|
|
hotspotRes, |
|
|
hotspotRes, |
|
|
transportRes, |
|
|
transportRes, |
|
|
garbageRes, |
|
|
garbageRes, |
|
|
@ -1263,6 +1399,7 @@ ${( |
|
|
|
|
|
|
|
|
) { |
|
|
) { |
|
|
|
|
|
|
|
|
|
|
|
let sweepingData = sweepingRes[0].data || []; |
|
|
let hotspotData = hotspotRes[0].data || []; |
|
|
let hotspotData = hotspotRes[0].data || []; |
|
|
let transportData = transportRes[0].data || []; |
|
|
let transportData = transportRes[0].data || []; |
|
|
let garbageData = garbageRes[0].data || []; |
|
|
let garbageData = garbageRes[0].data || []; |
|
|
@ -1271,12 +1408,13 @@ ${( |
|
|
let html = ""; |
|
|
let html = ""; |
|
|
|
|
|
|
|
|
let maxLength = Math.max( |
|
|
let maxLength = Math.max( |
|
|
|
|
|
|
|
|
|
|
|
sweepingData.length, |
|
|
hotspotData.length, |
|
|
hotspotData.length, |
|
|
transportData.length, |
|
|
transportData.length, |
|
|
garbageData.length, |
|
|
garbageData.length, |
|
|
tenementData.length |
|
|
tenementData.length |
|
|
); |
|
|
); |
|
|
|
|
|
console.log("SWEEPING DATA", sweepingData); |
|
|
console.log("HOTSPOT DATA", hotspotData); |
|
|
console.log("HOTSPOT DATA", hotspotData); |
|
|
console.log("TRANSPORT DATA", transportData); |
|
|
console.log("TRANSPORT DATA", transportData); |
|
|
console.log("GARBAGE DATA", garbageData); |
|
|
console.log("GARBAGE DATA", garbageData); |
|
|
@ -1296,12 +1434,14 @@ ${( |
|
|
|
|
|
|
|
|
for (let i = 0; i < maxLength; i++) { |
|
|
for (let i = 0; i < maxLength; i++) { |
|
|
|
|
|
|
|
|
|
|
|
let s = sweepingData[i] || {}; |
|
|
let h = hotspotData[i] || {}; |
|
|
let h = hotspotData[i] || {}; |
|
|
let t = transportData[i] || {}; |
|
|
let t = transportData[i] || {}; |
|
|
let g = garbageData[i] || {}; |
|
|
let g = garbageData[i] || {}; |
|
|
let ten = tenementData[i] || {}; |
|
|
let ten = tenementData[i] || {}; |
|
|
|
|
|
|
|
|
let ward = |
|
|
let ward = |
|
|
|
|
|
s.ward || |
|
|
h.ward || |
|
|
h.ward || |
|
|
t.ward || |
|
|
t.ward || |
|
|
g.ward || |
|
|
g.ward || |
|
|
@ -1317,6 +1457,62 @@ ${( |
|
|
|
|
|
|
|
|
<td>${displayWard}</td> |
|
|
<td>${displayWard}</td> |
|
|
|
|
|
|
|
|
|
|
|
<!-- SWEEPING --> |
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${s.total_count > 0 ? |
|
|
|
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openComplaintDetails('${zone}','${ward}','3','all')"> |
|
|
|
|
|
|
|
|
|
|
|
${s.total_count} |
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${s.completed_count > 0 ? |
|
|
|
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openComplaintDetails('${zone}','${ward}','3','verified')"> |
|
|
|
|
|
|
|
|
|
|
|
${s.completed_count} |
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${s.vendor_pending_count > 0 ? |
|
|
|
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openComplaintDetails('${zone}','${ward}','3','pending')"> |
|
|
|
|
|
|
|
|
|
|
|
${s.vendor_pending_count} |
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${s.ie_pending_count > 0 ? |
|
|
|
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openComplaintDetails('${zone}','${ward}','3','completed')"> |
|
|
|
|
|
|
|
|
|
|
|
${s.ie_pending_count} |
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
<!-- HOTSPOT --> |
|
|
<!-- HOTSPOT --> |
|
|
|
|
|
|
|
|
<!--<td> |
|
|
<!--<td> |
|
|
@ -1373,19 +1569,36 @@ ${h.completed_count} |
|
|
|
|
|
|
|
|
<td> |
|
|
<td> |
|
|
|
|
|
|
|
|
${h.pending_count > 0 ? |
|
|
|
|
|
|
|
|
${h.vendor_pending_count > 0 ? |
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
`<a href="javascript:void(0)" |
|
|
onclick="openComplaintDetails('${zone}','${ward}','4','pending')"> |
|
|
onclick="openComplaintDetails('${zone}','${ward}','4','pending')"> |
|
|
|
|
|
|
|
|
${h.pending_count} |
|
|
|
|
|
|
|
|
${h.vendor_pending_count} |
|
|
|
|
|
|
|
|
</a>` |
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${h.ie_pending_count > 0 ? |
|
|
|
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openComplaintDetails('${zone}','${ward}','4','completed')"> |
|
|
|
|
|
|
|
|
|
|
|
${h.ie_pending_count} |
|
|
|
|
|
|
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
<!-- TRANSPORT --> |
|
|
<!-- TRANSPORT --> |
|
|
|
|
|
|
|
|
@ -1441,12 +1654,12 @@ ${t.completed_count} |
|
|
|
|
|
|
|
|
<td> |
|
|
<td> |
|
|
|
|
|
|
|
|
${t.pending_count > 0 ? |
|
|
|
|
|
|
|
|
${t.vendor_pending_count > 0 ? |
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
`<a href="javascript:void(0)" |
|
|
onclick="openComplaintDetails('${zone}','${ward}','6','pending')"> |
|
|
onclick="openComplaintDetails('${zone}','${ward}','6','pending')"> |
|
|
|
|
|
|
|
|
${t.pending_count} |
|
|
|
|
|
|
|
|
${t.vendor_pending_count} |
|
|
|
|
|
|
|
|
</a>` |
|
|
</a>` |
|
|
|
|
|
|
|
|
@ -1454,8 +1667,23 @@ ${t.pending_count} |
|
|
|
|
|
|
|
|
</td> |
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${t.ie_pending_count > 0 ? |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openComplaintDetails('${zone}','${ward}','6','completed')"> |
|
|
|
|
|
|
|
|
|
|
|
${t.ie_pending_count} |
|
|
|
|
|
|
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
<!-- GARBAGE --> |
|
|
<!-- GARBAGE --> |
|
|
|
|
|
|
|
|
<!--<td> |
|
|
<!--<td> |
|
|
@ -1510,12 +1738,12 @@ ${g.completed_count} |
|
|
|
|
|
|
|
|
<td> |
|
|
<td> |
|
|
|
|
|
|
|
|
${g.pending_count > 0 ? |
|
|
|
|
|
|
|
|
${g.vendor_pending_count > 0 ? |
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
`<a href="javascript:void(0)" |
|
|
onclick="openComplaintDetails('${zone}','${ward}','12','pending')"> |
|
|
onclick="openComplaintDetails('${zone}','${ward}','12','pending')"> |
|
|
|
|
|
|
|
|
${g.pending_count} |
|
|
|
|
|
|
|
|
${g.vendor_pending_count} |
|
|
|
|
|
|
|
|
</a>` |
|
|
</a>` |
|
|
|
|
|
|
|
|
@ -1523,7 +1751,22 @@ ${g.pending_count} |
|
|
|
|
|
|
|
|
</td> |
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${g.ie_pending_count > 0 ? |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openComplaintDetails('${zone}','${ward}','12','completed')"> |
|
|
|
|
|
|
|
|
|
|
|
${g.ie_pending_count} |
|
|
|
|
|
|
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
<!-- TENEMENT --> |
|
|
<!-- TENEMENT --> |
|
|
|
|
|
|
|
|
@ -1544,7 +1787,9 @@ ${ten.total_complaint_count} |
|
|
|
|
|
|
|
|
<td>${ten.total_complaint_closed_count || 0}</td> |
|
|
<td>${ten.total_complaint_closed_count || 0}</td> |
|
|
|
|
|
|
|
|
<td>${ten.total_complaint_pending_count || 0}</td> |
|
|
|
|
|
|
|
|
<td>${ten.total_complaint_vendor_pending_count || 0}</td> |
|
|
|
|
|
<td>${ten.total_complaint_ie_pending_count || 0}</td> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</tr> |
|
|
</tr> |
|
|
`; |
|
|
`; |
|
|
@ -2108,7 +2353,7 @@ height="80">` |
|
|
|
|
|
|
|
|
<td> |
|
|
<td> |
|
|
|
|
|
|
|
|
${row.total_complaint_closed_count > 0 |
|
|
|
|
|
|
|
|
${row.total_complaint_verified_count > 0 |
|
|
|
|
|
|
|
|
? `<a href="javascript:void(0)" |
|
|
? `<a href="javascript:void(0)" |
|
|
onclick="openTenementComplaintModal( |
|
|
onclick="openTenementComplaintModal( |
|
|
@ -2117,7 +2362,7 @@ onclick="openTenementComplaintModal( |
|
|
'verified' |
|
|
'verified' |
|
|
)"> |
|
|
)"> |
|
|
|
|
|
|
|
|
${row.total_complaint_closed_count} |
|
|
|
|
|
|
|
|
${row.total_complaint_verified_count} |
|
|
|
|
|
|
|
|
</a>` |
|
|
</a>` |
|
|
|
|
|
|
|
|
@ -2127,7 +2372,7 @@ ${row.total_complaint_closed_count} |
|
|
|
|
|
|
|
|
<!-- PENDING --> |
|
|
<!-- PENDING --> |
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
<!--<td> |
|
|
|
|
|
|
|
|
${row.total_complaint_pending_count > 0 |
|
|
${row.total_complaint_pending_count > 0 |
|
|
|
|
|
|
|
|
@ -2140,12 +2385,51 @@ onclick="openTenementComplaintModal( |
|
|
|
|
|
|
|
|
${row.total_complaint_pending_count} |
|
|
${row.total_complaint_pending_count} |
|
|
|
|
|
|
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
</td>--> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${row.total_complaint_vendor_pending_count > 0 |
|
|
|
|
|
|
|
|
|
|
|
? `<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openTenementComplaintModal( |
|
|
|
|
|
'${ward}', |
|
|
|
|
|
'${row.schemeid}', |
|
|
|
|
|
'created' |
|
|
|
|
|
)"> |
|
|
|
|
|
|
|
|
|
|
|
${row.total_complaint_vendor_pending_count} |
|
|
|
|
|
|
|
|
|
|
|
</a>` |
|
|
|
|
|
|
|
|
|
|
|
: 0} |
|
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
${row.total_complaint_ie_pending_count > 0 |
|
|
|
|
|
|
|
|
|
|
|
? `<a href="javascript:void(0)" |
|
|
|
|
|
onclick="openTenementComplaintModal( |
|
|
|
|
|
'${ward}', |
|
|
|
|
|
'${row.schemeid}', |
|
|
|
|
|
'completed' |
|
|
|
|
|
)"> |
|
|
|
|
|
|
|
|
|
|
|
${row.total_complaint_ie_pending_count} |
|
|
|
|
|
|
|
|
</a>` |
|
|
</a>` |
|
|
|
|
|
|
|
|
: 0} |
|
|
: 0} |
|
|
|
|
|
|
|
|
</td> |
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</tr> |
|
|
</tr> |
|
|
`; |
|
|
`; |
|
|
} |
|
|
} |
|
|
@ -2444,7 +2728,7 @@ ${w.ward} |
|
|
let total = Number(z.completed_count) + Number(z.pending_count); |
|
|
let total = Number(z.completed_count) + Number(z.pending_count); |
|
|
|
|
|
|
|
|
let zoneCell = total > 0 |
|
|
let zoneCell = total > 0 |
|
|
? `<a href="javascript:void(0)" onclick="lsoadWardActivity('${z.zone_name} ','${fromDate},${toDate}')">${z.zone_name}</a>` |
|
|
|
|
|
|
|
|
? `<a href="javascript:void(0)" onclick="loadWardActivity('${z.zone_name} ','${fromDate},${toDate}')">${z.zone_name}</a>` |
|
|
: `${z.zone_name}`; |
|
|
: `${z.zone_name}`; |
|
|
|
|
|
|
|
|
html += ` |
|
|
html += ` |
|
|
|