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

View file

@ -0,0 +1,7 @@
namespace Kreta.Web.Areas.Tanar.Models
{
public class DownloadModel
{
public int Id { get; set; }
}
}

View file

@ -0,0 +1,44 @@
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tanar.Models
{
public class FogadooraGridModel : IKretaIdentity
{
public string ID { get; set; }
[Display(Name = nameof(FogadooraResource.OsztalyCsoport), ResourceType = typeof(FogadooraResource))]
public string OsztalyCsoport { get; set; }
[Display(Name = nameof(FogadooraResource.OsztalyCsoport), ResourceType = typeof(FogadooraResource))]
public string OsztalyCsoportFormatted { get; set; }
[Display(Name = nameof(FogadooraResource.Terem), ResourceType = typeof(FogadooraResource))]
public string Terem { get; set; }
[Display(Name = nameof(FogadooraResource.FogadooraKezdete), ResourceType = typeof(FogadooraResource))]
public string FogadooraKezdete { get; set; }
[Display(Name = nameof(FogadooraResource.FogadooraVege), ResourceType = typeof(FogadooraResource))]
public string FogadooraVege { get; set; }
[Display(Name = nameof(FogadooraResource.Rendszeresseg), ResourceType = typeof(FogadooraResource))]
public string Rendszeresseg { get; set; }
[Display(Name = nameof(FogadooraResource.Rendszeresseg), ResourceType = typeof(FogadooraResource))]
public int RendszeressegId { get; set; }
[Display(Name = nameof(FogadooraResource.JelentkezesekKezelese), ResourceType = typeof(FogadooraResource))]
public string JelentkezesekKezelese { get; set; }
[Display(Name = nameof(FogadooraResource.JelentkezesekKezelese), ResourceType = typeof(FogadooraResource))]
public int JelentkezesekKezeleseId { get; set; }
[Display(Name = nameof(FogadooraResource.Pedagogus), ResourceType = typeof(FogadooraResource))]
public string Pedagogus { get; set; }
[Display(Name = nameof(FogadooraResource.JelentkezesekSzama), ResourceType = typeof(FogadooraResource))]
public string JelentkezesekSzama { get; set; }
}
}

View file

@ -0,0 +1,25 @@
using System.ComponentModel.DataAnnotations;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tanar.Models
{
public class FogadooraJelentkezesInfoModel
{
public int? Id { get; set; }
[Display(Name = nameof(FogadooraResource.FogadooraKezdete), ResourceType = typeof(FogadooraResource))]
public string FogadoOraKezdete { get; set; }
[Display(Name = nameof(FogadooraResource.FogadooraVege), ResourceType = typeof(FogadooraResource))]
public string FogadoOraVege { get; set; }
[Display(Name = nameof(FogadooraResource.Terem), ResourceType = typeof(FogadooraResource))]
public string TeremNev { get; set; }
//[Display(Name = nameof(FogadooraResource.Rendszeresseg), ResourceType = typeof(FogadooraResource))]
//public string Rendszeresseg { get; set; }
[Display(Name = nameof(FogadooraResource.NemKotottMunkaido), ResourceType = typeof(FogadooraResource))]
public bool IsNemKotottMunkaido { get; set; }
[Display(Name = nameof(FogadooraResource.JelentkezesekKezelese), ResourceType = typeof(FogadooraResource))]
public bool JelentkezesekKezelese { get; set; }
public string FogadoOraDatuma { get; set; }
}
}

View file

@ -0,0 +1,24 @@
using System;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tanar.Models
{
public class FogadooraJelentkezettGondviselokGridModel : IKretaIdentity
{
public string ID { get; set; }
[Display(Name = nameof(FogadooraResource.GondviseloNeve), ResourceType = typeof(FogadooraResource))]
public string GondviseloNev { get; set; }
[Display(Name = nameof(FogadooraResource.OsztalyCsoport), ResourceType = typeof(FogadooraResource))]
public string OsztalyCsoportNev { get; set; }
[Display(Name = nameof(TanuloResource.TanuloNeve), ResourceType = typeof(TanuloResource))]
public string TanuloNev { get; set; }
[Display(Name = nameof(FogadooraResource.Idointervallum), ResourceType = typeof(FogadooraResource))]
public string Idointervallum { get; set; }
public DateTime Kezdete { get; set; }
}
}

