33 lines
No EOL
1.5 KiB
Text
33 lines
No EOL
1.5 KiB
Text
@using Kreta.Web.Areas.OsztalyCsoport.Models
|
|
@using Kreta.Web.Helpers.Grid;
|
|
@using Kreta.BusinessLogic.Classes
|
|
@using Kreta.Resources
|
|
@model AmiOsztalyModel
|
|
|
|
@{
|
|
const string OsztalyApiController = Constants.ApiControllers.OsztalyAmiApi;
|
|
}
|
|
|
|
<div>
|
|
@(
|
|
Html.KretaGrid<IgazolasGridModel>
|
|
(
|
|
name: "OsztalyIgazolasaiGrid",
|
|
getUrl: new GridApiUrl(OsztalyApiController, "GetOsztalyIgazolasai", new Dictionary<string, string> { { "osztalyID", Model.ID.ToString() } }),
|
|
allowExcelExport: true,
|
|
popupExport: true,
|
|
excelExportFileName: string.Format("{0}_OsztalyIgazolasaiExport", Model.OsztalyNev)
|
|
)
|
|
.Columns(columns =>
|
|
{
|
|
columns.Bound(c => c.Nev).Width("20%").Title(TanuloResource.Novendek);
|
|
columns.Bound(c => c.Kezdete).Width("20%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
|
columns.Bound(c => c.Vege).Width("20%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
|
columns.Bound(c => c.Rogzito).Width("20%");
|
|
columns.Bound(c => c.IgazolasTipusa_DNAME).Width("20%");
|
|
})
|
|
.Sortable(sortable => sortable
|
|
.AllowUnsort(true)
|
|
.SortMode(GridSortMode.MultipleColumn))
|
|
)
|
|
</div> |