init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,32 @@
|
|||
@using Kreta.Web.Areas.OsztalyCsoport.Models
|
||||
@using Kreta.Web.Helpers.Grid;
|
||||
@using Kreta.BusinessLogic.Classes
|
||||
@model AlapkepzesOsztalyModel
|
||||
|
||||
@{
|
||||
const string OsztalyApiController = Constants.ApiControllers.EGYMIOsztalyApi;
|
||||
}
|
||||
|
||||
<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%");
|
||||
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>
|
Loading…
Add table
Add a link
Reference in a new issue