View file

@ -0,0 +1,19 @@
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tanar.Models
{
public class FogadooraOsztalyCsoportGridModel : IKretaIdentity
{
public string ID { get; set; }
public int OsztalyCsoportId { get; set; }
[Display(Name = nameof(FogadooraResource.OsztalyCsoport), ResourceType = typeof(FogadooraResource))]
public string OsztalyCsoportNev { get; set; }
[Display(Name = nameof(FogadooraResource.Hozzarendelve), ResourceType = typeof(FogadooraResource))]
public bool Hozzarendelve { get; set; }
}
}

View file

@ -0,0 +1,66 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tanar.Models
{
public class FogadooraSearchModel
{
[Display(Name = nameof(OsztalyCsoportResource.EllatottKoznevelesiFeladatTipus), ResourceType = typeof(OsztalyCsoportResource))]
public int? FeladatKategoriaId { get; set; }
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
public int? FeladatEllatasiHelyId { get; set; }
[Display(Name = nameof(FogadooraResource.OsztalyCsoport), ResourceType = typeof(FogadooraResource))]
public int? OsztalyCsoportIdSrc { get; set; }
[Display(Name = nameof(FogadooraResource.Terem), ResourceType = typeof(FogadooraResource))]
public int? TeremIdSrc { get; set; }
[Display(Name = nameof(FogadooraResource.Idopont), ResourceType = typeof(FogadooraResource))]
public DateTime? IdopontSrc { get; set; }
[Display(Name = nameof(FogadooraResource.Pedagogus), ResourceType = typeof(FogadooraResource))]
public int? TanarIdSrc { get; set; }
[Display(Name = nameof(FogadooraResource.Idopont), ResourceType = typeof(FogadooraResource))]
public DateTime? IdopontTolSrc { get; set; }
public DateTime? IdopontIgSrc { get; set; }
[Display(Name = nameof(FogadooraResource.Idointervallum), ResourceType = typeof(FogadooraResource))]
public DateTime? IdointervallumTolSrc { get; set; }
public DateTime? IdointervallumIgSrc { get; set; }
[Display(Name = nameof(FogadooraResource.Rendszeresseg), ResourceType = typeof(FogadooraResource))]
public int? RendszeressegIdSrc { get; set; }
[Display(Name = nameof(FogadooraResource.JelentkezesekKezelese), ResourceType = typeof(FogadooraResource))]
public int? TipusIdSrc { get; set; }
[Display(Name = nameof(FogadooraResource.Jelentkezheto), ResourceType = typeof(FogadooraResource))]
public bool? IsJelentkezheto { get; set; }
public FogadooraSearchCo ConvertModelToCo(int? tanarId)
{
return new FogadooraSearchCo
{
OsztalyCsoportIdsSrc = this.OsztalyCsoportIdSrc.HasValue ? new List<int> { this.OsztalyCsoportIdSrc.Value } : null,
FeladatKategoriaId = this.FeladatKategoriaId,
FeladatEllatasiHelyId = this.FeladatEllatasiHelyId,
TeremIdSrc = this.TeremIdSrc,
IdopontSrc = this.IdopontSrc,
TanarIdSrc = tanarId ?? this.TanarIdSrc,
IdopontTolSrc = this.IdopontTolSrc,
IdopontIgSrc = this.IdopontIgSrc,
IdointervallumTolSrc = this.IdointervallumTolSrc,
IdointervallumIgSrc = this.IdointervallumIgSrc,
RendszeressegIdSrc = this.RendszeressegIdSrc,
TipusIdSrc = this.TipusIdSrc,
IsJelentkezheto = this.IsJelentkezheto,
};
}
}
}

View file

@ -0,0 +1,97 @@
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.Tanar.Models
{
public class HFCsatolmanyGridModel : IKretaIdentity
{
#region Fields
public const string HazifeladatCsatolmanyExportAttributeId = nameof(HazifeladatCsatolmanyExportAttributeId);
#endregion
public HFCsatolmanyGridModel()
{
}
public HFCsatolmanyGridModel(HaziFeladatCsatolmanyItemCo co)
{
ID = co.Id.ToString();
OraDatuma = co.OraDatuma;
Oraszam = co.OraSorszama;
OsztalyCsoport = co.OsztalyCsoportNev;
Tanar = co.TanarNev;
Tantargy = co.TantargyNev;
FajlNev = co.FajlNev;
FajlMeret = co.FajlMeret;
FajlMeretMB = co.FajlMeretMB;
FeltoltesDatum = co.FeltoltesDatuma;
Hatarido = co.HataridoDatuma;
Torolt_BOOL = co.Torolt;
AdminTorolt_BOOL = co.AdminTorolt;
FileServiceTorolt_BOOL = co.FileServiceTorolt;
TorloUser = co.TorloFelhasznaloNev;
TorlesDatum = co.TorlesDatuma?.ToString(Core.Constants.ToStringPattern.HungarianDate);
IsOnlineOraText = co.IsOnlineOraText;
}
public string ID { get; set; }
public bool AdminTorolt_BOOL { get; set; }
public bool Torolt_BOOL { get; set; }
public bool FileServiceTorolt_BOOL { get; set; }
public string TorloUser { get; set; }
public string TorlesDatum { get; set; }
[Display(Name = nameof(TanarResource.OraDatuma), ResourceType = typeof(TanarResource))]
[SimpleExportColumn(HazifeladatCsatolmanyExportAttributeId, 00, nameof(TanarResource.OraDatuma), typeof(TanarResource))]
public DateTime? OraDatuma { get; set; }
[Display(Name = nameof(TanarResource.Oraszam), ResourceType = typeof(TanarResource))]
[SimpleExportColumn(HazifeladatCsatolmanyExportAttributeId, 01, nameof(TanarResource.Oraszam), typeof(TanarResource))]
public int? Oraszam { get; set; }
[Display(Name = nameof(TanarResource.Osztalycsoport), ResourceType = typeof(TanarResource))]
[SimpleExportColumn(HazifeladatCsatolmanyExportAttributeId, 02, nameof(TanarResource.Osztalycsoport), typeof(TanarResource))]
public string OsztalyCsoport { get; set; }
[Display(Name = nameof(TanarResource.Tanar), ResourceType = typeof(TanarResource))]
[SimpleExportColumn(HazifeladatCsatolmanyExportAttributeId, 03, nameof(TanarResource.Tanar), typeof(TanarResource))]
public string Tanar { get; set; }
[Display(Name = nameof(TanarResource.Tantargy), ResourceType = typeof(TanarResource))]
[SimpleExportColumn(HazifeladatCsatolmanyExportAttributeId, 04, nameof(TanarResource.Tantargy), typeof(TanarResource))]
public string Tantargy { get; set; }
[Display(Name = nameof(TanarResource.FajlNev), ResourceType = typeof(TanarResource))]
[SimpleExportColumn(HazifeladatCsatolmanyExportAttributeId, 05, nameof(TanarResource.FajlNev), typeof(TanarResource))]
public string FajlNev { get; set; }
[Display(Name = nameof(TanarResource.FajlMeret), ResourceType = typeof(TanarResource))]
public double FajlMeret { get; set; }
[Display(Name = nameof(TanarResource.FajlMeretMB), ResourceType = typeof(TanarResource))]
[SimpleExportColumn(HazifeladatCsatolmanyExportAttributeId, 06, nameof(TanarResource.FajlMeretMB), typeof(TanarResource), DecimalDigitCount = 2)]
public double FajlMeretMB { get; set; }
[Display(Name = nameof(TanarResource.FeltoltesDatum), ResourceType = typeof(TanarResource))]
[SimpleExportColumn(HazifeladatCsatolmanyExportAttributeId, 07, nameof(TanarResource.FeltoltesDatum), typeof(TanarResource))]
public DateTime? FeltoltesDatum { get; set; }
[Display(Name = nameof(TanarResource.HFHatarido), ResourceType = typeof(TanarResource))]
[SimpleExportColumn(HazifeladatCsatolmanyExportAttributeId, 08, nameof(TanarResource.HFHatarido), typeof(TanarResource))]
public DateTime? Hatarido { get; set; }
[SimpleExportColumn(HazifeladatCsatolmanyExportAttributeId, 09, nameof(OrarendResource.OnlineOra), typeof(OrarendResource))]
public string IsOnlineOraText { get; set; }
}
}

