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

View File

@@ -0,0 +1,11 @@
using System.ComponentModel.DataAnnotations;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class ElutasitasModel
{
[Display(Name = nameof(TantargyResource.ElutasitasIndoklasa), ResourceType = typeof(TantargyResource))]
public string ElutasitasSzoveg { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Classes;
using Kreta.Resources;
using Kreta.Web.Attributes;
using Kreta.Web.Models;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class NewTanmenetModel : UploadFileModel
{
[Display(Name = nameof(TanmenetResource.Foglalkozas), ResourceType = typeof(TanmenetResource))]
[Required(ErrorMessageResourceName = nameof(TanmenetResource.FoglalkozasKotelezo), ErrorMessageResourceType = typeof(TanmenetResource))]
public int? FoglalkozasId { get; set; }
public string ApiControllerName { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using Kreta.BusinessLogic.Interfaces;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class OraTervDetailGridModel : IKretaIdentity
{
public string ID { get; set; }
public int? OraTervTantargyId { get; set; }
[KretaDisplayName(3380)] /*Tárgy neve*/
public string Tantargy { get; set; }
[KretaDisplayName(3381)] /*Éves óraszám*/
public int EvesSorszam { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using Kreta.BusinessLogic.Interfaces;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class OraTervGridModel : IKretaIdentity
{
public string ID { get; set; }
public int? OraTervId { get; set; }
[KretaDisplayName(108)] /*Név*/
public string Nev { get; set; }
[KretaDisplayName(442)] /*Évfolyam*/
public string EvFolyam_DNAME { get; set; }
}
}

View File

@@ -0,0 +1,33 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kreta.BusinessLogic.Classes;
using Kreta.Resources;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class OraTervModel
{
public OraTervModel()
{
EvfolyamList = new List<SelectListItem>();
}
public int? OratervId { get; set; }
public List<SelectListItem> EvfolyamList { get; set; }
[KretaDisplayName(3390)] /*Tanterv*/
public int? TantervId { get; set; }
[KretaDisplayName(3397)] /*Óraterv neve*/
[KretaRequired(StringResourcesId = 3400)] /*Név megadása kötelező!*/
[StringLength(maximumLength: 255, ErrorMessageResourceName = nameof(ErrorResource.Max255Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
public string Nev { get; set; }
[KretaDisplayName(442)] /*Évfolyam*/
[KretaRequired(StringResourcesId = 3401)] /*Évfolyam megadása kötelező!*/
public int? EvfolyamId { get; set; }
}
}

View File

@@ -0,0 +1,26 @@
using System.Collections.Generic;
using System.Web.Mvc;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class OraTervSearchModel
{
public OraTervSearchModel()
{
EvfolyamList = new List<SelectListItem>();
}
public List<SelectListItem> EvfolyamList { get; set; }
[KretaDisplayName(3390)] /*Tanterv*/
public int? TantervIdSearch { get; set; }
[KretaDisplayName(3397)] /*Óraterv neve*/
public string NevSearch { get; set; }
[KretaDisplayName(442)] /*Évfolyam*/
public int? EvfolyamIdSearch { get; set; }
public bool IsKovetkezoTanev { get; set; }
}
}

View File

@@ -0,0 +1,29 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class OraTervTargyModel
{
public OraTervTargyModel()
{
TantargyList = new List<SelectListItem>();
}
public int OratervId { get; set; }
public int? OratervTantargyId { get; set; }
public List<SelectListItem> TantargyList { get; set; }
[Required(ErrorMessageResourceName = nameof(ErrorResource.Required), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(TanuloErtekelesResource.TantargyNeve), ResourceType = typeof(TanuloErtekelesResource))]
public int? TantargyId { get; set; }
[Required(ErrorMessageResourceName = nameof(ErrorResource.Required), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(ImportExportOratervResource.ImportHeaderNameEvesOraszam), ResourceType = typeof(ImportExportOratervResource))]
[DisplayFormat(DataFormatString = Core.Constants.DataFormats.EvesOraszam)]
[RegularExpression(Core.Constants.RegularExpressions.EvesOraszam, ErrorMessageResourceName = nameof(ImportExportOratervResource.HibaAzEvesOraszamFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(ImportExportOratervResource))]
public double? EvesOraszam { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
using System.Collections.Generic;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class SaveFelosztasModel
{
public int tanarID { set; get; }
public bool IsFromSzervezet { get; set; }
public List<TantargyfelosztasMentesModel> felosztasok { set; get; }
}
}

View File

@@ -0,0 +1,21 @@
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Resources;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TanmenetGridModel : IKretaIdentity
{
public string ID { get; set; }
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
public string TantargyNev { get; set; }
[Display(Name = nameof(OsztalyCsoportResource.Osztaly), ResourceType = typeof(OsztalyCsoportResource))]
public string OsztalyCsoportNev { get; set; }
[Display(Name = nameof(TanmenetResource.Oraszam), ResourceType = typeof(TanmenetResource))]
public int OraszamCount { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
using System.Collections.Generic;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TanmenetModel
{
public int FoglalkozasId { get; set; }
public int AlkalmazottId { get; set; }
public List<TanmenetOrakGridModel> TanmenetBejegyzesek { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
using Kreta.BusinessLogic.Interfaces;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TanmenetOrakGridModel : IKretaIdentity
{
public string ID { get; set; }
[KretaDisplayName(274)]/*Óraszám*/
public int Oraszam { get; set; }
[KretaDisplayName(271)]/*Téma*/
public string Nev { get; set; }
[KretaDisplayName(271)]/*Téma*/
public string Tema { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TanmenetOrakModel
{
public int TantargyId { get; set; }
public int OsztalyId { get; set; }
public int FoglalkozasId { get; set; }
public string TanmenetModalHeader { get; set; }
public string FoglalkozasId_input { get; set; }
public string ApiControllerName { get; set; }
}
}

View File

@@ -0,0 +1,26 @@
using System.ComponentModel.DataAnnotations;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TanmenetSearchModel
{
public string NevSearch { get; set; }
public string RovidNevSearch { get; set; }
public string TemaSearch { get; set; }
public int? OraszamSearch { get; set; }
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
public int? OsztalyCsoportIdSearch { get; set; }
public int FeltoltoIdSearch { get; set; }
public string MegjegyzesSearch { get; set; }
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
public int? TantargyIdSearch { get; set; }
public string ControllerName { get; set; }
public string ApiControllerName { get; set; }
public string ImportControllerName { get; set; }
public bool IsFromSzervezet { get; set; }
}
}

View File

@@ -0,0 +1,69 @@
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Classes;
using Kreta.Resources;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TanoraAdatokModel
{
public int? Id { get; set; }
[KretaDisplayName(273)] /*Dátum*/
public string Datum { get; set; }
[KretaDisplayName(270)] /*Óra sorszáma*/
public string OraSorszama { get; set; }
[KretaDisplayName(266)] /*Hét napja*/
public string HetNapja { get; set; }
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
public string TargyNev { get; set; }
[KretaDisplayName(2892)] /*Tanár*/
public string TanarNev { get; set; }
[KretaDisplayName(1497)] /*Tanítási óra témája*/
public string Tema { get; set; }
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
public string OsztCsopNev { get; set; }
[KretaDisplayName(267)] /*Helyiség*/
public string HelyNev { get; set; }
[KretaDisplayName(1924)] /*Óraszám/időpont*/
public string Oraszam { get; set; }
[Display(Name = nameof(TanmenetResource.Foglalkozas), ResourceType = typeof(TanmenetResource))]
public string FoglalkozasNev { get; set; }
[KretaDisplayName(1927)] /*Tanítási óra kezdete*/
public string OraKezdete { get; set; }
[KretaDisplayName(1928)] /*Tanítási óra vége*/
public string OraVege { get; set; }
public bool? Megtartott { get; set; }
[Display(Name = nameof(OrarendResource.MegtartottOra), ResourceType = typeof(OrarendResource))]
public string MegtartottString
{
get
{
if (Megtartott.HasValue)
{
return this.Megtartott.Value.GetDisplayName();
}
return OrarendResource.NemNaplozott;
}
}
public TanoraAdatokModel()
{
}
}
}

View File

@@ -0,0 +1,72 @@
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.Tantargy.Models
{
public class TanorakGridModel : IKretaIdentity
{
public const string TanorakExportAttributeId = nameof(TanorakExportAttributeId);
public string ID { get; set; }
[Display(Name = nameof(TantargyResource.Datum), ResourceType = typeof(TantargyResource))]
public DateTime? Datum { get; set; }
[SimpleExportColumn(TanorakExportAttributeId, 00, nameof(OrarendResource.OraKezdete), typeof(OrarendResource), DateTimeToStringPattern = Core.Constants.ToStringPattern.HungarianDateTimeWithoutSeconds)]
[Display(Name = nameof(OrarendResource.OraKezdete), ResourceType = typeof(OrarendResource))]
public DateTime? OraKezdete { get; set; }
[SimpleExportColumn(TanorakExportAttributeId, 01, nameof(TantargyResource.OraSorsz), typeof(TantargyResource))]
[Display(Name = nameof(TantargyResource.OraSorsz), ResourceType = typeof(TantargyResource))]
public string OraSorsz { get; set; }
[SimpleExportColumn(TanorakExportAttributeId, 02, nameof(TantargyResource.OraSorszama), typeof(TantargyResource))]
[Display(Name = nameof(TantargyResource.OraSorszama), ResourceType = typeof(TantargyResource))]
public string EvesSorsz { get; set; }
[Display(Name = nameof(TantargyResource.Nap), ResourceType = typeof(TantargyResource))]
public string HetNapja_DNAME { get; set; }
[Display(Name = nameof(TantargyResource.Tantargy), ResourceType = typeof(TantargyResource))]
public string TargyNev { get; set; }
[SimpleExportColumn(TanorakExportAttributeId, 03, nameof(TantargyResource.Tanar), typeof(TantargyResource))]
[Display(Name = nameof(TantargyResource.Tanar), ResourceType = typeof(TantargyResource))]
public string TanarNev { get; set; }
[SimpleExportColumn(TanorakExportAttributeId, 04, nameof(TantargyResource.TanoraTemaja), typeof(TantargyResource))]
[Display(Name = nameof(TantargyResource.TanoraTemaja), ResourceType = typeof(TantargyResource))]
public string Tema { get; set; }
[Display(Name = nameof(TantargyResource.OsztalyCsoport), ResourceType = typeof(TantargyResource))]
public string OsztCsopNev { get; set; }
[Display(Name = nameof(TantargyResource.Helyettesitett), ResourceType = typeof(TantargyResource))]
public string IsHelyetesitett_BNAME { get; set; }
[Display(Name = nameof(AdminisztracioResource.EgyediNap), ResourceType = typeof(AdminisztracioResource))]
public string IsEgyediNap_BNAME { get; set; }
[SimpleExportColumn(TanorakExportAttributeId, 05, nameof(OrarendResource.NaplozasDatuma), typeof(OrarendResource), DateTimeToStringPattern = Core.Constants.ToStringPattern.HungarianDateTimeWithoutSeconds)]
[Display(Name = nameof(OrarendResource.NaplozasDatuma), ResourceType = typeof(OrarendResource))]
public DateTime? NaplozasDatuma { get; set; }
public TanorakGridModel() { }
public TanorakGridModel(TanorakItemCo itemCo)
{
ID = itemCo.Id.ToString();
OraKezdete = itemCo.OraKezdete;
OraSorsz = itemCo.OraSorsz;
EvesSorsz = itemCo.EvesSorsz;
TanarNev = itemCo.TanarNev;
Tema = itemCo.Tema;
NaplozasDatuma = itemCo.NaplozasDatuma;
}
}
}

View File

@@ -0,0 +1,44 @@
using System;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Logic.Naplozas.Elokeszites;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TanorakSearchModel
{
[Display(Name = nameof(TantargyResource.IdoszakKezdete), ResourceType = typeof(TantargyResource))]
public DateTime? IdoszakKezdete { get; set; }
[Display(Name = nameof(TantargyResource.IdoszakVege), ResourceType = typeof(TantargyResource))]
public DateTime? IdoszakVege { get; set; }
[Display(Name = nameof(TantargyResource.OsztalyCsoport), ResourceType = typeof(TantargyResource))]
public int? OsztalyCsoportId { get; set; }
[Display(Name = nameof(TantargyResource.Helyettesitett), ResourceType = typeof(TantargyResource))]
public int? Helyetesitett { get; set; }
[Display(Name = nameof(TantargyResource.Tanar), ResourceType = typeof(TantargyResource))]
public int? TanarId { get; set; }
[Display(Name = nameof(TantargyResource.Tantargy), ResourceType = typeof(TantargyResource))]
public int? TantargyId { get; set; }
public DateTime? OraKezdete { get; set; }
public int? SzervezetTipusId_TanorakSearch { get; set; }
public TanorakSearchModel(int? szervezetTipusId = null)
{
SzervezetTipusId_TanorakSearch = szervezetTipusId;
}
public void Fill(NaplozasElokeszitesModel model)
{
OsztalyCsoportId = model.OraAdat.OsztalyCsoportId;
TantargyId = model.OraAdat.TantargyId;
OraKezdete = model.OraAdat.OraKezdete;
}
}
}

View File

@@ -0,0 +1,66 @@
using System;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Classes;
using Kreta.Enums;
using Kreta.Resources;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantargyFelosztasAdatokModel
{
public string MunkakorTipus { get; set; }
public string FoglalkozasTipus { get; set; }
public string FoglalkozasKategoria { get; set; }
[Display(Name = nameof(TantargyResource.AlkalmazottNev), ResourceType = typeof(TantargyResource))]
public string MunkavallaloNev { get; set; }
[Display(Name = nameof(TantargyResource.MunkakorTipus), ResourceType = typeof(TantargyResource))]
public string MunkakorTipusNev
{
get
{
return string.IsNullOrWhiteSpace(MunkakorTipus) ? string.Empty : Convert.ToInt32(MunkakorTipus).GetDisplayName<MunkakorTipusEnum>(ClaimData.SelectedTanevID.Value);
}
}
[Display(Name = nameof(TantargyResource.OsztalyCsoport), ResourceType = typeof(TantargyResource))]
public string Csoport { get; set; }
[Display(Name = nameof(TantargyResource.Tantargy), ResourceType = typeof(TantargyResource))]
public string Tantargynev { get; set; }
[Display(Name = nameof(TantargyResource.FoglalkozasTipus), ResourceType = typeof(TantargyResource))]
public string FoglalkozasTipusNev
{
get
{
return string.IsNullOrWhiteSpace(FoglalkozasTipus) ? string.Empty : Convert.ToInt32(FoglalkozasTipus).GetDisplayName<FoglalkozasTipusEnum>(ClaimData.SelectedTanevID.Value);
}
}
[Display(Name = nameof(TantargyResource.HetiOraszam), ResourceType = typeof(TantargyResource))]
public string HetiOraszam { get; set; }
[Display(Name = nameof(TantargyResource.FoglakozasHelye), ResourceType = typeof(TantargyResource))]
public string FoglalkozasHelye { get; set; }
[Display(Name = nameof(TantargyResource.Tanev), ResourceType = typeof(TantargyResource))]
public string Tanev { get; set; }
[Display(Name = nameof(TantargyResource.Oraszamkorrekcio), ResourceType = typeof(TantargyResource))]
public string OsszevontOra { get; set; }
[Display(Name = nameof(TantargyResource.NemzetisegiOra), ResourceType = typeof(TantargyResource))]
public string NemzetisegiOra { get; set; }
[Display(Name = nameof(TantargyfelosztasResource.MegbizasiOraszam), ResourceType = typeof(TantargyfelosztasResource))]
public string MegbizasiOraszam { get; set; }
[Display(Name = nameof(OrarendResource.Tulora), ResourceType = typeof(OrarendResource))]
public string TuloraSzam { get; set; }
public bool IsFromSzervezet { get; set; }
}
}

View File

@@ -0,0 +1,29 @@
using Kreta.BusinessLogic.Interfaces;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantargyFelosztasFelvetelGridModel : IKretaIdentity
{
public string ID { get; set; }
public string OsztalyCsoport { get; set; }
public string Tantargy { get; set; }
public string Oraszam { get; set; }
public string Tuloraszam { get; set; }
public bool OsszevontOra { get; set; }
public string OsszevontOra_BNAME { get; set; }
public bool NemzetisegiOra { get; set; }
public string NemzetisegiOra_BNAME { get; set; }
public string MegbizasiOraszam { get; set; }
public bool Valid { get; set; }
}
}

View File

@@ -0,0 +1,26 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantargyFelosztasFelveteleModel
{
public TantargyFelosztasFelveteleModel()
{
TanarList = new List<SelectListItem>();
}
public List<SelectListItem> TanarList { get; set; }
[Display(Name = nameof(TantargyResource.Tanar), ResourceType = typeof(TantargyResource))]
public int? TanarId { get; set; }
public bool IsFromSzervezet { get; set; }
public int? DualisKepzesTantargyId { get; set; }
public string ApiControllerName { get; set; }
}
}

View File

@@ -0,0 +1,101 @@
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Classes;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Core.CustomAttributes;
using Kreta.Enums.ManualEnums;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantargyFelosztasGridModel : IKretaIdentity
{
#region Fields
public const string TantargyFelosztasExportAttributeId = nameof(TantargyFelosztasExportAttributeId);
public const string DualisTantargyFelosztasExportAttributeId = nameof(DualisTantargyFelosztasExportAttributeId);
#endregion
public TantargyFelosztasGridModel() { }
public TantargyFelosztasGridModel(TantargyfelosztasItemCo itemCo)
{
ID = itemCo.Id.ToString();
Tanar = itemCo.TanarNev;
TanarElotagNelkul = itemCo.TanarNevElotagNelkul;
Tanev = itemCo.TanevNev;
OsztalyCsoport = itemCo.OsztalyCsoportNev;
Tantargy = itemCo.TantargyNev;
Oraszam = itemCo.Oraszam;
OsszevontOra_BNAME = itemCo.IsOsszevontOra.GetDisplayName();
TtfKorrekcioOraszam = itemCo.TtfKorrekcioOraszam;
NemzetisegiOra_BNAME = itemCo.IsNemzetisegiOra.GetDisplayName();
MegbizasiOraszam = itemCo.MegbizasiOraszam;
TuloraSzam = itemCo.Tuloraszam;
DualisKepzohelyNeve = itemCo.DualisKepzohelyNeve;
DualisKepzohelyAdoszama = itemCo.DualisKepzohelyAdoszama;
RogzitoId = itemCo.RogzitoId;
IsSzerkesztheto = itemCo.IsSzerkesztheto;
}
public string ID { get; set; }
[Display(Name = nameof(TantargyfelosztasResource.AlkalmazottNeve), ResourceType = typeof(TantargyfelosztasResource))]
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 00, nameof(TantargyfelosztasResource.AlkalmazottNeve), typeof(TantargyfelosztasResource))]
[SimpleExportColumn(DualisTantargyFelosztasExportAttributeId, 00, nameof(TantargyfelosztasResource.AlkalmazottNeve), typeof(TantargyfelosztasResource))]
public string Tanar { get; set; }
[Display(Name = nameof(TantargyfelosztasResource.AlkalmazottNeve), ResourceType = typeof(TantargyfelosztasResource))]
public string TanarElotagNelkul { get; set; }
[Display(Name = nameof(TantargyfelosztasResource.Tanev), ResourceType = typeof(TantargyfelosztasResource))]
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 01, nameof(TantargyfelosztasResource.Tanev), typeof(TantargyfelosztasResource))]
[SimpleExportColumn(DualisTantargyFelosztasExportAttributeId, 01, nameof(TantargyfelosztasResource.Tanev), typeof(TantargyfelosztasResource))]
public string Tanev { get; set; }
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 02, nameof(OsztalyCsoportResource.OsztalyCsoport), typeof(OsztalyCsoportResource))]
[SimpleExportColumn(DualisTantargyFelosztasExportAttributeId, 02, nameof(OsztalyCsoportResource.OsztalyCsoport), typeof(OsztalyCsoportResource))]
public string OsztalyCsoport { get; set; }
[Display(Name = nameof(TantargyfelosztasResource.Tantargy), ResourceType = typeof(TantargyfelosztasResource))]
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 03, nameof(TantargyfelosztasResource.Tantargy), typeof(TantargyfelosztasResource))]
[SimpleExportColumn(DualisTantargyFelosztasExportAttributeId, 03, nameof(TantargyfelosztasResource.Tantargy), typeof(TantargyfelosztasResource))]
public string Tantargy { get; set; }
[Display(Name = nameof(TantargyfelosztasResource.HetiOraszam), ResourceType = typeof(TantargyfelosztasResource))]
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 08, nameof(TantargyfelosztasResource.HetiOraszam), typeof(TantargyfelosztasResource), AggregateFunction = ExcelAggregateFunctionEnum.SUM)]
public double Oraszam { get; set; }
[Display(Name = nameof(TantargyResource.Oraszamkorrekcio), ResourceType = typeof(TantargyResource))]
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 04, nameof(TantargyResource.Oraszamkorrekcio), typeof(TantargyResource))]
public string OsszevontOra_BNAME { get; set; }
[Display(Name = nameof(TantargyResource.NemzetisegiOra), ResourceType = typeof(TantargyResource))]
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 05, nameof(TantargyResource.NemzetisegiOra), typeof(TantargyResource))]
public string NemzetisegiOra_BNAME { get; set; }
[Display(Name = nameof(TantargyfelosztasResource.MegbizasiOraszam), ResourceType = typeof(TantargyfelosztasResource))]
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 06, nameof(TantargyfelosztasResource.MegbizasiOraszam), typeof(TantargyfelosztasResource))]
public double MegbizasiOraszam { get; set; }
[Display(Name = nameof(OrarendResource.Tulora), ResourceType = typeof(OrarendResource))]
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 07, nameof(OrarendResource.Tulora), typeof(OrarendResource))]
public double TuloraSzam { get; set; }
public double TtfKorrekcioOraszam { get; set; }
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyNeve), ResourceType = typeof(AlkalmazottResource))]
[SimpleExportColumn(DualisTantargyFelosztasExportAttributeId, 04, nameof(AlkalmazottResource.DualisKepzohelyNeve), typeof(AlkalmazottResource))]
public string DualisKepzohelyNeve { get; set; }
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyAdoszama), ResourceType = typeof(AlkalmazottResource))]
[SimpleExportColumn(DualisTantargyFelosztasExportAttributeId, 05, nameof(AlkalmazottResource.DualisKepzohelyAdoszama), typeof(AlkalmazottResource))]
public string DualisKepzohelyAdoszama { get; set; }
public int RogzitoId { get; set; }
public bool IsSzerkesztheto { get; set; }
}
}

