EOS/Views/Report/ShowDealerWiseCallDetails.cshtml
Nidhi Bhargava f0c1ab20e1 code push
2025-09-04 16:25:07 +05:30

181 lines
10 KiB
Plaintext

@model GODATA.Models.Report.DealerWiseCallDetailModel
@if (Model != null)
{
<div id="DealerWiseCallDetailsDiv">
<div class="InfraTable_WrpOutage">
@if (Model.DealerWiseCallDetail.DealerWiseCallDetailList != null && Model.DealerWiseCallDetail.DealerWiseCallDetailList.Count() > 0)
{
<table class="customTable" id="DealerWiseCallDetailsGrid">
<thead>
<tr>
<th class="redTh" colspan="14" rowspan="1">Dealer wise Call Details</th>
</tr>
<tr>
<th class="redTh" colspan="2" rowspan="1"></th>
<th class="redTh" colspan="4" rowspan="1">Total Calls</th>
<th class="redTh" colspan="4" rowspan="1">Call Closed < 24hrs</th>
<th class="redTh" colspan="4" rowspan="1">Call Closed < 24hrs %</th>
</tr>
<tr>
<th class="redTh" colspan="1" rowspan="2">S No.</th>
<th class="redTh" colspan="1" rowspan="2">Dealer Name</th>
<th class="redTh" colspan="1" rowspan="2">Hd</th>
<th class="redTh" colspan="1" rowspan="2">Bus</th>
<th class="redTh" colspan="1" rowspan="2">Lmd</th>
<th class="redTh" colspan="1" rowspan="2">Total</th>
<th class="redTh" colspan="1" rowspan="2">Hd</th>
<th class="redTh" colspan="1" rowspan="2">Bus</th>
<th class="redTh" colspan="1" rowspan="2">Lmd</th>
<th class="redTh" colspan="1" rowspan="2">Total</th>
<th class="redTh" colspan="1" rowspan="2">Hd</th>
<th class="redTh" colspan="1" rowspan="2">Bus</th>
<th class="redTh" colspan="1" rowspan="2">Lmd</th>
<th class="redTh" colspan="1" rowspan="2">Total</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.DealerWiseCallDetail.DealerWiseCallDetailList)
{
<tr>
<td>@(Model.DealerWiseCallDetail.DealerWiseCallDetailList.IndexOf(item) + 1)</td>
<td class="">@item.DealerName</td>
<td class="">@item.HdCall</td>
<td class="">@item.BusCall</td>
<td class="">@item.LmdCall</td>
<td class="">@item.TotalCall</td>
<td class="">@item.HdCallWithIn24Hrs</td>
<td class="">@item.BusCallWithIn24Hrs</td>
<td class="">@item.LmdCallWithIn24Hrs</td>
<td class="">@item.TotalCallWithIn24Hrs</td>
@if (item.HdCallWithIn24HrsPer_.ToString() == "-")
{
<td class="">@item.HdCallWithIn24HrsPer_</td>
}
else if (Convert.ToDouble(item.HdCallWithIn24HrsPer_) < 75.00)
{
<td class="redTd">@item.HdCallWithIn24HrsPer_</td>
}
else if ((Convert.ToDouble(item.HdCallWithIn24HrsPer_) >= 75.00) && @Convert.ToDouble(item.HdCallWithIn24HrsPer_) <= 90.00)
{
<td class="yellowTd">@item.HdCallWithIn24HrsPer_</td>
}
else if (Convert.ToDouble(item.HdCallWithIn24HrsPer_) > 90.00)
{
<td class="greenTd">@item.HdCallWithIn24HrsPer_</td>
}
@if (item.BusCallWithIn24HrsPer_.ToString() == "-")
{
<td class="">@item.BusCallWithIn24HrsPer_</td>
}
else if (Convert.ToDouble(item.BusCallWithIn24HrsPer_) < 75.00)
{
<td class="redTd">@item.BusCallWithIn24HrsPer_</td>
}
else if ((Convert.ToDouble(item.BusCallWithIn24HrsPer_) >= 75.00) && @Convert.ToDouble(item.BusCallWithIn24HrsPer_) <= 90.00)
{
<td class="yellowTd">@item.BusCallWithIn24HrsPer_</td>
}
else if (Convert.ToDouble(item.BusCallWithIn24HrsPer_) > 90.00)
{
<td class="greenTd">@item.BusCallWithIn24HrsPer_</td>
}
@if (item.LmdCallWithIn24HrsPer_.ToString() == "-")
{
<td class="">@item.LmdCallWithIn24HrsPer_</td>
}
else if (Convert.ToDouble(item.LmdCallWithIn24HrsPer_) < 75.00)
{
<td class="redTd">@item.LmdCallWithIn24HrsPer_</td>
}
else if ((Convert.ToDouble(item.LmdCallWithIn24HrsPer_) >= 75.00) && @Convert.ToDouble(item.LmdCallWithIn24HrsPer_) <= 90.00)
{
<td class="yellowTd">@item.LmdCallWithIn24HrsPer_</td>
}
else if (Convert.ToDouble(item.LmdCallWithIn24HrsPer_) > 90.00)
{
<td class="greenTd">@item.LmdCallWithIn24HrsPer_</td>
}
<td class="">@item.TotalCallWithIn24HrsPer_</td>
</tr>
}
</tbody>
</table>
}
else
{
<div class="no_data" style="top: 0%;">
<span>
<p class="fs16">No data available on selected filter !!!</p>
<p>Please select different filter.</p>
</span>
</div>
}
</div>
</div>
<div id="ReasonForCallClosed24Div">
<div class="InfraTable_WrpOutage">
@if (Model.DealerWiseReasonCallClosedBeyond24Hrs.ReasonCallClosedBeyond24HrsList != null && Model.DealerWiseReasonCallClosedBeyond24Hrs.ReasonCallClosedBeyond24HrsList.Count() > 0)
{
<table class="customTable" id="ReasonForCallClosed24Grid">
<thead>
<tr>
<th class="redTh" colspan="12" rowspan="1">Reason for Call closed >24hrs</th>
</tr>
<tr>
<th colspan="12" rowspan="1"></th>
</tr>
<tr>
<th class="redTh" colspan="1" rowspan="2">S No.</th>
<th class="redTh" colspan="1" rowspan="2">Dealer Name</th>
<th class="redTh" colspan="1" rowspan="2">Major</th>
<th class="redTh" colspan="1" rowspan="2">FIP</th>
<th class="redTh" colspan="1" rowspan="2">Major Differential Problem</th>
<th class="redTh" colspan="1" rowspan="2">Other</th>
<th class="redTh" colspan="1" rowspan="2">Major Engine Problem</th>
<th class="redTh" colspan="1" rowspan="2">Payment Approval</th>
<th class="redTh" colspan="1" rowspan="2">Technician N/A</th>
<th class="redTh" colspan="1" rowspan="2">Gear Box Problem</th>
<th class="redTh" colspan="1" rowspan="2">Spare Parts NA</th>
<th class="redTh" colspan="1" rowspan="2">Total</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.DealerWiseReasonCallClosedBeyond24Hrs.ReasonCallClosedBeyond24HrsList)
{
<tr>
<td>@(Model.DealerWiseReasonCallClosedBeyond24Hrs.ReasonCallClosedBeyond24HrsList.IndexOf(item) + 1)</td>
<td class="">@item.DealerName</td>
<td class="">@item.Major</td>
<td class="">@item.FIP</td>
<td class="">@item.MajorDiffrentialProblem</td>
<td class="">@item.Other</td>
<td class="">@item.MajorEngineProblem</td>
<td class="">@item.PaymentApproaval</td>
<td class="">@item.TechnicianNotAvailable</td>
<td class="">@item.GearBoxProblem</td>
<td class="">@item.SparePartsNotAvailable</td>
<td class="">@item.Total</td>
</tr>
}
</tbody>
</table>
}
else
{
<div class="no_data" style="top: 0%;">
<span>
<p class="fs16">No data available on selected filter !!!</p>
<p>Please select different filter.</p>
</span>
</div>
}
</div>
</div>
}
<script type="text/javascript">
//showHideMessage();
</script>