This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,34 @@
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Tanulo.Models
@using Kreta.BusinessLogic.Classes
@model TanuloDetailModel
@{
var gridName = Model.GridNamePrefix + "TantargyMentessegekGrid";
const string TanuloApiController = Constants.ApiControllers.EGYMITanuloApi;
}
<div class="container-fluid">
@(
Html.KretaGrid<TanuloFelmentesGridModel>(
gridName,
new GridApiUrl(TanuloApiController, "GetFelmentesekGrid", new Dictionary<string, string> { { "Id", Model.TanuloId.ToString() } }),
useToolBar: Model.GridUseToolBar,
allowExcelExport: true,
popupExport: true,
excelExportFileName: string.Format("{0}_FelmentesekExport", Model.SzemelyesAdatokModel.TeljesExportNev)
)
.Columns(columns =>
{
columns.Bound(c => c.TantargyNev);
columns.Bound(c => c.Kezdete).Width("10%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
columns.Bound(c => c.Vege).Width("10%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
columns.Bound(c => c.OraMentesites_BNAME);
columns.Bound(c => c.ErtekelesMentesites_BNAME);
columns.Bound(c => c.SzovegesenErtekelheto_BNAME);
columns.Bound(c => c.FelmentesOka);
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
</div>