View File

@@ -0,0 +1,94 @@
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Classes;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.BusinessLogic.Helpers.SystemSettings;
using Kreta.Enums;
using Kreta.Resources;
using Kreta.Web.Attributes;
using Kreta.Web.Helpers;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantargyFelosztasModel
{
public TantargyFelosztasModel()
{
if (ClaimData.IsVegyes)
{
SearchFeladatKategoriaId = new SystemSettingsHelper(ConnectionTypeExtensions.GetSessionConnectionType()).GetSystemSettingValue<int>(RendszerBeallitasTipusEnum.Default_Feladat_Kategoria);
}
}
[Display(Name = nameof(OsztalyCsoportResource.EllatottKoznevelesiFeladatTipus), ResourceType = typeof(OsztalyCsoportResource))]
public int? SearchFeladatKategoriaId { get; set; }
public int IntezmenyId { get; set; }
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
public int? SearchOsztalCsoport { get; set; } /// TODO (Dev.Kornél): Typo
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
public int? SearchTantargy { get; set; }
[Display(Name = nameof(TantargyfelosztasResource.TanarPedagogusValasztasa), ResourceType = typeof(TantargyfelosztasResource))]
public int? SearchTanar { get; set; }
[KretaDisplayName(442)]
public int? SearchEvfolyam { get; set; }
[KretaDisplayName(254)/*Heti óraszám*/]
[KretaRange(0, Kreta.Core.Constants.General.TantargyfelosztasImportMaxOraszam)]
public double? SearchOraszam { get; set; }
[KretaDisplayName(90)/*Feladatellátási hely*/]
public int? SearchFeladatellatasihely { get; set; }
[KretaDisplayName(255)/*Foglalkozas Typusa*/]
public int? SearchFoglalkozasTipusa { get; set; }
public bool ElfogadottTTF { get; set; }
public bool ElfogadottESL { get; set; }
public bool VeglegesTTF { get; set; }
public bool VeglegesESL { get; set; }
[Display(Name = nameof(TantargyfelosztasResource.Osztalybontasokkal), ResourceType = typeof(TantargyfelosztasResource))]
public bool Osztalybontasokkal { get; set; }
[Display(Name = nameof(TantargyfelosztasResource.KapcsolodoCsoportokkal), ResourceType = typeof(TantargyfelosztasResource))]
public bool KapcsolodoCsoportokkal { get; set; }
public bool IsFromSzervezet { get; set; }
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyNeve), ResourceType = typeof(AlkalmazottResource))]
public string DualisKepzohelyNeve { get; set; }
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyAdoszama), ResourceType = typeof(AlkalmazottResource))]
public string DualisKepzohelyAdoszama { get; set; }
public string ControllerName { get; set; }
public string ApiControllerName { get; set; }
public TantargyFelosztasKeresesCo ConvertToCo()
{
return new TantargyFelosztasKeresesCo()
{
Feladatellatasihely = SearchFeladatellatasihely,
FeladatKategoriaId = SearchFeladatKategoriaId,
IsKapcsolodoCsoportokkal = KapcsolodoCsoportokkal,
IsOsztalybontasokkal = Osztalybontasokkal,
Oraszam = SearchOraszam,
OsztalyCsoport = SearchOsztalCsoport,
Tanar = SearchTanar,
Tantargy = SearchTantargy,
IsFromSzervezet = IsFromSzervezet,
DualisKepzohelyNeve = DualisKepzohelyNeve,
DualisKepzohelyAdoszama = DualisKepzohelyAdoszama,
};
}
}
}

View File

@@ -0,0 +1,76 @@
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Classes;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantargyFelosztasModositasaModel
{
public TantargyFelosztasModositasaModel()
{
Modosithato = true;
}
public int Id { get; set; }
[KretaRequired(typeof(TantargyResource), nameof(TantargyResource.TanarKivalasztasaKotelezo))]
[Range(1, int.MaxValue, ErrorMessageResourceType = typeof(TantargyResource), ErrorMessageResourceName = nameof(TantargyResource.TanarKivalasztasaKotelezo))]
[Display(Name = nameof(TantargyResource.TanarPedagogusValasztasa), ResourceType = typeof(TantargyResource))]
public int TanarId { get; set; }
[KretaRequired(typeof(TantargyResource), nameof(TantargyResource.TantargyMegadasaKotelezo))]
[Range(1, int.MaxValue, ErrorMessageResourceType = typeof(TantargyResource), ErrorMessageResourceName = nameof(TantargyResource.TantargyMegadasaKotelezo))]
[Display(Name = nameof(TantargyResource.Tantargy), ResourceType = typeof(TantargyResource))]
public int TantargyId { get; set; }
[KretaRequired(typeof(TantargyResource), nameof(TantargyResource.OsztalyVagyCsoportMegadasaKotelezo))]
[Range(1, int.MaxValue, ErrorMessageResourceType = typeof(TantargyResource), ErrorMessageResourceName = nameof(TantargyResource.OsztalyVagyCsoportMegadasaKotelezo))]
[Display(Name = nameof(TantargyResource.OsztalyCsoport), ResourceType = typeof(TantargyResource))]
public int CsoportID { get; set; }
[KretaRequired(typeof(TantargyResource), nameof(TantargyResource.OraszamMegadasaKotelezo))]
[Range(0, Core.Constants.General.TantargyfelosztasImportMaxOraszam, ErrorMessageResourceType = typeof(TantargyResource), ErrorMessageResourceName = nameof(TantargyResource.AzOraszamCsakEgy0Es50KozottiSzamLehet))]
[Display(Name = nameof(TantargyResource.HetiOraszam), ResourceType = typeof(TantargyResource))]
public double Oraszam { get; set; }
[KretaRequired(typeof(TantargyResource), nameof(TantargyResource.TuloraMegadasaKotelezo))]
[Range(0, Core.Constants.General.TantargyfelosztasImportMaxOraszam, ErrorMessageResourceType = typeof(TantargyResource), ErrorMessageResourceName = nameof(TantargyResource.ATuloraCsakEgy0Es50KozottiSzamLehet))]
[Display(Name = nameof(OrarendResource.Tulora), ResourceType = typeof(OrarendResource))]
public double TuloraSzam { get; set; }
[Display(Name = nameof(TantargyResource.Oraszamkorrekcio), ResourceType = typeof(TantargyResource))]
public bool OsszevontOra { get; set; }
[Display(Name = nameof(TantargyResource.NemzetisegiOra), ResourceType = typeof(TantargyResource))]
public bool NemzetisegiOra { get; set; }
[Range(0, Core.Constants.General.TantargyfelosztasImportMaxOraszam, ErrorMessageResourceType = typeof(TantargyResource), ErrorMessageResourceName = nameof(TantargyResource.AMegbizasiCsakEgy0Es50KozottiSzamLehet))]
[Display(Name = nameof(TantargyfelosztasResource.MegbizasiOraszam), ResourceType = typeof(TantargyfelosztasResource))]
public double MegbizasiOraszam { get; set; }
[Display(Name = nameof(TantargyResource.VisszamenolegesModositas), ResourceType = typeof(TantargyResource))]
public bool VisszamenolegesModositas { get; set; }
[Display(Name = nameof(TantargyResource.KapcsolodoOrarendiOrakModositasa), ResourceType = typeof(TantargyResource))]
public bool KapcsolodoOrarendiOrakModositasa { get; set; }
[Display(Name = nameof(TantargyResource.FoglalkozasTipusa), ResourceType = typeof(TantargyResource))]
public int? TipusId { get; set; }
[Display(Name = nameof(TantargyResource.ErtekelesekSzama), ResourceType = typeof(TantargyResource))]
public int ErtekelesekSzama { get; set; }
[Display(Name = nameof(TantargyResource.TanorakSzama), ResourceType = typeof(TantargyResource))]
public int TanorakSzama { get; set; }
[Display(Name = nameof(TantargyResource.DiakokSzama), ResourceType = typeof(TantargyResource))]
public int DiakokSzama { get; set; }
public bool Modosithato { get; set; }
[Display(Name = nameof(TantargyResource.MulasztasokSzama), ResourceType = typeof(TantargyResource))]
public int MulasztasokSzama { get; set; }
public bool IsFromSzervezet { get; set; } = false;
}
}

