init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,43 @@
|
|||
@using Kreta.Enums.ManualEnums
|
||||
@using Kreta.Web.Areas.Orarend.Models
|
||||
@using Kreta.Web.Helpers.Grid
|
||||
|
||||
@model AdminKozpontiOrakOsztalyokGridModel
|
||||
|
||||
@{
|
||||
string gridName = "KozpontiOrak-" + Model.KozpontiOraGroupId.Value;
|
||||
}
|
||||
|
||||
<div>
|
||||
@(
|
||||
Html.KretaGrid<AdminKozpontiOrakOsztalyokGridModel>(
|
||||
gridName,
|
||||
allowPaging: false,
|
||||
getUrl: new GridApiUrl("AdminKozpontiOrakApi", "GetModositasDetailsGrid",
|
||||
new Dictionary<string, string>
|
||||
{
|
||||
{ "start", Model.OraKezdete.ToUniversalTime().ToString() },
|
||||
{ "end", Model.OraVege.ToUniversalTime().ToString() },
|
||||
{ "hanyadikOra", Model.HanyadikOra.ToString() },
|
||||
{ "kozpontiOraId", Model.KozpontiOraGroupId.Value.ToString() }
|
||||
})
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.Osztaly).Width("25%");
|
||||
columns.Bound(c => c.Tanar).Width("25%");
|
||||
columns.Bound(c => c.Tantargy).Width("25%");
|
||||
columns.Bound(c => c.Terem).Width("25%");
|
||||
})
|
||||
.Sortable(sortable => sortable.AllowUnsort(true).SortMode(GridSortMode.MultipleColumn))
|
||||
.RowFunction(Html, new List<RowFunction>
|
||||
{
|
||||
new RowFunction
|
||||
{
|
||||
Name = CommonResource.Torles,
|
||||
ClientAction = "KozpontiOra.deletelKozpontiOraConfirmation",
|
||||
IconEnum = GridRowFunctionIconEnum.Torles,
|
||||
},
|
||||
})
|
||||
)
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue