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;
|
||||
|
||||
@model AlapkepzesOsztalyModel
|
||||
|
||||
@{
|
||||
const string OsztalyApiController = Constants.ApiControllers.EGYMIOsztalyApi;
|
||||
}
|
||||
|
||||
<div>
|
||||
@(
|
||||
Html.KretaGrid<FoglalkozasGridModel>
|
||||
(
|
||||
name: "OsztalyFoglalkozasaiGrid",
|
||||
getUrl: new GridApiUrl(OsztalyApiController, "GetOsztalyFoglalkozasai", new Dictionary<string, string> { { "osztalyID", Model.ID.ToString() } }),
|
||||
aggregates: aggregates => aggregates.Add(x => x.Oraszam).Sum(),
|
||||
allowExcelExport: true,
|
||||
popupExport: true,
|
||||
excelExportFileName: string.Format("{0}_OsztalyFoglalkozasaiExport", Model.OsztalyNev)
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.Tantargy).Width("25%");
|
||||
columns.Bound(c => c.Tanar).Width("25%");
|
||||
columns.Bound(c => c.Tipus_DNAME).Width("25%");
|
||||
columns.Bound(x => x.Oraszam).Width("25%").ClientFooterTemplate(StringResourcesUtils.GetString(3026) + ": #= sum #");
|
||||
})
|
||||
.Sortable(sortable => sortable
|
||||
.AllowUnsort(true)
|
||||
.SortMode(GridSortMode.MultipleColumn))
|
||||
)
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue