@using Kreta.Web.Helpers.Grid; @using Kreta.BusinessLogic.Classes; @using Kreta.Resources; @using Kreta.Web.Areas.OsztalyCsoport.Models; @model AmiBesorolasSearchModel @{ Layout = "~/Views/Shared/_MasterLayout.cshtml"; } @section AddSearchPanel { @using (Html.SearchPanelSideBar("searchForm", "AmiBesorolasModOsztalybolKiirtTanulokGrid")) { @Html.KretaTextBoxFor(model => model.TanuloSrc).RenderSearchPanelSideBar() @Html.KretaComboBoxFor(model => model.OsztalyId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetAmiOsztalyListForCascadeCB" }), "Text", "Value").RenderSearchPanelSideBar() @Html.KretaRangeDatePickerSideBar(model => model.BelepesiDatumTol, model => model.BelepesiDatumIg) @Html.KretaRangeDatePickerSideBar(model => model.KilepesiDatumTol, model => model.KilepesiDatumIg) @Html.KretaRangeNumericSideBar(model => model.ZaradekokSzamaTol, model => model.ZaradekokSzamaIg, precision: 0) @Html.KretaComboBoxFor(model => model.KiVagyAtSorolasiZaradek, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetVanNincs" }), "Text", "Value").RenderSearchPanelSideBar() @Html.KretaRangeNumericSideBar(model => model.NaplosorszamTol, model => model.NaplosorszamIg, precision: 0) @Html.KretaTextBoxFor(model => model.Torzslapszam).RenderSearchPanelSideBar() @Html.KretaRangeDatePickerSideBar(model => model.KileptetesiDatumTol, model => model.KileptetesiDatumIg) @Html.KretaRangeDatePickerSideBar(model => model.UtolsoModositasDatumTol, model => model.UtolsoModositasDatumIg) } } @{ List nestedExportFunctions = new List { new FunctionCommand { Name = BesorolasResource.KiirtNovendekekListaja, ClientAction = "BesorolasExportHelper.exportOsztalyKiirt" }, }; }
@( Html.KretaGrid( name: "AmiBesorolasModOsztalybolKiirtTanulokGrid", getUrl: new GridApiUrl("AmiBesorolasModOsztalybolKiirtTanulokApi", "GetAmiBesorolasModOsztalybolKiirtTanulokGrid", new Dictionary { }), dataParameterFunction: "searchForm", allowScrolling: true, sort: (sort => { sort.Add(m => m.OsztalyNev).Ascending(); sort.Add(m => m.NevElotagNelkul).Ascending(); }) ) .Columns(columns => { columns.Bound(c => c.Tanev).Width("8%"); columns.Bound(c => c.OsztalyNev); columns.Bound(c => c.NevElotagNelkul).SetDisplayProperty("TanuloNev"); columns.Bound(c => c.BelepesDatum).Width("8%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]); columns.Bound(c => c.KilepesDatum).Width("8%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]); columns.Bound(c => c.ZaradekokSzama); columns.Bound(c => c.NaploSorszam).Width("8%"); columns.Bound(c => c.TorzslapSzam).Width("8%"); columns.Bound(c => c.KilepesRogzitesDatum).Width("8%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]); columns.Bound(c => c.UtolsoModositas).Width("8%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]); }) .FunctionCommand(Html, new List { new FunctionCommand { Name = ImportExportCommonResource.Export.ToUpper(), NestedCommands = nestedExportFunctions } }) .Sortable(sortable => sortable .AllowUnsort(true) .SortMode(GridSortMode.MultipleColumn)) )
@Html.Partial("_BesorolasPartial", Model)