102 lines
3.8 KiB
Plaintext
102 lines
3.8 KiB
Plaintext
@model IEnumerable<GODATA.Models.Ticket.EscalationMatrix>
|
|
|
|
@if (Model != null && Model.Count() > 0)
|
|
{
|
|
<div class="DInv_Tbl_Wrapper EscalationTbl">
|
|
|
|
@(Html.Kendo().Grid(Model)
|
|
.Name("gridEscalation")
|
|
.Filterable()
|
|
.Pageable().Scrollable().Resizable(resize => resize.Columns(true))
|
|
.Events(events => events.DataBound("onRowBoundEscalation").ColumnResize("onColumnResize")).Sortable()
|
|
.Columns(columns =>
|
|
{
|
|
columns.Bound(model => model.id).Hidden();
|
|
columns.Bound(model => model.organization_name);
|
|
columns.Bound(model => model.manager_name);
|
|
columns.Bound(model => model.manager_level);
|
|
columns.Bound(model => model.dealer_name).Title("Dealer Name");
|
|
columns.Bound(model => model.dealer_name_id);
|
|
//columns.Bound(model => model.sDlrNamewithDealerId);
|
|
columns.Bound(model => model.state);
|
|
columns.Bound(model => model.city);
|
|
//columns.Bound(model => model.blind_spot);
|
|
columns.Bound(model => model.van_type);
|
|
// columns.Bound(model => model.notification_type);
|
|
columns.Bound(model => model.emails);
|
|
columns.Bound(model => model.phones);
|
|
// columns.Bound(model => model.alarm_age);
|
|
//columns.Bound(model => model.alarm_age_sla_not_met);
|
|
// columns.Bound(model => model.alarm_age_ticket_not_closed);
|
|
// columns.Bound(model => model.alarm_age_van_not_live);
|
|
// columns.Bound(model => model.alarm_age_eicher_promise_48hrs);
|
|
columns.Bound(model => model.organization_id).Hidden();
|
|
columns.Command(command =>
|
|
{
|
|
command.Custom("Edit").Text("").Click("editEscalation").HtmlAttributes(new { title = "Edit" });
|
|
command.Custom("Delete").Text("").Click("deleteEscalation").HtmlAttributes(new { title = "Delete" });
|
|
}).Title("Device Actions");
|
|
})
|
|
//.Groupable()
|
|
.EnableCustomBinding(true)
|
|
.DataSource(dataSource => dataSource
|
|
.Ajax()
|
|
.Batch(true)
|
|
.PageSize((int)ViewBag.pageSize)
|
|
.Read(read => read.Action("ManageEscalation_Details_Pager", "Ticket", new { stateId = ViewBag.OrganizationId, total = ViewBag.total}))
|
|
.Total((int)ViewBag.total)
|
|
//.ServerOperation(false)
|
|
//.Events(events => events.Error("error_handler"))
|
|
)
|
|
)
|
|
</div>
|
|
}
|
|
|
|
else
|
|
{
|
|
<div class="no_data" style="border-top: none;">
|
|
<span>
|
|
<p class="fs16">@*No Data Available !!!*@
|
|
@System.Configuration.ConfigurationManager.AppSettings["no_data_available"].ToString()
|
|
</p>
|
|
</span>
|
|
</div>
|
|
}
|
|
|
|
<script>
|
|
if ('@Model.Count()' > 0) {
|
|
$("#divExport").show();
|
|
}
|
|
else {
|
|
$("#divExport").hide();
|
|
}
|
|
</script>
|
|
<style type="text/css">
|
|
.rightPanel {
|
|
min-height: 223px;
|
|
}
|
|
|
|
.no_data p {
|
|
padding-top: 0%;
|
|
}
|
|
|
|
/*.k-grid td, .k-grid th {
|
|
width: auto !important;
|
|
}*/
|
|
|
|
.k-grouping-header {
|
|
color: white !important;
|
|
text-indent: 10px !important;
|
|
}
|
|
|
|
|
|
|
|
#gridEscalation table th {
|
|
width: 120px;
|
|
}
|
|
|
|
#gridEscalation table td {
|
|
width: 121px;
|
|
}
|
|
</style>
|