init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,45 @@
|
|||
@using Kreta.Web.Helpers.Grid;
|
||||
@using Kreta.Web.Areas.Tanulo.Models
|
||||
@using Kreta.BusinessLogic.Classes
|
||||
@model TanuloDetailModel
|
||||
|
||||
@{
|
||||
const string TanuloApiController = Constants.ApiControllers.AmiTanuloApi;
|
||||
const string TanuloController = Constants.Controllers.AmiTanulo;
|
||||
}
|
||||
|
||||
<div class="container-fluid">
|
||||
@(
|
||||
Html.KretaGrid<GondviselokModel>(
|
||||
name: "GondviselokGrid",
|
||||
getUrl: new GridApiUrl(TanuloApiController, "GetGondviselokGrid", new Dictionary<string, string> { { "Id", Model.TanuloId.ToString() } }),
|
||||
allowExcelExport: true,
|
||||
popupExport: true,
|
||||
excelExportFileName: string.Format("{0}_GondviselokExport", Model.SzemelyesAdatokModel.TeljesExportNev),
|
||||
clientTemplate: "detailGrid-template",
|
||||
clientTemplateUrl: @Url.Action("Info_GondviselokCimGrid", TanuloController, new { area = Constants.Areas.Tanulo })
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.Nev);
|
||||
columns.Bound(c => c.BelepesiNev);
|
||||
columns.Bound(c => c.RokonsagFoka_DNAME);
|
||||
columns.Bound(c => c.TelefonSzam).Width("15%");
|
||||
columns.Bound(c => c.EmailCim).ClientTemplate(@"
|
||||
# if (EmailCim != null ){# #: EmailCim # # } #
|
||||
# if (IsHibasanMegadva_BOOL == true) { #
|
||||
<i class='fa fa-exclamation-triangle' title='Hibás email cím!'></i>
|
||||
# }#");
|
||||
columns.Bound(c => c.IsTorvenyesKepviselo_BNAME);
|
||||
columns.Bound(c => c.BovitettJog_BNAME);
|
||||
columns.Bound(c => c.UtolsoBelepes).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
columns.Bound(c => c.UtolsoBelepesMobil).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
})
|
||||
.AutoBind(true)
|
||||
.Sortable(sortable => sortable
|
||||
.AllowUnsort(true)
|
||||
.SortMode(GridSortMode.MultipleColumn))
|
||||
)
|
||||
</div>
|
||||
|
||||
@Html.KretaGridTemplate("detailGrid-template")
|
Loading…
Add table
Add a link
Reference in a new issue