@using Kreta.BusinessLogic.HelperClasses @using Kreta.Web.Models @using Kreta.Resources @using Kreta.Web.Helpers @using Kreta.Enums @model CimElerhetosegModel @Html.HiddenFor(x => x.Id) @Html.HiddenFor(x => x.FelhasznaloId) @Html.HiddenFor(x => x.IsAlapertelmezettModosithato) @Html.HiddenFor(x => x.TelefonKotelezo) @Html.HiddenFor(x => x.EmailcimKotelezo) @Html.HiddenFor(x => x.EmailTipusKotelezo) @Html.HiddenFor(x => x.IsGondviseloElerhetoseg) @Html.HiddenFor(x => x.IsGondviseloJelszoIgenylo) @Html.HiddenFor(x => x.KulfoldiCimValidationAttr) @if (Model.IsGondviseloElerhetoseg) {
@Html.KretaComboBoxFor(expression: x => x.GondviseloId, url: Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetGondviseloList" }) + "?tanuloId=" + Model.FelhasznaloId, htmlAttributes: Model.GondviseloId.HasValue ? new Dictionary() { { "readonly", "readonly" } } : new Dictionary()).AutoBind(true).RenderWithName(2, 4)
}
@(Html.Kendo().DataSource() .Name("IranyitoszamokTelepulesekDS") .Custom(c => c .Transport(t => t.Read(r => r.Url(Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetIranyitoszamokEsTelepulesek" })).Type(HttpVerbs.Get))) .Schema(s => s.Model(new { id = "Iranyitoszam" })) .Group(g => g.Add(m => m.TelepulesNev)) ))
@Html.KretaCheckBoxFor(x => x.TanulovalEgyezik).RenderWithName(2, 4)
@if (Model.FormSettings.Contains(CimElerhetosegConstant.CimSectionVisible)) {
@if (Model.IsGondviseloJelszoIgenylo) {
@Html.KretaTextBoxFor(m => m.GondviseloNev_JelszoIgenylo, new Dictionary { { "placeholder", TanuloResource.Nev } }).RenderWithName(2, 4)
@Html.KretaMaskedTextBoxFor(x => x.OktatasiAzonosito_JelszoIgenylo, "00000000000", new Dictionary { { "placeholder", TanuloResource.OktatasiAzonosito } }).RenderWithName(2, 4) @Html.KretaComboBoxFor(x => x.RokonsagiFok_JelszoIgenylo, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetRokonsagiFokList" }), "Text", "Value").AutoBind(true).RenderWithName(2, 4)
}
@Html.KretaComboBoxFor(x => x.Orszag, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = Model.IsKozpontilagSzinkronizalt ? "GetOrszagFullList" : "GetOrszagList" }), "Text", "Value").AutoBind(true).RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimOrszagTooltip) @if (Model.FormSettings.Contains(CimElerhetosegConstant.AllandoLakcimCimTipus)) { @Html.KretaLabelFor(x => x.CimTipusStr, 3, 3) @Html.HiddenFor(x => x.CimTipus) } else { @Html.KretaComboBoxFor(x => x.CimTipus, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetCimTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(2, 4) }
@(Html.KretaComboBoxFor(x => x.Iranyitoszam, null, CimElerhetosegConstant.Nameof_Iranyitoszam, CimElerhetosegConstant.Nameof_Iranyitoszam, isAutoComplete: true, isServerFiltering: false, isCustomAllowed: true) .DataSource("IranyitoszamokTelepulesekDS") .AutoBind(false) .Filter(FilterType.StartsWith) .Placeholder(CommonResource.KezdjeElGelepniIrSzamot) .Events(e => e.Change("function(e) {changeIranyTelepComboBox(e, '" + CimElerhetosegConstant.Nameof_Iranyitoszam + "')}") .Open("function(e) {openIranyTelepComboBox(e, '" + CimElerhetosegConstant.Nameof_Iranyitoszam + "')}")) .RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimenekPostaiIranyitoszamaTooltip, changeEventOverride: false)) @(Html.KretaComboBoxFor(x => x.HelysegNev, null, CimElerhetosegConstant.TelepulesNev, CimElerhetosegConstant.TelepulesNev, isAutoComplete: true, isServerFiltering: false, isCustomAllowed: true) .DataSource("IranyitoszamokTelepulesekDS") .Filter(FilterType.Contains) .Placeholder(CommonResource.KezdjeElGelepniHelysegNevet) .AutoBind(false) .Events(e => e.Change("function(e) {changeIranyTelepComboBox(e, '" + CimElerhetosegConstant.TelepulesNev + "')}") .Open("function(e) {openIranyTelepComboBox(e, '" + CimElerhetosegConstant.TelepulesNev + "')}")) .RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimHelysegTooltip, changeEventOverride: false))
@Html.KretaTextBoxFor(x => x.Iranyitoszam_Str).RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimenekPostaiIranyitoszamaTooltip) @Html.KretaTextBoxFor(x => x.HelysegNev_Str).RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimHelysegTooltip)
@Html.KretaTextBoxFor(x => x.KozteruletNev).RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimenekKozteruletenekTeljesNeveTooltip)
@Html.KretaComboBoxFor(x => x.KozteruletTipus, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetKozteruletJellegList" }), "Text", "Value").RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimKozteruletJellegeTooltip)
@Html.KretaTextBoxFor(x => x.KozteruletTipus_Str).RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimKozteruletJellegeTooltip)
@Html.KretaTextBoxFor(x => x.Hazszam).RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimenekHazszamaTooltip)
@Html.KretaTextBoxFor(x => x.Emelet).RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimenekEmeletSzamaTooltip) @Html.KretaTextBoxFor(x => x.Ajto).RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimenekAjtoSzamaTooltip)
@if (Model.FormSettings.Contains(CimElerhetosegConstant.AlapertelmezettCimVisible) && !Model.AlapertelmezettCim) { @Html.KretaCheckBoxFor(x => x.AlapertelmezettCim).RenderWithName(2, 4) } else if (Model.IsGondviseloElerhetoseg && Model.GondviselokAlapertelmezettCimmel != null) { @Html.KretaCheckBoxFor(x => x.AlapertelmezettCim).RenderWithName(2, 4) } else { @Html.HiddenFor(x => x.AlapertelmezettCim) }
@if ((Model.FormSettings.Contains(CimElerhetosegConstant.EmailSectionVisible) || Model.FormSettings.Contains(CimElerhetosegConstant.TelSectionVisible)) && !Model.FormSettings.Contains(CimElerhetosegConstant.SeparatorRowHide)) {
}
} @if (Model.FormSettings.Contains(CimElerhetosegConstant.EmailSectionVisible)) {
@if (Model.FormSettings.Contains(CimElerhetosegConstant.TanuloElerhetosegEmailVisible)) {
@Html.KretaComboBoxFor(x => x.TanuloElerhetosegEmailId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetEmailList" }) + "?tanuloId=" + Model.FelhasznaloId, isSingleElementSet: false).Events(e => e.Change("changeEmail")).AutoBind(true).RenderWithName(2, 4)
}
@Html.KretaTextBoxFor(x => x.Emailcim_Input).RenderWithName(2, 4, tooltipResource: TanuloResource.ElerhetosegEmailTooltip) @Html.KretaComboBoxFor(x => x.EmailTipus, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetEmailTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(2, 4)
@if (Model.FormSettings.Contains(CimElerhetosegConstant.AlapertelmezettEmailVisible)) {
@Html.KretaCheckBoxFor(x => x.AlapertelmezettEmail).RenderWithName(2, 4)
}
} @if (Model.FormSettings.Contains(CimElerhetosegConstant.TelSectionVisible)) {
@if (Model.FormSettings.Contains(CimElerhetosegConstant.TanuloElerhetosegTelVisible)) {
@Html.KretaComboBoxFor(x => x.TanuloElerhetosegTelId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetTelList" }) + "?tanuloId=" + Model.FelhasznaloId, isSingleElementSet: false).Events(e => e.Change("changeTelefon")).AutoBind(true).RenderWithName(2, 4)
}
@Html.KretaTextBoxFor(x => x.Telefon).RenderWithName(2, 4, tooltipResource: TanuloResource.ElerhetosegTelefonszamTooltip) @Html.KretaComboBoxFor(x => x.TelefonTipus, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetTelefonTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(2, 4)
@if (Model.FormSettings.Contains(CimElerhetosegConstant.VisibleTelefon2)) {
@Html.KretaTextBoxFor(x => x.Telefon2).RenderWithName(2, 4) @Html.KretaComboBoxFor(x => x.TelefonTipus2, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetTelefonTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(2, 4)
} @if (Model.FormSettings.Contains(CimElerhetosegConstant.AlapertelmezettTelVisible)) {
@Html.KretaCheckBoxFor(x => x.AlapertelmezettTel).RenderWithName(2, 4)
}
}