init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,33 @@
|
|||
@using Kreta.Web.Areas.OsztalyCsoport.Models
|
||||
@using Kreta.Web.Helpers.Grid;
|
||||
@using Kreta.BusinessLogic.Classes
|
||||
@model AmiOsztalyModel
|
||||
|
||||
@{
|
||||
const string OsztalyApiController = Constants.ApiControllers.OsztalyAmiApi;
|
||||
}
|
||||
|
||||
<div>
|
||||
@(
|
||||
Html.KretaGrid<TanuloGridModel>
|
||||
(
|
||||
name: "OsztalyTanuloiGrid",
|
||||
getUrl: new GridApiUrl(OsztalyApiController, "GetOsztalyTanuloi", new Dictionary<string, string> { { "osztalyID", Model.ID.ToString() } }),
|
||||
sort: sort => sort.Add(m => m.NevElotagNelkul).Ascending(),
|
||||
allowExcelExport: true,
|
||||
popupExport: true,
|
||||
excelExportFileName: string.Format("{0}_OsztalyTanuloiExport", Model.OsztalyNev)
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.NevElotagNelkul).SetDisplayProperty("Nev");
|
||||
columns.Bound(c => c.SzuletesiDatum).Width("20%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
columns.Bound(c => c.AnyaNev).Width("20%");
|
||||
columns.Bound(c => c.BelepesDatum).Width("20%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
columns.Bound(c => c.KilepesDatum).Width("20%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
})
|
||||
.Sortable(sortable => sortable
|
||||
.AllowUnsort(true)
|
||||
.SortMode(GridSortMode.MultipleColumn))
|
||||
)
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue