init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,65 @@
|
|||
@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<FunctionCommand> nestedExportFunctions = new List<FunctionCommand>
|
||||
{
|
||||
new FunctionCommand { Name = BesorolasResource.KiirtNovendekekListaja, ClientAction = "BesorolasExportHelper.exportOsztalyKiirt" },
|
||||
};
|
||||
}
|
||||
|
||||
<div>
|
||||
@(
|
||||
Html.KretaGrid<AmiBesorolasGridModel>(
|
||||
name: "AmiBesorolasModOsztalybolKiirtTanulokGrid",
|
||||
getUrl: new GridApiUrl("AmiBesorolasModOsztalybolKiirtTanulokApi", "GetAmiBesorolasModOsztalybolKiirtTanulokGrid", new Dictionary<string, string> { }),
|
||||
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<FunctionCommand> {
|
||||
new FunctionCommand { Name = ImportExportCommonResource.Export.ToUpper(), NestedCommands = nestedExportFunctions }
|
||||
})
|
||||
.Sortable(sortable => sortable
|
||||
.AllowUnsort(true)
|
||||
.SortMode(GridSortMode.MultipleColumn))
|
||||
)
|
||||
</div>
|
||||
@Html.Partial("_BesorolasPartial", Model)
|
Loading…
Add table
Add a link
Reference in a new issue