@using Kreta.Resources;
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Tanulo.Models
@model TanuloDetailModel
@{
const string TanuloApiController = Constants.ApiControllers.AmiTanuloApi;
}
@(
Html.KretaGrid(
name: "ElerhetosegCimGrid",
getUrl: new GridApiUrl(TanuloApiController, "GetElerhetosegCimGrid", new Dictionary { { "Id", Model.TanuloId.ToString() } }),
allowExcelExport: true,
popupExport: true,
excelExportFileName: string.Format("{0}_ElerhetosegCimExport", Model.SzemelyesAdatokModel.TeljesExportNev)
)
.Columns(columns =>
{
columns.Bound(c => c.CimTipus_DNAME);
columns.Bound(c => c.Orszag_DNAME);
columns.Bound(c => c.Irsz).Width("10%");
columns.Bound(c => c.Varos);
columns.Bound(c => c.Cim).Sortable(false).ClientTemplate(@"#if(Kozterulet != null){# #: Kozterulet # #}else{# #}# #if(KozteruletJellegeNev != null){# #: KozteruletJellegeNev # #}else{# #} # #if(HazSzam != null){# #: HazSzam # #}else{# #}# #if(Emelet != null){# #: Emelet # #}else{# #}# #if(Ajto != null){# #: Ajto # #}else{# #}# ");
})
.CheckBoxColumn(TanuloResource.Alapertelmezett, c => c.Alapertelmezett_BOOL, addHeaderTitle: true)
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
@(
Html.KretaGrid(
name: "ElerhetosegTelGrid",
getUrl: new GridApiUrl(TanuloApiController, "GetElerhetosegTelGrid", new Dictionary { { "Id", Model.TanuloId.ToString() } }),
allowExcelExport: true,
popupExport: true,
excelExportFileName: string.Format("{0}_ElerhetosegTelExport", Model.SzemelyesAdatokModel.TeljesExportNev)
)
.Columns(columns =>
{
columns.Bound(c => c.Tipus_DNAME).Width("31%");
columns.Bound(c => c.TelefonSzam).Width("15%");
})
.CheckBoxColumn(TanuloResource.Alapertelmezett, c => c.Alapertelmezett_BOOL, addHeaderTitle: true)
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
@(
Html.KretaGrid(
name: "ElerhetosegEmailGrid",
getUrl: new GridApiUrl(TanuloApiController, "GetElerhetosegEmailGrid", new Dictionary { { "Id", Model.TanuloId.ToString() } }),
allowExcelExport: true,
popupExport: true,
excelExportFileName: string.Format("{0}_ElerhetosegEmailExport", Model.SzemelyesAdatokModel.TeljesExportNev)
)
.Columns(columns =>
{
columns.Bound(c => c.Tipus_DNAME).Width("31%");
columns.Bound(c => c.EmailCim).Width("15%").ClientTemplate(@"
# if (EmailCim != null ){# #: EmailCim # # } #
# if (IsHibasanMegadva_BOOL == true) { #
# }#");
})
.CheckBoxColumn(TanuloResource.Alapertelmezett, c => c.Alapertelmezett_BOOL, addHeaderTitle: true)
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)