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

100 lines
4.9 KiB
Plaintext

@model IEnumerable<GODATA.Models.Report.TicketOpenModel>
@if (Model != null && Model.Count() > 0)
{
@*<div id="TBL">*@
<div class="DInv_Tbl_Wrapper CloseTicketWrapper">
@(Html.Kendo().Grid<GODATA.Models.Report.TicketOpenModel>(Model)
.Name("KamCloseTicket")
.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");
//.Width("233px");
//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("showKamTicketDetails").HtmlAttributes(new { title = "Show Details" });
}).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("Report_KamTickets_Close_Pager", "Report", new { userId = ViewBag.userId, startDate = ViewBag.startDate, endDate = ViewBag.endDate, ticketStatus = ViewBag.ticketStatus, total = ViewBag.total }))
.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 green inset;
}
.slaNotMet {
box-shadow: 4px 0px 0px red inset;
}
.removeLink a {
cursor: default;
}
.k-grid td:nth-last-child(4) {
text-align: left !important;
}
</style>
<script>
getRefresh();
</script>