158 lines
7.9 KiB
Plaintext
158 lines
7.9 KiB
Plaintext
@model IEnumerable<GODATA.Models.Report.TicketList>
|
|
@if (Model != null && Model.Count() > 0)
|
|
{
|
|
@*<div id="TBL">*@
|
|
<div class="DInv_Tbl_Wrapper CloseTicketWrapper">
|
|
@(Html.Kendo().Grid<GODATA.Models.Report.TicketList>(Model)
|
|
.Name("CloseTicket")
|
|
.Columns(columns =>
|
|
{
|
|
columns.Bound(column => column.AssignedTo).Hidden();
|
|
columns.Bound(column => column.Id).Hidden();
|
|
columns.Bound(column => column.ticketid_alias);
|
|
//.Width("182px");
|
|
columns.Bound(column => column.CustomerName);
|
|
//.Width("238px");
|
|
columns.Bound(column => column.CustomeContact_no);
|
|
//.Width("175px")
|
|
columns.Bound(column => column.VehicleRegistrationNo).Title("Vehicle Registration No.");
|
|
columns.Bound(column => column.VehicleTagging).Title("Vehicle Type");
|
|
//.Width(70);
|
|
columns.Bound(column => column.DefaultSlaTime).Title("Default SLA Time (in min)");
|
|
//.Width(70);
|
|
columns.Command(command => command.Custom("resolutionSla").Text("")).Title("Resolution SLA").Hidden();
|
|
//.Width("121px");
|
|
columns.Bound(column => column.TotalTicketLifeCycleTimeSlab);
|
|
//.Width("177px");
|
|
columns.Bound(column => column.ServiceEngineerName).Title("EOS Team Member/Van Reg No.");
|
|
//.Width("303px");
|
|
columns.Bound(column => column.DealerDealerName);
|
|
//.Width("167px");
|
|
columns.Bound(column => column.Age).Hidden();
|
|
columns.Bound(column => column.ServiceEngineerContactNumber);
|
|
columns.Bound(column => column.caller_language).Title("Language");
|
|
columns.Bound(column => column.DefaultCol2).Title("Feedback Agent");
|
|
columns.Bound(column => column.feedback_call_status).Title("Feedback Status");
|
|
columns.Bound(column => column.total_count).Title("Total Feedback Attempt");
|
|
columns.Bound(column => column.Score).Title("Ticket Score");
|
|
columns.Bound(column => column.reopen_count).Title("Reopen Count");
|
|
columns.Bound(column => column.ChassisNo).Title("Chassis Number");
|
|
columns.Bound(column => column.OdometerReading).Title("Odometer Reading");
|
|
//.Width("233px");
|
|
|
|
//added on 25-09-2020
|
|
columns.Bound(column => column.VanLatitudeAtTripStart).Title("Trip Start Lat");
|
|
columns.Bound(column => column.VanLongitudeAtTripStart).Title("Trip Start Lng");
|
|
|
|
columns.Bound(column => column.VanLatitudeAtVanReached).Title("Van Reached Lat");
|
|
columns.Bound(column => column.VanLongitudeAtVanReached).Title("Van Reached Lng");
|
|
|
|
columns.Bound(column => column.VanLatitudeAtTripEnd).Title("Trip End Lat");
|
|
columns.Bound(column => column.VanLongitudeAtTripEnd).Title("Trip End Lng");
|
|
|
|
columns.Bound(column => column.BreakdownLocationLatitude).Title("Breakdown Lat");
|
|
columns.Bound(column => column.BreakdownLocationLongitude).Title("Breakdown Lng");
|
|
columns.Bound(column => column.LastModifiedTime).Title("Ticket Closed Time");
|
|
columns.Bound(column => column.TicketClosedReason).Title("Ticket Closed Reason"); //added on 25-11-2020
|
|
|
|
columns.Bound(column => column.vehicle_warranty).Title("Vehicle Warranty"); //added on 25-11-2020
|
|
columns.Bound(column => column.vehicle_amc).Title("Vehicle Amc"); //added on 25-11-2020
|
|
columns.Bound(column => column.vehicle_emission_norms).Title("Vehicle Emission Norms"); //added on 25-11-2020
|
|
columns.Bound(column => column.vehicle_sales_date).Title("Vehicle Sales Date"); //added on 25-11-2020
|
|
//columns.Bound(column => column.AssignedToUserLatitude).Title("Van Latitude"); //added on 23-12-2020
|
|
// columns.Bound(column => column.AssignedToUserLongitude).Title("Van Longitude"); //added on 23-12-2020
|
|
columns.Bound(column => column.BreackDownLongitude).Title("Estimated Van Reach Time"); //added on 23-12-2020
|
|
columns.Bound(column => column.VanReachedPunchTime).Title("Van Reach By Call Center"); //added on 23-12-2020
|
|
columns.Command(command => command.Custom("feedback").Text("")).Title("Closure within 24 Hrs<br/> and Feedback").HtmlAttributes(new { @class = "removeLink" });
|
|
|
|
columns.Command(command => command.Custom("feedbackDetails").Text("")).Title("Feedback").HtmlAttributes(new { @class = "removeLink" }).Hidden();
|
|
|
|
columns.Command(command => command.Custom("reason24Hrs").Text("")).Title("Closure after 24 Hrs").HtmlAttributes(new { @class = "removeLink" }).Hidden();
|
|
|
|
columns.Command(command =>
|
|
{
|
|
command.Custom("TicketDetails").Text("Details").Click("showCloseTicketDetails").HtmlAttributes(new { title = "Show Details" });
|
|
command.Custom("EditTicketFeedback").Text("Edit").Click("editFeedback").HtmlAttributes(new { title = "Edit Ticket Feedback" });
|
|
}).Title("User Actions");
|
|
//.Width("144px");
|
|
})
|
|
.Pageable()
|
|
//.Selectable()
|
|
.Scrollable()
|
|
//.Navigatable()
|
|
// .Sortable()
|
|
.EnableCustomBinding(true)
|
|
// .Groupable()
|
|
.Filterable()
|
|
.Resizable(resize => resize.Columns(true))
|
|
.Events(events => events.DataBound("onRowBound").ColumnResize("onColumnResize"))
|
|
.DataSource(dataSource => dataSource
|
|
.Ajax()
|
|
.Batch(true)
|
|
.PageSize((int)ViewBag.pageSize)
|
|
.Read(read => read.Action("Ticket_Close_Pager", "Report", new { userId = ViewBag.userId, startDate = ViewBag.startDate, endDate = ViewBag.endDate, ticketStatus = ViewBag.ticketStatus, total = ViewBag.total, isTicketScore = ViewBag.isTicketScore }))
|
|
.Total((int)ViewBag.total)
|
|
//.ServerOperation(false)
|
|
//.Events(events => events.Error("error_handler"))
|
|
)
|
|
//.Events(events => events.DataBound("setPagerAndGroupBarWidth"))
|
|
)
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div id="divmessage" class="no_data">
|
|
<span>
|
|
<p class="fs16">@*No Data Available !!!*@
|
|
@System.Configuration.ConfigurationManager.AppSettings["no_data_available"].ToString()
|
|
</p>
|
|
</span>
|
|
</div>
|
|
}
|
|
<style>
|
|
.slaMet {
|
|
box-shadow: 4px 0px 0px #00a54f inset;
|
|
}
|
|
|
|
.slaNotMet {
|
|
box-shadow: 4px 0px 0px #ee1d23 inset;
|
|
}
|
|
|
|
.removeLink a {
|
|
cursor: default;
|
|
}
|
|
|
|
.k-grid td:nth-last-child(4) {
|
|
text-align: left !important;
|
|
}
|
|
#divGrid .CloseTicketWrapper .k-grid td {
|
|
overflow: visible;
|
|
text-overflow: inherit;
|
|
text-align: center;
|
|
width: 150px;
|
|
}
|
|
|
|
#divGrid .CloseTicketWrapper .k-grid-header .k-header {
|
|
overflow: visible;
|
|
white-space: inherit;
|
|
text-overflow: inherit;
|
|
width: 150px;
|
|
vertical-align: top;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
#divGrid .CloseTicketWrapper .k-grid td.text-shows {
|
|
height: 60px !important;
|
|
overflow: hidden !important;
|
|
position: relative;
|
|
display: inline-block;
|
|
margin: 0 5px 0 5px;
|
|
text-overflow: ellipsis !important;
|
|
white-space: nowrap;
|
|
color: #000;
|
|
}
|
|
</style>
|
|
<script>
|
|
getRefresh();
|
|
</script>
|