35 lines
No EOL
1.8 KiB
Text
35 lines
No EOL
1.8 KiB
Text
@using Kreta.Resources;
|
|
@using Kreta.Web.Helpers.Grid;
|
|
@using Kreta.Web.Areas.Alkalmazott.Models
|
|
@using Kreta.Web.Security
|
|
|
|
@model AlkalmazottModel
|
|
|
|
<div class="container-fluid">
|
|
@(
|
|
Html.KretaGrid<AlkalmazottInfoModel.TovabbiMunkaugyiAdatokGridModel>(
|
|
name: "TovabbiMunkaugyiAdatokGrid",
|
|
getUrl: new GridApiUrl("AlkalmazottApi", "GetTovabbiMunkaugyiAdatokGrid", new Dictionary<string, string> { { "Id", Model.AlkalmazottId.ToString() } })
|
|
)
|
|
.Columns(columns =>
|
|
{
|
|
columns.Bound(c => c.MunkaKor_DNAME);
|
|
columns.Bound(c => c.PedagogusFokozat_DNAME);
|
|
columns.Bound(c => c.KotelezoOraszam);
|
|
columns.Bound(c => c.MunkaidoKedvezmenyOka_DNAME).Title(ClaimData.IsSelectedTanev20_21OrLater && ClaimData.IsSzakkepzoIntezmeny ? AlkalmazottResource.Egyebtevekenysegek : AlkalmazottResource.FeladattalTerheltOraszamOka);
|
|
})
|
|
.RowFunction(Html, new List<RowFunction> {
|
|
new RowFunction { Name=CommonResource.Modositas, ClientAction = "TovabbiMunkaugyiAdatokHelper.modifyTovabbiMunkaugyiAdatok", IconEnum = Kreta.Enums.ManualEnums.GridRowFunctionIconEnum.Modositas },
|
|
new RowFunction { Name=CommonResource.Torles, ClientAction = "TovabbiMunkaugyiAdatokHelper.deleteTovabbiMunkaugyiAdatokConfirmWindow", IconEnum = Kreta.Enums.ManualEnums.GridRowFunctionIconEnum.Torles }
|
|
})
|
|
.FunctionCommand(Html, new List<FunctionCommand> {
|
|
new FunctionCommand { Name = CommonResource.Uj, ClientAction = string.Format("function(){{ TovabbiMunkaugyiAdatokHelper.newTovabbiMunkaugyiAdatok({0}); }}", Model.AlkalmazottId) },
|
|
})
|
|
.Sortable(sortable => sortable
|
|
.AllowUnsort(true)
|
|
.SortMode(GridSortMode.MultipleColumn))
|
|
)
|
|
@Html.KretaEmpty()
|
|
@Html.KretaEmpty()
|
|
@Html.KretaEmpty()
|
|
</div> |