init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,74 @@
|
|||
@using Kreta.Resources;
|
||||
@using Kreta.Web.Helpers.Grid;
|
||||
@using Kreta.Web.Areas.Tanulo.Models
|
||||
@model TanuloDetailModel
|
||||
|
||||
@{
|
||||
const string TanuloApiController = Constants.ApiControllers.AmiTanuloApi;
|
||||
}
|
||||
|
||||
<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{# #}# ");
|
||||
})
|
||||
.CheckBoxColumn(TanuloResource.Alapertelmezett, c => c.Alapertelmezett_BOOL, addHeaderTitle: true)
|
||||
.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() } }),
|
||||
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))
|
||||
)
|
||||
<br />
|
||||
@(
|
||||
Html.KretaGrid<ElerhetosegEmailModel>(
|
||||
name: "ElerhetosegEmailGrid",
|
||||
getUrl: new GridApiUrl(TanuloApiController, "GetElerhetosegEmailGrid", new Dictionary<string, string> { { "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) { #
|
||||
<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>
|
Loading…
Add table
Add a link
Reference in a new issue