init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
226
KretaWeb/Areas/Adminisztracio/Models/AdatszotarGridModel.cs
Normal file
226
KretaWeb/Areas/Adminisztracio/Models/AdatszotarGridModel.cs
Normal file
|
@ -0,0 +1,226 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Core.CustomAttributes;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Models;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class AdatszotarGridModel : IKretaIdentity
|
||||
{
|
||||
public const string AdatszotarExportAttributeId = nameof(AdatszotarExportAttributeId);
|
||||
public const string AdatszotarNapTipusExportAttributeId = nameof(AdatszotarNapTipusExportAttributeId);
|
||||
|
||||
public AdatszotarGridModel()
|
||||
{
|
||||
this.IsLathato = true;
|
||||
AdatszotarTipusList = new List<SelectListItem>();
|
||||
ZaradekSzovegList = new List<ZaradekSzovegModel>();
|
||||
}
|
||||
|
||||
public AdatszotarGridModel(AdatszotarItemCo itemCo) : this()
|
||||
{
|
||||
ID = itemCo.Id.ToString();
|
||||
AdatszotarTipusId = itemCo.AdatszotarTipusId;
|
||||
AdatszotarTipusNev = itemCo.AdatszotarTipusNev;
|
||||
Megnevezes = itemCo.Megnevezes;
|
||||
Sorszam = itemCo.Sorszam;
|
||||
Megnevezes1 = itemCo.Megnevezes1;
|
||||
Megnevezes2 = itemCo.Megnevezes2;
|
||||
Megnevezes3 = itemCo.Megnevezes3;
|
||||
Megnevezes4 = itemCo.Megnevezes4;
|
||||
IsLathato = itemCo.IsLathato;
|
||||
IsLathatoText = itemCo.IsLathatoText;
|
||||
IsProtected = itemCo.IsProtected;
|
||||
IsProtectedText = itemCo.IsProtectedText;
|
||||
IsSorszamozando = itemCo.IsSorszamozando;
|
||||
IsSorszamozandoText = itemCo.IsSorszamozandoText;
|
||||
IsTanorai = itemCo.IsTanorai;
|
||||
IsTanoraiText = itemCo.IsTanoraiText;
|
||||
IsTanorankivuli = itemCo.IsTanorankivuli;
|
||||
IsTanorankivuliText = itemCo.IsTanorankivuliText;
|
||||
IsLeNemKotottMunkaido = itemCo.IsLeNemKotottMunkaido;
|
||||
IsLeNemKotottMunkaidoText = itemCo.IsLeNemKotottMunkaidoText;
|
||||
}
|
||||
|
||||
public AdatszotarGridModel(AdatszotarCO co) : this()
|
||||
{
|
||||
ID = string.Empty;
|
||||
AdatszotarID = co.ID;
|
||||
AdatszotarTipusNev = co.AdatszotarTipus;
|
||||
AdatszotarTipusId = co.AdatszotarTipusId;
|
||||
IsLathato = co.Lathato ?? false;
|
||||
Megnevezes = co.Megnevezes;
|
||||
Sorszam = co.Sorszam;
|
||||
Megnevezes1 = co.Megnevezes1;
|
||||
Megnevezes2 = co.Megnevezes2;
|
||||
Megnevezes3 = co.Megnevezes3;
|
||||
Megnevezes4 = co.Megnevezes4;
|
||||
Color = "#" + co.Color != null ? co.Color : "000000";
|
||||
IsBold = co.IsBold;
|
||||
Suly = co.Suly;
|
||||
IsProtected = co.Protected;
|
||||
IsSorszamozando = co.IsSorszamozando;
|
||||
IsTanorai = co.IsTanorai;
|
||||
IsTanorankivuli = co.IsTanorankivuli;
|
||||
IsLeNemKotottMunkaido = co.IsLeNemKotottMunkaido;
|
||||
IsBizonyitvanybanMegjelenik = co.IsBizonyitvanybanMegjelenik;
|
||||
IsNaplobanMegjelenik = co.IsNaplobanMegjelenik;
|
||||
IsTorzslaponMegjelenik = co.IsTorzslaponMegjelenik;
|
||||
|
||||
ZaradekSzovegList = (co.AdatszotarTipusId == (int)GeneratedAdatszotarTipusEnum.SorolasOkaTipus) ?
|
||||
ZaradekSzovegModel.AdatszotarNyelvCoToZaradekSzovegModel(co.ZaradekSzovegCoList) :
|
||||
new List<ZaradekSzovegModel>();
|
||||
}
|
||||
|
||||
public string ID { get; set; }
|
||||
|
||||
public int? AdatszotarID { get; set; }
|
||||
|
||||
public int AdatszotarTipusId { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Adatszotar), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string AdatszotarTipusNev { get; set; }
|
||||
|
||||
public List<SelectListItem> AdatszotarTipusList { get; set; }
|
||||
|
||||
[SimpleExportColumn(AdatszotarExportAttributeId, 01, nameof(AdminisztracioResource.Megnevezes), typeof(AdminisztracioResource))]
|
||||
[SimpleExportColumn(AdatszotarNapTipusExportAttributeId, 01, nameof(AdminisztracioResource.Megnevezes), typeof(AdminisztracioResource))]
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.MegnevezesMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[StringLength(250, ErrorMessageResourceName = nameof(ErrorResource.AMegnevezesMax250KarakterLehet), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.Megnevezes), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string Megnevezes { get; set; }
|
||||
|
||||
[SimpleExportColumn(AdatszotarExportAttributeId, 00, nameof(AdminisztracioResource.Sorszam), typeof(AdminisztracioResource))]
|
||||
[SimpleExportColumn(AdatszotarNapTipusExportAttributeId, 00, nameof(AdminisztracioResource.Sorszam), typeof(AdminisztracioResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.Sorszam), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int? Sorszam { get; set; }
|
||||
|
||||
[SimpleExportColumn(AdatszotarExportAttributeId, 02, nameof(AdminisztracioResource.Megnevezes1), typeof(AdminisztracioResource))]
|
||||
[SimpleExportColumn(AdatszotarNapTipusExportAttributeId, 02, nameof(AdminisztracioResource.Megnevezes1), typeof(AdminisztracioResource))]
|
||||
[StringLength(250, ErrorMessageResourceName = nameof(ErrorResource.AMegnevezes1Max250KarakterLehet), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.Megnevezes1), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string Megnevezes1 { get; set; }
|
||||
|
||||
[SimpleExportColumn(AdatszotarExportAttributeId, 03, nameof(AdminisztracioResource.Megnevezes2), typeof(AdminisztracioResource))]
|
||||
[StringLength(250, ErrorMessageResourceName = nameof(ErrorResource.AMegnevezes2Max250KarakterLehet), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.Megnevezes2), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string Megnevezes2 { get; set; }
|
||||
|
||||
[SimpleExportColumn(AdatszotarExportAttributeId, 04, nameof(AdminisztracioResource.Megnevezes3), typeof(AdminisztracioResource))]
|
||||
[StringLength(250, ErrorMessageResourceName = nameof(ErrorResource.AMegnevezes3Max250KarakterLehet), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.Megnevezes3), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string Megnevezes3 { get; set; }
|
||||
|
||||
[SimpleExportColumn(AdatszotarExportAttributeId, 05, nameof(AdminisztracioResource.Megnevezes4), typeof(AdminisztracioResource))]
|
||||
[StringLength(250, ErrorMessageResourceName = nameof(ErrorResource.AMegnevezes4Max250KarakterLehet), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.Megnevezes4), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string Megnevezes4 { get; set; }
|
||||
|
||||
[SimpleExportColumn(AdatszotarNapTipusExportAttributeId, 04, nameof(AdminisztracioResource.Lathato), typeof(AdminisztracioResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.Lathato), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool IsLathato { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.VedettElem), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool IsProtected { get; set; }
|
||||
|
||||
[SimpleExportColumn(AdatszotarExportAttributeId, 07, nameof(AdminisztracioResource.Lathato), typeof(AdminisztracioResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.Lathato), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string IsLathatoText { get; set; }
|
||||
|
||||
[SimpleExportColumn(AdatszotarExportAttributeId, 06, nameof(AdminisztracioResource.VedettElem), typeof(AdminisztracioResource))]
|
||||
[SimpleExportColumn(AdatszotarNapTipusExportAttributeId, 03, nameof(AdminisztracioResource.VedettElem), typeof(AdminisztracioResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.VedettElem), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string IsProtectedText { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Szin), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string Color { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Felkover), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool IsBold { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Suly), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int Suly { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.IsSorszamozando), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool IsSorszamozando { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.IsTanorai), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool IsTanorai { get; set; }
|
||||
|
||||
[SimpleExportColumn(AdatszotarNapTipusExportAttributeId, 06, nameof(AdminisztracioResource.IsTanoraiGridHeader), typeof(AdminisztracioResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.IsTanoraiGridHeader), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string IsTanoraiText { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.IsTanorankivuli), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool IsTanorankivuli { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.IsLeNemKotottMunkaido), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool IsLeNemKotottMunkaido { get; set; }
|
||||
|
||||
[SimpleExportColumn(AdatszotarNapTipusExportAttributeId, 08, nameof(AdminisztracioResource.IsLeNemKotottMunkaidoGridHeader), typeof(AdminisztracioResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.IsLeNemKotottMunkaidoGridHeader), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string IsLeNemKotottMunkaidoText { get; set; }
|
||||
|
||||
[SimpleExportColumn(AdatszotarNapTipusExportAttributeId, 05, nameof(AdminisztracioResource.Sorszamozando), typeof(AdminisztracioResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.IsSorszamozandoGridHeader), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string IsSorszamozandoText { get; set; }
|
||||
|
||||
[SimpleExportColumn(AdatszotarNapTipusExportAttributeId, 07, nameof(AdminisztracioResource.IsTanorankivuliGridHeader), typeof(AdminisztracioResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.IsTanorankivuliGridHeader), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string IsTanorankivuliText { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.IsNaplobanMegjelenik), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool IsNaplobanMegjelenik { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.IsTorzslaponMegjelenik), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool IsTorzslaponMegjelenik { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.IsBizonyitvanybanMegjelenik), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool IsBizonyitvanybanMegjelenik { get; set; }
|
||||
|
||||
public List<ZaradekSzovegModel> ZaradekSzovegList { get; set; }
|
||||
|
||||
public AdatszotarCO ToCo()
|
||||
{
|
||||
AdatszotarCO co = new AdatszotarCO
|
||||
{
|
||||
ID = this.AdatszotarID,
|
||||
AdatszotarTipus = this.AdatszotarTipusNev,
|
||||
AdatszotarTipusId = this.AdatszotarTipusId,
|
||||
Lathato = this.IsLathato,
|
||||
Megnevezes = this.Megnevezes,
|
||||
Sorszam = this.Sorszam,
|
||||
Megnevezes1 = this.Megnevezes1,
|
||||
Megnevezes2 = this.Megnevezes2,
|
||||
Megnevezes3 = this.Megnevezes3,
|
||||
Megnevezes4 = this.Megnevezes4,
|
||||
Color = this.Color != null ? this.Color.Replace("#", "") : "",
|
||||
IsBold = this.IsBold,
|
||||
Suly = this.Suly,
|
||||
Protected = this.IsProtected,
|
||||
IsSorszamozando = this.IsSorszamozando,
|
||||
IsTanorai = this.IsTanorai,
|
||||
IsTanorankivuli = this.IsTanorankivuli,
|
||||
IsLeNemKotottMunkaido = this.IsLeNemKotottMunkaido,
|
||||
IsBizonyitvanybanMegjelenik = this.IsBizonyitvanybanMegjelenik,
|
||||
IsNaplobanMegjelenik = this.IsNaplobanMegjelenik,
|
||||
IsTorzslaponMegjelenik = this.IsTorzslaponMegjelenik
|
||||
};
|
||||
|
||||
co.ZaradekSzovegCoList = (this.AdatszotarTipusId == (int)GeneratedAdatszotarTipusEnum.SorolasOkaTipus) ?
|
||||
this.ZaradekSzovegList.ConvertAll(x => new AdatszotarZaradekNyelvCo
|
||||
{
|
||||
NyelvId = x.NyelvId,
|
||||
Name = x.Szoveg
|
||||
}) :
|
||||
new List<AdatszotarZaradekNyelvCo>();
|
||||
|
||||
return co;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class AdatszotarSearchModel
|
||||
{
|
||||
[Display(Name = nameof(AdminisztracioResource.AdatszotarTipus), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int? AdatszotarTipusTypeId { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class AdminDashboardAbstarctModel
|
||||
{
|
||||
public string IntezmenyNev { get; set; }
|
||||
|
||||
public string IntezmenyAzonosito { get; set; }
|
||||
|
||||
public string IntezmenyAlternativAzonosito { get; set; }
|
||||
|
||||
public string TanevNev { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public static class AdminDashboardAdattisztitasAlkalmazottModel
|
||||
{
|
||||
public static DateTime AdattisztitasUtolsoFrissites { get; set; }
|
||||
public static int AlkalmazottakSzama { get; set; }
|
||||
public static int AlkalmazottakOsszesHibai { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,77 @@
|
|||
using System;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class AdminDashboardAdminisztracioModel : AdminDashboardAbstarctModel
|
||||
{
|
||||
public bool isKlebelsberg { get; set; }
|
||||
|
||||
public int NincsAktivCsengetesiRend { get; set; }
|
||||
|
||||
public int NincsAllampolgarsagaTanulo { get; set; }
|
||||
|
||||
public int NincsAnyanyelvTanulo { get; set; }
|
||||
|
||||
public int NincsBesorolasiFokozatAlkalmazott { get; set; }
|
||||
|
||||
public int NincsEvfolyamCsoport { get; set; }
|
||||
|
||||
public int NincsEvfolyamOsztaly { get; set; }
|
||||
|
||||
public int NincsFeladatellatasiHelyMukodesiHely { get; set; }
|
||||
|
||||
public int NincsFeladatellatasiHelyTipus { get; set; }
|
||||
|
||||
public int NincsKategoriaTantargy { get; set; }
|
||||
|
||||
public int NincsMunkakorAlkalmazott { get; set; }
|
||||
|
||||
public int NincsMunkaviszonyTipusAlkalmazott { get; set; }
|
||||
|
||||
public int NincsNemAlkalmazott { get; set; }
|
||||
|
||||
public int NincsNemTanulo { get; set; }
|
||||
|
||||
public int NincsOsztalybaSorolvaTanulo { get; set; }
|
||||
|
||||
public int NincsOsztalyOsztalyfonok { get; set; }
|
||||
|
||||
public int NincsSzakmacsoportTanulo { get; set; }
|
||||
|
||||
public int NincsTipusCsoport { get; set; }
|
||||
|
||||
public int UresCsoport { get; set; }
|
||||
|
||||
public int UresOsztaly { get; set; }
|
||||
|
||||
public int NSzFHRosszMunkakor { get; set; }
|
||||
|
||||
public DateTime? LicenceDatum { get; set; }
|
||||
|
||||
public int NincsEmailAlkalmazott { get; set; }
|
||||
|
||||
public int NincsAlkalmazottSZTSZ { get; set; }
|
||||
|
||||
public int HibasanRogzitettOktatasiAzonositok { get; set; }
|
||||
|
||||
public int HibasanRogzitettTajSzamok { get; set; }
|
||||
|
||||
public int HibasanRogzitettAdoazonositoJelek { get; set; }
|
||||
|
||||
public bool IsLEPModulEngedelyezett { get; set; }
|
||||
|
||||
public bool VanHibasEmailCim { get; set; }
|
||||
|
||||
public int VanKettosOsztalybesorolas { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Covid fertőzöttek
|
||||
/// </summary>
|
||||
public bool VanCovidFertozott { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gondviselő által bejelentettek
|
||||
/// </summary>
|
||||
public bool VanCovidBejelentett { get; set; }
|
||||
}
|
||||
}
|
76
KretaWeb/Areas/Adminisztracio/Models/AdminDashboardModel.cs
Normal file
76
KretaWeb/Areas/Adminisztracio/Models/AdminDashboardModel.cs
Normal file
|
@ -0,0 +1,76 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class AdminDashboardModel
|
||||
{
|
||||
public AdminDashboardAdminisztracioModel AdminisztracioModel { get; set; }
|
||||
|
||||
public AdminDashboardNaploModel NaploModel { get; set; }
|
||||
|
||||
public AdminDashboardStatisztikaModel StatisztikaModel { get; set; }
|
||||
|
||||
public IList<AdminDashboardItemModel> DashboardUzenetek { get; set; }
|
||||
|
||||
public IList<string> EgyediAzonositokByIntezmeny { get; set; }
|
||||
|
||||
public AdminDashboardSzakkepzesiJuttatasokModel SzakkepzesiJuttatasokModel { get; set; }
|
||||
|
||||
public AdminDashboardTableModel Ugyek { get; set; }
|
||||
}
|
||||
|
||||
public class AdminDashboardItemModel
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Content { get; set; }
|
||||
|
||||
public AdminDashboardTipusEnum Type { get; set; }
|
||||
|
||||
public int Sorrend { get; set; }
|
||||
|
||||
public string EgyediAzonosito { get; set; }
|
||||
}
|
||||
|
||||
public class AdminDashboardPopupItemModel : AdminDashboardItemModel
|
||||
{
|
||||
public int DashboardUzenetFelhasznaloId { get; set; }
|
||||
|
||||
public int MegjelenitesekSzama { get; set; }
|
||||
|
||||
public DateTime? UtolsoMegtekintesIdeje { get; set; }
|
||||
|
||||
public string EgyediMuvelet { get; set; }
|
||||
}
|
||||
|
||||
public class AdminDashboardTableModel
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Url { get; set; }
|
||||
|
||||
public bool OpenInNewWindow { get; set; }
|
||||
|
||||
public bool IsEnabled { get; set; }
|
||||
|
||||
public List<string> Headers { get; set; }
|
||||
|
||||
public List<AdminDashboardTableRowModel> Rows { get; set; }
|
||||
}
|
||||
|
||||
public class AdminDashboardTableRowModel
|
||||
{
|
||||
public List<string> Columns { get; set; }
|
||||
}
|
||||
|
||||
public class Ugy
|
||||
{
|
||||
public int Azonosito { get; set; }
|
||||
public DateTime BekuldesIdopontja { get; set; }
|
||||
public string TanuloNev { get; set; }
|
||||
public string TanuloOsztaly { get; set; }
|
||||
public string UgyTipusKod { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
using Kreta.Enums.ManualEnums;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class AdminDashboardNaploModel : AdminDashboardAbstarctModel
|
||||
{
|
||||
public int NemLepettBeHonapAlkalmazott { get; set; }
|
||||
|
||||
public int NemLepettBeKetHetAlkalmazott { get; set; }
|
||||
|
||||
public int NincsBelepesAlkalmazott { get; set; }
|
||||
|
||||
public int NincsBelepesGondviselo { get; set; }
|
||||
|
||||
public int NincsBelepesTanulo { get; set; }
|
||||
|
||||
public int ZarasiGond { get; set; }
|
||||
|
||||
public string NaploZarasanakBeallitasa { get; set; }
|
||||
|
||||
public string NaploFixDatumuZarasanakIdopontja { get; set; }
|
||||
|
||||
public NaplozarasTipusaEnum NaploZarasTipusa { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class AdminDashboardStatisztikaModel : AdminDashboardAbstarctModel
|
||||
{
|
||||
public string AktivTanevNeve { get; set; }
|
||||
|
||||
public int AktivTanulokSzama { get; set; }
|
||||
|
||||
public int AlkalmazottakSzama { get; set; }
|
||||
|
||||
public int CsoportokSzama { get; set; }
|
||||
|
||||
public int EszkozokSzama { get; set; }
|
||||
|
||||
public int OsztalyokSzama { get; set; }
|
||||
|
||||
public int TanulokSzama { get; set; }
|
||||
|
||||
public int TermekSzama { get; set; }
|
||||
|
||||
public double TtfOrakSzama { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class AdminDashboardSzakkepzesiJuttatasokModel
|
||||
{
|
||||
public bool IsSzakkepzoJuttatas { get; set; }
|
||||
public int NemRendelkezikOsztondijAlapAdattal { get; set; }
|
||||
public int NemRendelkezikOsztondijUtalasAdattal { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,94 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.Helpers.DokumentumHelpers;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Areas.Adminisztracio.Helpers;
|
||||
using ModelStateDictionary = System.Web.Http.ModelBinding.ModelStateDictionary;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public abstract class BaseTanuloErtekelesMondatbankItemModel
|
||||
{
|
||||
[Display(Name = nameof(TanuloErtekelesResource.ErtekelesTipus), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public abstract int? TanuloErtekelesTipusId { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloErtekelesResource.EvfolyamTipus), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public abstract int? EvfolyamTipusId { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloErtekelesResource.Tantargy), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public abstract int? TantargyId { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloErtekelesResource.Szoveg), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public abstract string Szoveg { get; set; }
|
||||
|
||||
[MaxLength(3, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
|
||||
[Display(Name = nameof(TanuloErtekelesResource.RovidNev), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public string RovidNev { get; set; }
|
||||
|
||||
public List<SelectListItem> TipusList { get; set; }
|
||||
|
||||
public List<SelectListItem> EvfolyamTipusList { get; set; }
|
||||
|
||||
public List<SelectListItem> TantargyList { get; set; }
|
||||
|
||||
protected BaseTanuloErtekelesMondatbankItemModel(bool mustSetSelectListItemLists = true)
|
||||
{
|
||||
if (mustSetSelectListItemLists)
|
||||
{
|
||||
SetSelectListItemLists(this);
|
||||
}
|
||||
|
||||
TanuloErtekelesTipusId = null;
|
||||
EvfolyamTipusId = null;
|
||||
TantargyId = null;
|
||||
}
|
||||
|
||||
protected void SetSelectListItemLists(BaseTanuloErtekelesMondatbankItemModel model)
|
||||
{
|
||||
var defaultList = new List<SelectListItem>
|
||||
{
|
||||
new SelectListItem
|
||||
{
|
||||
Value = "0",
|
||||
Text = CommonResource.Mind
|
||||
}
|
||||
};
|
||||
model.TipusList = defaultList.Union(TanuloErtekelesMondatbankWebHelper.GetTipusList()).ToList();
|
||||
model.EvfolyamTipusList = defaultList.Union(TanuloErtekelesMondatbankWebHelper.GetEvfolyamTipusList()).ToList();
|
||||
model.TantargyList = defaultList.Union(TanuloErtekelesMondatbankWebHelper.GetTantargyList()).ToList();
|
||||
}
|
||||
|
||||
public List<int> NemzetiDokumentumNyelvek { get; set; } = new List<int>();
|
||||
|
||||
public bool IsNyelviesitesActive => NemzetiDokumentumNyelvek.Any();
|
||||
|
||||
public bool IsNemetNemzetiDokumentumNyelvActive => DokumentumNyelvesitesHelper.IsNemzetiDokumentumNyelvActive(NemzetiDokumentumNyelvek, AnyanyelvEnum.nemet);
|
||||
|
||||
public bool IsHorvatNemzetiDokumentumNyelvActive => DokumentumNyelvesitesHelper.IsNemzetiDokumentumNyelvActive(NemzetiDokumentumNyelvek, AnyanyelvEnum.horvat);
|
||||
|
||||
public bool IsRomanNemzetiDokumentumNyelvActive => DokumentumNyelvesitesHelper.IsNemzetiDokumentumNyelvActive(NemzetiDokumentumNyelvek, AnyanyelvEnum.roman);
|
||||
|
||||
public bool IsSzerbNemzetiDokumentumNyelvActive => DokumentumNyelvesitesHelper.IsNemzetiDokumentumNyelvActive(NemzetiDokumentumNyelvek, AnyanyelvEnum.szerb);
|
||||
|
||||
[MaxLength(4000, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
|
||||
[Display(Name = nameof(TanuloErtekelesResource.SzovegNemet), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public string SzovegNemet { get; set; }
|
||||
|
||||
[MaxLength(4000, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
|
||||
[Display(Name = nameof(TanuloErtekelesResource.SzovegHorvat), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public string SzovegHorvat { get; set; }
|
||||
|
||||
[MaxLength(4000, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
|
||||
[Display(Name = nameof(TanuloErtekelesResource.SzovegRoman), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public string SzovegRoman { get; set; }
|
||||
|
||||
[MaxLength(4000, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
|
||||
[Display(Name = nameof(TanuloErtekelesResource.SzovegSzerb), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public string SzovegSzerb { get; set; }
|
||||
|
||||
public abstract ModelStateDictionary Validate();
|
||||
}
|
||||
}
|
44
KretaWeb/Areas/Adminisztracio/Models/BelepesKezeloModel.cs
Normal file
44
KretaWeb/Areas/Adminisztracio/Models/BelepesKezeloModel.cs
Normal file
|
@ -0,0 +1,44 @@
|
|||
using System.Collections.Generic;
|
||||
using Kreta.Enums;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class BelepesKezeloModel
|
||||
{
|
||||
public BelepesKezeloModel()
|
||||
{
|
||||
Lehetosegek = new List<BelepesiLehetoseg>();
|
||||
}
|
||||
|
||||
public string OrganizationName { get; set; }
|
||||
|
||||
public string UserName { get; set; }
|
||||
|
||||
public string ProfilImgSrc { get; set; }
|
||||
|
||||
public List<BelepesiLehetoseg> Lehetosegek { get; set; }
|
||||
|
||||
public string CancelLinkText { get; set; }
|
||||
|
||||
public string CancelLinkAction { get; set; }
|
||||
|
||||
public class BelepesiLehetoseg
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public SzerepkorTipusEnum Szerepkor { get; set; }
|
||||
public LehetosegTipus Tipus { get; set; }
|
||||
}
|
||||
|
||||
public enum LehetosegTipus
|
||||
{
|
||||
Kreta = 1,
|
||||
DKT = 2,
|
||||
Eugy = 3,
|
||||
ESL = 4,
|
||||
Fokusz = 5,
|
||||
EJelentkezes = 6,
|
||||
Leltar = 7,
|
||||
Konyvtar = 8
|
||||
}
|
||||
}
|
||||
}
|
30
KretaWeb/Areas/Adminisztracio/Models/CsoportTipusModel.cs
Normal file
30
KretaWeb/Areas/Adminisztracio/Models/CsoportTipusModel.cs
Normal file
|
@ -0,0 +1,30 @@
|
|||
using Kreta.BusinessLogic.Interfaces;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class CsoportTipusModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Nev { get; set; }
|
||||
|
||||
public bool IsTanoraiCelu { get; set; }
|
||||
|
||||
public bool IsProtected { get; set; }
|
||||
|
||||
public int? OraPerc { get; set; }
|
||||
}
|
||||
|
||||
public class CsoportTipusGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
public string Nev { get; set; }
|
||||
|
||||
public bool IsTanoraiCelu { get; set; }
|
||||
|
||||
public bool IsProtected { get; set; }
|
||||
|
||||
public int? OraPerc { get; set; }
|
||||
}
|
||||
}
|
14
KretaWeb/Areas/Adminisztracio/Models/DataForMdszModel.cs
Normal file
14
KretaWeb/Areas/Adminisztracio/Models/DataForMdszModel.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class DataForMdszModel
|
||||
{
|
||||
public List<int> Tanulok { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.FeladhelySorszamMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
public int? FeladhelySorszam { get; set; }
|
||||
}
|
||||
}
|
27
KretaWeb/Areas/Adminisztracio/Models/DiakolimpiaGridModel.cs
Normal file
27
KretaWeb/Areas/Adminisztracio/Models/DiakolimpiaGridModel.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class DiakolimpiaGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Nev), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.SzuletesiDatum), ResourceType = typeof(AdminisztracioResource))]
|
||||
public DateTime SzuletesiDatum { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.AnyjaNeve), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string AnyjaNeve { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Osztaly), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string Osztalya { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.OktatasiAzonosito), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class DiakolimpiaSearchModel
|
||||
{
|
||||
[Display(Name = nameof(AdminisztracioResource.Nev), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string SearchNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.SzuletesiDatum), ResourceType = typeof(AdminisztracioResource))]
|
||||
public DateTime? SearchSzuletesiDatumtol { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.SzuletesiDatum), ResourceType = typeof(AdminisztracioResource))]
|
||||
public DateTime? SearchSzuletesiDatumig { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.AnyjaNeve), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string SearchAnyjaNeve { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Osztaly), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int? SearchOsztalya { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.OktatasiAzonosito), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string SearchOktatasiAzonosito { get; set; }
|
||||
}
|
||||
}
|
29
KretaWeb/Areas/Adminisztracio/Models/ElerhetosegekModel.cs
Normal file
29
KretaWeb/Areas/Adminisztracio/Models/ElerhetosegekModel.cs
Normal file
|
@ -0,0 +1,29 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class ElerhetosegekModel
|
||||
{
|
||||
public List<EmailElerhetosegModel> Email { get; set; }
|
||||
|
||||
public List<TelefonElerhetosegModel> Telefon { get; set; }
|
||||
|
||||
public ElerhetosegekModCO ConvertToCo()
|
||||
{
|
||||
return new ElerhetosegekModCO
|
||||
{
|
||||
Email = Email.Select(e => e.ConvertToCo()).ToList(),
|
||||
Telefon = Telefon.Select(t => t.ConvertToCo()).ToList()
|
||||
};
|
||||
}
|
||||
|
||||
public void CleanFromEmptyRows()
|
||||
{
|
||||
// Azok a sorok nem kellenek amelyeket törölni kell, de még nem szerepel az adatbázisba.
|
||||
Email = Email.Where(e => e.Id.HasValue || e.Status != Enums.ManualEnums.ElerhetosegStatusEnum.Deleted).ToList();
|
||||
Telefon = Telefon.Where(t => t.Id.HasValue || t.Status != Enums.ManualEnums.ElerhetosegStatusEnum.Deleted).ToList();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Core.CustomAttributes;
|
||||
using Kreta.Resources;
|
||||
using static Kreta.Core.Constants;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class ElfelejtettJelszoModel
|
||||
{
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.FelhasznalonevMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.Felhasznalonev), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string BejelentkezesiNev { get; set; }
|
||||
|
||||
[EmailAddressExtended(ErrorMessageResourceName = nameof(ErrorResource.EMailCimFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[StringLength(General.EmailMaximumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.EmailMax0Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.EmailCimMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.EmailCim), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string EmailCim { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.CaptchaMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
public string ReCaptcha { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class EmailElerhetosegModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
|
||||
public string TextBoxId { get; set; }
|
||||
|
||||
public string ComboBoxId { get; set; }
|
||||
|
||||
public int? Tipus { get; set; }
|
||||
|
||||
public string EmailCim_Input { get; set; }
|
||||
|
||||
public string EmailCim => EmailCim_Input?.Trim();
|
||||
|
||||
public bool Alapertelmezett { get; set; }
|
||||
|
||||
public ElerhetosegStatusEnum Status { get; set; }
|
||||
|
||||
public bool IsPublic
|
||||
{
|
||||
get
|
||||
{
|
||||
return Tipus == (int)EmailTipusEnum.PublikusEmailcim;
|
||||
}
|
||||
}
|
||||
|
||||
public string Label
|
||||
{
|
||||
get
|
||||
{
|
||||
var label = string.Empty;
|
||||
if (Tipus.HasValue)
|
||||
{
|
||||
var tipusString = ((EmailTipusEnum)Tipus).GetDisplayName(ClaimData.SelectedTanevID.Value);
|
||||
label = $"{tipusString} {AdminisztracioResource.EmailCim.ToLower()}";
|
||||
}
|
||||
return label;
|
||||
}
|
||||
}
|
||||
|
||||
public EmailElerhetosegCo ConvertToCo()
|
||||
{
|
||||
return new EmailElerhetosegCo
|
||||
{
|
||||
Id = Id,
|
||||
TextBoxId = TextBoxId,
|
||||
Tipus = Tipus.Value,
|
||||
EmailCim = EmailCim,
|
||||
Alapertelmezett = Alapertelmezett,
|
||||
IsPublic = IsPublic,
|
||||
Status = Status
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class ErtekelesModSulyListModel
|
||||
{
|
||||
public List<ErtekelesModSulyModel> ErtekelesModSulyList { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class ErtekelesModSulyModel
|
||||
{
|
||||
public string ErtekelesModNev { get; set; }
|
||||
|
||||
public int ErtekelesModId { get; set; }
|
||||
|
||||
[KretaRange(1, 1000, ErrorMessageResourceName = nameof(TanuloErtekelesResource.SzazalekosErtekNincsAMegengedettTartomanyban), ErrorMessageResourceType = typeof(TanuloErtekelesResource))]
|
||||
public int Suly { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
using Kreta.BusinessLogic.HelperClasses;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class FejlecLablecSzerkesztoModel
|
||||
{
|
||||
public FejlecLablecSzerkesztoModel()
|
||||
{
|
||||
}
|
||||
|
||||
public FejlecLablecSzerkesztoModel(IntezmenyFejlecLablecCo co)
|
||||
{
|
||||
IsFejlecOrLablecMegjelenit = co.IsFejlecOrLablecMegjelenit;
|
||||
Htmlcontent = co.HtmlContent;
|
||||
Base64Image = co.Base64Img;
|
||||
}
|
||||
|
||||
public bool IsFejlec { get; set; }
|
||||
public bool IsFejlecOrLablecMegjelenit { get; set; }
|
||||
public string Htmlcontent { get; set; }
|
||||
public string Base64Image { get; set; }
|
||||
|
||||
public IntezmenyFejlecLablecCo ToCo()
|
||||
{
|
||||
return new IntezmenyFejlecLablecCo
|
||||
{
|
||||
IsFejlecOrLablecMegjelenit = this.IsFejlecOrLablecMegjelenit,
|
||||
HtmlContent = this.Htmlcontent,
|
||||
Base64Img = this.Base64Image
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
15
KretaWeb/Areas/Adminisztracio/Models/FelHelyValasztoModel.cs
Normal file
15
KretaWeb/Areas/Adminisztracio/Models/FelHelyValasztoModel.cs
Normal file
|
@ -0,0 +1,15 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class FelHelyValasztoModel
|
||||
{
|
||||
[Display(Name = nameof(LoginResource.KivalaszthatoFelhelyek), ResourceType = typeof(LoginResource))]
|
||||
public List<SelectListItem> FelhelyList { get; set; } = new List<SelectListItem>();
|
||||
|
||||
public FelHelyValasztoModel() { }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Areas.Alkalmazott.Models;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class FeltarAlkalmazottModel
|
||||
{
|
||||
[Display(Name = nameof(AdminisztracioResource.AltalanosSzerzodesiFeltetelekLetoltese), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string AltalanosSzerzodesiFeltetelekLetoltese { get; set; }
|
||||
|
||||
[Required]
|
||||
[Display(Name = nameof(AdminisztracioResource.AzAdatvedelmiTajekoztatoTartalmatMegismertemEsAzAbbanFoglaltakatTudomasulVettem), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool AdatvedelmiTajekoztatoElfogadasa { get; set; }
|
||||
|
||||
[Required]
|
||||
[Display(Name = nameof(AdminisztracioResource.AzAltalanosSzerzodesiFeltetelekTartalmatMegismertemEsAzAbbanFoglaltakatTudomasulVettem), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool AltalanosSzerzodesiFeltetelekElfogadasa { get; set; }
|
||||
|
||||
public bool IsAlkalmazottMunkakorTipusJogosult { get; set; }
|
||||
|
||||
public bool IsRendelkezikOktatasiAzonosotioval { get; set; }
|
||||
|
||||
public AlkalmazottInfoModel.AlapadatModel AlapadatModel { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Models;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class FeltarGondviseloModel : Gondviselo4TAdatokModel
|
||||
{
|
||||
public FeltarGondviseloModel(Felhasznalo4TAdatokCo co) : base(co)
|
||||
{
|
||||
}
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.AltalanosSzerzodesiFeltetelekLetoltese), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string AltalanosSzerzodesiFeltetelekLetoltese { get; set; }
|
||||
|
||||
[Required]
|
||||
[Display(Name = nameof(AdminisztracioResource.AzAdatvedelmiTajekoztatoTartalmatMegismertemEsAzAbbanFoglaltakatTudomasulVettem), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool AdatvedelmiTajekoztatoElfogadasa { get; set; }
|
||||
|
||||
[Required]
|
||||
[Display(Name = nameof(AdminisztracioResource.AzAltalanosSzerzodesiFeltetelekTartalmatMegismertemEsAzAbbanFoglaltakatTudomasulVettem), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool AltalanosSzerzodesiFeltetelekElfogadasa { get; set; }
|
||||
|
||||
public bool IsTorvenyesKepviselo { get; set; }
|
||||
|
||||
public bool IsNappaliRendszeruIskolaiOktatas { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Core.CustomAttributes;
|
||||
using Kreta.Resources;
|
||||
using static Kreta.Core.Constants;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class GondviseloAdatokModModel
|
||||
{
|
||||
[Display(Name = nameof(AdminisztracioResource.JelenlegiEmailCim), ResourceType = typeof(AdminisztracioResource))]
|
||||
[EmailAddressExtended(ErrorMessageResourceName = nameof(ErrorResource.EMailCimFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[StringLength(General.EmailMaximumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.EmailMax0Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
public string AktEmail { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.UjEmailCim), ResourceType = typeof(AdminisztracioResource))]
|
||||
[StringLength(General.EmailMaximumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.EmailMax0Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
public string UjEmail_Input { get; set; }
|
||||
|
||||
[EmailAddressExtended(ErrorMessageResourceName = nameof(ErrorResource.EMailCimFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
public string UjEmail => UjEmail_Input?.Trim();
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.UjEmailCimMegerositese), ResourceType = typeof(AdminisztracioResource))]
|
||||
[Compare("UjEmail_Input", ErrorMessageResourceName = nameof(ErrorResource.AKetEmailCimNemEgyezikMeg), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
public string UjEmailEllenorzes { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.JelenlegiTelefonszam), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string AktTelefon { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.UjTelefonszam), ResourceType = typeof(AdminisztracioResource))]
|
||||
[PhoneExtended(ErrorMessageResourceName = nameof(ErrorResource.ATelefonszamFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
public string UjTelefon { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Models;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class GondviseloJelszoIgenyloModel : CimElerhetosegModel
|
||||
{
|
||||
public bool AdatvedelmiTajekozatatoCheck { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.CaptchaMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
public string ReCaptcha { get; set; }
|
||||
|
||||
public GondviseloJelszoIgenyloCo ConvertToCo()
|
||||
{
|
||||
var co = new GondviseloJelszoIgenyloCo();
|
||||
|
||||
co.Ajto = Ajto;
|
||||
co.Emelet = Emelet;
|
||||
co.GondviseloEmail = Emailcim;
|
||||
co.EmailTipusId = EmailTipus;
|
||||
co.GondviseloNev = GondviseloNev_JelszoIgenylo;
|
||||
co.Hazszam = Hazszam;
|
||||
co.HelysegNev = HelysegNev_Str;
|
||||
co.Iranyitoszam = Iranyitoszam_Str;
|
||||
co.KozteruletNev = KozteruletNev;
|
||||
co.KozteruletTipusNev = KozteruletTipus_Str;
|
||||
co.OktatasiAzonosito = OktatasiAzonosito_JelszoIgenylo;
|
||||
co.Orszag = Orszag;
|
||||
co.RokonsagiFok = RokonsagiFok_JelszoIgenylo;
|
||||
co.CimTipus = CimTipus;
|
||||
return co;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,129 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.Helpers;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Framework.Util;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Helpers;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class HelyettesitesBevitelModel : IValidatableObject
|
||||
{
|
||||
public int HelyettesitesBevitelCalendarEventId { get; set; }
|
||||
|
||||
public int? HelyettesitesBevitelHelyettesitesId { get; set; }
|
||||
|
||||
public int? HelyettesitesBevitelGroupId { get; set; }
|
||||
|
||||
public CalendarOraTypeEnum HelyettesitesBevitelCalendarOraType { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.Required), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(CommonResource.Tanar), ResourceType = typeof(CommonResource))]
|
||||
public int? HelyettesitesBevitelTanarId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.JelenlegiHelyettesito), ResourceType = typeof(OrarendResource))]
|
||||
public string HelyettesitesBevitelTanarNev { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.Required), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(OrarendResource.HelyettesitesTipusa), ResourceType = typeof(OrarendResource))]
|
||||
public int HelyettesitesBevitelHelyettesitesTipusId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraKezdete), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime HelyettesitesBevitelOraKezdeteDate { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraKezdete), ResourceType = typeof(OrarendResource))]
|
||||
public string HelyettesitesBevitelOraKezdeteDateText => HelyettesitesBevitelOraKezdeteDate.ToString(Core.Constants.ToStringPattern.HungarianDateTimeWithoutSeconds);
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraVege), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime HelyettesitesBevitelOraVegeDate { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraVege), ResourceType = typeof(OrarendResource))]
|
||||
public string HelyettesitesBevitelOraVegeDateText => HelyettesitesBevitelOraVegeDate.ToString(Core.Constants.ToStringPattern.HungarianDateTimeWithoutSeconds);
|
||||
|
||||
[MaxLength(500, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
|
||||
[Display(Name = nameof(OrarendResource.HelyettesitesOka), ResourceType = typeof(OrarendResource))]
|
||||
public string HelyettesitesBevitelHelyettesitesOka { get; set; }
|
||||
|
||||
public int HelyettesitesBevitelHelyettesitesGyakorisagTipus { get; set; }
|
||||
|
||||
public string HelyettesitesTitle { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TartosHelyettesitesVege), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? HelyettesitesBevitelTartosHelyettesitesVegeDate { get; set; }
|
||||
|
||||
public List<SelectListItem> HelyettesitesTipusList => FrameworkEnumExtensions.EnumToList((int)GeneratedAdatszotarTipusEnum.HelyettesitesTipus, ClaimData.SelectedTanevID.Value).ToSelectListItemList(selectedValue: (int)HelyettesitesTipusEnum.szakszeru_helyettesites);
|
||||
|
||||
public List<SelectListItem> HelyettesitesGyakorisagTipusList => EnumExtensions.EnumToDictionary<HelyettesitesGyakorisagTipusEnum>(ClaimData.SelectedTanevID.Value).ToSelectListItemList(selectedValue: (int)HelyettesitesGyakorisagTipusEnum.Egyedi);
|
||||
|
||||
public List<SelectListItem> HelyettesitesOsztalybanSzakosTanarList { get; set; }
|
||||
|
||||
public List<SelectListItem> HelyettesitesNemOsztalybanSzakosTanarList { get; set; }
|
||||
|
||||
public List<SelectListItem> HelyettesitesOsztalybanNemSzakosTanarList { get; set; }
|
||||
|
||||
public List<SelectListItem> HelyettesitesNemOsztalybanNemSzakosTanarList { get; set; }
|
||||
|
||||
public List<SelectListItem> OsszevonasOsztalybanSzakosTanarList { get; set; }
|
||||
|
||||
public List<SelectListItem> OsszevonasNemOsztalybanSzakosTanarList { get; set; }
|
||||
|
||||
public List<SelectListItem> OsszevonasOsztalybanNemSzakosTanarList { get; set; }
|
||||
|
||||
public List<SelectListItem> OsszevonasNemOsztalybanNemSzakosTanarList { get; set; }
|
||||
|
||||
public List<SelectListItem> FelugyeletTanarList { get; set; }
|
||||
|
||||
public List<SelectListItem> OsszesTanarList { get; set; }
|
||||
|
||||
public bool IsTulora { get; set; }
|
||||
public bool IsTuloraMentes { get; set; }
|
||||
|
||||
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
|
||||
{
|
||||
if (HelyettesitesBevitelHelyettesitesGyakorisagTipus == (int)HelyettesitesGyakorisagTipusEnum.Tartos)
|
||||
{
|
||||
DateTime minimumDate;
|
||||
DateTime maximumDate;
|
||||
var helper = new TanevrendHelper(ConnectionTypeExtensions.GetSessionConnectionType());
|
||||
minimumDate = helper.GetElsoTanitasiNapDate();
|
||||
if (HelyettesitesBevitelOraKezdeteDate.Date > minimumDate)
|
||||
{
|
||||
minimumDate = HelyettesitesBevitelOraKezdeteDate.Date;
|
||||
}
|
||||
|
||||
maximumDate = helper.GetUtolsoTanitasiNapDate();
|
||||
|
||||
if (HelyettesitesBevitelTartosHelyettesitesVegeDate.HasValue)
|
||||
{
|
||||
var minOk = HelyettesitesBevitelTartosHelyettesitesVegeDate >= minimumDate;
|
||||
var maxOk = HelyettesitesBevitelTartosHelyettesitesVegeDate <= maximumDate;
|
||||
if (!minOk || !maxOk)
|
||||
{
|
||||
yield return new ValidationResult(string.Format(OrarendResource.ATartosHelyettesitesVegdatumaCsakKozeEshet, minimumDate.ToString(Core.Constants.ToStringPattern.HungarianDate), maximumDate.ToString(Core.Constants.ToStringPattern.HungarianDate)));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
yield return new ValidationResult(string.Format(CommonResource.Required, OrarendResource.TartosHelyettesitesVege));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class NemMegtartottHelyettesitesBevitelModel
|
||||
{
|
||||
public int? HelyettesitesBevitelCalendarEventId { get; set; }
|
||||
|
||||
public DateTime? HelyettesitesBevitelOraKezdeteDate { get; set; }
|
||||
|
||||
public DateTime? HelyettesitesBevitelOraVegeDate { get; set; }
|
||||
|
||||
public string HelyettesitesBevitelHelyettesitesOka { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,68 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class HelyettesitesInfoModel
|
||||
{
|
||||
[Display(Name = nameof(OrarendResource.Datum), ResourceType = typeof(OrarendResource))]
|
||||
public string Datum { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraszamIdopont), ResourceType = typeof(OrarendResource))]
|
||||
public int? Oraszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HetNapja), ResourceType = typeof(OrarendResource))]
|
||||
public string HetNapja { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Hetirend), ResourceType = typeof(OrarendResource))]
|
||||
public string Hetirend { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Foglalkozas), ResourceType = typeof(OrarendResource))]
|
||||
public string Foglalkozas { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
||||
public string OsztalyCsoport { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public string Tantargy { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitoPedagogus), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string Tanar { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Helyiseg), ResourceType = typeof(OrarendResource))]
|
||||
public string Terem { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Megtartott), ResourceType = typeof(OrarendResource))]
|
||||
public string Megtartott { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Sorszamozott), ResourceType = typeof(OrarendResource))]
|
||||
public string Sorszamozando { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanitasiOraKezdete), ResourceType = typeof(OrarendResource))]
|
||||
public string OraKezdete { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanitasiOraVege), ResourceType = typeof(OrarendResource))]
|
||||
public string OraVege { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanitasiOraTemaja), ResourceType = typeof(OrarendResource))]
|
||||
public string Tema { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitesOka), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string HelyettesitesOka { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HaziFeladat), ResourceType = typeof(OrarendResource))]
|
||||
public string HaziFeladat { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitesTipusa), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string HelyettesitesTipusa { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitesElrendelesenekIdopontja), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string HelyettesitesElrendelesenekIdopontja { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.NaplozasIdopontja), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string NaplozasIdopontja { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.LegutobbiModositasIdopontja), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string LegutobbiModositasIdopontja { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Helpers.TabStrip;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class HelyettesitesekKezeleseModel
|
||||
{
|
||||
public HelyettesitesekKezeleseModel()
|
||||
{
|
||||
TanarList = new List<SelectListItem>();
|
||||
TabList = new List<TabStripItemModel>();
|
||||
}
|
||||
|
||||
[Display(Name = nameof(CommonResource.Tanar), ResourceType = typeof(CommonResource))]
|
||||
public int? Tanar { get; set; }
|
||||
|
||||
public List<SelectListItem> TanarList { get; set; }
|
||||
|
||||
public string HetirendJson { get; set; }
|
||||
public string NaptariHetekHetirendJson { get; set; }
|
||||
public int TanarId { get; set; }
|
||||
|
||||
public List<TabStripItemModel> TabList { get; set; }
|
||||
|
||||
public TimeSpan CalendarMinTime { get; set; }
|
||||
public TimeSpan CalendarMaxTime { get; set; }
|
||||
|
||||
public TimeSpan CsengetesiRendMinTime { get; set; }
|
||||
public TimeSpan CsengetesiRendMaxTime { get; set; }
|
||||
}
|
||||
|
||||
public class HelyettesitesekKezeleseOrarendModel
|
||||
{
|
||||
public int Index { get; set; }
|
||||
|
||||
public string FullCalendarId => "FullCalendar-" + Index;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,91 @@
|
|||
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.Adminisztracio.Models
|
||||
{
|
||||
public class HelyettesitesekListajaGridModel : IKretaIdentity
|
||||
{
|
||||
public const string HelyettesitesekListajaExportAttributeId = nameof(HelyettesitesekListajaExportAttributeId);
|
||||
|
||||
public HelyettesitesekListajaGridModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public HelyettesitesekListajaGridModel(HelyettesitesItemCo itemCo)
|
||||
{
|
||||
ID = itemCo.Id.ToString();
|
||||
HelyettesitesDatum = itemCo.HelyettesitesDatum.Value;
|
||||
Ora = itemCo.Ora.ToString();
|
||||
Helyettesitett = itemCo.Helyettesitett;
|
||||
HelyettesitettElotagNelkul = itemCo.HelyettesitettElotagNelkul ?? itemCo.Helyettesitett;
|
||||
HelyettesitesOka = itemCo.HelyettesitesOka;
|
||||
Helyettesito = itemCo.Helyettesito;
|
||||
Megjegyzes = itemCo.Megjegyzes;
|
||||
HelyettesitoElotagNelkul = itemCo.HelyettesitoElotagNelkul ?? itemCo.Helyettesito;
|
||||
OsztalyCsoport = itemCo.OsztalyCsoport;
|
||||
Tantargy = itemCo.Tantargy;
|
||||
HelyettesitesTipusNev = itemCo.HelyettesitesTipusNev;
|
||||
IsNaplozottText = itemCo.IsNaplozottText;
|
||||
IsNaplozott = itemCo.IsNaplozott;
|
||||
IsOnlineOraText = itemCo.IsOnlineOraText;
|
||||
}
|
||||
|
||||
public string ID { get; set; }
|
||||
|
||||
[SimpleExportColumn(HelyettesitesekListajaExportAttributeId, 00, nameof(HelyettesitesekListajaResource.HelyettesitesDatuma), typeof(HelyettesitesekListajaResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitesDatuma), ResourceType = typeof(AdminisztracioResource))]
|
||||
public DateTime HelyettesitesDatum { get; set; }
|
||||
|
||||
[SimpleExportColumn(HelyettesitesekListajaExportAttributeId, 01, nameof(HelyettesitesekListajaResource.Ora), typeof(HelyettesitesekListajaResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.Ora), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string Ora { get; set; }
|
||||
|
||||
[SimpleExportColumn(HelyettesitesekListajaExportAttributeId, 02, nameof(HelyettesitesekListajaResource.HelyettesitettPedagogus), typeof(HelyettesitesekListajaResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitettPedagogus), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string Helyettesitett { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitettPedagogus), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string HelyettesitettElotagNelkul { get; set; }
|
||||
|
||||
[SimpleExportColumn(HelyettesitesekListajaExportAttributeId, 03, nameof(HelyettesitesekListajaResource.HelyettesitesOka), typeof(HelyettesitesekListajaResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitesOka), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string HelyettesitesOka { get; set; }
|
||||
|
||||
[SimpleExportColumn(HelyettesitesekListajaExportAttributeId, 06, nameof(HelyettesitesekListajaResource.HelyettesitoPedagogus), typeof(HelyettesitesekListajaResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitoPedagogus), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string Helyettesito { get; set; }
|
||||
|
||||
[SimpleExportColumn(HelyettesitesekListajaExportAttributeId, 04, nameof(HelyettesitesekListajaResource.Megjegyzes), typeof(HelyettesitesekListajaResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.Megjegyzes), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string Megjegyzes { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitoPedagogus), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string HelyettesitoElotagNelkul { get; set; }
|
||||
|
||||
[SimpleExportColumn(HelyettesitesekListajaExportAttributeId, 07, nameof(HelyettesitesekListajaResource.OsztályCsoport), typeof(HelyettesitesekListajaResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.OsztalyCsoport), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string OsztalyCsoport { get; set; }
|
||||
|
||||
[SimpleExportColumn(HelyettesitesekListajaExportAttributeId, 08, nameof(HelyettesitesekListajaResource.Tantargy), typeof(HelyettesitesekListajaResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string Tantargy { get; set; }
|
||||
|
||||
[SimpleExportColumn(HelyettesitesekListajaExportAttributeId, 05, nameof(HelyettesitesekListajaResource.HelyettesitesTipusa), typeof(HelyettesitesekListajaResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitesTipusa), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string HelyettesitesTipusNev { get; set; }
|
||||
|
||||
[SimpleExportColumn(HelyettesitesekListajaExportAttributeId, 09, nameof(HelyettesitesekListajaResource.Naplozott), typeof(HelyettesitesekListajaResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.Naplozott), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string IsNaplozottText { get; set; }
|
||||
|
||||
public bool IsNaplozott { get; set; }
|
||||
|
||||
[SimpleExportColumn(HelyettesitesekListajaExportAttributeId, 10, nameof(OrarendResource.OnlineOra), typeof(OrarendResource))]
|
||||
public string IsOnlineOraText { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,65 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class HelyettesitesekListajaSearchModel
|
||||
{
|
||||
[Display(Name = nameof(OsztalyCsoportResource.EllatottKoznevelesiFeladatTipus), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? FeladatKategoriaId { get; set; }
|
||||
|
||||
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
|
||||
public int? FeladatEllatasiHelyId { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitesDatuma), ResourceType = typeof(AdminisztracioResource))]
|
||||
public DateTime? HelyettesitesDatumaTolSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitesDatuma), ResourceType = typeof(AdminisztracioResource))]
|
||||
public DateTime? HelyettesitesDatumaIgSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitettPedagogus), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int? HelyettesitettTanarSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitoPedagogus), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int? HelyettesitoTanarSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.OsztalyCsoport), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int? OsztalyCsoportSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KapcsolodoCsoportok), ResourceType = typeof(OrarendResource))]
|
||||
public bool KellKapcsolodoCsoportokSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int? TantargySearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitesTipusa), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int? HelyettesitesTipusaSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Naplozott), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int? NaplozottSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OnlineOra), ResourceType = typeof(OrarendResource))]
|
||||
public int? IsOnlineOra { get; set; }
|
||||
|
||||
public HelyettesitesekListajaSearchCO ConvertToCO()
|
||||
{
|
||||
return new HelyettesitesekListajaSearchCO
|
||||
{
|
||||
FeladatEllatasiHelyId = FeladatEllatasiHelyId,
|
||||
FeladatKategoriaId = FeladatKategoriaId,
|
||||
HelyettesitesDatumaTolSearch = HelyettesitesDatumaTolSearch,
|
||||
HelyettesitesDatumaIgSearch = HelyettesitesDatumaIgSearch,
|
||||
HelyettesitettTanarSearch = HelyettesitettTanarSearch,
|
||||
HelyettesitesTipusaSearch = HelyettesitesTipusaSearch,
|
||||
HelyettesitoTanarSearch = HelyettesitoTanarSearch,
|
||||
NaplozottSearch = NaplozottSearch,
|
||||
OsztalyCsoportSearch = OsztalyCsoportSearch,
|
||||
TantargySearch = TantargySearch,
|
||||
IsKellKapcsolodoCsoportokSearch = KellKapcsolodoCsoportokSearch,
|
||||
IsOnlineOra = IsOnlineOra
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Resources;
|
||||
using static Kreta.Core.Constants;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class JelszoValtoztatoModel
|
||||
{
|
||||
public bool IsSzulDatumValidacio { get; set; }
|
||||
|
||||
[KretaRequiredIf("IsSzulDatumValidacio", true, ErrorMessageResourceName = nameof(ErrorResource.TanuloSzuletesiDatumMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(LoginResource.TanuloSzuletesiDatum), ResourceType = typeof(LoginResource))]
|
||||
public DateTime? TanuloSzuletesiDatum { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.JelszoMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(LoginResource.UjJelszo), ResourceType = typeof(LoginResource))]
|
||||
[DataType(DataType.Password)]
|
||||
[StringLength(General.JelszoMaximumKarakterekSzama, MinimumLength = General.JelszoMinimumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.AJelszonakMin0Max0KarakterbolKellAllnia), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
public string UjJelszo { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.AzIsmeteltJelszoNemEgyezikMegAJelszoval), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(LoginResource.UjJelszoMegerositese), ResourceType = typeof(LoginResource))]
|
||||
[DataType(DataType.Password)]
|
||||
[StringLength(General.JelszoMaximumKarakterekSzama, MinimumLength = General.JelszoMinimumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.AJelszonakMin0Max0KarakterbolKellAllnia), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Compare("UjJelszo", ErrorMessageResourceName = nameof(ErrorResource.JelszoNemEgyezikMeg), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
public string UjJelszoMegerositese { get; set; }
|
||||
|
||||
public string ErrorMessage { get; set; }
|
||||
|
||||
public string Guid { get; set; }
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.CaptchaMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
public string ReCaptcha { get; set; }
|
||||
|
||||
public JelszoValtoztatoCo ConvertToCo()
|
||||
{
|
||||
var co = new JelszoValtoztatoCo();
|
||||
|
||||
co.TanuloSzuletesiDatum = TanuloSzuletesiDatum;
|
||||
co.UjJelszo = UjJelszo;
|
||||
co.Guid = Guid;
|
||||
co.IsSzulDatumValidacio = IsSzulDatumValidacio;
|
||||
|
||||
return co;
|
||||
}
|
||||
}
|
||||
}
|
26
KretaWeb/Areas/Adminisztracio/Models/KIRImportModel.cs
Normal file
26
KretaWeb/Areas/Adminisztracio/Models/KIRImportModel.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class KIRImportModel
|
||||
{
|
||||
public string OmAzonosito { get; set; }
|
||||
|
||||
public string FelhasznaloNev { get; set; }
|
||||
|
||||
public string KirToken { get; set; }
|
||||
|
||||
[KretaDisplayName(4598)] //Telephely
|
||||
[KretaRequired(StringResourcesId = 4599)] //Telephely megadása kötelező
|
||||
public int? TelephelyKod { get; set; }
|
||||
|
||||
public List<SelectListItem> TelephelyList { get; set; }
|
||||
|
||||
public int? TanevId { get; set; }
|
||||
public int? FeladatellatasiHelyId { get; set; }
|
||||
|
||||
}
|
||||
}
|
20
KretaWeb/Areas/Adminisztracio/Models/KIRLoginModel.cs
Normal file
20
KretaWeb/Areas/Adminisztracio/Models/KIRLoginModel.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class KIRLoginModel
|
||||
{
|
||||
[KretaRequired(StringResourcesId = 2332)] /*OM azonosító megadása kötelező*/
|
||||
[KretaDisplayName(474)] /*OM azonosító*/
|
||||
public string OmAzonosito { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 3864)] /*A felhasználónév megadása kötelező*/
|
||||
[KretaDisplayName(4787)] /*KIR Felhasználónév*/
|
||||
public string FelhasznaloNev { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 4555)] /*Jelszó megadása kötelező*/
|
||||
[KretaDisplayName(4788)] /*KIR Jelszó*/
|
||||
public string Jelszo { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class KIRTanarImportGridModel : IKretaIdentity
|
||||
{
|
||||
[KretaDisplayName(1359)]/*Sor*/
|
||||
public string ID { get; set; }
|
||||
|
||||
[KretaDisplayName(32)]/*Oktatási azonosító*/
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
|
||||
[KretaDisplayName(108)]/*Név*/
|
||||
public string OktatoNeve { get; set; }
|
||||
|
||||
[KretaDisplayName(239)]/*Anyja neve*/
|
||||
public string AnyjaNeve { get; set; }
|
||||
|
||||
[KretaDisplayName(41)]/*Születési hely*/
|
||||
public string SzuletesiHely { get; set; }
|
||||
|
||||
[KretaDisplayName(42)]/*Születési idő*/
|
||||
public string SzuletesiIdo { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class KIRTanuloImportGridModel : IKretaIdentity
|
||||
{
|
||||
[KretaDisplayName(1359)]/*Sor*/
|
||||
public string ID { get; set; }
|
||||
|
||||
[KretaDisplayName(32)]/*Oktatási azonosító*/
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
|
||||
[KretaDisplayName(108)]/*Név*/
|
||||
public string TanuloNeve { get; set; }
|
||||
|
||||
[KretaDisplayName(239)]/*Anyja neve*/
|
||||
public string AnyjaNeve { get; set; }
|
||||
|
||||
[KretaDisplayName(41)]/*Születési hely*/
|
||||
public string SzuletesiHely { get; set; }
|
||||
|
||||
[KretaDisplayName(42)]/*Születési idő*/
|
||||
public string SzuletesiIdo { get; set; }
|
||||
|
||||
[KretaDisplayName(334)]/*Tankötelezett*/
|
||||
public bool Tankotelezett { get; set; }
|
||||
|
||||
[KretaDisplayName(379)]/*Osztály*/
|
||||
public string Osztaly { get; set; }
|
||||
}
|
||||
}
|
78
KretaWeb/Areas/Adminisztracio/Models/KirStatTableList.cs
Normal file
78
KretaWeb/Areas/Adminisztracio/Models/KirStatTableList.cs
Normal file
|
@ -0,0 +1,78 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class KirStatTable
|
||||
{
|
||||
public string TablazatAzonosito { get; set; }
|
||||
public List<string> KirStatTaroltEljarasList { get; set; }
|
||||
public string ContentUrl { get; set; }
|
||||
}
|
||||
|
||||
public class KirStatTableList
|
||||
{
|
||||
//Ehhez a dictionaryhoz kell hozzáadni a tblázat nevét amihez elkészültek a tárolt eljárások
|
||||
// A value az url-t tartalmazza default be van állítva: "/Kreta.Web/Riportok/KirStat/Load_Partial"
|
||||
//csak speciális esetben szükséges módosítani
|
||||
public Dictionary<string, string> tablazatLista = new Dictionary<string, string>()
|
||||
{
|
||||
{"a01t01","" },
|
||||
{"a01t03","" },
|
||||
{"a01t07","" },
|
||||
//{"a01t08","" },
|
||||
{"a01t60","" },
|
||||
{"a01t88","" },
|
||||
{"a02t09","" },
|
||||
{"a02t10","" },
|
||||
{"a02t14","" },
|
||||
{"a02t15","" },
|
||||
{"a02t48","" },
|
||||
//{"a02t57","" },
|
||||
//{"a02t59","" },
|
||||
{"a02t61","" },
|
||||
//{"a02t62","" },
|
||||
{"a04t16","" },
|
||||
{"a04t20","" },
|
||||
{"a04t21","" },
|
||||
{"a04t63","" },
|
||||
//{"a04t64","" },
|
||||
{"a04t70","" },
|
||||
//{"a04t92","" },
|
||||
//{"a04t93","" },
|
||||
//{"a04t101","" },
|
||||
//{"a04t102","" }
|
||||
};
|
||||
|
||||
public List<KirStatTable> kirStatTableList { get; set; }
|
||||
public List<string> ContentUrlList { get; set; }
|
||||
public KirStatTableList(string loadPartialUrl)
|
||||
{
|
||||
ContentUrlList = new List<string>();
|
||||
kirStatTableList = new List<KirStatTable>();
|
||||
|
||||
foreach (var item in tablazatLista)
|
||||
{
|
||||
kirStatTableList.Add(
|
||||
new KirStatTable()
|
||||
{
|
||||
TablazatAzonosito = item.Key,
|
||||
ContentUrl = loadPartialUrl + item.Value
|
||||
});
|
||||
}
|
||||
|
||||
foreach (var item in kirStatTableList)
|
||||
{
|
||||
if (!item.ContentUrl.Contains("/?id="))
|
||||
{
|
||||
ContentUrlList.Add(item.ContentUrl + "/?id=" + item.TablazatAzonosito);
|
||||
}
|
||||
else
|
||||
{
|
||||
ContentUrlList.Add(item.ContentUrl);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
36
KretaWeb/Areas/Adminisztracio/Models/LoginModel.cs
Normal file
36
KretaWeb/Areas/Adminisztracio/Models/LoginModel.cs
Normal file
|
@ -0,0 +1,36 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class LoginModel
|
||||
{
|
||||
[KretaDisplayName(3)] /*Felhasználónév*/
|
||||
public string UserName { get; set; }
|
||||
|
||||
[KretaDisplayName(2)] /*Jelszó*/
|
||||
public string Password { get; set; }
|
||||
|
||||
public string IntezmenyNeve { get; set; }
|
||||
public string IntezmenyOMkod { get; set; }
|
||||
|
||||
public bool LejartLicence { get; set; }
|
||||
|
||||
public bool CsokkentettGondviseloEnable { get; set; }
|
||||
|
||||
public string IdpLogoutUrl { get; set; }
|
||||
|
||||
public string NextUpdateHeader { get; set; }
|
||||
public string NextUpdateMessage { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.ABelepeshezACaptchaKozetelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
public string ReCaptcha { get; set; }
|
||||
|
||||
public bool ReCaptchaIsEnabled { get; set; }
|
||||
|
||||
public bool IsSzirIntezmeny { get; set; }
|
||||
|
||||
public bool IsArchivIntezmeny { get; set; }
|
||||
}
|
||||
}
|
20
KretaWeb/Areas/Adminisztracio/Models/LoginResultModel.cs
Normal file
20
KretaWeb/Areas/Adminisztracio/Models/LoginResultModel.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using Kreta.BusinessLogic.Classes;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class LoginResultModel
|
||||
{
|
||||
public string ErrorCode { get; set; }
|
||||
|
||||
public string ErrorMessage { get; set; }
|
||||
|
||||
public bool Success { get; set; }
|
||||
|
||||
public string WarningMessage { get; internal set; }
|
||||
|
||||
public bool ReCaptchaIsEnabled => FailedLoginCounter >= ApplicationData.ReCaptchaIsEnabledCounter;
|
||||
|
||||
public int? FailedLoginCounter { get; set; }
|
||||
|
||||
}
|
||||
}
|
17
KretaWeb/Areas/Adminisztracio/Models/LostPasswordModel.cs
Normal file
17
KretaWeb/Areas/Adminisztracio/Models/LostPasswordModel.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Core.CustomAttributes;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
using static Kreta.Core.Constants;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class LostPasswordModel
|
||||
{
|
||||
[EmailAddressExtended(ErrorMessageResourceName = nameof(ErrorResource.EMailCimFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[StringLength(General.EmailMaximumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.EmailMax0Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[KretaDisplayName(1829)]//Adja meg a regisztrációnál használt e-mail címét!
|
||||
public string Email { get; set; }
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,56 @@
|
|||
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.Adminisztracio.Models
|
||||
{
|
||||
public class NevOktLeNemKotottMunkaidoGridModel : IKretaIdentity
|
||||
{
|
||||
public const string NevOktLeNemKotottMunkaidoExportAttributeId = nameof(NevOktLeNemKotottMunkaidoExportAttributeId);
|
||||
|
||||
public NevOktLeNemKotottMunkaidoGridModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public NevOktLeNemKotottMunkaidoGridModel(NevOktLeNemKotottMunkaidoItemCO co)
|
||||
{
|
||||
ID = co.ID.ToString();
|
||||
Datum = co.Datum.Value;
|
||||
Kezdete = co.Kezdete.Value;
|
||||
Vege = co.Vege.Value;
|
||||
TanarId = co.TanarId;
|
||||
TanarNeve = co.TanarNeve;
|
||||
KategoriaId = co.KategoriaId;
|
||||
KategoriaNeve = co.KategoriaNeve;
|
||||
RogzitesDatuma = co.RogzitesDatuma.Value;
|
||||
Megtartott = co.Megtartott;
|
||||
}
|
||||
|
||||
public string ID { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Datum), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
[SimpleExportColumn(NevOktLeNemKotottMunkaidoExportAttributeId, 00, nameof(NevOktLeNemKotottMunkaidoResource.Datum), typeof(NevOktLeNemKotottMunkaidoResource), DateTimeToStringPattern = Core.Constants.ToStringPattern.HungarianDate)]
|
||||
public DateTime Datum { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Kezdete), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
[SimpleExportColumn(NevOktLeNemKotottMunkaidoExportAttributeId, 01, nameof(NevOktLeNemKotottMunkaidoResource.Kezdete), typeof(NevOktLeNemKotottMunkaidoResource), DateTimeToStringPattern = Core.Constants.ToStringPattern.HungarianTime)]
|
||||
public DateTime Kezdete { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Vege), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
[SimpleExportColumn(NevOktLeNemKotottMunkaidoExportAttributeId, 02, nameof(NevOktLeNemKotottMunkaidoResource.Vege), typeof(NevOktLeNemKotottMunkaidoResource), DateTimeToStringPattern = Core.Constants.ToStringPattern.HungarianTime)]
|
||||
public DateTime Vege { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Tanar), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public int TanarId { get; set; }
|
||||
[SimpleExportColumn(NevOktLeNemKotottMunkaidoExportAttributeId, 03, nameof(NevOktLeNemKotottMunkaidoResource.Tanar), typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public string TanarNeve { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Kategoria), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public int KategoriaId { get; set; }
|
||||
[SimpleExportColumn(NevOktLeNemKotottMunkaidoExportAttributeId, 04, nameof(NevOktLeNemKotottMunkaidoResource.Kategoria), typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public string KategoriaNeve { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.RogzitesDatuma), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
[SimpleExportColumn(NevOktLeNemKotottMunkaidoExportAttributeId, 05, nameof(NevOktLeNemKotottMunkaidoResource.RogzitesDatuma), typeof(NevOktLeNemKotottMunkaidoResource), DateTimeToStringPattern = Core.Constants.ToStringPattern.HungarianDate)]
|
||||
public DateTime RogzitesDatuma { get; set; }
|
||||
public bool Megtartott { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class NevOktLeNemKotottMunkaidoInfoModel
|
||||
{
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Kezdete), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public string Kezdete { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Vege), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public string Vege { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Megjegyzes), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public string Megjegyzes { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Megtartott), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public string Megtartott { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Kategoria), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public string Kategoria { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Hetirend), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public string Hetirend { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.NaplozottMegjegyzes), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public string NaplozottMegjegyzes { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Tanar), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public string TanarNeve { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Tulajdonos), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public string TulajdonosNeve { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class NevOktLeNemKotottMunkaidoSearchModel
|
||||
{
|
||||
[Display(Name = nameof(OsztalyCsoportResource.EllatottKoznevelesiFeladatTipus), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? FeladatKategoriaId { get; set; }
|
||||
|
||||
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
|
||||
public int? FeladatEllatasiHelyId { get; set; }
|
||||
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Datum), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public DateTime? DatumTol { get; set; }
|
||||
public DateTime? DatumIg { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Kezdete), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public DateTime? KezdeteTol { get; set; }
|
||||
public DateTime? KezdeteIg { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Vege), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public DateTime? VegeTol { get; set; }
|
||||
public DateTime? VegeIg { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Tanar), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public int? TanarId { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.Kategoria), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public int? Kategoria { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.RogzitesDatuma), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public DateTime? RogzitesDatumaTol { get; set; }
|
||||
[Display(Name = nameof(NevOktLeNemKotottMunkaidoResource.ToroltTevekenysegek), ResourceType = typeof(NevOktLeNemKotottMunkaidoResource))]
|
||||
public int? IsToroltTevekenysegek { get; set; }
|
||||
public DateTime? RogzitesDatumaIg { get; set; }
|
||||
|
||||
public NevOktLeNemKotottMunkaidoSearchCO ConvertToCo()
|
||||
{
|
||||
return new NevOktLeNemKotottMunkaidoSearchCO
|
||||
{
|
||||
FeladatKategoriaId = this.FeladatKategoriaId,
|
||||
FeladatEllatasiHelyId = this.FeladatEllatasiHelyId,
|
||||
DatumTol = this.DatumTol,
|
||||
DatumIg = this.DatumIg,
|
||||
KezdeteTol = this.KezdeteTol,
|
||||
KezdeteIg = this.KezdeteIg,
|
||||
VegeTol = this.VegeTol,
|
||||
VegeIg = this.VegeIg,
|
||||
TanarId = this.TanarId,
|
||||
Kategoria = this.Kategoria,
|
||||
RogzitesDatumaTol = this.RogzitesDatumaTol,
|
||||
RogzitesDatumaIg = this.RogzitesDatumaIg,
|
||||
IsToroltTevekenysegek = this.IsToroltTevekenysegek
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
11
KretaWeb/Areas/Adminisztracio/Models/NexiusListItemModel.cs
Normal file
11
KretaWeb/Areas/Adminisztracio/Models/NexiusListItemModel.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using Nexius.IdentityProvider.Model.External.V1;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class NexiusListItemModel
|
||||
{
|
||||
public Course Course { get; set; }
|
||||
|
||||
public CourseResult CourseResult { get; set; }
|
||||
}
|
||||
}
|
34
KretaWeb/Areas/Adminisztracio/Models/OracsereModel.cs
Normal file
34
KretaWeb/Areas/Adminisztracio/Models/OracsereModel.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class OracsereModel
|
||||
{
|
||||
public OracsereModel()
|
||||
{
|
||||
|
||||
}
|
||||
[Required(ErrorMessageResourceName = nameof(OrarendResource.TanarOracserereValaszthatoOraiKotelezo), ErrorMessageResourceType = typeof(OrarendResource))]
|
||||
[Display(Name = nameof(OrarendResource.TanarOracserereValaszthatoOrai), ResourceType = typeof(OrarendResource))]
|
||||
public int? OracsereOrarendiOraId { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(OrarendResource.OracsereDatumaKotelezo), ErrorMessageResourceType = typeof(OrarendResource))]
|
||||
[Display(Name = nameof(OrarendResource.OracsereOrarendiOraDatum), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? OracsereOrarendiOraDatum { get; set; }
|
||||
|
||||
public int CalendarOrarendiOraId { get; set; }
|
||||
|
||||
public DateTime? CalendarOrarendiOraDatum { get; set; }
|
||||
|
||||
public string HelyettesitesreKivalasztottTanarNeve { get; set; }
|
||||
|
||||
public bool IsPrevalidation { get; set; }
|
||||
|
||||
public bool IsTeremcsere { get; set; }
|
||||
|
||||
public DateTime TanevElsoNapja { get; set; }
|
||||
public DateTime TanevUtolsoNapja { get; set; }
|
||||
}
|
||||
}
|
33
KretaWeb/Areas/Adminisztracio/Models/ProfilModel.cs
Normal file
33
KretaWeb/Areas/Adminisztracio/Models/ProfilModel.cs
Normal file
|
@ -0,0 +1,33 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
using static Kreta.Core.Constants;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class ProfilModel
|
||||
{
|
||||
public bool JelszoValtoztatasNemLehetseges { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 2575 /*Jelenlegi jelszó megadása kötelező!*/)]
|
||||
[KretaDisplayName(1826)] /*Jelenlegi jelszó*/
|
||||
[DataType(DataType.Password)]
|
||||
public string JelenlegiJelszo { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 2576 /*Új jelszó megadása kötelező!*/)]
|
||||
[KretaDisplayName(1827)] /*Új jelszó*/
|
||||
[DataType(DataType.Password)]
|
||||
[StringLength(General.JelszoMaximumKarakterekSzama, MinimumLength = General.JelszoMinimumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.AJelszonakMin0Max0KarakterbolKellAllnia), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
public string UjJelszo { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 2577 /*Új jelszó megerősítésének megadása kötelező!*/)]
|
||||
[KretaDisplayName(1828)] /*Új jelszó megerősítése*/
|
||||
[DataType(DataType.Password)]
|
||||
[StringLength(General.JelszoMaximumKarakterekSzama, MinimumLength = General.JelszoMinimumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.AJelszonakMin0Max0KarakterbolKellAllnia), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Compare("UjJelszo", ErrorMessageResourceName = nameof(ErrorResource.JelszoNemEgyezikMeg), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
public string UjJelszoMegerositese { get; set; }
|
||||
|
||||
public bool IsElerhetosegAdatokSzerkeszthetoek { get; set; }
|
||||
}
|
||||
}
|
498
KretaWeb/Areas/Adminisztracio/Models/SajatAdatlapInfoModel.cs
Normal file
498
KretaWeb/Areas/Adminisztracio/Models/SajatAdatlapInfoModel.cs
Normal file
|
@ -0,0 +1,498 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.IO;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Core.Configuratiaton;
|
||||
using Kreta.Core.Configuratiaton.Interface;
|
||||
using Kreta.Core.Logic;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Models;
|
||||
using Kreta.Web.Models.EditorTemplates;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class SajatAdatlapInfoModel : PanelBarChildModel
|
||||
{
|
||||
public SajatAdatlapInfoModel()
|
||||
{
|
||||
AlapAdat = new AlapAdatModel();
|
||||
Gondviselo = new GondviseloModel();
|
||||
TanuloIgazolvany = new TanuloIgazolvanyModel();
|
||||
Felhasznalo4TAdatokModel = new Felhasznalo4TAdatokModel();
|
||||
ApaczaiMentorNyugdijModel = new MentoriNyugdijModel();
|
||||
}
|
||||
|
||||
public AlapAdatModel AlapAdat { get; set; }
|
||||
|
||||
public GondviseloModel Gondviselo { get; set; }
|
||||
|
||||
public TanuloIgazolvanyModel TanuloIgazolvany { get; set; }
|
||||
|
||||
public TanuloBankszamlaModel TanuloBankszamla { get; set; }
|
||||
|
||||
public AlkalmazottBankszamlaModel AlkalmazottBankszamla { get; set; }
|
||||
|
||||
public BankszamlaIgenylesModel MkbBankszamlaIgenylesModel { get; set; }
|
||||
|
||||
public BankszamlaIgenylesModel OtpBankszamlaIgenylesModel { get; set; }
|
||||
|
||||
public EgyhaztartasbanElokModel EgyhaztartasbanElokModel { get; set; }
|
||||
|
||||
public Felhasznalo4TAdatokModel Felhasznalo4TAdatokModel { get; set; }
|
||||
|
||||
public MentoriNyugdijModel ApaczaiMentorNyugdijModel { get; set; }
|
||||
|
||||
public bool HideControlsForApaczaiOD { get; set; }
|
||||
public bool HideControlsForAlkalmazott { get; set; }
|
||||
|
||||
#region AlapAdat
|
||||
|
||||
public class AlapAdatModel
|
||||
{
|
||||
[Display(Name = nameof(AlkalmazottResource.OktatasiAzonosito), ResourceType = typeof(AlkalmazottResource))]
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
|
||||
[Display(Name = nameof(AlkalmazottResource.Elotag), ResourceType = typeof(AlkalmazottResource))]
|
||||
public string EloTag { get; set; }
|
||||
|
||||
[Display(Name = nameof(AlkalmazottResource.CsaladiNev), ResourceType = typeof(AlkalmazottResource))]
|
||||
public string CsaladiNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(AlkalmazottResource.Utonev), ResourceType = typeof(AlkalmazottResource))]
|
||||
public string Utonev { get; set; }
|
||||
|
||||
[Display(Name = nameof(AlkalmazottResource.SzuletesiElotag), ResourceType = typeof(AlkalmazottResource))]
|
||||
public string SzuletesiElotag { 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.AnyjaElotag), ResourceType = typeof(AlkalmazottResource))]
|
||||
public string AnyjaElotag { 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(TanuloResource.Anyanyelv), ResourceType = typeof(TanuloResource))]
|
||||
public string Anyanyelv { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.SzuletesiOrszag), ResourceType = typeof(TanuloResource))]
|
||||
public string SzuletesiOrszag { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.SzuletesiHely), ResourceType = typeof(TanuloResource))]
|
||||
public string SzuletesiHely { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.SzuletesiIdo), ResourceType = typeof(TanuloResource))]
|
||||
public DateTime SzuletesiIdo { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.SzuletesiIdo), ResourceType = typeof(TanuloResource))]
|
||||
public string SzuletesiIdo_SDATE => SzuletesiIdo.ToString(Core.Constants.ToStringPattern.HungarianDateWithSpaces);
|
||||
|
||||
[Display(Name = nameof(TanuloResource.Allampolgarsag), ResourceType = typeof(TanuloResource))]
|
||||
public string Allampolgarsag { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.Allampolgarsag2), ResourceType = typeof(TanuloResource))]
|
||||
public string Allampolgarsag2 { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.IgazolvanyTipus), ResourceType = typeof(TanuloResource))]
|
||||
public string IgazolvanyTipus { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.IgazolvanySzam), ResourceType = typeof(TanuloResource))]
|
||||
public string IgazolvanySzam { get; set; }
|
||||
|
||||
[Display(Name = nameof(AlkalmazottResource.Felhasznalonev), ResourceType = typeof(AlkalmazottResource))]
|
||||
public string BelepesiNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.Osztaly), ResourceType = typeof(TanuloResource))]
|
||||
public string OsztalyNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.Osztalyfonok), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public string OsztalyfonokNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.Terem), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public string TeremNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.Evfolyam), ResourceType = typeof(TanuloResource))]
|
||||
public string EvfolyamNev { get; set; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public class TanuloAdatModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.Tanulo), ResourceType = typeof(TanuloResource))]
|
||||
public string TanuloNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.OktatasiAzonosito), ResourceType = typeof(TanuloResource))]
|
||||
public string OktAzon { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.Osztaly), ResourceType = typeof(TanuloResource))]
|
||||
public string OsztalyNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.Osztalyfonok), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public string OsztalyfonokNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.Terem), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public string TeremNev { get; set; }
|
||||
}
|
||||
|
||||
#region Elerhetőségek
|
||||
|
||||
public class ElerhetosegCimModel : IKretaIdentity
|
||||
{
|
||||
public string ID { 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 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 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))]
|
||||
public string EmailCim { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.Alapertelmezett), ResourceType = typeof(TanuloResource))]
|
||||
public bool Alapertelmezett_BOOL { get; set; }
|
||||
}
|
||||
|
||||
public class TargyiEszkozModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanarResource.Megnevezes), ResourceType = typeof(TanarResource))]
|
||||
public string Megnevezes { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanarResource.GyariSzam), ResourceType = typeof(TanarResource))]
|
||||
public string GyariSzam { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanarResource.LeltariSzam), ResourceType = typeof(TanarResource))]
|
||||
public string LeltariSzam { get; set; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public class GondviseloModel
|
||||
{
|
||||
[Display(Name = nameof(TanuloResource.TeljesNev), ResourceType = typeof(TanuloResource))]
|
||||
public string GondviseloNeve { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.RokonsagiFok), ResourceType = typeof(TanuloResource))]
|
||||
public string RokonsagiFok { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.TorvenyesKepviselo), ResourceType = typeof(TanuloResource))]
|
||||
public string IsTorvenyesKepviselo { get; set; }
|
||||
}
|
||||
|
||||
public class TanuloIgazolvanyModel
|
||||
{
|
||||
[Display(Name = nameof(TanuloResource.IgazolvanySzama), ResourceType = typeof(TanuloResource))]
|
||||
public string Igazolvanyszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.IgazolvanyTipus), ResourceType = typeof(TanuloResource))]
|
||||
public string IgazolvanyTipus { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.DiakigazolvanySzam), ResourceType = typeof(TanuloResource))]
|
||||
public string DiakigazolvanySzam { get; set; }
|
||||
|
||||
public DateTime? DiakigazolvanyKelte { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.DiakigazolvanyKelte), ResourceType = typeof(TanuloResource))]
|
||||
public string DiakigazolvanyKelte_SDATE => DiakigazolvanyKelte.ToShortDateString();
|
||||
|
||||
[Display(Name = nameof(TanuloResource.TajSzam), ResourceType = typeof(TanuloResource))]
|
||||
public string TajSzam { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.AdoazonositoJel), ResourceType = typeof(TanuloResource))]
|
||||
public string AdoazonositoJel { get; set; }
|
||||
}
|
||||
|
||||
public static SajatAdatlapInfoModel ConvertTanarAdatCoToModel(TanarAdatCO co, EgyhaztartasbanElokCo egyhaztartasbanElokCo)
|
||||
{
|
||||
var model = new SajatAdatlapInfoModel
|
||||
{
|
||||
AlapAdat = new AlapAdatModel
|
||||
{
|
||||
OktatasiAzonosito = co.OktatasiAzonosito,
|
||||
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,
|
||||
SzuletesiIdo = co.SzuletesiIdo,
|
||||
IgazolvanyTipus = co.IgazolvanyTipus.GetDisplayName<IgazolvanyTipusEnum>(ClaimData.SelectedTanevID.Value),
|
||||
IgazolvanySzam = co.IgazolvanySzam,
|
||||
BelepesiNev = co.BelepesiNev
|
||||
},
|
||||
AlkalmazottBankszamla = new AlkalmazottBankszamlaModel("SajatAdatlapHelper.alkalmazottBankszamlaMentesClick")
|
||||
{
|
||||
BankszamlaSzam = co.BankszamlaSzam,
|
||||
BankszamlaTulajdonos = co.BankszamlaTulajdonos,
|
||||
BankszamlaTulajdonosNeve = co.BankszamlaTulajdonosNeve,
|
||||
SzamlavezetoBank = co.SzamlavezetoBank,
|
||||
IsApaczaiMentor = co.IsApaczaiMentor,
|
||||
},
|
||||
EgyhaztartasbanElokModel = GetEgyhaztartasbanElokModel(egyhaztartasbanElokCo),
|
||||
ApaczaiMentorNyugdijModel = new MentoriNyugdijModel
|
||||
{
|
||||
IsApaczaiMentor = co.IsApaczaiMentor,
|
||||
IsNyugdijas = co.IsNyugdijas,
|
||||
NyugdijKezdet = co.NyugdijKezdet,
|
||||
NyugdijTipusId = co.NyugdijTipusId,
|
||||
MunkaugyiAdatId = co.MunkaugyiAdatId
|
||||
}
|
||||
};
|
||||
|
||||
return model;
|
||||
}
|
||||
|
||||
public static SajatAdatlapInfoModel ConvertTanuloAdatCoToModel(TanuloAdatCO co, BankszamlaIgenylesCo bankszamlaIgenylesCo, EgyhaztartasbanElokCo egyhaztartasbanElokCo)
|
||||
{
|
||||
var model = new SajatAdatlapInfoModel
|
||||
{
|
||||
AlapAdat = new AlapAdatModel
|
||||
{
|
||||
OktatasiAzonosito = co.OktatasiAzonosito,
|
||||
EloTag = co.Elotag,
|
||||
CsaladiNev = co.CsaladiNev,
|
||||
Utonev = co.UtoNev,
|
||||
AnyjaCsaladiNeve = co.AnyjaCsaladiNev,
|
||||
AnyjaUtonev = co.AnyjaUtoNev,
|
||||
AnyjaElotag = co.AnyjaNeveElotag,
|
||||
SzuletesiCsaladNev = co.SzuletesiCsaladiNev,
|
||||
SzuletesiUtonev = co.SzuletesiUtoNev,
|
||||
SzuletesiElotag = co.SzuletesiNevElotag,
|
||||
SzuletesiOrszag = co.SzuletesiOrszag.GetDisplayName<OrszagTipusEnum>(ClaimData.SelectedTanevID.Value),
|
||||
SzuletesiHely = co.SzuletesiHely,
|
||||
SzuletesiIdo = co.SzuletesiIdo,
|
||||
Anyanyelv = co.Anyanyelv.GetDisplayName<AnyanyelvEnum>(ClaimData.SelectedTanevID.Value),
|
||||
Allampolgarsag = co.Allampolgarsag.GetDisplayName<AllampolgarsagEnum>(ClaimData.SelectedTanevID.Value),
|
||||
Allampolgarsag2 = co.Allampolgarsag2.GetDisplayName<AllampolgarsagEnum>(ClaimData.SelectedTanevID.Value),
|
||||
BelepesiNev = co.BelepesiNev,
|
||||
OsztalyNev = co.OsztalyNev,
|
||||
EvfolyamNev = co.EvfolyamNev,
|
||||
OsztalyfonokNev = co.OsztalyfonokNev,
|
||||
TeremNev = co.TeremNev
|
||||
},
|
||||
TanuloIgazolvany = new TanuloIgazolvanyModel
|
||||
{
|
||||
AdoazonositoJel = co.AdoazonositoJel,
|
||||
DiakigazolvanyKelte = co.DiakigazolvanyKelte,
|
||||
DiakigazolvanySzam = co.DiakigazolvanySzam,
|
||||
Igazolvanyszam = co.Igazolvanyszam,
|
||||
IgazolvanyTipus = co.IgazolvanyTipus.GetDisplayName<IgazolvanyTipusEnum>(ClaimData.SelectedTanevID.Value),
|
||||
TajSzam = co.TajSzam
|
||||
},
|
||||
TanuloBankszamla = new TanuloBankszamlaModel("SajatAdatlapHelper.tanuloBankszamlaMentesClick")
|
||||
{
|
||||
BankszamlaSzam = co.BankszamlaSzam,
|
||||
BankszamlaTulajdonos = co.BankszamlaTulajdonos,
|
||||
BankszamlaTulajdonosNeve = co.BankszamlaTulajdonosNeve,
|
||||
SzamlavezetoBank = co.SzamlavezetoBank,
|
||||
},
|
||||
MkbBankszamlaIgenylesModel = GetBankszamlaIgenylesModel<IMkbBankszamlaIgenylesConfiguration>(bankszamlaIgenylesCo),
|
||||
OtpBankszamlaIgenylesModel = GetBankszamlaIgenylesModel<IOtpBankszamlaIgenylesConfiguration>(bankszamlaIgenylesCo),
|
||||
EgyhaztartasbanElokModel = GetEgyhaztartasbanElokModel(egyhaztartasbanElokCo),
|
||||
Felhasznalo4TAdatokModel = new Felhasznalo4TAdatokModel()
|
||||
{
|
||||
AnyjaUtonev = co.AnyjaUtoNev,
|
||||
AnyjaVezeteknev = co.AnyjaCsaladiNev,
|
||||
Elotag = co.Elotag,
|
||||
SzuletesiDatum = co.SzuletesiIdo,
|
||||
SzuletesiHely = co.SzuletesiHely,
|
||||
SzuletesiUtonev = co.SzuletesiUtoNev,
|
||||
SzuletesiVezeteknev = co.SzuletesiCsaladiNev,
|
||||
Utonev = co.UtoNev,
|
||||
Vezeteknev = co.CsaladiNev,
|
||||
},
|
||||
};
|
||||
|
||||
return model;
|
||||
}
|
||||
|
||||
public static SajatAdatlapInfoModel ConvertGondviseloAdatCoToModel(TanuloGondviseloCO co, Felhasznalo4TAdatokCo felhasznalo4TAdatokCo, BankszamlaIgenylesCo bankszamlaIgenylesCo, EgyhaztartasbanElokCo egyhaztartasbanElokCo)
|
||||
{
|
||||
var model = new SajatAdatlapInfoModel
|
||||
{
|
||||
AlapAdat = new AlapAdatModel
|
||||
{
|
||||
BelepesiNev = co.GondviseloBelepesiNeve
|
||||
},
|
||||
Gondviselo = new GondviseloModel
|
||||
{
|
||||
RokonsagiFok = co.RokonsagiFok.GetDisplayName<RokonsagiFokEnum>(ClaimData.SelectedTanevID.Value),
|
||||
IsTorvenyesKepviselo = co.IsTorvenyesKepviselo.GetDisplayName(),
|
||||
GondviseloNeve = co.GondviseloNeve
|
||||
},
|
||||
TanuloBankszamla = new TanuloBankszamlaModel("SajatAdatlapHelper.tanuloBankszamlaMentesClick")
|
||||
{
|
||||
BankszamlaSzam = co.TanuloBankszamlaCo.BankszamlaSzam,
|
||||
BankszamlaTulajdonos = co.TanuloBankszamlaCo.BankszamlaTulajdonos,
|
||||
BankszamlaTulajdonosNeve = co.TanuloBankszamlaCo.BankszamlaTulajdonosNeve,
|
||||
SzamlavezetoBank = co.TanuloBankszamlaCo.SzamlavezetoBank,
|
||||
IsReadonly = !co.IsTorvenyesKepviselo
|
||||
},
|
||||
MkbBankszamlaIgenylesModel = GetBankszamlaIgenylesModel<MkbBankszamlaIgenylesConfiguration>(bankszamlaIgenylesCo, co),
|
||||
OtpBankszamlaIgenylesModel = GetBankszamlaIgenylesModel<OtpBankszamlaIgenylesConfiguration>(bankszamlaIgenylesCo, co),
|
||||
EgyhaztartasbanElokModel = GetEgyhaztartasbanElokModel(egyhaztartasbanElokCo),
|
||||
Felhasznalo4TAdatokModel = new Felhasznalo4TAdatokModel(felhasznalo4TAdatokCo) { IsEditable = false }
|
||||
};
|
||||
|
||||
return model;
|
||||
}
|
||||
|
||||
private static BankszamlaIgenylesModel GetBankszamlaIgenylesModel<T>(BankszamlaIgenylesCo bankszamlaIgenylesCo, TanuloGondviseloCO gondviselo = null) where T : IBankszamlaIgenylesConfiguration
|
||||
{
|
||||
bool showIgenyles = false;
|
||||
string igenylesOldalUrl = string.Empty;
|
||||
|
||||
//NOTE: Ha az adatbátzisban az intézmény adatokban(T_INTEZMENYADATOK) be van állítva, hogy szakképző az intézmény(C_ISSZAKKEPZO = 'T'), akkor lehet csak megjeleníteni a funkciót.
|
||||
// Csak az NSZFH-s intézményeknél lehet true.
|
||||
if (ClaimData.IsSzakkepzoIntezmeny)
|
||||
{
|
||||
//NOTE: Csak abban az esetben lehet igényelni bankszámlát, ha
|
||||
// - még nincs bankszámlaszáma(azaz null vagy üres string a Bankszamlaszam) és
|
||||
// - a tanuló bármelyik osztálya megfelelő évfolyamú(Kreta.Core.Constants.BankszamlatIgenyelhetoTanuloOsztalyEvfolyamTipusIdList).
|
||||
if (string.IsNullOrWhiteSpace(bankszamlaIgenylesCo.Bankszamlaszam) && bankszamlaIgenylesCo.IsTanuloIgenyelhetBankszamlatByOsztalyEvfolyamTipus)
|
||||
{
|
||||
bool isGondviselo = gondviselo != null;
|
||||
//NOTE: Ha a felhasználó gondviselő, csak abban az esetben lehet igényelni bankszámlát, ha
|
||||
// - törvényes képviselő.
|
||||
if (isGondviselo)
|
||||
{
|
||||
if (gondviselo.IsTorvenyesKepviselo)
|
||||
{
|
||||
showIgenyles = true;
|
||||
}
|
||||
}
|
||||
//NOTE: Ha a felhasználó tanuló, minden esetben lehet igényelni bankszámlát.
|
||||
else
|
||||
{
|
||||
showIgenyles = true;
|
||||
}
|
||||
}
|
||||
|
||||
var bankszamlaIgenylesConfiguration = DependencyResolver.Current.GetService<T>();
|
||||
//NOTE: Beállítjuk a bankszámla igénylés oldal url-jét az MKB-nak megfelelő titkosítás szerint, ha
|
||||
// - meg kell jeleníteni a korábbi feltételek alapján és
|
||||
// - létezik a publikus kulcs és
|
||||
// - amit encrypt-álunk, az nem lesz null vagy üres string.
|
||||
if (showIgenyles && File.Exists(bankszamlaIgenylesConfiguration.PublicKeyFileName))
|
||||
{
|
||||
string token = UrlLogic.JweEncrypt(
|
||||
bankszamlaIgenylesConfiguration.PublicKeyFileName,
|
||||
bankszamlaIgenylesConfiguration.PublicKeyFilePassword,
|
||||
bankszamlaIgenylesCo.EgyediAzonosito);
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(token))
|
||||
{
|
||||
igenylesOldalUrl = string.Format(bankszamlaIgenylesConfiguration.FormUrl, bankszamlaIgenylesCo.UrlHost, token);
|
||||
}
|
||||
}
|
||||
|
||||
//NOTE: Ha valami miatt mégsem sikerült beállítani a bankszámla igénylés oldal url-jét akkor nem jelenítjük meg az igénylés gombot.
|
||||
if (string.IsNullOrWhiteSpace(igenylesOldalUrl))
|
||||
{
|
||||
showIgenyles = false;
|
||||
}
|
||||
}
|
||||
|
||||
var model = new BankszamlaIgenylesModel
|
||||
{
|
||||
ShowIgenyles = showIgenyles,
|
||||
IgenylesOldalUrl = igenylesOldalUrl,
|
||||
};
|
||||
|
||||
return model;
|
||||
}
|
||||
|
||||
private static EgyhaztartasbanElokModel GetEgyhaztartasbanElokModel(EgyhaztartasbanElokCo co)
|
||||
{
|
||||
var model = new EgyhaztartasbanElokModel() { };
|
||||
|
||||
if (co.Sorok.Count > 0)
|
||||
{
|
||||
foreach (var item in co.Sorok)
|
||||
{
|
||||
model.Sorok.Add(new EgyhaztartasbanElokRowModel()
|
||||
{
|
||||
ID = item.ID,
|
||||
Nev = item.Nev,
|
||||
AnyjaNev = item.AnyjaNev,
|
||||
SzuletesiIdo = item.SzuletesiIdo,
|
||||
SzuletesiHely = item.SzuletesiHely,
|
||||
Taj = item.Taj,
|
||||
RokonsagiFok = item.RokonsagiFok,
|
||||
Email = item.Email,
|
||||
Telefon = item.Telefon
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return model;
|
||||
}
|
||||
}
|
||||
}
|
31
KretaWeb/Areas/Adminisztracio/Models/SystemSettingsModel.cs
Normal file
31
KretaWeb/Areas/Adminisztracio/Models/SystemSettingsModel.cs
Normal file
|
@ -0,0 +1,31 @@
|
|||
using Kreta.Web.Models.EditorTemplates;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class SystemSettingsModel : PanelBarBaseModel
|
||||
{
|
||||
public SpecialisBeallitasokModel SpecialisBeallitasokModel { get; set; }
|
||||
|
||||
public RendszerszintuTorlesiLehetosegekModel RendszerszintuTorlesiLehetosegekModel { get; set; }
|
||||
|
||||
public JuttatasBeallitasokModel JuttatasBeallitasokModel { get; set; }
|
||||
|
||||
public bool IsIntezmenySzakkepzoJuttatas { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class SpecialisBeallitasokModel : PanelBarBaseModel
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public class RendszerszintuTorlesiLehetosegekModel : PanelBarBaseModel
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public class JuttatasBeallitasokModel : PanelBarBaseModel
|
||||
{
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
using System.Collections.Generic;
|
||||
using Kreta.Enums;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class SzerepkorValasztoModel
|
||||
{
|
||||
public SzerepkorValasztoModel()
|
||||
{
|
||||
Roles = new List<UserRoles>();
|
||||
}
|
||||
|
||||
public string OrganizationName { get; set; }
|
||||
|
||||
public string UserName { get; set; }
|
||||
|
||||
public string ProfilImgSrc { get; set; }
|
||||
|
||||
public List<UserRoles> Roles { get; set; }
|
||||
|
||||
public string CancelLinkText { get; set; }
|
||||
|
||||
public string CancelLinkAction { get; set; }
|
||||
}
|
||||
|
||||
public class UserRoles
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public SzerepkorTipusEnum Szerepkor { get; set; }
|
||||
|
||||
public string LastLoggedIn { get; set; }
|
||||
|
||||
public bool IsActive { get; set; }
|
||||
}
|
||||
}
|
27
KretaWeb/Areas/Adminisztracio/Models/TanarKIRImportModel.cs
Normal file
27
KretaWeb/Areas/Adminisztracio/Models/TanarKIRImportModel.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.Web.Attributes;
|
||||
using Kreta.Web.Models;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class TanarKIRImportModel : UploadFileModel
|
||||
{
|
||||
[KretaDisplayName(450)] /*Tanév*/
|
||||
//[KretaRequired(StringResourcesId = 3823)]
|
||||
public int? TanevId { get; set; }
|
||||
|
||||
[KretaDisplayName(90)] /*Feladatellátási hely*/
|
||||
//[KretaRequired(StringResourcesId = 4920)]
|
||||
public int? FeladatellatasiHelyId { get; set; }
|
||||
public List<SelectListItem> FeladatellatasiHelyList { get; set; }
|
||||
|
||||
public List<SelectListItem> TanevLista { get; set; }
|
||||
|
||||
public KIRLoginModel KirLoginModel { get; set; }
|
||||
|
||||
public KIRImportModel KIRImportModel { get; set; }
|
||||
|
||||
public bool KIRImportEnabled { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class TanarokFeltolteseModel
|
||||
{
|
||||
|
||||
public TanarokFeltolteseModel()
|
||||
{
|
||||
FeladatellatasiHelyList = new List<SelectListItem>();
|
||||
TanevList = new List<SelectListItem>();
|
||||
Errors = new List<string>();
|
||||
}
|
||||
|
||||
[KretaDisplayName(450)] /*Tanév*/
|
||||
[KretaRequired(StringResourcesId = 3823)]
|
||||
public int? TanevId { get; set; }
|
||||
|
||||
[KretaDisplayName(90)] /*Feladatellátási hely*/
|
||||
[KretaRequired(StringResourcesId = 1680)]
|
||||
public int? FeladatellatasiHelyId { get; set; }
|
||||
|
||||
public List<SelectListItem> TanevList { get; set; }
|
||||
|
||||
public List<SelectListItem> FeladatellatasiHelyList { get; set; }
|
||||
|
||||
public List<string> Errors { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class TanevValtasAlkalmazottTorlesGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
public int? AlkalmazottId { get; set; }
|
||||
|
||||
[Display(Name = nameof(AlkalmazottResource.AlkalmazottNev), ResourceType = typeof(AlkalmazottResource))]
|
||||
public string AlkalmazottNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(AlkalmazottResource.OktatasiAzonosito), ResourceType = typeof(AlkalmazottResource))]
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
|
||||
[Display(Name = nameof(AlkalmazottResource.AlkalmazasKezdete), ResourceType = typeof(AlkalmazottResource))]
|
||||
public DateTime? AlkalmazasKezdete { get; set; }
|
||||
|
||||
[Display(Name = nameof(AlkalmazottResource.AlkalmazasVege), ResourceType = typeof(AlkalmazottResource))]
|
||||
public DateTime? AlkalmazasVege { get; set; }
|
||||
}
|
||||
}
|
36
KretaWeb/Areas/Adminisztracio/Models/TanevValtasaModel.cs
Normal file
36
KretaWeb/Areas/Adminisztracio/Models/TanevValtasaModel.cs
Normal file
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class AktivTanevValtasaModel
|
||||
{
|
||||
public int ID { get; set; }
|
||||
|
||||
public int? KiNemSoroltTanulokOsztaly { get; set; }
|
||||
|
||||
public int? KiNemSoroltTanulokCsoport { get; set; }
|
||||
|
||||
public int? BeNemSoroltNebulok { get; set; }
|
||||
|
||||
public bool LejartLicence { get; set; }
|
||||
|
||||
public int? VanTorlendoAlkalmazott { get; set; }
|
||||
|
||||
public int NemErtekeltOsszefuggoSzakmaiGyakorlatosTanulok { get; set; }
|
||||
|
||||
public List<string> AlkalmazottakAlapertekekkel { get; set; }
|
||||
}
|
||||
|
||||
public class AktivTanevValtasaItemModel
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Content { get; set; }
|
||||
|
||||
public AdminDashboardTipusEnum Type { get; set; }
|
||||
|
||||
public DateTime Date { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class TantargyFelosztasGridModel : IKretaIdentity
|
||||
{
|
||||
[KretaDisplayName(379)]
|
||||
public string Osztaly { get; set; }
|
||||
|
||||
[KretaDisplayName(1619)]
|
||||
public string Csoport { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string Tantargy { get; set; }
|
||||
|
||||
[KretaDisplayName(274)]
|
||||
public string Oraszam { get; set; }
|
||||
|
||||
[KretaDisplayName(30)]
|
||||
public string Tanar { get; set; }
|
||||
|
||||
[KretaDisplayName(3871)]
|
||||
public DateTime? TanarSzuletesiDatum { get; set; }
|
||||
|
||||
[KretaDisplayName(1359)]
|
||||
public string ID { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,126 @@
|
|||
using System.Collections.Generic;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.BusinessLogic.Helpers;
|
||||
using Kreta.BusinessLogic.Logic;
|
||||
using Kreta.Core;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Resources;
|
||||
using Microsoft.Ajax.Utilities;
|
||||
using Newtonsoft.Json;
|
||||
using ModelStateDictionary = System.Web.Http.ModelBinding.ModelStateDictionary;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class TanuloErtekelesMondatbankItemModel : BaseTanuloErtekelesMondatbankItemModel
|
||||
{
|
||||
[JsonConstructor]
|
||||
public TanuloErtekelesMondatbankItemModel(bool mustSetSelectListItemLists = true)
|
||||
: base(mustSetSelectListItemLists)
|
||||
{
|
||||
}
|
||||
|
||||
public TanuloErtekelesMondatbankItemModel(TanuloErtekelesMondatbankItemCo co)
|
||||
{
|
||||
RovidNev = co.RovidNev;
|
||||
Szoveg = co.Szoveg;
|
||||
SetSelectListItemLists(this);
|
||||
TanuloErtekelesTipusId = co.TanuloErtekelesTipusId.IsEntityId() ? co.TanuloErtekelesTipusId.Value : 0;
|
||||
EvfolyamTipusId = co.EvfolyamTipusId.IsEntityId() ? co.EvfolyamTipusId.Value : 0;
|
||||
SzovegNemet = co.SzovegNemet;
|
||||
SzovegHorvat = co.SzovegHorvat;
|
||||
SzovegRoman = co.SzovegRoman;
|
||||
SzovegSzerb = co.SzovegSzerb;
|
||||
|
||||
switch (co.TipusId)
|
||||
{
|
||||
case (int)ErtMondatbankTipusEnum.Magatartas:
|
||||
TantargyId = TanuloErtekelesMondatbankHelper.MagatartasTantargyId;
|
||||
break;
|
||||
case (int)ErtMondatbankTipusEnum.Szorgalom:
|
||||
TantargyId = TanuloErtekelesMondatbankHelper.SzorgalomTantargyId;
|
||||
break;
|
||||
default:
|
||||
TantargyId = co.TantargyId.IsEntityId() ? co.TantargyId.Value : 0;
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public int ID { get; set; }
|
||||
|
||||
[KretaRequired]
|
||||
public override string Szoveg { get; set; }
|
||||
|
||||
[KretaRequired]
|
||||
public override int? TanuloErtekelesTipusId { get; set; }
|
||||
|
||||
[KretaRequired]
|
||||
public override int? EvfolyamTipusId { get; set; }
|
||||
|
||||
[KretaRequired]
|
||||
public override int? TantargyId { get; set; }
|
||||
|
||||
public TanuloErtekelesMondatbankItemCo ToCo()
|
||||
{
|
||||
var result = new TanuloErtekelesMondatbankItemCo
|
||||
{
|
||||
Id = ID,
|
||||
|
||||
RovidNev = RovidNev,
|
||||
Szoveg = Szoveg,
|
||||
TanuloErtekelesTipusId = TanuloErtekelesTipusId.IsEntityId() ? TanuloErtekelesTipusId : (int?)null,
|
||||
EvfolyamTipusId = EvfolyamTipusId.IsEntityId() ? EvfolyamTipusId : (int?)null,
|
||||
TantargyId = TantargyId.IsEntityId() ? TantargyId : (int?)null,
|
||||
TipusId = TanuloErtekelesMondatbankHelper.GetTanuloErtekelesMondatbankTipusIdByTantargyId(TantargyId),
|
||||
SzovegNemet = SzovegNemet,
|
||||
SzovegHorvat = SzovegHorvat,
|
||||
SzovegRoman = SzovegRoman,
|
||||
SzovegSzerb = SzovegSzerb,
|
||||
};
|
||||
return result;
|
||||
}
|
||||
|
||||
public override ModelStateDictionary Validate()
|
||||
{
|
||||
var modelStateDictionary = new ModelStateDictionary();
|
||||
|
||||
if (!RovidNev.IsNullOrWhiteSpace() && RovidNev.Length > 3)
|
||||
{
|
||||
modelStateDictionary.AddModelError(nameof(RovidNev), ErrorResource.ARovidNevNemLehetHosszabbMint3Karakter);
|
||||
}
|
||||
|
||||
// NOTE: kétszer kell minden szöveget dekódolni, mert először a control enkódolja, másodszor a http request
|
||||
if (Szoveg.IsNullOrWhiteSpace())
|
||||
{
|
||||
modelStateDictionary.AddModelError(nameof(Szoveg), string.Format(CommonResource.Required, TanuloErtekelesResource.Szoveg));
|
||||
}
|
||||
else if (RichTextLogic.GetLegalHtmlString(System.Web.HttpUtility.HtmlDecode(System.Web.HttpUtility.HtmlDecode(Szoveg)), new List<string>()).Length > Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz)
|
||||
{
|
||||
modelStateDictionary.AddModelError(nameof(Szoveg), string.Format(ErrorResource.ASzovegNemLehetHosszabbMint0Karakter, Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz));
|
||||
}
|
||||
|
||||
if (!SzovegNemet.IsNullOrWhiteSpace() && RichTextLogic.GetLegalHtmlString(System.Web.HttpUtility.HtmlDecode(System.Web.HttpUtility.HtmlDecode(SzovegNemet)), new List<string>()).Length > Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz)
|
||||
{
|
||||
modelStateDictionary.AddModelError(nameof(SzovegNemet), string.Format(ErrorResource.ASzovegNemetNemLehetHosszabbMint0Karakter, Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz));
|
||||
}
|
||||
|
||||
if (!SzovegHorvat.IsNullOrWhiteSpace() && RichTextLogic.GetLegalHtmlString(System.Web.HttpUtility.HtmlDecode(System.Web.HttpUtility.HtmlDecode(SzovegHorvat)), new List<string>()).Length > Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz)
|
||||
{
|
||||
modelStateDictionary.AddModelError(nameof(SzovegHorvat), string.Format(ErrorResource.ASzovegHorvatNemLehetHosszabbMint0Karakter, Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz));
|
||||
}
|
||||
|
||||
if (!SzovegRoman.IsNullOrWhiteSpace() && RichTextLogic.GetLegalHtmlString(System.Web.HttpUtility.HtmlDecode(System.Web.HttpUtility.HtmlDecode(SzovegRoman)), new List<string>()).Length > Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz)
|
||||
{
|
||||
modelStateDictionary.AddModelError(nameof(SzovegRoman), string.Format(ErrorResource.ASzovegRomanNemLehetHosszabbMint0Karakter, Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz));
|
||||
}
|
||||
|
||||
if (!SzovegSzerb.IsNullOrWhiteSpace() && RichTextLogic.GetLegalHtmlString(System.Web.HttpUtility.HtmlDecode(System.Web.HttpUtility.HtmlDecode(SzovegSzerb)), new List<string>()).Length > Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz)
|
||||
{
|
||||
modelStateDictionary.AddModelError(nameof(SzovegSzerb), string.Format(ErrorResource.ASzovegSzerbNemLehetHosszabbMint0Karakter, Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz));
|
||||
}
|
||||
|
||||
return modelStateDictionary;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,69 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.Helpers.DokumentumHelpers;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class TanuloErtekelesMondatbankItemSelectModel
|
||||
{
|
||||
|
||||
[Display(Name = nameof(TanuloErtekelesResource.TanuloErtekelesMondatbank), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public int? MondatbankSelectPopupId { get; set; }
|
||||
|
||||
public int MondatbankSelectPopupRowId { get; set; }
|
||||
|
||||
[MaxLength(3, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
|
||||
[Display(Name = nameof(TanuloErtekelesResource.RovidNev), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public string MondatbankSelectPopupRovidNev { get; set; }
|
||||
|
||||
[KretaRequired]
|
||||
[MaxLength(Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
|
||||
[Display(Name = nameof(TanuloErtekelesResource.SzovegesErtekeles), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public string MondatbankSelectPopupSzoveg { get; set; }
|
||||
|
||||
[MaxLength(4000, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
|
||||
[Display(Name = nameof(TanuloErtekelesResource.SzovegesErtekelesNemet), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public string MondatbankSelectPopupSzovegNemet { get; set; }
|
||||
|
||||
[MaxLength(4000, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
|
||||
[Display(Name = nameof(TanuloErtekelesResource.SzovegesErtekelesHorvat), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public string MondatbankSelectPopupSzovegHorvat { get; set; }
|
||||
|
||||
[MaxLength(4000, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
|
||||
[Display(Name = nameof(TanuloErtekelesResource.SzovegesErtekelesRoman), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public string MondatbankSelectPopupSzovegRoman { get; set; }
|
||||
|
||||
[MaxLength(4000, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
|
||||
[Display(Name = nameof(TanuloErtekelesResource.SzovegesErtekelesSzerb), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public string MondatbankSelectPopupSzovegSzerb { get; set; }
|
||||
|
||||
public int MondatbankSelectPopupTanuloErtekelesTipusId { get; set; }
|
||||
|
||||
public int? MondatbankSelectPopupOsztalyCsoportId { get; set; }
|
||||
|
||||
public int? MondatbankSelectPopupTantargyId { get; set; }
|
||||
|
||||
public int MondatbankSelectPopupTipusId { get; set; }
|
||||
|
||||
public List<SelectListItem> MondatbankItemSelectList { get; set; }
|
||||
|
||||
public List<TanuloErtekelesMondatbankItemModel> MondatbankItemList { get; set; }
|
||||
|
||||
public List<int> NemzetiDokumentumNyelvek { get; set; } = new List<int>();
|
||||
|
||||
public bool IsNyelviesitesActive => NemzetiDokumentumNyelvek.Any();
|
||||
|
||||
public bool IsNemetNemzetiDokumentumNyelvActive => DokumentumNyelvesitesHelper.IsNemzetiDokumentumNyelvActive(NemzetiDokumentumNyelvek, AnyanyelvEnum.nemet);
|
||||
|
||||
public bool IsHorvatNemzetiDokumentumNyelvActive => DokumentumNyelvesitesHelper.IsNemzetiDokumentumNyelvActive(NemzetiDokumentumNyelvek, AnyanyelvEnum.horvat);
|
||||
|
||||
public bool IsRomanNemzetiDokumentumNyelvActive => DokumentumNyelvesitesHelper.IsNemzetiDokumentumNyelvActive(NemzetiDokumentumNyelvek, AnyanyelvEnum.roman);
|
||||
|
||||
public bool IsSzerbNemzetiDokumentumNyelvActive => DokumentumNyelvesitesHelper.IsNemzetiDokumentumNyelvActive(NemzetiDokumentumNyelvek, AnyanyelvEnum.szerb);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class TanuloErtekelesMondatbankGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; }
|
||||
|
||||
[Display(Name = nameof(TanuloErtekelesResource.RovidNev), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public string RovidNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloErtekelesResource.Szoveg), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public string Szoveg { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloErtekelesResource.ErtekelesTipus), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public string TanuloErtekelesTipusId_DNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloErtekelesResource.EvfolyamTipus), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public string EvfolyamTipusId_DNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloErtekelesResource.Tantargy), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public string TantargyNev { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Areas.Adminisztracio.Helpers;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class TanuloErtekelesMondatbankSearchModel
|
||||
{
|
||||
[Display(Name = nameof(TanuloErtekelesResource.ErtekelesTipus), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public List<int> TanuloErtekelesTipusIdList { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloErtekelesResource.EvfolyamTipus), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public List<int> EvfolyamTipusIdList { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloErtekelesResource.Tantargy), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public List<int> TantargyIdList { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloErtekelesResource.RovidNev), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
[MaxLength(3)]
|
||||
public string RovidNevS { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloErtekelesResource.Szoveg), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
[MaxLength(4000)]
|
||||
public string SzovegS { get; set; }
|
||||
|
||||
public List<SelectListItem> TipusList { get; set; }
|
||||
|
||||
public List<SelectListItem> EvfolyamTipusList { get; set; }
|
||||
|
||||
public List<SelectListItem> TantargyList { get; set; }
|
||||
|
||||
public TanuloErtekelesMondatbankSearchModel()
|
||||
{
|
||||
SetSelectListItemLists();
|
||||
}
|
||||
|
||||
protected void SetSelectListItemLists()
|
||||
{
|
||||
var defaultList = new List<SelectListItem>
|
||||
{
|
||||
new SelectListItem
|
||||
{
|
||||
Value = "0",
|
||||
Text = CommonResource.Mind
|
||||
}
|
||||
};
|
||||
TipusList = defaultList.Union(TanuloErtekelesMondatbankWebHelper.GetTipusList()).ToList();
|
||||
EvfolyamTipusList = defaultList.Union(TanuloErtekelesMondatbankWebHelper.GetEvfolyamTipusList()).ToList();
|
||||
TantargyList = defaultList.Union(TanuloErtekelesMondatbankWebHelper.GetTantargyList()).ToList();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,106 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.BusinessLogic.Helpers;
|
||||
using Kreta.Resources;
|
||||
using Microsoft.Ajax.Utilities;
|
||||
using Newtonsoft.Json;
|
||||
using ModelStateDictionary = System.Web.Http.ModelBinding.ModelStateDictionary;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class TanuloErtekelesMondatbankTobbesItemModel : BaseTanuloErtekelesMondatbankItemModel
|
||||
{
|
||||
public override string Szoveg { get; set; }
|
||||
|
||||
public override int? TanuloErtekelesTipusId { get; set; }
|
||||
|
||||
public override int? EvfolyamTipusId { get; set; }
|
||||
|
||||
public override int? TantargyId { get; set; }
|
||||
|
||||
public List<int> SelectedIdList { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloErtekelesResource.RovidNevModositasa), ResourceType = typeof(TanuloErtekelesResource))]
|
||||
public bool RovidNevEnabled { get; set; }
|
||||
|
||||
public string SelectedIdListJson
|
||||
{
|
||||
get => SelectedIdList == null ? string.Empty : JsonConvert.SerializeObject(SelectedIdList);
|
||||
set => SelectedIdList = JsonConvert.DeserializeObject<List<int>>(value);
|
||||
}
|
||||
|
||||
[JsonConstructor]
|
||||
public TanuloErtekelesMondatbankTobbesItemModel(bool mustSetSelectListItemLists = true)
|
||||
: base(mustSetSelectListItemLists)
|
||||
{
|
||||
RovidNevEnabled = false;
|
||||
SelectedIdList = new List<int>();
|
||||
}
|
||||
|
||||
public TanuloErtekelesMondatbankTobbesItemCo ToCo()
|
||||
{
|
||||
var result = new TanuloErtekelesMondatbankTobbesItemCo
|
||||
{
|
||||
SelectedIdList = SelectedIdList,
|
||||
RovidNev = RovidNevEnabled ? string.IsNullOrWhiteSpace(RovidNev) ? "sz" : RovidNev : null,
|
||||
Szoveg = !string.IsNullOrWhiteSpace(Szoveg) ? Szoveg : null,
|
||||
TanuloErtekelesTipusId = TanuloErtekelesTipusId,
|
||||
EvfolyamTipusId = EvfolyamTipusId,
|
||||
TantargyId = TantargyId,
|
||||
TipusId = TanuloErtekelesMondatbankHelper.GetTanuloErtekelesMondatbankTipusIdByTantargyId(TantargyId),
|
||||
SzovegNemet = !string.IsNullOrWhiteSpace(SzovegNemet) ? SzovegNemet : null,
|
||||
SzovegHorvat = !string.IsNullOrWhiteSpace(SzovegHorvat) ? SzovegHorvat : null,
|
||||
SzovegRoman = !string.IsNullOrWhiteSpace(SzovegRoman) ? SzovegRoman : null,
|
||||
SzovegSzerb = !string.IsNullOrWhiteSpace(SzovegSzerb) ? SzovegSzerb : null,
|
||||
};
|
||||
return result;
|
||||
}
|
||||
|
||||
public override ModelStateDictionary Validate()
|
||||
{
|
||||
var modelStateDictionary = new ModelStateDictionary();
|
||||
|
||||
if (TanuloErtekelesTipusId == null
|
||||
&& EvfolyamTipusId == null
|
||||
&& TantargyId == null
|
||||
&& string.IsNullOrWhiteSpace(Szoveg)
|
||||
&& (!RovidNevEnabled || string.IsNullOrWhiteSpace(RovidNev)))
|
||||
{
|
||||
modelStateDictionary.AddModelError(string.Empty, ErrorResource.NincsMegadvaModositandoAdat);
|
||||
}
|
||||
|
||||
if (!RovidNev.IsNullOrWhiteSpace() && RovidNev.Length > 3)
|
||||
{
|
||||
modelStateDictionary.AddModelError(nameof(RovidNev), ErrorResource.ARovidNevNemLehetHosszabbMint3Karakter);
|
||||
}
|
||||
|
||||
if (!Szoveg.IsNullOrWhiteSpace() && Szoveg.Length > Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz)
|
||||
{
|
||||
modelStateDictionary.AddModelError(nameof(Szoveg), string.Format(ErrorResource.ASzovegNemLehetHosszabbMint0Karakter, Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz));
|
||||
}
|
||||
|
||||
if (!SzovegNemet.IsNullOrWhiteSpace() && SzovegNemet.Length > Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz)
|
||||
{
|
||||
modelStateDictionary.AddModelError(nameof(SzovegNemet), string.Format(ErrorResource.ASzovegNemetNemLehetHosszabbMint0Karakter, Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz));
|
||||
}
|
||||
|
||||
if (!SzovegHorvat.IsNullOrWhiteSpace() && SzovegHorvat.Length > Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz)
|
||||
{
|
||||
modelStateDictionary.AddModelError(nameof(SzovegHorvat), string.Format(ErrorResource.ASzovegHorvatNemLehetHosszabbMint0Karakter, Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz));
|
||||
}
|
||||
|
||||
if (!SzovegRoman.IsNullOrWhiteSpace() && SzovegRoman.Length > Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz)
|
||||
{
|
||||
modelStateDictionary.AddModelError(nameof(SzovegRoman), string.Format(ErrorResource.ASzovegRomanNemLehetHosszabbMint0Karakter, Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz));
|
||||
}
|
||||
|
||||
if (!SzovegSzerb.IsNullOrWhiteSpace() && SzovegSzerb.Length > Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz)
|
||||
{
|
||||
modelStateDictionary.AddModelError(nameof(SzovegSzerb), string.Format(ErrorResource.ASzovegSzerbNemLehetHosszabbMint0Karakter, Core.Constants.MinMaxValues.MaxSzovegesErtekelesHossz));
|
||||
}
|
||||
|
||||
return modelStateDictionary;
|
||||
}
|
||||
}
|
||||
}
|
34
KretaWeb/Areas/Adminisztracio/Models/TanuloKIRImportModel.cs
Normal file
34
KretaWeb/Areas/Adminisztracio/Models/TanuloKIRImportModel.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
using Kreta.Web.Models;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class TanuloKIRImportModel : UploadFileModel
|
||||
{
|
||||
[KretaDisplayName(450)] /*Tanév*/
|
||||
//[KretaRequired(StringResourcesId = 3823)]
|
||||
public int? TanevId { get; set; }
|
||||
|
||||
[KretaDisplayName(90)] /*Feladatellátási hely*/
|
||||
//[KretaRequired(StringResourcesId = 1680)]
|
||||
public int? FeladatellatasiHelyId { get; set; }
|
||||
public List<SelectListItem> FeladatellatasiHelyList { get; set; }
|
||||
|
||||
public List<SelectListItem> TanevLista { get; set; }
|
||||
|
||||
public KIRLoginModel KirLoginModel { get; set; }
|
||||
|
||||
public KIRImportModel KIRImportModel { get; set; }
|
||||
|
||||
public bool KIRImportEnabled { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.ImportalasUtanMindenJuttatasAdatUjraszamitasa), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool? IsJuttatasUpdate { get; set; } = false;
|
||||
|
||||
public bool IsSzakkepzoIntezmeny { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class TanulokFeltolteseModel
|
||||
{
|
||||
[KretaDisplayName(450)] /*Tanév*/
|
||||
[KretaRequired(StringResourcesId = 3823)]
|
||||
public int? TanevId { get; set; }
|
||||
|
||||
public List<SelectListItem> TanevList { get; set; }
|
||||
|
||||
public List<string> Errors { get; set; }
|
||||
|
||||
public bool? IsJuttatasUpdate { get; set; }
|
||||
|
||||
public bool IsSzakkepzoIntezmeny { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class TelefonElerhetosegModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
|
||||
public string TextBoxId { get; set; }
|
||||
|
||||
public string ComboBoxId { get; set; }
|
||||
|
||||
public int? Tipus { get; set; }
|
||||
|
||||
public string Telefonszam { get; set; }
|
||||
|
||||
public bool Alapertelmezett { get; set; }
|
||||
|
||||
public ElerhetosegStatusEnum Status { get; set; }
|
||||
|
||||
public bool IsPublic
|
||||
{
|
||||
get
|
||||
{
|
||||
return Tipus == (int)TelefonTipusEnum.PublikusTelefonszam;
|
||||
}
|
||||
}
|
||||
|
||||
public string Label
|
||||
{
|
||||
get
|
||||
{
|
||||
var label = string.Empty;
|
||||
if (Tipus.HasValue)
|
||||
{
|
||||
var tipusString = ((TelefonTipusEnum)Tipus).GetDisplayName(ClaimData.SelectedTanevID.Value);
|
||||
label = $"{tipusString} {CommonResource.Telefonszam.ToLower()}";
|
||||
}
|
||||
return label;
|
||||
}
|
||||
}
|
||||
|
||||
public TelefonElerhetosegCo ConvertToCo()
|
||||
{
|
||||
return new TelefonElerhetosegCo
|
||||
{
|
||||
Id = Id,
|
||||
TextBoxId = TextBoxId,
|
||||
Tipus = Tipus.Value,
|
||||
Telefonszam = Telefonszam,
|
||||
Alapertelmezett = Alapertelmezett,
|
||||
IsPublic = IsPublic,
|
||||
Status = Status
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
71
KretaWeb/Areas/Adminisztracio/Models/TippModel.cs
Normal file
71
KretaWeb/Areas/Adminisztracio/Models/TippModel.cs
Normal file
|
@ -0,0 +1,71 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Adminisztracio.Models
|
||||
{
|
||||
public class TippModel
|
||||
{
|
||||
[Display(Name = nameof(AdminisztracioResource.TippElrejtes), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool TippekElrejtese { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesiteskorErtesites), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool EmailHelyettesites { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.ElozoOraiHianyzokAutoTovabbleptetese), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool HianyzokAutoKitoltes { get; set; }
|
||||
|
||||
[Display(Name = nameof(FogadooraResource.FogadooraEmail), ResourceType = typeof(FogadooraResource))]
|
||||
public bool FogadooraEmail { get; set; }
|
||||
|
||||
[Display(Name = nameof(FogadooraResource.FogadooraEmailUj), ResourceType = typeof(FogadooraResource))]
|
||||
public bool FogadooraEmailUj { get; set; }
|
||||
|
||||
[Display(Name = nameof(FogadooraResource.FogadooraEmailJelentkezes), ResourceType = typeof(FogadooraResource))]
|
||||
public bool FogadooraEmailJelentkezes { get; set; }
|
||||
|
||||
[Display(Name = nameof(FogadooraResource.FogadooraEmailJelentkezesLemondas), ResourceType = typeof(FogadooraResource))]
|
||||
public bool FogadooraEmailJelentkezesLemondas { get; set; }
|
||||
|
||||
[Display(Name = nameof(FogadooraResource.FogadooraEmlekeztetoEmail), ResourceType = typeof(FogadooraResource))]
|
||||
public bool FogadooraEmlekeztetoEmailJelentkezes { get; set; }
|
||||
|
||||
[Display(Name = nameof(FogadooraResource.FogadooraEmailTorles), ResourceType = typeof(FogadooraResource))]
|
||||
public bool FogadooraEmailTorles { get; set; }
|
||||
|
||||
[Display(Name = nameof(FogadooraResource.FogadooraEmail3Nappal), ResourceType = typeof(FogadooraResource))]
|
||||
public bool FogadooraEmail3Nappal { get; set; }
|
||||
|
||||
[Display(Name = nameof(FogadooraResource.FogadooraEmail1Nappal), ResourceType = typeof(FogadooraResource))]
|
||||
public bool FogadooraEmail1Nappal { get; set; }
|
||||
|
||||
[Display(Name = nameof(NemNaplozottTanorakResource.NemNaplozottTanorakEmail), ResourceType = typeof(NemNaplozottTanorakResource))]
|
||||
public bool NemNaplozottTanorakEmail { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.AtlagMegjelenitesTipusaMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.AtlagMegjelenitesTipusa), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int AtlagMegjelenitesTipusa { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.AtlagbaBeleszamitoOsztalyTipusaMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.AtlagbaBeleszamitoOsztalyTipusa), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int AtlagbaBeleszamitoOsztalyTipusa { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.HaladasiNaploFulTipusaMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.HaladasiNaploFulTipusa), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int HaladasiNaploFulTipusa { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.HaladasiNaploNezetTipusaMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.HaladasiNaploNezetTipusa), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int HaladasiNaploNezetTipusa { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.HetirendMegjeleniteseBelepeskorMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(AdminisztracioResource.HetirendMegjeleniteseBelepeskor), ResourceType = typeof(AdminisztracioResource))]
|
||||
public bool HetirendMegjeleniteseBelepeskor { get; set; }
|
||||
|
||||
public List<SelectListItem> AtlagMegjelenitesTipusaList { get; set; }
|
||||
public List<SelectListItem> AtlagbaBeleszamitoOsztalyTipusaList { get; set; }
|
||||
public List<SelectListItem> HaladasiNaploFulTipusaList { get; set; }
|
||||
public List<SelectListItem> HaladasiNaploNezetTipusaList { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue