This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,21 @@
using System.Web.Mvc;
namespace Kreta.Web.Areas.Alkalmazott
{
public class AlkalmazottAreaRegistration : AreaRegistration
{
public override string AreaName
{
get { return "Alkalmazott"; }
}
public override void RegisterArea(AreaRegistrationContext context)
{
context.MapRoute(
"Alkalmazott_default",
"Alkalmazott/{controller}/{action}/{id}",
new { action = "Index", id = UrlParameter.Optional }
);
}
}
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,95 @@
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Kreta.BusinessLogic.Classes;
using Kreta.BusinessLogic.Exceptions;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.BusinessLogic.Helpers;
using Kreta.BusinessLogic.Security;
using Kreta.Client.Leltar;
using Kreta.Core.Exceptions;
using Kreta.Enums.ManualEnums;
using Kreta.Resources;
using Kreta.Web.Areas.Alkalmazott.Models;
using Kreta.Web.Areas.Tanulo.Helper;
using Kreta.Web.Helpers;
using Kreta.Web.Helpers.Error;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Alkalmazott.ApiControllers
{
[ApiRoleClaimsAuthorize(true)]
[ApiRolePackageAuthorize(KretaClaimPackages.Adminisztrator.ClaimValue, KretaClaimPackages.Dualis_Admin.ClaimValue)]
[Attributes.KretaGlobalLanguageChangeApiActionFilter(LanguageCode = "hu-Dualis")]
public class DualisAdminAlkalmazottApiController : BaseAlkalmazottApiController
{
public bool IsDualisKepzesEnabled => new IntezmenyConfigHelper(ConnectionTypeExtensions.GetSystemConnectionType()).GetIntezmenyConfig<bool>(IntezmenyConfigModulEnum.DualisKepzes, IntezmenyConfigTipusEnum.IsEnabled);
public DualisAdminAlkalmazottApiController(ILeltarClient leltarClient)
: base(leltarClient)
{
}
[HttpPost]
[ApiValidateAjaxAntiForgeryToken]
public HttpResponseMessage SaveDualisKepzohelyiOktato(DualisKepzohelyiOktatoModel model)
{
try
{
DualisKepzohelyiOktatoValidation(ModelState, model);
if (ModelState.IsValid)
{
return SaveDualisKepzohelyiOktato(model, IsDualisKepzesEnabled);
}
return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
}
catch (Check4TValidacioExistsException)
{
throw new StatusError(HttpStatusCode.BadRequest, CommonResource.AMegadottFelhasznaloiAdatokkalMarLetezikFelhasznalo);
}
catch (BlException e)
{
var error = new StatusError(HttpStatusCode.BadRequest, e.Message);
throw error;
}
}
private void DualisKepzohelyiOktatoValidation(System.Web.Http.ModelBinding.ModelStateDictionary modelState, DualisKepzohelyiOktatoModel model)
{
if (!string.IsNullOrWhiteSpace(model.JogosultsagModel.BelepesiNev))
{
var felhasznaloHelper = new FelhasznaloHelper(ConnectionTypeExtensions.GetSessionConnectionType());
var tanevMegnevezes = GetTanevMegnevezesForBelepesCheck();
var anotherYearId = Classes.Utils.GetAnotherYearId();
var tanevIds = new List<int>
{
ClaimData.SelectedTanevID.Value
};
if (anotherYearId.HasValue)
{
tanevIds.Add(anotherYearId.Value);
}
var list = felhasznaloHelper.Check4TFelhOktAzonValidation(tanevIds, (int)Validation4TEnum.Alkalmazott,
"F", model.NevEloTag, model.CsaladiNev, model.Utonev,
"F", "", "", "",
"", null, "", model.JogosultsagModel.BelepesiNev);
var selectedTanevUtkozes = list.Where(x => (!model.OktatoSzervezetId.HasValue || (x.ID != model.OktatoSzervezetId && x.ElozoTanevRekordId != model.OktatoSzervezetId))
&& x.TanevId == ClaimData.SelectedTanevID.Value).ToList();
var anotherTanevUtkozes = list.Where(x => (!model.OktatoSzervezetId.HasValue || (x.ID != model.OktatoSzervezetId && x.ElozoTanevRekordId != model.OktatoSzervezetId))
&& anotherYearId.HasValue && x.TanevId == anotherYearId.Value).ToList();
var followUpolnivalo = new Felh4TOktAzonValidationCo();
var selectedTanevUtkozesForBejelentkezesiNev = selectedTanevUtkozes.Where(x => x.BejelentkezesiNev?.ToComparableString() == model.JogosultsagModel.BelepesiNev?.ToComparableString());
var anotherTanevUtkozesForBejelentkezesiNev = anotherYearId.HasValue && followUpolnivalo == null ? anotherTanevUtkozes.Where(x => x.BejelentkezesiNev?.ToComparableString() == model.JogosultsagModel.BelepesiNev?.ToComparableString()) : new List<Felh4TOktAzonValidationCo>();
TanuloLogic.FelhasznalonevValidacio(modelState, "JogosultsagModel.BelepesiNev", selectedTanevUtkozesForBejelentkezesiNev, anotherTanevUtkozesForBejelentkezesiNev, tanevMegnevezes);
}
}
}
}

View file

@ -0,0 +1,420 @@
using System.Collections.Generic;
using System.Web.Http;
using System.Web.Mvc;
using Kreta.BusinessLogic.Classes;
using Kreta.BusinessLogic.Helpers;
using Kreta.BusinessLogic.Helpers.SystemSettings;
using Kreta.BusinessLogic.Interfaces;
using Kreta.BusinessLogic.Security;
using Kreta.Client.Leltar;
using Kreta.Core.FeatureToggle;
using Kreta.Enums;
using Kreta.Enums.ManualEnums;
using Kreta.Framework;
using Kreta.Web.Areas.Alkalmazott.ApiControllers;
using Kreta.Web.Areas.Alkalmazott.Models;
using Kreta.Web.Helpers;
using Kreta.Web.Helpers.Modal;
using Kreta.Web.Models.EditorTemplates;
using Kreta.Web.Security;
using HttpPostAttribute = System.Web.Mvc.HttpPostAttribute;
namespace Kreta.Web.Areas.Alkalmazott.Controllers
{
[MvcRoleClaimsAuthorize(true)]
[MvcRolePackageAuthorize(TanevEnum.Mind, KretaClaimPackages.Adminisztrator.ClaimValue, KretaClaimPackages.IsCsokkentettAdminJog.ClaimValue)]
public class AlkalmazottController : BaseAlkalmazottController
{
public AlkalmazottController(IFeatureContext featureContext, IKozpontiKretaHelper kozpontiKretaHelper, ILeltarClient leltarClient)
: base(featureContext, kozpontiKretaHelper, leltarClient)
{
}
[MvcRolePackageAuthorize(TanevEnum.Mind, KretaClaimPackages.Adminisztrator.ClaimValue, KretaClaimPackages.IsCsokkentettAdminJog.ClaimValue)]
public ActionResult Index(string filter)
{
var model = AlkalmazottSearchModel.SetFilterAlkalmazottSearchModel(filter);
model.MunkaugyiAdatokKlebelsbergOrNSZFH =
_featureContext.IsEnabled(Core.Constants.FeatureName.MunkaugyiAdatokKlebelsberg)
|| _featureContext.IsEnabled(Core.Constants.FeatureName.MunkaugyiAdatokNSZFH);
model.FeladatEllatasiHelyId = ClaimData.FelhelySzuro;
return View(Constants.ViewNames.Index, model);
}
[MvcRolePackageAuthorize(TanevEnum.Mind, KretaClaimPackages.Adminisztrator.ClaimValue, KretaClaimPackages.IsCsokkentettAdminJog.ClaimValue)]
public ActionResult ErrorIndex(bool? NANem, bool? NABesorolasiFokozat, bool? nincsMunkakor, bool? nincsFoglalkoztatsModja, bool? nincsEmail)
{
var model = new AlkalmazottSearchModel();
if (NANem.HasValue && NANem.Value)
{
model.NANem = NANem;
model.Nem = (int)NemEnum.NA;
}
if (NABesorolasiFokozat.HasValue && NABesorolasiFokozat.Value)
{
model.NABesorolasiFokozat = NABesorolasiFokozat;
model.SearchPedagogusFokozat = (int)BesorolasiFokozatTipusEnum.na;
}
if (nincsMunkakor.HasValue && nincsMunkakor.Value)
{
model.NincsMunkakor = nincsMunkakor;
}
if (nincsFoglalkoztatsModja.HasValue && nincsFoglalkoztatsModja.Value)
{
model.NincsFoglalkoztatsModja = nincsFoglalkoztatsModja;
}
if (nincsEmail.HasValue && nincsEmail.Value)
{
model.NincsEmail = nincsEmail;
}
model.MunkaugyiAdatokKlebelsbergOrNSZFH =
_featureContext.IsEnabled(Core.Constants.FeatureName.MunkaugyiAdatokKlebelsberg)
|| _featureContext.IsEnabled(Core.Constants.FeatureName.MunkaugyiAdatokNSZFH);
return View(Constants.ViewNames.Index, model);
}
public ActionResult OpenNewAlkalmazottPopUp()
{
return base.OpenNewAlkalmazottPopUp();
}
public ActionResult OpenUjBetoltetlenAllashelyPopUp()
{
var api = new AlkalmazottApiController(_leltarClient);
var alkalmazottModel = api.CreateNewBetoltetlenAllashelyModel();
var model = new PopUpModel(alkalmazottModel, "New_BetoltetlenAllashely_Bevitel");
model.AddCancelBtn(model, "AlkalmazottHelper.betoltetlenAllashelyCancel");
model.AddOkBtn(model, "AlkalmazottHelper.betoltetlenAllashelySave");
return PartialView(Constants.General.PopupView, model);
}
public ActionResult OpenUjHitoktatoRogzitesePopUp()
{
var api = new AlkalmazottApiController(_leltarClient);
var alkalmazottModel = api.CreateNewHitoktatoModel();
var model = new PopUpModel(alkalmazottModel, "New_HitOktato_Bevitel");
model.AddCancelBtn(model, "AlkalmazottHelper.hitOktatoCancel");
model.AddOkBtn(model, "AlkalmazottHelper.hitOktatoSave");
return PartialView(Constants.General.PopupView, model);
}
public ActionResult OpenUjKulsosAlkalmazottRogzitesePopUp()
{
var api = new AlkalmazottApiController(_leltarClient);
var alkalmazottModel = api.CreateNewKulsosAlkalmazottModel();
var model = new PopUpModel(alkalmazottModel, "New_KulsosAlkalmazott_Bevitel");
model.AddCancelBtn(model, "AlkalmazottHelper.kulsosAlkalmazottCancel");
model.AddOkBtn(model, "AlkalmazottHelper.kulsosAlkalmazottSave");
return PartialView(Constants.General.PopupView, model);
}
public ActionResult OpenUjKulsoGyakorlatiAllashelyRogzitesePopUp()
{
var api = new AlkalmazottApiController(_leltarClient);
var alkalmazottModel = api.CreateNewKulsoGyakorlatiAllashelyModel();
var model = new PopUpModel(alkalmazottModel, "New_KulsoGyakorlatiAllashely_Bevitel");
model.AddCancelBtn(model, "AlkalmazottHelper.kulsoGyakorlatiAllashelyCancel");
model.AddOkBtn(model, "AlkalmazottHelper.kulsoGyakorlatiAllashelySave");
return PartialView(Constants.General.PopupView, model);
}
public ActionResult OpenUjDualisKepzohelyiOktatoRogzitesePopUp()
{
return OpenUjDualisKepzohelyiOktatoRogzitesePopUp(false);
}
[MvcRolePackageAuthorize(TanevEnum.Mind, KretaClaimPackages.Adminisztrator.ClaimValue, KretaClaimPackages.IsCsokkentettAdminJog.ClaimValue)]
public ActionResult OpenAlkalmazottInfoPopUp(int alkalmazottId)
{
return base.OpenAlkalmazottInfoPopUp(alkalmazottId, false);
}
/// <summary>
/// Tanulók adatainál a tanárok és tantárgyak fülön a tanár neve linkbutton, ami ezt az Actiont hívja meg
/// </summary>
/// <param name="alkalmazottId"></param>
/// <returns></returns>
[MvcRolePackageAuthorize(TanevEnum.Mind, KretaClaimPackages.Adminisztrator.ClaimValue, KretaClaimPackages.IsCsokkentettAdminJog.ClaimValue)]
public ActionResult OpenTanuloTanarInfoPopUp(int alkalmazottId)
{
return base.OpenTanuloTanarInfoPopUp(alkalmazottId);
}
public ActionResult NewElerhetosegCim(int alkalmazottId)
{
return base.NewElerhetosegCim(alkalmazottId);
}
public ActionResult ModElerhetosegCim(int cimId, bool? isKozpontilagSzinkronizalt)
{
return base.ModElerhetosegCim(cimId, isKozpontilagSzinkronizalt);
}
public ActionResult NewElerhetosegTel(int alkalmazottId)
{
return base.NewElerhetosegTel(alkalmazottId);
}
public ActionResult ModElerhetosegTel(int id)
{
return base.ModElerhetosegTel(id);
}
public ActionResult NewElerhetosegEmail(int alkalmazottId)
{
return base.NewElerhetosegEmail(alkalmazottId);
}
public ActionResult ModElerhetosegEmail(int id)
{
return base.ModElerhetosegEmail(id);
}
public ActionResult OpenModifyAlkalmazottPopUp(int alkalmazottId)
{
return OpenModifyAlkalmazottPopUp(alkalmazottId, false);
}
public ActionResult OpenNewPedagogusEletpalyamodellPopUp(int alkalmazottId)
{
var pedagogusEletpalyamodellModel = new PedagogusEletpalyamodellModel
{
AlkalmazottId = alkalmazottId
};
var model = new PopUpModel(pedagogusEletpalyamodellModel, "New_PedagogusEletpalyamodell");
model.Buttons.Add(new ModalButtonModel() { Name = "BtnPedagogusEletpalyamodellCancel", Text = Resources.CommonResource.Megse, EventName = "PedagogusEletpalyamodellHelper.newPedagogusEletpalyamodellCancel" });
model.Buttons.Add(new ModalButtonModel() { Name = "BtnPedagogusEletpalyamodellOk", Text = Resources.CommonResource.Mentes, EventName = "PedagogusEletpalyamodellHelper.newPedagogusEletpalyamodellSave" });
return PartialView(Constants.General.PopupView, model);
}
public ActionResult OpenModifyPedagogusEletpalyamodellPopUp(int id)
{
var apiController = new AlkalmazottApiController(_leltarClient);
var pedagogusEletpalyamodellModel = apiController.GetPedagogusEletpalyamodell(id);
var model = new PopUpModel(pedagogusEletpalyamodellModel, "New_PedagogusEletpalyamodell");
model.Buttons.Add(new ModalButtonModel() { Name = "BtnPedagogusEletpalyamodellCancel", Text = Resources.CommonResource.Megse, EventName = "PedagogusEletpalyamodellHelper.modifyPedagogusEletpalyamodellCancel" });
model.Buttons.Add(new ModalButtonModel() { Name = "BtnPedagogusEletpalyamodellOk", Text = Resources.CommonResource.Mentes, EventName = "PedagogusEletpalyamodellHelper.modifyPedagogusEletpalyamodellSave" });
return PartialView(Constants.General.PopupView, model);
}
public ActionResult OpenNewVegzettsegekPopUp(int alkalmazottId)
{
var vegzettsegModel = new VegzettsegModel
{
AlkalmazottId = alkalmazottId
};
var model = new PopUpModel(vegzettsegModel, "New_Vegzettsegek");
model.Buttons.Add(new ModalButtonModel() { Name = "BtnVegzettsegCancel", Text = Resources.CommonResource.Megse, EventName = "VegzettsegHelper.newVegzettsegCancel" });
model.Buttons.Add(new ModalButtonModel() { Name = "BtnVegzettsegOk", Text = Resources.CommonResource.Mentes, EventName = "VegzettsegHelper.newVegzettsegSave" });
return PartialView(Constants.General.PopupView, model);
}
public ActionResult OpenModifyVegzettsegekPopUp(int id)
{
var apiController = new AlkalmazottApiController(_leltarClient);
var vegzettsegModel = apiController.GetVegzettsegek(id);
var model = new PopUpModel(vegzettsegModel, "New_Vegzettsegek");
model.Buttons.Add(new ModalButtonModel() { Name = "BtnVegzettsegCancel", Text = Resources.CommonResource.Megse, EventName = "VegzettsegHelper.modifyVegzettsegCancel" });
model.Buttons.Add(new ModalButtonModel() { Name = "BtnVegzettsegOk", Text = Resources.CommonResource.Mentes, EventName = "VegzettsegHelper.modifyVegzettsegSave" });
return PartialView(Constants.General.PopupView, model);
}
public ActionResult OpenNewTovabbiMunkaugyiAdatokPopUp(int alkalmazottId)
{
var systemSettingsHelper = new SystemSettingsHelper(ConnectionTypeExtensions.GetSessionConnectionType());
var egy_statuszra_juto_kotelezo_oraszam = systemSettingsHelper.GetSystemSettingValue<double>(RendszerBeallitasTipusEnum.Egy_statuszra_juto_kotelezo_oraszam);
var tovabbiMunkaugyiAdatokModel = new TovabbiMunkaugyiAdatokModel
{
AlkalmazottId = alkalmazottId,
FoglalkoztatasiJogviszony = (int)MunkaviszonyTipusEnum.megbizasi_jogviszony,
FoglalkoztatasTipusa = (int)FoglalkoztatasTipusaEnum.TeljesMunkaidos,
VezetoiOraszamOka = (int)VezetoiOraszamokTipusEnum.Nincs,
Oraszam = egy_statuszra_juto_kotelezo_oraszam
};
if (ApplicationData.SystemType == SystemType.KK)
{
tovabbiMunkaugyiAdatokModel.FoglalkoztatasiJogviszony = (int)MunkaviszonyTipusEnum.kozalkalmazotti_jogviszony_hatarozatlan_idore;
}
var model = new PopUpModel(tovabbiMunkaugyiAdatokModel, "TovabbiMunkaugyiAdatok_PopUp");
model.Buttons.Add(new ModalButtonModel() { Name = "BtnMunkaugyiAdatokCancel", Text = Resources.CommonResource.Megse, EventName = "TovabbiMunkaugyiAdatokHelper.newTovabbiMunkaugyiAdatokCancel" });
model.Buttons.Add(new ModalButtonModel() { Name = "BtnMunkaugyiAdatokOk", Text = Resources.CommonResource.Mentes, EventName = "TovabbiMunkaugyiAdatokHelper.saveNewMunkaugyiAdatok" });
return PartialView(Constants.General.PopupView, model);
}
public ActionResult OpenModifyTovabbiMunkaugyiAdatokPopUp(int id)
{
var apiController = new AlkalmazottApiController(_leltarClient);
var tovabbiMunkaugyiAdatokModel = apiController.GetTovabbiMunkaugyiAdatok(id);
var model = new PopUpModel(tovabbiMunkaugyiAdatokModel, "TovabbiMunkaugyiAdatok_PopUp");
model.Buttons.Add(new ModalButtonModel() { Name = "BtnMunkaugyiAdatokCancel", Text = Resources.CommonResource.Megse, EventName = "TovabbiMunkaugyiAdatokHelper.modifyTovabbiMunkaugyiAdatokCancel" });
model.Buttons.Add(new ModalButtonModel() { Name = "BtnMunkaugyiAdatokOk", Text = Resources.CommonResource.Mentes, EventName = "TovabbiMunkaugyiAdatokHelper.saveModMunkaugyiAdatok" });
return PartialView(Constants.General.PopupView, model);
}
public ActionResult OpenInfoTovabbiMunkaugyiAdatokPopUp(int id)
{
var apiController = new AlkalmazottApiController(_leltarClient);
var tovabbiMunkaugyiAdatokModel = apiController.GetTovabbiMunkaugyiAdatokAdataiForInfoWindow(id);
var model = new PopUpModel(tovabbiMunkaugyiAdatokModel, "Info_TovabbiMunkaugyiAdatok_PopUp");
model.Buttons.Add(new ModalButtonModel() { Name = "BtnMunkaugyiAdatokCancel", Text = Resources.CommonResource.Megse, EventName = "TovabbiMunkaugyiAdatokHelper.infoTovabbiMunkaugyiAdatokCancel" });
return PartialView(Constants.General.PopupView, model);
}
public ActionResult OpenNewTovabbkepzesPopUp(int alkalmazottId)
{
var tovabbkepzesModel = new TovabbkepzesModel(alkalmazottId);
var model = new PopUpModel(tovabbkepzesModel, "New_Tovabbkepzes_Popup");
model.Buttons.Add(new ModalButtonModel() { Name = "BtnTovabbkepzesCancel", Text = Resources.CommonResource.Megse, EventName = "TovabbkepzesHelper.newTovabbkepzesCancel" });
model.Buttons.Add(new ModalButtonModel() { Name = "BtnTovabbkepzesOk", Text = Resources.CommonResource.Mentes, EventName = "TovabbkepzesHelper.newTovabbkepzesSave" });
return PartialView(Constants.General.PopupView, model);
}
public ActionResult OpenModifyTovabbkepzesPopUp(int tovabbkepzesId)
{
var tanarHelper = new TanarHelper(ConnectionTypeExtensions.GetSessionConnectionType());
var tovabbkepzesCo = tanarHelper.GetTovabbkepzes(tovabbkepzesId);
var tovabbkepzesModel = new TovabbkepzesModel(tovabbkepzesCo);
var model = new PopUpModel(tovabbkepzesModel, "New_Tovabbkepzes_Popup");
model.Buttons.Add(new ModalButtonModel() { Name = "BtnTovabbkepzesCancel", Text = Resources.CommonResource.Megse, EventName = "TovabbkepzesHelper.modifyTovabbkepzesCancel" });
model.Buttons.Add(new ModalButtonModel() { Name = "BtnTovabbkepzesOk", Text = Resources.CommonResource.Mentes, EventName = "TovabbkepzesHelper.modifyTovabbkepzesSave" });
return PartialView(Constants.General.PopupView, model);
}
[MvcRolePackageAuthorize(TanevEnum.Mind, KretaClaimPackages.Adminisztrator.ClaimValue, KretaClaimPackages.IsCsokkentettAdminJog.ClaimValue)]
public ActionResult GetSZIRBeallitasokPartialView(int id)
{
return base.GetSZIRBeallitasokPartialView(id);
}
[MvcRolePackageAuthorize(TanevEnum.Mind, KretaClaimPackages.Adminisztrator.ClaimValue, KretaClaimPackages.IsCsokkentettAdminJog.ClaimValue)]
public ActionResult GetElsodlegesMunkaugyiAdatokPartialView(int id)
{
return GetElsodlegesMunkaugyiAdatokPartialView(id, false);
}
public ActionResult OpenModPopUp(List<AlkalmazottModModel> alkalmazottList)
{
return OpenModPopUp(alkalmazottList, false);
}
#region Export
public ActionResult ExportAlkalmazottakLakcimmel([FromUri] AlkalmazottSearchModel model)
{
return base.ExportAlkalmazottakLakcimmel(model);
}
public ActionResult ExportAlkalmazottakMunkaugyiAdatai([FromUri] AlkalmazottSearchModel model)
{
return base.ExportAlkalmazottakMunkaugyiAdatai(model);
}
public ActionResult ExportAlkalmazottakSzemelyiAdatai([FromUri] AlkalmazottSearchModel model)
{
return base.ExportAlkalmazottakSzemelyiAdatai(model);
}
#endregion
public ActionResult OpenVegzettsegWizard(int alkalmazottId)
{
return base.OpenVegzettsegWizard(alkalmazottId);
}
public ActionResult OpenVegzettsegTipusWizard()
{
return base.OpenVegzettsegTipusWizard();
}
public ActionResult OpenTanarVegzettsegTipusWizard()
{
return base.OpenTanarVegzettsegTipusWizard();
}
public ActionResult OpenAMITanarVegzettsegTipusWizard()
{
return base.OpenAMITanarVegzettsegTipusWizard();
}
public ActionResult OpenTanitoVegzettsegTipusWizard()
{
return base.OpenTanitoVegzettsegTipusWizard();
}
public ActionResult OpenGyogyPedagogusVegzettsegTipusWizard()
{
return base.OpenGyogyPedagogusVegzettsegTipusWizard();
}
public ActionResult VegzettsegDetailGrid(AlkalmazottInfoModel.KKVegzettsegMainModel parentModel)
{
return base.VegzettsegDetailGrid(parentModel);
}
public ActionResult OpenModifyVegzettsegWizard(AlkalmazottInfoModel.KKVegzettsegMainModel parentModel)
{
return base.OpenModifyVegzettsegWizard(parentModel);
}
public ActionResult OpenFeladatellatasiHelyekPopUp()
{
return base.OpenFeladatellatasiHelyekPopUp();
}
[HttpPost]
public ActionResult GetExportElerhetosegOsszesGrid(int id)
{
return base.GetExportElerhetosegOsszesGrid(id);
}
}
}

View file

@ -0,0 +1,661 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Mime;
using System.Text;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using Aspose.Cells;
using Kreta.BusinessLogic.Helpers;
using Kreta.BusinessLogic.Helpers.SystemSettings;
using Kreta.BusinessLogic.Interfaces;
using Kreta.BusinessLogic.Logic;
using Kreta.Client.Leltar;
using Kreta.Core.FeatureToggle;
using Kreta.Enums;
using Kreta.Enums.ManualEnums;
using Kreta.Resources;
using Kreta.Web.Areas.Alkalmazott.ApiControllers;
using Kreta.Web.Areas.Alkalmazott.Helpers;
using Kreta.Web.Areas.Alkalmazott.Models;
using Kreta.Web.Controllers;
using Kreta.Web.Helpers;
using Kreta.Web.Helpers.Error;
using Kreta.Web.Helpers.Modal;
using Kreta.Web.Models;
using Kreta.Web.Models.EditorTemplates;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Alkalmazott.Controllers
{
public class BaseAlkalmazottController : Controller
{
protected readonly IFeatureContext _featureContext;
protected readonly IKozpontiKretaHelper _kozpontiKretaHelper;
protected readonly ILeltarClient _leltarClient;
public BaseAlkalmazottController(IFeatureContext featureContext, IKozpontiKretaHelper kozpontiKretaHelper, ILeltarClient leltarClient)
{
_featureContext = featureContext;
_kozpontiKretaHelper = kozpontiKretaHelper;
_leltarClient = leltarClient ?? throw new ArgumentNullException(nameof(leltarClient));
}
[System.Web.Mvc.NonAction]
public ActionResult OpenNewAlkalmazottPopUp()
{
var alkalmazottModel = new AlkalmazottModel();
alkalmazottModel.AlapAdatModel = new AlapAdatModel()
{
NemList = AlkalmazottViewHelper.GetNemList().Where(x => x.Value == 4.ToString() || x.Value == 5.ToString()).ToList(),
IgazolvanyTipus = (int?)Enums.IgazolvanyTipusEnum.Szemelyi_igazolvany,
Allampolgarsag = (int?)AllampolgarsagEnum.magyar,
Anyanyelve = (int?)AnyanyelvEnum.magyar,
SzuletesiOrszag = (int?)OrszagTipusEnum.Magyarorszag,
};
alkalmazottModel.JogosultsagModel = new JogosultsagModel()
{
JogosultsagiSzintList = AlkalmazottViewHelper.GetJogosultsagiSzintList(_featureContext.IsEnabled(Core.Constants.FeatureName.IERSzerepkorokHozzaadasa, instituteId: ClaimData.IntezmenyAzonosito)),
JogosultsagiSzint = new string[] { ((int)SzerepkorTipusEnum.Naplo).ToString() }
};
var systemSettingsHelper = new SystemSettingsHelper(ConnectionTypeExtensions.GetSessionConnectionType());
var egy_statuszra_juto_kotelezo_oraszam = systemSettingsHelper.GetSystemSettingValue<double>(RendszerBeallitasTipusEnum.Egy_statuszra_juto_kotelezo_oraszam);
alkalmazottModel.MunkaugyAdatModel = new MunkaugyAdatModel()
{
PedagogusStatuszaList = AlkalmazottViewHelper.GetPedagogusStatuszaList(),
VezetoiOraszamOka = (int)VezetoiOraszamokTipusEnum.Nincs,
FoglalkoztatasTipusa = (int)FoglalkoztatasTipusaEnum.TeljesMunkaidos,
PedagogusStatusza = (int)PedagogusStatuszEnum.teljes_munkaidos,
Oraszam = egy_statuszra_juto_kotelezo_oraszam,
MunkaKor = (int)MunkakorTipusEnum.tanar,
FoglalkoztatasiJogviszony = (int)MunkaviszonyTipusEnum.kozalkalmazotti_jogviszony_hatarozatlan_idore,
PedagogusFokozat = (int)BesorolasiFokozatTipusEnum.na,
Foallasu = true
};
alkalmazottModel.CimElerhetosegModel = new CimElerhetosegModel()
{
Orszag = (int)OrszagTipusEnum.Magyarorszag,
CimTipus = (int)CimTipusEnum.allando_lakcim,
AlapertelmezettCim = true,
AlapertelmezettEmail = true,
AlapertelmezettTel = true,
TelefonKotelezo = false,
EmailcimKotelezo = false,
EmailTipusKotelezo = false,
FormSettings = new List<string>() {
CimElerhetosegConstant.CimSectionVisible,
CimElerhetosegConstant.EmailSectionVisible,
CimElerhetosegConstant.TelSectionVisible,
CimElerhetosegConstant.IsNew
}
};
var model = new PopUpModel(new TabStripModel()
{
TabList = AlkalmazottViewHelper.GetNewTabs(alkalmazottModel)
}, "New_PopUp");
model.AddCancelBtn(model, "AlkalmazottHelper.newAlkalmazottCancel");
model.AddOkBtn(model, "AlkalmazottHelper.saveNewAlkPromt");
return PartialView(Constants.General.PopupView, model);
}
[System.Web.Mvc.NonAction]
public ActionResult OpenUjDualisKepzohelyiOktatoRogzitesePopUp(bool isFromSzervezet)
{
var dualisKepzohelyiOktatoModel = new DualisKepzohelyiOktatoModel()
{
IsDualisKepzohelyFromSzervezet = isFromSzervezet,
NevEloTag = new AlkalmazottHelper(ConnectionTypeExtensions.GetSessionConnectionType()).GetSpecialisAlkalmazottakNevEloTag(AlkalmazottResource.DualisKepzohelyRovid),
CsaladiNev = AlkalmazottResource.DualisCsaladNev,
Utonev = isFromSzervezet ? AlkalmazottResource.Oktato : AlkalmazottResource.KulsoGyakorlatiUtoNev,
MunkaKor = (int)MunkakorTipusEnum.KulsoGyakorlatiHely
};
dualisKepzohelyiOktatoModel.JogosultsagModel = new JogosultsagModel()
{
JogosultsagiSzintList = AlkalmazottViewHelper.GetJogosultsagiSzintForSzervezetModulList(ClaimData.SelectedTanevID.Value),
JogosultsagiSzint = new string[] { ((int)SzerepkorTipusEnum.Naplo).ToString() }
};
var model = new PopUpModel(new TabStripModel()
{
TabList = AlkalmazottViewHelper.GetNewTabs(dualisKepzohelyiOktatoModel)
}, "New_PopUp");
model.AddCancelBtn(model, "AlkalmazottHelper.ujDualisKepzohelyiOktatoRogziteseCancel");
model.AddOkBtn(model, "AlkalmazottHelper.dualisKepzohelyiOktatoSave");
return PartialView(Constants.General.PopupView, model);
}
[System.Web.Mvc.NonAction]
public ActionResult OpenAlkalmazottInfoPopUp(int alkalmazottId, bool isFromSzervezet)
{
var model = new PopUpModel(new TabStripModel()
{
TabList = AlkalmazottViewHelper.GetInfoTabs(alkalmazottId, ClaimData.IsKlebelsberg, isFromSzervezet)
}, "Info_PopUp");
model.AddCancelBtn(model, "AlkalmazottHelper.alkalmazottInfoCancel");
return PartialView(Constants.General.PopupView, model);
}
[System.Web.Mvc.NonAction]
public ActionResult OpenTanuloTanarInfoPopUp(int alkalmazottId)
{
var model = new PopUpModel(new TabStripModel()
{
TabList = AlkalmazottViewHelper.GetInfoTabs(alkalmazottId, ClaimData.IsKlebelsberg, false)
}, "Info_PopUp");
//model.AddCancelBtn(model, "TanuloTanarHelper.detailTanuloTanarCancel");
model.AddBtn(model, "TanuloTanarCancelButton", AdminisztracioResource.Megsem, "TanuloTanarHelper.detailTanuloTanarCancel");
return PartialView(Constants.General.PopupView, model);
}
[System.Web.Mvc.NonAction]
public ActionResult NewElerhetosegCim(int alkalmazottId)
{
var model = new CimElerhetosegModel()
{
FelhasznaloId = alkalmazottId,
Orszag = (int)OrszagTipusEnum.Magyarorszag,
CimTipus = (int)CimTipusEnum.allando_lakcim,
FormSettings = new List<string>() {
CimElerhetosegConstant.CimSectionVisible,
CimElerhetosegConstant.IsNew,
CimElerhetosegConstant.AlapertelmezettCimVisible
}
};
var pm = new PopUpModel(model, "_Elerhetoseg_Cim_Bevitel");
pm.Buttons.Add(new ModalButtonModel() { Name = "BtnElerhetosegCancel", Text = Resources.CommonResource.Megse, EventName = "AlkalmazottElerhetosegCimHelper.newElerhetosegCimCancel" });
pm.Buttons.Add(new ModalButtonModel() { Name = "BtnElerhetosegOk", Text = Resources.CommonResource.Mentes, EventName = "AlkalmazottElerhetosegCimHelper.newElerhetosegCimSave" });
return PartialView(Constants.General.PopupView, pm);
}
[System.Web.Mvc.NonAction]
public ActionResult ModElerhetosegCim(int cimId, bool? isKozpontilagSzinkronizalt)
{
var tac = new AlkalmazottApiController(_leltarClient);
var model = tac.GetAlkalmazottElerhetosegCim(cimId);
model.IsKozpontilagSzinkronizalt = isKozpontilagSzinkronizalt.HasValue && isKozpontilagSzinkronizalt.Value;
model.FormSettings = new List<string>() {
CimElerhetosegConstant.CimSectionVisible,
CimElerhetosegConstant.AlapertelmezettCimVisible,
};
var pm = new PopUpModel(model, "_Elerhetoseg_Cim_Bevitel");
pm.Buttons.Add(new ModalButtonModel() { Name = "BtnElerhetosegCancel", Text = Resources.CommonResource.Megse, EventName = "AlkalmazottElerhetosegCimHelper.modElerhetosegCimCancel" });
pm.Buttons.Add(new ModalButtonModel() { Name = "BtnElerhetosegOk", Text = Resources.CommonResource.Mentes, EventName = "AlkalmazottElerhetosegCimHelper.modElerhetosegCimSave" });
return PartialView(Constants.General.PopupView, pm);
}
[System.Web.Mvc.NonAction]
public ActionResult NewElerhetosegTel(int alkalmazottId)
{
var model = new CimElerhetosegModel()
{
FelhasznaloId = alkalmazottId,
TanulovalEgyezik = true,
AlapertelmezettTel = true,
TelefonKotelezo = true,
FormSettings = new List<string>() {
CimElerhetosegConstant.TelSectionVisible,
CimElerhetosegConstant.IsNew,
CimElerhetosegConstant.AlapertelmezettTelVisible
}
};
model.AlapertelmezettTel = !new AlkalmazottHelper(ConnectionTypeExtensions.GetActiveSessionConnectionType()).HasAlkalmazottAlapertelmezettTelefon(alkalmazottId);
var pm = new PopUpModel(model, "_Elerhetoseg_Tel_Bevitel");
pm.Buttons.Add(new ModalButtonModel() { Name = "BtnElerhetosegCancel", Text = Resources.CommonResource.Megse, EventName = "AlkalmazottElerhetosegTelHelper.newElerhetosegTelCancel" });
pm.Buttons.Add(new ModalButtonModel() { Name = "BtnElerhetosegOk", Text = Resources.CommonResource.Mentes, EventName = "AlkalmazottElerhetosegTelHelper.newElerhetosegTelSave" });
return PartialView(Constants.General.PopupView, pm);
}
[System.Web.Mvc.NonAction]
public ActionResult ModElerhetosegTel(int id)
{
var tac = new AlkalmazottApiController(_leltarClient);
var model = tac.GetAlkalmazottElerhetosegTel(id);
model.TanulovalEgyezik = true;
model.TelefonKotelezo = true;
model.FormSettings = new List<string>() {
CimElerhetosegConstant.TelSectionVisible,
CimElerhetosegConstant.AlapertelmezettTelVisible
};
var pm = new PopUpModel(model, "_Elerhetoseg_Tel_Bevitel");
pm.Buttons.Add(new ModalButtonModel() { Name = "BtnElerhetosegCancel", Text = Resources.CommonResource.Megse, EventName = "AlkalmazottElerhetosegTelHelper.modElerhetosegTelCancel" });
pm.Buttons.Add(new ModalButtonModel() { Name = "BtnElerhetosegOk", Text = Resources.CommonResource.Mentes, EventName = "AlkalmazottElerhetosegTelHelper.modElerhetosegTelSave" });
return PartialView(Constants.General.PopupView, pm);
}
[System.Web.Mvc.NonAction]
public ActionResult NewElerhetosegEmail(int alkalmazottId)
{
var model = new CimElerhetosegModel()
{
FelhasznaloId = alkalmazottId,
AlapertelmezettEmail = true,
TanulovalEgyezik = true,
EmailcimKotelezo = true,
EmailTipusKotelezo = true,
FormSettings = new List<string>() {
CimElerhetosegConstant.EmailSectionVisible,
CimElerhetosegConstant.IsNew,
CimElerhetosegConstant.AlapertelmezettEmailVisible
}
};
model.AlapertelmezettEmail = !new AlkalmazottHelper(ConnectionTypeExtensions.GetActiveSessionConnectionType()).HasAlkalmazottAlapertelmezettEmail(alkalmazottId);
var pm = new PopUpModel(model, "_Elerhetoseg_Email_Bevitel");
pm.Buttons.Add(new ModalButtonModel() { Name = "BtnElerhetosegCancel", Text = Resources.CommonResource.Megse, EventName = "AlkalmazottElerhetosegEmailHelper.newElerhetosegEmailCancel" });
pm.Buttons.Add(new ModalButtonModel() { Name = "BtnElerhetosegOk", Text = Resources.CommonResource.Mentes, EventName = "AlkalmazottElerhetosegEmailHelper.newElerhetosegEmailSave" });
return PartialView(Constants.General.PopupView, pm);
}
[System.Web.Mvc.NonAction]
public ActionResult ModElerhetosegEmail(int id)
{
var tac = new AlkalmazottApiController(_leltarClient);
var model = tac.GetAlkalmazottElerhetosegEmail(id);
model.TanulovalEgyezik = true;
model.EmailcimKotelezo = true;
model.EmailTipusKotelezo = true;
model.FormSettings = new List<string>() {
CimElerhetosegConstant.EmailSectionVisible,
CimElerhetosegConstant.AlapertelmezettEmailVisible
};
var pm = new PopUpModel(model, "_Elerhetoseg_Email_Bevitel");
pm.Buttons.Add(new ModalButtonModel() { Name = "BtnElerhetosegCancel", Text = Resources.CommonResource.Megse, EventName = "AlkalmazottElerhetosegEmailHelper.modElerhetosegEmailCancel" });
pm.Buttons.Add(new ModalButtonModel() { Name = "BtnElerhetosegOk", Text = Resources.CommonResource.Mentes, EventName = "AlkalmazottElerhetosegEmailHelper.modElerhetosegEmailSave" });
return PartialView(Constants.General.PopupView, pm);
}
[System.Web.Mvc.NonAction]
public ActionResult OpenModifyAlkalmazottPopUp(int alkalmazottId, bool isFromSzervezet)
{
var apiController = new AlkalmazottApiController(_leltarClient);
var alkalmazottModel = apiController.GetAlkalmazottDataForModify(alkalmazottId);
var connectionType = ConnectionTypeExtensions.GetActiveSessionConnectionType();
alkalmazottModel.IsFromSzervezet = isFromSzervezet;
alkalmazottModel.MunkaugyAdatModel.IsDualisKepzohelyFromSzervezet = isFromSzervezet;
alkalmazottModel.MunkaugyAdatModel.IsDualisKepzesEnabled = new IntezmenyConfigHelper(ConnectionTypeExtensions.GetSystemConnectionType()).GetIntezmenyConfig<bool>(IntezmenyConfigModulEnum.DualisKepzes, IntezmenyConfigTipusEnum.IsEnabled);
if (isFromSzervezet)
{
alkalmazottModel.JogosultsagModel.JogosultsagiSzintList = AlkalmazottViewHelper.GetJogosultsagiSzintForSzervezetModulList(ClaimData.SelectedTanevID.Value);
}
else
{
alkalmazottModel.JogosultsagModel.JogosultsagiSzintList = AlkalmazottViewHelper.GetJogosultsagiSzintList(_featureContext.IsEnabled(Core.Constants.FeatureName.IERSzerepkorokHozzaadasa, instituteId: ClaimData.IntezmenyAzonosito));
}
alkalmazottModel.TabList = AlkalmazottViewHelper.GetModifyTabs(alkalmazottModel, ClaimData.IsKlebelsberg);
alkalmazottModel.AlapAdatModel.NemList = AlkalmazottViewHelper.GetNemList().Where(x => x.Value == 4.ToString() || x.Value == 5.ToString()).ToList();
alkalmazottModel.MunkaugyAdatModel.PedagogusStatuszaList = AlkalmazottViewHelper.GetPedagogusStatuszaList();
var icHelper = new IntezmenyConfigHelper(connectionType);
alkalmazottModel.JogosultsagModel.IsHrFeatureEnabled = icHelper.GetIntezmenyConfig<bool>(IntezmenyConfigModulEnum.HRModul, IntezmenyConfigTipusEnum.IsEnabled);
alkalmazottModel.MunkaugyAdatModel.IsKlebelsberg = ClaimData.IsKlebelsberg;
var intezmenyAdatok = new IntezmenyHelper(connectionType).GetIntezmenyiAdatok();
alkalmazottModel.MunkaugyAdatModel.IsApaczaiMentorVisible = intezmenyAdatok.IsSzakkepzo && intezmenyAdatok.IsSzakkepzoJuttatas;
var model = new PopUpModel(alkalmazottModel, "Modify_PopUp");
model.AddCancelBtn(model, "AlkalmazottHelper.modifyAlkalmazottCancel");
model.AddOkBtn(model, "AlkalmazottHelper.saveModAlkPromt");
return PartialView(Constants.General.PopupView, model);
}
public ActionResult GetAlapadatokPartialView(int id)
{
var model = new AlkalmazottApiController(_leltarClient).GetAlkalmazottDataForInfo(id);
return PartialView("Info_Alapadatok_Tab", model);
}
[System.Web.Mvc.NonAction]
public ActionResult GetSZIRBeallitasokPartialView(int id)
{
var model = new AlkalmazottApiController(_leltarClient).GetAlkalmazottDataForInfo(id);
return PartialView("Info_SZIRBeallitasok_Tab", model);
}
[System.Web.Mvc.NonAction]
public ActionResult GetElsodlegesMunkaugyiAdatokPartialView(int id, bool isFromSzervezet)
{
var model = new AlkalmazottApiController(_leltarClient).GetAlkalmazottElsodlegesMunkaugyiAdatokDataForInfo(id, ClaimData.IsKlebelsberg);
model.IsFromSzervezetOktato = isFromSzervezet;
return PartialView("Info_ElsodlegesMunkaugyiAdatok_Tab", model);
}
public ActionResult GetPartialView(int id, string partialViewName, bool isFromSzervezet = false)
{
var model = new AlkalmazottDetailModel()
{
Id = id,
AlkalmazottApiControllerName = isFromSzervezet ? Constants.ApiControllers.DualisAdminAlkalmazottApi : Constants.ApiControllers.AlkalmazottApi
};
return PartialView(partialViewName, model);
}
[System.Web.Mvc.NonAction]
public ActionResult OpenModPopUp(List<AlkalmazottModModel> alkalmazottList, bool isFromSzervezet)
{
var api = new AlkalmazottApiController(_leltarClient);
var model = new AlkalmazottModModel();
var alkalmazottListForKozpontilagSzinkronizaltCheck = new List<int>();
if (alkalmazottList.Count == 1)
{
var data = api.GetAlkalmazottDataForModify(alkalmazottList[0].AlkalmazottId.Value);
var nev = BusinessLogic.Extensions.NameExtensions.GetNevSorrendben("F", data.AlapAdatModel.NevEloTag, data.AlapAdatModel.MunkavallaloCsaladiNev, data.AlapAdatModel.MunkavallaloUtonev);
model.AlkalmazottNev = nev;
model.AlkalmazottId = data.AlkalmazottId;
var munkaugy = data.MunkaugyAdatModel;
model.FoglalkoztatasiJogviszony = munkaugy.FoglalkoztatasiJogviszony;
model.FeladatellatasiHely = munkaugy.FeladatellatasiHely;
model.Oraszam = munkaugy.Oraszam;
model.MunkaidoKedvezmenyOraszam = munkaugy.MunkaidoKedvezmenyOraszam;
model.MunkaKor = munkaugy.MunkaKor;
model.AlkalmazasKezdete = munkaugy.AlkalmazasKezdete;
model.AlkalmazasVege = munkaugy.AlkalmazasVege;
model.PedagogusFokozat = munkaugy.PedagogusFokozat;
model.PedagogusStatusza = munkaugy.PedagogusStatusza;
model.MunkaidoKedvezmenyOka = munkaugy.MunkaidoKedvezmenyOka;
model.FoglalkoztatasTipusa = munkaugy.FoglalkoztatasTipusa;
alkalmazottListForKozpontilagSzinkronizaltCheck.Add(alkalmazottList[0].AlkalmazottId.Value);
}
else
{
foreach (var item in alkalmazottList)
{
model.AlkalmazottArray += item.AlkalmazottId.ToString() + ",";
model.AlkalmazottNevArray += item.AlkalmazottNev + ", ";
alkalmazottListForKozpontilagSzinkronizaltCheck.Add(item.AlkalmazottId.Value);
}
model.AlkalmazottArray = model.AlkalmazottArray.Remove(model.AlkalmazottArray.Length - 1);
model.AlkalmazottNevArray = model.AlkalmazottNevArray.Remove(model.AlkalmazottNevArray.Length - 2);
}
model.IsFromSzervezet = isFromSzervezet;
model.NemList = AlkalmazottViewHelper.GetNemList().Where(x => x.Value == 4.ToString() || x.Value == 5.ToString()).ToList();
model.IgenNemList = new ComboBoxHelperEnumApiController(_featureContext).GetIgenNemEnumSelectList();
model.PedagogusStatuszaList = AlkalmazottViewHelper.GetPedagogusStatuszaList();
model.IsKlebelsberg = ClaimData.IsKlebelsberg;
model.IsKozpontilagSzinkronizalt = new AlkalmazottHelper(ConnectionTypeExtensions.GetSessionConnectionType()).AnyKozpontilagSzinkorizaltAlkalmazottFromList(alkalmazottListForKozpontilagSzinkronizaltCheck);
var pm = new PopUpModel(model, isFromSzervezet ? "SzervezetAlkalmazottModify_Bevitel" : "AlkalmazottModify_Bevitel");
pm = pm.AddCancelBtn(pm, "AlkalmazottHelper.modifyCancel");
pm = pm.AddOkBtn(pm, isFromSzervezet ? "AlkalmazottHelper.confirmCsopSzervezetModWindow" : "AlkalmazottHelper.confirmCsopModWindow");
return PartialView(Constants.General.PopupView, pm);
}
#region Export
[System.Web.Mvc.NonAction]
public ActionResult ExportAlkalmazottakLakcimmel([FromUri] AlkalmazottSearchModel model)
{
var stream = new AlkalmazottHelper(ConnectionTypeExtensions.GetSessionConnectionType()).GetAlkalmazottakLakcimmelExcelExport(model.ConvertModelToCo());
return new FileStreamResult(stream, Core.Constants.ContentTypes.Xlsx) { FileDownloadName = AlkalmazottResource.AlkalmazottakLakcimmelExportFileName };
}
[System.Web.Mvc.NonAction]
public ActionResult ExportAlkalmazottakMunkaugyiAdatai([FromUri] AlkalmazottSearchModel model)
{
model.MunkaugyiAdatokKlebelsbergOrNSZFH = _featureContext.IsEnabled(Core.Constants.FeatureName.MunkaugyiAdatokKlebelsberg) || _featureContext.IsEnabled(Core.Constants.FeatureName.MunkaugyiAdatokNSZFH);
var stream = new AlkalmazottHelper(ConnectionTypeExtensions.GetSessionConnectionType()).GetAlkalmazottakMunkaugyiAdataiExcelExport(model.MunkaugyiAdatokKlebelsbergOrNSZFH, model.ConvertModelToCo(), _kozpontiKretaHelper, ClaimData.IsSelectedTanev21_22OrLater);
return new FileStreamResult(stream, Core.Constants.ContentTypes.Xlsx) { FileDownloadName = AlkalmazottResource.AlkalmazottakMunkaugyiAdataiExportFileName };
}
[System.Web.Mvc.NonAction]
public ActionResult ExportAlkalmazottakSzemelyiAdatai([FromUri] AlkalmazottSearchModel model)
{
var stream = new AlkalmazottHelper(ConnectionTypeExtensions.GetSessionConnectionType()).GetAlkalmazottakSzemelyiAdataiExcelExport(model.ConvertModelToCo());
return new FileStreamResult(stream, Core.Constants.ContentTypes.Xlsx) { FileDownloadName = AlkalmazottResource.AlkalmazottakSzemelyiAdataiExportFileName };
}
#endregion
[System.Web.Mvc.NonAction]
public ActionResult OpenVegzettsegWizard(int alkalmazottId)
{
var helper = new AlkalmazottHelper(ConnectionTypeExtensions.GetActiveSessionConnectionType());
var kepesites = helper.GetAlkalmazottKKKepesite(alkalmazottId);
if (kepesites == null)
{
return PartialView("Wiz_Kepesites");
}
if (kepesites == (int)KKKepesitesTipusEnum.Pedagogus)
{
return OpenVegzettsegTipusWizard();
}
return PartialView("Wiz_NemRogzithetoVegzettseg");
}
[System.Web.Mvc.NonAction]
public ActionResult OpenVegzettsegTipusWizard()
{
return PartialView("Wiz_VegzettsegTipus");
}
[System.Web.Mvc.NonAction]
public ActionResult OpenTanarVegzettsegTipusWizard()
{
var model = new TanarVegzettsegWizardModel();
return PartialView("Wiz_TanarVegzettseg", model);
}
[System.Web.Mvc.NonAction]
public ActionResult OpenAMITanarVegzettsegTipusWizard()
{
var model = new AMITanarVegzettsegWizardModel();
return PartialView("Wiz_AMITanarVegzettseg", model);
}
[System.Web.Mvc.NonAction]
public ActionResult OpenTanitoVegzettsegTipusWizard()
{
var model = new TanitoVegzettsegWizardModel();
return PartialView("Wiz_TanitoVegzettseg", model);
}
[System.Web.Mvc.NonAction]
public ActionResult OpenGyogyPedagogusVegzettsegTipusWizard()
{
var model = new GyogyPedagogusVegzettsegWizardModel();
return PartialView("Wiz_GyogypedagogusVegzettseg", model);
}
[System.Web.Mvc.NonAction]
public ActionResult VegzettsegDetailGrid(AlkalmazottInfoModel.KKVegzettsegMainModel parentModel)
{
var model = new VegzettsegDetailModel()
{
KepesitesTipus = parentModel.KepesitesTipusId,
EntityId = parentModel.EntityID,
AlkalmazottId = parentModel.AlkalmazottId
};
return PartialView("Modify_Wiz_DetailGrid_Vegzettsegek_Tab", model);
}
[System.Web.Mvc.NonAction]
public ActionResult OpenModifyVegzettsegWizard(AlkalmazottInfoModel.KKVegzettsegMainModel parentModel)
{
var helper = new VegzettsegHelper(ConnectionTypeExtensions.GetSessionConnectionType());
if (parentModel.KepesitesTipusId == (int)KKKepesitesJellTipusEnum.Tanar)
{
var co = helper.GetTanarVegzettseg(parentModel.EntityID.Value);
var vegzettsegModel = new TanarVegzettsegWizardModel();
vegzettsegModel.FromCo(co);
var model = new PopUpModel(vegzettsegModel, "Wiz_TanarVegzettseg");
model.Buttons.Add(new ModalButtonModel() { Name = "BtnVegzettsegCancel", Text = Resources.CommonResource.Megse, EventName = "VegzettsegWizard.ModifyVegzettsegCancel" });
model.Buttons.Add(new ModalButtonModel() { Name = "BtnVegzettsegOk", Text = Resources.CommonResource.Mentes, EventName = "VegzettsegWizard.ModifyTanarVegzettseg" });
return PartialView(Constants.General.PopupView, model);
}
if (parentModel.KepesitesTipusId == (int)KKKepesitesJellTipusEnum.TanarAMI)
{
var co = helper.GetAmiTanarVegzettseg(parentModel.EntityID.Value);
var vegzettsegModel = new AMITanarVegzettsegWizardModel();
vegzettsegModel.FromCo(co);
var model = new PopUpModel(vegzettsegModel, "Wiz_AMITanarVegzettseg");
model.Buttons.Add(new ModalButtonModel() { Name = "BtnVegzettsegCancel", Text = Resources.CommonResource.Megse, EventName = "VegzettsegWizard.ModifyVegzettsegCancel" });
model.Buttons.Add(new ModalButtonModel() { Name = "BtnVegzettsegOk", Text = Resources.CommonResource.Mentes, EventName = "VegzettsegWizard.ModifyAmiTanarVegzettseg" });
return PartialView(Constants.General.PopupView, model);
}
if (parentModel.KepesitesTipusId == (int)KKKepesitesJellTipusEnum.Gyogypedagogus)
{
var co = helper.GetGyogypedagogusVegzettseg(parentModel.AlkalmazottId);
var vegzettsegModel = new GyogyPedagogusVegzettsegWizardModel();
vegzettsegModel.FromCo(co);
var model = new PopUpModel(vegzettsegModel, "Wiz_GyogypedagogusVegzettseg");
model.Buttons.Add(new ModalButtonModel() { Name = "BtnVegzettsegCancel", Text = Resources.CommonResource.Megse, EventName = "VegzettsegWizard.ModifyVegzettsegCancel" });
model.Buttons.Add(new ModalButtonModel() { Name = "BtnVegzettsegOk", Text = Resources.CommonResource.Mentes, EventName = "VegzettsegWizard.ModifyGyogypedVegzettseg" });
return PartialView(Constants.General.PopupView, model);
}
if (parentModel.KepesitesTipusId == (int)KKKepesitesJellTipusEnum.Tanito)
{
var co = helper.GetTanitoVegzettseg(parentModel.AlkalmazottId);
var vegzettsegModel = new TanitoVegzettsegWizardModel();
vegzettsegModel.FromCo(co);
var model = new PopUpModel(vegzettsegModel, "Wiz_TanitoVegzettseg");
model.Buttons.Add(new ModalButtonModel() { Name = "BtnVegzettsegCancel", Text = Resources.CommonResource.Megse, EventName = "VegzettsegWizard.ModifyVegzettsegCancel" });
model.Buttons.Add(new ModalButtonModel() { Name = "BtnVegzettsegOk", Text = Resources.CommonResource.Mentes, EventName = "VegzettsegWizard.ModifyTanitoVegzettseg" });
return PartialView(Constants.General.PopupView, model);
}
var nemModModel = new PopUpModel(model: null, "Wiz_NemModosithatoVegzettseg");
nemModModel.Buttons.Add(new ModalButtonModel() { Name = "BtnVegzettsegCancel", Text = Resources.CommonResource.Megse, EventName = "VegzettsegWizard.ModifyVegzettsegCancel" });
return PartialView(Constants.General.PopupView, nemModModel);
}
[System.Web.Mvc.NonAction]
public ActionResult OpenFeladatellatasiHelyekPopUp()
{
var felhelyekDDL = new FeladatEllatasiHelyHelper(ConnectionTypeExtensions.GetSessionConnectionType()).GetFeladatEllatasiHelyDDl(hasKovTanev: true);
var model = new FeladatellatasiHelyPopupModel
{
FeladatellatasiHelyList = felhelyekDDL.Select(x => new SelectListItem
{
Text = x.Value,
Value = x.Key,
}).ToList()
};
var popupModel = new PopUpModel(model, "FeladatellatasiHelyekPopup");
popupModel.Buttons.Add(new ModalButtonModel() { Name = "BtnFelhelyMentes", Text = CommonResource.Mentes, EventName = "AlkalmazottHelper.setFeladatellatasiHelyKovTanev" });
return PartialView(Constants.General.PopupView, popupModel);
}
[System.Web.Mvc.NonAction]
public ActionResult GetExportElerhetosegOsszesGrid(int id)
{
try
{
using (var workbook = new Workbook())
{
var helper = new TanarHelper(ConnectionTypeExtensions.GetSessionConnectionType());
var cimCoList = helper.GetTeacherAddressDataCoList(id);
var cimModelList = new List<AlkalmazottInfoModel.ElerhetosegCimModel>();
foreach (var co in cimCoList)
{
var gridModel = new AlkalmazottInfoModel.ElerhetosegCimModel(co);
cimModelList.Add(gridModel);
}
var telefonCoList = helper.GetTeacherPhonesCoList(id);
var telefonModelList = new List<AlkalmazottInfoModel.ElerhetosegTelefonModel>();
foreach (var co in telefonCoList)
{
var gridModel = new AlkalmazottInfoModel.ElerhetosegTelefonModel(co);
telefonModelList.Add(gridModel);
}
var emailCoList = helper.GetTeacherEmailsCoList(id);
var emailModelList = new List<AlkalmazottInfoModel.ElerhetosegEmailModel>();
foreach (var co in emailCoList)
{
var gridModel = new AlkalmazottInfoModel.ElerhetosegEmailModel(co);
emailModelList.Add(gridModel);
}
var cimSimpleExportColumnCos = SimpleExportLogic.GetSimpleExportColumnCos<AlkalmazottInfoModel.ElerhetosegCimModel>(AlkalmazottInfoModel.ElerhetosegCimModel.ElerhetosegCimExportAttributeId);
var telefonSimpleExportColumnCos = SimpleExportLogic.GetSimpleExportColumnCos<AlkalmazottInfoModel.ElerhetosegTelefonModel>(AlkalmazottInfoModel.ElerhetosegTelefonModel.ElerhetosegTelefonExportAttributeId);
var emailSimpleExportColumnCos = SimpleExportLogic.GetSimpleExportColumnCos<AlkalmazottInfoModel.ElerhetosegEmailModel>(AlkalmazottInfoModel.ElerhetosegEmailModel.ElerhetosegEmailExportAttributeId);
Worksheet worksheetCim = SimpleExportLogic.GetWorksheet(workbook, AdatszolgaltatasokResource.ElerhetosegCimExportSheetName, cimSimpleExportColumnCos, 0);
Worksheet worksheetTelefon = SimpleExportLogic.GetWorksheet(workbook, AdatszolgaltatasokResource.ElerhetosegTelefonExportSheetName, telefonSimpleExportColumnCos, 1);
Worksheet worksheetEmail = SimpleExportLogic.GetWorksheet(workbook, AdatszolgaltatasokResource.ElerhetosegEmailExportSheetName, emailSimpleExportColumnCos, 2);
worksheetCim.FillWithData(cimModelList, cimSimpleExportColumnCos, ClaimData.SelectedTanevID.Value);
worksheetTelefon.FillWithData(telefonModelList, telefonSimpleExportColumnCos, ClaimData.SelectedTanevID.Value);
worksheetEmail.FillWithData(emailModelList, emailSimpleExportColumnCos, ClaimData.SelectedTanevID.Value);
MemoryStream memoryStream = SimpleExportLogic.GetWorkbookMemoryStream(workbook);
memoryStream.Position = 0;
return new FileContentResult(memoryStream.ToArray(), MediaTypeNames.Application.Octet)
{
FileDownloadName = HttpUtility.UrlEncode($"{helper.GetTanarAdatok(id).NyomtatasiNev}_{AdatszolgaltatasokResource.ElerhetosegOsszesFileName}_{DateTime.Now:yyyy_MM_dd}.{Constants.ImportExport.FileFormatXlsx}", Encoding.UTF8),
};
}
}
catch (Exception ex)
{
throw new StatusError(HttpStatusCode.BadRequest, ex.Message, ex);
}
}
}
}

View file

@ -0,0 +1,52 @@
using System.Collections.Generic;
using System.Web.Mvc;
using Kreta.BusinessLogic.Helpers;
using Kreta.BusinessLogic.Interfaces;
using Kreta.BusinessLogic.Security;
using Kreta.Client.Leltar;
using Kreta.Core.FeatureToggle;
using Kreta.Enums.ManualEnums;
using Kreta.Web.Areas.Alkalmazott.Models;
using Kreta.Web.Helpers;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Alkalmazott.Controllers
{
[MvcRoleClaimsAuthorize(true)]
[MvcRolePackageDenyAuthorize(KretaClaimPackages.IsOnlyAlkalmozott.ClaimValue, KretaClaimPackages.IsDefaultAdminUser.ClaimValue)]
[MvcRolePackageAuthorize(TanevEnum.Mind, KretaClaimPackages.Adminisztrator.ClaimValue, KretaClaimPackages.Dualis_Admin.ClaimValue)]
[Attributes.KretaGlobalLanguageChangeActionFilter(LanguageCode = "hu-Dualis")]
public class DualisAdminAlkalmazottController : BaseAlkalmazottController
{
public bool IsDualisKepzesEnabled => new IntezmenyConfigHelper(ConnectionTypeExtensions.GetSystemConnectionType()).GetIntezmenyConfig<bool>(IntezmenyConfigModulEnum.DualisKepzes, IntezmenyConfigTipusEnum.IsEnabled);
public DualisAdminAlkalmazottController(IFeatureContext featureContext, IKozpontiKretaHelper kozpontiKretaHelper, ILeltarClient leltarClient)
: base(featureContext, kozpontiKretaHelper, leltarClient)
{
}
public ActionResult OpenUjDualisKepzohelyiOktatoRogzitesePopUp()
{
return OpenUjDualisKepzohelyiOktatoRogzitesePopUp(IsDualisKepzesEnabled);
}
public ActionResult GetElsodlegesMunkaugyiAdatokPartialView(int id)
{
return GetElsodlegesMunkaugyiAdatokPartialView(id, IsDualisKepzesEnabled);
}
public ActionResult OpenModifyAlkalmazottPopUp(int alkalmazottId)
{
return OpenModifyAlkalmazottPopUp(alkalmazottId, IsDualisKepzesEnabled);
}
public ActionResult OpenAlkalmazottInfoPopUp(int alkalmazottId)
{
return OpenAlkalmazottInfoPopUp(alkalmazottId, IsDualisKepzesEnabled);
}
public ActionResult OpenModPopUp(List<AlkalmazottModModel> alkalmazottList)
{
return OpenModPopUp(alkalmazottList, IsDualisKepzesEnabled);
}
}
}

View file

@ -0,0 +1,33 @@
using System;
using System.Linq;
using System.Web.Http.ModelBinding;
using Kreta.BusinessLogic.Helpers;
using Kreta.Resources;
using Kreta.Web.Helpers;
using Kreta.Web.Models;
namespace Kreta.Web.Areas.Alkalmazott.Helpers
{
public class AlkalmazottLogic
{
public static void AlkalmazottEmailCustomValidation(ModelStateDictionary modelState, CimElerhetosegModel model)
{
var alkalmazottHelper = new AlkalmazottHelper(ConnectionTypeExtensions.GetSessionConnectionType());
var emails = alkalmazottHelper.GetEmailsCoList(model.FelhasznaloId).Where(x => x.ID != model.Id).Select(x => x.EmailCim);
if (emails.Contains(model.Emailcim_Input))
{
modelState.AddModelError(nameof(model.Emailcim_Input), ErrorResource.AMegadottEmailcimMarRogzitveVan);
}
}
public static void AlkalmazottTelefonCustomValidation(ModelStateDictionary modelState, CimElerhetosegModel model)
{
var alkalmazottHelper = new AlkalmazottHelper(ConnectionTypeExtensions.GetSessionConnectionType());
var phones = alkalmazottHelper.GetPhonesCoList(model.FelhasznaloId).Where(x => x.ID != model.Id).Select(x => x.Telefonszam);
if (phones.Contains(model.Telefon))
{
modelState.AddModelError(nameof(model.Telefon), ErrorResource.AMegadottTelefonszamMarRogzitveVan);
}
}
}
}

View file

@ -0,0 +1,695 @@
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using Kreta.BusinessLogic.Classes;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.BusinessLogic.Helpers;
using Kreta.BusinessLogic.Helpers.SystemSettings;
using Kreta.BusinessLogic.Utils;
using Kreta.Enums;
using Kreta.Enums.ManualEnums;
using Kreta.Framework;
using Kreta.Framework.Util;
using Kreta.Resources;
using Kreta.Web.Areas.Alkalmazott.Models;
using Kreta.Web.Helpers;
using Kreta.Web.Helpers.TabStrip;
using Kreta.Web.Models;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Alkalmazott.Helpers
{
public class AlkalmazottViewHelper
{
#region DropDownList helpers
public static List<SelectListItem> GetNemList()
{
IDictionary<string, string> dictionary = FrameworkEnumExtensions.EnumToList((int)GeneratedAdatszotarTipusEnum.Nem, ClaimData.SelectedTanevID.Value);
return dictionary.ToSelectListItemList();
}
public static List<SelectListItem> GetPedagogusStatuszaList()
{
IDictionary<string, string> dictionary = FrameworkEnumExtensions.EnumToList((int)GeneratedAdatszotarTipusEnum.PedagogusStatusz, ClaimData.SelectedTanevID.Value);
return dictionary.ToSelectListItemList();
}
public static List<SelectListItem> GetFeladatEllatasiHelyList()
{
IDictionary<string, string> dictionary;
FeladatEllatasiHelyHelper helper = new FeladatEllatasiHelyHelper(ConnectionTypeExtensions.GetActiveSessionConnectionType());
dictionary = helper.GetFeladatEllatasiHelyDDl(string.Empty);
return dictionary.ToSelectListItemList();
}
public static List<SelectListItem> GetFoallasList()
{
var dictionary = new Dictionary<string, string>
{
{ true.ToString(), StringResourcesUtil.GetString(133)/*igen*/ },
{ false.ToString(), StringResourcesUtil.GetString(134)/*nem*/ }
};
return dictionary.ToSelectListItemList();
}
public static List<SelectListItem> GetJogosultsagiSzintList(bool ierSzerepkorokHozzaadasa)
{
var enums = FrameworkEnumExtensions.EnumToList((int)GeneratedAdatszotarTipusEnum.SzerepkorTipus, ClaimData.SelectedTanevID.Value);
enums.Remove(((int)SzerepkorTipusEnum.Nincs_beallitva).ToString()); //Ki kell vennni a nincs beállít
//NOTE: Nem szereplhet többet a jogosultsági listába az 'Alkalmazott', máshogy állítjuk.
enums.Remove(((int)SzerepkorTipusEnum.alkalmazott).ToString());
enums.Remove(((int)SzerepkorTipusEnum.Ellenorzo).ToString());
if (!new IntezmenyConfigHelper(ConnectionTypeExtensions.GetSystemConnectionType()).GetIntezmenyConfig<bool>(IntezmenyConfigModulEnum.DualisKepzes, IntezmenyConfigTipusEnum.IsEnabled))
{
enums.Remove(((int)SzerepkorTipusEnum.Dualis_Admin).ToString());
}
if (!ierSzerepkorokHozzaadasa)
{
enums.Remove(((int)SzerepkorTipusEnum.IskolaEgeszsegugyiKoordinator).ToString());
enums.Remove(((int)SzerepkorTipusEnum.Vedono).ToString());
enums.Remove(((int)SzerepkorTipusEnum.Iskolaorvos).ToString());
enums.Remove(((int)SzerepkorTipusEnum.IskolaEgeszsegugyiAsszisztens).ToString());
enums.Remove(((int)SzerepkorTipusEnum.IskolaEgeszsegugyiLekerdezo).ToString());
}
return enums.ToSelectListItemList();
}
public static List<SelectListItem> GetJogosultsagiSzintForSzervezetModulList(int tanevId)
{
var result = new Dictionary<string, string> {
{ ((int)SzerepkorTipusEnum.Naplo).ToString(), SzerepkorTipusEnum.Naplo.GetDisplayName(tanevId) },
{ ((int)SzerepkorTipusEnum.Dualis_Admin).ToString(), SzerepkorTipusEnum.Dualis_Admin.GetDisplayName(tanevId) },
};
return result.ToSelectListItemList();
}
#endregion
public static List<TabStripItemModel> GetNewTabs(AlkalmazottModel model)
{
var list = new List<TabStripItemModel>();
list.Add(new TabStripItemModel() { ItemId = "1", ItemName = AlkalmazottResource.SzemelyesAdatok, Model = model, PartialViewName = "New_SzemelyesAdatok_Tab", IsActive = true });
list.Add(new TabStripItemModel() { ItemId = "2", ItemName = AlkalmazottResource.AllandoLakcimeEsElerhetosege, Model = model, PartialViewName = "New_Elerhetosegek_Tab" });
if (!ClaimData.IsSzirIntezmeny)
{
list.Add(new TabStripItemModel() { ItemId = "3", ItemName = AlkalmazottResource.BelepesiAdatok, Model = model, PartialViewName = "New_Jogosultsagok_Tab" });
}
list.Add(new TabStripItemModel() { ItemId = "4", ItemName = AlkalmazottResource.MunkaugyiAdatok, Model = model, PartialViewName = "New_MunkaugyiAdatok_Tab" });
if (ClaimData.IsSzakkepzoIntezmeny)
{
list.Add(new TabStripItemModel() { ItemId = "5", ItemName = AlkalmazottResource.SZIRBeallitasok, Model = model, PartialViewName = "New_Modify_SZIRBeallitasok_Tab" });
}
return list;
}
public static List<TabStripItemModel> GetNewTabs(DualisKepzohelyiOktatoModel model)
{
var list = new List<TabStripItemModel>();
list.Add(new TabStripItemModel() { ItemId = "1", ItemName = AlkalmazottResource.SzemelyesAdatok, Model = model, PartialViewName = "New_DualisKepzohelyiOktato_Bevitel", IsActive = true });
list.Add(new TabStripItemModel() { ItemId = "2", ItemName = AlkalmazottResource.BelepesiAdatok, Model = model, PartialViewName = "New_Dualis_Jogosultsagok_Tab" });
return list;
}
public static List<TabStripItemModel> GetModifyTabs(AlkalmazottModel model, bool isKlebelsberg)
{
var list = new List<TabStripItemModel>();
list.Add(new TabStripItemModel() { ItemId = "1", ItemName = AlkalmazottResource.SzemelyesAdatok, Model = model, PartialViewName = "New_SzemelyesAdatok_Tab", IsActive = true });
list.Add(new TabStripItemModel() { ItemId = "2", ItemName = AlkalmazottResource.ElerhetosegAdatok, Model = model, PartialViewName = "Mod_Elerhetoseg_Tab" });
if (!ClaimData.IsSzirIntezmeny)
{
list.Add(new TabStripItemModel() { ItemId = "3", ItemName = AlkalmazottResource.BelepesiAdatok, Model = model, PartialViewName = "New_Jogosultsagok_Tab" });
}
if (!model.IsFromSzervezet)
{
list.Add(new TabStripItemModel() { ItemId = "4", ItemName = AlkalmazottResource.ElsodlegesMunkaugyiAdatok, Model = model, PartialViewName = "New_MunkaugyiAdatok_Tab" });
if (!(ClaimData.IsSelectedTanev20_21OrLater && CommonUtils.IsSzcIntezmenyFenntartoAzonosito(ConnectionTypeExtensions.GetSessionConnectionType())))
{
list.Add(new TabStripItemModel() { ItemId = "5", ItemName = AlkalmazottResource.TovabbiMunkaugyiAdatok, Model = model, PartialViewName = "Modify_TovabbiMunkaugyiAdatok_Tab" });
}
list.Add(new TabStripItemModel() { ItemId = "6", ItemName = AlkalmazottResource.PedagogusEletpalyamodell, Model = model, PartialViewName = "Modify_PedagogusEletpalyamodell_Tab" });
if (isKlebelsberg)
{
list.Add(new TabStripItemModel() { ItemId = "7", ItemName = AlkalmazottResource.Vegzettsegek, Model = model, PartialViewName = "Modify_Wiz_Grid_Vegzettsegek_Tab" });
}
else
{
list.Add(new TabStripItemModel() { ItemId = "7", ItemName = AlkalmazottResource.Vegzettsegek, Model = model, PartialViewName = "Modify_Vegzettsegek_Tab" });
}
if (ClaimData.IsSelectedTanev20_21OrLater && ClaimData.IsSzakkepzoIntezmeny)
{
list.Add(new TabStripItemModel() { ItemId = "8", ItemName = AlkalmazottResource.Tovabbkepzes, Model = model, PartialViewName = "Edit_Tovabbkepzes_Tab" });
}
if (ClaimData.IsSzakkepzoIntezmeny)
{
list.Add(new TabStripItemModel() { ItemId = "9", ItemName = AlkalmazottResource.SZIRBeallitasok, Model = model, PartialViewName = "New_Modify_SZIRBeallitasok_Tab" });
}
}
else
{
list.Add(new TabStripItemModel() { ItemId = "4", ItemName = AlkalmazottResource.ElsodlegesMunkaugyiAdatok, Model = model, PartialViewName = "New_DualisMunkaugyiAdatok_Tab" });
}
return list;
}
public static List<TabStripItemModel> GetInfoTabs(int alkalmazottId, bool isKlebelsberg, bool isFromSzervezet)
{
var list = new List<TabStripItemModel>();
var controllerName = isFromSzervezet ? Constants.Controllers.DualisAdminAlkalmazott : Constants.Controllers.Alkalmazott;
list.Add(new TabStripItemModel() { ItemId = "1", ItemName = AlkalmazottResource.Alapadatok, Area = Constants.Areas.Alkalmazott, Controller = controllerName, Action = "GetAlapadatokPartialView", RouteParameters = new Dictionary<string, string>() { { "Id", alkalmazottId.ToString() } } });
list.Add(new TabStripItemModel() { ItemId = "2", ItemName = AlkalmazottResource.Elerhetosegek, Area = Constants.Areas.Alkalmazott, Controller = controllerName, Action = "GetPartialView", RouteParameters = new Dictionary<string, string>() { { "Id", alkalmazottId.ToString() }, { "PartialViewName", "Info_Elerhetosegek_Tab" }, { "isFromSzervezet", isFromSzervezet.ToString() } } });
list.Add(new TabStripItemModel() { ItemId = "3", ItemName = StringResourcesUtil.GetString(164) /*Foglalkozások*/, Area = Constants.Areas.Alkalmazott, Controller = controllerName, Action = "GetPartialView", RouteParameters = new Dictionary<string, string>() { { "Id", alkalmazottId.ToString() }, { "PartialViewName", "Info_Foglalkozasok_Tab" }, { "isFromSzervezet", isFromSzervezet.ToString() } } });
if (!ClaimData.IsSzirIntezmeny)
{
list.Add(new TabStripItemModel() { ItemId = "4", ItemName = StringResourcesUtil.GetString(165) /*Órarendi órák*/, Area = Constants.Areas.Alkalmazott, Controller = controllerName, Action = "GetPartialView", RouteParameters = new Dictionary<string, string>() { { "Id", alkalmazottId.ToString() }, { "PartialViewName", "Info_OrarendiOrak_Tab" }, { "isFromSzervezet", isFromSzervezet.ToString() } } });
list.Add(new TabStripItemModel() { ItemId = "5", ItemName = StringResourcesUtil.GetString(166) /*Tanmenetek*/, Area = Constants.Areas.Alkalmazott, Controller = controllerName, Action = "GetPartialView", RouteParameters = new Dictionary<string, string>() { { "Id", alkalmazottId.ToString() }, { "PartialViewName", "Info_Tanmenetek_Tab" }, { "isFromSzervezet", isFromSzervezet.ToString() } } });
list.Add(new TabStripItemModel() { ItemId = "6", ItemName = StringResourcesUtil.GetString(167) /*Megtartott tanórák*/, Area = Constants.Areas.Alkalmazott, Controller = controllerName, Action = "GetPartialView", RouteParameters = new Dictionary<string, string>() { { "Id", alkalmazottId.ToString() }, { "PartialViewName", "Info_MegtartottTanorak_Tab" }, { "isFromSzervezet", isFromSzervezet.ToString() } } });
list.Add(new TabStripItemModel() { ItemId = "7", ItemName = StringResourcesUtil.GetString(168) /*Értékelés*/, Area = Constants.Areas.Alkalmazott, Controller = controllerName, Action = "GetPartialView", RouteParameters = new Dictionary<string, string>() { { "Id", alkalmazottId.ToString() }, { "PartialViewName", "Info_Ertekelesek_Tab" }, { "isFromSzervezet", isFromSzervezet.ToString() } } });
}
if (!isFromSzervezet)
{
list.Add(new TabStripItemModel() { ItemId = "8", ItemName = AlkalmazottResource.PedagogusEletpalyamodell, Area = Constants.Areas.Alkalmazott, Controller = Constants.Controllers.Alkalmazott, Action = "GetPartialView", RouteParameters = new Dictionary<string, string>() { { "Id", alkalmazottId.ToString() }, { "PartialViewName", "Info_PedagogusEletpalyamodell_Tab" } } });
list.Add(new TabStripItemModel() { ItemId = "9", ItemName = StringResourcesUtil.GetString(11) /*Eszközök*/, Area = Constants.Areas.Alkalmazott, Controller = Constants.Controllers.Alkalmazott, Action = "GetPartialView", RouteParameters = new Dictionary<string, string>() { { "Id", alkalmazottId.ToString() }, { "PartialViewName", "Info_Eszkozok_Tab" } } });
}
list.Add(new TabStripItemModel() { ItemId = "10", ItemName = AlkalmazottResource.ElsodlegesMunkaugyiAdatok, Area = Constants.Areas.Alkalmazott, Controller = controllerName, Action = "GetElsodlegesMunkaugyiAdatokPartialView", RouteParameters = new Dictionary<string, string>() { { "Id", alkalmazottId.ToString() }, { "isFromSzervezet", isFromSzervezet.ToString() } } });
if (!isFromSzervezet)
{
if (!(ClaimData.IsSelectedTanev20_21OrLater && CommonUtils.IsSzcIntezmenyFenntartoAzonosito(ConnectionTypeExtensions.GetSessionConnectionType())))
{
list.Add(new TabStripItemModel() { ItemId = "11", ItemName = AlkalmazottResource.TovabbiMunkaugyiAdatok, Area = Constants.Areas.Alkalmazott, Controller = Constants.Controllers.Alkalmazott, Action = "GetPartialView", RouteParameters = new Dictionary<string, string>() { { "Id", alkalmazottId.ToString() }, { "PartialViewName", "Info_TovabbiMunkaugyiAdatok_Tab" } } });
}
if (isKlebelsberg)
{
list.Add(new TabStripItemModel() { ItemId = "12", ItemName = AlkalmazottResource.Vegzettsegek, Area = Constants.Areas.Alkalmazott, Controller = Constants.Controllers.Alkalmazott, Action = "GetPartialView", RouteParameters = new Dictionary<string, string>() { { "Id", alkalmazottId.ToString() }, { "PartialViewName", "Info_Wiz_Vegzettsegek_Tab" } } });
}
else
{
list.Add(new TabStripItemModel() { ItemId = "12", ItemName = AlkalmazottResource.Vegzettsegek, Area = Constants.Areas.Alkalmazott, Controller = Constants.Controllers.Alkalmazott, Action = "GetPartialView", RouteParameters = new Dictionary<string, string>() { { "Id", alkalmazottId.ToString() }, { "PartialViewName", "Info_Vegzettsegek_Tab" } } });
}
if (ClaimData.IsSelectedTanev20_21OrLater && ClaimData.IsSzakkepzoIntezmeny)
{
list.Add(new TabStripItemModel() { ItemId = "8", ItemName = AlkalmazottResource.Tovabbkepzes, Area = Constants.Areas.Alkalmazott, Controller = Constants.Controllers.Alkalmazott, Action = "GetPartialView", RouteParameters = new Dictionary<string, string>() { { "Id", alkalmazottId.ToString() }, { "PartialViewName", "Info_Tovabbkepzes_Tab" } } });
}
if (ClaimData.IsSzakkepzoIntezmeny)
{
list.Add(new TabStripItemModel() { ItemId = "13", ItemName = AlkalmazottResource.SZIRBeallitasok, Area = Constants.Areas.Alkalmazott, Controller = Constants.Controllers.Alkalmazott, Action = "GetSZIRBeallitasokPartialView", RouteParameters = new Dictionary<string, string>() { { "Id", alkalmazottId.ToString() } } });
}
}
return list;
}
#region Converters
public static AlkalmazottInfoModel.AlapadatModel ConvertCOToAlapadatModel(TanarAdatCO co)
{
var model = new AlkalmazottInfoModel.AlapadatModel
{
OktatasiAzonosito = co.OktatasiAzonosito,
Nem = co.Nem.Value,
EloTag = co.Elotag,
CsaladiNev = co.MunkavallaloCsaladiNev,
Utonev = co.MunkavallaloUtonev,
AnyjaCsaladiNeve = co.AnyjaCsaladiNeve,
AnyjaUtonev = co.AnyjaUtoneve,
AnyjaElotag = co.AnyjaNeveElotag,
SzuletesiCsaladNev = co.SzuletesiCsaladiNev,
SzuletesiUtonev = co.SzuletesiUtonev,
SzuletesiElotag = co.SzuletesiNevElotag,
SzuletesiHely = co.SzuletesiHely,
SzuletesiOrszag = co.SzuletesiOrszag.GetDisplayName<OrszagTipusEnum>(ClaimData.SelectedTanevID.Value),
SzuletesiIdo = co.SzuletesiIdo,
Allampolgarsag = co.Allampolgarsag.GetDisplayName<AllampolgarsagEnum>(ClaimData.SelectedTanevID.Value),
Allampolgarsag2 = co.Allampolgarsag2.GetDisplayName<AllampolgarsagEnum>(ClaimData.SelectedTanevID.Value),
IgazolvanyTipus = co.IgazolvanyTipus,
IgazolvanySzam = co.IgazolvanySzam,
BelepesiNev = co.BelepesiNev,
AktivStatusz = co.ActiveStatusz,
AdoazonositoJel = co.AdoazonositoJel,
TajSzam = co.TajSzam,
Megjegyzes = co.Megjegyzes,
IsKuldhetoPedMinositesSzRnek = co.IsKuldhetoPedMinositesSzRnek,
Anyanyelve = co.Anyanyelve.GetDisplayName<AnyanyelvEnum>(ClaimData.SelectedTanevID.Value),
};
return model;
}
public static AlkalmazottInfoModel.ElsodlegesMunkaugyiAdatok ConvertCOToElsodlegesMunkaugyiAdatokModel(TanarAdatCO co)
{
var model = new AlkalmazottInfoModel.ElsodlegesMunkaugyiAdatok
{
BesorolasiFokozat = co.BesorolasiFokozat,
Munkakor = co.MunkaKor,
FoglalkoztatasiJogviszony = co.FoglalkoztatasiJogviszony,
FoglalkoztatasTipusa = co.FoglalkoztatasTipusa,
ReszmunkaidosSzazalek = (co.FoglalkoztatasTipusa.HasValue && co.FoglalkoztatasTipusa.Value == (int)FoglalkoztatasTipusaEnum.Reszmunkaidos) ? co.ReszmunkaidosSzazalek : null,
VezetoiOraszamOka = co.VezetoiOraszamOka,
KotelezoOraszam = ((co.FoglalkoztatasTipusa.HasValue && co.FoglalkoztatasTipusa.Value == (int)FoglalkoztatasTipusaEnum.Oraado) || co.VezetoiOraszamOka != (int)VezetoiOraszamokTipusEnum.Nincs) ? co.Oraszam : null,
MunkaidoKedvezmenyOka = co.MunkaidoKedvezmenyOka,
MunkaidoKedvezmenyOraszam = co.MunkaidoKedvezmenyOraszam,
AlkalmazasKezdete = co.AlkalmazasKezdete,
AlkalmazasVege = co.AlkalmazasVege,
FeladatellatasiHely = co.FeladatellatasiHely,
TartosanTavollevo = co.TartosHelyettesites,
Nyugdijas = co.Nyugdijas,
BetoltetlenAllashely = co.BetoltetlenAllashely,
Foallasu = co.Foallasu,
Szakvizsga = co.Szakvizsga,
SzakertoiVagyVizsgaelnokiTevekenysegu = co.SzakertoiVagyVizsgaelnokiTevekenysegu,
SzakmaiTovabbkepzes = co.SzakmaiTovabbkepzes,
UtazoGyogypedagogus = co.UtazoGyogypedagogus,
CsokkentettMunkaidos = co.CsokkentettMunkaidos,
Attanito = co.Attanito,
AttanitoMasIntezmeny = co.AttanitoMasIntezmeny,
IsAttanitoSzCnBelul = co.IsAttanitoSzCnBelul,
SZTSZKod = co.SZTSZKod,
AllandoHelyettesitesre = co.AllandoHelyettesitesre,
SzakertoMesterpedagogusKutatotanar = co.SzakertoMesterpedagogusKutatotanar,
VezetoPedagogusVezetoOvodaPedagogus = co.VezetoPedagogusVezetoOvodaPedagogus,
OktatoiFeladatokatIsEllat = co.OktatoiFeladatokatIsEllat.GetDisplayName(),
EgyebTevekenysegekTipusId = co.EgyebTevekenysegekTipusId,
IsOsztalyfonok = co.IsOsztalyfonok,
IsSzakiranyuOktatasertFelelos = co.IsSzakiranyuOktatasertFelelos,
DualisKepzohelyNeve = co.DualisKepzohelyNeve,
DualisKepzohelyAdoszama = co.DualisKepzohelyAdoszama,
IsDualisKepzohelyiOktato = co.IsDualisKepzohelyiOktato,
IsKulsoAlkalmazott = co.IsKulsoAlkalmazott,
IsInternetetOktCelraHasznal = co.IsInternetetOktCelraHasznal,
IsInformatKepIsmRendelkezik = co.IsInformatKepIsmRendelkezik,
IsIktEszkozoketLgalabb40Hasznal = co.IsIktEszkozoketLgalabb40Hasznal,
HasEfopEszkoz = co.HasEfopEszkoz,
IsApaczaiMentor = co.IsApaczaiMentor,
SZTSZKod2 = co.SZTSZKod2,
HasBankszamlaInfo = co.BankszamlaTulajdonos.HasValue && !string.IsNullOrWhiteSpace(co.BankszamlaSzam) && !string.IsNullOrWhiteSpace(co.SzamlavezetoBank),
HasNyugdijInfo = co.IsNyugdijas && co.NyugdijKezdet.HasValue && co.NyugdijTipusId.HasValue
};
return model;
}
public static TanarAdatCO ConvertModelToCO(AlkalmazottModel model)
{
var alapadatok = model.AlapAdatModel;
var elerhetoseg = model.CimElerhetosegModel ?? new CimElerhetosegModel();
var jogosultsag = model.JogosultsagModel;
var munkaugyiAdatok = model.MunkaugyAdatModel;
var alapertelmezettJogId = new List<int> { (int)SzerepkorTipusEnum.Naplo };
var co = new TanarAdatCO()
{
Id = model.AlkalmazottId,
IsKozpontilagSzinkronizalt = model.IsKozpontilagSzinkronizalt,
FollowUpolniId = model.FollowUpolniId,
//Alapadatok
OktatasiAzonosito = alapadatok.OktatasiAzonosito,
IsOktatasiAzonositoNelkul = alapadatok.IsOktatasiAzonositoNelkul,
Nem = alapadatok.Nem,
Elotag = alapadatok.NevEloTag,
MunkavallaloCsaladiNev = alapadatok.MunkavallaloCsaladiNev,
MunkavallaloUtonev = alapadatok.MunkavallaloUtonev,
SzuletesiCsaladiNev = alapadatok.SzuletesiCsaladiNev,
SzuletesiUtonev = alapadatok.SzuletesiUtonev,
SzuletesiNevElotag = alapadatok.SzuletesiNevElotag,
AnyjaCsaladiNeve = alapadatok.AnyjaCsaladiNeve,
AnyjaUtoneve = alapadatok.AnyjaUtoneve,
AnyjaNeveElotag = alapadatok.AnyjaNeveElotag,
SzuletesiHely = alapadatok.SzuletesiHely,
SzuletesiOrszag = alapadatok.SzuletesiOrszag ?? (int)OrszagTipusEnum.Magyarorszag,
Allampolgarsag = alapadatok.Allampolgarsag,
Allampolgarsag2 = alapadatok.Allampolgarsag2,
SzuletesiIdo = alapadatok.SzuletesiIdo.Value,
IgazolvanyTipus = alapadatok.IgazolvanyTipus,
IgazolvanySzam = alapadatok.IgazolvanySzam,
AdoazonositoJel = alapadatok.AdoazonositoJel,
TajSzam = alapadatok.TajSzam,
Megjegyzes = alapadatok.Megjegyzes,
IsKuldhetoPedMinositesSzRnek = alapadatok.IsKuldhetoPedMinositesSzRnek,
Anyanyelve = alapadatok.Anyanyelve ?? (int)AnyanyelvEnum.magyar,
//Elérhetőség
Orszag = elerhetoseg.Orszag ?? (int)OrszagTipusEnum.Magyarorszag,
Iranyitoszam = elerhetoseg.Iranyitoszam_Str,
HelysegNeve = elerhetoseg.HelysegNev_Str,
KozteruletNeve = elerhetoseg.KozteruletNev,
KozteruletJellegeNev = elerhetoseg.KozteruletTipus_Str,
Hazszam = elerhetoseg.Hazszam,
Emelet = elerhetoseg.Emelet,
Ajto = elerhetoseg.Ajto,
Telefon = elerhetoseg.Telefon,
Telefon2 = elerhetoseg.Telefon2,
TelefonTipus = elerhetoseg.TelefonTipus,
TelefonTipus2 = elerhetoseg.TelefonTipus2,
Email = elerhetoseg.Emailcim,
AlapertelmezettCim = elerhetoseg.AlapertelmezettCim,
//Munkaügyi adatok
Oraszam = munkaugyiAdatok.Oraszam,
MunkaidoKedvezmenyOraszam = munkaugyiAdatok.MunkaidoKedvezmenyOraszam,
MunkaKor = munkaugyiAdatok.MunkaKor,
FoglalkoztatasiJogviszony = munkaugyiAdatok.FoglalkoztatasiJogviszony,
AlkalmazasKezdete = munkaugyiAdatok.AlkalmazasKezdete,
AlkalmazasVege = munkaugyiAdatok.AlkalmazasVege,
FeladatellatasiHely = munkaugyiAdatok.FeladatellatasiHely ?? -1,
FeladatellatasiHelyKovTanev = munkaugyiAdatok.FeladatellatasiHelyKovTanev,
Foallasu = munkaugyiAdatok.Foallasu,
BetoltetlenAllashely = munkaugyiAdatok.BetoltetlenAllashely,
TartosHelyettesites = munkaugyiAdatok.TartosHelyettesites,
MunkaidoKedvezmenyOka = munkaugyiAdatok.MunkaidoKedvezmenyOka,
PedagogusStatusza = munkaugyiAdatok.PedagogusStatusza,
Nyugdijas = munkaugyiAdatok.Nyugdijas,
BesorolasiFokozat = munkaugyiAdatok.PedagogusFokozat,
IsKulsoAlkalmazott = munkaugyiAdatok.IsKulsoAlkalmazott,
FoglalkoztatasTipusa = munkaugyiAdatok.FoglalkoztatasTipusa,
ReszmunkaidosSzazalek = munkaugyiAdatok.ReszmunkaidosSzazalek,
VezetoiOraszamOka = munkaugyiAdatok.VezetoiOraszamOka,
Szakvizsga = munkaugyiAdatok.Szakvizsga,
SzakertoiVagyVizsgaelnokiTevekenysegu = munkaugyiAdatok.SzakertoiVagyVizsgaelnokiTevekenysegu,
SzakmaiTovabbkepzes = munkaugyiAdatok.SzakmaiTovabbkepzes,
UtazoGyogypedagogus = munkaugyiAdatok.UtazoGyogypedagogus,
CsokkentettMunkaidos = munkaugyiAdatok.CsokkentettMunkaidos,
SzakertoMesterpedagogusKutatotanar = munkaugyiAdatok.SzakertoMesterpedagogusKutatotanar,
VezetoPedagogusVezetoOvodaPedagogus = munkaugyiAdatok.VezetoPedagogusVezetoOvodaPedagogus,
//SzabadAllashely = munkaugyiAdatok.SzabadAllashely
Attanito = munkaugyiAdatok.Attanito,
AttanitoMasIntezmeny = munkaugyiAdatok.AttanitoMasIntezmeny,
IsAttanitoSzCnBelul = munkaugyiAdatok.IsAttanitoSzCnBelul,
SZTSZKod = munkaugyiAdatok.SZTSZKod,
AllandoHelyettesitesre = munkaugyiAdatok.AllandoHelyettesitesre,
OktatoiFeladatokatIsEllat = GetOktatoiFeladatokatIsEllat(model),
EgyebTevekenysegekTipusId = munkaugyiAdatok.EgyebTevekenysegekTipusId,
IsOsztalyfonok = munkaugyiAdatok.IsOsztalyfonok,
DualisKepzohelyNeve = munkaugyiAdatok.DualisKepzohelyNeve,
DualisKepzohelyAdoszama = munkaugyiAdatok.DualisKepzohelyAdoszama,
SzervezetId = munkaugyiAdatok.OktatoSzervezetId,
IsSzakiranyuOktatasertFelelos = munkaugyiAdatok.IsSzakiranyuOktatasertFelelos,
IsDualisKepzohelyiOktato = munkaugyiAdatok.IsDualisKepzohelyiOktato,
IsInternetetOktCelraHasznal = munkaugyiAdatok.IsInternetetOktCelraHasznal,
IsInformatKepIsmRendelkezik = munkaugyiAdatok.IsInformatKepIsmRendelkezik,
IsIktEszkozoketLgalabb40Hasznal = munkaugyiAdatok.IsIktEszkozoketLgalabb40Hasznal,
HasEfopEszkoz = munkaugyiAdatok.HasEfopEszkoz,
IsApaczaiMentor = munkaugyiAdatok.IsApaczaiMentor,
SZTSZKod2 = munkaugyiAdatok.SZTSZKod2,
};
if (!ClaimData.IsSzirIntezmeny)
{
//Jogosultság
co.BelepesiNev = jogosultsag.BelepesiNev;
co.Jelszo = jogosultsag.Jelszo;
co.JogosultsagiSzint = ClaimData.IsActivTanev ? jogosultsag.JogosultsagiSzint.Select(int.Parse).ToList() : alapertelmezettJogId;
co.DiakolimpiaiJog = jogosultsag.DiakolimpiaiJog;
co.KozossegiSzolgalatKezelo = jogosultsag.KozossegiSzolgalatKezelo;
co.LEPModulKezelo = jogosultsag.LEPModulKezelo;
co.IsHrKezelo = jogosultsag.IsHrKezelo;
}
if (munkaugyiAdatok.MunkaKor == (int)MunkakorTipusEnum.iskolaor)
{
co.JogosultsagiSzint = new List<int> { (int)SzerepkorTipusEnum.alkalmazott };
}
return co;
}
private static bool GetOktatoiFeladatokatIsEllat(AlkalmazottModel model)
{
//NOTE: Csak akkor lehet igaz, ha a kiválasztott munkakör szerepel a listában.
var oktatoiFeladatokatIsEllat = model.MunkaugyAdatModel.OktatoiFeladatokatIsEllat
&& model.MunkaugyAdatModel.MunkaKor.HasValue && Core.Constants.NszfhTovabbiMunkakorTipusIdList.Contains(model.MunkaugyAdatModel.MunkaKor.Value);
return oktatoiFeladatokatIsEllat;
}
public static AlkalmazottModel ConvertCOToModel(TanarAdatCO co)
{
co.LEPModulKezeloSystemSetting = new SystemSettingsHelper(ConnectionTypeExtensions.GetSessionConnectionType()).GetSystemSettingValue<bool>(RendszerBeallitasTipusEnum.Lazar_Ervin_Program_kezelese);
var model = new AlkalmazottModel()
{
AlkalmazottId = co.Id,
IsKozpontilagSzinkronizalt = co.IsKozpontilagSzinkronizalt,
AlapAdatModel = new AlapAdatModel()
{
Megjegyzes = co.Megjegyzes,
AdoazonositoJel = co.AdoazonositoJel,
TajSzam = co.TajSzam,
AnyjaCsaladiNeve = co.AnyjaCsaladiNeve,
AnyjaUtoneve = co.AnyjaUtoneve,
AnyjaNeveElotag = co.AnyjaNeveElotag,
IgazolvanySzam = co.IgazolvanySzam,
IgazolvanyTipus = co.IgazolvanyTipus,
NevEloTag = co.Elotag,
MunkavallaloCsaladiNev = co.MunkavallaloCsaladiNev,
MunkavallaloUtonev = co.MunkavallaloUtonev,
Nem = co.Nem.Value,
OktatasiAzonosito = co.OktatasiAzonosito,
IsOktatasiAzonositoNelkul = co.IsOktatasiAzonositoNelkul,
SzuletesiNevElotag = co.SzuletesiNevElotag,
SzuletesiCsaladiNev = co.SzuletesiCsaladiNev,
SzuletesiHely = co.SzuletesiHely,
SzuletesiOrszag = co.SzuletesiOrszag,
Allampolgarsag = co.Allampolgarsag,
Allampolgarsag2 = co.Allampolgarsag2,
SzuletesiIdo = co.SzuletesiIdo,
SzuletesiUtonev = co.SzuletesiUtonev,
IsKuldhetoPedMinositesSzRnek = co.IsKuldhetoPedMinositesSzRnek,
Anyanyelve = co.Anyanyelve,
},
JogosultsagModel = new JogosultsagModel()
{
BelepesiNev = co.BelepesiNev,
JogosultsagiSzint = co.JogosultsagiSzint?.Select(x => x.ToString()).ToArray(),
DiakolimpiaiJog = co.DiakolimpiaiJog,
KozossegiSzolgalatKezelo = co.KozossegiSzolgalatKezelo,
LEPModulKezelo = co.LEPModulKezelo,
LEPModulKezeloSystemSetting = co.LEPModulKezeloSystemSetting,
IsHrKezelo = co.IsHrKezelo,
},
CimElerhetosegModel = new CimElerhetosegModel()
{
Orszag = co.Orszag ?? (int)OrszagTipusEnum.Magyarorszag,
Ajto = co.Ajto,
Emailcim_Input = co.Email,
Emelet = co.Emelet,
Hazszam = co.Hazszam,
HelysegNev = co.HelysegNeve,
HelysegNev_Str = co.HelysegNeve,
Iranyitoszam_Str = co.Iranyitoszam,
Iranyitoszam = co.Iranyitoszam,
KozteruletTipus = co.KozteruletJellegeNev,
KozteruletTipus_Str = co.KozteruletJellegeNev,
KozteruletNev = co.KozteruletNeve,
AlapertelmezettCim = co.AlapertelmezettCim,
Telefon = co.Telefon,
Telefon2 = co.Telefon2,
TelefonTipus = co.TelefonTipus,
TelefonTipus2 = co.TelefonTipus2
},
MunkaugyAdatModel = new MunkaugyAdatModel()
{
AlkalmazasKezdete = co.AlkalmazasKezdete,
AlkalmazasVege = co.AlkalmazasVege,
FeladatellatasiHely = co.FeladatellatasiHely > 0 ? (int?)co.FeladatellatasiHely : null,
Foallasu = co.Foallasu,
FoglalkoztatasiJogviszony = co.FoglalkoztatasiJogviszony,
Oraszam = co.Oraszam,
MunkaidoKedvezmenyOraszam = co.MunkaidoKedvezmenyOraszam,
MunkaKor = co.MunkaKor,
BetoltetlenAllashely = co.BetoltetlenAllashely,
IsKulsoAlkalmazott = co.IsKulsoAlkalmazott,
TartosHelyettesites = co.TartosHelyettesites,
MunkaidoKedvezmenyOka = co.MunkaidoKedvezmenyOka,
PedagogusStatusza = co.PedagogusStatusza,
PedagogusFokozat = co.BesorolasiFokozat,
Nyugdijas = co.Nyugdijas,
FoglalkoztatasTipusa = co.FoglalkoztatasTipusa,
ReszmunkaidosSzazalek = co.ReszmunkaidosSzazalek,
VezetoiOraszamOka = co.VezetoiOraszamOka,
Szakvizsga = co.Szakvizsga,
//SzabadAllashely = co.SzabadAllashely,
SzakertoiVagyVizsgaelnokiTevekenysegu = co.SzakertoiVagyVizsgaelnokiTevekenysegu,
SzakmaiTovabbkepzes = co.SzakmaiTovabbkepzes,
UtazoGyogypedagogus = co.UtazoGyogypedagogus,
CsokkentettMunkaidos = co.CsokkentettMunkaidos,
SzakertoMesterpedagogus = co.SzakertoMesterpedagogus,
IsSzakertoKutatotanar = co.IsSzakertoKutatotanar,
VezetoPedagogusVezetoOvodaPedagogus = co.VezetoPedagogusVezetoOvodaPedagogus,
Attanito = co.Attanito,
AttanitoMasIntezmeny = co.AttanitoMasIntezmeny,
IsAttanitoSzCnBelul = co.IsAttanitoSzCnBelul,
SZTSZKod = co.SZTSZKod,
AllandoHelyettesitesre = co.AllandoHelyettesitesre,
OktatoiFeladatokatIsEllat = co.OktatoiFeladatokatIsEllat,
EgyebTevekenysegekTipusId = co.EgyebTevekenysegekTipusId,
IsOsztalyfonok = co.IsOsztalyfonok,
IsDualisKepzohelyiOktato = co.IsDualisKepzohelyiOktato,
IsSzakiranyuOktatasertFelelos = co.IsSzakiranyuOktatasertFelelos,
DualisKepzohelyNeve = co.DualisKepzohelyNeve,
DualisKepzohelyAdoszama = co.DualisKepzohelyAdoszama,
OktatoSzervezetId = co.SzervezetId,
IsInternetetOktCelraHasznal = co.IsInternetetOktCelraHasznal,
IsInformatKepIsmRendelkezik = co.IsInformatKepIsmRendelkezik,
IsIktEszkozoketLgalabb40Hasznal = co.IsIktEszkozoketLgalabb40Hasznal,
HasEfopEszkoz = co.HasEfopEszkoz,
IsApaczaiMentor = co.IsApaczaiMentor,
SZTSZKod2 = co.SZTSZKod2,
HasBankszamlaInfo = co.BankszamlaTulajdonos.HasValue && !string.IsNullOrWhiteSpace(co.BankszamlaSzam) && !string.IsNullOrWhiteSpace(co.SzamlavezetoBank),
HasNyugdijInfo = co.IsNyugdijas && co.NyugdijKezdet.HasValue && co.NyugdijTipusId.HasValue
}
};
return model;
}
public static TovabbiMunkaugyiAdatokModel ConvertCOToModel(TovabbiMunkaugyiAdatokCO co)
{
TovabbiMunkaugyiAdatokModel model = new TovabbiMunkaugyiAdatokModel()
{
TovabbiMunkaugyAdatModelId = co.ID,
AlkalmazottId = co.AlkalmazottId.Value,
AlkalmazasKezdete = co.AlkalmazasKezdete,
AlkalmazasVege = co.AlkalmazasVege,
FeladatellatasiHely = co.FeladatellatasiHely > 0 ? (int?)co.FeladatellatasiHely : null,
FoglalkoztatasiJogviszony = co.FoglalkoztatasModja,
Oraszam = co.KotelezoOraszam,
MunkaidoKedvezmenyOraszam = co.MunkaidoKedvezmenyOraszam,
MunkaKor = co.MunkaKor,
MunkaidoKedvezmenyOka = co.MunkaidoKedvezmenyOka,
PedagogusFokozat = co.BesorolasiFokozat,
Nyugdijas = co.Nyugdijas,
FoglalkoztatasTipusa = co.FoglalkoztatasTipusa,
VezetoiOraszamOka = co.VezetoiOraszamOka,
ReszmunkaidosSzazalek = co.ReszmunkaidosSzazalek
};
return model;
}
public static InfoTovabbiMunkaugyiAdatokPopUpModel ConvertCOToModel(InfoTovabbiMunkaugyiAdatokPopUpCO co)
{
InfoTovabbiMunkaugyiAdatokPopUpModel model = new InfoTovabbiMunkaugyiAdatokPopUpModel()
{
TovabbiMunkaugyAdatModelId = co.ID,
AlkalmazottId = co.AlkalmazottId.Value,
AlkalmazasKezdete = co.AlkalmazasKezdete,
AlkalmazasVege = co.AlkalmazasVege,
FeladatellatasiHely_BNAME = co.FeladatellatasiHely,
FoglalkoztatasiJogviszony = co.FoglalkoztatasiJogviszony,
KotelezoOraszam = co.KotelezoOraszam,
MunkaidoKedvezmenyOraszam = co.MunkaidoKedvezmenyOraszam,
MunkaKor = co.MunkaKor,
MunkaidoKedvezmenyOka = co.MunkaidoKedvezmenyOka,
PedagogusHetiOraszama = (co.KotelezoOraszam - co.MunkaidoKedvezmenyOraszam).ToString(),
PedagogusFokozat = co.PedagogusFokozat,
Nyugdijas = co.Nyugdijas,
FoglalkoztatasTipusa = co.FoglalkoztatasTipusa
};
return model;
}
public static TanarEletpalyaModellCO ConvertModelToCO(PedagogusEletpalyamodellModel model)
{
var co = new TanarEletpalyaModellCO
{
ID = model.PedagogusEletpalyamodellId ?? 0,
TanarID = model.AlkalmazottId,
Fokozat = model.Fokozat,
Statusz = model.Statusz,
Datum = model.Datum,
};
return co;
}
public static TanarVegzettsegCO ConvertModelToCO(VegzettsegModel model)
{
var co = new TanarVegzettsegCO
{
ID = model.VegzettsegModelId ?? 0,
TanarID = model.AlkalmazottId,
Vegzettseg = model.Vegzettseg,
Kepesites = model.Kepesites,
Egyeb = model.Egyeb
};
return co;
}
public static TovabbiMunkaugyiAdatokCO ConvertModelToCO(TovabbiMunkaugyiAdatokModel model)
{
var co = new TovabbiMunkaugyiAdatokCO
{
ID = model.TovabbiMunkaugyAdatModelId ?? 0,
AlkalmazottId = model.AlkalmazottId,
KotelezoOraszam = model.Oraszam,
MunkaidoKedvezmenyOraszam = model.MunkaidoKedvezmenyOraszam,
BesorolasiFokozat = model.PedagogusFokozat,
MunkaKor = model.MunkaKor,
FoglalkoztatasModja = model.FoglalkoztatasiJogviszony,
AlkalmazasKezdete = model.AlkalmazasKezdete,
AlkalmazasVege = model.AlkalmazasVege,
FeladatellatasiHely = model.FeladatellatasiHely,
Nyugdijas = model.Nyugdijas,
MunkaidoKedvezmenyOka = model.MunkaidoKedvezmenyOka,
FoglalkoztatasTipusa = model.FoglalkoztatasTipusa,
ReszmunkaidosSzazalek = model.ReszmunkaidosSzazalek,
VezetoiOraszamOka = model.VezetoiOraszamOka
};
return co;
}
public static PedagogusEletpalyamodellModel ConvertCOToModel(TanarEletpalyaModellCO co)
{
var model = new PedagogusEletpalyamodellModel
{
PedagogusEletpalyamodellId = co.ID,
AlkalmazottId = co.TanarID.Value,
Fokozat = co.Fokozat,
Statusz = co.Statusz,
Datum = co.Datum
};
return model;
}
public static VegzettsegModel ConvertCOToModel(TanarVegzettsegCO co)
{
var model = new VegzettsegModel
{
VegzettsegModelId = co.ID,
AlkalmazottId = co.TanarID.Value,
Vegzettseg = co.Vegzettseg,
Kepesites = co.Kepesites,
Egyeb = co.Egyeb
};
return model;
}
#endregion
}
}

View file

@ -0,0 +1,9 @@
namespace Kreta.Web.Areas.Alkalmazott.ModelInterface
{
public interface IAlterAlkalmazottValidationModel
{
string MunkavallaloUtonev { get; set; }
string MunkavallaloCsaladiNev { get; set; }
}
}

View file

@ -0,0 +1,8 @@
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class AlkalmazottDetailModel
{
public int Id { get; set; }
public string AlkalmazottApiControllerName { get; set; }
}
}

View file

@ -0,0 +1,82 @@
using System;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Core.CustomAttributes;
using Kreta.Resources;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class AlkalmazottGridModel : IKretaIdentity
{
public const string AlkalmazottExportAttributeId = nameof(AlkalmazottExportAttributeId);
public const string DualisAlkalmazottExportAttributeId = nameof(DualisAlkalmazottExportAttributeId);
public AlkalmazottGridModel()
{
}
public AlkalmazottGridModel(AlkalmazottItemCo itemCo)
{
ID = itemCo.Id.ToString();
Nev = itemCo.FelhasznaloNyomtatasiNev;
NevElotagNelkul = itemCo.FelhasznaloNevElotagNelkul;
TanevNev = itemCo.TanevNev;
SzuletesiHely = itemCo.FelhasznaloSzuletesiHely;
SzuletesiDatum = itemCo.FelhasznaloSzuletesiIdo;
OktatasiAzonosito = itemCo.FelhasznaloOktatasiAzonosito;
BejelentkezesiNev = itemCo.BejelentkezesiNev;
RogzitoId = itemCo.RogzitoId;
SzervezetNev = itemCo.SzervezetNeve;
SzervezetAzonosito = itemCo.SzervezetAzonositoja;
IsSzerkesztheto = itemCo.IsSzerkesztheto;
}
public string ID { get; set; }
[Display(Name = nameof(FelhasznalokResource.Nev), ResourceType = typeof(FelhasznalokResource))]
[SimpleExportColumn(AlkalmazottExportAttributeId, 00, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameNev), typeof(AlkalmazottResource))]
[SimpleExportColumn(DualisAlkalmazottExportAttributeId, 00, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameNev), typeof(AlkalmazottResource))]
public string Nev { get; set; }
[Display(Name = nameof(FelhasznalokResource.Nev), ResourceType = typeof(FelhasznalokResource))]
public string NevElotagNelkul { get; set; }
[Display(Name = nameof(CommonResource.Tanev), ResourceType = typeof(CommonResource))]
[SimpleExportColumn(AlkalmazottExportAttributeId, 01, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameTanevNev), typeof(AlkalmazottResource))]
public string TanevNev { get; set; }
[Display(Name = nameof(FelhasznalokResource.SzuletesiHely), ResourceType = typeof(FelhasznalokResource))]
[SimpleExportColumn(AlkalmazottExportAttributeId, 02, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameSzuletesiHely), typeof(AlkalmazottResource))]
[SimpleExportColumn(DualisAlkalmazottExportAttributeId, 01, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameSzuletesiHely), typeof(AlkalmazottResource))]
public string SzuletesiHely { get; set; }
[Display(Name = nameof(FelhasznalokResource.SzuletesiIdo), ResourceType = typeof(FelhasznalokResource))]
[SimpleExportColumn(AlkalmazottExportAttributeId, 03, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameSzuletesiIdo), typeof(AlkalmazottResource))]
[SimpleExportColumn(DualisAlkalmazottExportAttributeId, 02, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameSzuletesiIdo), typeof(AlkalmazottResource))]
public DateTime SzuletesiDatum { get; set; }
[Display(Name = nameof(FelhasznalokResource.OktatasiAzonosito), ResourceType = typeof(FelhasznalokResource))]
[SimpleExportColumn(AlkalmazottExportAttributeId, 04, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameOktatasiAzonosito), typeof(AlkalmazottResource))]
[SimpleExportColumn(DualisAlkalmazottExportAttributeId, 03, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameOktatasiAzonosito), typeof(AlkalmazottResource))]
public string OktatasiAzonosito { get; set; }
[Display(Name = nameof(FelhasznalokResource.FelhasznaloNev), ResourceType = typeof(FelhasznalokResource))]
[SimpleExportColumn(AlkalmazottExportAttributeId, 05, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameFelhasznaloNev), typeof(AlkalmazottResource))]
public string BejelentkezesiNev { get; set; }
public int? RogzitoId { get; set; }
[Display(Name = nameof(TeremResource.SzervezetNeve), ResourceType = typeof(TeremResource))]
[SimpleExportColumn(DualisAlkalmazottExportAttributeId, 04, nameof(TeremResource.SzervezetNeve), typeof(TeremResource))]
public string SzervezetNev { get; set; }
[Display(Name = nameof(TeremResource.SzervezetAzonosito), ResourceType = typeof(TeremResource))]
[SimpleExportColumn(DualisAlkalmazottExportAttributeId, 05, nameof(TeremResource.SzervezetAzonosito), typeof(TeremResource))]
public string SzervezetAzonosito { get; set; }
public bool IsSzerkesztheto { get; set; }
}
}

View file

@ -0,0 +1,880 @@
using System;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Classes;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Core.CustomAttributes;
using Kreta.Enums;
using Kreta.Resources;
using Kreta.Web.Attributes;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class AlkalmazottInfoModel
{
public class AlapadatModel
{
[Display(Name = nameof(AlkalmazottResource.OktatasiAzonosito), ResourceType = typeof(AlkalmazottResource))]
public string OktatasiAzonosito { get; set; }
[Display(Name = nameof(AlkalmazottResource.Neme), ResourceType = typeof(AlkalmazottResource))]
public int Nem { get; set; }
[Display(Name = nameof(AlkalmazottResource.Neme), ResourceType = typeof(AlkalmazottResource))]
public string Nem_NAME { get { return Nem.GetDisplayName<NemEnum>(ClaimData.SelectedTanevID.Value); } }
[Display(Name = nameof(AlkalmazottResource.Elotag), ResourceType = typeof(AlkalmazottResource))]
public string EloTag { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazottCsaladiNev), ResourceType = typeof(AlkalmazottResource))]
public string CsaladiNev { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazottUtonev), ResourceType = typeof(AlkalmazottResource))]
public string Utonev { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiCsaladiNev), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiCsaladNev { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiUtonev), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiUtonev { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiElotag), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiElotag { get; set; }
[Display(Name = nameof(AlkalmazottResource.AnyjaCsaladiNeve), ResourceType = typeof(AlkalmazottResource))]
public string AnyjaCsaladiNeve { get; set; }
[Display(Name = nameof(AlkalmazottResource.AnyjaUtoneve), ResourceType = typeof(AlkalmazottResource))]
public string AnyjaUtonev { get; set; }
[Display(Name = nameof(AlkalmazottResource.AnyjaElotag), ResourceType = typeof(AlkalmazottResource))]
public string AnyjaElotag { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiOrszag), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiOrszag { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiHely), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiHely { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiIdo), ResourceType = typeof(AlkalmazottResource))]
public DateTime SzuletesiIdo { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiIdo), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiIdo_SDATE { get { return SzuletesiIdo.ToString(Core.Constants.ToStringPattern.HungarianDateWithSpaces); } }
[Display(Name = nameof(AlkalmazottResource.Allampolgarsag), ResourceType = typeof(AlkalmazottResource))]
public string Allampolgarsag { get; set; }
[Display(Name = nameof(AlkalmazottResource.Allampolgarsag2), ResourceType = typeof(AlkalmazottResource))]
public string Allampolgarsag2 { get; set; }
[Display(Name = nameof(AlkalmazottResource.IgazolvanyTipus), ResourceType = typeof(AlkalmazottResource))]
public int? IgazolvanyTipus { get; set; }
[Display(Name = nameof(AlkalmazottResource.IgazolvanyTipus), ResourceType = typeof(AlkalmazottResource))]
public string IgazolvanyTipus_NAME { get { return IgazolvanyTipus.GetDisplayName<IgazolvanyTipusEnum>(ClaimData.SelectedTanevID.Value); } }
[Display(Name = nameof(AlkalmazottResource.IgazolvanySzam), ResourceType = typeof(AlkalmazottResource))]
public string IgazolvanySzam { get; set; }
[Display(Name = nameof(AlkalmazottResource.Felhasznalonev), ResourceType = typeof(AlkalmazottResource))]
public string BelepesiNev { get; set; }
[Display(Name = nameof(AlkalmazottResource.AktivStatusz), ResourceType = typeof(AlkalmazottResource))]
public bool AktivStatusz { get; set; }
[Display(Name = nameof(AlkalmazottResource.AktivStatusz), ResourceType = typeof(AlkalmazottResource))]
public string AktivStatusz_BNAME { get { return AktivStatusz.GetDisplayName(); } }
[Display(Name = nameof(AlkalmazottResource.Neptunkod), ResourceType = typeof(AlkalmazottResource))]
public string Tanev { get; set; }
[Display(Name = nameof(AlkalmazottResource.AdoazonositoJel), ResourceType = typeof(AlkalmazottResource))]
public string AdoazonositoJel { get; set; }
[Display(Name = nameof(FelhasznalokResource.TAJszam), ResourceType = typeof(FelhasznalokResource))]
public string TajSzam { get; set; }
[Display(Name = nameof(AlkalmazottResource.Megjegyzes), ResourceType = typeof(AlkalmazottResource))]
public string Megjegyzes { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsKuldhetoPedMinositesSzRnek), ResourceType = typeof(AlkalmazottResource))]
public bool IsKuldhetoPedMinositesSzRnek { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsKuldhetoPedMinositesSzRnek), ResourceType = typeof(AlkalmazottResource))]
public string IsKuldhetoPedMinositesSzRnek_Str { get { return IsKuldhetoPedMinositesSzRnek.GetDisplayName(); } }
[Display(Name = nameof(AlkalmazottResource.Anyanyelve), ResourceType = typeof(AlkalmazottResource))]
public string Anyanyelve { get; set; }
}
public class ElsodlegesMunkaugyiAdatok
{
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
public int? BesorolasiFokozat { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
public string BesorolasiFokozat_NAME { get { return BesorolasiFokozat.GetDisplayName<BesorolasiFokozatTipusEnum>(ClaimData.SelectedTanevID.Value); } }
[Display(Name = nameof(AlkalmazottResource.Munkakor), ResourceType = typeof(AlkalmazottResource))]
public int? Munkakor { get; set; }
[Display(Name = nameof(AlkalmazottResource.Munkakor), ResourceType = typeof(AlkalmazottResource))]
public string Munkakor_NAME { get { return Munkakor.GetDisplayName<MunkakorTipusEnum>(ClaimData.SelectedTanevID.Value); } }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasiJogviszony { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public string FoglalkoztatasiJogviszony_NAME { get { return FoglalkoztatasiJogviszony.GetDisplayName<MunkaviszonyTipusEnum>(ClaimData.SelectedTanevID.Value); } }
[Display(Name = nameof(AlkalmazottResource.ReszmunkaidoSzazalek), ResourceType = typeof(AlkalmazottResource))]
public double? ReszmunkaidosSzazalek { get; set; }
public int? FoglalkoztatasTipusa { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasTipusa), ResourceType = typeof(AlkalmazottResource))]
public string FoglalkoztatasTipusa_NAME { get { return FoglalkoztatasTipusa.GetDisplayName<FoglalkoztatasTipusaEnum>(ClaimData.SelectedTanevID.Value); } }
[Display(Name = nameof(AlkalmazottResource.Oraszam), ResourceType = typeof(AlkalmazottResource))]
public double? KotelezoOraszam { get; set; }
public int? MunkaidoKedvezmenyOka { get; set; }
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public string MunkaidoKedvezmenyOka_NAME { get { return MunkaidoKedvezmenyOka.GetDisplayName<MunkaidoKedvezmenyOkaEnum>(ClaimData.SelectedTanevID.Value); } }
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszam), ResourceType = typeof(AlkalmazottResource))]
public double? MunkaidoKedvezmenyOraszam { get; set; }
public DateTime? AlkalmazasKezdete { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasKezdete), ResourceType = typeof(AlkalmazottResource))]
public string AlkalmazasKezdete_SDATE { get { return AlkalmazasKezdete.ToShortDateString(); } }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasVege), ResourceType = typeof(AlkalmazottResource))]
public DateTime? AlkalmazasVege { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasVege), ResourceType = typeof(AlkalmazottResource))]
public string AlkalmazasVege_SDATE { get { return AlkalmazasVege.ToShortDateString(); } }
public int? VezetoiOraszamOka { get; set; }
[Display(Name = nameof(AlkalmazottResource.VezetoiOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public string VezetoiOraszamOka_NAME { get { return VezetoiOraszamOka.GetDisplayName<VezetoiOraszamokTipusEnum>(ClaimData.SelectedTanevID.Value); } }
public int? FeladatellatasiHely { get; set; }
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
public string FeladatellatasiHely_NAME { get; set; }
public bool TartosanTavollevo { get; set; }
[Display(Name = nameof(AlkalmazottResource.TartosanTavollevo), ResourceType = typeof(AlkalmazottResource))]
public string TartosanTavollevo_BNAME { get { return TartosanTavollevo.GetDisplayName(); } }
public bool BetoltetlenAllashely { get; set; }
[Display(Name = nameof(AlkalmazottResource.BetoltetlenAllashely), ResourceType = typeof(AlkalmazottResource))]
public string BetoltetlenAllashely_BNAME { get { return BetoltetlenAllashely.GetDisplayName(); } }
public bool IsKulsoAlkalmazott { get; set; }
[Display(Name = nameof(AlkalmazottResource.KulsoAlkalmazott), ResourceType = typeof(AlkalmazottResource))]
public string IsKulsoAlkalmazott_BNAME { get { return IsKulsoAlkalmazott.GetDisplayName(); } }
public bool Nyugdijas { get; set; }
[Display(Name = nameof(AlkalmazottResource.NyugdijasTovabbfoglalkoztatott), ResourceType = typeof(AlkalmazottResource))]
public string Nyugdijas_BNAME { get { return Nyugdijas.GetDisplayName(); } }
public bool Foallasu { get; set; }
[Display(Name = nameof(AlkalmazottResource.Foallasu), ResourceType = typeof(AlkalmazottResource))]
public string Foallasu_BNAME { get { return Foallasu.GetDisplayName(); } }
public bool Szakvizsga { get; set; }
[Display(Name = nameof(AlkalmazottResource.Szakvizsga), ResourceType = typeof(AlkalmazottResource))]
public string Szakvizsga_BNAME { get { return Szakvizsga.GetDisplayName(); } }
public bool SzakertoiVagyVizsgaelnokiTevekenysegu { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakertoiVagyVizsgaelnokiTevekenysegu), ResourceType = typeof(AlkalmazottResource))]
public string SzakertoiVagyVizsgaelnokiTevekenysegu_BNAME { get { return SzakertoiVagyVizsgaelnokiTevekenysegu.GetDisplayName(); } }
public bool SzakmaiTovabbkepzes { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakmaiTovabbkepzes), ResourceType = typeof(AlkalmazottResource))]
public string SzakmaiTovabbkepzes_BNAME { get { return SzakmaiTovabbkepzes.GetDisplayName(); } }
public bool UtazoGyogypedagogus { get; set; }
[Display(Name = nameof(AlkalmazottResource.UtazoGyogypedagogus), ResourceType = typeof(AlkalmazottResource))]
public string UtazoGyogypedagogus_BNAME { get { return UtazoGyogypedagogus.GetDisplayName(); } }
public bool CsokkentettMunkaidos { get; set; }
[Display(Name = nameof(AlkalmazottResource.CsokkentettMunkaidos), ResourceType = typeof(AlkalmazottResource))]
public string CsokkentettMunkaidos_BNAME { get { return CsokkentettMunkaidos.GetDisplayName(); } }
public bool Attanito { get; set; }
[Display(Name = nameof(AlkalmazottResource.Attanito), ResourceType = typeof(AlkalmazottResource))]
public string Attanito_BNAME { get { return Attanito.GetDisplayName(); } }
public bool AttanitoMasIntezmeny { get; set; }
[Display(Name = nameof(AlkalmazottResource.AttanitoMasIntezmeny), ResourceType = typeof(AlkalmazottResource))]
public string AttanitoMasIntezmeny_BNAME { get { return AttanitoMasIntezmeny.GetDisplayName(); } }
public bool IsAttanitoSzCnBelul { get; set; }
[Display(Name = nameof(AlkalmazottResource.AttanitoSZCnbelul), ResourceType = typeof(AlkalmazottResource))]
public string IsAttanitoSzCnBelul_BNAME { get { return IsAttanitoSzCnBelul.GetDisplayName(); } }
[Display(Name = nameof(AlkalmazottResource.AlkalmazottSZTSZKod), ResourceType = typeof(AlkalmazottResource))]
public string SZTSZKod { get; set; }
public bool AllandoHelyettesitesre { get; set; }
[Display(Name = nameof(AlkalmazottResource.AllandoHelyettesitesre), ResourceType = typeof(AlkalmazottResource))]
public string AllandoHelyettesitesre_BNAME { get { return AllandoHelyettesitesre.GetDisplayName(); } }
public bool SzakertoMesterpedagogusKutatotanar { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakertoMesterpedagogusKutatotanar), ResourceType = typeof(AlkalmazottResource))]
public string SzakertoMesterpedagogusKutatotanar_BNAME { get { return SzakertoMesterpedagogusKutatotanar.GetDisplayName(); } }
public bool VezetoPedagogusVezetoOvodaPedagogus { get; set; }
[Display(Name = nameof(AlkalmazottResource.VezetoPedagogusVezetoOvodaPedagogus), ResourceType = typeof(AlkalmazottResource))]
public string VezetoPedagogusVezetoOvodaPedagogus_BNAME { get { return VezetoPedagogusVezetoOvodaPedagogus.GetDisplayName(); } }
public bool IsNszfhUjSzkt { get { return ClaimData.IsSelectedTanev20_21OrLater && ClaimData.IsSzakkepzoIntezmeny; } }
[Display(Name = nameof(AlkalmazottResource.OktatoiFeladatokatIsEllat), ResourceType = typeof(AlkalmazottResource))]
public string OktatoiFeladatokatIsEllat { get; set; }
public bool IsVisibleOktatoiFeladatokatIsEllat => IsNszfhUjSzkt && Munkakor.HasValue && Core.Constants.NszfhTovabbiMunkakorTipusIdList.Contains(Munkakor.Value);
public int? EgyebTevekenysegekTipusId { get; set; }
[Display(Name = nameof(AlkalmazottResource.Egyebtevekenysegek), ResourceType = typeof(AlkalmazottResource))]
public string EgyebTevekenysegekTipus_NAME { get { return EgyebTevekenysegekTipusId.GetDisplayName<EgyebTevekenysegekTipusEnum>(ClaimData.SelectedTanevID.Value); } }
public bool IsOsztalyfonok { get; set; }
[Display(Name = nameof(AlkalmazottResource.Osztalyfonok), ResourceType = typeof(AlkalmazottResource))]
public string IsOsztalyfonok_BNAME { get { return IsOsztalyfonok.GetDisplayName(); } }
public bool IsDualisKepzohelyiOktato { get; set; }
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyNeve), ResourceType = typeof(AlkalmazottResource))]
public string DualisKepzohelyNeve { get; set; }
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyAdoszama), ResourceType = typeof(AlkalmazottResource))]
public string DualisKepzohelyAdoszama { get; set; }
public bool IsSzakiranyuOktatasertFelelos { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakiranyuOktatasertFelelos), ResourceType = typeof(AlkalmazottResource))]
public string IsSzakiranyuOktatasertFelelos_BNAME { get { return IsSzakiranyuOktatasertFelelos.GetDisplayName(); } }
public bool IsKlebelsberg { get; set; }
public bool IsInternetetOktCelraHasznal { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsInternetetOktCelraHasznal), ResourceType = typeof(AlkalmazottResource))]
public string IsInternetetOktCelraHasznal_BNAME { get { return IsInternetetOktCelraHasznal.GetDisplayName(); } }
public bool IsInformatKepIsmRendelkezik { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsInformatKepIsmRendelkezik), ResourceType = typeof(AlkalmazottResource))]
public string IsInformatKepIsmRendelkezik_BNAME { get { return IsInformatKepIsmRendelkezik.GetDisplayName(); } }
public bool IsIktEszkozoketLgalabb40Hasznal { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsIktEszkozoketLgalabb40Hasznal), ResourceType = typeof(AlkalmazottResource))]
public string IsIktEszkozoketLgalabb40Hasznal_BNAME { get { return IsIktEszkozoketLgalabb40Hasznal.GetDisplayName(); } }
public bool HasEfopEszkoz { get; set; }
[Display(Name = nameof(AlkalmazottResource.HasEfopEszkoz), ResourceType = typeof(AlkalmazottResource))]
public string HasEfopEszkoz_BNAME { get { return HasEfopEszkoz.GetDisplayName(); } }
public bool IsApaczaiMentor { get; set; }
[Display(Name = nameof(AlkalmazottResource.ApaczaiMentor), ResourceType = typeof(AlkalmazottResource))]
public string IsApaczaiMentor_BNAME { get { return IsApaczaiMentor.GetDisplayName(); } }
[Display(Name = nameof(AlkalmazottResource.ApaczaiMentorprogramhozKapcsolodoSZTSZ), ResourceType = typeof(AlkalmazottResource))]
public string SZTSZKod2 { get; set; }
public bool HasBankszamlaInfo { get; set; }
public bool HasNyugdijInfo { get; set; }
[Display(Name = nameof(AlkalmazottResource.HasBankszamlaInfo), ResourceType = typeof(AlkalmazottResource))]
public string HasBankszamlaInfo_BNAME { get { return HasBankszamlaInfo.GetDisplayName(); } }
[Display(Name = nameof(AlkalmazottResource.HasNyugdijInfo), ResourceType = typeof(AlkalmazottResource))]
public string HasNyugdijInfo_BNAME { get { return HasNyugdijInfo.GetDisplayName(); } }
public bool IsApaczaiMentorVisible { get; set; }
public bool IsFromSzervezetOktato { get; set; }
}
public class ElerhetosegCimModel : IKretaIdentity
{
public const string ElerhetosegCimExportAttributeId = nameof(ElerhetosegCimExportAttributeId);
public ElerhetosegCimModel()
{
}
public ElerhetosegCimModel(AlkalmazottElerhetosegCimItemCo co)
{
ID = co.Id;
Orszag_DNAME = co.Orszag_DNAME;
TIPUS_DNAME = co.Tipus_DNAME;
IRANYITOSZAM = co.Iranyitoszam;
VAROS = co.Varos;
Cim = co.Cim;
KOZTERULET = co.Kozterulet;
KozteruletJellegeNev = co.KozteruletJellegeNev;
HAZSZAM = co.Hazszam;
EMELET = co.Emelet;
AJTO = co.Ajto;
Alapertelmezett_BOOL = co.Alapertelmezett_BOOL;
Alapertelmezett_BNAME = co.Alapertelmezett_BNAME;
}
public string ID { get; set; }
[SimpleExportColumn(ElerhetosegCimExportAttributeId, 01, nameof(TanuloResource.Orszag), typeof(TanuloResource))]
[Display(Name = nameof(TanuloResource.Orszag), ResourceType = typeof(TanuloResource))]
public string Orszag_DNAME { get; set; }
[SimpleExportColumn(ElerhetosegCimExportAttributeId, 00, nameof(AlkalmazottResource.Tipus), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tipus), ResourceType = typeof(AlkalmazottResource))]
public string TIPUS_DNAME { get; set; }
[SimpleExportColumn(ElerhetosegCimExportAttributeId, 02, nameof(AlkalmazottResource.Iranyitoszam), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Iranyitoszam), ResourceType = typeof(AlkalmazottResource))]
public string IRANYITOSZAM { get; set; }
[SimpleExportColumn(ElerhetosegCimExportAttributeId, 03, nameof(AlkalmazottResource.Helyseg), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Helyseg), ResourceType = typeof(AlkalmazottResource))]
public string VAROS { get; set; }
[SimpleExportColumn(ElerhetosegCimExportAttributeId, 04, nameof(AlkalmazottResource.Cim), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Cim), ResourceType = typeof(AlkalmazottResource))]
public string Cim { get; set; }
public string KOZTERULET { get; set; }
[Display(Name = nameof(TanuloResource.KozteruletJellege), ResourceType = typeof(TanuloResource))]
public string KozteruletJellegeNev { get; set; }
public string HAZSZAM { get; set; }
public string EMELET { get; set; }
public string AJTO { get; set; }
public bool Alapertelmezett_BOOL { get; set; }
[SimpleExportColumn(ElerhetosegCimExportAttributeId, 05, nameof(AlkalmazottResource.Alapertelmezett), typeof(AlkalmazottResource))]
public string Alapertelmezett_BNAME { get; set; }
}
public class ElerhetosegEmailModel : IKretaIdentity
{
public const string ElerhetosegEmailExportAttributeId = nameof(ElerhetosegEmailExportAttributeId);
public ElerhetosegEmailModel()
{
}
public ElerhetosegEmailModel(AlkalmazottElerhetosegEmailItemCo co)
{
ID = co.Id;
TYPE_DNAME = co.Type_DNAME;
Email = co.Email;
ALAPERTELMEZETT_BOOL = co.Alapertelmezett_BOOL;
IsPublic_BOOL = co.IsPublic_BOOL;
IsHibasanMegadva_BOOL = co.IsHibasanMegadva_BOOL;
Alapertelmezett_BNAME = co.Alapertelmezett_BNAME;
}
public string ID { get; set; }
[SimpleExportColumn(ElerhetosegEmailExportAttributeId, 00, nameof(AlkalmazottResource.Tipus), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tipus), ResourceType = typeof(AlkalmazottResource))]
public string TYPE_DNAME { get; set; }
[SimpleExportColumn(ElerhetosegEmailExportAttributeId, 01, nameof(AlkalmazottResource.EmailCim), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.EmailCim), ResourceType = typeof(AlkalmazottResource))]
public string Email { get; set; }
[Display(Name = nameof(AlkalmazottResource.Alapertelmezett), ResourceType = typeof(AlkalmazottResource))]
public bool ALAPERTELMEZETT_BOOL { get; set; }
[Display(Name = nameof(AlkalmazottResource.Publikus), ResourceType = typeof(AlkalmazottResource))]
public bool IsPublic_BOOL { get; set; }
public bool IsHibasanMegadva_BOOL { get; set; }
[SimpleExportColumn(ElerhetosegEmailExportAttributeId, 02, nameof(AlkalmazottResource.Alapertelmezett), typeof(AlkalmazottResource))]
public string Alapertelmezett_BNAME { get; set; }
}
public class ElerhetosegTelefonModel : IKretaIdentity
{
public const string ElerhetosegTelefonExportAttributeId = nameof(ElerhetosegTelefonExportAttributeId);
public ElerhetosegTelefonModel()
{
}
public ElerhetosegTelefonModel(AlkalmazottElerhetosegTelefonItemCo co)
{
ID = co.Id;
TYPE_DNAME = co.Type_DNAME;
Phone = co.Phone;
ALAPERTELMEZETT_BOOL = co.Alapertelmezett_BOOL;
IsPublic_BOOL = co.IsPublic_BOOL;
Alapertelmezett_BNAME = co.Alapertelmezett_BNAME;
}
public string ID { get; set; }
[SimpleExportColumn(ElerhetosegTelefonExportAttributeId, 00, nameof(AlkalmazottResource.Tipus), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tipus), ResourceType = typeof(AlkalmazottResource))]
public string TYPE_DNAME { get; set; }
[SimpleExportColumn(ElerhetosegTelefonExportAttributeId, 01, nameof(AlkalmazottResource.Telefonszam), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Telefonszam), ResourceType = typeof(AlkalmazottResource))]
public string Phone { get; set; }
[Display(Name = nameof(AlkalmazottResource.Alapertelmezett), ResourceType = typeof(AlkalmazottResource))]
public bool ALAPERTELMEZETT_BOOL { get; set; }
[Display(Name = nameof(AlkalmazottResource.Publikus), ResourceType = typeof(AlkalmazottResource))]
public bool IsPublic_BOOL { get; set; }
[SimpleExportColumn(ElerhetosegTelefonExportAttributeId, 02, nameof(AlkalmazottResource.Alapertelmezett), typeof(AlkalmazottResource))]
public string Alapertelmezett_BNAME { get; set; }
}
public class FoglalkozasModel : IKretaIdentity
{
public const string FoglalkozasExportAttributeId = nameof(FoglalkozasExportAttributeId);
public FoglalkozasModel()
{
}
public FoglalkozasModel(AlkalmazottFoglalkozasItemCo co)
{
ID = co.Id;
Tantargy = co.Tantargy;
OsztalyCsoport = co.OsztalyCsoport;
HetiOraszam = co.HetiOraszam;
Foglalkozas_DNAME = co.Foglalkozas_DNAME;
}
public string ID { get; set; }
[SimpleExportColumn(FoglalkozasExportAttributeId, 00, nameof(AlkalmazottResource.Tantargy), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tantargy), ResourceType = typeof(AlkalmazottResource))]
public string Tantargy { get; set; }
[SimpleExportColumn(FoglalkozasExportAttributeId, 01, nameof(AlkalmazottResource.OsztalyCsoport), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.OsztalyCsoport), ResourceType = typeof(AlkalmazottResource))]
public string OsztalyCsoport { get; set; }
[SimpleExportColumn(FoglalkozasExportAttributeId, 02, nameof(AlkalmazottResource.HetiOraszam), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.HetiOraszam), ResourceType = typeof(AlkalmazottResource))]
public int HetiOraszam { get; set; }
[SimpleExportColumn(FoglalkozasExportAttributeId, 03, nameof(AlkalmazottResource.FoglalkozasTipusa), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.FoglalkozasTipusa), ResourceType = typeof(AlkalmazottResource))]
public string Foglalkozas_DNAME { get; set; }
}
public class OrarendiOraModel : IKretaIdentity
{
public const string OrarendiOraExportAttributeId = nameof(OrarendiOraExportAttributeId);
public OrarendiOraModel()
{
}
public OrarendiOraModel(AlkalmazottOrarendiOrakItemCo co)
{
ID = co.Id;
Hetirend_DNAME = co.Hetirend_DNAME;
HetNapja_DNAME = co.HetNapja_DNAME;
Ora = co.Ora;
OsztalyCsoport = co.OsztalyCsoport;
Tantargy = co.Tantargy;
Helyiseg = co.Helyiseg;
ErvenyessegKezdete = co.ErvenyessegKezdete;
ErvenyessegVege = co.ErvenyessegVege;
}
public string ID { get; set; }
[SimpleExportColumn(OrarendiOraExportAttributeId, 00, nameof(AlkalmazottResource.OrarendiNapHetirendje), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.OrarendiNapHetirendje), ResourceType = typeof(AlkalmazottResource))]
public string Hetirend_DNAME { get; set; }
[SimpleExportColumn(OrarendiOraExportAttributeId, 01, nameof(AlkalmazottResource.Nap), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Nap), ResourceType = typeof(AlkalmazottResource))]
public string HetNapja_DNAME { get; set; }
[SimpleExportColumn(OrarendiOraExportAttributeId, 02, nameof(AlkalmazottResource.Ora), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Ora), ResourceType = typeof(AlkalmazottResource))]
public int Ora { get; set; }
[SimpleExportColumn(OrarendiOraExportAttributeId, 03, nameof(AlkalmazottResource.OsztalyPerCsoport), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.OsztalyPerCsoport), ResourceType = typeof(AlkalmazottResource))]
public string OsztalyCsoport { get; set; }
[SimpleExportColumn(OrarendiOraExportAttributeId, 04, nameof(AlkalmazottResource.Tantargy), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tantargy), ResourceType = typeof(AlkalmazottResource))]
public string Tantargy { get; set; }
[SimpleExportColumn(OrarendiOraExportAttributeId, 05, nameof(AlkalmazottResource.Helyiseg), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Helyiseg), ResourceType = typeof(AlkalmazottResource))]
public string Helyiseg { get; set; }
[SimpleExportColumn(OrarendiOraExportAttributeId, 06, nameof(AlkalmazottResource.ErvenyessegKezdete), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.ErvenyessegKezdete), ResourceType = typeof(AlkalmazottResource))]
public DateTime? ErvenyessegKezdete { get; set; }
[SimpleExportColumn(OrarendiOraExportAttributeId, 07, nameof(AlkalmazottResource.ErvenyessegVege), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.ErvenyessegVege), ResourceType = typeof(AlkalmazottResource))]
public DateTime? ErvenyessegVege { get; set; }
}
public class TanmenetModel : IKretaIdentity
{
public const string TanmenetExportAttributeId = nameof(TanmenetExportAttributeId);
public TanmenetModel()
{
}
public TanmenetModel(AlkalmazottTanmenetItemCo co)
{
ID = co.Id;
OsztalyCsoport = co.OsztalyCsoport;
Tantargy = co.Tantargy;
Oraszam = co.Oraszam;
Tema = co.Tema;
}
[Display(Name = nameof(AlkalmazottResource.Sorsz), ResourceType = typeof(AlkalmazottResource))]
public string ID { get; set; }
[SimpleExportColumn(TanmenetExportAttributeId, 01, nameof(AlkalmazottResource.OsztalyCsoport), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.OsztalyCsoport), ResourceType = typeof(AlkalmazottResource))]
public string OsztalyCsoport { get; set; }
[SimpleExportColumn(TanmenetExportAttributeId, 02, nameof(AlkalmazottResource.Tantargy), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tantargy), ResourceType = typeof(AlkalmazottResource))]
public string Tantargy { get; set; }
[SimpleExportColumn(TanmenetExportAttributeId, 00, nameof(AlkalmazottResource.OraSzama), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.OraSzama), ResourceType = typeof(AlkalmazottResource))]
public string Oraszam { get; set; }
[SimpleExportColumn(TanmenetExportAttributeId, 03, nameof(AlkalmazottResource.Tema), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tema), ResourceType = typeof(AlkalmazottResource))]
public string Tema { get; set; }
}
public class MegtartottTanoraModel : IKretaIdentity
{
public const string MegtartottTanoraExportAttributeId = nameof(MegtartottTanoraExportAttributeId);
public MegtartottTanoraModel()
{
}
public MegtartottTanoraModel(AlkalmazottMegtartottTanoraItemCo co)
{
ID = co.Id;
OsztalyCsoport = co.OsztalyCsoport;
Tantargy = co.Tantargy;
Tema = co.Tema;
Helyett_BNAME = co.Helyett_BNAME;
Datum = co.Datum;
Oraszam = co.Oraszam;
}
public string ID { get; set; }
[SimpleExportColumn(MegtartottTanoraExportAttributeId, 00, nameof(AlkalmazottResource.OsztalyCsoport), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.OsztalyCsoport), ResourceType = typeof(AlkalmazottResource))]
public string OsztalyCsoport { get; set; }
[SimpleExportColumn(MegtartottTanoraExportAttributeId, 01, nameof(AlkalmazottResource.Tantargy), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tantargy), ResourceType = typeof(AlkalmazottResource))]
public string Tantargy { get; set; }
[SimpleExportColumn(MegtartottTanoraExportAttributeId, 02, nameof(AlkalmazottResource.Tema), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tema), ResourceType = typeof(AlkalmazottResource))]
public string Tema { get; set; }
[SimpleExportColumn(MegtartottTanoraExportAttributeId, 03, nameof(AlkalmazottResource.Helyett), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Helyett), ResourceType = typeof(AlkalmazottResource))]
public string Helyett_BNAME { get; set; }
[SimpleExportColumn(MegtartottTanoraExportAttributeId, 04, nameof(AlkalmazottResource.Datum), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Datum), ResourceType = typeof(AlkalmazottResource))]
public DateTime? Datum { get; set; }
[SimpleExportColumn(MegtartottTanoraExportAttributeId, 05, nameof(AlkalmazottResource.Oraszam), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Oraszam), ResourceType = typeof(AlkalmazottResource))]
public int Oraszam { get; set; }
}
public class ErtekelesModel : IKretaIdentity
{
public const string ErtekelesExportAttributeId = nameof(ErtekelesExportAttributeId);
public ErtekelesModel()
{
}
public ErtekelesModel(AlkalmazottErtekelesItemCo co)
{
ID = co.Id;
Tantargy = co.Tantargy;
Tanulo = co.Tanulo;
Datum = co.Datum;
Tema = co.Tema;
Osztalyzat_DNAME = co.Osztalyzat_DNAME;
ErtekelesSzoveg = co.ErtekelesSzoveg;
Tipus_DNAME = co.Tipus_DNAME;
OsztalyCsoport = co.OsztalyCsoport;
}
public string ID { get; set; }
[SimpleExportColumn(ErtekelesExportAttributeId, 00, nameof(AlkalmazottResource.Tantargy), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tantargy), ResourceType = typeof(AlkalmazottResource))]
public string Tantargy { get; set; }
[SimpleExportColumn(ErtekelesExportAttributeId, 01, nameof(AlkalmazottResource.Tanulo), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tanulo), ResourceType = typeof(AlkalmazottResource))]
public string Tanulo { get; set; }
[SimpleExportColumn(ErtekelesExportAttributeId, 02, nameof(AlkalmazottResource.Datum), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Datum), ResourceType = typeof(AlkalmazottResource))]
public DateTime? Datum { get; set; }
[SimpleExportColumn(ErtekelesExportAttributeId, 03, nameof(AlkalmazottResource.Tema), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tema), ResourceType = typeof(AlkalmazottResource))]
public string Tema { get; set; }
[SimpleExportColumn(ErtekelesExportAttributeId, 04, nameof(AlkalmazottResource.Osztalyzat), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Osztalyzat), ResourceType = typeof(AlkalmazottResource))]
public string Osztalyzat_DNAME { get; set; }
[SimpleExportColumn(ErtekelesExportAttributeId, 05, nameof(AlkalmazottResource.SzovegesErtekeles), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.SzovegesErtekeles), ResourceType = typeof(AlkalmazottResource))]
public string ErtekelesSzoveg { get; set; }
[SimpleExportColumn(ErtekelesExportAttributeId, 06, nameof(AlkalmazottResource.Tipus), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tipus), ResourceType = typeof(AlkalmazottResource))]
public string Tipus_DNAME { get; set; }
[SimpleExportColumn(ErtekelesExportAttributeId, 07, nameof(AlkalmazottResource.OsztalyCsoport), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.OsztalyCsoport), ResourceType = typeof(AlkalmazottResource))]
public string OsztalyCsoport { get; set; }
}
public class PedagogusEletpalyamodellModel : IKretaIdentity
{
public const string PedagogusEletpalyamodellExportAttributeId = nameof(PedagogusEletpalyamodellExportAttributeId);
public PedagogusEletpalyamodellModel() { }
public PedagogusEletpalyamodellModel(AlkalmazottPedagogusEletpalyamodellItemCo itemCo)
{
ID = itemCo.Id.ToString();
Fokozat_DNAME = itemCo.Fokozat_DNAME;
Statusz_DNAME = itemCo.Statusz_DNAME;
Datum = itemCo.Datum;
}
public string ID { get; set; }
[SimpleExportColumn(PedagogusEletpalyamodellExportAttributeId, 00, nameof(AlkalmazottResource.Fokozat), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Fokozat), ResourceType = typeof(AlkalmazottResource))]
public string Fokozat_DNAME { get; set; }
[SimpleExportColumn(PedagogusEletpalyamodellExportAttributeId, 01, nameof(AlkalmazottResource.Statusz), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Statusz), ResourceType = typeof(AlkalmazottResource))]
public string Statusz_DNAME { get; set; }
[SimpleExportColumn(PedagogusEletpalyamodellExportAttributeId, 02, nameof(AlkalmazottResource.MinositesDatuma), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.MinositesDatuma), ResourceType = typeof(AlkalmazottResource))]
public DateTime? Datum { get; set; }
}
public class VegzettsegModel : IKretaIdentity
{
public const string VegzettsegExportAttributeId = nameof(VegzettsegExportAttributeId);
public VegzettsegModel() { }
public VegzettsegModel(VegzettsegItemCo itemCo)
{
ID = itemCo.Id.ToString();
Vegzettseg_DNAME = itemCo.Vegzettseg_DNAME;
Kepesites = itemCo.Kepesites;
Egyeb = itemCo.Egyeb;
}
public string ID { get; set; }
[SimpleExportColumn(VegzettsegExportAttributeId, 00, nameof(AlkalmazottResource.Vegzettseg), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Vegzettseg), ResourceType = typeof(AlkalmazottResource))]
public string Vegzettseg_DNAME { get; set; }
[SimpleExportColumn(VegzettsegExportAttributeId, 01, nameof(AlkalmazottResource.SzakMegnevezese), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.SzakMegnevezese), ResourceType = typeof(AlkalmazottResource))]
public string Kepesites { get; set; }
[SimpleExportColumn(VegzettsegExportAttributeId, 02, nameof(AlkalmazottResource.Egyeb), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Egyeb), ResourceType = typeof(AlkalmazottResource))]
public string Egyeb { get; set; }
}
public class KKVegzettsegDetailModel : IKretaIdentity
{
public string ID { get; set; }
public int EntityID { get; set; }
[Display(Name = nameof(AlkalmazottResource.Terulet), ResourceType = typeof(AlkalmazottResource))]
public string Terulet { get; set; }
}
public class KKVegzettsegMainModel : IKretaIdentity
{
public string ID { get; set; }
public int? EntityID { get; set; }
public int? KepesitesTipusId { get; set; }
public int AlkalmazottId { get; set; }
[Display(Name = nameof(AlkalmazottResource.Kepesites), ResourceType = typeof(AlkalmazottResource))]
public string Kepesites { get; set; }
[Display(Name = nameof(AlkalmazottResource.KepesitesTipus), ResourceType = typeof(AlkalmazottResource))]
public string KepesitesTipus { get; set; }
[Display(Name = nameof(AlkalmazottResource.Vegzettseg), ResourceType = typeof(AlkalmazottResource))]
public string Vegzettseg { get; set; }
[Display(Name = nameof(AlkalmazottResource.MuveszetiAg), ResourceType = typeof(AlkalmazottResource))]
public string MuveszetiAg { get; set; }
[Display(Name = nameof(AlkalmazottResource.Egyeb), ResourceType = typeof(AlkalmazottResource))]
public string Egyeb { get; set; }
}
public class TovabbiMunkaugyiAdatokGridModel : IKretaIdentity
{
public string ID { get; set; }
[Display(Name = nameof(AlkalmazottResource.Munkakor), ResourceType = typeof(AlkalmazottResource))]
public string MunkaKor_DNAME { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
public string PedagogusFokozat_DNAME { get; set; }
[KretaDisplayName(87)]
public double? KotelezoOraszam { get; set; }
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public string MunkaidoKedvezmenyOka_DNAME { get; set; }
}
public class EszkozModel : IKretaIdentity
{
public const string EszkozExportAttributeId = nameof(EszkozExportAttributeId);
public EszkozModel() { }
public EszkozModel(AlkalmazottEszkozItemCo itemCo)
{
ID = itemCo.Id.ToString();
Nev = itemCo.Nev;
Darab = itemCo.Darab;
Tipus_DNAME = itemCo.Tipus_DNAME;
}
public string ID { get; set; }
[SimpleExportColumn(EszkozExportAttributeId, 00, nameof(AlkalmazottResource.EszkozNeve), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.EszkozNeve), ResourceType = typeof(AlkalmazottResource))]
public string Nev { get; set; }
[SimpleExportColumn(EszkozExportAttributeId, 01, nameof(AlkalmazottResource.Darab), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Darab), ResourceType = typeof(AlkalmazottResource))]
public string Darab { get; set; }
[SimpleExportColumn(EszkozExportAttributeId, 02, nameof(AlkalmazottResource.Tipus), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tipus), ResourceType = typeof(AlkalmazottResource))]
public string Tipus_DNAME { get; set; }
}
public class TovabbkepzesModel : IKretaIdentity
{
public const string TovabbkepzesExportAttributeId = nameof(TovabbkepzesExportAttributeId);
public TovabbkepzesModel() { }
public TovabbkepzesModel(TovabbkepzesCo itemCo)
{
ID = itemCo.ID.ToString();
TovabbkepzesMegnevezese = itemCo.TovabbkepzesMegnevezese;
TanusitvanySorszama = itemCo.TanusitvanySorszama;
Oraszam = itemCo.Oraszam;
Helyszin = itemCo.Helyszin;
EngedelySzama = itemCo.EngedelySzama;
Datum = itemCo.Datum;
}
public string ID { get; set; }
[SimpleExportColumn(TovabbkepzesExportAttributeId, 00, nameof(AlkalmazottResource.TovabbkepzesMegnevezese), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.TovabbkepzesMegnevezese), ResourceType = typeof(AlkalmazottResource))]
public string TovabbkepzesMegnevezese { get; set; }
[SimpleExportColumn(TovabbkepzesExportAttributeId, 05, nameof(AlkalmazottResource.TanusitvanySorszama), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.TanusitvanySorszama), ResourceType = typeof(AlkalmazottResource))]
public string TanusitvanySorszama { get; set; }
[SimpleExportColumn(TovabbkepzesExportAttributeId, 04, nameof(AlkalmazottResource.Oraszam), typeof(AlkalmazottResource))]
[Display(Name = nameof(CommonResource.Oraszam), ResourceType = typeof(CommonResource))]
public int? Oraszam { get; set; }
[SimpleExportColumn(TovabbkepzesExportAttributeId, 02, nameof(AlkalmazottResource.Helyszin), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Helyszin), ResourceType = typeof(AlkalmazottResource))]
public string Helyszin { get; set; }
[SimpleExportColumn(TovabbkepzesExportAttributeId, 01, nameof(AlkalmazottResource.EngedelySzama), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.EngedelySzama), ResourceType = typeof(AlkalmazottResource))]
public string EngedelySzama { get; set; }
[SimpleExportColumn(TovabbkepzesExportAttributeId, 03, nameof(AlkalmazottResource.Datum), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Datum), ResourceType = typeof(AlkalmazottResource))]
public DateTime? Datum { get; set; }
}
}
}

View file

@ -0,0 +1,160 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kreta.BusinessLogic.Classes;
using Kreta.Resources;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class AlkalmazottModModel
{
public AlkalmazottModModel()
{
PedagogusStatuszaList = new List<SelectListItem>();
NemList = new List<SelectListItem>();
}
public int? AlkalmazottId { get; set; }
public string AlkalmazottArray { get; set; }
public bool IsKozpontilagSzinkronizalt { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusStatus), ResourceType = typeof(AlkalmazottResource))]
public int? PedagogusStatusza { get; set; }
public List<SelectListItem> PedagogusStatuszaList;
[Display(Name = nameof(AlkalmazottResource.PedagogusHetiOraszama), ResourceType = typeof(AlkalmazottResource))]
public string PedagogusHetiOraszama { get; set; }
[Display(Name = nameof(CommonResource.Nem), ResourceType = typeof(CommonResource))]
public int? ModifyNem { get; set; }
[Display(Name = nameof(CommonResource.Tanev), ResourceType = typeof(CommonResource))]
public int? TanevID { get; set; }
public List<SelectListItem> NemList { get; set; }
[Display(Name = nameof(CommonResource.Nev), ResourceType = typeof(CommonResource))]
public string AlkalmazottNev { get; set; }
[Display(Name = nameof(AlkalmazottResource.KivalasztottAlkalmazottak), ResourceType = typeof(AlkalmazottResource))]
public string AlkalmazottNevArray { get; set; }
[Display(Name = nameof(AlkalmazottResource.VezetoiOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public int? VezetoiOraszamOka { get; set; }
[Range(0, 1000, ErrorMessageResourceName = nameof(ErrorResource.OraszamNemLehetNegativ), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(CommonResource.Oraszama), ResourceType = typeof(CommonResource))]
public double? Oraszam { get; set; }
[Range(0, 1000, ErrorMessageResourceName = nameof(ErrorResource.KotelezoOraszamNemLehetNegativ), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszam), ResourceType = typeof(AlkalmazottResource))]
public double? MunkaidoKedvezmenyOraszam { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
public int? PedagogusFokozat { get; set; }
[Display(Name = nameof(AlkalmazottResource.Munkakor), ResourceType = typeof(AlkalmazottResource))]
public int? MunkaKor { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasiJogviszony { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasKezdete), ResourceType = typeof(AlkalmazottResource))]
[DateRange(ErrorMessageResourceName = nameof(ErrorResource.AlkalmazasKezdetenekDatumaNemErvenyes), ErrorMessageResourceType = typeof(ErrorResource))]
public DateTime? AlkalmazasKezdete { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasVege), ResourceType = typeof(AlkalmazottResource))]
[DateRange(ErrorMessageResourceName = nameof(ErrorResource.AlkalmazasVegenekDatumaNemErvenyes), ErrorMessageResourceType = typeof(ErrorResource))]
public DateTime? AlkalmazasVege { get; set; }
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
public int? FeladatellatasiHely { get; set; }
[Display(Name = nameof(AlkalmazottResource.Foallasu), ResourceType = typeof(AlkalmazottResource))]
public int? Foallasu { get; set; }
[Display(Name = nameof(AlkalmazottResource.TartosanTavollevo), ResourceType = typeof(AlkalmazottResource))]
public int? TartosHelyettesites { get; set; }
[Display(Name = nameof(AlkalmazottResource.NyugdijasTovabbfoglalkoztatott), ResourceType = typeof(AlkalmazottResource))]
public int? Nyugdijas { get; set; }
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public int? MunkaidoKedvezmenyOka { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasTipusa), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasTipusa { get; set; }
[Display(Name = nameof(AlkalmazottResource.ReszmunkaidoSzazalek), ResourceType = typeof(AlkalmazottResource))]
public double? ReszmunkaidosSzazalek { get; set; }
[Display(Name = nameof(AlkalmazottResource.MunkaidoAdatokModositasa), ResourceType = typeof(AlkalmazottResource))]
public bool NeedUpdateMunkaidoAdatai { get; set; }
[Display(Name = nameof(AlkalmazottResource.Szakvizsga), ResourceType = typeof(AlkalmazottResource))]
public int? Szakvizsga { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakertoiVagyVizsgaelnokiTevekenysegu), ResourceType = typeof(AlkalmazottResource))]
public int? SzakertoiVagyVizsgaelnokiTevekenysegu { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakmaiTovabbkepzes), ResourceType = typeof(AlkalmazottResource))]
public int? SzakmaiTovabbkepzes { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakertoMesterpedagogusKutatotanar), ResourceType = typeof(AlkalmazottResource))]
public int? SzakertoMesterpedagogusKutatotanar { get; set; }
/*[Display(Name = nameof(AlkalmazottResource.SzabadAllashely), ResourceType = typeof(AlkalmazottResource))]
public int? SzabadAllashely { get; set; }*/
[Display(Name = nameof(AlkalmazottResource.Attanito), ResourceType = typeof(AlkalmazottResource))]
public int? Attanito { get; set; }
[Display(Name = nameof(AlkalmazottResource.AttanitoMasIntezmeny), ResourceType = typeof(AlkalmazottResource))]
public int? AttanitoMasIntezmeny { get; set; }
[Display(Name = nameof(AlkalmazottResource.AttanitoSZCnbelul), ResourceType = typeof(AlkalmazottResource))]
public int? IsAttanitoSzCnBelul { get; set; }
[Display(Name = nameof(AlkalmazottResource.AllandoHelyettesitesre), ResourceType = typeof(AlkalmazottResource))]
public int? AllandoHelyettesitesre { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsKuldhetoPedMinositesSzRnek), ResourceType = typeof(AlkalmazottResource))]
public int? IsKuldhetoPedMinositesSzRnek { get; set; }
[Display(Name = nameof(AlkalmazottResource.OktatoiFeladatokatIsEllat), ResourceType = typeof(AlkalmazottResource))]
public int? OktatoiFeladatokatIsEllat { get; set; }
public List<SelectListItem> IgenNemList { get; set; }
[Display(Name = nameof(AlkalmazottResource.Osztalyfonok), ResourceType = typeof(AlkalmazottResource))]
public int? IsOsztalyfonok { get; set; }
public bool IsNszfhUjSzkt { get { return ClaimData.IsSelectedTanev20_21OrLater && ClaimData.IsSzakkepzoIntezmeny; } }
[Display(Name = nameof(AlkalmazottResource.VezetoPedagogusVezetoOvodaPedagogus), ResourceType = typeof(AlkalmazottResource))]
public int? VezetoPedagogusVezetoOvodaPedagogus { get; set; }
public bool IsKlebelsberg { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsInternetetOktCelraHasznal), ResourceType = typeof(AlkalmazottResource))]
public int? IsInternetetOktCelraHasznal { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsInformatKepIsmRendelkezik), ResourceType = typeof(AlkalmazottResource))]
public int? IsInformatKepIsmRendelkezik { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsIktEszkozoketLgalabb40Hasznal), ResourceType = typeof(AlkalmazottResource))]
public int? IsIktEszkozoketLgalabb40Hasznal { get; set; }
[Display(Name = nameof(AlkalmazottResource.HasEfopEszkoz), ResourceType = typeof(AlkalmazottResource))]
public int? HasEfopEszkoz { get; set; }
public bool IsFromSzervezet { get; set; }
// NOTE: Itt azért nem a nameof(SzervezetResource.Szervezet)-ből jön a szöveg, mert ez a property fixen mindig ezzel a label-el kell, hogy megjelenjen, függetlenül a nyelviesítéstől!
[Display(Name = nameof(DualisResource.DualisKepzohelyNeveEsAdoszama), ResourceType = typeof(DualisResource))]
public int? OktatoSzervezetId { get; set; }
}
}

View file

@ -0,0 +1,543 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kreta.BusinessLogic.Classes;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Core.CustomAttributes;
using Kreta.Resources;
using Kreta.Web.Models;
using Kreta.Web.Models.EditorTemplates;
using Kreta.Web.Security;
using static Kreta.Core.Constants;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class AlkalmazottModel : TabStripModel
{
public int? AlkalmazottId { get; set; }
public bool IsKozpontilagSzinkronizalt { get; set; }
[ValidateObject]
public AlapAdatModel AlapAdatModel { get; set; }
[ValidateObject]
public CimElerhetosegModel CimElerhetosegModel { get; set; }
[ValidateObject]
public JogosultsagModel JogosultsagModel { get; set; }
[ValidateObject]
public MunkaugyAdatModel MunkaugyAdatModel { get; set; }
public int? FollowUpolniId { get; set; }
public bool IsFromSzervezet { get; set; }
}
public class AlapAdatModel
{
public AlapAdatModel()
{
NemList = new List<SelectListItem>();
}
[KretaRegularExpression(RegularExpressions.OktatasiAzonosito, ErrorMessageResourceName = nameof(ErrorResource.OktatasiAzonositoFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.OktatasiAzonosito), ResourceType = typeof(AlkalmazottResource))]
public string OktatasiAzonosito { get; set; }
[Display(Name = nameof(AlkalmazottResource.NemRendelkezikOktatasiAzonositoval), ResourceType = typeof(TanuloResource))]
public bool IsOktatasiAzonositoNelkul { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.NemeKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Neme), ResourceType = typeof(AlkalmazottResource))]
public int Nem { get; set; }
public List<SelectListItem> NemList { get; set; }
[StringLength(20, ErrorMessageResourceName = nameof(AlkalmazottResource.ANevElotagMaximumKarakterLehet), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Elotag), ResourceType = typeof(AlkalmazottResource))]
public string NevEloTag { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.CsaladiNevKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[StringLength(255, ErrorMessageResourceName = nameof(AlkalmazottResource.CsaladiNevMaxKarakter), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.AlkalmazottCsaladiNev), ResourceType = typeof(AlkalmazottResource))]
public string MunkavallaloCsaladiNev { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.UtonevKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[StringLength(255, ErrorMessageResourceName = nameof(AlkalmazottResource.UtonevMaxKarakter), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.AlkalmazottUtonev), ResourceType = typeof(AlkalmazottResource))]
public string MunkavallaloUtonev { get; set; }
[StringLength(maximumLength: 20, ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiElotagMaximumKarakterLehet), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.SzuletesiElotag), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiNevElotag { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiCsaladiNevMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[StringLength(255, ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiCsaladiNevMaxKarakter), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.SzuletesiCsaladiNev), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiCsaladiNev { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiUtonevMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[StringLength(255, ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiUtonevMaxKarakter), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.SzuletesiUtonev), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiUtonev { get; set; }
[StringLength(maximumLength: 20, ErrorMessageResourceName = nameof(AlkalmazottResource.AnyjaElotagMaximumKarakterLehet), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.AnyjaElotag), ResourceType = typeof(AlkalmazottResource))]
public string AnyjaNeveElotag { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.AnyjaCsaladiNevenekKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[StringLength(255, ErrorMessageResourceName = nameof(AlkalmazottResource.AnyjaCsaladiNeveMaxKarakter), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.AnyjaCsaladiNeve), ResourceType = typeof(AlkalmazottResource))]
public string AnyjaCsaladiNeve { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.AnyjaUtonevenekKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[StringLength(255, ErrorMessageResourceName = nameof(AlkalmazottResource.AnyjaUtoneveNeveMaxKarakter), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.AnyjaUtoneve), ResourceType = typeof(AlkalmazottResource))]
public string AnyjaUtoneve { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiHelyKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[StringLength(50, ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiHelyMaxKarakter), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.SzuletesiHely), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiHely { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiOrszag), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiOrszagMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public int? SzuletesiOrszag { get; set; }
[Required(ErrorMessageResourceName = nameof(ErrorResource.AllampolgarsagMegadasaKotelezoAlkalmazott), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.Allampolgarsag), ResourceType = typeof(AlkalmazottResource))]
public int? Allampolgarsag { get; set; }
[Display(Name = nameof(AlkalmazottResource.Allampolgarsag2), ResourceType = typeof(AlkalmazottResource))]
public int? Allampolgarsag2 { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiIdoKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.SzuletesiIdo), ResourceType = typeof(AlkalmazottResource))]
[DateRange(ErrorMessageResourceName = nameof(ErrorResource.SzuletesiIdoDatumaNemErvenyes), ErrorMessageResourceType = typeof(ErrorResource))]
public DateTime? SzuletesiIdo { get; set; }
[Display(Name = nameof(AlkalmazottResource.IgazolvanyTipus), ResourceType = typeof(AlkalmazottResource))]
public int? IgazolvanyTipus { get; set; }
[StringLength(maximumLength: 50, ErrorMessageResourceName = nameof(ErrorResource.IgazolványszámMax50KarakterSzemelyesAdatok), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.IgazolvanySzama), ResourceType = typeof(AlkalmazottResource))]
public string IgazolvanySzam { get; set; }
[RegularExpression(RegularExpressions.AdoazonositoJel, ErrorMessageResourceName = nameof(AlkalmazottResource.AdoazonositoJelFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.AdoazonositoJel), ResourceType = typeof(AlkalmazottResource))]
public string AdoazonositoJel { get; set; }
[StringLength(500, ErrorMessageResourceName = nameof(ErrorResource.AMegjegyzesSzovegeNemLehet500KarakternelHosszabb), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.Megjegyzes), ResourceType = typeof(AlkalmazottResource))]
public string Megjegyzes { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsKuldhetoPedMinositesSzRnek), ResourceType = typeof(AlkalmazottResource))]
public bool IsKuldhetoPedMinositesSzRnek { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.AnyanyelveKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Anyanyelve), ResourceType = typeof(AlkalmazottResource))]
public int? Anyanyelve { get; set; }
[StringLength(9, ErrorMessageResourceName = nameof(ErrorResource.TajSzamMax9Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(FelhasznalokResource.TAJszam), ResourceType = typeof(FelhasznalokResource))]
public string TajSzam { get; set; }
}
public class ElerhetosegCimModel : IKretaIdentity
{
public string ID { get; set; }
[Display(Name = nameof(TanuloResource.Orszag), ResourceType = typeof(TanuloResource))]
public string Orszag_DNAME { get; set; }
[Display(Name = nameof(TanuloResource.Tipus), ResourceType = typeof(TanuloResource))]
public string CimTipus_DNAME { get; set; }
[Display(Name = nameof(TanuloResource.Iranyitoszam), ResourceType = typeof(TanuloResource))]
public string Irsz { get; set; }
[Display(Name = nameof(TanuloResource.Helyseg), ResourceType = typeof(TanuloResource))]
public string Varos { get; set; }
[Display(Name = nameof(TanuloResource.Cim), ResourceType = typeof(TanuloResource))]
public string Cim { get; set; }
[Display(Name = nameof(TanuloResource.Kozterulet), ResourceType = typeof(TanuloResource))]
public string Kozterulet { get; set; }
[Display(Name = nameof(TanuloResource.KozteruletJellege), ResourceType = typeof(TanuloResource))]
public string KozteruletJellegeNev { get; set; }
[Display(Name = nameof(TanuloResource.Hazszam), ResourceType = typeof(TanuloResource))]
public string HazSzam { get; set; }
[Display(Name = nameof(TanuloResource.Emelet), ResourceType = typeof(TanuloResource))]
public string Emelet { get; set; }
[Display(Name = nameof(TanuloResource.Ajto), ResourceType = typeof(TanuloResource))]
public string Ajto { get; set; }
[Display(Name = nameof(TanuloResource.Alapertelmezett), ResourceType = typeof(TanuloResource))]
public bool Alapertelmezett_BOOL { get; set; }
public int CimTipus { get; set; }
}
public class ElerhetosegEmailModel : IKretaIdentity
{
public string ID { get; set; }
[Display(Name = nameof(TanuloResource.Tipus), ResourceType = typeof(TanuloResource))]
public string Tipus_DNAME { get; set; }
[Display(Name = nameof(TanuloResource.EmailCim), ResourceType = typeof(TanuloResource))]
[StringLength(General.EmailMaximumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.EmailMax0Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
public string EmailCim { get; set; }
[Display(Name = nameof(TanuloResource.Alapertelmezett), ResourceType = typeof(TanuloResource))]
public bool Alapertelmezett_BOOL { get; set; }
public bool IsHibasanMegadva_BOOL { get; set; }
}
public class ElerhetosegTelModel : IKretaIdentity
{
public string ID { get; set; }
[Display(Name = nameof(TanuloResource.Tipus), ResourceType = typeof(TanuloResource))]
public string Tipus_DNAME { get; set; }
[Display(Name = nameof(TanuloResource.Telefonszam), ResourceType = typeof(TanuloResource))]
public string TelefonSzam { get; set; }
[Display(Name = nameof(TanuloResource.Alapertelmezett), ResourceType = typeof(TanuloResource))]
public bool Alapertelmezett_BOOL { get; set; }
}
public class JogosultsagModel
{
public JogosultsagModel()
{
JogosultsagiSzintList = new List<SelectListItem>();
}
[Display(Name = nameof(CommonResource.Felhasznalonev), ResourceType = typeof(CommonResource))]
[StringLength(maximumLength: 100, ErrorMessageResourceName = nameof(ErrorResource.FelhasznalonevMax100Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
public string BelepesiNev { get; set; }
[Display(Name = nameof(CommonResource.Jelszo), ResourceType = typeof(CommonResource))]
[DataType(DataType.Password)]
[StringLength(General.JelszoMaximumKarakterekSzama, MinimumLength = General.JelszoMinimumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.AJelszonakMin0Max0KarakterbolKellAllnia), ErrorMessageResourceType = typeof(ErrorResource))]
public string Jelszo { get; set; }
[KretaCompare("Jelszo", StringResourcesId = 4492)] /*Az ismételt jelszó nem egyezik meg a jelszóval!*/
[Display(Name = nameof(CommonResource.IsmeteltJelszo), ResourceType = typeof(CommonResource))]
[DataType(DataType.Password)]
[StringLength(General.JelszoMaximumKarakterekSzama, MinimumLength = General.JelszoMinimumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.AJelszonakMin0Max0KarakterbolKellAllnia), ErrorMessageResourceType = typeof(ErrorResource))]
public string IsmeteltJelszo { get; set; }
[Display(Name = nameof(AlkalmazottResource.DiakolimpiaiJogosultsag), ResourceType = typeof(AlkalmazottResource))]
public bool DiakolimpiaiJog { get; set; }
[Display(Name = nameof(AlkalmazottResource.KezelhetiAKozossegiSzolgalatokat), ResourceType = typeof(AlkalmazottResource))]
public bool KozossegiSzolgalatKezelo { get; set; }
[Display(Name = nameof(AlkalmazottResource.KezelhetiLEPModult), ResourceType = typeof(AlkalmazottResource))]
public bool LEPModulKezelo { get; set; }
public bool LEPModulKezeloSystemSetting { get; set; }
[Display(Name = nameof(AlkalmazottResource.JogosultsagiSzint), ResourceType = typeof(AlkalmazottResource))]
public string[] JogosultsagiSzint { get; set; }
public List<SelectListItem> JogosultsagiSzintList { get; set; }
[Display(Name = nameof(AlkalmazottResource.KezelhetiHRModult), ResourceType = typeof(AlkalmazottResource))]
public bool IsHrKezelo { get; set; }
public bool IsHrFeatureEnabled { get; set; }
}
public class MunkaugyAdatModel
{
public MunkaugyAdatModel()
{
PedagogusStatuszaList = new List<SelectListItem>();
}
[Display(Name = nameof(AlkalmazottResource.PedagogusStatusz), ResourceType = typeof(AlkalmazottResource))]
public int? PedagogusStatusza { get; set; }
public List<SelectListItem> PedagogusStatuszaList;
public bool IsNszfhUjSzkt { get { return ClaimData.IsSelectedTanev20_21OrLater && ClaimData.IsSzakkepzoIntezmeny; } }
[Display(Name = nameof(AlkalmazottResource.PedagogusHetiOraszama), ResourceType = typeof(AlkalmazottResource))]
public string PedagogusHetiOraszama { get; set; }
[Display(Name = nameof(AlkalmazottResource.VezetoiOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public int? VezetoiOraszamOka { get; set; }
[Display(Name = nameof(AlkalmazottResource.Oraszam), ResourceType = typeof(AlkalmazottResource))]
[Range(0, 1000, ErrorMessageResourceName = nameof(AlkalmazottResource.AKotelezoOraszamNemLehetNegativ), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public double? Oraszam { get; set; }
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszam), ResourceType = typeof(AlkalmazottResource))]
[Range(0, 1000, ErrorMessageResourceName = nameof(AlkalmazottResource.AKotelezoOraszamNemLehetNegativ), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public double? MunkaidoKedvezmenyOraszam { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", false, ErrorMessageResourceName = nameof(ErrorResource.PedagogusFokozatMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public int? PedagogusFokozat { get; set; }
[Display(Name = nameof(AlkalmazottResource.Munkakor), ResourceType = typeof(AlkalmazottResource))]
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", false, ErrorMessageResourceName = nameof(AlkalmazottResource.MunkakorKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public int? MunkaKor { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", false, ErrorMessageResourceName = nameof(AlkalmazottResource.FoglalkoztatasiJogviszonyKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasiJogviszony { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasKezdete), ResourceType = typeof(AlkalmazottResource))]
[DateRange(ErrorMessageResourceName = nameof(ErrorResource.AlkalmazasKezdetenekDatumaNemErvenyes), ErrorMessageResourceType = typeof(ErrorResource))]
public DateTime? AlkalmazasKezdete { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasVege), ResourceType = typeof(AlkalmazottResource))]
[DateRange(ErrorMessageResourceName = nameof(ErrorResource.AlkalmazasVegenekDatumaNemErvenyes), ErrorMessageResourceType = typeof(ErrorResource))]
public DateTime? AlkalmazasVege { get; set; }
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", false, ErrorMessageResourceName = nameof(ErrorResource.FeladatellatasiHelyKitolteseKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public int? FeladatellatasiHely { get; set; }
[Display(Name = nameof(AlkalmazottResource.Foallasu), ResourceType = typeof(AlkalmazottResource))]
public bool Foallasu { get; set; }
[Display(Name = nameof(AlkalmazottResource.BetoltetlenAllashely), ResourceType = typeof(AlkalmazottResource))]
public bool BetoltetlenAllashely { get; set; }
[Display(Name = nameof(AlkalmazottResource.KulsoAlkalmazott), ResourceType = typeof(AlkalmazottResource))]
public bool IsKulsoAlkalmazott { get; set; }
[Display(Name = nameof(AlkalmazottResource.TartosanTavollevo), ResourceType = typeof(AlkalmazottResource))]
public bool TartosHelyettesites { get; set; }
[Display(Name = nameof(AlkalmazottResource.NyugdijasTovabbfoglalkoztatott), ResourceType = typeof(AlkalmazottResource))]
public bool Nyugdijas { get; set; }
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public int? MunkaidoKedvezmenyOka { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasTipusa), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasTipusa { get; set; }
[Display(Name = nameof(AlkalmazottResource.ReszmunkaidoSzazalek), ResourceType = typeof(AlkalmazottResource))]
public double? ReszmunkaidosSzazalek { get; set; }
[Display(Name = nameof(AlkalmazottResource.Szakvizsga), ResourceType = typeof(AlkalmazottResource))]
public bool Szakvizsga { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakertoiVagyVizsgaelnokiTevekenysegu), ResourceType = typeof(AlkalmazottResource))]
public bool SzakertoiVagyVizsgaelnokiTevekenysegu { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakmaiTovabbkepzes), ResourceType = typeof(AlkalmazottResource))]
public bool SzakmaiTovabbkepzes { get; set; }
[Display(Name = nameof(AlkalmazottResource.UtazoGyogypedagogus), ResourceType = typeof(AlkalmazottResource))]
public bool UtazoGyogypedagogus { get; set; }
[Display(Name = nameof(AlkalmazottResource.CsokkentettMunkaidos), ResourceType = typeof(AlkalmazottResource))]
public bool CsokkentettMunkaidos { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakertoMesterpedagogusKutatotanar), ResourceType = typeof(AlkalmazottResource))]
public bool SzakertoMesterpedagogusKutatotanar { get; set; }
public bool SzakertoMesterpedagogus { get; set; }
public bool IsSzakertoKutatotanar { get; set; }
[Display(Name = nameof(AlkalmazottResource.VezetoPedagogusVezetoOvodaPedagogus), ResourceType = typeof(AlkalmazottResource))]
public bool VezetoPedagogusVezetoOvodaPedagogus { get; set; }
public bool IsKlebelsberg { get; set; }
[Display(Name = nameof(AlkalmazottResource.Attanito), ResourceType = typeof(AlkalmazottResource))]
public bool Attanito { get; set; }
[Display(Name = nameof(AlkalmazottResource.AttanitoMasIntezmeny), ResourceType = typeof(AlkalmazottResource))]
public bool AttanitoMasIntezmeny { get; set; }
[Display(Name = nameof(AlkalmazottResource.AttanitoSZCnbelul), ResourceType = typeof(AlkalmazottResource))]
public bool IsAttanitoSzCnBelul { get; set; }
[Display(Name = nameof(AlkalmazottResource.Osztalyfonok), ResourceType = typeof(AlkalmazottResource))]
public bool IsOsztalyfonok { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazottSZTSZKod), ResourceType = typeof(AlkalmazottResource))]
public string SZTSZKod { get; set; }
[Display(Name = nameof(AlkalmazottResource.AllandoHelyettesitesre), ResourceType = typeof(AlkalmazottResource))]
public bool AllandoHelyettesitesre { get; set; }
[Display(Name = nameof(AlkalmazottResource.OktatoiFeladatokatIsEllat), ResourceType = typeof(AlkalmazottResource))]
public bool OktatoiFeladatokatIsEllat { get; set; }
[Display(Name = nameof(AlkalmazottResource.Egyebtevekenysegek), ResourceType = typeof(AlkalmazottResource))]
public int? EgyebTevekenysegekTipusId { get; set; }
public bool IsDualisKepzohelyiOktato { get; set; }
[KretaRequiredIf("IsDualisKepzohelyiOktato", true, ErrorMessageResourceName = nameof(ErrorResource.DualisKepzohelyNevenekMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
[StringLength(255, ErrorMessageResourceName = nameof(ErrorResource.DualisKepzohelyNeveMax255Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyNeve), ResourceType = typeof(AlkalmazottResource))]
public string DualisKepzohelyNeve { get; set; }
[KretaRequiredIf("IsDualisKepzohelyiOktato", true, ErrorMessageResourceName = nameof(ErrorResource.DualisKepzohelyAdoszamanakMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
[AdoszamExtended(ErrorMessageResourceName = nameof(ErrorResource.AdoszamFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyAdoszama), ResourceType = typeof(AlkalmazottResource))]
public string DualisKepzohelyAdoszama { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakiranyuOktatasertFelelos), ResourceType = typeof(AlkalmazottResource))]
public bool IsSzakiranyuOktatasertFelelos { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsInternetetOktCelraHasznal), ResourceType = typeof(AlkalmazottResource))]
public bool IsInternetetOktCelraHasznal { get; set; } = true;
[Display(Name = nameof(AlkalmazottResource.IsInformatKepIsmRendelkezik), ResourceType = typeof(AlkalmazottResource))]
public bool IsInformatKepIsmRendelkezik { get; set; } = true;
[Display(Name = nameof(AlkalmazottResource.IsIktEszkozoketLgalabb40Hasznal), ResourceType = typeof(AlkalmazottResource))]
public bool IsIktEszkozoketLgalabb40Hasznal { get; set; } = true;
[Display(Name = nameof(AlkalmazottResource.HasEfopEszkoz), ResourceType = typeof(AlkalmazottResource))]
public bool HasEfopEszkoz { get; set; }
public int? FeladatellatasiHelyKovTanev { get; set; }
[Display(Name = nameof(AlkalmazottResource.ApaczaiMentor), ResourceType = typeof(AlkalmazottResource))]
public bool IsApaczaiMentor { get; set; }
[Display(Name = nameof(AlkalmazottResource.ApaczaiMentorprogramhozKapcsolodoSZTSZ), ResourceType = typeof(AlkalmazottResource))]
public string SZTSZKod2 { get; set; }
[Display(Name = nameof(AlkalmazottResource.HasBankszamlaInfo), ResourceType = typeof(AlkalmazottResource))]
public bool HasBankszamlaInfo { get; set; }
[Display(Name = nameof(AlkalmazottResource.HasNyugdijInfo), ResourceType = typeof(AlkalmazottResource))]
public bool HasNyugdijInfo { get; set; }
public bool IsApaczaiMentorVisible { get; set; }
public bool IsDualisKepzohelyFromSzervezet { get; set; }
public bool IsDualisKepzesEnabled { get; set; }
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", true, ErrorMessageResourceName = nameof(ErrorResource.DualisKepzohelyMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
// NOTE: Itt azért nem a nameof(SzervezetResource.Szervezet)-ből jön a szöveg, mert ez a property fixen mindig ezzel a label-el kell, hogy megjelenjen, függetlenül a nyelviesítéstől!
[Display(Name = nameof(DualisResource.DualisKepzohelyNeveEsAdoszama), ResourceType = typeof(DualisResource))]
public int? OktatoSzervezetId { get; set; }
public bool IsAlkalmazottMentorAdatokKitoltve { get; set; }
}
public class PedagogusEletpalyamodellModel
{
public int? PedagogusEletpalyamodellId { get; set; }
public int AlkalmazottId { get; set; }
[Display(Name = nameof(AlkalmazottResource.Fokozat), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.MinositesiFokozatKivalasztasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public int? Fokozat { get; set; }
[Display(Name = nameof(AlkalmazottResource.Statusz), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.StatuszKivalasztasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public int? Statusz { get; set; }
[Display(Name = nameof(AlkalmazottResource.MinositesDatuma), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(ErrorResource.DatumMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
[DateRange(ErrorMessageResourceName = nameof(ErrorResource.MinositesDatumaNemErvenyes), ErrorMessageResourceType = typeof(ErrorResource))]
public DateTime? Datum { get; set; }
}
public class VegzettsegModel
{
public int? VegzettsegModelId { get; set; }
public int AlkalmazottId { get; set; }
[Display(Name = nameof(AlkalmazottResource.Vegzettseg), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.VegzettsegMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public int? Vegzettseg { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakMegnevezese), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.SzakMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public List<int> Kepesites { get; set; }
[Display(Name = nameof(AlkalmazottResource.Egyeb), ResourceType = typeof(AlkalmazottResource))]
[StringLength(maximumLength: 255, ErrorMessageResourceName = nameof(ErrorResource.Maximum255KarakterHosszusaguLehet), ErrorMessageResourceType = typeof(ErrorResource))]
public string Egyeb { get; set; }
}
public class TovabbkepzesModel
{
public int? ID { get; set; }
public int AlkalmazottId { get; set; }
[Display(Name = nameof(AlkalmazottResource.TovabbkepzesMegnevezese), ResourceType = typeof(AlkalmazottResource))]
public string TovabbkepzesMegnevezese { get; set; }
[Display(Name = nameof(AlkalmazottResource.TanusitvanySorszama), ResourceType = typeof(AlkalmazottResource))]
public string TanusitvanySorszama { get; set; }
[Display(Name = nameof(CommonResource.Oraszam), ResourceType = typeof(CommonResource))]
[KretaRange(0, int.MaxValue)]
public int? Oraszam { get; set; }
[Display(Name = nameof(AlkalmazottResource.Helyszin), ResourceType = typeof(AlkalmazottResource))]
public string Helyszin { get; set; }
[Display(Name = nameof(AlkalmazottResource.EngedelySzama), ResourceType = typeof(AlkalmazottResource))]
public string EngedelySzama { get; set; }
[Display(Name = nameof(AlkalmazottResource.Datum), ResourceType = typeof(AlkalmazottResource))]
public DateTime? Datum { get; set; }
public TovabbkepzesModel()
{
}
public TovabbkepzesModel(int alkalmazottId)
{
AlkalmazottId = alkalmazottId;
}
public TovabbkepzesModel(TovabbkepzesCo tovabbkepzesCo)
{
ID = tovabbkepzesCo.ID;
AlkalmazottId = tovabbkepzesCo.AlkalmazottId;
TovabbkepzesMegnevezese = tovabbkepzesCo.TovabbkepzesMegnevezese;
TanusitvanySorszama = tovabbkepzesCo.TanusitvanySorszama;
Oraszam = tovabbkepzesCo.Oraszam;
Helyszin = tovabbkepzesCo.Helyszin;
EngedelySzama = tovabbkepzesCo.EngedelySzama;
Datum = tovabbkepzesCo.Datum;
}
public TovabbkepzesCo ConvertModelToCo()
{
return new TovabbkepzesCo
{
ID = ID,
AlkalmazottId = AlkalmazottId,
TovabbkepzesMegnevezese = TovabbkepzesMegnevezese,
TanusitvanySorszama = TanusitvanySorszama,
Oraszam = Oraszam,
Helyszin = Helyszin,
EngedelySzama = EngedelySzama,
Datum = Datum
};
}
}
}

View file

@ -0,0 +1,176 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.BusinessLogic.Helpers;
using Kreta.Enums.ManualEnums;
using Kreta.Resources;
using Kreta.Web.Attributes;
using Kreta.Web.Helpers;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class AlkalmazottSearchModel
{
public bool MunkaugyiAdatokKlebelsbergOrNSZFH { get; set; }
[KretaDisplayName(108)] /*Név*/
public string Nev { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiHely), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiHely { get; set; }
[KretaDisplayName(134)] /*Nem*/
public int? Nem { get; set; }
[KretaDisplayName(42)] /*Születési idő*/
public DateTime? SzuletesiDatumTol { get; set; }
[KretaDisplayName(42)] /*Születési idő*/
public DateTime? SzuletesiDatumIg { get; set; }
[Display(Name = nameof(AlkalmazottResource.TanitottOsztaly), ResourceType = typeof(AlkalmazottResource))]
public int? TanitottOsztalyId { get; set; }
[KretaDisplayName(32)] /*Oktatási azonosító*/
public string OktatasiAzonosito { get; set; }
[KretaDisplayName(90)] /*Feladatellátási hely*/
public int? FeladatEllatasiHelyId { get; set; }
[KretaDisplayName(3085)] /*Főállású*/
public string Foallas { get; set; }
[KretaDisplayName(4830)] /*Nyugdíjas (továbbfoglalkoztatott)*/
public string SearchNyugdijas { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
public int? SearchPedagogusFokozat { get; set; }
public bool? NANem { get; set; }
public bool? NincsOktAzon { get; set; }
public bool? NABesorolasiFokozat { get; set; }
public bool? NincsMunkakor { get; set; }
public bool? NincsFoglalkoztatsModja { get; set; }
public bool? NincsEmail { get; set; }
public bool? NemCsillagosMunkakor { get; set; }
public bool? AktivAlkalmazottak { get; set; }
public bool? NincsBelepesAlkalmazott { get; set; }
public bool? NemBelepettAlkalmazottKetHet { get; set; }
public bool? NincsAlkalmazottSZTSZ { get; set; }
public bool? IsTanarAlkalmazottMunkaKor { get; set; }
public List<int> NszfhTovabbiMunkakorTipusIdList => Kreta.Core.Constants.NszfhTovabbiMunkakorTipusIdList;
public bool IsNszfhUjSzkt => ClaimData.IsSelectedTanev20_21OrLater && ClaimData.IsSzakkepzoIntezmeny;
public bool IsFromSzervezet { get; set; }
public int? SzervezetId { get; set; }
[Display(Name = nameof(TeremResource.SzervezetNeve), ResourceType = typeof(TeremResource))]
public string SzervezetNev { get; set; }
[Display(Name = nameof(TeremResource.SzervezetAzonosito), ResourceType = typeof(TeremResource))]
public string SzervezetAzonosito { get; set; }
public string ControllerName { get; set; } = Constants.Controllers.Alkalmazott;
public string ApiControllerName { get; set; } = Constants.ApiControllers.AlkalmazottApi;
public bool IsDualisKepzesEnabled => new IntezmenyConfigHelper(ConnectionTypeExtensions.GetSystemConnectionType()).GetIntezmenyConfig<bool>(IntezmenyConfigModulEnum.DualisKepzes, IntezmenyConfigTipusEnum.IsEnabled);
public bool IsActiveTanev21_22 => new TanevHelper(ConnectionTypeExtensions.GetActiveSessionConnectionType()).GetTanevInfo().Sorszam == 42 && ClaimData.IsActivTanev;
public static AlkalmazottSearchModel SetFilterAlkalmazottSearchModel(string filter)
{
var result = new AlkalmazottSearchModel();
switch (filter)
{
case "nemcsillagosmunkakor":
result.NemCsillagosMunkakor = true;
break;
case "nincsnem":
result.NANem = true;
break;
case "nincsbesorolas":
result.NABesorolasiFokozat = true;
result.IsTanarAlkalmazottMunkaKor = true;
break;
case "nincsmunkakor":
result.NincsMunkakor = true;
result.IsTanarAlkalmazottMunkaKor = true;
break;
case "nincsmunkaviszony":
result.NincsFoglalkoztatsModja = true;
result.IsTanarAlkalmazottMunkaKor = true;
break;
case "nincsEmail":
result.NincsEmail = true;
result.IsTanarAlkalmazottMunkaKor = true;
break;
case "AktivAlkalmazottak":
result.AktivAlkalmazottak = true;
result.IsTanarAlkalmazottMunkaKor = true;
break;
case "nincsbelepesalkalmazott":
result.NincsBelepesAlkalmazott = true;
result.IsTanarAlkalmazottMunkaKor = true;
break;
case "nembelepettalkalmazottkethet":
result.NemBelepettAlkalmazottKetHet = true;
result.IsTanarAlkalmazottMunkaKor = true;
break;
case "nincsSztsz":
result.NincsAlkalmazottSZTSZ = true;
break;
}
return result;
}
public AlkalmazottSearchCo ConvertModelToCo()
{
return new AlkalmazottSearchCo
{
Nev = Nev,
SzuletesiHely = SzuletesiHely,
Nem = Nem,
SzuletesiDatumTol = SzuletesiDatumTol,
SzuletesiDatumIg = SzuletesiDatumIg,
TanitottOsztalyId = TanitottOsztalyId,
OktatasiAzonosito = OktatasiAzonosito,
FeladatEllatasiHelyId = FeladatEllatasiHelyId,
Foallas = Foallas,
SearchNyugdijas = SearchNyugdijas,
NANem = NANem,
NABesorolasiFokozat = NABesorolasiFokozat,
NincsMunkakor = NincsMunkakor,
NincsFoglalkoztatasModja = NincsFoglalkoztatsModja,
SearchPedagogusFokozat = SearchPedagogusFokozat,
NemCsillagosMunkakor = NemCsillagosMunkakor,
NincsEmail = NincsEmail,
AktivAlkalmazottak = AktivAlkalmazottak,
NincsBelepesAlkalmazott = NincsBelepesAlkalmazott,
NemBelepettAlkalmazottKetHet = NemBelepettAlkalmazottKetHet,
NincsOktAzon = NincsOktAzon,
MunkaugyiAdatokKlebelsbergOrNSZFH = MunkaugyiAdatokKlebelsbergOrNSZFH,
NincsAlkalmazottSZTSZ = NincsAlkalmazottSZTSZ,
IsTanarAlkalmazottMunkaKor = IsTanarAlkalmazottMunkaKor,
SzervezetNev = SzervezetNev,
SzervezetAzonosito = SzervezetAzonosito,
SzervezetId = SzervezetId,
IsFromSzervezet = IsFromSzervezet
};
}
}
}

View file

@ -0,0 +1,18 @@
using System.Collections.Generic;
using System.Xml.Serialization;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
[XmlRoot(ElementName = "Alkalmazottak")]
public class AlkalmazottXml
{
public AlkalmazottXml()
{
Ids = new List<int>();
}
[XmlArray(ElementName = "IdLista")]
[XmlArrayItem("Id", Type = typeof(int))]
public List<int> Ids { get; set; }
}
}

View file

@ -0,0 +1,105 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kreta.BusinessLogic.Classes;
using Kreta.Resources;
using Kreta.Web.Areas.Alkalmazott.ModelInterface;
using Kreta.Web.Attributes;
using Kreta.Web.Models.EditorTemplates;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class BetoltetlenAllashelyModel : TabStripModel, IAlterAlkalmazottValidationModel
{
public BetoltetlenAllashelyModel()
{
}
[KretaDisplayName(63)]
public string Iranyitoszam { get; set; }
[KretaDisplayName(260)]
public string Varos { get; set; }
[KretaDisplayName(261)]
public string Cim { get; set; }
[KretaRequired(StringResourcesId = 136)]
[KretaDisplayName(36)]
public int Nem { get; set; }
public List<SelectListItem> NemList { get; set; }
[KretaStringLength(200, StringResourcesId = 4600 /*A név előtag maximum 100 karater lehet!*/)]
[KretaDisplayName(1576)]
public string NevEloTag { get; set; }
[KretaRequired(StringResourcesId = 137)]
[KretaStringLength(200, StringResourcesId = 148 /*Családi név max. 200 karakter!*/)]
[KretaDisplayName(52)]
public string MunkavallaloCsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 138)]
[KretaStringLength(200, StringResourcesId = 149/*Utónév max. 200 karakter!*/)]
[KretaDisplayName(58)]
public string MunkavallaloUtonev { get; set; }
[KretaRequired(StringResourcesId = 2622)]
[KretaStringLength(200, StringResourcesId = 3364 /*Születési családi név max. 200 karakter!*/)]
[KretaDisplayName(53)]
public string SzuletesiCsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 2621)]
[KretaStringLength(200, StringResourcesId = 3367 /*Születési uótnév max. 200 karakter!*/)]
[KretaDisplayName(59)]
public string SzuletesiUtonev { get; set; }
[KretaRequired(StringResourcesId = 139)]
[KretaStringLength(200, StringResourcesId = 150/*Anyja családi neve max. 200 karakter!*/ )]
[KretaDisplayName(39)]
public string AnyjaCsaladiNeve { get; set; }
[KretaRequired(StringResourcesId = 140)]
[KretaStringLength(200, StringResourcesId = 151/*Anyja utóneve neve max. 200 karakter! */)]
[KretaDisplayName(40)]
public string AnyjaUtoneve { get; set; }
[KretaRequired(StringResourcesId = 2654)]
[KretaDisplayName(87)]
[KretaRange(0, 1000, StringResourcesId = 4298)] //A kötelező óraszám nem lehet negatív!
public double? KotelezoOraszam { get; set; }
[KretaRequired(StringResourcesId = 142)]
[KretaDisplayName(42)]
public DateTime? SzuletesiIdo { get; set; }
[KretaRequired(StringResourcesId = 141)]
[KretaStringLength(200, StringResourcesId = 152/*Születési hely max. 200 karakter!*/)]
[KretaDisplayName(41)]
public string SzuletesiHely { get; set; }
[KretaRequired(StringResourcesId = 1680)]
[KretaDisplayName(90)]
public int? FeladatellatasiHely { get; set; }
[KretaRequired(StringResourcesId = 3370/*Munkakör kitöltése kötelező!*/)]
[KretaDisplayName(88)]
public int? MunkaKor { get; set; }
//[KretaRequired(StringResourcesId = 4620/*Munkaviszony típusának kitöltése kötelező*/)]
//[KretaDisplayName(4619)]
//public int? Munkaviszony { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.FoglalkoztatasiJogviszonyKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasiJogviszony { get; set; }
[KretaDisplayName(4614)]
public bool BetoltetlenAllashely { get; set; }
/*[Display(Name = nameof(AlkalmazottResource.SzabadAllashely), ResourceType = typeof(AlkalmazottResource))]
public bool SzabadAllashely { get; set; }*/
}
}

View file

@ -0,0 +1,59 @@
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Classes;
using Kreta.Core.CustomAttributes;
using Kreta.Resources;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class DualisKepzohelyiOktatoModel
{
public DualisKepzohelyiOktatoModel()
{
}
[KretaStringLength(200, StringResourcesId = 4600 /*A név előtag maximum 100 karater lehet!*/)]
[KretaDisplayName(1576)]
public string NevEloTag { get; set; }
[KretaRequired(StringResourcesId = 137)]
[KretaStringLength(200, StringResourcesId = 148 /*Családi név max. 200 karakter!*/)]
[Display(Name = nameof(AlkalmazottResource.CsaladiNev), ResourceType = typeof(AlkalmazottResource))]
public string CsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 138)]
[KretaStringLength(200, StringResourcesId = 149/*Utónév max. 200 karakter!*/)]
[Display(Name = nameof(AlkalmazottResource.Utonev), ResourceType = typeof(AlkalmazottResource))]
public string Utonev { get; set; }
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", false, ErrorMessageResourceName = nameof(ErrorResource.FeladatellatasiHelyKitolteseKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
[KretaDisplayName(90)]
public int? FeladatellatasiHely { get; set; }
[KretaRequired(StringResourcesId = 3370/*Munkakör kitöltése kötelező!*/)]
[KretaDisplayName(88)]
public int? MunkaKor { get; set; }
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", false, ErrorMessageResourceName = nameof(ErrorResource.DualisKepzohelyNevenekMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
[KretaStringLength(255, ErrorMessageResourceName = nameof(ErrorResource.DualisKepzohelyNeveMax255Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyNeve), ResourceType = typeof(AlkalmazottResource))]
public string DualisKepzohelyNeve { get; set; }
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", false, ErrorMessageResourceName = nameof(ErrorResource.DualisKepzohelyAdoszamanakMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
[AdoszamExtended(ErrorMessageResourceName = nameof(ErrorResource.AdoszamFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyAdoszama), ResourceType = typeof(AlkalmazottResource))]
public string DualisKepzohelyAdoszama { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakiranyuOktatasertFelelos), ResourceType = typeof(AlkalmazottResource))]
public bool IsSzakiranyuOktatasertFelelos { get; set; }
public bool IsDualisKepzohelyFromSzervezet { get; set; }
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", true, ErrorMessageResourceName = nameof(ErrorResource.DualisKepzohelyMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
// NOTE: Itt azért nem a nameof(SzervezetResource.Szervezet)-ből jön a szöveg, mert ez a property fixen mindig ezzel a label-el kell, hogy megjelenjen, függetlenül a nyelviesítéstől!
[Display(Name = nameof(DualisResource.DualisKepzohelyNeveEsAdoszama), ResourceType = typeof(DualisResource))]
public int? OktatoSzervezetId { get; set; }
public JogosultsagModel JogosultsagModel { get; set; }
}
}

View file

@ -0,0 +1,15 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kreta.Resources;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class FeladatellatasiHelyPopupModel
{
[Display(Name = nameof(AlkalmazottResource.KovTanevbenLetezoAktivTanevesFelHelyek), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(ErrorResource.Required), ErrorMessageResourceType = typeof(ErrorResource))]
public int? FeladatellatasiHelyIdPopup { get; set; }
public List<SelectListItem> FeladatellatasiHelyList { get; set; }
}
}

View file

@ -0,0 +1,102 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kreta.BusinessLogic.Classes;
using Kreta.Resources;
using Kreta.Web.Areas.Alkalmazott.ModelInterface;
using Kreta.Web.Attributes;
using Kreta.Web.Models.EditorTemplates;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class HitoktatoModel : TabStripModel, IAlterAlkalmazottValidationModel
{
public HitoktatoModel()
{
}
[KretaDisplayName(63)]
public string Iranyitoszam { get; set; }
[KretaDisplayName(260)]
public string Varos { get; set; }
[KretaDisplayName(261)]
public string Cim { get; set; }
[KretaRequired(StringResourcesId = 136)]
[KretaDisplayName(36)]
public int Nem { get; set; }
public List<SelectListItem> NemList { get; set; }
[KretaStringLength(200, StringResourcesId = 4600 /*A név előtag maximum 100 karater lehet!*/)]
[KretaDisplayName(1576)]
public string NevEloTag { get; set; }
[KretaRequired(StringResourcesId = 137)]
[KretaStringLength(200, StringResourcesId = 148 /*Családi név max. 200 karakter!*/)]
[KretaDisplayName(52)]
public string MunkavallaloCsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 138)]
[KretaStringLength(200, StringResourcesId = 149/*Utónév max. 200 karakter!*/)]
[KretaDisplayName(58)]
public string MunkavallaloUtonev { get; set; }
[KretaRequired(StringResourcesId = 2622)]
[KretaStringLength(200, StringResourcesId = 3364 /*Születési családi név max. 200 karakter!*/)]
[KretaDisplayName(53)]
public string SzuletesiCsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 2621)]
[KretaStringLength(200, StringResourcesId = 3367 /*Születési uótnév max. 200 karakter!*/)]
[KretaDisplayName(59)]
public string SzuletesiUtonev { get; set; }
[KretaRequired(StringResourcesId = 139)]
[KretaStringLength(200, StringResourcesId = 150/*Anyja családi neve max. 200 karakter!*/ )]
[KretaDisplayName(39)]
public string AnyjaCsaladiNeve { get; set; }
[KretaRequired(StringResourcesId = 140)]
[KretaStringLength(200, StringResourcesId = 151/*Anyja utóneve neve max. 200 karakter! */)]
[KretaDisplayName(40)]
public string AnyjaUtoneve { get; set; }
[KretaRequired(StringResourcesId = 2654)]
[KretaDisplayName(87)]
[KretaRange(0, 1000, StringResourcesId = 4298)] //A kötelező óraszám nem lehet negatív!
public double? KotelezoOraszam { get; set; }
[KretaRequired(StringResourcesId = 142)]
[KretaDisplayName(42)]
public DateTime? SzuletesiIdo { get; set; }
[KretaRequired(StringResourcesId = 141)]
[KretaStringLength(200, StringResourcesId = 152/*Születési hely max. 200 karakter!*/)]
[KretaDisplayName(41)]
public string SzuletesiHely { get; set; }
[KretaRequired(StringResourcesId = 1680)]
[KretaDisplayName(90)]
public int? FeladatellatasiHely { get; set; }
[KretaRequired(StringResourcesId = 3370/*Munkakör kitöltése kötelező!*/)]
[KretaDisplayName(88)]
public int? MunkaKor { get; set; }
//[KretaRequired(StringResourcesId = 4620/*Munkaviszony típusának kitöltése kötelező*/)]
//[KretaDisplayName(4619)]
//public int? Munkaviszony { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.FoglalkoztatasiJogviszonyKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasiJogviszony { get; set; }
[KretaDisplayName(4614)]
public bool BetoltetlenAllashely { get; set; }
}
}

View file

@ -0,0 +1,78 @@
using System;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Classes;
using Kreta.Enums;
using Kreta.Resources;
using Kreta.Web.Attributes;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class InfoTovabbiMunkaugyiAdatokPopUpModel
{
public int? TovabbiMunkaugyAdatModelId { get; set; }
public int AlkalmazottId { get; set; }
[KretaDisplayName(4762)] /*Pedagógus heti óraszáma*/
public string PedagogusHetiOraszama { get; set; }
[KretaDisplayName(87)]
[KretaRange(0, 1000, StringResourcesId = 4298)] //A kötelező óraszám nem lehet negatív!
public double? KotelezoOraszam { get; set; }
[KretaDisplayName(91)]
[KretaRange(0, 1000, StringResourcesId = 4298)] //A kötelező óraszám nem lehet negatív!
public double? MunkaidoKedvezmenyOraszam { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
public int? PedagogusFokozat { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
public string PedagogusFokozat_BNAME { get { return PedagogusFokozat.GetDisplayName<BesorolasiFokozatTipusEnum>(ClaimData.SelectedTanevID.Value); } }
[KretaDisplayName(88)]
public int? MunkaKor { get; set; }
[KretaDisplayName(88)]
public string Munkakor_BNAME { get { return MunkaKor.GetDisplayName<MunkakorTipusEnum>(ClaimData.SelectedTanevID.Value); } }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasiJogviszony { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public string FoglalkoztatasiJogviszony_BNAME { get { return FoglalkoztatasiJogviszony.GetDisplayName<MunkaviszonyTipusEnum>(ClaimData.SelectedTanevID.Value); } }
[KretaDisplayName(89)]
public DateTime? AlkalmazasKezdete { get; set; }
[KretaDisplayName(89)]
public string AlkalmazasKezdete_SDATE { get { return AlkalmazasKezdete.ToShortDateString(); } }
[KretaDisplayName(5466)]
public DateTime? AlkalmazasVege { get; set; }
[KretaDisplayName(5466)]
public string AlkalmazasVege_SDATE { get { return AlkalmazasVege.ToShortDateString(); } }
[KretaDisplayName(90)]
public string FeladatellatasiHely_BNAME { get; set; }
[KretaDisplayName(4830)] /*Nyugdíjas (továbbfoglalkoztatott)*/
public bool Nyugdijas { get; set; }
[KretaDisplayName(4830)] /*Nyugdíjas (továbbfoglalkoztatott)*/
public string Nyugdijas_BNAME { get { return Nyugdijas.GetDisplayName(); } }
[KretaDisplayName(4618)] //Feladattal terhelt óraszám oka
public int? MunkaidoKedvezmenyOka { get; set; }
[KretaDisplayName(4618)] //Feladattal terhelt óraszám oka
public string MunkaidoKedvezmenyOka_BNAME { get { return MunkaidoKedvezmenyOka.GetDisplayName<MunkaidoKedvezmenyOkaEnum>(ClaimData.SelectedTanevID.Value); } }
public int? FoglalkoztatasTipusa { get; set; }
[Display(
Name = nameof(AlkalmazottResource.FoglalkoztatasTipusa),
ResourceType = typeof(AlkalmazottResource))]
public string FoglalkoztatasTipusa_BNAME { get { return FoglalkoztatasTipusa.GetDisplayName<FoglalkoztatasTipusaEnum>(ClaimData.SelectedTanevID.Value); } }
public bool IsNszfhUjSzkt { get { return ClaimData.IsSelectedTanev20_21OrLater && ClaimData.IsSzakkepzoIntezmeny; } }
}
}

View file

@ -0,0 +1,98 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kreta.BusinessLogic.Classes;
using Kreta.Resources;
using Kreta.Web.Areas.Alkalmazott.ModelInterface;
using Kreta.Web.Attributes;
using Kreta.Web.Models.EditorTemplates;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class KulsoGyakorlatiAllashelyModel : TabStripModel, IAlterAlkalmazottValidationModel
{
public KulsoGyakorlatiAllashelyModel()
{
}
[KretaDisplayName(63)]
public string Iranyitoszam { get; set; }
[KretaDisplayName(260)]
public string Varos { get; set; }
[KretaDisplayName(261)]
public string Cim { get; set; }
[KretaRequired(StringResourcesId = 136)]
[KretaDisplayName(36)]
public int Nem { get; set; }
public List<SelectListItem> NemList { get; set; }
[KretaStringLength(200, StringResourcesId = 4600 /*A név előtag maximum 100 karater lehet!*/)]
[KretaDisplayName(1576)]
public string NevEloTag { get; set; }
[KretaRequired(StringResourcesId = 137)]
[KretaStringLength(200, StringResourcesId = 148 /*Családi név max. 200 karakter!*/)]
[KretaDisplayName(52)]
public string MunkavallaloCsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 138)]
[KretaStringLength(200, StringResourcesId = 149/*Utónév max. 200 karakter!*/)]
[KretaDisplayName(58)]
public string MunkavallaloUtonev { get; set; }
[KretaRequired(StringResourcesId = 2622)]
[KretaStringLength(200, StringResourcesId = 3364 /*Születési családi név max. 200 karakter!*/)]
[KretaDisplayName(53)]
public string SzuletesiCsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 2621)]
[KretaStringLength(200, StringResourcesId = 3367 /*Születési uótnév max. 200 karakter!*/)]
[KretaDisplayName(59)]
public string SzuletesiUtonev { get; set; }
[KretaRequired(StringResourcesId = 139)]
[KretaStringLength(200, StringResourcesId = 150/*Anyja családi neve max. 200 karakter!*/ )]
[KretaDisplayName(39)]
public string AnyjaCsaladiNeve { get; set; }
[KretaRequired(StringResourcesId = 140)]
[KretaStringLength(200, StringResourcesId = 151/*Anyja utóneve neve max. 200 karakter! */)]
[KretaDisplayName(40)]
public string AnyjaUtoneve { get; set; }
[KretaRequired(StringResourcesId = 2654)]
[KretaDisplayName(87)]
[KretaRange(0, 1000, StringResourcesId = 4298)] //A kötelező óraszám nem lehet negatív!
public double? KotelezoOraszam { get; set; }
[KretaRequired(StringResourcesId = 142)]
[KretaDisplayName(42)]
public DateTime? SzuletesiIdo { get; set; }
[KretaRequired(StringResourcesId = 141)]
[KretaStringLength(200, StringResourcesId = 152/*Születési hely max. 200 karakter!*/)]
[KretaDisplayName(41)]
public string SzuletesiHely { get; set; }
[KretaRequired(StringResourcesId = 1680)]
[KretaDisplayName(90)]
public int? FeladatellatasiHely { get; set; }
[KretaRequired(StringResourcesId = 3370/*Munkakör kitöltése kötelező!*/)]
[KretaDisplayName(88)]
public int? MunkaKor { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.FoglalkoztatasiJogviszonyKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasiJogviszony { get; set; }
[KretaDisplayName(4614)]
public bool BetoltetlenAllashely { get; set; }
}
}

View file

@ -0,0 +1,132 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Foolproof;
using Kreta.BusinessLogic.Classes;
using Kreta.Core.CustomAttributes;
using Kreta.Enums;
using Kreta.Resources;
using Kreta.Web.Areas.Alkalmazott.ModelInterface;
using Kreta.Web.Attributes;
using Kreta.Web.Models.EditorTemplates;
using static Kreta.Core.Constants;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class KulsosAlkalmazottModel : TabStripModel, IAlterAlkalmazottValidationModel
{
public KulsosAlkalmazottModel()
{
}
[KretaDisplayName(63)]
public string Iranyitoszam { get; set; }
[KretaDisplayName(260)]
public string Varos { get; set; }
[KretaDisplayName(261)]
public string Cim { get; set; }
[KretaRequired(StringResourcesId = 136)]
[KretaDisplayName(36)]
public int Nem { get; set; }
public List<SelectListItem> NemList { get; set; }
[KretaStringLength(200, StringResourcesId = 4600 /*A név előtag maximum 100 karater lehet!*/)]
[KretaDisplayName(1576)]
public string NevEloTag { get; set; }
[KretaRequired(StringResourcesId = 137)]
[KretaStringLength(200, StringResourcesId = 148 /*Családi név max. 200 karakter!*/)]
[KretaDisplayName(52)]
public string MunkavallaloCsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 138)]
[KretaStringLength(200, StringResourcesId = 149/*Utónév max. 200 karakter!*/)]
[KretaDisplayName(58)]
public string MunkavallaloUtonev { get; set; }
[KretaRequired(StringResourcesId = 2622)]
[KretaStringLength(200, StringResourcesId = 3364 /*Születési családi név max. 200 karakter!*/)]
[KretaDisplayName(53)]
public string SzuletesiCsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 2621)]
[KretaStringLength(200, StringResourcesId = 3367 /*Születési uótnév max. 200 karakter!*/)]
[KretaDisplayName(59)]
public string SzuletesiUtonev { get; set; }
[KretaRequired(StringResourcesId = 139)]
[KretaStringLength(200, StringResourcesId = 150/*Anyja családi neve max. 200 karakter!*/ )]
[KretaDisplayName(39)]
public string AnyjaCsaladiNeve { get; set; }
[KretaRequired(StringResourcesId = 140)]
[KretaStringLength(200, StringResourcesId = 151/*Anyja utóneve neve max. 200 karakter! */)]
[KretaDisplayName(40)]
public string AnyjaUtoneve { get; set; }
[KretaRequired(StringResourcesId = 2654)]
[KretaDisplayName(87)]
[KretaRange(0, 1000, StringResourcesId = 4298)] //A kötelező óraszám nem lehet negatív!
public double? KotelezoOraszam { get; set; }
[KretaRequired(StringResourcesId = 142)]
[KretaDisplayName(42)]
public DateTime? SzuletesiIdo { get; set; }
[KretaRequired(StringResourcesId = 141)]
[KretaStringLength(200, StringResourcesId = 152/*Születési hely max. 200 karakter!*/)]
[KretaDisplayName(41)]
public string SzuletesiHely { get; set; }
[KretaRequired(StringResourcesId = 1680)]
[KretaDisplayName(90)]
public int? FeladatellatasiHely { get; set; }
[KretaRequired(StringResourcesId = 3370/*Munkakör kitöltése kötelező!*/)]
[KretaDisplayName(88)]
public int? MunkaKor { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.FoglalkoztatasiJogviszonyKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasiJogviszony { get; set; }
[KretaDisplayName(4614)]
public bool BetoltetlenAllashely { get; set; }
[Display(Name = nameof(CommonResource.Felhasznalonev), ResourceType = typeof(CommonResource))]
[StringLength(maximumLength: 100, ErrorMessageResourceName = nameof(ErrorResource.FelhasznalonevMax100Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
[RequiredIf(nameof(MunkaKor), (int)MunkakorTipusEnum.iskolaor, ErrorMessageResourceName = nameof(ErrorResource.FelhasznalonevMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public string BelepesiNev { get; set; }
[Display(Name = nameof(CommonResource.Jelszo), ResourceType = typeof(CommonResource))]
[DataType(DataType.Password)]
[StringLength(General.JelszoMaximumKarakterekSzama, MinimumLength = General.JelszoMinimumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.AJelszonakMin0Max0KarakterbolKellAllnia), ErrorMessageResourceType = typeof(ErrorResource))]
[RequiredIf(nameof(MunkaKor), (int)MunkakorTipusEnum.iskolaor, ErrorMessageResourceName = nameof(ErrorResource.JelszoMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public string Jelszo { get; set; }
[Display(Name = nameof(CommonResource.Email), ResourceType = typeof(CommonResource))]
[StringLength(General.EmailMaximumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.EmailMax0Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
[EmailAddressExtended(ErrorMessageResourceName = nameof(ErrorResource.EMailCimFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(ErrorResource))]
[RequiredIf(nameof(MunkaKor), (int)MunkakorTipusEnum.iskolaor, ErrorMessageResourceName = nameof(ErrorResource.EmailCimMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public string EmailCim { get; set; }
[Display(Name = nameof(CommonResource.EmailTipus), ResourceType = typeof(CommonResource))]
[RequiredIf(nameof(MunkaKor), (int)MunkakorTipusEnum.iskolaor, ErrorMessageResourceName = nameof(ErrorResource.EmailTipusMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public int? EmailTipus { get; set; }
[Display(Name = nameof(CommonResource.Telefonszam), ResourceType = typeof(CommonResource))]
[PhoneExtended(ErrorMessageResourceName = nameof(ErrorResource.ATelefonszamFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(ErrorResource))]
[RequiredIf(nameof(MunkaKor), (int)MunkakorTipusEnum.iskolaor, ErrorMessageResourceName = nameof(ErrorResource.TelefonszamMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public string Telefon { get; set; }
[Display(Name = nameof(CommonResource.TelefonTipus), ResourceType = typeof(CommonResource))]
[RequiredIf(nameof(MunkaKor), (int)MunkakorTipusEnum.iskolaor, ErrorMessageResourceName = nameof(ErrorResource.TelefonTipusMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public int? TelefonTipus { get; set; }
}
}

View file

@ -0,0 +1,64 @@
using System;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Classes;
using Kreta.Resources;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class TovabbiMunkaugyiAdatokModel
{
public int? TovabbiMunkaugyAdatModelId { get; set; }
public int AlkalmazottId { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusHetiOraszama), ResourceType = typeof(AlkalmazottResource))]
public string PedagogusHetiOraszama { get; set; }
[Display(Name = nameof(AlkalmazottResource.VezetoiOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public int? VezetoiOraszamOka { get; set; }
[Display(Name = nameof(AlkalmazottResource.Oraszam), ResourceType = typeof(AlkalmazottResource))]
[Range(0, 1000, ErrorMessageResourceName = nameof(AlkalmazottResource.AKotelezoOraszamNemLehetNegativ), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public double? Oraszam { get; set; }
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszam), ResourceType = typeof(AlkalmazottResource))]
[Range(0, 1000, ErrorMessageResourceName = nameof(AlkalmazottResource.AKotelezoOraszamNemLehetNegativ), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public double? MunkaidoKedvezmenyOraszam { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
public int? PedagogusFokozat { get; set; }
[Display(Name = nameof(AlkalmazottResource.Munkakor), ResourceType = typeof(AlkalmazottResource))]
[KretaRequired(typeof(AlkalmazottResource), nameof(AlkalmazottResource.MunkakorKitolteseKotelezo))]
public int? MunkaKor { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
[KretaRequired(typeof(AlkalmazottResource), nameof(AlkalmazottResource.FoglalkoztatasiJogviszonyKitolteseKotelezo))]
public int? FoglalkoztatasiJogviszony { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasKezdete), ResourceType = typeof(AlkalmazottResource))]
[DateRange(ErrorMessageResourceName = nameof(ErrorResource.AlkalmazasKezdetenekDatumaNemErvenyes), ErrorMessageResourceType = typeof(ErrorResource))]
public DateTime? AlkalmazasKezdete { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasVege), ResourceType = typeof(AlkalmazottResource))]
[DateRange(ErrorMessageResourceName = nameof(ErrorResource.AlkalmazasVegenekDatumaNemErvenyes), ErrorMessageResourceType = typeof(ErrorResource))]
public DateTime? AlkalmazasVege { get; set; }
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
[KretaRequired(typeof(ErrorResource), nameof(ErrorResource.FeladatellatasiHelyKitolteseKotelezo))]
public int? FeladatellatasiHely { get; set; }
[Display(Name = nameof(AlkalmazottResource.NyugdijasTovabbfoglalkoztatott), ResourceType = typeof(AlkalmazottResource))]
public bool Nyugdijas { get; set; }
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public int? MunkaidoKedvezmenyOka { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasTipusa), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasTipusa { get; set; }
[Display(Name = nameof(AlkalmazottResource.ReszmunkaidoSzazalek), ResourceType = typeof(AlkalmazottResource))]
public double? ReszmunkaidosSzazalek { get; set; }
public bool IsNszfhUjSzkt { get { return ClaimData.IsSelectedTanev20_21OrLater && ClaimData.IsSzakkepzoIntezmeny; } }
}
}

View file

@ -0,0 +1,9 @@
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class VegzettsegDetailModel
{
public int AlkalmazottId { get; set; }
public int? EntityId { get; set; }
public int? KepesitesTipus { get; set; }
}
}

View file

@ -0,0 +1,227 @@
namespace Kreta.Web.Areas.Alkalmazott.Models
{
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.Enums;
using Kreta.Resources;
public class VegzettsegWizardBaseModel
{
public int AlkalmazottId { get; set; }
public KKKepesitesTipusEnum KepesitesTipusId { get; set; }
public KKVegzettsegBaseCo ToCo()
{
var co = new KKVegzettsegBaseCo();
co.AlkalmazottId = AlkalmazottId;
co.KepesitesTipusId = KepesitesTipusId;
return co;
}
}
public abstract class VegzettsegWizardPedagogusBaseModel : VegzettsegWizardBaseModel
{
public KKKepesitesJellTipusEnum VegzettsegTipusId { get; private set; }
public VegzettsegWizardPedagogusBaseModel(KKKepesitesJellTipusEnum vegzettsegTipusId)
{
KepesitesTipusId = KKKepesitesTipusEnum.Pedagogus;
VegzettsegTipusId = vegzettsegTipusId;
}
}
public class TanarVegzettsegWizardModel : VegzettsegWizardPedagogusBaseModel
{
public TanarVegzettsegWizardModel() : base(KKKepesitesJellTipusEnum.Tanar)
{
}
public int? EntityId { get; set; }
[Display(Name = nameof(AlkalmazottResource.Vegzettseg), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.VegzettsegMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public int? TanariVegzettsegTipusId { get; set; }
[Display(Name = nameof(AlkalmazottResource.TantargyKategoria), ResourceType = typeof(AlkalmazottResource))]
public List<int> TantargyKategoriaIds { get; set; }
[Display(Name = nameof(AlkalmazottResource.Egyeb), ResourceType = typeof(AlkalmazottResource))]
[StringLength(maximumLength: 255, ErrorMessageResourceName = nameof(ErrorResource.Maximum255KarakterHosszusaguLehet), ErrorMessageResourceType = typeof(ErrorResource))]
public string Egyeb { get; set; }
public new KKTanarVegzettsegCO ToCo()
{
var co = new KKTanarVegzettsegCO();
co.EntityId = EntityId;
co.AlkalmazottId = AlkalmazottId;
co.KepesitesTipusId = KepesitesTipusId;
co.TanariVegzettsegTipusId = TanariVegzettsegTipusId;
co.Egyeb = Egyeb;
co.TantargyKategoriaIds = TantargyKategoriaIds;
return co;
}
public void FromCo(KKTanarVegzettsegCO co)
{
EntityId = co.EntityId;
AlkalmazottId = co.AlkalmazottId;
KepesitesTipusId = co.KepesitesTipusId;
TanariVegzettsegTipusId = co.TanariVegzettsegTipusId;
Egyeb = co.Egyeb;
TantargyKategoriaIds = co.TantargyKategoriaIds;
}
}
public class AMITanarVegzettsegWizardModel : VegzettsegWizardPedagogusBaseModel, IValidatableObject
{
public AMITanarVegzettsegWizardModel() : base(KKKepesitesJellTipusEnum.TanarAMI)
{
}
public int? EntityId { get; set; }
[Display(Name = nameof(AlkalmazottResource.Vegzettseg), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.VegzettsegMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public int? AMITanariVegzettsegTipusId { get; set; }
[Display(Name = nameof(AlkalmazottResource.ZenemuveszetiTerulet), ResourceType = typeof(AlkalmazottResource))]
public bool ZenemuveszetiTerulet { get; set; }
[Display(Name = nameof(AlkalmazottResource.TancmuveszetiTerulet), ResourceType = typeof(AlkalmazottResource))]
public bool TancmuveszetiTerulet { get; set; }
[Display(Name = nameof(AlkalmazottResource.KepzoEsIparMuveszetiTerulet), ResourceType = typeof(AlkalmazottResource))]
public bool KepzoEsIparMuveszetiTerulet { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzinEsBabMuveszetiTerulet), ResourceType = typeof(AlkalmazottResource))]
public bool SzinEsBabMuveszetiTerulet { get; set; }
[Display(Name = nameof(AlkalmazottResource.KlasszikusZene), ResourceType = typeof(AlkalmazottResource))]
public List<int> KlasszikusZeneIds { get; set; }
[Display(Name = nameof(AlkalmazottResource.NepZene), ResourceType = typeof(AlkalmazottResource))]
public List<int> NepZeneIds { get; set; }
[Display(Name = nameof(AlkalmazottResource.JazzZene), ResourceType = typeof(AlkalmazottResource))]
public List<int> JazzZeneIds { get; set; }
[Display(Name = nameof(AlkalmazottResource.ElektroAkusztikusZene), ResourceType = typeof(AlkalmazottResource))]
public List<int> ElektroAkusztikusZeneIds { get; set; }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
if (!(ZenemuveszetiTerulet || TancmuveszetiTerulet || KepzoEsIparMuveszetiTerulet || SzinEsBabMuveszetiTerulet))
{
yield return new ValidationResult(string.Format(AlkalmazottResource.NincsMuveszetiAgMegadva));
}
if (ZenemuveszetiTerulet)
{
if (!(KlasszikusZeneIds.Any() || NepZeneIds.Any() || JazzZeneIds.Any() || ElektroAkusztikusZeneIds.Any()))
{
yield return new ValidationResult(string.Format(AlkalmazottResource.NincsZeneTipusMegadva));
}
}
}
public new KKAMITanarVegzettsegCo ToCo()
{
var co = new KKAMITanarVegzettsegCo();
co.EntityId = EntityId;
co.AlkalmazottId = AlkalmazottId;
co.KepesitesTipusId = KepesitesTipusId;
co.AMITanariVegzettsegTipusId = AMITanariVegzettsegTipusId;
co.ZenemuveszetiTerulet = ZenemuveszetiTerulet;
co.TancmuveszetiTerulet = TancmuveszetiTerulet;
co.KepzoEsIparMuveszetiTerulet = KepzoEsIparMuveszetiTerulet;
co.SzinEsBabMuveszetiTerulet = SzinEsBabMuveszetiTerulet;
co.KlasszikusZeneIds = KlasszikusZeneIds;
co.NepZeneIds = NepZeneIds;
co.JazzZeneIds = JazzZeneIds;
co.ElektroAkusztikusZeneIds = ElektroAkusztikusZeneIds;
return co;
}
public void FromCo(KKAMITanarVegzettsegCo co)
{
EntityId = co.EntityId;
AlkalmazottId = co.AlkalmazottId;
KepesitesTipusId = co.KepesitesTipusId;
AMITanariVegzettsegTipusId = co.AMITanariVegzettsegTipusId;
ZenemuveszetiTerulet = co.ZenemuveszetiTerulet;
TancmuveszetiTerulet = co.TancmuveszetiTerulet;
KepzoEsIparMuveszetiTerulet = co.KepzoEsIparMuveszetiTerulet;
SzinEsBabMuveszetiTerulet = co.SzinEsBabMuveszetiTerulet;
KlasszikusZeneIds = co.KlasszikusZeneIds;
NepZeneIds = co.NepZeneIds;
JazzZeneIds = co.JazzZeneIds;
ElektroAkusztikusZeneIds = co.ElektroAkusztikusZeneIds;
}
}
public class TanitoVegzettsegWizardModel : VegzettsegWizardPedagogusBaseModel
{
public TanitoVegzettsegWizardModel() : base(KKKepesitesJellTipusEnum.Tanito)
{
}
[Display(Name = nameof(AlkalmazottResource.Terulet), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.TeruletMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public List<int> MuveltsegiTeruletIds { get; set; }
public new KKTanitoVegzettsegCo ToCo()
{
var co = new KKTanitoVegzettsegCo();
co.AlkalmazottId = AlkalmazottId;
co.KepesitesTipusId = KepesitesTipusId;
co.MuveltsegiTeruletIds = MuveltsegiTeruletIds;
return co;
}
public void FromCo(KKTanitoVegzettsegCo co)
{
AlkalmazottId = co.AlkalmazottId;
KepesitesTipusId = co.KepesitesTipusId;
MuveltsegiTeruletIds = co.MuveltsegiTeruletIds;
}
}
public class GyogyPedagogusVegzettsegWizardModel : VegzettsegWizardPedagogusBaseModel
{
public GyogyPedagogusVegzettsegWizardModel() : base(KKKepesitesJellTipusEnum.Gyogypedagogus)
{
}
[Display(Name = nameof(AlkalmazottResource.Terulet), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.TeruletMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public List<int> GyogypedagogusTeruletIds { get; set; }
public new KKGyogyPedagogusVegzettsegCo ToCo()
{
var co = new KKGyogyPedagogusVegzettsegCo();
co.AlkalmazottId = AlkalmazottId;
co.KepesitesTipusId = KepesitesTipusId;
co.GyogypedagogusTeruletIds = GyogypedagogusTeruletIds;
return co;
}
public void FromCo(KKGyogyPedagogusVegzettsegCo co)
{
AlkalmazottId = co.AlkalmazottId;
KepesitesTipusId = co.KepesitesTipusId;
GyogypedagogusTeruletIds = co.GyogypedagogusTeruletIds;
}
}
}

View file

@ -0,0 +1,211 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Web.Helpers
@using Kreta.Resources
@using Kreta.Web.Security
@model AlkalmazottModModel
@using (Html.KretaForm("AlkalmazottModForm"))
{
@Html.KretaValidationSummary()
@Html.HiddenFor(x => x.AlkalmazottId)
@Html.HiddenFor(x => x.AlkalmazottArray)
@Html.HiddenFor(x => x.IsKozpontilagSzinkronizalt)
<div class="container-fluid details">
<div>
@if (!string.IsNullOrWhiteSpace(Model.AlkalmazottArray))
{
<div class="row">
@Html.KretaLabelFor(x => x.AlkalmazottNevArray, 3, 9)
</div>
}
else
{
<div class="row">
@Html.KretaLabelFor(x => x.AlkalmazottNev, 3, 9)
</div>
}
<div class="row">
<div class="col-xs-6 col-sm-6 col-md-3">
@Html.LabelFor(x => x.ModifyNem, null, htmlAttributes: new Dictionary<string, object>() { { "class", "windowInputLabel" } })
</div>
<div class="col-xs-12 col-sm-12 col-md-8">
@Html.KretaSelectorFor(x => x.ModifyNem, Model.NemList)
</div>
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.PedagogusFokozat, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetPedagogusFokozatList" }), "Text", "Value", onChangeFunction: "AlkalmazottHelper.changePedagogusFokozatComboBox('PedagogusFokozat')").AutoBind(true).Filter(FilterType.StartsWith).RenderWithName(3, 3)
@Html.KretaComboBoxFor(x => x.MunkaKor, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = Model.IsKozpontilagSzinkronizalt ? "GetMunkakorFullList" : "GetMunkakorList" }), "Text", "Value", onChangeFunction: "AlkalmazottHelper.setOktatoiFeladatokatIsEllatChkVisibility('MunkaKor')", isServerFiltering: false).AutoBind(true).MinLength(1).Filter(FilterType.StartsWith).RenderWithName(3, 3)
</div>
<div class="row">
<div id="SzakertoMesterpedagogusKutatotanarDiv">
@Html.KretaComboBoxFor(x => x.SzakertoMesterpedagogusKutatotanar, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperEnumApi", action = "GetIgenNemEnumList" })).RenderWithName(3, 3)
</div>
@if(Model.IsKlebelsberg) {
@Html.KretaComboBoxFor(x => x.VezetoPedagogusVezetoOvodaPedagogus, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperEnumApi", action = "GetIgenNemEnumList" })).RenderWithName(3, 3)
}
</div>
<div id="TovabbiMunkakorTipusOktatoiFeladatDiv" class="row" style="display: none;">
@Html.KretaEmpty()
@Html.KretaComboBoxFor(x => x.OktatoiFeladatokatIsEllat, Model.IgenNemList).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.FoglalkoztatasiJogviszony, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFoglalkoztatasiJogviszonyList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
</div>
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.NeedUpdateMunkaidoAdatai).RenderWithName(3, 3)
</div>
<div id="MunkaidoAdataiHiddenInputsDiv" class="displayNone">
<h1>@AlkalmazottResource.MunkaidoAdatai</h1>
<div class="row">
@Html.KretaComboBoxFor(x => x.FoglalkoztatasTipusa, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = Model.IsKozpontilagSzinkronizalt ? "GetFoglalkoztatasTipusaFullList" : "GetFoglalkoztatasTipusaList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
<div class="ReszmunkaidosSzazalek">
@Html.KretaNumericFor(x => x.ReszmunkaidosSzazalek).Min(0).Max(100).RenderWithName(3, 3)
</div>
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.VezetoiOraszamOka, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetVezetoiOraszamOkaTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
<div class="oraszam">
@Html.KretaNumericFor(x => x.Oraszam).RenderWithName(3, 3)
</div>
</div>
<div class="row">
<div class="FeladattalTerheltOraszam">
@Html.KretaComboBoxFor(x => x.MunkaidoKedvezmenyOka, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetMunkaidoKedvezmenyOkaList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
@if (Model.MunkaidoKedvezmenyOraszam.HasValue && Model.MunkaidoKedvezmenyOraszam.Value > 0)
{
@Html.KretaNumericFor(x => x.MunkaidoKedvezmenyOraszam).Enable(false).RenderWithName(3, 3)
}
else
{
@Html.KretaNumericFor(x => x.MunkaidoKedvezmenyOraszam).Value(0).Enable(false).RenderWithName(3, 3)
}
</div>
</div>
<div class="row">
@Html.KretaEmpty()
<div class="PedagogusHetiOraszama">
@Html.KretaTextBoxFor(x => x.PedagogusHetiOraszama).Enable(false).RenderWithName(3, 3)
</div>
</div>
</div>
<div>
<h1>@AlkalmazottResource.EgyebMunkaugyiAdatok</h1>
<div class="row">
@Html.KretaDatePickerFor(x => x.AlkalmazasKezdete).RenderWithName(3, 3)
@Html.KretaDatePickerFor(x => x.AlkalmazasVege).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.FeladatellatasiHely, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFeladatellatasiHelyek" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
@Html.KretaComboBoxFor(x => x.TartosHelyettesites, Model.IgenNemList).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.Nyugdijas, Model.IgenNemList).RenderWithName(3, 3)
@Html.KretaComboBoxFor(x => x.Foallasu, Model.IgenNemList).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.Szakvizsga, Model.IgenNemList).RenderWithName(3, 3)
@Html.KretaComboBoxFor(x => x.SzakertoiVagyVizsgaelnokiTevekenysegu, Model.IgenNemList).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.SzakmaiTovabbkepzes, Model.IgenNemList).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.Attanito, Model.IgenNemList).RenderWithName(3, 3)
@Html.KretaComboBoxFor(x => x.AttanitoMasIntezmeny, Model.IgenNemList).RenderWithName(3, 3)
</div>
@if (Model.IsNszfhUjSzkt)
{
<div class="row">
@Html.KretaComboBoxFor(x => x.IsAttanitoSzCnBelul, Model.IgenNemList).RenderWithName(3, 3)
@Html.KretaComboBoxFor(x => x.IsOsztalyfonok, Model.IgenNemList).RenderWithName(3, 3)
</div>
}
<div class="row">
@Html.KretaComboBoxFor(x => x.AllandoHelyettesitesre, Model.IgenNemList).RenderWithName(3, 3)
</div>
@if (ClaimData.IsSelectedTanev21_22OrLater)
{
<div class="row">
@Html.KretaComboBoxFor(x => x.IsInternetetOktCelraHasznal, Model.IgenNemList).RenderWithName(3, 3)
@Html.KretaComboBoxFor(x => x.IsInformatKepIsmRendelkezik, Model.IgenNemList).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.IsIktEszkozoketLgalabb40Hasznal, Model.IgenNemList).RenderWithName(3, 3)
@Html.KretaComboBoxFor(x => x.HasEfopEszkoz, Model.IgenNemList).RenderWithName(3, 3)
</div>
}
</div>
@if (ClaimData.IsSzakkepzoIntezmeny)
{
<div>
<h1>@AlkalmazottResource.SZIRBeallitasok</h1>
<div class="row">
@Html.KretaComboBoxFor(x => x.IsKuldhetoPedMinositesSzRnek, Model.IgenNemList).RenderWithName(3, 3)
@Html.KretaEmpty(6)
</div>
</div>
}
</div>
}
<script>
$(document).ready(function () {
$('#NeedUpdateMunkaidoAdatai').change(function () {
if ($(this).is(":checked")) {
$("#MunkaidoAdataiHiddenInputsDiv").removeClass("displayNone");
}
else {
$("#MunkaidoAdataiHiddenInputsDiv").addClass("displayNone");
}
$("#MunkaidoKedvezmenyOka").data('kendoComboBox').value('');
$("#FoglalkoztatasTipusa").data('kendoComboBox').value('').change();
$("#VezetoiOraszamOka").data('kendoComboBox').value('');
$("#Oraszam").data('kendoNumericTextBox').value(0)
$("#MunkaidoKedvezmenyOraszam").data('kendoNumericTextBox').value(0);
$("#ReszmunkaidosSzazalek").data('kendoNumericTextBox').value(0);
});
AlkalmazottHelper.setMunkaugyiAdatok("FoglalkoztatasTipusa", "Oraszam", "MunkaidoKedvezmenyOraszam", "MunkaidoKedvezmenyOka", "ReszmunkaidosSzazalek", "VezetoiOraszamOka");
if (CommonUtils.parseBool("@Model.IsNszfhUjSzkt")) {
var label = $('[for="VezetoiOraszamOka"]');
if (CommonUtils.isNullOrUndefined(label) == false) {
label.html(label.html().replace("@Html.Raw(AlkalmazottResource.VezetoiOraszamOka)", "@Html.Raw(AlkalmazottResource.VezetoiMegbizas)"));
}
var label2 = $('[for="MunkaidoKedvezmenyOka"]');
if (CommonUtils.isNullOrUndefined(label2) == false) {
label2.html(label2.html().replace("@Html.Raw(AlkalmazottResource.FeladattalTerheltOraszamOka)", "@Html.Raw(AlkalmazottResource.Egyebtevekenysegek)"));
}
}
AlkalmazottHelper.changePedagogusFokozatComboBox("PedagogusFokozat");
if (!CommonUtils.isNullOrUndefined($("#IsKozpontilagSzinkronizalt").val()) && CommonUtils.parseBool($("#IsKozpontilagSzinkronizalt").val())) {
setItemisKozpontilagSzinkronizalt("ModifyNem");
setItemisKozpontilagSzinkronizalt("PedagogusFokozat");
//setItemisKozpontilagSzinkronizalt("MunkaKor");
setItemisKozpontilagSzinkronizalt("FoglalkoztatasiJogviszony");
setItemisKozpontilagSzinkronizalt("AlkalmazasKezdete");
//ssetItemisKozpontilagSzinkronizalt("AlkalmazasVege");
}
function setItemisKozpontilagSzinkronizalt(itemId) {
$("#" + itemId).closest('div').addClass('disabledItem');
var kozpontilagSzinkronizaltNemModosithatoText = "@AlkalmazottResource.KozpontilagSzinkronizaltNemModosithato";
var label = $("[for*='" + $("#" + itemId).prop('name') + "']");
var vanTooltipje = label.parent().hasClass('kretaLabelTooltip');
if (vanTooltipje) {
label.find('.kretaLabelTooltipText').html(kozpontilagSzinkronizaltNemModosithatoText);
}
else {
label.parent().addClass('kretaLabelTooltip');
label.html(label.html() + "<img class='kretaLabelTooltipImg'><span class='kretaLabelTooltipText'>" + kozpontilagSzinkronizaltNemModosithatoText + "</span>");
}
}
});
</script>

View file

@ -0,0 +1,10 @@
@using Kreta.Resources
@using Kreta.Web.Areas.Alkalmazott.Models
@model FeladatellatasiHelyPopupModel
<div class="@BootsrapHelper.GetSizeClasses(12)" style="margin: 20px 0px;">
@AlkalmazottResource.KovTanevesFelhelyNemLetezik @AlkalmazottResource.KovTanevesFelhelyValasztas
</div>
@Html.KretaComboBoxFor(x => x.FeladatellatasiHelyIdPopup, Model.FeladatellatasiHelyList).RenderWithName()

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,27 @@
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@model AlkalmazottDetailModel
<div class="container-fluid">
@(
Html.KretaGrid<AlkalmazottInfoModel.EszkozModel>(
name: "EszkozGrid",
getUrl: new GridApiUrl("AlkalmazottApi", "GetEszkozGrid", new Dictionary<string, string> { { "Id", Model.Id.ToString() } })
)
.Columns(columns =>
{
columns.Bound(c => c.Nev);
columns.Bound(c => c.Darab).Width("10%");
columns.Bound(c => c.Tipus_DNAME);
})
.FunctionCommand(Html, new List<FunctionCommand>
{
new FunctionCommand { Name = ImportExportCommonResource.Export, ClientAction = "function() {EszkozHelper.getExportEszkoz(" + Model.Id.ToString() + "); }" }
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
</div>

View file

@ -0,0 +1,28 @@
@using Kreta.BusinessLogic.Classes
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@model AlkalmazottDetailModel
<div class="container-fluid">
@(
Html.KretaGrid<AlkalmazottInfoModel.PedagogusEletpalyamodellModel>(
name: "PedagogusEletpalyamodellGrid",
getUrl: new GridApiUrl("AlkalmazottApi", "GetPedagogusEletpalyamodellGrid", new Dictionary<string, string> { { "Id", Model.Id.ToString() } })
)
.Columns(columns =>
{
columns.Bound(c => c.Fokozat_DNAME);
columns.Bound(c => c.Statusz_DNAME);
columns.Bound(c => c.Datum).Width("10%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
})
.FunctionCommand(Html, new List<FunctionCommand>
{
new FunctionCommand { Name = ImportExportCommonResource.Export, ClientAction = "function() {PedagogusEletpalyamodellHelper.getExportPedagogusEletpalyamodell(" + Model.Id.ToString() + "); }" }
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
</div>

View file

@ -0,0 +1,8 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@model AlkalmazottInfoModel.AlapadatModel
<div class="container-fluid details">
<div class="row">
@Html.KretaLabelFor(model => model.IsKuldhetoPedMinositesSzRnek_Str, 3, 3)
</div>
</div>

View file

@ -0,0 +1,59 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@model InfoTovabbiMunkaugyiAdatokPopUpModel
@using (Html.KretaForm("TovabbiMunkaugyiAdatokForm"))
{
@Html.KretaValidationSummary()
@Html.HiddenFor(model => model.TovabbiMunkaugyAdatModelId)
@Html.HiddenFor(model => model.AlkalmazottId)
<div class="container-fluid details">
<div>
<div class="row">
@Html.KretaLabelFor(x => x.PedagogusFokozat_BNAME, 3, 3)
@Html.KretaLabelFor(x => x.Munkakor_BNAME, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(x => x.FoglalkoztatasiJogviszony_BNAME, 3, 9)
</div>
</div>
<div>
<h1>@AlkalmazottResource.MunkaidoAdatai</h1>
<div class="row">
@Html.KretaLabelFor(x => x.FoglalkoztatasTipusa_BNAME, 3, 3)
@Html.KretaLabelFor(x => x.KotelezoOraszam, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(x => x.MunkaidoKedvezmenyOka_BNAME, 3, 3)
@Html.KretaLabelFor(x => x.MunkaidoKedvezmenyOraszam, 3, 3)
</div>
<div class="row">
@Html.KretaEmpty()
@Html.KretaLabelFor(x => x.PedagogusHetiOraszama, 3, 3)
</div>
</div>
<div>
<h1>@AlkalmazottResource.EgyebMunkaugyiAdatok</h1>
<div class="row">
@Html.KretaLabelFor(x => x.AlkalmazasKezdete_SDATE, 3, 3)
@Html.KretaLabelFor(x => x.AlkalmazasVege_SDATE, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(x => x.FeladatellatasiHely_BNAME, 3, 9)
</div>
<div class="row">
@Html.KretaLabelFor(x => x.Nyugdijas_BNAME, 3, 3)
</div>
</div>
</div>
}
<script>
$(document).ready(function () {
if (CommonUtils.parseBool("@Model.IsNszfhUjSzkt")) {
var munkaidoKedvezmenyOka = document.querySelector('[for="MunkaidoKedvezmenyOka_BNAME"]');
munkaidoKedvezmenyOka.innerHTML = munkaidoKedvezmenyOka.innerHTML.replace("@Html.Raw(AlkalmazottResource.FeladattalTerheltOraszamOka)", "@Html.Raw(AlkalmazottResource.Egyebtevekenysegek)");
}
});
</script>

View file

@ -0,0 +1,31 @@
@using Kreta.Resources;
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Web.Security;
@model AlkalmazottDetailModel
<div class="container-fluid">
@(
Html.KretaGrid<AlkalmazottInfoModel.TovabbiMunkaugyiAdatokGridModel>(
name: "TovabbiMunkaugyiAdatokGrid",
getUrl: new GridApiUrl("AlkalmazottApi", "GetTovabbiMunkaugyiAdatokGrid", new Dictionary<string, string> { { "Id", Model.Id.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.Adatok, ClientAction = "TovabbiMunkaugyiAdatokHelper.infoTovabbiMunkaugyiAdatok", IconEnum = Kreta.Enums.ManualEnums.GridRowFunctionIconEnum.Adatok },
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
@Html.KretaEmpty()
@Html.KretaEmpty()
@Html.KretaEmpty()
</div>

View file

@ -0,0 +1,31 @@
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.BusinessLogic.Classes
@using Kreta.Resources
@model AlkalmazottDetailModel
<div class="container-fluid">
@(
Html.KretaGrid<AlkalmazottInfoModel.TovabbkepzesModel>(
name: "TovabbkepzesGrid",
getUrl: new GridApiUrl(Constants.ApiControllers.AlkalmazottApi, "GetTovabbkepzesGrid", new Dictionary<string, string> { { "Id", Model.Id.ToString() } })
)
.Columns(columns =>
{
columns.Bound(c => c.TovabbkepzesMegnevezese);
columns.Bound(c => c.EngedelySzama);
columns.Bound(c => c.Helyszin);
columns.Bound(c => c.Datum).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
columns.Bound(c => c.Oraszam);
columns.Bound(c => c.TanusitvanySorszama);
})
.FunctionCommand(Html, new List<FunctionCommand>
{
new FunctionCommand { Name = ImportExportCommonResource.Export, ClientAction = "function() {TovabbkepzesHelper.getExportTovabbkepzes(" + Model.Id.ToString() + "); }" }
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
</div>

View file

@ -0,0 +1,27 @@
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@model AlkalmazottDetailModel
<div class="container-fluid">
@(
Html.KretaGrid<AlkalmazottInfoModel.VegzettsegModel>(
name: "VegzettsegGrid",
getUrl: new GridApiUrl("AlkalmazottApi", "GetVegzettsegGrid", new Dictionary<string, string> { { "Id", Model.Id.ToString() } })
)
.Columns(columns =>
{
columns.Bound(c => c.Vegzettseg_DNAME);
columns.Bound(c => c.Kepesites);
columns.Bound(c => c.Egyeb);
})
.FunctionCommand(Html, new List<FunctionCommand>
{
new FunctionCommand { Name = ImportExportCommonResource.Export, ClientAction = "function() {VegzettsegHelper.getExportVegzettseg(" + Model.Id.ToString() + "); }" }
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
</div>

View file

@ -0,0 +1,33 @@
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Alkalmazott.Models
@model AlkalmazottDetailModel
<div class="container-fluid">
@(
Html.KretaGrid<AlkalmazottInfoModel.KKVegzettsegMainModel>(
name: "KKVegzettsegMainGrid",
allowPaging: false,
allowFilterable: false,
allowSorting: false,
allowScrolling:false,
getUrl: new GridApiUrl("AlkalmazottApi", "GetKKVegzettsegMainGrid", new Dictionary<string, string> { { "Id", Model.Id.ToString() } }),
clientTemplateWholeDataRow: true,
clientTemplate: "detailGrid-template",
clientTemplateUrl: Url.Action("VegzettsegDetailGrid", "Alkalmazott", new { area = "Alkalmazott" })
)
.Columns(columns =>
{
columns.Bound(c => c.Kepesites);
columns.Bound(c => c.KepesitesTipus);
columns.Bound(c => c.Vegzettseg);
columns.Bound(c => c.MuveszetiAg);
columns.Bound(c => c.Egyeb);
})
)
@Html.KretaGridTemplate("detailGrid-template")
@Html.KretaEmpty()
@Html.KretaEmpty()
@Html.KretaEmpty()
</div>

View file

@ -0,0 +1,33 @@
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@model AlkalmazottModel
<div class="container-fluid">
@(
Html.KretaGrid<AlkalmazottInfoModel.VegzettsegModel>(
name: "VegzettsegGrid",
getUrl: new GridApiUrl("AlkalmazottApi", "GetVegzettsegGrid", new Dictionary<string, string> { { "Id", Model.AlkalmazottId.ToString() } })
)
.Columns(columns =>
{
columns.Bound(c => c.Vegzettseg_DNAME);
columns.Bound(c => c.Kepesites);
columns.Bound(c => c.Egyeb);
})
.RowFunction(Html, new List<RowFunction> {
new RowFunction { Name = CommonResource.Modositas, ClientAction = "VegzettsegHelper.modifyVegzettseg", IconEnum = Kreta.Enums.ManualEnums.GridRowFunctionIconEnum.Modositas },
new RowFunction { Name= CommonResource.Torles, ClientAction = "VegzettsegHelper.deleteVegzettsegConfirmWindow", IconEnum = Kreta.Enums.ManualEnums.GridRowFunctionIconEnum.Torles }
})
.FunctionCommand(Html, new List<FunctionCommand> {
new FunctionCommand { Name = AlkalmazottResource.UjVegzettseg, ClientAction = string.Format("function(){{ VegzettsegHelper.newVegzettseg({0}); }}", Model.AlkalmazottId) },
new FunctionCommand { Name = ImportExportCommonResource.Export, ClientAction = "function() {VegzettsegHelper.getExportVegzettseg(" + Model.AlkalmazottId + "); }" }
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
@Html.KretaEmpty()
@Html.KretaEmpty()
@Html.KretaEmpty()
</div>

View file

@ -0,0 +1,17 @@
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Alkalmazott.Models
@model VegzettsegDetailModel
@(
Html.KretaGrid<AlkalmazottInfoModel.KKVegzettsegDetailModel>(
name: "KKVegzettsegDetailGrid" + Guid.NewGuid(),
allowFilterable: false,
allowSorting: false,
allowScrolling:false,
allowPaging: false,
getUrl: new GridApiUrl("AlkalmazottApi", "GetKKVegzettsegDetailGrid", new Dictionary<string, string> { { "Id", Model.EntityId.HasValue? Model.EntityId.ToString() :"0" }, { "tipus", Model.KepesitesTipus.HasValue?Model.KepesitesTipus.ToString() : "-1" }, { "alkalmazottId", Model.AlkalmazottId.ToString() } })
)
.Columns(columns =>
{
columns.Bound(c => c.Terulet);
})
)

View file

@ -0,0 +1,38 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@model BetoltetlenAllashelyModel
@using (Html.KretaForm("NewBetoltetlenAllashelyForm"))
{
@Html.KretaValidationSummary()
@Html.HiddenFor(x => x.SzuletesiCsaladiNev)
@Html.HiddenFor(x => x.SzuletesiUtonev)
@Html.HiddenFor(x => x.AnyjaCsaladiNeve)
@Html.HiddenFor(x => x.AnyjaUtoneve)
@Html.HiddenFor(x => x.SzuletesiIdo)
@Html.HiddenFor(x => x.SzuletesiHely)
@Html.HiddenFor(x => x.Nem)
@Html.HiddenFor(x => x.FoglalkoztatasiJogviszony)
@Html.HiddenFor(x => x.BetoltetlenAllashely)
@Html.HiddenFor(x => x.NevEloTag)
@Html.HiddenFor(x => x.Cim)
@Html.HiddenFor(x => x.Iranyitoszam)
@Html.HiddenFor(x => x.Varos)
<div class="container-fluid details">
<div class="row">
@Html.KretaLabelFor(x => x.NevEloTag)
</div>
<div class="row">
@Html.KretaTextBoxFor(x => x.MunkavallaloCsaladiNev).RenderWithName(3, 3)
@Html.KretaTextBoxFor(x => x.MunkavallaloUtonev).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaNumericFor(x => x.KotelezoOraszam).RenderWithName(3, 3)
@*@Html.KretaCheckBoxFor(x => x.SzabadAllashely).RenderWithName(3, 3)*@
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.MunkaKor, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetMunkakorList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
@Html.KretaComboBoxFor(x => x.FeladatellatasiHely, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFeladatellatasiHelyek" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
</div>
</div>
}

View file

@ -0,0 +1,9 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@model AlkalmazottModel
@{
bool isAutoBindNeeded = Model.CimElerhetosegModel.IsAutoBindNeeded;
}
<div id="CimElerhetosegModelForm" class="container-fluid details">
@Html.Partial("_Cim_Elerhetoseg_Partial", Model.CimElerhetosegModel)
</div>

View file

@ -0,0 +1,37 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@model HitoktatoModel
@using (Html.KretaForm("NewHitoktatoForm"))
{
@Html.KretaValidationSummary()
@Html.HiddenFor(x => x.SzuletesiCsaladiNev)
@Html.HiddenFor(x => x.SzuletesiUtonev)
@Html.HiddenFor(x => x.AnyjaCsaladiNeve)
@Html.HiddenFor(x => x.AnyjaUtoneve)
@Html.HiddenFor(x => x.SzuletesiIdo)
@Html.HiddenFor(x => x.SzuletesiHely)
@Html.HiddenFor(x => x.Nem)
@Html.HiddenFor(x => x.FoglalkoztatasiJogviszony)
@Html.HiddenFor(x => x.BetoltetlenAllashely)
@Html.HiddenFor(x => x.NevEloTag)
@Html.HiddenFor(x => x.Cim)
@Html.HiddenFor(x => x.Iranyitoszam)
@Html.HiddenFor(x => x.Varos)
<div class="container-fluid details">
<div class="row">
@Html.KretaLabelFor(x => x.NevEloTag)
</div>
<div class="row">
@Html.KretaTextBoxFor(x => x.MunkavallaloCsaladiNev).RenderWithName(3, 3)
@Html.KretaTextBoxFor(x => x.MunkavallaloUtonev).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaNumericFor(x => x.KotelezoOraszam).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.MunkaKor, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetMunkakorList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
@Html.KretaComboBoxFor(x => x.FeladatellatasiHely, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFeladatellatasiHelyek" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
</div>
</div>
}

View file

@ -0,0 +1,40 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Web.Security
@using Kreta.Resources
@model KulsoGyakorlatiAllashelyModel
@using (Html.KretaForm("NewKulsoGyakorlatiAllashelyForm"))
{
@Html.KretaValidationSummary()
@Html.HiddenFor(x => x.SzuletesiCsaladiNev)
@Html.HiddenFor(x => x.SzuletesiUtonev)
@Html.HiddenFor(x => x.AnyjaCsaladiNeve)
@Html.HiddenFor(x => x.AnyjaUtoneve)
@Html.HiddenFor(x => x.SzuletesiIdo)
@Html.HiddenFor(x => x.SzuletesiHely)
@Html.HiddenFor(x => x.Nem)
@Html.HiddenFor(x => x.FoglalkoztatasiJogviszony)
@Html.HiddenFor(x => x.BetoltetlenAllashely)
@Html.HiddenFor(x => x.NevEloTag)
@Html.HiddenFor(x => x.Cim)
@Html.HiddenFor(x => x.Iranyitoszam)
@Html.HiddenFor(x => x.Varos)
<div class="container-fluid details">
<div class="row">
@Html.KretaLabelFor(x => x.NevEloTag)
</div>
<div class="row">
@Html.KretaTextBoxFor(x => x.MunkavallaloCsaladiNev).RenderWithName(3, 3)
@Html.KretaTextBoxFor(x => x.MunkavallaloUtonev).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaNumericFor(x => x.KotelezoOraszam).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.MunkaKor, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetMunkakorList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
@Html.KretaComboBoxFor(x => x.FeladatellatasiHely, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFeladatellatasiHelyek" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
</div>
</div>
}

View file

@ -0,0 +1,67 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@using Kreta.Enums
@model KulsosAlkalmazottModel
@using (Html.KretaForm("NewKulsosAlkalmazottForm"))
{
@Html.KretaValidationSummary()
@Html.HiddenFor(x => x.SzuletesiCsaladiNev)
@Html.HiddenFor(x => x.SzuletesiUtonev)
@Html.HiddenFor(x => x.AnyjaCsaladiNeve)
@Html.HiddenFor(x => x.AnyjaUtoneve)
@Html.HiddenFor(x => x.SzuletesiIdo)
@Html.HiddenFor(x => x.SzuletesiHely)
@Html.HiddenFor(x => x.Nem)
@Html.HiddenFor(x => x.FoglalkoztatasiJogviszony)
@Html.HiddenFor(x => x.BetoltetlenAllashely)
@Html.HiddenFor(x => x.NevEloTag)
@Html.HiddenFor(x => x.Cim)
@Html.HiddenFor(x => x.Iranyitoszam)
@Html.HiddenFor(x => x.Varos)
<div class="container-fluid details">
<div class="row">
@Html.KretaLabelFor(x => x.NevEloTag)
</div>
<div class="row">
@Html.KretaTextBoxFor(x => x.MunkavallaloCsaladiNev).RenderWithName(3, 3)
@Html.KretaTextBoxFor(x => x.MunkavallaloUtonev).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaNumericFor(x => x.KotelezoOraszam).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.MunkaKor, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetMunkakorList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
@Html.KretaComboBoxFor(x => x.FeladatellatasiHely, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFeladatellatasiHelyek" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
</div>
<div id="iskolaorAdatokContainer" style="display: none;">
<div class="row">
@Html.KretaTextBoxFor(x => x.BelepesiNev, new Dictionary<string, object> { { "autocomplete", "new-password" } }).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottBelepesiAdatokFelhasznalonevTooltip)
@Html.KretaPasswordFor(x => x.Jelszo, new Dictionary<string, object> { { "autocomplete", "new-password" } }).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottBelepesiAdatokJelszoTooltip)
</div>
<div class="row">
@Html.KretaTextBoxFor(x => x.EmailCim).RenderWithName(3, 3, tooltipResource: TanuloResource.ElerhetosegEmailTooltip)
@Html.KretaComboBoxFor(x => x.EmailTipus, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetEmailTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaTextBoxFor(x => x.Telefon).RenderWithName(3, 3, tooltipResource: TanuloResource.ElerhetosegTelefonszamTooltip)
@Html.KretaComboBoxFor(x => x.TelefonTipus, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetTelefonTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
</div>
</div>
</div>
}
<script type="text/javascript">
$(document).ready(function () {
$("#MunkaKor").change(function () {
if ($(this).val() == @((int)MunkakorTipusEnum.iskolaor)) {
$("#iskolaorAdatokContainer").show();
}
else {
$("#iskolaorAdatokContainer").hide();
}
});
});
</script>

View file

@ -0,0 +1,255 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@using Kreta.Web.Security
@model AlkalmazottModel
@Html.HiddenFor(x => x.MunkaugyAdatModel.IsDualisKepzohelyiOktato)
@Html.HiddenFor(x => x.MunkaugyAdatModel.FeladatellatasiHelyKovTanev)
@Html.HiddenFor(x => x.MunkaugyAdatModel.SzakertoMesterpedagogus)
@Html.HiddenFor(x => x.MunkaugyAdatModel.IsSzakertoKutatotanar)
@Html.HiddenFor(x => x.MunkaugyAdatModel.IsAlkalmazottMentorAdatokKitoltve)
<div class="container-fluid details">
<div>
<div class="row">
@Html.KretaComboBoxFor(x => x.MunkaugyAdatModel.PedagogusFokozat, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetPedagogusFokozatList" }), "Text", "Value", onChangeFunction: "AlkalmazottHelper.changePedagogusFokozatComboBox('MunkaugyAdatModel_PedagogusFokozat')").AutoBind(true).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottElsodlegesMunkaugyiAdatokPedagogusFokozatTooltip)
@Html.KretaComboBoxFor(x => x.MunkaugyAdatModel.MunkaKor, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = Model.IsKozpontilagSzinkronizalt ? "GetMunkakorFullList" : "GetMunkakorList" }), "Text", "Value", isServerFiltering: false, onChangeFunction: "AlkalmazottHelper.setOktatoiFeladatokatIsEllatChkVisibility('MunkaugyAdatModel_MunkaKor')").AutoBind(true).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottElsodlegesMunkaugyiAdatokMunkakorTooltip)
</div>
<div class="row">
<div id="SzakertoMesterpedagogusKutatotanarDiv">
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.SzakertoMesterpedagogusKutatotanar).RenderWithName(3, 3)
</div>
@if (Model.MunkaugyAdatModel.IsKlebelsberg)
{
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.VezetoPedagogusVezetoOvodaPedagogus).RenderWithName(3, 3)
}
</div>
<div id="TovabbiMunkakorTipusOktatoiFeladatDiv" class="row" style="display: none;">
@Html.KretaEmpty()
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.OktatoiFeladatokatIsEllat).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.MunkaugyAdatModel.FoglalkoztatasiJogviszony, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFoglalkoztatasiJogviszonyList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottElsodlegesMunkaugyiAdatokFoglalkoztatasiJogviszonyTooltip)
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.UtazoGyogypedagogus).RenderWithName(3, 3)
</div>
</div>
<div>
<h1>@AlkalmazottResource.MunkaidoAdatai</h1>
<div class="row">
@Html.KretaComboBoxFor(x => x.MunkaugyAdatModel.FoglalkoztatasTipusa, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = Model.IsKozpontilagSzinkronizalt ? "GetFoglalkoztatasTipusaFullList" : "GetFoglalkoztatasTipusaList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottElsodlegesMunkaugyiAdatokFoglalkoztatasTipusaTooltip)
<div class="ReszmunkaidosSzazalek">
@Html.KretaNumericFor(x => x.MunkaugyAdatModel.ReszmunkaidosSzazalek).Min(0).Max(100).RenderWithName(3, 3)
</div>
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.MunkaugyAdatModel.VezetoiOraszamOka, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetVezetoiOraszamOkaTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottElsodlegesMunkaugyiAdatokVezetoiOraszamOkaTooltip)
<div class="oraszam">
@Html.KretaNumericFor(x => x.MunkaugyAdatModel.Oraszam).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottElsodlegesMunkaugyiAdatokOraszamTooltip)
</div>
</div>
<div class="row">
<div class="FeladattalTerheltOraszam">
@Html.KretaComboBoxFor(x => x.MunkaugyAdatModel.MunkaidoKedvezmenyOka, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetMunkaidoKedvezmenyOkaList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottElsodlegesMunkaugyiAdatokFeladattalTerheltOraszamOkaTooltip)
@if (Model.MunkaugyAdatModel.MunkaidoKedvezmenyOraszam.HasValue && Model.MunkaugyAdatModel.MunkaidoKedvezmenyOraszam.Value > 0)
{
@Html.KretaNumericFor(x => x.MunkaugyAdatModel.MunkaidoKedvezmenyOraszam).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottElsodlegesMunkaugyiAdatokMunkaidokedvezmenyOraszamaTooltip)
}
else
{
@Html.KretaNumericFor(x => x.MunkaugyAdatModel.MunkaidoKedvezmenyOraszam).Value(0).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottElsodlegesMunkaugyiAdatokMunkaidokedvezmenyOraszamaTooltip)
}
</div>
</div>
@if (Model.MunkaugyAdatModel.IsNszfhUjSzkt)
{
<div class="row">
@Html.KretaComboBoxFor(x => x.MunkaugyAdatModel.EgyebTevekenysegekTipusId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetEgyebTevekenysegekList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
</div>
}
<div class="row">
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.CsokkentettMunkaidos).RenderWithName(3, 3)
<div class="PedagogusHetiOraszama">
@Html.KretaTextBoxFor(x => x.MunkaugyAdatModel.PedagogusHetiOraszama).Enable(false).RenderWithName(3, 3)
</div>
</div>
</div>
<div>
<h1>@AlkalmazottResource.EgyebMunkaugyiAdatok</h1>
<div class="row">
@Html.KretaDatePickerFor(x => x.MunkaugyAdatModel.AlkalmazasKezdete).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottElsodlegesMunkaugyiAdatokAlkalmazasKezdeteTooltip)
@Html.KretaDatePickerFor(x => x.MunkaugyAdatModel.AlkalmazasVege).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottElsodlegesMunkaugyiAdatokAlkalmazasVegeTooltip)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.MunkaugyAdatModel.FeladatellatasiHely, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFeladatellatasiHelyek" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottElsodlegesMunkaugyiAdatokFeladatEllatasiHelyTooltip)
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.TartosHelyettesites).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottElsodlegesMunkaugyiAdatokTartosanTavollevoTooltip)
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.BetoltetlenAllashely).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.Foallasu).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottElsodlegesMunkaugyiAdatokFoallasuTooltip)
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.IsKulsoAlkalmazott).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.Nyugdijas).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottElsodlegesMunkaugyiAdatokNyugdijasTooltip)
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.SzakertoiVagyVizsgaelnokiTevekenysegu).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.SzakmaiTovabbkepzes).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.Szakvizsga).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.Attanito).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.AttanitoMasIntezmeny).RenderWithName(3, 3)
</div>
@if (Model.MunkaugyAdatModel.IsNszfhUjSzkt)
{
<div class="row">
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.IsAttanitoSzCnBelul).RenderWithName(3, 3)
</div>
}
<div class="row">
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.AllandoHelyettesitesre).RenderWithName(3, 3)
@Html.KretaLabelFor(x => x.MunkaugyAdatModel.SZTSZKod, 3, 3)
</div>
@if (Model.MunkaugyAdatModel.IsNszfhUjSzkt)
{
<div class="row">
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.IsOsztalyfonok).RenderWithName(3, 3)
</div>
}
@if (Model.MunkaugyAdatModel.IsDualisKepzohelyiOktato)
{
<div class="row">
@Html.KretaTextBoxFor(x => x.MunkaugyAdatModel.DualisKepzohelyNeve).RenderWithName(3, 3)
@Html.KretaTextBoxFor(x => x.MunkaugyAdatModel.DualisKepzohelyAdoszama).RenderWithName(3, 3)
</div>
<div class="row">
@if(Model.MunkaugyAdatModel.IsDualisKepzesEnabled)
{
@Html.KretaComboBoxFor(x => x.MunkaugyAdatModel.OktatoSzervezetId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetDualisKepzohelyek" }), "Text", "Value", isSingleElementSet: false).AutoBind(true).RenderWithName(3, 3)
}
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.IsSzakiranyuOktatasertFelelos).RenderWithName(3, 3)
</div>
}
@if (ClaimData.IsSelectedTanev21_22OrLater)
{
<div class="row">
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.IsInternetetOktCelraHasznal).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.IsInformatKepIsmRendelkezik).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.IsIktEszkozoketLgalabb40Hasznal).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.HasEfopEszkoz).RenderWithName(3, 3)
</div>
}
@if (Model.MunkaugyAdatModel.IsApaczaiMentorVisible)
{
<div class="row">
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.IsApaczaiMentor).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottElsodlegesMunkaugyiAdatokApaczaiMentorTooltip)
@Html.KretaLabelFor(x => x.MunkaugyAdatModel.SZTSZKod2, 3, 3).RenderWithTooltip(3, 3, tooltipResource: AlkalmazottResource.ApaczaiMentorprogramhozKapcsolodoSZTSZTooltip)
</div>
<div class="row BankszamlaNyugdijInfoVisible">
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.HasBankszamlaInfo).Enable(false).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.HasNyugdijInfo).Enable(false).RenderWithName(3, 3)
</div>
}
</div>
</div>
<script>
$(document).ready(function () {
AlkalmazottHelper.setMunkaugyiAdatok("MunkaugyAdatModel_FoglalkoztatasTipusa", "MunkaugyAdatModel_Oraszam", "MunkaugyAdatModel_MunkaidoKedvezmenyOraszam", "MunkaugyAdatModel_MunkaidoKedvezmenyOka", "MunkaugyAdatModel_ReszmunkaidosSzazalek", "MunkaugyAdatModel_VezetoiOraszamOka");
AlkalmazottHelper.changePedagogusFokozatComboBox("MunkaugyAdatModel_PedagogusFokozat");
if (CommonUtils.parseBool("@Model.MunkaugyAdatModel.IsNszfhUjSzkt")) {
var vezetiOraszamOka = document.querySelector('[for="MunkaugyAdatModel.VezetoiOraszamOka"]');
vezetiOraszamOka.innerHTML = vezetiOraszamOka.innerHTML.replace("@Html.Raw(AlkalmazottResource.VezetoiOraszamOka)", "@Html.Raw(AlkalmazottResource.VezetoiMegbizas)");
var munkaidoKedvezmenyOka = document.querySelector('[for="MunkaugyAdatModel.MunkaidoKedvezmenyOka"]');
munkaidoKedvezmenyOka.innerHTML = munkaidoKedvezmenyOka.innerHTML.replace("@Html.Raw(AlkalmazottResource.FeladattalTerheltOraszamOka)", "@Html.Raw(AlkalmazottResource.Egyebtevekenysegek)");
}
AlkalmazottHelper.setOktatoiFeladatokatIsEllatChkVisibility("MunkaugyAdatModel_MunkaKor");
if (!CommonUtils.isNullOrUndefined($("#IsKozpontilagSzinkronizalt").val()) && CommonUtils.parseBool($("#IsKozpontilagSzinkronizalt").val())) {
//Elsődleges munkaügyi adatok
setItemisKozpontilagSzinkronizalt("MunkaugyAdatModel_PedagogusFokozat");
//setItemisKozpontilagSzinkronizalt("MunkaugyAdatModel_MunkaKor");
setItemisKozpontilagSzinkronizalt("MunkaugyAdatModel_FoglalkoztatasiJogviszony");
//setItemisKozpontilagSzinkronizalt("MunkaugyAdatModel_FoglalkoztatasTipusa");
setItemisKozpontilagSzinkronizalt("MunkaugyAdatModel_AlkalmazasKezdete");
//setItemisKozpontilagSzinkronizalt("MunkaugyAdatModel_AlkalmazasVege");
setItemisKozpontilagSzinkronizalt("MunkaugyAdatModel_SZTSZKod");
//setItemisKozpontilagSzinkronizalt("MunkaugyAdatModel_ReszmunkaidosSzazalek");
}
if (CommonUtils.parseBool('@(Model.MunkaugyAdatModel.IsDualisKepzohelyiOktato && Model.MunkaugyAdatModel.IsDualisKepzesEnabled && !Model.MunkaugyAdatModel.IsDualisKepzohelyFromSzervezet)')) {
$('#MunkaugyAdatModel_OktatoSzervezetId').attr("aria-required", "false");
$('#MunkaugyAdatModel_OktatoSzervezetId').attr("data-msg-required", "");
$('#MunkaugyAdatModel_OktatoSzervezetId').attr("data-rule-required", "false");
$('#MunkaugyAdatModel_OktatoSzervezetId').rules("add", { required: false });
var szervezetLabelText = $('label[for="MunkaugyAdatModel_OktatoSzervezetId"]').text();
if (szervezetLabelText.indexOf(" *") > -1) {
$('label[for="MunkaugyAdatModel_OktatoSzervezetId"]').text(szervezetLabelText.slice(0, -2));
}
}
function setItemisKozpontilagSzinkronizalt(itemId) {
$("#" + itemId).closest('div').addClass('disabledItem');
var kozpontilagSzinkronizaltNemModosithatoText = "@AlkalmazottResource.KozpontilagSzinkronizaltNemModosithato";
var label = $("[for*='" + $("#" + itemId).prop('name') + "']");
var vanTooltipje = label.parent().hasClass('kretaLabelTooltip');
if (vanTooltipje) {
label.find('.kretaLabelTooltipText').html(kozpontilagSzinkronizaltNemModosithatoText);
}
else {
label.parent().addClass('kretaLabelTooltip');
label.html(label.html() + "<img class='kretaLabelTooltipImg'><span class='kretaLabelTooltipText'>" + kozpontilagSzinkronizaltNemModosithatoText + "</span>");
}
}
$("#MunkaugyAdatModel_IsApaczaiMentor").on("focusout", isApaczaiMentorchanged);
$("#MunkaugyAdatModel_IsApaczaiMentor").on("change", isApaczaiMentorchanged);
function isApaczaiMentorchanged() {
if (!CommonUtils.isNullOrUndefined($("#MunkaugyAdatModel_IsApaczaiMentor"))
&& !CommonUtils.isNullOrUndefined($("#MunkaugyAdatModel_IsApaczaiMentor")[0])
&& $("#MunkaugyAdatModel_IsApaczaiMentor")[0].checked) {
if (CommonUtils.isNullOrEmptyOrUndefined($("#AlapAdatModel_MunkavallaloCsaladiNev").val())
|| CommonUtils.isNullOrEmptyOrUndefined($("#AlapAdatModel_MunkavallaloUtonev").val())
|| CommonUtils.isNullOrEmptyOrUndefined($("#AlapAdatModel_SzuletesiCsaladiNev").val())
|| CommonUtils.isNullOrEmptyOrUndefined($("#AlapAdatModel_SzuletesiUtonev").val())
|| CommonUtils.isNullOrEmptyOrUndefined($("#AlapAdatModel_AnyjaCsaladiNeve").val())
|| CommonUtils.isNullOrEmptyOrUndefined($("#AlapAdatModel_AnyjaUtoneve").val())
|| CommonUtils.isNullOrEmptyOrUndefined($("#AlapAdatModel_SzuletesiHely").val())
|| CommonUtils.isNullOrEmptyOrUndefined($("#AlapAdatModel_SzuletesiIdo").val())
|| CommonUtils.isNullOrEmptyOrUndefined($("#AlapAdatModel_TajSzam").val())
|| CommonUtils.isNullOrEmptyOrUndefined($("#AlapAdatModel_AdoazonositoJel").val())
|| CommonUtils.isNullOrEmptyOrUndefined($("#AlapAdatModel_OktatasiAzonosito").val())
|| CommonUtils.isNullOrEmptyOrUndefined($("label[for='MunkaugyAdatModel_SZTSZKod']").text())
|| !$("#ElerhetosegCimGrid").data("kendoGrid").dataSource.data().some(
function (dataItem) {
return dataItem.CimTipus == 907;
})
|| $("#ElerhetosegTelGrid").data("kendoGrid").dataSource.data().length == 0
|| $("#ElerhetosegEmailGrid").data("kendoGrid").dataSource.data().length == 0
) {
$("#MunkaugyAdatModel_IsApaczaiMentor")[0].checked = false;
KretaWindowHelper.warningWindow(
"@(CommonResource.Figyelmeztetes)",
"@(AlkalmazottResource.MentoriAdatokMegadasaKotelezo)"
);
} else {
$(".BankszamlaNyugdijInfoVisible").show();
}
}
else {
$(".BankszamlaNyugdijInfoVisible").hide();
}
}
});
</script>

View file

@ -0,0 +1,20 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@model PedagogusEletpalyamodellModel
@using (Html.KretaForm("PedagogusEletpalyamodellForm"))
{
@Html.KretaValidationSummary()
@Html.HiddenFor(model => model.PedagogusEletpalyamodellId)
@Html.HiddenFor(model => model.AlkalmazottId)
<div class="container-fluid details">
<div class="row">
@Html.KretaComboBoxFor(x => x.Fokozat, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetEletpalyamodellFokozatList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottPedagogusEletpalyamodellFokozatTooltip)
@Html.KretaComboBoxFor(x => x.Statusz, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetEletpalyamodellStatuszList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaDatePickerFor(x => x.Datum).RenderWithName(3, 3)
</div>
</div>
}

View file

@ -0,0 +1,10 @@
@using Kreta.Web.Models.EditorTemplates
@model TabStripModel
@using (Html.KretaForm("AlkalmazottForm"))
{
@Html.KretaValidationSummary()
<div id="NewAlkalmazottTabStrip">@Html.Partial(@"EditorTemplates\TabStrip", Model.TabList)</div>
@Html.KretaTabStrip("NewAlkalmazottTabStrip").RenderOnModal();
}

View file

@ -0,0 +1,26 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@model TovabbkepzesModel
@using (Html.KretaForm("TovabbkepzesForm"))
{
@Html.KretaValidationSummary()
@Html.HiddenFor(m => m.AlkalmazottId)
@Html.HiddenFor(m => m.ID)
<div class="container-fluid details">
<div class="row">
@Html.KretaTextBoxFor(m => m.TovabbkepzesMegnevezese).RenderWithName(3, 3)
@Html.KretaTextBoxFor(m => m.EngedelySzama).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaTextBoxFor(m => m.Helyszin).RenderWithName(3, 3)
@Html.KretaDatePickerFor(m => m.Datum).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaNumericFor(m => m.Oraszam).Format("#").Decimals(0).Step(1).RenderWithName(3, 3)
@Html.KretaTextBoxFor(m => m.TanusitvanySorszama).RenderWithName(3, 3)
</div>
</div>
}

View file

@ -0,0 +1,19 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@model VegzettsegModel
@using (Html.KretaForm("VegzettsegForm"))
{
@Html.KretaValidationSummary()
@Html.HiddenFor(model => model.VegzettsegModelId)
@Html.HiddenFor(model => model.AlkalmazottId)
<div class="container-fluid details">
<div class="row">
@Html.KretaComboBoxFor(x => x.Vegzettseg, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetVegzetsegTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(4, 8)
@Html.KretaMultiSelectFor(x => x.Kepesites, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetSzakTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(4, 8)
</div>
<div class="row">
@Html.KretaTextBoxFor(x => x.Egyeb).RenderWithName(4, 8)
</div>
</div>
}

View file

@ -0,0 +1,85 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@using Kreta.Web.Security
@model TovabbiMunkaugyiAdatokModel
@using (Html.KretaForm("TovabbiMunkaugyiAdatokForm"))
{
@Html.KretaValidationSummary()
@Html.HiddenFor(model => model.TovabbiMunkaugyAdatModelId)
@Html.HiddenFor(model => model.AlkalmazottId)
<div class="container-fluid details">
<div>
<div class="row">
@Html.KretaComboBoxFor(x => x.PedagogusFokozat, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetPedagogusFokozatList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
@Html.KretaComboBoxFor(x => x.MunkaKor, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetMunkakorList" }), "Text", "Value", isServerFiltering: false).AutoBind(true).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.FoglalkoztatasiJogviszony, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFoglalkoztatasiJogviszonyList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 9)
</div>
</div>
<div>
<h1>@AlkalmazottResource.MunkaidoAdatai</h1>
<div class="row">
@Html.KretaComboBoxFor(x => x.FoglalkoztatasTipusa, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFoglalkoztatasTipusaList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
<div class="TovabbiMunkaugyiAdatokReszmunkaidosSzazalek">
@Html.KretaNumericFor(x => x.ReszmunkaidosSzazalek).Min(0).Max(100).RenderWithName(3, 3)
</div>
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.VezetoiOraszamOka, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetVezetoiOraszamOkaTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
<div class="oraszam">
@Html.KretaNumericFor(x => x.Oraszam).RenderWithName(3, 3)
</div>
</div>
<div class="row">
<div class="TovabbiMunkaugyiAdatokFeladattalTerheltOraszam">
@Html.KretaComboBoxFor(x => x.MunkaidoKedvezmenyOka, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetMunkaidoKedvezmenyOkaList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
@if (Model.MunkaidoKedvezmenyOraszam.HasValue && Model.MunkaidoKedvezmenyOraszam.Value > 0)
{
@Html.KretaNumericFor(x => x.MunkaidoKedvezmenyOraszam).RenderWithName(3, 3)
}
else
{
@Html.KretaNumericFor(x => x.MunkaidoKedvezmenyOraszam).Value(0).RenderWithName(3, 3)
}
</div>
</div>
<div class="row">
@Html.KretaEmpty()
<div class="TovabbiMunkaugyiAdatokPedagogusHetiOraszama">
@Html.KretaTextBoxFor(x => x.PedagogusHetiOraszama).Enable(false).RenderWithName(3, 3)
</div>
</div>
</div>
<div>
<h1>@AlkalmazottResource.EgyebMunkaugyiAdatok</h1>
<div class="row">
@Html.KretaDatePickerFor(x => x.AlkalmazasKezdete).RenderWithName(3, 3)
@Html.KretaDatePickerFor(x => x.AlkalmazasVege).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.FeladatellatasiHely, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFeladatellatasiHelyek" }), "Text", "Value").AutoBind(true).RenderWithName(3, 9)
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.Nyugdijas).RenderWithName(3, 3)
</div>
</div>
</div>
}
<script>
$(document).ready(function () {
AlkalmazottHelper.setMunkaugyiAdatok("FoglalkoztatasTipusa", "Oraszam", "MunkaidoKedvezmenyOraszam", "MunkaidoKedvezmenyOka", "ReszmunkaidosSzazalek", "VezetoiOraszamOka");
if (CommonUtils.parseBool("@Model.IsNszfhUjSzkt")) {
var vezetiOraszamOka = document.querySelector('[for="VezetoiOraszamOka"]');
vezetiOraszamOka.innerHTML = vezetiOraszamOka.innerHTML.replace("@Html.Raw(AlkalmazottResource.VezetoiOraszamOka)", "@Html.Raw(AlkalmazottResource.VezetoiMegbizas)");
var munkaidoKedvezmenyOka = document.querySelector('[for="MunkaidoKedvezmenyOka"]');
munkaidoKedvezmenyOka.innerHTML = munkaidoKedvezmenyOka.innerHTML.replace("@Html.Raw(AlkalmazottResource.FeladattalTerheltOraszamOka)", "@Html.Raw(AlkalmazottResource.Egyebtevekenysegek)");
}
});
</script>

View file

@ -0,0 +1,52 @@
@model Kreta.Web.Areas.Alkalmazott.Models.AMITanarVegzettsegWizardModel
@{
Layout = null;
}
@*/*resource*/*@
<div style="padding-top: 15px;">
@using (Html.KretaForm("VegzettsegWizardForm"))
{
@Html.KretaValidationSummary()
@Html.HiddenFor(model => model.AlkalmazottId)
@Html.HiddenFor(model => model.EntityId)
<div class="container-fluid details">
<div class="row">
@Html.KretaComboBoxFor(x => x.AMITanariVegzettsegTipusId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetAMITanarVegzettsegList" }), "Text", "Value").AutoBind(true).RenderWithName(5, 7)
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.ZenemuveszetiTerulet).RenderWithName(5, 7)
</div>
@* Ha az elemek száma páratlan lesz, akkor ez a megoldás már nem lesz jó. *@
<span id="zeneMuveszetiTeruletek">
<div class="row">
@Html.KretaMultiSelectFor(x => x.KlasszikusZeneIds, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetAMIKlasszikusZeneTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(5, 7)
</div>
<div class="row">
@Html.KretaMultiSelectFor(x => x.NepZeneIds, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetAMINepZeneTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(5, 7)
</div>
<div class="row">
@Html.KretaMultiSelectFor(x => x.JazzZeneIds, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetAMIJazzZeneTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(5, 7)
</div>
<div class="row">
@Html.KretaMultiSelectFor(x => x.ElektroAkusztikusZeneIds, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetAMIElektroAkusztikusZeneTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(5, 7)
</div>
</span>
<div class="row">
@Html.KretaCheckBoxFor(x => x.TancmuveszetiTerulet).RenderWithName(5, 7)
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.KepzoEsIparMuveszetiTerulet).RenderWithName(5, 7)
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.SzinEsBabMuveszetiTerulet).RenderWithName(5, 7)
</div>
</div>
}
</div>
<script>
$(document).ready(function () {
$('#ZenemuveszetiTerulet').change(function () { VegzettsegWizard.handelZenemuveszetiElemekVisibility($(this).is(":checked")); });
VegzettsegWizard.handelZenemuveszetiElemekVisibility($('#ZenemuveszetiTerulet').is(":checked"));
});
</script>

View file

@ -0,0 +1,17 @@
@model Kreta.Web.Areas.Alkalmazott.Models.GyogyPedagogusVegzettsegWizardModel
@{
Layout = null;
}
@*/*resource*/*@
<div style="padding-top: 15px;">
@using (Html.KretaForm("VegzettsegWizardForm"))
{
@Html.KretaValidationSummary()
@Html.HiddenFor(model => model.AlkalmazottId)
<div class="container-fluid details">
<div class="row">
@Html.KretaMultiSelectFor(x => x.GyogypedagogusTeruletIds, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetGyogypedagogiaiTeruletList" }), "Text", "Value").AutoBind(true).RenderWithName(4, 8)
</div>
</div>
}
</div>

View file

@ -0,0 +1,16 @@
@using Kreta.Resources;
@{
Layout = null;
}
@*/*resource*/*@
<div style="padding-top: 15px;">
<div class="row" style="text-align: center;">
@Html.KretaButton("pedagogusVegzettsegBtn", AlkalmazottResource.Pedagogus, htmlAttributes: new Dictionary<string, object>() { { "style", "width: 65%;margin-bottom: 15px;" } })
</div>
<div class="row" style="text-align: center;">
@Html.KretaButton("kozepfokuVegzettsegNelkuliBtn", AlkalmazottResource.KozepfokuVegzettsegNelkuli, htmlAttributes: new Dictionary<string, object>() { { "style", "width: 65%;margin-bottom: 15px;" } })
</div>
<div class="row" style="text-align: center;">
@Html.KretaButton("felsofokuVegzettsegNelkuliBtn", AlkalmazottResource.FelsofokuVegzettsegNelkuli, htmlAttributes: new Dictionary<string, object>() { { "style", "width: 65%" } })
</div>
</div>

View file

@ -0,0 +1,8 @@
@using Kreta.Resources;
@{
Layout = null;
}
<div style="padding: 15px; margin:15px;">
@Html.Raw(AlkalmazottResource.KepesitesNemModositheto)
</div>

View file

@ -0,0 +1,8 @@
@using Kreta.Resources;
@{
Layout = null;
}
<div style="padding-top: 15px;">
@Html.Raw(AlkalmazottResource.KepesiteshezVegzettsegNemRogzitheto)
</div>

View file

@ -0,0 +1,21 @@
@model Kreta.Web.Areas.Alkalmazott.Models.TanarVegzettsegWizardModel
@{
Layout = null;
}
<div style="padding-top: 15px;">
@using (Html.KretaForm("VegzettsegWizardForm"))
{
@Html.KretaValidationSummary()
@Html.HiddenFor(model => model.AlkalmazottId)
@Html.HiddenFor(model => model.EntityId)
<div class="container-fluid details">
<div class="row">
@Html.KretaComboBoxFor(x => x.TanariVegzettsegTipusId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetKKTanarVegzetsegTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(4, 8)
@Html.KretaMultiSelectFor(x => x.TantargyKategoriaIds, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetKKSzakTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(4, 8)
</div>
<div class="row">
@Html.KretaTextBoxFor(x => x.Egyeb).RenderWithName(4, 8)
</div>
</div>
}
</div>

View file

@ -0,0 +1,17 @@
@model Kreta.Web.Areas.Alkalmazott.Models.TanitoVegzettsegWizardModel
@{
Layout = null;
}
@*/*resource*/*@
<div style="padding-top: 15px;">
@using (Html.KretaForm("VegzettsegWizardForm"))
{
@Html.KretaValidationSummary()
@Html.HiddenFor(model => model.AlkalmazottId)
<div class="container-fluid details">
<div class="row">
@Html.KretaMultiSelectFor(x => x.MuveltsegiTeruletIds, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetTanitoMuveltsegiTeruletList" }), "Text", "Value").AutoBind(true).RenderWithName(4, 8)
</div>
</div>
}
</div>

View file

@ -0,0 +1,20 @@
@using Kreta.Resources;
@{
Layout = null;
}
@*/*resource*/*@
<div style="padding-top: 15px;">
<input type="hidden" id="ForcedStepId" value="2">
<div class="row" style="text-align: center;">
@Html.KretaButton("tanarVegzettsegBtn", AlkalmazottResource.Tanar, htmlAttributes: new Dictionary<string, object>() { { "style", "width: 65%;margin-bottom: 15px;" } })
</div>
<div class="row" style="text-align: center;">
@Html.KretaButton("AMITanarVegzettsegBtn", AlkalmazottResource.TanarAMI, htmlAttributes: new Dictionary<string, object>() { { "style", "width: 65%;margin-bottom: 15px;" } })
</div>
<div class="row" style="text-align: center;">
@Html.KretaButton("tanitoVegzettsegBtn", AlkalmazottResource.Tanito, htmlAttributes: new Dictionary<string, object>() { { "style", "width: 65%;margin-bottom: 15px;" } })
</div>
<div class="row" style="text-align: center;">
@Html.KretaButton("gyogypedagogusVegzettsegBtn", AlkalmazottResource.Gyogypedagogus, htmlAttributes: new Dictionary<string, object>() { { "style", "width: 65%" } })
</div>
</div>

View file

@ -0,0 +1,13 @@
@using Kreta.Web.Models
@model CimElerhetosegModel
@{
bool isAutoBindNeeded = Model.IsAutoBindNeeded;
}
@using (Html.KretaForm("ElerhetosegCimForm"))
{
@Html.KretaValidationSummary()
<div class="container-fluid details">
@Html.Partial("_Cim_Elerhetoseg_Partial", Model)
</div>
}

View file

@ -0,0 +1,18 @@
@using Kreta.Web.Models
@model CimElerhetosegModel
@using (Html.KretaForm("ElerhetosegEmailForm"))
{
@Html.KretaValidationSummary()
<div class="container-fluid details">
@Html.Partial("_Cim_Elerhetoseg_Partial", Model)
</div>
}
<script>
$(document).ready(function () {
if ($("#AlapertelmezettEmail").prop("checked")) {
$("#AlapertelmezettEmail").prop("disabled", true);
}
});
</script>

View file

@ -0,0 +1,18 @@
@using Kreta.Web.Models
@model CimElerhetosegModel
@using (Html.KretaForm("ElerhetosegTelForm"))
{
@Html.KretaValidationSummary()
<div class="container-fluid details">
@Html.Partial("_Cim_Elerhetoseg_Partial", Model)
</div>
}
<script>
$(document).ready(function () {
if ($("#AlapertelmezettTel").prop("checked")) {
$("#AlapertelmezettTel").prop("disabled", true);
}
});
</script>

View file

@ -0,0 +1,37 @@
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@using Kreta.BusinessLogic.Classes
@model AlkalmazottModel
<div class="container-fluid">
@(
Html.KretaGrid<AlkalmazottInfoModel.TovabbkepzesModel>(
name: "TovabbkepzesGrid",
getUrl: new GridApiUrl(Constants.ApiControllers.AlkalmazottApi, "GetTovabbkepzesGrid", new Dictionary<string, string> { { "Id", Model.AlkalmazottId.ToString() } })
)
.Columns(columns =>
{
columns.Bound(c => c.TovabbkepzesMegnevezese);
columns.Bound(c => c.EngedelySzama);
columns.Bound(c => c.Helyszin);
columns.Bound(c => c.Datum).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
columns.Bound(c => c.Oraszam);
columns.Bound(c => c.TanusitvanySorszama);
})
.RowFunction(Html, new List<RowFunction>
{
new RowFunction { Name = CommonResource.Modositas, ClientAction = "TovabbkepzesHelper.modifyTovabbkepzes", IconEnum = Kreta.Enums.ManualEnums.GridRowFunctionIconEnum.Modositas },
new RowFunction { Name= CommonResource.Torles, ClientAction = "TovabbkepzesHelper.deleteTovabbkepzesConfirmWindow", IconEnum = Kreta.Enums.ManualEnums.GridRowFunctionIconEnum.Torles }
})
.FunctionCommand(Html, new List<FunctionCommand>
{
new FunctionCommand { Name = CommonResource.Uj.ToUpper(), ClientAction = string.Format("function(){{ TovabbkepzesHelper.newTovabbkepzes({0}); }}", Model.AlkalmazottId) },
new FunctionCommand { Name = ImportExportCommonResource.Export, ClientAction = "function() {TovabbkepzesHelper.getExportTovabbkepzes(" + Model.AlkalmazottId + "); }" }
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
</div>

View file

@ -0,0 +1,72 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@model AlkalmazottInfoModel.AlapadatModel
<div class="container-fluid details">
<div class="row">
@Html.KretaLabelFor(model => model.OktatasiAzonosito, 3, 3)
@Html.KretaLabelFor(model => model.Nem_NAME, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.EloTag, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.CsaladiNev, 3, 3, false, "AlapadatModel_CsaladiNev")
@Html.KretaLabelFor(model => model.Utonev, 3, 3, false, "AlapadatModel_Utonev")
</div>
<div class="row">
@Html.KretaLabelFor(model => model.SzuletesiElotag, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.SzuletesiCsaladNev, 3, 3)
@Html.KretaLabelFor(model => model.SzuletesiUtonev, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.AnyjaElotag, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.AnyjaCsaladiNeve, 3, 3)
@Html.KretaLabelFor(model => model.AnyjaUtonev, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.SzuletesiHely, 3, 3)
@Html.KretaLabelFor(model => model.SzuletesiIdo_SDATE, 3, 3, false, "AlapadatModel_SzuletesiIdo_SDATE")
</div>
<div class="row">
@Html.KretaLabelFor(model => model.SzuletesiOrszag, 3, 3)
@Html.KretaLabelFor(model => model.Anyanyelve, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.Allampolgarsag, 3, 3)
@Html.KretaLabelFor(model => model.Allampolgarsag2, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.IgazolvanyTipus_NAME, 3, 3)
@Html.KretaLabelFor(model => model.IgazolvanySzam, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.BelepesiNev, 3, 9)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.AktivStatusz_BNAME, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.AdoazonositoJel, 3, 3)
@Html.KretaLabelFor(model => model.TajSzam, 3, 3)
</div>
<div class="row">
<div class="@BootsrapHelper.GetSizeClasses(3)">
@Html.KretaInputLabelFor(model => model.Megjegyzes)
</div>
<div class="@BootsrapHelper.GetSizeClasses(3)">
@Html.KretaDisplayTextFor(model => model.Megjegyzes)
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$("#alkalmazottInfoWindow_wnd_title").text(
$("#alkalmazottInfoWindow_wnd_title").text() +
" [ " + $("#AlapadatModel_CsaladiNev").text() + " " + $("#AlapadatModel_Utonev").text() + " - " + $("#AlapadatModel_SzuletesiIdo_SDATE").text() + " ]");
});
</script>

View file

@ -0,0 +1,78 @@
@using Kreta.Web.Helpers.Grid;
@using Kreta.Resources
@using Kreta.Web.Areas.Alkalmazott.Models
@model AlkalmazottDetailModel
@{
List<FunctionCommand> ElerhetosegekFunctionCommandList = new List<FunctionCommand>();
ElerhetosegekFunctionCommandList.Add(new FunctionCommand
{
Name = ImportExportCommonResource.Export.ToUpper(),
NestedCommands = new List<FunctionCommand> {
new FunctionCommand { Name = "Cím adatok exportálása", ClientAction = "function() {ElerhetosegHelper.getExportElerhetosegCim(" + Model.Id.ToString() + "); }" },
new FunctionCommand { Name = "Telefonszám adatok exportálása", ClientAction = "function() {ElerhetosegHelper.getExportElerhetosegTelefon(" + Model.Id.ToString() + "); }" },
new FunctionCommand { Name = "E-mail cím adatok exportálása", ClientAction = "function() {ElerhetosegHelper.getExportElerhetosegEmail(" + Model.Id.ToString() + "); }" },
new FunctionCommand { Name = "Összes elérhetőség exportálása", ClientAction = "function() {ElerhetosegHelper.getExportElerhetosegOsszes(" + Model.Id.ToString() + "); }" },
}
});
}
<div class="container-fluid">
@(
Html.KretaGrid<AlkalmazottInfoModel.ElerhetosegCimModel>(
name: "ElerhetosegCimGrid",
getUrl: new GridApiUrl(Model.AlkalmazottApiControllerName, "GetElerhetosegCimGrid", new Dictionary<string, string> { { "Id", Model.Id.ToString() } })
)
.Columns(columns =>
{
columns.Bound(c => c.TIPUS_DNAME);
columns.Bound(c => c.Orszag_DNAME);
columns.Bound(c => c.IRANYITOSZAM).Width("10%");
columns.Bound(c => c.VAROS);
columns.Bound(c => c.Cim);
})
.CheckBoxColumn(AlkalmazottResource.Alapertelmezett, c => c.Alapertelmezett_BOOL, addHeaderTitle: true)
.FunctionCommand(Html, ElerhetosegekFunctionCommandList)
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
<br />
@(
Html.KretaGrid<AlkalmazottInfoModel.ElerhetosegTelefonModel>(
name: "ElerhetosegTelefonGrid",
getUrl: new GridApiUrl(Model.AlkalmazottApiControllerName, "GetElerhetosegTelefonGrid", new Dictionary<string, string> { { "Id", Model.Id.ToString() } })
)
.Columns(columns =>
{
columns.Bound(c => c.TYPE_DNAME);
columns.Bound(c => c.Phone).Width("15%");
})
.CheckBoxColumn(AlkalmazottResource.Alapertelmezett, c => c.ALAPERTELMEZETT_BOOL, addHeaderTitle: true)
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
<br />
@(
Html.KretaGrid<AlkalmazottInfoModel.ElerhetosegEmailModel>(
name: "ElerhetosegEmailGrid",
getUrl: new GridApiUrl(Model.AlkalmazottApiControllerName, "GetElerhetosegEmailGrid", new Dictionary<string, string> { { "Id", Model.Id.ToString() } })
)
.Columns(columns =>
{
columns.Bound(c => c.TYPE_DNAME);
columns.Bound(c => c.Email).Width("33%").ClientTemplate(@"
# if (Email != null ){# #: Email # # } #
# if (IsHibasanMegadva_BOOL == true) { #
<i class='fa fa-exclamation-triangle' title='Hibás email cím!'></i>
# }#");
})
.CheckBoxColumn(AlkalmazottResource.Alapertelmezett, c => c.ALAPERTELMEZETT_BOOL, addHeaderTitle: true)
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
</div>

View file

@ -0,0 +1,171 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@using Kreta.Web.Security
@model AlkalmazottInfoModel.ElsodlegesMunkaugyiAdatok
<div class="container-fluid details">
@if (Model.IsFromSzervezetOktato)
{
<div class="row">
@Html.KretaLabelFor(x => x.DualisKepzohelyNeve, 3, 3)
@Html.KretaLabelFor(x => x.DualisKepzohelyAdoszama, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(x => x.IsSzakiranyuOktatasertFelelos_BNAME, 3, 3)
</div>
}
else
{
<div>
<div class="row">
@Html.KretaLabelFor(model => model.BesorolasiFokozat_NAME, 3, 3)
@Html.KretaLabelFor(model => model.Munkakor_NAME, 3, 3)
</div>
@if (Model.IsVisibleOktatoiFeladatokatIsEllat)
{
<div class="row">
@Html.KretaEmpty()
@Html.KretaLabelFor(model => model.OktatoiFeladatokatIsEllat, 3, 3)
</div>
}
<div class="row">
@Html.KretaLabelFor(model => model.FoglalkoztatasiJogviszony_NAME, 3, 3)
@Html.KretaLabelFor(model => model.UtazoGyogypedagogus_BNAME, 3, 3)
</div>
</div>
<div>
<h1>@AlkalmazottResource.MunkaidoAdatai</h1>
<div class="row">
@Html.KretaLabelFor(model => model.FoglalkoztatasTipusa_NAME, 3, 3)
@Html.KretaLabelFor(model => model.ReszmunkaidosSzazalek, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.VezetoiOraszamOka_NAME, 3, 3)
@Html.KretaLabelFor(model => model.KotelezoOraszam, 3, 3)
</div>
@if (Model.IsNszfhUjSzkt)
{
<div class="row">
@Html.KretaLabelFor(model => model.EgyebTevekenysegekTipus_NAME, 3, 3)
</div>
}
<div class="row">
@Html.KretaLabelFor(model => model.MunkaidoKedvezmenyOka_NAME, 3, 3)
@Html.KretaLabelFor(model => model.MunkaidoKedvezmenyOraszam, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.CsokkentettMunkaidos_BNAME, 3, 3)
</div>
</div>
<div>
<h1>@AlkalmazottResource.EgyebMunkaugyiAdatok</h1>
<div class="row">
@Html.KretaLabelFor(model => model.AlkalmazasKezdete_SDATE, 3, 3)
@Html.KretaLabelFor(model => model.AlkalmazasVege_SDATE, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.FeladatellatasiHely_NAME, 3, 3)
@Html.KretaLabelFor(model => model.TartosanTavollevo_BNAME, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.Nyugdijas_BNAME, 3, 3)
@Html.KretaLabelFor(model => model.BetoltetlenAllashely_BNAME, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.IsKulsoAlkalmazott_BNAME, 3, 3)
@{
if (Model.BesorolasiFokozat == (int)Kreta.Enums.BesorolasiFokozatTipusEnum.mesterpedagogus || Model.BesorolasiFokozat == (int)Kreta.Enums.BesorolasiFokozatTipusEnum.kutatotanar)
{
@Html.KretaLabelFor(model => model.SzakertoMesterpedagogusKutatotanar_BNAME, 3, 3);
}
}
</div>
<div class="row">
@Html.KretaLabelFor(model => model.Foallasu_BNAME, 3, 3)
@Html.KretaLabelFor(model => model.Szakvizsga_BNAME, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.SzakertoiVagyVizsgaelnokiTevekenysegu_BNAME, 3, 3)
@Html.KretaLabelFor(model => model.SzakmaiTovabbkepzes_BNAME, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(model => model.Attanito_BNAME, 3, 3)
@Html.KretaLabelFor(model => model.AttanitoMasIntezmeny_BNAME, 3, 3)
</div>
@if (Model.IsNszfhUjSzkt)
{
<div class="row">
@Html.KretaLabelFor(x => x.IsAttanitoSzCnBelul_BNAME, 3, 3)
</div>
}
<div class="row">
@Html.KretaLabelFor(model => model.AllandoHelyettesitesre_BNAME, 3, 3)
@Html.KretaLabelFor(model => model.SZTSZKod, 3, 3)
</div>
@if (Model.IsNszfhUjSzkt)
{
<div class="row">
@Html.KretaLabelFor(x => x.IsOsztalyfonok_BNAME, 3, 3)
</div>
}
@if (Model.IsDualisKepzohelyiOktato)
{
<div class="row">
@Html.KretaLabelFor(x => x.DualisKepzohelyNeve, 3, 3)
@Html.KretaLabelFor(x => x.DualisKepzohelyAdoszama, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(x => x.IsSzakiranyuOktatasertFelelos_BNAME, 3, 3)
</div>
}
@if (Model.IsKlebelsberg)
{
<div class="row">
@Html.KretaLabelFor(x => x.VezetoPedagogusVezetoOvodaPedagogus_BNAME, 3, 3)
</div>
}
@if (ClaimData.IsSelectedTanev21_22OrLater)
{
<div class="row">
@Html.KretaLabelFor(x => x.IsInternetetOktCelraHasznal_BNAME, 3, 3)
@Html.KretaLabelFor(x => x.IsInformatKepIsmRendelkezik_BNAME, 3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(x => x.IsIktEszkozoketLgalabb40Hasznal_BNAME, 3, 3)
@Html.KretaLabelFor(x => x.HasEfopEszkoz_BNAME, 3, 3)
</div>
}
@if (Model.IsApaczaiMentorVisible)
{
<div class="row">
@Html.KretaLabelFor(x => x.IsApaczaiMentor_BNAME, 3, 3)
@Html.KretaLabelFor(x => x.SZTSZKod2, 3, 3).RenderWithTooltip(3, 3, tooltipResource: AlkalmazottResource.ApaczaiMentorprogramhozKapcsolodoSZTSZTooltip)
</div>
if(Model.IsApaczaiMentor)
{
<div class="row">
@Html.KretaLabelFor(x => x.HasBankszamlaInfo_BNAME, 3, 3)
@Html.KretaLabelFor(x => x.HasNyugdijInfo_BNAME, 3, 3)
</div>
}
}
</div>
}
</div>
<script>
$(document).ready(function () {
if (!CommonUtils.parseBool("@Model.IsFromSzervezetOktato") && CommonUtils.parseBool("@Model.IsNszfhUjSzkt")) {
var vezetiOraszamOka = document.querySelector('[for="VezetoiOraszamOka_NAME"]');
vezetiOraszamOka.innerHTML = vezetiOraszamOka.innerHTML.replace("@Html.Raw(AlkalmazottResource.VezetoiOraszamOka)", "@Html.Raw(AlkalmazottResource.VezetoiMegbizas)");
var munkaidoKedvezmenyOka = document.querySelector('[for="MunkaidoKedvezmenyOka_NAME"]');
munkaidoKedvezmenyOka.innerHTML = munkaidoKedvezmenyOka.innerHTML.replace("@Html.Raw(AlkalmazottResource.FeladattalTerheltOraszamOka)", "@Html.Raw(AlkalmazottResource.Egyebtevekenysegek)");
}
});
</script>

View file

@ -0,0 +1,32 @@
@using Kreta.BusinessLogic.Classes
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@model AlkalmazottDetailModel
<div class="container-fluid">
@(
Html.KretaGrid<AlkalmazottInfoModel.ErtekelesModel>(
name: "ErtekelesGrid",
getUrl: new GridApiUrl(Model.AlkalmazottApiControllerName, "GetErtekelesGrid", new Dictionary<string, string> { { "Id", Model.Id.ToString() } })
)
.Columns(columns =>
{
columns.Bound(c => c.Tantargy);
columns.Bound(c => c.Tanulo);
columns.Bound(c => c.Datum).Width("10%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
columns.Bound(c => c.Tema);
columns.Bound(c => c.Osztalyzat_DNAME);
columns.Bound(c => c.ErtekelesSzoveg);
columns.Bound(c => c.Tipus_DNAME);
columns.Bound(c => c.OsztalyCsoport);
})
.FunctionCommand(Html, new List<FunctionCommand>
{
new FunctionCommand { Name = ImportExportCommonResource.Export, ClientAction = "function() {ErtekelesHelper.getExportErtekeles(" + Model.Id.ToString() + "); }" }
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
</div>

View file

@ -0,0 +1,28 @@
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@model AlkalmazottDetailModel
<div class="container-fluid">
@(
Html.KretaGrid<AlkalmazottInfoModel.FoglalkozasModel>(
name: "FoglalkozasGrid",
getUrl: new GridApiUrl(Model.AlkalmazottApiControllerName, "GetFoglalkozasGrid", new Dictionary<string, string> { { "Id", Model.Id.ToString() } })
)
.Columns(columns =>
{
columns.Bound(c => c.Tantargy);
columns.Bound(c => c.OsztalyCsoport);
columns.Bound(c => c.HetiOraszam).Width("10%");
columns.Bound(c => c.Foglalkozas_DNAME);
})
.FunctionCommand(Html, new List<FunctionCommand>
{
new FunctionCommand { Name = ImportExportCommonResource.Export, ClientAction = "function() {FoglalkozasokHelper.getExportFoglalkozas(" + Model.Id.ToString() + "); }" }
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
</div>

View file

@ -0,0 +1,31 @@
@using Kreta.BusinessLogic.Classes
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@model AlkalmazottDetailModel
<div class="container-fluid">
@(
Html.KretaGrid<AlkalmazottInfoModel.MegtartottTanoraModel>(
name: "MegtartottTanoraGrid",
getUrl: new GridApiUrl(Model.AlkalmazottApiControllerName, "GetMegtartottTanoraGrid", new Dictionary<string, string> { { "Id", Model.Id.ToString() } })
)
.Columns(columns =>
{
columns.Bound(c => c.OsztalyCsoport);
columns.Bound(c => c.Tantargy);
columns.Bound(c => c.Tema);
columns.Bound(c => c.Helyett_BNAME);
columns.Bound(c => c.Datum).Width("10%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
columns.Bound(c => c.Oraszam).Width("10%");
})
.FunctionCommand(Html, new List<FunctionCommand>
{
new FunctionCommand { Name = ImportExportCommonResource.Export, ClientAction = "function() {MegtartottTanorakHelper.getExportMegtartottTanora(" + Model.Id.ToString() + "); }" }
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
</div>

View file

@ -0,0 +1,36 @@
@using Kreta.BusinessLogic.Classes
@using Kreta.Enums
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@model AlkalmazottDetailModel
<div class="container-fluid">
@(
Html.KretaGrid<AlkalmazottInfoModel.OrarendiOraModel>(
name: "OrarendiOraGrid",
getUrl: new GridApiUrl(Model.AlkalmazottApiControllerName, "GetOrarendiOraGrid", new Dictionary<string, string> { { "Id", Model.Id.ToString() } })
)
.Columns(columns =>
{
//columns.Bound(c => c.Hetirend_DNAME).ClientTemplate("#if(Hetirend == \"" + (int)@HetiRendTipusEnum.MindegyikHet + "\") { # * # } else {# #:Hetirend_DNAME# #} #");
columns.Bound(c => c.Hetirend_DNAME).ClientTemplate("#: Hetirend_DNAME #");
columns.Bound(c => c.HetNapja_DNAME).Sortable(false);
columns.Bound(c => c.Ora);
columns.Bound(c => c.OsztalyCsoport);
columns.Bound(c => c.Tantargy);
columns.Bound(c => c.Helyiseg);
columns.Bound(c => c.ErvenyessegKezdete).Width("10%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
columns.Bound(c => c.ErvenyessegVege).Width("10%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]); ;
})
.FunctionCommand(Html, new List<FunctionCommand>
{
new FunctionCommand { Name = ImportExportCommonResource.Export, ClientAction = "function() {OrarendiOrakHelper.getExportOrarendiOra(" + Model.Id.ToString() + "); }" }
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
</div>

View file

@ -0,0 +1,4 @@
@using Kreta.Web.Models.EditorTemplates
@model TabStripModel
@Html.KretaTabStripAjax("AlkalmazottInfoTabStrip", Model.TabList)

View file

@ -0,0 +1,28 @@
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@model AlkalmazottDetailModel
<div class="container-fluid">
@(
Html.KretaGrid<AlkalmazottInfoModel.TanmenetModel>(
name: "TanmenetGrid",
getUrl: new GridApiUrl(Model.AlkalmazottApiControllerName, "GetTanmenetGrid", new Dictionary<string, string> { { "Id", Model.Id.ToString() } })
)
.Columns(columns =>
{
columns.Bound(c => c.Oraszam).Width("10%");
columns.Bound(c => c.OsztalyCsoport);
columns.Bound(c => c.Tantargy);
columns.Bound(c => c.Tema);
})
.FunctionCommand(Html, new List<FunctionCommand>
{
new FunctionCommand { Name = ImportExportCommonResource.Export, ClientAction = "function() {TanmenetekHelper.getExportTanmenet(" + Model.Id.ToString() + "); }" }
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
</div>

View file

@ -0,0 +1,117 @@
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@model AlkalmazottModel
<style>
.rowFunction:empty {
display: none;
}
</style>
<div class="container-fluid">
<h4>@AlkalmazottResource.CimAdatok</h4>
@{
var kozpontilagNemSzinkronizaltLakcimList = new List<RowFunction>
{
new RowFunction { Name = AlkalmazottResource.Modositas, ClientAction= "AlkalmazottElerhetosegCimHelper.modElerhetosegCim" },
new RowFunction { Name = AlkalmazottResource.Torles, ClientAction= "AlkalmazottElerhetosegCimHelper.deleteElerhetosegCimConfirmWindow" }
};
var kozpontilagSzinkronizaltLakcimList = new List<RowFunction>
{
new RowFunction { Name = AlkalmazottResource.Modositas, ClientAction= "AlkalmazottElerhetosegCimHelper.modElerhetosegSzinkronizaltCim" }
};
}
@(
Html.KretaGrid<ElerhetosegCimModel>(
name: "ElerhetosegCimGrid",
getUrl: new GridApiUrl(Constants.ApiControllers.AlkalmazottApi, "GetAlkalmazottElerhetosegCimGrid", new Dictionary<string, string> { { "Id", Model.AlkalmazottId.Value.ToString() } })
)
.Columns(columns =>
{
columns.Bound(c => c.CimTipus_DNAME);
columns.Bound(c => c.Orszag_DNAME);
columns.Bound(c => c.Irsz).Width("10%");
columns.Bound(c => c.Varos);
columns.Bound(c => c.Cim).Sortable(false).ClientTemplate(@"#: Kozterulet# #if(KozteruletJellegeNev != null){# #: KozteruletJellegeNev # #}else{# #}# #: HazSzam# #if(Emelet != null){# #: Emelet # #}else{# #}# #if(Ajto != null){# #: Ajto # #}else{# #}# ");
columns.Bound(c => c.CimTipus).Hidden(true);
})
.CheckBoxColumn(AlkalmazottResource.Alapertelmezett, c => c.Alapertelmezett_BOOL, addHeaderTitle: true)
.ConditionalRowFunction(Html, kozpontilagSzinkronizaltLakcimList, "AlkalmazottElerhetosegCimHelper.setRowEditingKozpontilagSzinkronizaltLakcim")
.ConditionalRowFunction(Html, kozpontilagNemSzinkronizaltLakcimList, "AlkalmazottElerhetosegCimHelper.setRowEditingKozpontilagNemSzinkronizaltLakcim")
.FunctionCommand(Html, new List<FunctionCommand>
{
new FunctionCommand { Name=AlkalmazottResource.Uj, ClientAction=string.Format("function(){{ AlkalmazottElerhetosegCimHelper.newElerhetosegCim({0}); }}", Model.AlkalmazottId.Value.ToString()) },
})
.AutoBind(true)
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
<br />
<h4>@AlkalmazottResource.Telefonszam</h4>
@{
var telRowFunctionList = new List<RowFunction>
{
new RowFunction { Name = AlkalmazottResource.Modositas, ClientAction= "AlkalmazottElerhetosegTelHelper.modElerhetosegTel" },
new RowFunction { Name = AlkalmazottResource.Torles, ClientAction= "AlkalmazottElerhetosegTelHelper.deleteElerhetosegTelConfirmWindow" }
};
}
@(
Html.KretaGrid<ElerhetosegTelModel>
(
name: "ElerhetosegTelGrid",
getUrl: new GridApiUrl(Constants.ApiControllers.AlkalmazottApi, "GetAlkalmazottElerhetosegTelGrid", new Dictionary<string, string> { { "Id", Model.AlkalmazottId.Value.ToString() } }))
.Columns(columns =>
{
columns.Bound(c => c.Tipus_DNAME).Width("28%");
columns.Bound(c => c.TelefonSzam).HeaderHtmlAttributes(new { data_gridheadertooltip = AlkalmazottResource.AlkalmazottElerhetosegTelefonszamTooltip }).Width("15%");
})
.CheckBoxColumn(AlkalmazottResource.Alapertelmezett, c => c.Alapertelmezett_BOOL, addHeaderTitle: true)
.ConditionalRowFunction(Html, telRowFunctionList, "AlkalmazottElerhetosegTelHelper.setTelRowEditing")
.FunctionCommand(Html, new List<FunctionCommand>
{
new FunctionCommand { Name=AlkalmazottResource.Uj, ClientAction=string.Format("function(){{ AlkalmazottElerhetosegTelHelper.newElerhetosegTel({0}); }}",Model.AlkalmazottId.Value.ToString()) },
})
.AutoBind(true)
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
<br />
<h4>@AlkalmazottResource.EMail</h4>
@{
var emailRowFunctionList = new List<RowFunction>
{
new RowFunction { Name = AlkalmazottResource.Modositas, ClientAction= "AlkalmazottElerhetosegEmailHelper.modElerhetosegEmail" },
new RowFunction { Name = AlkalmazottResource.Torles, ClientAction= "AlkalmazottElerhetosegEmailHelper.deleteElerhetosegEmailConfirmWindow" }
};
}
@(
Html.KretaGrid<ElerhetosegEmailModel>
(
name: "ElerhetosegEmailGrid",
getUrl: new GridApiUrl(Constants.ApiControllers.AlkalmazottApi, "GetAlkalmazottElerhetosegEmailGrid", new Dictionary<string, string> { { "Id", Model.AlkalmazottId.Value.ToString() } }))
.Columns(columns =>
{
columns.Bound(c => c.Tipus_DNAME).Width("28%");
columns.Bound(c => c.EmailCim).HeaderHtmlAttributes(new { data_gridheadertooltip = AlkalmazottResource.AlkalmazottElerhetosegEmailTooltip }).Width("15%").ClientTemplate(@"
# if (EmailCim != null ){# #: EmailCim # # } #
# if (IsHibasanMegadva_BOOL == true) { #
<i class='fa fa-exclamation-triangle' title='Hibás email cím!'></i>
# }#");
})
.CheckBoxColumn(AlkalmazottResource.Alapertelmezett, c => c.Alapertelmezett_BOOL, addHeaderTitle: true)
.ConditionalRowFunction(Html, emailRowFunctionList, "AlkalmazottElerhetosegEmailHelper.setEmailRowEditing")
.FunctionCommand(Html, new List<FunctionCommand>
{
new FunctionCommand { Name=AlkalmazottResource.Uj, ClientAction=string.Format("function(){{ AlkalmazottElerhetosegEmailHelper.newElerhetosegEmail({0}); }}",Model.AlkalmazottId) },
})
.AutoBind(true)
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
<br /><br /><br />
</div>

View file

@ -0,0 +1,35 @@
@using Kreta.BusinessLogic.Classes
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@model AlkalmazottModel
<div class="container-fluid">
@(
Html.KretaGrid<AlkalmazottInfoModel.PedagogusEletpalyamodellModel>(
name: "PedagogusEletpalyamodellGrid",
getUrl: new GridApiUrl("AlkalmazottApi", "GetPedagogusEletpalyamodellGrid", new Dictionary<string, string> { { "Id", Model.AlkalmazottId.ToString() } })
)
.Columns(columns =>
{
columns.Bound(c => c.Fokozat_DNAME);
columns.Bound(c => c.Statusz_DNAME);
columns.Bound(c => c.Datum).Width("10%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
})
.RowFunction(Html, new List<RowFunction> {
new RowFunction { NameResourceId = 116 /*Módosítás*/, ClientAction = "PedagogusEletpalyamodellHelper.modifyPedagogusEletpalyamodell", IconEnum = Kreta.Enums.ManualEnums.GridRowFunctionIconEnum.Modositas },
new RowFunction { NameResourceId = 117 /*Törlés*/, ClientAction = "PedagogusEletpalyamodellHelper.deletePedagogusEletpalyamodellConfirmWindow", IconEnum = Kreta.Enums.ManualEnums.GridRowFunctionIconEnum.Torles }
})
.FunctionCommand(Html, new List<FunctionCommand> {
new FunctionCommand { NameResourceId = 2785 /*Új minősítés*/, ClientAction = string.Format("function(){{ PedagogusEletpalyamodellHelper.newPedagogusEletpalyamodell({0}); }}", Model.AlkalmazottId) },
new FunctionCommand { Name = ImportExportCommonResource.Export, ClientAction = "function() {PedagogusEletpalyamodellHelper.getExportPedagogusEletpalyamodell(" + Model.AlkalmazottId + "); }" }
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
@Html.KretaEmpty()
@Html.KretaEmpty()
@Html.KretaEmpty()
</div>

View file

@ -0,0 +1,13 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@model AlkalmazottModel
@using (Html.KretaForm("AlkalmazottForm"))
{
<input type="text" style="display: none;" />
<input type="password" style="display: none;" />
@Html.KretaValidationSummary()
@Html.HiddenFor(model => model.AlkalmazottId)
<div id="ModifyAlkalmazottTabStrip">@Html.Partial(@"EditorTemplates\TabStrip", Model.TabList)</div>
@Html.KretaTabStrip("ModifyAlkalmazottTabStrip").RenderOnModal();
}

View file

@ -0,0 +1,35 @@
@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>

View file

@ -0,0 +1,42 @@
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@model AlkalmazottModel
<div style="padding-bottom: 5px; padding-top: 5px;">@Html.Raw(AlkalmazottResource.TantargyKategoriaFeltetelLeiras)</div>
<div class="container-fluid">
@(
Html.KretaGrid<AlkalmazottInfoModel.KKVegzettsegMainModel>(
name: "KKVegzettsegMainGrid",
allowPaging: false,
allowFilterable: false,
allowSorting: false,
allowScrolling:false,
getUrl: new GridApiUrl("AlkalmazottApi", "GetKKVegzettsegMainGrid", new Dictionary<string, string> { { "Id", Model.AlkalmazottId.ToString() } }),
clientTemplateWholeDataRow: true,
clientTemplate: "detailGrid-template",
clientTemplateUrl: Url.Action("VegzettsegDetailGrid", "Alkalmazott", new { area = "Alkalmazott" })
)
.Columns(columns =>
{
columns.Bound(c => c.Kepesites);
columns.Bound(c => c.KepesitesTipus);
columns.Bound(c => c.Vegzettseg);
columns.Bound(c => c.MuveszetiAg);
columns.Bound(c => c.Egyeb);
})
.RowFunction(Html, new List<RowFunction> {
new RowFunction { Name = CommonResource.Modositas, ClientAction = "VegzettsegWizard.ModifyVegzettsegPopUp", IconEnum = Kreta.Enums.ManualEnums.GridRowFunctionIconEnum.Modositas, IsConditional = true, IsVisibleRowFunctionJsFunctionName="VegzettsegHelper.VegzettsegModositasaRowFunctionMegjelenitese", SendSender = true },
new RowFunction { Name= CommonResource.Torles, ClientAction = "VegzettsegWizard.DeleteVegzettseg", IconEnum = Kreta.Enums.ManualEnums.GridRowFunctionIconEnum.Torles }
})
.FunctionCommand(Html, new List<FunctionCommand> {
new FunctionCommand { Name = AlkalmazottResource.UjVegzettseg, ClientAction = string.Format("function(){{ VegzettsegWizard.OpenVegzettsegWizard({0}); }}", Model.AlkalmazottId) },
})
)
@Html.KretaGridTemplate("detailGrid-template")
@Html.KretaEmpty()
@Html.KretaEmpty()
@Html.KretaEmpty()
</div>

View file

@ -0,0 +1,39 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Web.Security
@using Kreta.Resources
@model DualisKepzohelyiOktatoModel
@Html.HiddenFor(x => x.NevEloTag)
@Html.HiddenFor(x => x.IsDualisKepzohelyFromSzervezet)
<div class="container-fluid details">
<div class="row">
@Html.KretaLabelFor(x => x.NevEloTag)
</div>
<div class="row">
@Html.KretaTextBoxFor(x => x.CsaladiNev).RenderWithName(3, 3)
@Html.KretaTextBoxFor(x => x.Utonev).RenderWithName(3, 3)
</div>
<div class="row">
<div @(Model.IsDualisKepzohelyFromSzervezet ? "class=disabledItem" : string.Empty)>
@Html.KretaComboBoxFor(x => x.MunkaKor, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetMunkakorList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
</div>
@if(Model.IsDualisKepzohelyFromSzervezet)
{
@Html.KretaComboBoxFor(x => x.OktatoSzervezetId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = Constants.ComboBoxHelperApiActions.GetDualisKepzohelyek }), "Text", "Value", useGroup: true).AutoBind(true).RenderWithName(3, 3)
}
else
{
@Html.KretaComboBoxFor(x => x.FeladatellatasiHely, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFeladatellatasiHelyek" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
}
</div>
@if(!Model.IsDualisKepzohelyFromSzervezet)
{
<div class="row">
@Html.KretaTextBoxFor(x => x.DualisKepzohelyNeve).RenderWithName(3, 3)
@Html.KretaTextBoxFor(x => x.DualisKepzohelyAdoszama).RenderWithName(3, 3)
</div>
}
<div class="row">
@Html.KretaCheckBoxFor(x => x.IsSzakiranyuOktatasertFelelos).RenderWithName(3, 3)
</div>
</div>

View file

@ -0,0 +1,16 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@using Kreta.Web.Security
@model AlkalmazottModel
@Html.HiddenFor(x => x.MunkaugyAdatModel.IsDualisKepzohelyiOktato)
@Html.HiddenFor(x => x.MunkaugyAdatModel.IsDualisKepzohelyFromSzervezet)
@Html.HiddenFor(x => x.MunkaugyAdatModel.DualisKepzohelyNeve)
@Html.HiddenFor(x => x.MunkaugyAdatModel.DualisKepzohelyAdoszama)
<div class="container-fluid details">
<div class="row">
@Html.KretaComboBoxFor(x => x.MunkaugyAdatModel.OktatoSzervezetId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetDualisKepzohelyek" }), "Text", "Value", useGroup: true).AutoBind(true).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.MunkaugyAdatModel.IsSzakiranyuOktatasertFelelos).RenderWithName(3, 3)
</div>
</div>

View file

@ -0,0 +1,20 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Web.Security
@using Kreta.Resources
@model DualisKepzohelyiOktatoModel
@{ bool isAktiv = ClaimData.IsActivTanev; }
<div class="container-fluid details">
<div class="row">
@Html.KretaTextBoxFor(x => x.JogosultsagModel.BelepesiNev, new Dictionary<string, object> { { "autocomplete", "new-password" } }).Enable(isAktiv).RenderWithName(6, 6, tooltipResource: AlkalmazottResource.AlkalmazottBelepesiAdatokFelhasznalonevTooltip)
</div>
<div class="row">
@Html.KretaMultiSelectFor(model => model.JogosultsagModel.JogosultsagiSzint, Model.JogosultsagModel.JogosultsagiSzintList).AutoBind(true).Enable(isAktiv).RenderWithName(6, 6, tooltipResource: AlkalmazottResource.AlkalmazottBelepesiAdatokJogosultsagiSzintTooltip)
</div>
<div class="row">
@Html.KretaPasswordFor(x => x.JogosultsagModel.Jelszo, new Dictionary<string, object> { { "autocomplete", "new-password" } }).Enable(isAktiv).RenderWithName(6, 6, tooltipResource: AlkalmazottResource.AlkalmazottBelepesiAdatokJelszoTooltip)
</div>
<div class="row">
@Html.KretaPasswordFor(x => x.JogosultsagModel.IsmeteltJelszo).Enable(isAktiv).RenderWithName(6, 6)
</div>
</div>

View file

@ -0,0 +1,42 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Web.Security
@using Kreta.Resources
@model AlkalmazottModel
@{ bool isAktiv = ClaimData.IsActivTanev; }
<div class="container-fluid details">
<div class="row">
@Html.KretaTextBoxFor(x => x.JogosultsagModel.BelepesiNev, new Dictionary<string, object> { { "autocomplete", "new-password" } }).Enable(isAktiv).RenderWithName(6, 6, tooltipResource: AlkalmazottResource.AlkalmazottBelepesiAdatokFelhasznalonevTooltip)
</div>
<div class="row">
@Html.KretaMultiSelectFor(model => model.JogosultsagModel.JogosultsagiSzint, Model.JogosultsagModel.JogosultsagiSzintList).AutoBind(true).Enable(isAktiv).RenderWithName(6, 6, tooltipResource: AlkalmazottResource.AlkalmazottBelepesiAdatokJogosultsagiSzintTooltip)
</div>
<div class="row">
@Html.KretaPasswordFor(x => x.JogosultsagModel.Jelszo, new Dictionary<string, object> { { "autocomplete", "new-password" } }).Enable(isAktiv).RenderWithName(6, 6, tooltipResource: AlkalmazottResource.AlkalmazottBelepesiAdatokJelszoTooltip)
</div>
<div class="row">
@Html.KretaPasswordFor(x => x.JogosultsagModel.IsmeteltJelszo).Enable(isAktiv).RenderWithName(6, 6)
</div>
@if(!Model.IsFromSzervezet)
{
<div class="row">
@Html.KretaCheckBoxFor(x => x.JogosultsagModel.DiakolimpiaiJog).Enable(isAktiv).RenderWithName()
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.JogosultsagModel.KozossegiSzolgalatKezelo).Enable(isAktiv).RenderWithName()
</div>
if (Model.JogosultsagModel.LEPModulKezeloSystemSetting)
{
<div class="row">
@Html.KretaCheckBoxFor(x => x.JogosultsagModel.LEPModulKezelo).Enable(isAktiv).RenderWithName()
</div>
}
if (Model.JogosultsagModel.IsHrFeatureEnabled)
{
<div class="row">
@Html.KretaCheckBoxFor(x => x.JogosultsagModel.IsHrKezelo).Enable(isAktiv).RenderWithName()
</div>
}
}
</div>

View file

@ -0,0 +1,12 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@using Kreta.Web.Security
@model AlkalmazottModel
<div class="container-fluid details">
<div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.AlapAdatModel.IsKuldhetoPedMinositesSzRnek).RenderWithName(3, 3)
@Html.KretaEmpty(6)
</div>
</div>
</div>

View file

@ -0,0 +1,10 @@
@using Kreta.Web.Models.EditorTemplates
@model TabStripModel
@using (Html.KretaForm("NewDualisKepzohelyiOktatoForm"))
{
@Html.KretaValidationSummary()
<div id="NewDualisKepzohelyiOktatoTabStrip">@Html.Partial(@"EditorTemplates\TabStrip", Model.TabList)</div>
@Html.KretaTabStrip("NewDualisKepzohelyiOktatoTabStrip").RenderOnModal();
}

View file

@ -0,0 +1,136 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Resources
@using Kreta.Web.Security
@model AlkalmazottModel
@Html.HiddenFor(x => x.IsKozpontilagSzinkronizalt)
<div class="container-fluid details">
<input type="hidden" id="nhdOktatasiAzonosito" value="@Model.AlapAdatModel.OktatasiAzonosito" />
<div class="row">
@Html.KretaMaskedTextBoxFor(x => x.AlapAdatModel.OktatasiAzonosito, "00000000000").RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottSzemelyesAdatokOktatasiAzonositoTooltip)
@Html.KretaSelectorFor(x => x.AlapAdatModel.Nem, Model.AlapAdatModel.NemList).RenderWithNameForSelector(3, 3)
</div>
@if (ClaimData.IsSzakkepzoIntezmeny)
{
<div class="row">
@Html.KretaCheckBoxFor(x => x.AlapAdatModel.IsOktatasiAzonositoNelkul).RenderWithName(3, 3)
</div>
}
<div class="row">
@Html.KretaTextBoxFor(x => x.AlapAdatModel.NevEloTag).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottSzemelyesAdatokNevElotagTooltip)
@Html.KretaTextBoxFor(x => x.AlapAdatModel.SzuletesiNevElotag).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottSzemelyesAdatokSzuletesiElotagTooltip)
</div>
<div class="row">
@Html.KretaTextBoxFor(x => x.AlapAdatModel.MunkavallaloCsaladiNev).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottSzemelyesAdatokCsaladiNevTooltip)
@Html.KretaTextBoxFor(x => x.AlapAdatModel.SzuletesiCsaladiNev).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottSzemelyesAdatokSzuletesiCsaladnevTooltip)
</div>
<div class="row">
@Html.KretaTextBoxFor(x => x.AlapAdatModel.MunkavallaloUtonev).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottSzemelyesAdatokUtonevTooltip)
@Html.KretaTextBoxFor(x => x.AlapAdatModel.SzuletesiUtonev).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottSzemelyesAdatokSzuletesiUtonevTooltip)
</div>
<div class="row">
@Html.KretaTextBoxFor(x => x.AlapAdatModel.AnyjaNeveElotag).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottSzemelyesAdatokAnyjaElotagTooltip)
</div>
<div class="row">
@Html.KretaTextBoxFor(x => x.AlapAdatModel.AnyjaCsaladiNeve).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottSzemelyesAdatokAnyjaSzuletesiCsaladnevTooltip)
@Html.KretaTextBoxFor(x => x.AlapAdatModel.AnyjaUtoneve).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottSzemelyesAdatokAnyjaSzuletesiUtonevTooltip)
</div>
<div class="row">
@Html.KretaTextBoxFor(x => x.AlapAdatModel.SzuletesiHely).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottSzemelyesAdatokSzuletesiHelyTooltip)
@Html.KretaDatePickerFor(x => x.AlapAdatModel.SzuletesiIdo).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottSzemelyesAdatokSzuletesiIdoTooltip)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.AlapAdatModel.SzuletesiOrszag, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = Model.IsKozpontilagSzinkronizalt ? "GetOrszagFullList" : "GetOrszagList" }), "Text", "Value", isServerFiltering: false).AutoBind(true).MinLength(2).Filter(FilterType.Contains).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.SzuletesiOrszagTooltip)
@Html.KretaComboBoxFor(x => x.AlapAdatModel.Anyanyelve, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetNyelvList" }), "Text", "Value", isServerFiltering: false).AutoBind(true).MinLength(2).Filter(FilterType.Contains).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AnyanyelveTooltip)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.AlapAdatModel.Allampolgarsag, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = Model.IsKozpontilagSzinkronizalt ? "GetAllampolgarsagFullList" : "GetAllampolgarsagList" }), "Text", "Value", isServerFiltering: false).AutoBind(true).MinLength(2).Filter(FilterType.Contains).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AllampolgarsagTooltip)
@Html.KretaComboBoxFor(x => x.AlapAdatModel.Allampolgarsag2, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = Model.IsKozpontilagSzinkronizalt ? "GetAllampolgarsagFullList" : "GetAllampolgarsagList" }), "Text", "Value", isServerFiltering: false).AutoBind(true).MinLength(2).Filter(FilterType.Contains).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.Allampolgarsag2Tooltip)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.AlapAdatModel.IgazolvanyTipus, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetIgazolvanyTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottSzemelyesAdatokIgazolvanyTipusTooltip)
@Html.KretaTextBoxFor(x => x.AlapAdatModel.IgazolvanySzam).RenderWithName(3, 3, tooltipResource: AlkalmazottResource.AlkalmazottSzemelyesAdatokIgazolvanySzamaTooltip)
</div>
<div class="row">
@Html.KretaMaskedTextBoxFor(x => x.AlapAdatModel.AdoazonositoJel, "8000000000").RenderWithName(3, 3)
@Html.KretaMaskedTextBoxFor(x => x.AlapAdatModel.TajSzam, "000000000").RenderWithName(3, 3)
</div>
<h4>@AlkalmazottResource.Megjegyzes</h4>
<div class="row">
@Html.KretaTextAreaFor(x => x.AlapAdatModel.Megjegyzes).RenderWithName(3, 9)
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
var utolsoOktatasiAzonosito = "";
setTimeout(function () {
$("#AlapAdatModel_MunkavallaloCsaladiNev").change(function () {
var szulCsNev = $("#AlapAdatModel_SzuletesiCsaladiNev");
if (szulCsNev.val() == "") {
szulCsNev.val($(this).val()).focus().focusout();
}
});
$("#AlapAdatModel_MunkavallaloUtonev").change(function () {
var szulUNev = $("#AlapAdatModel_SzuletesiUtonev");
if (szulUNev.val() == "") {
szulUNev.val($(this).val()).focus().focusout();
}
});
$('#AlapAdatModel_IsOktatasiAzonositoNelkul').change(function () {
var value = this.checked;
var alapAdatModelOktatasiAzonosito = $('#AlapAdatModel_OktatasiAzonosito');
if (value) {
alapAdatModelOktatasiAzonosito.addClass('k-state-disabled');
alapAdatModelOktatasiAzonosito.addClass('disabledItem');
utolsoOktatasiAzonosito = alapAdatModelOktatasiAzonosito.val();
alapAdatModelOktatasiAzonosito.val("");
}
else {
alapAdatModelOktatasiAzonosito.removeClass('k-state-disabled');
alapAdatModelOktatasiAzonosito.removeClass('disabledItem');
if (utolsoOktatasiAzonosito != "") {
alapAdatModelOktatasiAzonosito.val(utolsoOktatasiAzonosito);
}
}
});
$('#AlapAdatModel_IsOktatasiAzonositoNelkul').trigger('change');
}, 1);
if (!CommonUtils.isNullOrUndefined($("#IsKozpontilagSzinkronizalt").val()) && CommonUtils.parseBool($("#IsKozpontilagSzinkronizalt").val())) {
//Személyes adatok
setItemisKozpontilagSzinkronizalt("AlapAdatModel_NevEloTag");
setItemisKozpontilagSzinkronizalt("AlapAdatModel_MunkavallaloCsaladiNev");
setItemisKozpontilagSzinkronizalt("AlapAdatModel_SzuletesiCsaladiNev");
setItemisKozpontilagSzinkronizalt("AlapAdatModel_MunkavallaloUtonev");
setItemisKozpontilagSzinkronizalt("AlapAdatModel_SzuletesiUtonev");
setItemisKozpontilagSzinkronizalt("AlapAdatModel_AnyjaCsaladiNeve");
setItemisKozpontilagSzinkronizalt("AlapAdatModel_AnyjaUtoneve");
setItemisKozpontilagSzinkronizalt("AlapAdatModel_SzuletesiHely");
setItemisKozpontilagSzinkronizalt("AlapAdatModel_SzuletesiIdo");
setItemisKozpontilagSzinkronizalt("AlapAdatModel_SzuletesiOrszag");
setItemisKozpontilagSzinkronizalt("AlapAdatModel_Allampolgarsag");
setItemisKozpontilagSzinkronizalt("AlapAdatModel_Nem");
}
function setItemisKozpontilagSzinkronizalt(itemId) {
$("#" + itemId).closest('div').addClass('disabledItem');
var kozpontilagSzinkronizaltNemModosithatoText = "@AlkalmazottResource.KozpontilagSzinkronizaltNemModosithato";
var label = $("[for*='" + $("#" + itemId).prop('name') + "']");
var vanTooltipje = label.parent().hasClass('kretaLabelTooltip');
if (vanTooltipje) {
label.find('.kretaLabelTooltipText').html(kozpontilagSzinkronizaltNemModosithatoText);
}
else {
label.parent().addClass('kretaLabelTooltip');
label.html(label.html()+"<img class='kretaLabelTooltipImg'><span class='kretaLabelTooltipText'>" + kozpontilagSzinkronizaltNemModosithatoText + "</span>");
}
}
});
</script>

View file

@ -0,0 +1,42 @@
@using Kreta.Web.Areas.Alkalmazott.Models
@using Kreta.Web.Helpers
@using Kreta.Resources
@using Kreta.Web.Security
@model AlkalmazottModModel
@using (Html.KretaForm("AlkalmazottModForm"))
{
@Html.KretaValidationSummary()
@Html.HiddenFor(x => x.AlkalmazottId)
@Html.HiddenFor(x => x.AlkalmazottArray)
@Html.HiddenFor(x => x.IsFromSzervezet)
<div class="container-fluid details">
<div>
@if (!string.IsNullOrWhiteSpace(Model.AlkalmazottArray))
{
<div class="row">
@Html.KretaLabelFor(x => x.AlkalmazottNevArray, 3, 9)
</div>
}
else
{
<div class="row">
@Html.KretaLabelFor(x => x.AlkalmazottNev, 3, 9)
</div>
}
<div class="row">
<div class="col-xs-6 col-sm-6 col-md-3">
@Html.LabelFor(x => x.ModifyNem, null, htmlAttributes: new Dictionary<string, object>() { { "class", "windowInputLabel" } })
</div>
<div class="col-xs-12 col-sm-12 col-md-8">
@Html.KretaSelectorFor(x => x.ModifyNem, Model.NemList)
</div>
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.OktatoSzervezetId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetDualisKepzohelyek" }), "Text", "Value", useGroup: true, isSingleElementSet: false).AutoBind(true).RenderWithName(3, 3)
</div>
</div>
</div>
}

View file

@ -0,0 +1,3 @@
@{
Layout = "~/Views/Shared/_MasterLayout.cshtml";
}

View file

@ -0,0 +1,38 @@
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
</sectionGroup>
</configSections>
<system.web.webPages.razor>
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<pages pageBaseType="System.Web.Mvc.WebViewPage">
<namespaces>
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="Kreta.Web" />
<add namespace="Kreta.BusinessLogic.Utils" />
<add namespace="Kendo.Mvc.UI" />
<add namespace="Kreta.Web.Helpers" />
<add namespace="System.Web.Optimization" />
</namespaces>
</pages>
</system.web.webPages.razor>
<appSettings>
<add key="webpages:Enabled" value="false" />
</appSettings>
<system.webServer>
<handlers>
<remove name="BlockViewHandler"/>
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
</handlers>
</system.webServer>
</configuration>