View File

@@ -0,0 +1,24 @@
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Resources;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantargyFoglalkozasaiGridModel : IKretaIdentity
{
public string ID { get; set; }
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
public string OsztalyCsoport { get; set; }
[KretaDisplayName(2614)] /*Oktató*/
public string Tanar { get; set; }
[KretaDisplayName(254)] /*Heti óraszám*/
public float Oraszam { get; set; }
[KretaDisplayName(255)] /*Foglalkozás típusa*/
public string Tipus_DNAME { get; set; }
}
}

View File

@@ -0,0 +1,27 @@
using System;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantargyMegtartottTanoraiGridModel : IKretaIdentity
{
public string ID { get; set; }
[Display(Name = nameof(TantargyResource.OsztalyCsoport), ResourceType = typeof(TantargyResource))]
public string OsztalyCsoport { get; set; }
[Display(Name = nameof(TantargyResource.OraSorszama), ResourceType = typeof(TantargyResource))]
public int EvesSorszam { get; set; }
[Display(Name = nameof(TantargyResource.Tema), ResourceType = typeof(TantargyResource))]
public string Tema { get; set; }
[Display(Name = nameof(TantargyResource.Datum), ResourceType = typeof(TantargyResource))]
public DateTime Datum { get; set; }
[Display(Name = nameof(TantargyResource.OraSzama), ResourceType = typeof(TantargyResource))]
public int Oraszam { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantargyMinositeseiOsztalyAtlagokGridModel : IKretaIdentity
{
public string ID { get; set; }
[Display(Name = nameof(TantargyResource.OsztalycsoportNeve), ResourceType = typeof(TantargyResource))]
public string OsztalyCsoportNev { get; set; }
[Display(Name = nameof(TantargyResource.Atlag), ResourceType = typeof(TantargyResource))]
public string Atlag { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantargyMinositeseiTanarAtlagokGridModel : IKretaIdentity
{
public string ID { get; set; }
[Display(Name = nameof(TantargyResource.PedagogusNeve), ResourceType = typeof(TantargyResource))]
public string TanarNev { get; set; }
[Display(Name = nameof(TantargyResource.Atlag), ResourceType = typeof(TantargyResource))]
public string Atlag { get; set; }
}
}

View File

@@ -0,0 +1,77 @@
using System.ComponentModel.DataAnnotations;
using Kreta.Resources;
using Kreta.Web.Models.EditorTemplates;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantargyModModel : TabStripModel
{
public TantargyModModel()
{
}
public int? ID { get; set; }
public string TantargyakIDArray { get; set; }
[Display(Name = nameof(TantargyResource.TantargyNev), ResourceType = typeof(TantargyResource))]
public string TantargyNev { get; set; }
[Display(Name = nameof(TantargyResource.KivalasztottTantargyak), ResourceType = typeof(TantargyResource))]
public string TantargyakNevArray { get; set; }
[Display(Name = nameof(TantargyResource.TantargyKategoria), ResourceType = typeof(TantargyResource))]
public int? TargyKategoria { get; set; }
[Display(Name = nameof(TantargyResource.TantargyKategoria), ResourceType = typeof(TantargyResource))]
public string TargyKategoriaNev { get; set; }
[Display(Name = nameof(TantargyResource.ESLTantargyKategoria), ResourceType = typeof(TantargyResource))]
public int? ESLTargyKategoria { get; set; }
[Display(Name = nameof(TantargyResource.ESLTantargyKategoria), ResourceType = typeof(TantargyResource))]
public string ESLTargyKategoriaNev { get; set; }
[Display(Name = nameof(TantargyResource.KapcsolodoFotantargyNeve), ResourceType = typeof(TantargyResource))]
public int? FoTargyID { get; set; }
[Display(Name = nameof(TantargyResource.Fotantargy), ResourceType = typeof(TantargyResource))]
public int? IsFoTargy { get; set; }
[Display(Name = nameof(TantargyResource.KapcsolodoFotantargyNeve), ResourceType = typeof(TantargyResource))]
public string FoTargyNev { get; set; }
[Display(Name = nameof(TantargyResource.GyakorlatiTargy), ResourceType = typeof(TantargyResource))]
public int? GyakorlatiTargy { get; set; }
[Display(Name = nameof(TantargyResource.AltantargykentBizonyitvanyban), ResourceType = typeof(TantargyResource))]
public int? AltantargyNyomtatvanyban { get; set; }
[Display(Name = nameof(TantargyResource.AngolTantargyNev), ResourceType = typeof(TantargyResource))]
public string TantargyAngolNev { get; set; }
[Display(Name = nameof(TantargyResource.NemetTantargyNev), ResourceType = typeof(TantargyResource))]
public string TantargyNemetNev { get; set; }
[Display(Name = nameof(TantargyResource.Sorszam), ResourceType = typeof(TantargyResource))]
[Range(Core.Constants.MinMaxValues.MinTantargySorszam, Core.Constants.MinMaxValues.MaxTantargySorszam, ErrorMessageResourceName = nameof(ErrorResource.Ervenytelen), ErrorMessageResourceType = typeof(ErrorResource))]
public int? Sorszam { get; set; }
[Display(Name = nameof(TantargyResource.AmiTargy), ResourceType = typeof(TantargyResource))]
public int? IsAmiTargyMod { get; set; }
[Display(Name = nameof(TantargyResource.MSZGtantargy), ResourceType = typeof(TantargyResource))]
public int? IsMszgTargyMod { get; set; }
[Display(Name = nameof(TantargyResource.KollegiumiTargy), ResourceType = typeof(TantargyResource))]
public int? IsKollegiumiTargy { get; set; }
[Display(Name = nameof(TantargyResource.FelnottoktatasTargy), ResourceType = typeof(TantargyResource))]
public int? IsFelnottOktatasTargy { get; set; }
[Display(Name = nameof(TantargyResource.NincsBeloleOra), ResourceType = typeof(TantargyResource))]
public int? IsNincsBeloleOraMod { get; set; }
[Display(Name = nameof(TantargyResource.IsEgymi), ResourceType = typeof(TantargyResource))]
public int? IsEgymiTargyMod { get; set; }
}
}

View File

@@ -0,0 +1,269 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web.Mvc;
using Foolproof;
using Kreta.BusinessLogic.Classes;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.Enums;
using Kreta.Enums.ManualEnums;
using Kreta.Resources;
using Kreta.Web.Helpers;
using Kreta.Web.Helpers.TabStrip;
using Kreta.Web.Models;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantargyModel
{
public TantargyModel()
{
TabList = new List<TabStripItemModel>();
RadioButtonItems = new List<SelectListItem>();
ErtekelesKorlatozasList = GetErtekelesKorlatozasList();
AmiKepzesiJellemzokModel = new AmiKepzesiJellemzokModel();
}
public int? ID { get; set; }
public List<TabStripItemModel> TabList { get; set; }
public List<SelectListItem> RadioButtonItems { get; set; }
public AmiKepzesiJellemzokModel AmiKepzesiJellemzokModel { get; set; }
public List<int> NemzetiDokumentumNyelvek { get; set; } = new List<int>();
public bool NemzetiDokumentumNyelvekMegjelenjenek
{
get
{
return NemzetiDokumentumNyelvek.Any(x => x == ((int)AnyanyelvEnum.horvat) || x == ((int)AnyanyelvEnum.szerb) || x == ((int)AnyanyelvEnum.roman));
}
}
[Display(Name = nameof(TantargyResource.Tanev), ResourceType = typeof(TantargyResource))]
public string Tanev { get; set; }
[Display(Name = nameof(TantargyResource.TantargyNev), ResourceType = typeof(TantargyResource))]
[Required(ErrorMessageResourceName = nameof(TantargyResource.ATantargyNevMegadasaKotelezo), ErrorMessageResourceType = typeof(TantargyResource))]
[MaxLength(150, ErrorMessageResourceName = nameof(TantargyResource.ATantargyNeveMaximum150KarakterLehet), ErrorMessageResourceType = typeof(TantargyResource))]
public string TantargyNev { get; set; }
[Display(Name = nameof(TantargyResource.TantargyRovidnev), ResourceType = typeof(TantargyResource))]
[MaxLength(20, ErrorMessageResourceName = nameof(TantargyResource.ATantargyRovidNevMaximum20KarakterLehet), ErrorMessageResourceType = typeof(TantargyResource))]
public string TantargyRovidNev { get; set; }
[Display(Name = nameof(TantargyResource.TantargyKategoria), ResourceType = typeof(TantargyResource))]
[Required(ErrorMessageResourceName = nameof(TantargyResource.ATantargyKategoriaMegadasaKotelezo), ErrorMessageResourceType = typeof(TantargyResource))]
public int? TargyKategoria { get; set; }
[Display(Name = nameof(TantargyResource.TantargyKategoria), ResourceType = typeof(TantargyResource))]
public string TargyKategoriaNev { get; set; }
[Display(Name = nameof(TantargyResource.ESLTantargyKategoria), ResourceType = typeof(TantargyResource))]
[Required(ErrorMessageResourceName = nameof(TantargyResource.AzESLTargyKategoriaMegadasaKotelezo), ErrorMessageResourceType = typeof(TantargyResource))]
public int? ESLTargyKategoria { get; set; }
[Display(Name = nameof(TantargyResource.ESLTantargyKategoria), ResourceType = typeof(TantargyResource))]
public string ESLTargyKategoriaNev { get; set; }
[Display(Name = nameof(TantargyResource.KapcsolodoFotantargyNeve), ResourceType = typeof(TantargyResource))]
[RequiredIf(nameof(FoTargyIDValidationAttr), true, ErrorMessageResourceName = nameof(TantargyResource.KapcsolodoFotantargyNevenekMegadasaKotelezo), ErrorMessageResourceType = typeof(TantargyResource))]
public int? FoTargyID { get; set; }
public bool FoTargyIDValidationAttr => AltantargyNyomtatvanyban || !IsFoTargy;
[Display(Name = nameof(TantargyResource.KapcsolodoFotantargyNeve), ResourceType = typeof(TantargyResource))]
public string FoTargyNev { get; set; }
[Display(Name = nameof(TantargyResource.Fotantargy), ResourceType = typeof(TantargyResource))]
public bool IsFoTargy { get; set; }
[Display(Name = nameof(TantargyResource.Fotantargy), ResourceType = typeof(TantargyResource))]
public string IsFoTargy_BNAME { get { return Kreta.Framework.StringResourcesUtil.GetString(IsFoTargy ? 133 : 134); } } //Igen, Nem
[Display(Name = nameof(TantargyResource.KollegiumiTargy), ResourceType = typeof(TantargyResource))]
public bool IsKollegiumiTargy { get; set; }
[Display(Name = nameof(TantargyResource.KollegiumiTargy), ResourceType = typeof(TantargyResource))]
public string IsKollegiumiTargy_BNAME { get { return Kreta.Framework.StringResourcesUtil.GetString(IsKollegiumiTargy ? 133 : 134); } } //Igen, Nem
[Display(Name = nameof(TantargyResource.GyakorlatiTargy), ResourceType = typeof(TantargyResource))]
public bool GyakorlatiTargy { get; set; }
[Display(Name = nameof(TantargyResource.GyakorlatiTargy), ResourceType = typeof(TantargyResource))]
public string GyakorlatiTargy_BNAME { get { return Kreta.Framework.StringResourcesUtil.GetString(GyakorlatiTargy ? 133 : 134); } } //Igen, Nem
[Display(Name = nameof(TantargyResource.AmiTargy), ResourceType = typeof(TantargyResource))]
public bool IsAmiTargyMod { get; set; }
[Display(Name = nameof(TantargyResource.MSZGtantargy), ResourceType = typeof(TantargyResource))]
public bool IsMszgTargy { get; set; }
[Display(Name = nameof(TantargyResource.MSZGtantargy), ResourceType = typeof(TantargyResource))]
public string IsMszgTargy_BNAME { get { return Kreta.Framework.StringResourcesUtil.GetString(IsMszgTargy ? 133 : 134); } } //Igen, Nem
[Display(Name = nameof(TantargyResource.AmiTargy), ResourceType = typeof(TantargyResource))]
public string IsAmiTargy_BNAME { get { return Kreta.Framework.StringResourcesUtil.GetString(IsAmiTargyMod ? 133 : 134); } } //Igen, Nem
[Display(Name = nameof(TantargyResource.FelnottoktatasTargy), ResourceType = typeof(TantargyResource))]
public bool IsFelnottOktatasTargy { get; set; }
[Display(Name = nameof(TantargyResource.AltantargykentBizonyitvanyban), ResourceType = typeof(TantargyResource))]
public bool AltantargyNyomtatvanyban { get; set; }
[Display(Name = nameof(TantargyResource.AltantargykentBizonyitvanyban), ResourceType = typeof(TantargyResource))]
public string AltantargyNyomtatvanyban_BNAME { get { return Kreta.Framework.StringResourcesUtil.GetString(AltantargyNyomtatvanyban ? 133 : 134); } } //Igen, Nem
[Display(Name = nameof(TantargyResource.FelnottoktatasTargy), ResourceType = typeof(TantargyResource))]
public bool IsFelnottOktatas { get; set; }
[Display(Name = nameof(TantargyResource.FelnottoktatasTargy), ResourceType = typeof(TantargyResource))]
public string IsFelnottOktatas_BNAME { get { return Kreta.Framework.StringResourcesUtil.GetString(IsFelnottOktatas ? 133 : 134); } } //Igen, Nem
[Display(Name = nameof(TantargyResource.IsEgymi), ResourceType = typeof(TantargyResource))]
public bool IsEgymi { get; set; }
[Display(Name = nameof(TantargyResource.IsEgymi), ResourceType = typeof(TantargyResource))]
public string IsEgymi_BNAME { get { return Kreta.Framework.StringResourcesUtil.GetString(IsEgymi ? 133 : 134); } } //Igen, Nem
[Display(Name = nameof(TantargyResource.TanulmanyiAtlagbaNemSzamitBele), ResourceType = typeof(TantargyResource))]
public bool IsTanulmanyiAtlagbaNemSzamit { get; set; }
[Display(Name = nameof(TantargyResource.TanulmanyiAtlagbaNemSzamitBele), ResourceType = typeof(TantargyResource))]
public string IsTanulmanyiAtlagbaNemSzamit_BNAME { get { return Kreta.Framework.StringResourcesUtil.GetString(IsTanulmanyiAtlagbaNemSzamit ? 133 : 134); } } //Igen, Nem
[Display(Name = nameof(TantargyResource.NincsBeloleOra), ResourceType = typeof(TantargyResource))]
public bool IsNincsBeloleOraMod { get; set; }
[Display(Name = nameof(TantargyResource.NincsBeloleOra), ResourceType = typeof(TantargyResource))]
public string IsNincsBeloleOra_BNAME { get { return Kreta.Framework.StringResourcesUtil.GetString(IsNincsBeloleOraMod ? 133 : 134); } } //Igen, Nem
[Display(Name = nameof(TantargyResource.OsztalynaplobanNemJelenikMeg), ResourceType = typeof(TantargyResource))]
public bool IsOsztalynaplobanNemJelenikMeg { get; set; }
[Display(Name = nameof(TantargyResource.OsztalynaplobanNemJelenikMeg), ResourceType = typeof(TantargyResource))]
public string IsOsztalynaplobanNemJelenikMeg_BNAME { get { return IsOsztalynaplobanNemJelenikMeg ? IgenNemEnum.Igen.GetDisplayName(ClaimData.SelectedTanevID.Value) : IgenNemEnum.Nem.GetDisplayName(ClaimData.SelectedTanevID.Value); } }
[Display(Name = nameof(TantargyResource.OsztalynaplobanMegjelenik), ResourceType = typeof(TantargyResource))]
public bool IsOsztalyOrarendjebenMegjelenik { get; set; }
[Display(Name = nameof(TantargyResource.OsztalynaplobanMegjelenik), ResourceType = typeof(TantargyResource))]
public string IsOsztalyokOrarendjebenMegjelenik_BNAME { get { return Kreta.Framework.StringResourcesUtil.GetString(IsOsztalyOrarendjebenMegjelenik ? 133 : 134); } } //Igen, Nem
[Display(Name = nameof(TantargyResource.OsztalyEsTanuloiOrarendbenNemJelenikMeg), ResourceType = typeof(TantargyResource))]
public bool IsOsztalyEsTanuloiOrarendbenNemJelenikMeg { get => !IsOsztalyOrarendjebenMegjelenik; set => IsOsztalyOrarendjebenMegjelenik = !value; }
[MaxLength(150, ErrorMessageResourceName = nameof(TantargyResource.ABizonyitvanybanMegjelenoNevMaximum150KarakterLehet), ErrorMessageResourceType = typeof(TantargyResource))]
[Display(Name = nameof(TantargyResource.BizonyitvanybanMegjelenoNev), ResourceType = typeof(TantargyResource))]
public string NevNyomtatvanyban { get; set; }
[Display(Name = nameof(TantargyResource.AngolTantargyNev), ResourceType = typeof(TantargyResource))]
[MaxLength(150, ErrorMessageResourceName = nameof(TantargyResource.ATantargyNeveMaximum150KarakterLehet), ErrorMessageResourceType = typeof(TantargyResource))]
public string TantargyAngolNev { get; set; }
[Display(Name = nameof(TantargyResource.NemetTantargyNev), ResourceType = typeof(TantargyResource))]
[MaxLength(150, ErrorMessageResourceName = nameof(TantargyResource.ATantargyNeveMaximum150KarakterLehet), ErrorMessageResourceType = typeof(TantargyResource))]
public string TantargyNemetNev { get; set; }
[Display(Name = nameof(TantargyResource.HorvatTantargyNev), ResourceType = typeof(TantargyResource))]
[MaxLength(150, ErrorMessageResourceName = nameof(TantargyResource.ATantargyNeveMaximum150KarakterLehet), ErrorMessageResourceType = typeof(TantargyResource))]
public string TantargyHorvatNev { get; set; }
[Display(Name = nameof(TantargyResource.RomanTantargyNev), ResourceType = typeof(TantargyResource))]
[MaxLength(150, ErrorMessageResourceName = nameof(TantargyResource.ATantargyNeveMaximum150KarakterLehet), ErrorMessageResourceType = typeof(TantargyResource))]
public string TantargyRomanNev { get; set; }
[Display(Name = nameof(TantargyResource.SzerbTantargyNev), ResourceType = typeof(TantargyResource))]
[MaxLength(150, ErrorMessageResourceName = nameof(TantargyResource.ATantargyNeveMaximum150KarakterLehet), ErrorMessageResourceType = typeof(TantargyResource))]
public string TantargySzerbNev { get; set; }
[Display(Name = nameof(TantargyResource.Sorszam), ResourceType = typeof(TantargyResource))]
[Range(Core.Constants.MinMaxValues.MinTantargySorszam, Core.Constants.MinMaxValues.MaxTantargySorszam, ErrorMessageResourceName = nameof(ErrorResource.Ervenytelen), ErrorMessageResourceType = typeof(ErrorResource))]
public int Sorszam { get; set; }
[Display(Name = nameof(CommonResource.Megjegyzes), ResourceType = typeof(CommonResource))]
[StringLength(500, ErrorMessageResourceName = nameof(CommonResource.AMegjegyzesSzovegeNemLehet500KarakternelHosszabb), ErrorMessageResourceType = typeof(ErrorResource))]
public string Megjegyzes { get; set; }
public List<int> GyakorlatigenyessegKategoriak { get { return Kreta.Core.Constants.GyakorlatigenyessegTargyKategoriaTipusIdList; } }
public bool IsGyakorlatigenyessegKategoria { get { return ClaimData.IsSelectedTanev20_21OrLater && ClaimData.IsSzakkepzoIntezmeny && TargyKategoria.HasValue && GyakorlatigenyessegKategoriak.Contains(TargyKategoria.Value); } }
[RequiredIf(nameof(IsGyakorlatigenyessegKategoria), true, ErrorMessageResourceName = nameof(TantargyResource.GyakorlatigenyessegKitolteseKotelezo), ErrorMessageResourceType = typeof(TantargyResource))]
[KretaRange(1, 99, ErrorMessageResourceName = nameof(TantargyResource.SzazalekosErtekNincsAMegengedettTartomanyban), ErrorMessageResourceType = typeof(TantargyResource))]
[Display(Name = nameof(TantargyResource.Gyakorlatigenyesseg), ResourceType = typeof(TantargyResource))]
public int? Gyakorlatigenyesseg { get; set; }
[Display(Name = nameof(TantargyResource.ErtekelesKorlatozas), ResourceType = typeof(TantargyResource))]
public List<int> ErtekelesKorlatozasIdList { get; set; }
[Display(Name = nameof(TantargyResource.ErtekelesKorlatozas), ResourceType = typeof(TantargyResource))]
public string ErtekelesKorlatozasStringList
{
get
{
var result = new List<string>();
foreach (var item in ErtekelesKorlatozasList)
{
if (int.TryParse(item.Value, out int id))
{
if (ErtekelesKorlatozasIdList.Contains(id))
{
result.Add(item.Text);
}
}
}
return string.Join(", ", result);
}
}
public List<SelectListItem> ErtekelesKorlatozasList { get; set; }
private List<SelectListItem> GetErtekelesKorlatozasList()
{
var dictionary = EnumExtensions.EnumToDictionary<ErtekelesKorlatozas>(ClaimData.SelectedTanevID.Value, false, true);
return dictionary.ToSelectListItemList();
}
public void SetDefaultsForNew()
{
TargyKategoria = (int)TargyKategoriaTipusEnum.na;
IsFoTargy = true;
Sorszam = Core.Constants.MinMaxValues.MinTantargySorszam;
IsTanulmanyiAtlagbaNemSzamit = false;
ErtekelesKorlatozasIdList = Enum.GetValues(typeof(ErtekelesKorlatozas)).Cast<ErtekelesKorlatozas>().Cast<int>().ToList();
IsOsztalynaplobanNemJelenikMeg = false;
IsOsztalyOrarendjebenMegjelenik = true;
AmiKepzesiJellemzokModel.MufajTipusId = (int)MufajTipusEnum.na;
AmiKepzesiJellemzokModel.TanszakTipusId = (int)TanszakTipusEnum.na;
}
public void SetErtekelesKorlatozasIdList(TantargyCO co)
{
ErtekelesKorlatozasIdList = new List<int>();
if (co.IsOsztalyzattalErtekelheto)
{
ErtekelesKorlatozasIdList.Add((int)ErtekelesKorlatozas.OsztalyzattalErtekelheto);
}
if (co.IsSzovegesenErtekelheto)
{
ErtekelesKorlatozasIdList.Add((int)ErtekelesKorlatozas.SzovegesenErtekelheto);
}
if (co.IsSzazalekosanErtekelheto)
{
ErtekelesKorlatozasIdList.Add((int)ErtekelesKorlatozas.SzazalekosanErtekelheto);
}
}
}
}

View File

@@ -0,0 +1,33 @@
using System;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantargyOrarendiOraiGridModel : IKretaIdentity
{
public string ID { get; set; }
[Display(Name = nameof(TantargyResource.OrarendiNapHetirendje), ResourceType = typeof(TantargyResource))]
public string Hetirend_DNAME { get; set; }
[Display(Name = nameof(TantargyResource.HetNapja), ResourceType = typeof(TantargyResource))]
public string Hetnapja_DNAME { get; set; }
[Display(Name = nameof(TantargyResource.Ora), ResourceType = typeof(TantargyResource))]
public int Ora { get; set; }
[Display(Name = nameof(TantargyResource.OsztalyCsoport), ResourceType = typeof(TantargyResource))]
public string OsztCsop { get; set; }
[Display(Name = nameof(TantargyResource.Helyiseg), ResourceType = typeof(TantargyResource))]
public string Terem { get; set; }
[Display(Name = nameof(TantargyResource.ErvenyessegKezdete), ResourceType = typeof(TantargyResource))]
public DateTime ErvenyessegKezdete { get; set; }
[Display(Name = nameof(TantargyResource.ErvenyessegVege), ResourceType = typeof(TantargyResource))]
public DateTime ErvenyessegVege { get; set; }
}
}

View File

@@ -0,0 +1,152 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.Enums;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantargySearchModel
{
public TantargySearchModel()
{
}
public List<int> NemzetiDokumentumNyelvek { get; set; } = new List<int>();
public bool NemzetiDokumentumNyelvekMegjelenjenek
{
get
{
return NemzetiDokumentumNyelvek.Any(x => x == ((int)AnyanyelvEnum.horvat) || x == ((int)AnyanyelvEnum.szerb) || x == ((int)AnyanyelvEnum.roman));
}
}
[Display(Name = nameof(TantargyResource.TantargyNev), ResourceType = typeof(TantargyResource))]
public string TantargyNev { get; set; }
[Display(Name = nameof(TantargyResource.TantargyKategoria), ResourceType = typeof(TantargyResource))]
public int? TantargyKategoriaID { get; set; }
[Display(Name = nameof(TantargyResource.ESLTantargyKategoria), ResourceType = typeof(TantargyResource))]
public int? EslTargykategoriaTipusId { get; set; }
[Display(Name = nameof(TantargyResource.ErtekelesKorlatozas), ResourceType = typeof(TantargyResource))]
public int? IsErtekelesKorlatozva { get; set; }
[Display(Name = nameof(TantargyResource.Fotantargy), ResourceType = typeof(TantargyResource))]
public int? IsFotargy { get; set; }
[Display(Name = nameof(TantargyResource.KapcsolodoFotantargyNeve), ResourceType = typeof(TantargyResource))]
public int? KeresesFotargyID { get; set; }
[Display(Name = nameof(TantargyResource.GyakorlatiTargy), ResourceType = typeof(TantargyResource))]
public int? IsGyakorlati { get; set; }
[Display(Name = nameof(TantargyResource.TantargyRovidnev), ResourceType = typeof(TantargyResource))]
public string RovidNev { get; set; }
[Display(Name = nameof(TantargyResource.BizonyitvanybanMegjelenoNev), ResourceType = typeof(TantargyResource))]
public string BizonyitvanyNev { get; set; }
[Display(Name = nameof(TantargyResource.AltantargykentBizonyitvanyban), ResourceType = typeof(TantargyResource))]
public int? IsAltantargykentBizonyitvanyban { get; set; }
[Display(Name = nameof(TantargyResource.NincsBeloleOra), ResourceType = typeof(TantargyResource))]
public int? IsNincsBeloleOra { get; set; }
[Display(Name = nameof(TantargyResource.OsztalynaplobanNemJelenikMeg), ResourceType = typeof(TantargyResource))]
public int? IsOsztalyNaplobanNemJelenikMeg { get; set; }
[Display(Name = nameof(TantargyResource.OsztalyokOrarendjebenMegjelenik), ResourceType = typeof(TantargyResource))]
public int? IsOsztalyokOrarendjebenMegjelenik { get; set; }
[Display(Name = nameof(TantargyResource.TantagyAtlagbaSzamitasa), ResourceType = typeof(TantargyResource))]
public int? IsTanulmanyiAtlagbaSzamit { get; set; }
[Display(Name = nameof(TantargyResource.AmiTargy), ResourceType = typeof(TantargyResource))]
public int? IsAmiTargy { get; set; }
[Display(Name = nameof(TantargyResource.KollegiumiTargy), ResourceType = typeof(TantargyResource))]
public int? IsKollegiumTargy { get; set; }
[Display(Name = nameof(TantargyResource.EgymiTargy), ResourceType = typeof(TantargyResource))]
public int? IsEgymiTargy { get; set; }
[Display(Name = nameof(TantargyResource.FelnottoktatasTargy), ResourceType = typeof(TantargyResource))]
public int? IsFelnottoktatasTargy { get; set; }
[Display(Name = nameof(TantargyResource.AngolTantargyNev), ResourceType = typeof(TantargyResource))]
public string AngolNev { get; set; }
[Display(Name = nameof(TantargyResource.NemetTantargyNev), ResourceType = typeof(TantargyResource))]
public string NemetNev { get; set; }
[Display(Name = nameof(TantargyResource.HorvatTantargyNev), ResourceType = typeof(TantargyResource))]
public string HorvatNev { get; set; }
[Display(Name = nameof(TantargyResource.RomanTantargyNev), ResourceType = typeof(TantargyResource))]
public string RomanNev { get; set; }
[Display(Name = nameof(TantargyResource.SzerbTantargyNev), ResourceType = typeof(TantargyResource))]
public string SzerbNev { get; set; }
public bool? nincsTantargykategoria { get; set; }
[Display(Name = nameof(TantargyResource.MSZGtantargy), ResourceType = typeof(TantargyResource))]
public int? IsMszgTargyFltr { get; set; }
public bool IsFromSzervezet { get; set; }
public bool IsSzakkepzo { get; set; }
public static TantargySearchModel SetFilterTantargySearchModel(string filter)
{
TantargySearchModel result = new TantargySearchModel();
switch (filter)
{
case "nincskategoria":
result.nincsTantargykategoria = true;
break;
}
return result;
}
public TantargySearchCo ConvertToCo()
{
return new TantargySearchCo()
{
BizonyitvanyNev = this.BizonyitvanyNev,
IsAltantargykentBizonyitvanyban = this.IsAltantargykentBizonyitvanyban,
IsNincsBeloleOra = this.IsNincsBeloleOra,
IsOsztalyNaplobanNemJelenikMeg = this.IsOsztalyNaplobanNemJelenikMeg,
IsOsztalyokOrarendjebenMegjelenik = this.IsOsztalyokOrarendjebenMegjelenik,
IsTanulmanyiAtlagbaSzamit = this.IsTanulmanyiAtlagbaSzamit,
IsAmiTargy = this.IsAmiTargy,
IsKollegiumTargy = this.IsKollegiumTargy,
IsEgymiTargy = this.IsEgymiTargy,
IsFelnottoktatasTargy = this.IsFelnottoktatasTargy,
IsMszgTargy = this.IsMszgTargyFltr,
AngolNev = this.AngolNev,
NemetNev = this.NemetNev,
HorvatNev = this.HorvatNev,
RomanNev = this.RomanNev,
SzerbNev = this.SzerbNev,
IsErtekelesKorlatozva = this.IsErtekelesKorlatozva,
IsFotargy = this.IsFotargy,
IsGyakorlati = this.IsGyakorlati,
KeresesFotargyID = this.KeresesFotargyID,
nincsTantargykategoria = this.nincsTantargykategoria,
RovidNev = this.RovidNev,
TantargyKategoriaID = this.TantargyKategoriaID,
EslTargykategoriaTipusId = this.EslTargykategoriaTipusId,
TantargyNev = this.TantargyNev,
IsFromSzervezet = IsFromSzervezet,
IsSzakkepzo = IsSzakkepzo
};
}
}
}

