kreta/KretaWeb/Areas/Nyomtatvanyok/Models/NyomtatvanyBaseModel.cs
2024-03-13 00:33:46 +01:00

243 lines
11 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Foolproof;
using Kreta.BusinessLogic.Helpers;
using Kreta.Enums.ManualEnums;
using Kreta.Resources;
using Kreta.Web.Helpers;
using Kreta.Web.Helpers.Modal;
using Kreta.Web.Models;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Nyomtatvanyok.Models
{
public class NyomtatvanyBaseModel : LayoutModel
{
public NyomtatvanyBaseModel()
{
Items = new List<NyomtatvanyItemModel>();
Buttons = new List<ModalButtonModel>();
LezartNaplok = new List<int>();
KeresztfelevesOsztalyIdList = new List<int>();
Kulcsszodefiniciok = new List<BusinessLogic.Helpers.Nyomtatvanyok.Iktatas.KulcsszoDefinicioModel>();
FoszamDefiniciok = new List<BusinessLogic.Helpers.Nyomtatvanyok.Iktatas.FoszamDefinicioModel>();
var tanevRendjeHelper = new TanevrendHelper(ConnectionTypeExtensions.GetSessionConnectionType());
UtolsoTanitasiNap = tanevRendjeHelper.GetUtolsoTanitasiNapDate();
ElsoTanitasiNap = tanevRendjeHelper.GetElsoTanitasiNapDate();
IsSelectedTanev21_22OrLater = ClaimData.IsSelectedTanev21_22OrLater;
}
public DateTime UtolsoTanitasiNap { get; set; }
public DateTime ElsoTanitasiNap { get; set; }
public bool INegyedevVegeWarning { get; set; }
public bool IIINegyedevVegeWarning { get; set; }
public bool HasSzovegesErtekelesHosszLimit { get; set; }
public int DokumentumId { get; set; }
public string ControllerAction { get; set; }
public List<NyomtatvanyItemModel> Items { get; set; }
public List<ModalButtonModel> Buttons { get; set; }
public List<BusinessLogic.Helpers.Nyomtatvanyok.Iktatas.KulcsszoDefinicioModel> Kulcsszodefiniciok { get; set; }
public List<int> LezartNaplok { get; set; }
public List<int> KeresztfelevesOsztalyIdList { get; set; }
public bool Iktathato { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.iktatas), ResourceType = typeof(NyomtatvanyokResource))]
public bool Iktatas { get; set; }
public bool ElmeletGyakorlat { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.ElmeletGyakorlatKulon), ResourceType = typeof(NyomtatvanyokResource))]
public bool ElmeletGyakorlatKulon { get; set; }
public string NyomtatvanyTipus { get; set; }
public bool EvesOraszam { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.EvesOraszamMegjelenik), ResourceType = typeof(NyomtatvanyokResource))]
public bool EvesOraszamMegjelenjen { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.TantargyakOszlopokban), ResourceType = typeof(NyomtatvanyokResource))]
public bool FuggolegesTantargyak { get; set; }
public bool FuggolegesTantargyakMegjelenjen { get; set; }
public bool IsFejlecMegjelenitesVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.Fejlec), ResourceType = typeof(NyomtatvanyokResource))]
public bool FejlecMegjelenites { get; set; }
public bool IsAdatMegjelenitesVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.Adatok), ResourceType = typeof(NyomtatvanyokResource))]
public bool AdatMegjelenites { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.ErtekelesmodSuly), ResourceType = typeof(NyomtatvanyokResource))]
public bool ErtekelesmodSuly { get; set; }
public bool IsReszletesMulasztasokVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.ReszletesMulasztasok), ResourceType = typeof(NyomtatvanyokResource))]
public bool ReszletesMulasztasok { get; set; }
public bool IsEgyebFoglalkozasokVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.EgyebFoglalkozasok), ResourceType = typeof(NyomtatvanyokResource))]
public bool EgyebFoglalkozasok { get; set; }
public bool IsNaploZarasVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.NaploZaras), ResourceType = typeof(NyomtatvanyokResource))]
public bool NaploZaras { get; set; }
public bool IsNaploZarasDateVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.LezarasDatuma), ResourceType = typeof(NyomtatvanyokResource))]
public DateTime NaploZarasDate { get; set; }
public bool IsKozossegiSzolgalatVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.KozossegiSzolgalat), ResourceType = typeof(NyomtatvanyokResource))]
public bool KozossegiSzolgalat { get; set; }
public bool IsGondviseloVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.GondviseloMegjelenik), ResourceType = typeof(NyomtatvanyokResource))]
public bool GondviseloMegjelenites { get; set; }
public bool IsGyakorlatiOrakVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.GyakorlatiOrakMegjelenik), ResourceType = typeof(NyomtatvanyokResource))]
public bool GyakorlatiOrakMegjelenites { get; set; }
public bool IsElmeletiOrakVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.ElemeletiOrakMegjelenik), ResourceType = typeof(NyomtatvanyokResource))]
public bool ElmeletiOrakMegjelenites { get; set; }
public bool IsAtlagFeltuntetesVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.AtlagFeltuntetMegjelenik), ResourceType = typeof(NyomtatvanyokResource))]
public bool AtlagFeltuntetes { get; set; }
public bool IsTanuloZaradekaiVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.TanuloZaradekai), ResourceType = typeof(NyomtatvanyokResource))]
public bool TanuloZaradekai { get; set; }
public bool IsSNIVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.SNIMegjelenik), ResourceType = typeof(NyomtatvanyokResource))]
public bool SNI { get; set; }
public bool IsBTMVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.BTMMegjelenik), ResourceType = typeof(NyomtatvanyokResource))]
public bool BTM { get; set; }
public bool IsOKJVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.OKJMegjelenik), ResourceType = typeof(NyomtatvanyokResource))]
public bool OKJ { get; set; }
public bool IsTagintezmenyekCimeVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.TaginteymenyCimek), ResourceType = typeof(NyomtatvanyokResource))]
[RequiredIf("IsTagintezmenyCimeKotelezo", true, ErrorMessageResourceName = nameof(ErrorResource.ParameterMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public bool TagintezmenyCime { get; set; }
[RequiredIf("IsTagintezmenyCimeKotelezo", true, ErrorMessageResourceName = nameof(ErrorResource.ParameterMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public string TagintezmenyCimeDropdown { get; set; }
[RequiredIf("IsTagintezmenyCimeKotelezo", true, ErrorMessageResourceName = nameof(ErrorResource.ParameterMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(NyomtatvanyokResource.TagintezmenyCime), ResourceType = typeof(NyomtatvanyokResource))]
public int? TagintezmenyId { get; set; }
public bool IsTagintezmenyCimeKotelezo { get; set; } = false;
public bool isTanitasiHetekSzamaVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.TanitasiHetekSzamaNemVegzos), ResourceType = typeof(NyomtatvanyokResource))]
public int TanitasiHetekSzamaNemVegzos { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.TanitasiHetekSzamaVegzos), ResourceType = typeof(NyomtatvanyokResource))]
public int TanitasiHetekSzamaVegzos { get; set; }
public bool isAltantargyBeszamitasaVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.AltantargyBeszamitasa), ResourceType = typeof(NyomtatvanyokResource))]
public bool AltantargyBeszamitasa { get; set; }
public bool isMulasztasokUjLaponIsVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.MulasztasUjLapon), ResourceType = typeof(NyomtatvanyokResource))]
public bool MulasztasokUjLapon { get; set; }
public bool isFeljegyzesekMegjeleniteseIsVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.FeljegyzesSzerepeltetése), ResourceType = typeof(NyomtatvanyokResource))]
public bool isFeljegyzesekMegjelenitese { get; set; }
public bool isErtesitokFelmentesekMegjeleniteseIsVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.FelmentesekSzerepeltetese), ResourceType = typeof(NyomtatvanyokResource))]
public bool isErtesitokFelmentesekMegjelenitese { get; set; }
public bool isFelmentesekMegjeleniteseIsVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.FelmentesekSzerepeltetese), ResourceType = typeof(NyomtatvanyokResource))]
public bool isFelmentesekMegjelenitese { get; set; }
public bool isLetoltesFeliratIsVisible { get; set; }
public string LetoltesFelirat { get; set; }
public NyomtatvanyEnum LetoltesFeliratPozicio { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.FeljegyzesHaviBontas), ResourceType = typeof(NyomtatvanyokResource))]
public bool FeljegyzesHaviBontas { get; set; }
public bool IsFeljegyzesHaviBontasVisible { get; set; }
public bool AlapszintuNyomtatvanyokKulonDokumentumba { get; set; }
public List<BusinessLogic.Helpers.Nyomtatvanyok.Iktatas.FoszamDefinicioModel> FoszamDefiniciok { get; set; }
public int ColumnNumber { get; set; } = 2;
public string INegyedevVegeWarningText { get { return ErrorResource.INegyedevVegeWarningText; } }
public string IIINegyedevVegeWarningText { get { return ErrorResource.IIINegyedevVegeWarningText; } }
public string SzovegesErtekelesHosszLimitText { get; set; }
public bool IsZaradekKeltVisible { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.ZaradekKeltezesenekMegjelenitese), ResourceType = typeof(NyomtatvanyokResource))]
public bool ZaradekKeltMegjelenites { get; set; }
public bool IsSelectedTanev21_22OrLater { get; set; }
public bool IsBetuMeretFejlecMegjelenitese { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.BetuMeretFejlec), ResourceType = typeof(NyomtatvanyokResource))]
public int BetuMeretFejlec { get; set; } = 9;
public bool IsBetuMeretAdatokMegjelenitese { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.BetuMeretAdatok), ResourceType = typeof(NyomtatvanyokResource))]
public int BetuMeretAdatok { get; set; } = 9;
public bool IsBetuMeretSNIMegjelenitese { get; set; }
[Display(Name = nameof(NyomtatvanyokResource.BetuMeretSNI), ResourceType = typeof(NyomtatvanyokResource))]
public int BetuMeretSNI { get; set; } = 9;
[Display(Name = nameof(NyomtatvanyokResource.MagatartasSzorgalomMegjelenitese), ResourceType = typeof(NyomtatvanyokResource))]
public bool MagatartasSzorgalomMegjelenitese { get; set; } = true;
}
}