@using Kreta.Resources
@using Kreta.Web.Areas.Tanulo.Models
@using Kreta.Web.Security
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Tanulo.Models
@using Kreta.BusinessLogic.Classes
@using Kreta.Resources
@using Kreta.Enums.ManualEnums
@model TanuloModel
@{
string magantanuloLabel = string.Empty, magantanulosagOkaLabel = string.Empty, magantanulosagKezdeteLabel = string.Empty;
if (ClaimData.IsSelectedTanev20_21OrLater)
{
magantanuloLabel = TanuloResource.EgyeniMunkarend;
magantanulosagOkaLabel = TanuloResource.EgyeniMunkarendOka;
magantanulosagKezdeteLabel = TanuloResource.EgyeniMunkarendKezdete;
}
}
@TanuloResource.TanugyiAdatai - @Model.TanuloTanugyModel.OsztalyNev
@Html.HiddenFor(x => x.TanuloTanugyModel.OsztalyId)
@Html.HiddenFor(x => x.TanuloTanugyModel.IsTanterviJellemzoRequired)
@Html.HiddenFor(x => x.TanuloTanugyModel.IsTanterviJellegRequired)
@Html.KretaComboBoxFor(x => x.TanuloTanugyModel.NevelesiTervId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetTantervList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloTanugyiAdatokNevelesiTervTooltip)
@if (Model.TanuloTanugyModel.IsOsszevontOsztaly)
{
@Html.KretaComboBoxFor(x => x.TanuloTanugyModel.TanuloEvfolyamTipus, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetTanuloEvfolyamList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
}
@if (Model.TanuloTanugyModel.HasAktivOsztalybaSorolas)
{
@Html.KretaNumericFor(x => x.TanuloTanugyModel.NaploSorszam).Min(0).Max(999999999).RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloTanugyiAdatokNaploSorszamTooltip)
@Html.KretaTextBoxFor(x => x.TanuloTanugyModel.NyilvantartasiSzam).RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloTanugyiAdatokTorzslapszamTooltip)
}
@Html.KretaTextBoxFor(x => x.TanuloTanugyModel.BeirasiSorszam).RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloTanugyiAdatokBeirasiNaploSorszamaTooltip)
@Html.KretaComboBoxFor(x => x.TanuloTanugyModel.FelvetelTaneveId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetTanevList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloTanugyiAdatokFelvetelTaneveTooltip)
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.KifirAlapjanImportalt).Enable(false).RenderWithName(3, 3)
@Html.KretaComboBoxFor(x => x.TanuloTanugyModel.TanterviJellemzoId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetTantervJellemzoTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
@if (Model.TanuloTanugyModel.IsSzakkepzeses && Model.TanuloTanugyModel.HasAktivOsztalybaSorolas)
{
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.TechnikusiEvfolyam).RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloTanugyiAdatokTechnikusiEvfolyamTooltip)
@Html.KretaNumericFor(x => x.TanuloTanugyModel.GyakorlatiSzintvizsgakAtlaga).Min(0).Max(5).RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloTanugyiAdatokGyakorlatiSzintvizsgakAtlagaTooltip)
}
@if (ClaimData.IsSelectedTanev20_21OrLater)
{
@TanuloResource.KollegiumiJogviszonyAdatai - @Model.TanuloTanugyModel.OsztalyNev
}
else
{
@TanuloResource.TanuloJogviszonyAdatai - @Model.TanuloTanugyModel.OsztalyNev
}
@if (Model.TanuloTanugyModel.HasAktivOsztalybaSorolas)
{
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.IsESL16EvesUtanBelepett).RenderWithName(3, 3)
if(ClaimData.IsSzakkepzoIntezmeny && ClaimData.IsSelectedTanev21_22OrLater)
{
@Html.KretaComboBoxFor(x => x.TanuloTanugyModel.TanterviJellegId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetKepzesListS" })).AutoBind(true).RenderWithName(3, 3)
}
}
else
{
@Html.KretaEmpty(6)
}
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.TankotelezettsegetTeljesito).RenderWithName(3, 3)
@Html.KretaDatePickerFor(x => x.TanuloTanugyModel.TankotelezettsegVege).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.Bejaro).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.SzakmaiGyakorlaton).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.Magantanulo, new Dictionary { { "id", "magantanuloChBx" } }).RenderWithName(3, 3, labelMsg: magantanuloLabel)
@Html.KretaComboBoxFor(x => x.TanuloTanugyModel.MagantanulosagOka, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetMagantanulosagOkaList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3, labelMsg: magantanulosagOkaLabel)
@Html.KretaDatePickerFor(x => x.TanuloTanugyModel.MagantanulosagKezdete).RenderWithName(3, 3, labelMsg: magantanulosagKezdeteLabel)
@if (ClaimData.IsSelectedTanev20_21OrLater)
{
@Html.KretaDatePickerFor(x => x.TanuloTanugyModel.MagantanulosagVege).RenderWithName(3, 3)
}
else
{
@Html.KretaEmpty(6)
}
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.Vendeg).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.TandijatFizeto).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.TeritestFizeto).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.Tanuloszerzodeses).RenderWithName(3, 3)
@if (ClaimData.IsSelectedTanev21_22OrLater)
{
@Html.KretaEmpty()
}
else
{
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.PolgariSzerzodeses).RenderWithName(3, 3)
}
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.EgyuttmukodesiMegallapodasos).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.KizarolagIskolaiKeretekKozott).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.DiaksportkorTag).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.Evismetlo).RenderWithName(3, 3)
@Html.KretaTextBoxFor(x => x.TanuloTanugyModel.ElozoIntezmeny).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.SZKTV).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.SZETV).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.OSZTV).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.EgyebOrszagosDonto).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.IsSzakmaiGyakorlatHiany).RenderWithName(3, 3)
@if (ClaimData.IsSelectedTanev21_22OrLater)
{
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.IsKiemeltenTehetseges).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.IsSzamitogepetOktCelraHasznal).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.IsSzabokyAdolfSzakkepODReszesul).RenderWithName(3, 3)
@if (Model.TanuloTanugyModel.IsAltalanosIskolaFeladatEllatasiHely)
{
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.IsEgesznaposIskOktReszesul).RenderWithName(3, 3)
}
}
@TanuloResource.JogviszonyBeallitasok
@Html.KretaCheckBoxFor(x => x.TanuloTanugyModel.JogviszonySzuneteltetese).RenderWithName(3, 3)
@if (Model.TanuloId.HasValue)
{
@{
const string TanuloApiController = Constants.ApiControllers.KollegiumTanuloApi;
}
@(
Html.KretaGrid(
"JogviszonyGrid",
new GridApiUrl(TanuloApiController, "GetJogviszonySzuneteltetesGrid", new Dictionary { { "Id", Model.TanuloId.ToString() } }),
useToolBar: false
)
.Columns(columns =>
{
columns.Bound(c => c.Kezdete).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
columns.Bound(c => c.Vege).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
columns.Bound(c => c.OsztalyNev);
})
.FunctionCommand(Html, new List { new FunctionCommand { Name = TanuloResource.Uj, ClientAction = "JogviszonySzuneteltetesHelper.openNewWindow" } })
.RowFunction(Html, new List { new RowFunction { Name = CommonResource.Torles, ClientAction = "JogviszonySzuneteltetesHelper.deleteConfirm", IconEnum = GridRowFunctionIconEnum.Torles } })
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
}