init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,43 @@
|
|||
@using Kreta.Web.Helpers.Grid
|
||||
@using Kreta.Web.Areas.Tanulo.Models
|
||||
@using Kreta.BusinessLogic.Classes
|
||||
@using Kreta.Resources
|
||||
@model TanuloModel
|
||||
|
||||
@{
|
||||
const string TanuloApiController = Constants.ApiControllers.KollegiumTanuloApi;
|
||||
}
|
||||
|
||||
<div class="container-fluid">
|
||||
@(
|
||||
Html.KretaGrid<TanuloFelmentesGridModel>(
|
||||
"FelmentesGrid",
|
||||
new GridApiUrl(TanuloApiController, "GetFelmentesekGrid", new Dictionary<string, string> { { "Id", Model.TanuloId.ToString() } })
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.TantargyNev).Width("20%");
|
||||
columns.Bound(c => c.Kezdete).Width("100px").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
columns.Bound(c => c.Vege).Width("100px").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
columns.Bound(c => c.OraMentesites_BNAME).Width("10%");
|
||||
columns.Bound(c => c.ErtekelesMentesites_BNAME).Width("10%");
|
||||
columns.Bound(c => c.SzovegesenErtekelheto_BNAME).Width("10%");
|
||||
columns.Bound(c => c.FelmentesOka).SetDisplayPropertyWithToolip("FelmentesOka");
|
||||
})
|
||||
.RowFunction(Html, new List<RowFunction>
|
||||
{
|
||||
new RowFunction {Name = TanuloResource.Modositas, ClientAction = "TanuloFelmentesHelper.modFelmentes", IconEnum = Kreta.Enums.ManualEnums.GridRowFunctionIconEnum.Modositas},
|
||||
new RowFunction {Name = TanuloResource.Torles, ClientAction = "TanuloFelmentesHelper.deleteFelmentesCimConfirmWindow", IconEnum = Kreta.Enums.ManualEnums.GridRowFunctionIconEnum.Torles}
|
||||
})
|
||||
.FunctionCommand(Html, new List<FunctionCommand>
|
||||
{
|
||||
new FunctionCommand {Name = TanuloResource.Uj, ClientAction = string.Format("function(){{ TanuloFelmentesHelper.newFelmentes({0}); }}", Model.TanuloId)}
|
||||
})
|
||||
.Sortable(sortable =>
|
||||
sortable.AllowUnsort(true).SortMode(GridSortMode.MultipleColumn)
|
||||
)
|
||||
)
|
||||
</div>
|
||||
|
||||
@Html.KretaEmpty()
|
||||
@Html.KretaEmpty()
|
Loading…
Add table
Add a link
Reference in a new issue