View File

@@ -0,0 +1,23 @@
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantargyTanmeneteiGridModel : IKretaIdentity
{
public string ID { get; set; }
[Display(Name = nameof(TantargyResource.OsztalyCsoport), ResourceType = typeof(TantargyResource))]
public string OsztalyCsoport { get; set; }
[Display(Name = nameof(TantargyResource.Pedagogus), ResourceType = typeof(TantargyResource))]
public string Tanar { get; set; }
[Display(Name = nameof(TantargyResource.OraSorszama), ResourceType = typeof(TantargyResource))]
public float Oraszam { get; set; }
[Display(Name = nameof(TantargyResource.Tema), ResourceType = typeof(TantargyResource))]
public string Tema { get; set; }
}
}

View File

@@ -0,0 +1,77 @@
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Classes;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Core.CustomAttributes;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantargyakGridModel : IKretaIdentity
{
public const string TantargyakExportAttributeId = nameof(TantargyakExportAttributeId);
public TantargyakGridModel()
{
}
public TantargyakGridModel(TantargyItemCo itemCo)
{
ID = itemCo.Id.ToString();
TantargyNev = itemCo.Nev;
TanevNev = itemCo.TanevNev;
TargyKategoria = itemCo.TargykategoriaTipusId;
TargyKategoriaNev = itemCo.TargykategoriaTipusNev;
FoTargyNev = itemCo.FotargyNev;
IsFotargy_BNAME = itemCo.IsFotargy.GetDisplayName();
GyakorlatiTargy = itemCo.IsGyakorlatiTargy;
GyakorlatiTargy_BNAME = itemCo.IsGyakorlatiTargy.GetDisplayName();
IsTanulmanyiAtlagbaSzamit_BNAME = itemCo.IsTanulmanyiAtlagbaSzamit.GetDisplayName();
IsErtekelesKorlatozva_BNAME = itemCo.IsErtekelesKorlatozva.GetDisplayName();
Sorszam = itemCo.Sorszam;
}
public string ID { get; set; }
[Display(Name = nameof(TantargyResource.Nev), ResourceType = typeof(TantargyResource))]
[SimpleExportColumn(TantargyakExportAttributeId, 00, nameof(TantargyResource.Nev), typeof(TantargyResource))]
public string TantargyNev { get; set; }
[Display(Name = nameof(TantargyResource.Tanev), ResourceType = typeof(TantargyResource))]
[SimpleExportColumn(TantargyakExportAttributeId, 01, nameof(TantargyResource.Tanev), typeof(TantargyResource))]
public string TanevNev { get; set; }
[Display(Name = nameof(TantargyResource.Nev), ResourceType = typeof(TantargyResource))]
public int TargyKategoria { get; set; }
[Display(Name = nameof(TantargyResource.TantargyKategoria), ResourceType = typeof(TantargyResource))]
[SimpleExportColumn(TantargyakExportAttributeId, 02, nameof(TantargyResource.TantargyKategoria), typeof(TantargyResource))]
public string TargyKategoriaNev { get; set; }
[Display(Name = nameof(TantargyResource.KapcsolodoFotantargyNeve), ResourceType = typeof(TantargyResource))]
[SimpleExportColumn(TantargyakExportAttributeId, 04, nameof(TantargyResource.KapcsolodoFotantargyNeve), typeof(TantargyResource))]
public string FoTargyNev { get; set; }
[Display(Name = nameof(TantargyResource.Fotantargy), ResourceType = typeof(TantargyResource))]
[SimpleExportColumn(TantargyakExportAttributeId, 03, nameof(TantargyResource.Fotantargy), typeof(TantargyResource))]
public string IsFotargy_BNAME { get; set; }
public bool GyakorlatiTargy { get; set; }
[Display(Name = nameof(TantargyResource.GyakorlatiTargy), ResourceType = typeof(TantargyResource))]
[SimpleExportColumn(TantargyakExportAttributeId, 05, nameof(TantargyResource.GyakorlatiTargy), typeof(TantargyResource))]
public string GyakorlatiTargy_BNAME { get; set; }
[Display(Name = nameof(TantargyResource.TantagyAtlagbaSzamitasa), ResourceType = typeof(TantargyResource))]
[SimpleExportColumn(TantargyakExportAttributeId, 06, nameof(TantargyResource.TantagyAtlagbaSzamitasa), typeof(TantargyResource))]
public string IsTanulmanyiAtlagbaSzamit_BNAME { get; set; }
[Display(Name = nameof(TantargyResource.ErtekelesKorlatozas), ResourceType = typeof(TantargyResource))]
[SimpleExportColumn(TantargyakExportAttributeId, 07, nameof(TantargyResource.ErtekelesKorlatozas), typeof(TantargyResource))]
public string IsErtekelesKorlatozva_BNAME { get; set; }
[Display(Name = nameof(TantargyResource.Sorszam), ResourceType = typeof(TantargyResource))]
public int Sorszam { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantargyfelosztasMentesModel
{
public int? TantargyID { get; set; }
public int? CsoportID { get; set; }
public int? TipusID { get; set; }
public double? Oraszam { get; set; }
public bool OsszevontOra { get; set; }
public bool NemzetisegiOra { get; set; }
public double? MegbizasiOraszam { get; set; }
public double? TuloraSzam { get; set; }
}
}

View File

@@ -0,0 +1,36 @@
using System.ComponentModel.DataAnnotations;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantervModModel
{
public TantervModModel()
{
}
public int? ID { get; set; }
public string TantervIDArray { get; set; }
[Display(Name = nameof(TantargyResource.TantervNev), ResourceType = typeof(TantargyResource))]
public string Nev { get; set; }
[Display(Name = nameof(TantargyResource.KivalasztottTantervek), ResourceType = typeof(TantargyResource))]
public string TantervNevArray { get; set; }
[Display(Name = nameof(TantargyResource.TantervreJellemzőCsoportipus), ResourceType = typeof(TantargyResource))]
public int? CsoportTipusa { get; set; }
[Display(Name = nameof(TantargyResource.KezdoEvfolyam), ResourceType = typeof(TantargyResource))]
public int? Evfolyamtol { get; set; }
[Display(Name = nameof(TantargyResource.VegzoEvfolyam), ResourceType = typeof(TantargyResource))]
public int? Evfolyamig { get; set; }
[Display(Name = nameof(TantargyResource.KerettantervreEpulo), ResourceType = typeof(TantargyResource))]
public int? KerettantervreEpulo { get; set; }
[Display(Name = nameof(TantargyResource.Kerettanterv), ResourceType = typeof(TantargyResource))]
public int? IsKerettanterv { get; set; }
}
}

