68 lines
No EOL
3.3 KiB
Text
68 lines
No EOL
3.3 KiB
Text
@using Kreta.Resources;
|
|
@using Kreta.Web.Helpers.Grid;
|
|
@using Kreta.Web.Areas.Tanulo.Models
|
|
@model TanuloDetailModel
|
|
|
|
@{
|
|
const string TanuloApiController = Constants.ApiControllers.KollegiumTanuloApi;
|
|
}
|
|
|
|
<div class="container-fluid">
|
|
@(
|
|
Html.KretaGrid<ElerhetosegCimModel>(
|
|
name: "ElerhetosegCimGrid",
|
|
getUrl: new GridApiUrl(TanuloApiController, "GetElerhetosegCimGrid", new Dictionary<string, string> { { "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{# #}# ");
|
|
|
|
})
|
|
.Sortable(sortable => sortable
|
|
.AllowUnsort(true)
|
|
.SortMode(GridSortMode.MultipleColumn))
|
|
)
|
|
<br />
|
|
@(
|
|
Html.KretaGrid<ElerhetosegTelModel>(
|
|
name: "ElerhetosegTelGrid",
|
|
getUrl: new GridApiUrl(TanuloApiController, "GetElerhetosegTelGrid", new Dictionary<string, string> { { "Id", Model.TanuloId.ToString() } })
|
|
)
|
|
.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))
|
|
)
|
|
<br />
|
|
@(
|
|
Html.KretaGrid<ElerhetosegEmailModel>(
|
|
name: "ElerhetosegEmailGrid",
|
|
getUrl: new GridApiUrl(TanuloApiController, "GetElerhetosegEmailGrid", new Dictionary<string, string> { { "Id", Model.TanuloId.ToString() } })
|
|
)
|
|
.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) { #
|
|
<i class='fa fa-exclamation-triangle' title='Hibás email cím!'></i>
|
|
# }#");
|
|
})
|
|
.CheckBoxColumn(TanuloResource.Alapertelmezett, c => c.Alapertelmezett_BOOL, addHeaderTitle: true)
|
|
.Sortable(sortable => sortable
|
|
.AllowUnsort(true)
|
|
.SortMode(GridSortMode.MultipleColumn))
|
|
)
|
|
</div> |