View file

@ -0,0 +1,71 @@
using System;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tanar.Models
{
public class HFCsatolmanyokSearchModel
{
[Display(Name = nameof(OsztalyCsoportResource.EllatottKoznevelesiFeladatTipus), ResourceType = typeof(OsztalyCsoportResource))]
public int? FeladatKategoriaId { get; set; }
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
public int? FeladatEllatasiHelyId { get; set; }
[Display(Name = nameof(TanarResource.OraDatuma), ResourceType = typeof(TanarResource))]
public DateTime? OraDatumaSrc { get; set; }
[Display(Name = nameof(TanarResource.Oraszam), ResourceType = typeof(TanarResource))]
public int? OraszamSrc { get; set; }
[Display(Name = nameof(TanarResource.Osztalycsoport), ResourceType = typeof(TanarResource))]
public int? OsztalyCsoportSrc { get; set; }
[Display(Name = nameof(TanarResource.Tanar), ResourceType = typeof(TanarResource))]
public int? TanarSrc { get; set; }
[Display(Name = nameof(TanarResource.Tantargy), ResourceType = typeof(TanarResource))]
public int? TantargySrc { get; set; }
[Display(Name = nameof(TanarResource.FajlNev), ResourceType = typeof(TanarResource))]
public string FajlNevSrc { get; set; }
[Display(Name = nameof(TanarResource.FajlMeretMB), ResourceType = typeof(TanarResource))]
public int? FajlMeretTolSrc { get; set; }
public int? FajlMeretIgSrc { get; set; }
[Display(Name = nameof(TanarResource.FeltoltesDatum), ResourceType = typeof(TanarResource))]
public DateTime? FeltoltesDatumTolSrc { get; set; }
public DateTime? FeltoltesDatumIgSrc { get; set; }
[Display(Name = nameof(TanarResource.HFHatarido), ResourceType = typeof(TanarResource))]
public DateTime? HFHataridoTolSrc { get; set; }
public DateTime? HFHataridoIgSrc { get; set; }
[Display(Name = nameof(OrarendResource.OnlineOra), ResourceType = typeof(OrarendResource))]
public int? IsOnlineOra { get; set; }
public HFCsatolmanyokSearchCO ConvertModelToCo(int? tanarId)
{
return new HFCsatolmanyokSearchCO
{
FeladatKategoriaId = FeladatKategoriaId,
FeladatEllatasiHelyId = FeladatEllatasiHelyId,
OraDatumaSrc = OraDatumaSrc,
OraszamSrc = OraszamSrc,
OsztalyCsoportSrc = OsztalyCsoportSrc,
TanarSrc = tanarId ?? TanarSrc,
TantargySrc = TantargySrc,
FajlNevSrc = FajlNevSrc,
FajlMeretTolSrc = FajlMeretTolSrc,
FajlMeretIgSrc = FajlMeretIgSrc,
FeltoltesDatumTolSrc = FeltoltesDatumTolSrc,
FeltoltesDatumIgSrc = FeltoltesDatumIgSrc,
HFHataridoTolSrc = HFHataridoTolSrc,
HFHataridoIgSrc = HFHataridoIgSrc,
IsOnlineOra = IsOnlineOra
};
}
}
}

View file

@ -0,0 +1,18 @@
using System;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tanar.Models
{
public class HelyettesitesBeallitasaModel
{
public int HelyettesitendoOraID { get; set; }
public int HelyettesitoTanarID { get; set; }
[KretaDisplayName(1684)]/*Helyettesítés oka*/
public string HelyettesitesOka { get; set; }
public int HelyettesitendoTanarID { get; set; }
public int HelyettesitesTipusId { get; set; }
public int? HelyettesitesID { get; set; }
public DateTime Datum { get; set; }
public bool IsTuloraMentes { get; set; }
}
}

View file

@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Resources;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tanar.Models
{
public class HelyettesitesGridModel : IKretaIdentity
{
public string ID { get; set; }
public int HelyettesitettOrarendiOraId { get; set; }
[KretaDisplayName(273)]/*Dátum*/
public DateTime HelyettesitettOraKezdete { get; set; }
[KretaDisplayName(219)]/*Óra*/
public int? HelyettesitettOraszam { get; set; }
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
public string HelyettesitettTantargy { get; set; }
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
public string HelyettesitettOsztaly { get; set; }
[KretaDisplayName(267)] /*Helyiség*/
public string HelyettesitettTerem { get; set; }
[Display(Name = nameof(OrarendResource.HelyettesitoTanar), ResourceType = typeof(OrarendResource))]
public string HelyettesitoTanarNev { get; set; }
[KretaDisplayName(1694)] /*Helyettesítés típusa*/
public string HelyettesitesTipusId { get; set; }
[KretaDisplayName(1694)] /*Helyettesítés típusa*/
public string HelyettesitesTipusId_DNAME { get; set; }
public List<SelectListItem> HelyettesitesTipusList { get; set; }
}
}

View file

@ -0,0 +1,19 @@
using System;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tanar.Models
{
public class HelyettesitesOraCsereModel
{
public int HelyettesitendoOraID { get; set; }
public int HelyettesitoTanarID { get; set; }
[KretaDisplayName(1684)]/*Helyettesítés oka*/
public string HelyettesitesOka { get; set; }
public int HelyettesitendoTanarID { get; set; }
public int HelyettesitoOraID { get; set; }
public int HelyettesitendoHetSorszama { get; set; }
public int HelyettesitoHetSorszama { get; set; }
public DateTime HelyettesitendoDatum { get; set; }
public DateTime HelyettesitoDatum { get; set; }
}
}

View file

@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kreta.Resources;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tanar.Models
{
public class HelyettesitesSearchModel
{
public HelyettesitesSearchModel()
{
AlkalmazottList = new List<SelectListItem>();
}
[KretaDisplayName(3467)] /*Időszak kezdete*/
public DateTime? IdoszakKezdete { get; set; }
[KretaDisplayName(3468)] /*Időszak vége*/
public DateTime? IdoszakVege { get; set; }
[KretaDisplayName(4216)] /*Helyettesített pedagógus*/
public int? HelyettesitettId { get; set; }
public List<SelectListItem> AlkalmazottList { get; set; }
[KretaDisplayName(1684)]/*Helyettesítés oka*/
[MaxLength(500, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
public string HelyettesitesOka { get; set; }
}
}

View file

@ -0,0 +1,36 @@
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Resources;
namespace Kreta.Web.Areas.Tanar.Models
{
public class HelyettesitesTanarGridModel : IKretaIdentity
{
public string ID { get; set; }
public int? HelyettesitesID { get; set; }
[Display(Name = nameof(TanarResource.LehetsegesHelyettesito), ResourceType = typeof(TanarResource))]
public string TanarNev { get; set; }
public int TanarId { get; set; }
[Display(Name = nameof(TanarResource.HelyettesitesTipusa), ResourceType = typeof(TanarResource))]
public string HelyettesitesTipusId_DNAME { get; set; }
[Display(Name = nameof(TanarResource.HelyettesitesTipusa), ResourceType = typeof(TanarResource))]
public int HelyettesitesTipusId { get; set; }
public int HelyettesitettOrarendiOraId { get; set; }
public int TantargyId { get; set; }
[Display(Name = nameof(TanarResource.Tantargy), ResourceType = typeof(TanarResource))]
public string TantargyNev { get; set; }
public int OsztalyCsoportId { get; set; }
[Display(Name = nameof(TanarResource.Osztalycsoport), ResourceType = typeof(TanarResource))]
public string OsztalycsoportNev { get; set; }
public string HelyettesitesDatuma { get; set; }
public bool Tulora_BOOL { get; set; }
}
}

View file

@ -0,0 +1,36 @@
using System;
using System.ComponentModel.DataAnnotations;
using Kreta.Resources;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tanar.Models
{
public class OralatogatasokKereseseAdatModel
{
public DateTime Date { get; set; }
[KretaDisplayName(273)] /*Dátum*/
public string DateString { get { return Date.ToShortDateString(); } }
[KretaDisplayName(219)] /*Óra*/
public int Ora { get; set; }
[KretaDisplayName(1704)] /*Óralátogatást végző*/
public string Tanar { get; set; }
[KretaDisplayName(1705)] /*Óralátogatást végző beosztása*/
public string Beosztas { get; set; }
[Display(Name = nameof(OralatogatasokResource.LatogatottPedagogus), ResourceType = typeof(OralatogatasokResource))]
public string LatogatottPedagogus { get; set; }
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
public string Tantargy { get; set; }
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
public string OsztalyCsoport { get; set; }
[KretaDisplayName(97)] /*Megjegyzés*/
public string Megjegyzes { get; set; }
}
}

View file

@ -0,0 +1,75 @@
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.Tanar.Models
{
public class OralatogatasokKereseseGridModel : IKretaIdentity
{
public const string OralatogatasExportAttributeId = nameof(OralatogatasExportAttributeId);
public OralatogatasokKereseseGridModel()
{
}
public OralatogatasokKereseseGridModel(OralatogatasItemCo oralatogatasCo)
{
ID = oralatogatasCo.Id.ToString();
AlkalmazottId = oralatogatasCo.LatogatoID.ToString();
TanitasiOraId = oralatogatasCo.TanitasiOraId.ToString();
Datum = oralatogatasCo.Date;
Oraszam = oralatogatasCo.Ora;
Alkalmazott = oralatogatasCo.Latogato;
AlkalmazottElotagNelkul = oralatogatasCo.LatogatoElotagNelkul;
Beosztas = oralatogatasCo.Beosztas;
LatogatottPedagogus = oralatogatasCo.LatogatottPedagogus;
Tantargy = oralatogatasCo.Tantargy;
OsztalyCsoport = oralatogatasCo.OsztalyCsoport;
IsSajatErtekeles_BOOL = oralatogatasCo.IsSajatErtekeles;
}
public string ID { get; set; }
public string AlkalmazottId { get; set; }
public string TanitasiOraId { get; set; }
[Display(Name = nameof(OralatogatasokResource.Datum), ResourceType = typeof(OralatogatasokResource))]
[SimpleExportColumn(OralatogatasExportAttributeId, 00, nameof(OralatogatasokResource.Datum), typeof(OralatogatasokResource))]
public DateTime Datum { get; set; }
[Display(Name = nameof(OralatogatasokResource.Ora), ResourceType = typeof(OralatogatasokResource))]
[SimpleExportColumn(OralatogatasExportAttributeId, 01, nameof(OralatogatasokResource.Ora), typeof(OralatogatasokResource))]
public int Oraszam { get; set; }
[Display(Name = nameof(OralatogatasokResource.LatogatoPedagogus), ResourceType = typeof(OralatogatasokResource))]
[SimpleExportColumn(OralatogatasExportAttributeId, 02, nameof(OralatogatasokResource.LatogatoPedagogus), typeof(OralatogatasokResource))]
public string Alkalmazott { get; set; }
[Display(Name = nameof(OralatogatasokResource.LatogatoPedagogus), ResourceType = typeof(OralatogatasokResource))]
public string AlkalmazottElotagNelkul { get; set; }
[Display(Name = nameof(OralatogatasokResource.LatogatoPedagogusBeosztasa), ResourceType = typeof(OralatogatasokResource))]
[SimpleExportColumn(OralatogatasExportAttributeId, 03, nameof(OralatogatasokResource.LatogatoPedagogusBeosztasa), typeof(OralatogatasokResource))]
public string Beosztas { get; set; }
[Display(Name = nameof(OralatogatasokResource.LatogatottPedagogus), ResourceType = typeof(OralatogatasokResource))]
[SimpleExportColumn(OralatogatasExportAttributeId, 04, nameof(OralatogatasokResource.LatogatottPedagogus), typeof(OralatogatasokResource))]
public string LatogatottPedagogus { get; set; }
[Display(Name = nameof(OralatogatasokResource.Tantargy), ResourceType = typeof(OralatogatasokResource))]
[SimpleExportColumn(OralatogatasExportAttributeId, 05, nameof(OralatogatasokResource.Tantargy), typeof(OralatogatasokResource))]
public string Tantargy { get; set; }
[Display(Name = nameof(OralatogatasokResource.OsztalyCsoport), ResourceType = typeof(OralatogatasokResource))]
[SimpleExportColumn(OralatogatasExportAttributeId, 06, nameof(OralatogatasokResource.OsztalyCsoport), typeof(OralatogatasokResource))]
public string OsztalyCsoport { get; set; }
public bool IsSajatErtekeles_BOOL { get; set; }
}
}

View file

@ -0,0 +1,66 @@
using System;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.BusinessLogic.Helpers.SystemSettings;
using Kreta.Enums;
using Kreta.Resources;
using Kreta.Web.Helpers;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Tanar.Models
{
public class OralatogatasokKereseseModel
{
[Display(Name = nameof(OralatogatasokResource.IdoszakKezdete), ResourceType = typeof(OralatogatasokResource))]
public DateTime? IdoszakKezdete { get; set; }
[Display(Name = nameof(OralatogatasokResource.IdoszakVege), ResourceType = typeof(OralatogatasokResource))]
public DateTime? IdoszakVege { get; set; }
[Display(Name = nameof(OralatogatasokResource.LatogatottOsztalyCsoport), ResourceType = typeof(OralatogatasokResource))]
public int? OsztalyCsoportId { get; set; }
[Display(Name = nameof(OrarendResource.KapcsolodoCsoportok), ResourceType = typeof(OrarendResource))]
public bool KellKapcsolodoCsoportokSearch { get; set; }
[Display(Name = nameof(OralatogatasokResource.OralatogatastVegzoPedagogus), ResourceType = typeof(OralatogatasokResource))]
public int? TanarId { get; set; }
[Display(Name = nameof(OralatogatasokResource.LatogatottPedagogus), ResourceType = typeof(OralatogatasokResource))]
public int? LatogatottPedagogusId { get; set; }
[Display(Name = nameof(OralatogatasokResource.LatogatottOra), ResourceType = typeof(OralatogatasokResource))]
public int? TantargyId { get; set; }
[Display(Name = nameof(OsztalyCsoportResource.EllatottKoznevelesiFeladatTipus), ResourceType = typeof(OsztalyCsoportResource))]
public int? FeladatKategoriaId { get; set; }
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
public int? FeladatEllatasiHelyId { get; set; }
public OralatogatasokKereseseModel()
{
if (ClaimData.IsVegyes)
{
FeladatKategoriaId = new SystemSettingsHelper(ConnectionTypeExtensions.GetSessionConnectionType()).GetSystemSettingValue<int>(RendszerBeallitasTipusEnum.Default_Feladat_Kategoria);
}
}
public OralatogatasokKereseseCO ConvertToCo(bool isTanar)
{
return new OralatogatasokKereseseCO
{
IdoszakKezdete = IdoszakKezdete,
IdoszakVege = IdoszakVege,
TanarId = TanarId,
TantargyId = TantargyId,
LatogatottPedagogusId = LatogatottPedagogusId,
OsztalyCsoportId = OsztalyCsoportId,
IsKellKapcsolodoCsoportok = KellKapcsolodoCsoportokSearch,
FeladatKategoriaId = FeladatKategoriaId,
FeladatEllatasiHelyId = FeladatEllatasiHelyId,
IsTanar = isTanar
};
}
}
}

View file

@ -0,0 +1,66 @@
using System;
using System.Collections.Generic;
using Kreta.Enums.ManualEnums;
namespace Kreta.Web.Areas.Tanar.Models
{
public class TanarDashboardModel
{
public TanarDashboardTableModel BeNemIrtOrak { get; set; }
public TanarDashboardTableModel KiirtHelyettesitesek { get; set; }
public TanarDashboardTableModel Mulasztasok { get; set; }
public TanarDashboardTableModel BukasraAlloTanulok { get; set; }
public TanarDashboardTableModel Uzenetek { get; set; }
public TanarDashboardTableModel Ugyek { get; set; }
public List<TanarDashboardItemModel> DashBoardUzenetek { get; set; }
public bool VanCovidFertozott { get; set; }
}
public class TanarDashboardItemModel
{
public string Name { get; set; }
public string Content { get; set; }
public AdminDashboardTipusEnum Type { get; set; }
public int Sorrend { get; set; }
public string EgyediAzonosito { get; set; }
}
public class TanarDashboardTableModel
{
public string Name { get; set; }
public string Url { get; set; }
public bool OpenInNewWindow { get; set; }
public List<string> Headers { get; set; }
public List<TanarDashboardTableRowModel> Rows { get; set; }
}
public class TanarDashboardTableRowModel
{
public List<string> Columns { get; set; }
}
public class Uzenet
{
public int Azonosito { get; set; }
public DateTime BeerkezesIdopontja { get; set; }
public string FeladoNev { get; set; }
public string Targy { get; set; }
}
public class Ugy
{
public int Azonosito { get; set; }
public DateTime BekuldesIdopontja { get; set; }
public string TanuloNev { get; set; }
public string TanuloOsztaly { get; set; }
public string UgyTipusKod { get; set; }
}
}

View file

@ -0,0 +1,37 @@
using System;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Resources;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tanar.Models
{
public class TanarHelyettesitesekKereseseGridModel : IKretaIdentity
{
public string ID { get; set; }
[KretaDisplayName(219)] /*Óra*/
public int Ora { get; set; }
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
public string OsztalyCsoportNev { get; set; }
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
public string TantargyNev { get; set; }
[KretaDisplayName(270)] /*Óra sorszáma*/
public int OraSorszama { get; set; }
[KretaDisplayName(1497)] /*Tanítási óra témája*/
public string TanitasiOraTemaja { get; set; }
[KretaDisplayName(1498)] /*Megtartott*/
public string Megtartott_BNAME { get; set; }
[KretaDisplayName(1499)] /*Helyettesítés*/
public string Helyettesites { get; set; }
[KretaDisplayName(273)] /*Dátum*/
public DateTime Datum { get; set; }
}
}

View file

@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Web.Mvc;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Tanar.Models
{
public class TanarHelyettesitesekKereseseSearchModel
{
[KretaDisplayName(3467)] /*Időszak kezdete*/
public DateTime? IdoszakKezdete { get; set; }
[KretaDisplayName(3468)] /*Időszak vége*/
public DateTime? IdoszakVege { get; set; }
[KretaDisplayName(4216)] /*Helyettesített pedagógus*/
public int? HelyettesitettId { get; set; }
[KretaDisplayName(4389)] /*Helyettesítő pedagógus*/
public int? HelyettesitoId { get; set; }
public List<SelectListItem> AlkalmazottList { get; set; }
public TanarHelyettesitesekKereseseSearchModel()
{
AlkalmazottList = new List<SelectListItem>();
}
}
}