View File

@@ -0,0 +1,64 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Classes;
using Kreta.Enums;
using Kreta.Resources;
using Kreta.Web.Attributes;
using Kreta.Web.Helpers.TabStrip;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantervModel
{
public TantervModel()
{
TabList = new List<TabStripItemModel>();
}
public int? ID { get; set; }
public List<TabStripItemModel> TabList { get; set; }
[KretaDisplayName(1589)] /*Tanterv név*/
[KretaRequired(StringResourcesId = 2382/*Tanterv név megadása kötelező!*/)]
[StringLength(maximumLength: 255, ErrorMessageResourceName = nameof(ErrorResource.Max255Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
public string Nev { get; set; }
[KretaDisplayName(1590)] /*Tantervre jellemző csoporttípus*/
[KretaRequired(StringResourcesId = 2383/*Csoporttípus megadása kötelező!*/)]
public int? CsoportTipusa { get; set; }
[KretaDisplayName(1590)] /*Tantervre jellemző csoporttípus*/
public string CsoportTipusaNev { get { return CsoportTipusa.GetDisplayName<CsoportTipusEnum>(ClaimData.SelectedTanevID.Value); } }
[KretaDisplayName(1591)] /*Kezdő évfolyam*/
[KretaRequired(StringResourcesId = 2384/*Kezdő évfolyam megadása kötelező!*/)]
public int? Evfolyamtol { get; set; }
[KretaDisplayName(1591)] /*Kezdő évfolyam*/
public string EvfolyamtolNev { get { return Evfolyamtol.GetDisplayName<EvfolyamTipusEnum>(ClaimData.SelectedTanevID.Value); } }
[KretaDisplayName(1592)] /*Végző évfolyam*/
[KretaRequired(StringResourcesId = 2385/*Végző évfolyam megadása kötelező!*/)]
public int? Evfolyamig { get; set; }
[KretaDisplayName(1592)] /*Végző évfolyam*/
public string EvfolyamigNev { get { return Evfolyamig.GetDisplayName<EvfolyamTipusEnum>(ClaimData.SelectedTanevID.Value); } }
[KretaDisplayName(1593)] /*Kerettantervre épülő*/
public bool? KerettantervreEpulo { get; set; }
[KretaDisplayName(1593)] /*Kerettantervre épülő*/
public string KerettantervreEpulo_BNAME { get { return Kreta.Framework.StringResourcesUtil.GetString(KerettantervreEpulo.HasValue && KerettantervreEpulo.Value ? 133 : 134); } } //Igen, Nem
[StringLength(255, ErrorMessageResourceName = nameof(ErrorResource.AMegjegyzesMax255KarakterLehet), ErrorMessageResourceType = typeof(ErrorResource))]
[KretaDisplayName(97)] /*Megjegyzés*/
public string Megjegyzes { get; set; }
[KretaDisplayName(670)] /*Kerettanterv*/
public bool? IsKerettanterv { get; set; }
[KretaDisplayName(670)] /*Kerettanterv*/
public string IsKerettanterv_BNAME { get { return Kreta.Framework.StringResourcesUtil.GetString(IsKerettanterv.HasValue && IsKerettanterv.Value ? 133 : 134); } } //Igen, Nem
}
}

View File

@@ -0,0 +1,26 @@
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantervSearchModel
{
[KretaDisplayName(1589)] /*Tanterv név*/
public string TantervNev { get; set; }
[KretaDisplayName(1590)] /*Tantervre jellemző csoporttípus*/
public int? JellemzoCsopTipID { get; set; }
[KretaDisplayName(1591)] /*Kezdő évfolyam*/
public int? KezdoEvfolyamID { get; set; }
[KretaDisplayName(1592)] /*Végző évfolyam*/
public int? VegzoEvfolyamID { get; set; }
[KretaDisplayName(1593)] /*Kerettantervre épülő*/
public int? IsKerettantervreEpul { get; set; }
public bool IsKovetkezoTanev { get; set; }
[KretaDisplayName(1593)] /*Kerettantervre épülő*/
public int? IsKerettantervSrc { get; set; }
}
}

View File

@@ -0,0 +1,28 @@
using Kreta.BusinessLogic.Interfaces;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantervekGridModel : IKretaIdentity
{
public string ID { get; set; }
[KretaDisplayName(1589)] /*Tanterv név*/
public string Nev { get; set; }
[KretaDisplayName(1590)] /*Tantervre jellemző csoporttípus*/
public string CsoportTipusa_DNAME { get; set; }
[KretaDisplayName(1591)] /*Kezdő évfolyam*/
public string Evfolyamtol_DNAME { get; set; }
[KretaDisplayName(1592)] /*Végző évfolyam*/
public string Evfolyamig_DNAME { get; set; }
[KretaDisplayName(97)] /*Megjegyzés*/
public string Megjegyzes { get; set; }
[KretaDisplayName(670)] /*Kerettanterv*/
public string IsKerettanterv_BNAME { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
using Kreta.BusinessLogic.Interfaces;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantervekOsztalyokGridModel : IKretaIdentity
{
public string ID { get; set; }
[KretaDisplayName(458)] //Osztály neve
public string Nev { get; set; }
[KretaDisplayName(442)] //Évfolyam
public string Evfolyam_DNAME { get; set; }
[KretaDisplayName(3847)] //Létszám
public string Letszam { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using Kreta.BusinessLogic.Interfaces;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tantargy.Models
{
public class TantervekTanulokGridModel : IKretaIdentity
{
public string ID { get; set; }
[KretaDisplayName(455)] //Tanulo neve
public string Nev { get; set; }
[KretaDisplayName(458)] //Osztály neve
public string OsztalyNev { get; set; }
}
}