init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,25 @@
|
|||
using System.Collections.Generic;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
|
||||
namespace Kreta.Web.Areas.Beiratkozas.Models
|
||||
{
|
||||
public class FeladatellatasiHelyekModel
|
||||
{
|
||||
public List<FeladatellatasiHelyModel> Adatok { get; set; }
|
||||
|
||||
public class FeladatellatasiHelyModel
|
||||
{
|
||||
public int FeladatellatasihelyId { get; set; }
|
||||
|
||||
public string FeladatellatasiHelyNev { get; set; }
|
||||
|
||||
public string FeladatellatasiHelyKod { get; set; }
|
||||
}
|
||||
|
||||
public static FeladatEllatasiHelyCO ConvertModelToCO(FeladatellatasiHelyModel model) => new FeladatEllatasiHelyCO
|
||||
{
|
||||
ID = model.FeladatellatasihelyId,
|
||||
KIRFeladatellatasiHelySorszama = model.FeladatellatasiHelyKod
|
||||
};
|
||||
}
|
||||
}
|
37
KretaWeb/Areas/Beiratkozas/Models/KirLoginModel.cs
Normal file
37
KretaWeb/Areas/Beiratkozas/Models/KirLoginModel.cs
Normal file
|
@ -0,0 +1,37 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Beiratkozas.Models
|
||||
{
|
||||
public class KirLoginModel
|
||||
{
|
||||
public string LoginUrl => ApplicationData.KirLoginUrl;
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.IntezmenyAzonosito), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string OmAzonosito => ClaimData.OrganizationCode;
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.AFelhasznalonevMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(BeiratkozasResource.KirFelhasznaloNev), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string FelhasznaloNev { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.JelszoMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(BeiratkozasResource.KirJelszo), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string Jelszo { get; set; }
|
||||
|
||||
public List<SelectListItem> FeladatellatasiHelyList { get; set; }
|
||||
|
||||
public static KirLoginCo ConvertModelToKirModel(KirLoginModel model)
|
||||
=> new KirLoginCo
|
||||
{
|
||||
LoginUrl = model.LoginUrl,
|
||||
IntezmenyAzonosito = model.OmAzonosito,
|
||||
FelhasznaloNev = model.FelhasznaloNev,
|
||||
Jelszo = model.Jelszo
|
||||
};
|
||||
}
|
||||
}
|
11
KretaWeb/Areas/Beiratkozas/Models/KirSzinkronModel.cs
Normal file
11
KretaWeb/Areas/Beiratkozas/Models/KirSzinkronModel.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Web.Areas.Beiratkozas.Models
|
||||
{
|
||||
public class KirSzinkronModel
|
||||
{
|
||||
public int TelephelyId { get; set; }
|
||||
|
||||
public List<KirSzinkronNebuloModel> Nebulok { get; set; }
|
||||
}
|
||||
}
|
11
KretaWeb/Areas/Beiratkozas/Models/KirSzinkronNebuloModel.cs
Normal file
11
KretaWeb/Areas/Beiratkozas/Models/KirSzinkronNebuloModel.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
namespace Kreta.Web.Areas.Beiratkozas.Models
|
||||
{
|
||||
public class KirSzinkronNebuloModel
|
||||
{
|
||||
public string Id { get; set; }
|
||||
|
||||
public string Nev { get; set; }
|
||||
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
namespace Kreta.Web.Areas.Beiratkozas.Models
|
||||
{
|
||||
public class KozpontiNebuloKretaRequestModel
|
||||
{
|
||||
public int NebuloId { get; set; }
|
||||
|
||||
public int Tipus { get; set; }
|
||||
}
|
||||
}
|
49
KretaWeb/Areas/Beiratkozas/Models/NebuloEUgyModel.cs
Normal file
49
KretaWeb/Areas/Beiratkozas/Models/NebuloEUgyModel.cs
Normal file
|
@ -0,0 +1,49 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Web.Areas.Beiratkozas.Models
|
||||
{
|
||||
public class NebuloEUgyTorlesResponseModel
|
||||
{
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
public DateTime SzuletesiDatum { get; set; }
|
||||
public string MuveletStatusz { get; set; }
|
||||
}
|
||||
|
||||
public class NebuloEUgySaveResponseModel
|
||||
{
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
public DateTime SzuletesiDatum { get; set; }
|
||||
public string MuveletStatusz { get; set; }
|
||||
public List<NebuloEUgyHibaResponseModel> HibaLista { get; set; }
|
||||
}
|
||||
|
||||
public class NebuloEUgyHibaResponseModel
|
||||
{
|
||||
public string KretaIntezmenyAzonosito { get; set; }
|
||||
public string KretaIntezmenyNev { get; set; }
|
||||
public string KretaIntezmenyCim { get; set; }
|
||||
public string KretaIntezmenyOmAzonosito { get; set; }
|
||||
public string Statusz { get; set; }
|
||||
}
|
||||
|
||||
public class TobbesTorlesNEbuloEugyModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
public string Nev { get; set; }
|
||||
}
|
||||
|
||||
public class PreCheckModel
|
||||
{
|
||||
public string Ugyiratszam { get; set; }
|
||||
public string TanuloOktatasiAzonosito { get; set; }
|
||||
}
|
||||
|
||||
public class KerelemStatuszokResponseModel
|
||||
{
|
||||
public string Ugyiratszam { get; set; }
|
||||
public string TanuloOktatasiAzonosito { get; set; }
|
||||
public string Statusz { get; set; }
|
||||
}
|
||||
}
|
63
KretaWeb/Areas/Beiratkozas/Models/NebuloGridModel.cs
Normal file
63
KretaWeb/Areas/Beiratkozas/Models/NebuloGridModel.cs
Normal file
|
@ -0,0 +1,63 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Beiratkozas.Models
|
||||
{
|
||||
public class NebuloGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.Nev), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.Nev), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string NevElotagNelkul { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.AnyjaNeve), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string AnyjaNeve { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.AnyjaNeve), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string AnyjaNeveElotagNelkul { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.SzuletesiHely), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string SzuletesiHely { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.SzuletesiIdo), ResourceType = typeof(BeiratkozasResource))]
|
||||
public DateTime SzuletesiIdo { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.OktatasiAzonosito), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.Tagozat), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string Tagozat_DNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.FelvetelStatusza), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? FelvetelStatusza { get; set; }
|
||||
|
||||
//public string KozpontiFelvetelStatusza { get; set; } = "F";
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.KirSzinkronizacioStatusza), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string KirSzinkronizacioStatusza { get; set; }
|
||||
|
||||
public string KirKontenerAzonosito { get; set; }
|
||||
|
||||
public string KirKontenerUzenet { get; set; }
|
||||
|
||||
public string KirKontenerElkuldesenekDatumaFormatted { get; set; }
|
||||
|
||||
public string KirKontenerElemStatuszId { get; set; }
|
||||
|
||||
public string KirKontenerElemStatuszUzenet { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.EUgyintezesUgyiratszam), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string EUgyUgyiratszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.EUgyStatusz), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string EUgyStatusz { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.EUgyStatuszDatum), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string EUgyStatuszDatum { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Beiratkozas.Models
|
||||
{
|
||||
public class NebuloKirSzinkronGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.OktatasiAzonosito), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.NebuloSzuletesiNeve), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string Nev { get; set; }
|
||||
|
||||
}
|
||||
}
|
19
KretaWeb/Areas/Beiratkozas/Models/NebuloKirSzinkronModel.cs
Normal file
19
KretaWeb/Areas/Beiratkozas/Models/NebuloKirSzinkronModel.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Beiratkozas.Models
|
||||
{
|
||||
public class NebuloKirSzinkronModel
|
||||
{
|
||||
public KirLoginModel KirLoginModel { get; set; }
|
||||
|
||||
public bool KIRImportEnabled { get; set; } = true;
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.KirTelephely), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? TelephelyId { get; set; }
|
||||
|
||||
public List<SelectListItem> TelephelyList { get; set; } = new List<SelectListItem>();
|
||||
}
|
||||
}
|
20
KretaWeb/Areas/Beiratkozas/Models/NebuloLetszamModel.cs
Normal file
20
KretaWeb/Areas/Beiratkozas/Models/NebuloLetszamModel.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Beiratkozas.Models
|
||||
{
|
||||
public class NebuloLetszamModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.FelvetelStatusza), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string Statusz { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.NebuloLetszam), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int Letszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.NebuloSulyletszam), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int SulyozottLetszam { get; set; }
|
||||
}
|
||||
}
|
1084
KretaWeb/Areas/Beiratkozas/Models/NebuloModel.cs
Normal file
1084
KretaWeb/Areas/Beiratkozas/Models/NebuloModel.cs
Normal file
File diff suppressed because it is too large
Load diff
154
KretaWeb/Areas/Beiratkozas/Models/NebuloMultiEditModel.cs
Normal file
154
KretaWeb/Areas/Beiratkozas/Models/NebuloMultiEditModel.cs
Normal file
|
@ -0,0 +1,154 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Beiratkozas.Models
|
||||
{
|
||||
public class NebuloMultiEditModel
|
||||
{
|
||||
public NebuloMultiEditModel(List<int> idList)
|
||||
{
|
||||
IdList = idList;
|
||||
FeladatellatasiHelyList = new List<SelectListItem>();
|
||||
}
|
||||
|
||||
public List<int> IdList { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.Anyanyelv), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? Anyanyelv { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.Allampolgarsag), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? Allampolgarsag { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.Allampolgarsag2), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? Allampolgarsag2 { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.Neme), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? Neme { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.NebulokSzuletesiOrszaga), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? SzuletesiOrszag { get; set; }
|
||||
|
||||
//[Display(Name = nameof(BeiratkozasResource.TorvenyesKepviselojenekRokonsagiFoka), ResourceType = typeof(BeiratkozasResource))]
|
||||
//public int? TKRokonsagiFok { get; set; }
|
||||
|
||||
//[Display(Name = nameof(BeiratkozasResource.OvodaAzonositojaEsNeve), ResourceType = typeof(BeiratkozasResource))]
|
||||
//public string OvodaAzonositojaEsNeve { get; set; }
|
||||
|
||||
//[Display(Name = nameof(BeiratkozasResource.OvodaAzonosito), ResourceType = typeof(BeiratkozasResource))]
|
||||
//[MaxLength(20, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
|
||||
//public string OvodaAzonosito { get; set; }
|
||||
|
||||
//[Display(Name = nameof(BeiratkozasResource.OvodaNeve), ResourceType = typeof(BeiratkozasResource))]
|
||||
//[MaxLength(255, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
|
||||
//public string OvodaNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.FeladatellatasiHely), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? FeladatellatasiHelyId { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.KirSzolgaltatas), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? KirSzolgaltatasTipusId { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.Tagozat), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? Tagozat { get; set; }
|
||||
|
||||
//[Display(Name = nameof(BeiratkozasResource.EletvitelszeruOttLakas), ResourceType = typeof(BeiratkozasResource))]
|
||||
//public int? EletvitelszeruOttLakasKorzetes { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.SzakertoiBizottsag), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? SzakertoiBizottsagKormanyhivatalAltalKijelolttanulo { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.SzuloTestverBeteg), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? SzulojeTestvereTartosanBetegVagyFogyatekkalElo { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.TestverAdottIntezmenyTanuloja), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? TestvereAzIntezmenyTanuloja { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.MunkaltatoiIgazolas), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? SzulojenekMunkahelyeAzIskolaKorzetebenTalalhato { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.AzIskolaALakohelyetol), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? AzIskolaALakohelyetolEgyKilometerenBelulTalalhato { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.IsOsszevontOsztaly), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? IsOsszevontOsztaly { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.EletvitelszeruOttLakas), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? IsKorzetes { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.SajatosNevelesiIgeny), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? SNI { get; set; }
|
||||
|
||||
public double? SNILetszamSuly { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.BeilleszkedesiTanulasiMagatartasiProblemak), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? BTM { get; set; }
|
||||
|
||||
public double? BTMLetszamSuly { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.EtikaVagyHitEsErkolcstan), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? EtikaHitErkolcstan { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.Megjegyzes), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string Megjegyzes { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.Osztalya), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string Osztalya { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.Indoklas), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string Indoklas { get; set; }
|
||||
|
||||
public List<SelectListItem> FeladatellatasiHelyList { get; set; }
|
||||
|
||||
public NebuloMultiEditCo ToCo()
|
||||
{
|
||||
return new NebuloMultiEditCo
|
||||
{
|
||||
IdList = IdList,
|
||||
//TKRokonsagiFok = TKRokonsagiFok,
|
||||
EtikaHitErkolcstan = EtikaHitErkolcstan,
|
||||
FeladatellatasiHelyId = FeladatellatasiHelyId,
|
||||
KirSzolgaltatasTipusId = KirSzolgaltatasTipusId,
|
||||
Tagozat = Tagozat,
|
||||
//EletvitelszeruOttLakasKorzetes = EletvitelszeruOttLakasKorzetes,
|
||||
Neme = Neme,
|
||||
Megjegyzes = Megjegyzes,
|
||||
SzuletesiOrszag = SzuletesiOrszag,
|
||||
Allampolgarsag = Allampolgarsag,
|
||||
Allampolgarsag2 = Allampolgarsag2,
|
||||
Anyanyelv = Anyanyelv,
|
||||
AzIskolaALakohelyetolEgyKilometerenBelulTalalhato = AzIskolaALakohelyetolEgyKilometerenBelulTalalhato,
|
||||
IsOsszevontOsztaly = IsOsszevontOsztaly,
|
||||
IsKorzetes = IsKorzetes,
|
||||
//OvodaAzonosito = OvodaAzonosito,
|
||||
//OvodaNev = OvodaNev,
|
||||
SzakertoiBizottsagKormanyhivatalAltalKijelolttanulo = SzakertoiBizottsagKormanyhivatalAltalKijelolttanulo,
|
||||
SzulojeTestvereTartosanBetegVagyFogyatekkalElo = SzulojeTestvereTartosanBetegVagyFogyatekkalElo,
|
||||
SzulojenekMunkahelyeAzIskolaKorzetebenTalalhato = SzulojenekMunkahelyeAzIskolaKorzetebenTalalhato,
|
||||
SNI = SNI,
|
||||
SNILetszamSuly = SNILetszamSuly,
|
||||
BTM = BTM,
|
||||
BTMLetszamSuly = BTMLetszamSuly,
|
||||
TestvereAzIntezmenyTanuloja = TestvereAzIntezmenyTanuloja,
|
||||
Osztalya = Osztalya,
|
||||
Indoklas = Indoklas,
|
||||
EugyStatusz = (int)EugyStatuszEnum.NemSzinkronizalt,
|
||||
EugyStatuszDatum = DateTime.Now
|
||||
};
|
||||
}
|
||||
|
||||
public System.Web.Http.ModelBinding.ModelStateDictionary Validate()
|
||||
{
|
||||
var modelStateDictionary = new System.Web.Http.ModelBinding.ModelStateDictionary();
|
||||
if ((Allampolgarsag != null || Allampolgarsag2 != null) && Allampolgarsag == Allampolgarsag2)
|
||||
{
|
||||
modelStateDictionary.AddModelError("MegegyezoAllapolgarsag", ErrorResource.MegegyezoAllapolgarsag);
|
||||
}
|
||||
return modelStateDictionary;
|
||||
}
|
||||
}
|
||||
}
|
14
KretaWeb/Areas/Beiratkozas/Models/NebuloNemFelvettModel.cs
Normal file
14
KretaWeb/Areas/Beiratkozas/Models/NebuloNemFelvettModel.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Beiratkozas.Models
|
||||
{
|
||||
public class NebuloNemFelvettModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.Indoklas), ResourceType = typeof(BeiratkozasResource))]
|
||||
[Required(ErrorMessageResourceName = nameof(BeiratkozasResource.DontesIndoklasaKotelezo), ErrorMessageResourceType = typeof(BeiratkozasResource))]
|
||||
public string Indoklas { get; set; }
|
||||
}
|
||||
}
|
123
KretaWeb/Areas/Beiratkozas/Models/NebuloSearchModel.cs
Normal file
123
KretaWeb/Areas/Beiratkozas/Models/NebuloSearchModel.cs
Normal file
|
@ -0,0 +1,123 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Models;
|
||||
|
||||
namespace Kreta.Web.Areas.Beiratkozas.Models
|
||||
{
|
||||
public class NebuloSearchModel : UploadFileModel
|
||||
{
|
||||
public NebuloSearchModel()
|
||||
{
|
||||
CheckBoxValueList = new List<SelectListItem>
|
||||
{
|
||||
new SelectListItem {Text = CommonResource.Igen, Value = "1"},
|
||||
new SelectListItem {Text = CommonResource.Nem, Value = "0"}
|
||||
};
|
||||
}
|
||||
|
||||
/*Létszám adatok*/
|
||||
[Display(Name = nameof(BeiratkozasResource.EOLNemOsszevontOsztaly), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? EOLNemOsszevontOsztaly { get; set; }
|
||||
[Display(Name = nameof(BeiratkozasResource.EOsszLNemOsszevontOsztaly), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? EOsszLNemOsszevontOsztaly { get; set; }
|
||||
[Display(Name = nameof(BeiratkozasResource.EOLOsszevontOsztaly), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? EOLOsszevontOsztaly { get; set; }
|
||||
[Display(Name = nameof(BeiratkozasResource.EOsszLOsszevontOsztaly), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? EOsszLOsszevontOsztaly { get; set; }
|
||||
/*Létszám adatok*/
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.NebuloNeve), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string NebuloNeveSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.OktatasiAzonosito), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string OktatasiAzonositoSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.AnyjaNeve), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string AnyjaNeveSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.SzuletesiHely), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string SzuletesiHelySearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.SzuletesiIdo), ResourceType = typeof(BeiratkozasResource))]
|
||||
public DateTime? TolSearch { get; set; }
|
||||
|
||||
public DateTime? IgSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.FelvetelStatusza), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? FelvetelStatuszaSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.FeladatellatasiHely), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? FeladatellatasiHelyIdSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.KirSzolgaltatas), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? KirSzolgaltatas { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.EtikaVagyHitEsErkolcstan), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? EtikaHitErkolcstanSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.OvodaAzonositojaVagyNeve), ResourceType = typeof(BeiratkozasResource))]
|
||||
public string OvodaAzonositojaVagyNeveSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.EletvitelszeruOttLakas), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? EletvitelszeruOttLakasSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.SzakertoiBizottsag), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? SzakertoiBizottsagSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.SzuloTestverBeteg), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? SzuloTestverBetegSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.TestverAdottIntezmenyTanuloja), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? TestverAdottIntezmenyTanulojaSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.AzIskolaALakohelyetol), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? AzIskolaALakohelyetolSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.MunkaltatoiIgazolas), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? MunkaltatoiIgazolasSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.SajatosNevelesiIgeny), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? SNISearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(BeiratkozasResource.BeilleszkedesiTanulasiMagatartasiProblemak), ResourceType = typeof(BeiratkozasResource))]
|
||||
public int? BTMSearch { get; set; }
|
||||
|
||||
public bool EnableKirSzinkron { get; set; }
|
||||
|
||||
public bool EnableEugyHatarozat { get; set; }
|
||||
|
||||
public bool EnableStatuszVeglegesites { get; set; }
|
||||
|
||||
public List<SelectListItem> CheckBoxValueList { get; set; }
|
||||
|
||||
public NebuloSearchCo ToCo()
|
||||
{
|
||||
return new NebuloSearchCo
|
||||
{
|
||||
NebuloNeveSearch = NebuloNeveSearch,
|
||||
OktatasiAzonositoSearch = OktatasiAzonositoSearch,
|
||||
AnyjaNeveSearch = AnyjaNeveSearch,
|
||||
SzuletesiHelySearch = SzuletesiHelySearch,
|
||||
TolSearch = TolSearch,
|
||||
IgSearch = IgSearch,
|
||||
FelvetelStatuszaSearch = FelvetelStatuszaSearch,
|
||||
FeladatellatasiHelyIdSearch = FeladatellatasiHelyIdSearch,
|
||||
KirSzolgaltatasSearch = KirSzolgaltatas,
|
||||
EtikaHitErkolcstanSearch = EtikaHitErkolcstanSearch,
|
||||
OvodaAzonositojaVagyNeveSearch = OvodaAzonositojaVagyNeveSearch,
|
||||
EletvitelszeruOttLakasSearch = EletvitelszeruOttLakasSearch,
|
||||
SzakertoiBizottsagSearch = SzakertoiBizottsagSearch,
|
||||
SzuloTestverBetegSearch = SzuloTestverBetegSearch,
|
||||
TestverAdottIntezmenyTanulojaSearch = TestverAdottIntezmenyTanulojaSearch,
|
||||
AzIskolaALakohelyetolSearch = AzIskolaALakohelyetolSearch,
|
||||
MunkaltatoiIgazolasSearch = MunkaltatoiIgazolasSearch,
|
||||
SNISearch = SNISearch,
|
||||
BTMSearch = BTMSearch
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue