init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,63 @@
|
|||
@using Kreta.BusinessLogic.Classes
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Web.Helpers.Grid
|
||||
@using Kreta.Web.Areas.Hianyzas.Models
|
||||
@using Kreta.Resources
|
||||
|
||||
@model InformaciokIgazolasSearchModel
|
||||
|
||||
@section AddSearchPanel {
|
||||
@using (Html.SearchPanelSideBar("searchForm", "IgazolasGrid"))
|
||||
{
|
||||
@Html.KretaRangeDatePickerSideBar(model => model.IgazolasKezdeteSearch, model => model.IgazolasVegeSearch)
|
||||
@Html.KretaComboBoxFor(model => model.IgazolasTipusaSearch, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetIgazolasTipusList" })).RenderSearchPanelSideBar()
|
||||
}
|
||||
}
|
||||
|
||||
<div>
|
||||
@(
|
||||
Html.KretaGrid<InformaciokIgazolasGridModel>
|
||||
(
|
||||
"IgazolasGrid",
|
||||
new GridApiUrl("InformaciokIgazolasokApi", "GetIgazolasGrid"),
|
||||
sort: sort => sort.Add(m => m.Kezdete).Descending(),
|
||||
allowPaging: true,
|
||||
allowScrolling: true,
|
||||
pageSizes: null
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(m => m.Kezdete).Width("10%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
columns.Bound(m => m.Vege).Width("10%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
columns.Bound(m => m.IgazolasTipusa_DNAME);
|
||||
columns.Bound(m => m.Megjegyzes);
|
||||
})
|
||||
|
||||
.FunctionCommand(Html, new List<FunctionCommand>
|
||||
{
|
||||
new FunctionCommand { Name = ImportExportCommonResource.Export.ToUpper(), ClientAction = "InformaciokIgazolasHelper.exportIgazolasGrid" }
|
||||
})
|
||||
|
||||
.Sortable(sortable => sortable
|
||||
.AllowUnsort(true)
|
||||
.SortMode(GridSortMode.MultipleColumn))
|
||||
)
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var InformaciokIgazolasHelper = (function () {
|
||||
var informaciokIgazolasHelper = function () { };
|
||||
|
||||
var searchFormName = "searchForm";
|
||||
|
||||
var url = {
|
||||
ExportIgazolasok: "@Url.Action("ExportIgazolasok", "InformaciokIgazolasok", new {area = "Hianyzas"})",
|
||||
}
|
||||
|
||||
informaciokIgazolasHelper.exportIgazolasGrid = function () {
|
||||
window.location = url.ExportIgazolasok + "?" + $.param(KretaGridHelper.getSearchParametersWithoutInputNames(searchFormName));
|
||||
}
|
||||
|
||||
return informaciokIgazolasHelper;
|
||||
})();
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue