init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class AdminCreateKozpontiOrakModel
|
||||
{
|
||||
public List<int> OrarendiOrakTorlesre { get; set; }
|
||||
|
||||
public List<AdminKozpontiOrakRogzitesGridModel> KozpontiOrakRogzitesre { get; set; }
|
||||
|
||||
public DateTime Start { get; set; }
|
||||
|
||||
public DateTime End { get; set; }
|
||||
|
||||
public int HanyadikOra { get; set; }
|
||||
|
||||
public bool IsTeremutkozesFigyelese { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class AdminKozpontiOrakDeleteKozpontiOrakModel
|
||||
{
|
||||
public Guid KozpontiOraGroupId { get; set; }
|
||||
public DateTime Start { get; set; }
|
||||
public DateTime End { get; set; }
|
||||
public int HanyadikOra { get; set; }
|
||||
public int OrarendiOraId { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
using Kreta.Web.Helpers.Grid;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class AdminKozpontiOrakOrarendiOraPartialViewListModel
|
||||
{
|
||||
public bool RowCheckBoxCheckedByDefault { get; set; }
|
||||
public string GridName { get; set; }
|
||||
public GridApiUrl GridApiUrl { get; set; }
|
||||
public string DataBoundAdditionalFunction { get; set; }
|
||||
public string JsonContent { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class AdminKozpontiOrakOrarendiOrakIdList
|
||||
{
|
||||
public List<int> OrarendiOrakIdList { get; set; }
|
||||
public DateTime Start { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,196 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class AdminKozpontiOrakOsztalyokGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Osztaly), ResourceType = typeof(OrarendResource))]
|
||||
public string Osztaly { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tanar), ResourceType = typeof(OrarendResource))]
|
||||
public int TanarID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tanar), ResourceType = typeof(OrarendResource))]
|
||||
public string Tanar { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public int TantargyID { get; set; }
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public string Tantargy { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Terem), ResourceType = typeof(OrarendResource))]
|
||||
public int TeremID { get; set; }
|
||||
[Display(Name = nameof(OrarendResource.Terem), ResourceType = typeof(OrarendResource))]
|
||||
public string Terem { get; set; }
|
||||
|
||||
public DateTime OraKezdete { get; set; }
|
||||
public DateTime OraVege { get; set; }
|
||||
public int HanyadikOra { get; set; }
|
||||
public Guid? KozpontiOraGroupId { get; set; }
|
||||
|
||||
[KretaDisplayName(1532)] /*Sorszámozandó*/
|
||||
public bool Sorszamozando { get; set; } = true;
|
||||
|
||||
[KretaDisplayName(1544)] /*>Párhuzamos óra*/
|
||||
public bool ParhuzamosOra { get; set; }
|
||||
|
||||
[KretaDisplayName(1533)] /*Túlóra*/
|
||||
public bool Tulora { get; set; }
|
||||
|
||||
[KretaDisplayName(1534)] /*TÁMOP óra*/
|
||||
public bool TAMOPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KIPOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool KIPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.VEKOP73317), ResourceType = typeof(OrarendResource))]
|
||||
public bool VEKOP73317 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KAPOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool KAPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.NemSzakrendszeruOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool NemSzakrendszeruOra { get; set; }
|
||||
|
||||
[KretaDisplayName(1536)] /*IKT tanóra*/
|
||||
public bool IKTTanora { get; set; }
|
||||
|
||||
[KretaDisplayName(1537)] /*Nemzetiségi tanóra*/
|
||||
public bool NemzetisegiOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(TantargyResource.MegbizasiSzerzodesselEllatottOra), ResourceType = typeof(TantargyResource))]
|
||||
public bool IsFelnottoktatasiSzerzodes { get; set; }
|
||||
|
||||
[KretaDisplayName(1538)] /*Mindennapos testnevelés*/
|
||||
public bool MindennaposTestneveles { get; set; }
|
||||
|
||||
[KretaDisplayName(1539)] /*IPR tanóra*/
|
||||
public bool IPRTanora { get; set; }
|
||||
|
||||
[KretaDisplayName(1540)] /*Differenciált*/
|
||||
public bool Differencialt { get; set; }
|
||||
|
||||
[KretaDisplayName(1541)] /*Kooperatív*/
|
||||
public bool Kooperativ { get; set; }
|
||||
|
||||
[KretaDisplayName(1542)] /*Mérés*/
|
||||
public bool Meres { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OnlineOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool OnlineOra { get; set; }
|
||||
|
||||
[KretaDisplayName(1543)] /*Dráma*/
|
||||
public bool Drama { get; set; }
|
||||
|
||||
[KretaDisplayName(1545)] /*TIOP 12*/
|
||||
public bool Tiop { get; set; }
|
||||
|
||||
[KretaDisplayName(2593)] /*Bontott*/
|
||||
public bool Bontott { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Multikulturalis), ResourceType = typeof(OrarendResource))]
|
||||
public bool Multikulturalis { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP32317DigitalisKornyezetAKozenevelesben), ResourceType = typeof(OrarendResource))]
|
||||
public bool EFOP32317 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KomplexOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool KomplexOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.GINOP623), ResourceType = typeof(OrarendResource))]
|
||||
public bool GINOP623 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP31716EselyteremtesAKoznevelesben), ResourceType = typeof(OrarendResource))]
|
||||
public bool EFOP31716EselyteremtesAKoznevelesben { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP33717), ResourceType = typeof(OrarendResource))]
|
||||
public bool EFOP33717 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TIOP11112120120001), ResourceType = typeof(OrarendResource))]
|
||||
public bool TIOP11112120120001 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DFHT), ResourceType = typeof(OrarendResource))]
|
||||
public bool DFHT { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Rahangolodas), ResourceType = typeof(OrarendResource))]
|
||||
public bool Rahangolodas { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Testmozgas), ResourceType = typeof(OrarendResource))]
|
||||
public bool Testmozgas { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Muveszet), ResourceType = typeof(OrarendResource))]
|
||||
public bool Muveszet { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Eletgyakorlat), ResourceType = typeof(OrarendResource))]
|
||||
public bool Eletgyakorlat { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Logika), ResourceType = typeof(OrarendResource))]
|
||||
public bool Logika { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TeOrad), ResourceType = typeof(OrarendResource))]
|
||||
public bool TeOrad { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigitalisAlapProgram), ResourceType = typeof(OrarendResource))]
|
||||
public bool DigitalisAlapProgram { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP23517201700038Miapalya), ResourceType = typeof(OrarendResource))]
|
||||
public bool EFOP23517201700038Miapalya { get; set; }
|
||||
|
||||
public static List<AdminKozpontiOrakOsztalyokGridModel> MapOsztalyItemCoListToOsztalyokGridModelList(List<OsztalyItemCo> osztalyItemCoList, bool isSorszamozando)
|
||||
{
|
||||
List<AdminKozpontiOrakOsztalyokGridModel> list = new List<AdminKozpontiOrakOsztalyokGridModel>();
|
||||
|
||||
foreach (OsztalyItemCo osztalyItemCo in osztalyItemCoList)
|
||||
{
|
||||
var temp = new AdminKozpontiOrakOsztalyokGridModel
|
||||
{
|
||||
ID = osztalyItemCo.Id.ToString(),
|
||||
Osztaly = osztalyItemCo.Nev,
|
||||
TanarID = osztalyItemCo.OsztalyfonokId,
|
||||
TeremID = osztalyItemCo.TeremId,
|
||||
Sorszamozando = isSorszamozando
|
||||
};
|
||||
|
||||
list.Add(temp);
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<AdminKozpontiOrakOsztalyokGridModel> MapOrarendiOrakoListToOsztalyokGridModelList(IList<AdminKozpontiOrakOrarendiOraCo> orarendiOrakList)
|
||||
{
|
||||
List<AdminKozpontiOrakOsztalyokGridModel> list = new List<AdminKozpontiOrakOsztalyokGridModel>();
|
||||
|
||||
foreach (AdminKozpontiOrakOrarendiOraCo item in orarendiOrakList)
|
||||
{
|
||||
var temp = new AdminKozpontiOrakOsztalyokGridModel
|
||||
{
|
||||
ID = item.Id.ToString(),
|
||||
Osztaly = item.OsztalyNev,
|
||||
Tanar = item.TanarNev,
|
||||
TanarID = item.TanarId,
|
||||
Tantargy = item.TantargyNev,
|
||||
TantargyID = item.TantargyId ?? 0,
|
||||
Terem = item.TeremNev,
|
||||
TeremID = item.TeremId,
|
||||
OraKezdete = item.OraKezdete ?? DateTime.Now,
|
||||
OraVege = item.OraVege ?? DateTime.Now,
|
||||
HanyadikOra = item.OraSorszam ?? 0,
|
||||
KozpontiOraGroupId = item.KozpontiOraGroupId
|
||||
};
|
||||
|
||||
list.Add(temp);
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,156 @@
|
|||
using System;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
// Órarend speciális adatok módosításnál frissíteni kell
|
||||
public class AdminKozpontiOrakRogzitesGridModel
|
||||
{
|
||||
public int OsztalyId { get; set; }
|
||||
public int TanarID { get; set; }
|
||||
public int TantargyID { get; set; }
|
||||
public int TeremID { get; set; }
|
||||
public bool Sorszamozando { get; set; }
|
||||
public bool ParhuzamosOra { get; set; }
|
||||
public bool Tulora { get; set; }
|
||||
public bool TAMOPOra { get; set; }
|
||||
public bool NemSzakrendszeruOra { get; set; }
|
||||
public bool KAPOra { get; set; }
|
||||
public bool VEKOP73317 { get; set; }
|
||||
public bool KIPOra { get; set; }
|
||||
public bool IKTTanora { get; set; }
|
||||
public bool NemzetisegiOra { get; set; }
|
||||
public bool IsFelnottoktatasiSzerzodes { get; set; }
|
||||
public bool OnlineOra { get; set; }
|
||||
public bool MindennaposTestneveles { get; set; }
|
||||
public bool IPRTanora { get; set; }
|
||||
public bool Differencialt { get; set; }
|
||||
public bool Kooperativ { get; set; }
|
||||
public bool Meres { get; set; }
|
||||
public bool Drama { get; set; }
|
||||
public bool Tiop { get; set; }
|
||||
public bool Bontott { get; set; }
|
||||
public bool Multikulturalis { get; set; }
|
||||
public bool EFOP32317 { get; set; }
|
||||
public bool KomplexOra { get; set; }
|
||||
public bool GINOP623 { get; set; }
|
||||
public bool EFOP31716EselyteremtesAKoznevelesben { get; set; }
|
||||
public bool EFOP33717 { get; set; }
|
||||
public bool TIOP11112120120001 { get; set; }
|
||||
public bool DFHT { get; set; }
|
||||
public bool Rahangolodas { get; set; }
|
||||
public bool Testmozgas { get; set; }
|
||||
public bool Muveszet { get; set; }
|
||||
public bool Eletgyakorlat { get; set; }
|
||||
public bool Logika { get; set; }
|
||||
public bool TeOrad { get; set; }
|
||||
public bool DigitalisAlapProgram { get; set; }
|
||||
public bool EFOP23517201700038Miapalya { get; set; }
|
||||
public bool TanevTananyaganakIsmetlese { get; set; }
|
||||
public bool TanevTananyaganakKiegeszitese { get; set; }
|
||||
public bool TanulokDigitalisKeszsegfejlesztese { get; set; }
|
||||
public bool Projektmunka { get; set; }
|
||||
public bool TanulokKompenzaciosIraskeszsegFejlesztese { get; set; }
|
||||
public bool TanulokKompenzaciosOlvasasiKepessegFejlesztese { get; set; }
|
||||
public bool TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese { get; set; }
|
||||
public bool TanulokNyelviKepessegenekKompenzaciosFejlesztese { get; set; }
|
||||
public bool TanulokOnmegismeresenekSegitese { get; set; }
|
||||
public bool TanulokOnallosagraNevelese { get; set; }
|
||||
public bool TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese { get; set; }
|
||||
public bool TanulokOrientaciosTamogatasa { get; set; }
|
||||
public bool TanulokSzocialitasanakFejlesztese { get; set; }
|
||||
public bool TanulokTovabbhaladasatElokeszitoTevekenysegek { get; set; }
|
||||
public bool PedagogusAltalJelzettEgyeniEsetkezeles { get; set; }
|
||||
public bool ProjektmunkaTamogatasa { get; set; }
|
||||
public bool DigitalisKeszsegfejlesztes { get; set; }
|
||||
public bool KozossegiMunkaTamogatasa { get; set; }
|
||||
public bool TanoraElokeszitesenekTamogatasa { get; set; }
|
||||
public bool TanoraLebonyolitasanakTamogatasa { get; set; }
|
||||
public bool NapkozisTevekenysegKeretebenEgyeniFejlesztes { get; set; }
|
||||
}
|
||||
|
||||
public static class KozpontiOraConverter
|
||||
{
|
||||
public static OrarendiOraModel ConvertToOrarendiOra(AdminKozpontiOrakRogzitesGridModel r, int csengetesirendId, DateTime Start, DateTime End, int HanyadikOra)
|
||||
{
|
||||
var orarendiOramodel = new OrarendiOraModel
|
||||
{
|
||||
ModositasiIdoszakTipus = (int)OraModositasiIdoszakTipus.EgyOra,
|
||||
TeremID = r.TeremID,
|
||||
OraErvenyessegKezdete = Start,
|
||||
OraErvenyessegVege = End,
|
||||
OraKezdete = Start,
|
||||
OraVege = End,
|
||||
CsengetesiRendID = csengetesirendId,
|
||||
Oraszam = HanyadikOra,
|
||||
TTFModel = new TTFModel
|
||||
{
|
||||
TantargyID = r.TantargyID,
|
||||
TanarID = r.TanarID,
|
||||
OsztalyID = SDAConvert.ToInt32(r.OsztalyId)
|
||||
},
|
||||
// Órarend speciális adatok módosításnál frissíteni kell
|
||||
Sorszamozando = r.Sorszamozando,
|
||||
ParhuzamosOra = r.ParhuzamosOra,
|
||||
Tulora = r.Tulora,
|
||||
TAMOPOra = r.TAMOPOra,
|
||||
NemSzakrendszeruOra = r.NemSzakrendszeruOra,
|
||||
KAPOra = r.KAPOra,
|
||||
VEKOP73317 = r.VEKOP73317,
|
||||
KIPOra = r.KIPOra,
|
||||
IKTTanora = r.IKTTanora,
|
||||
NemzetisegiOra = r.NemzetisegiOra,
|
||||
IsFelnottoktatasiSzerzodes = r.IsFelnottoktatasiSzerzodes,
|
||||
MindennaposTestneveles = r.MindennaposTestneveles,
|
||||
IPRTanora = r.IPRTanora,
|
||||
Differencialt = r.Differencialt,
|
||||
Kooperativ = r.Kooperativ,
|
||||
Meres = r.Meres,
|
||||
Drama = r.Drama,
|
||||
Tiop = r.Tiop,
|
||||
Bontott = r.Bontott,
|
||||
OnlineOra = r.OnlineOra,
|
||||
Multikulturalis = r.Multikulturalis,
|
||||
EFOP32317 = r.EFOP32317,
|
||||
KomplexOra = r.KomplexOra,
|
||||
GINOP623 = r.GINOP623,
|
||||
EFOP31716EselyteremtesAKoznevelesben = r.EFOP31716EselyteremtesAKoznevelesben,
|
||||
EFOP33717 = r.EFOP33717,
|
||||
TIOP11112120120001 = r.TIOP11112120120001,
|
||||
DFHT = r.DFHT,
|
||||
Rahangolodas = r.Rahangolodas,
|
||||
Testmozgas = r.Testmozgas,
|
||||
Muveszet = r.Muveszet,
|
||||
Eletgyakorlat = r.Eletgyakorlat,
|
||||
Logika = r.Logika,
|
||||
TeOrad = r.TeOrad,
|
||||
DigitalisAlapProgram = r.DigitalisAlapProgram,
|
||||
EFOP23517201700038Miapalya = r.EFOP23517201700038Miapalya,
|
||||
TanevTananyaganakIsmetlese = r.TanevTananyaganakIsmetlese,
|
||||
TanevTananyaganakKiegeszitese = r.TanevTananyaganakKiegeszitese,
|
||||
TanulokDigitalisKeszsegfejlesztese = r.TanulokDigitalisKeszsegfejlesztese,
|
||||
Projektmunka = r.Projektmunka,
|
||||
TanulokKompenzaciosIraskeszsegFejlesztese = r.TanulokKompenzaciosIraskeszsegFejlesztese,
|
||||
TanulokKompenzaciosOlvasasiKepessegFejlesztese = r.TanulokKompenzaciosOlvasasiKepessegFejlesztese,
|
||||
TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese = r.TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese,
|
||||
TanulokNyelviKepessegenekKompenzaciosFejlesztese = r.TanulokNyelviKepessegenekKompenzaciosFejlesztese,
|
||||
TanulokOnmegismeresenekSegitese = r.TanulokOnmegismeresenekSegitese,
|
||||
TanulokOnallosagraNevelese = r.TanulokOnallosagraNevelese,
|
||||
TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese = r.TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese,
|
||||
TanulokOrientaciosTamogatasa = r.TanulokOrientaciosTamogatasa,
|
||||
TanulokSzocialitasanakFejlesztese = r.TanulokSzocialitasanakFejlesztese,
|
||||
TanulokTovabbhaladasatElokeszitoTevekenysegek = r.TanulokTovabbhaladasatElokeszitoTevekenysegek,
|
||||
PedagogusAltalJelzettEgyeniEsetkezeles = r.PedagogusAltalJelzettEgyeniEsetkezeles,
|
||||
ProjektmunkaTamogatasa = r.ProjektmunkaTamogatasa,
|
||||
DigitalisKeszsegfejlesztes = r.DigitalisKeszsegfejlesztes,
|
||||
KozossegiMunkaTamogatasa = r.KozossegiMunkaTamogatasa,
|
||||
TanoraElokeszitesenekTamogatasa = r.TanoraElokeszitesenekTamogatasa,
|
||||
TanoraLebonyolitasanakTamogatasa = r.TanoraLebonyolitasanakTamogatasa,
|
||||
NapkozisTevekenysegKeretebenEgyeniFejlesztes = r.NapkozisTevekenysegKeretebenEgyeniFejlesztes
|
||||
};
|
||||
|
||||
return orarendiOramodel;
|
||||
}
|
||||
}
|
||||
}
|
190
KretaWeb/Areas/Orarend/Models/AdminKozpontiOrakRogzitesModel.cs
Normal file
190
KretaWeb/Areas/Orarend/Models/AdminKozpontiOrakRogzitesModel.cs
Normal file
|
@ -0,0 +1,190 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Reflection;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class AdminKozpontiOrakRogzitesModel
|
||||
{
|
||||
public int DefaultTanarID { get; set; }
|
||||
public int DefaultTantargyID { get; set; }
|
||||
public int DefaultTeremID { get; set; }
|
||||
|
||||
[KretaDisplayName(1532)] /*Sorszámozandó*/
|
||||
public bool Sorszamozando { get; set; }
|
||||
|
||||
[KretaDisplayName(1544)] /*>Párhuzamos óra*/
|
||||
public bool ParhuzamosOra { get; set; }
|
||||
|
||||
[KretaDisplayName(1533)] /*Túlóra*/
|
||||
public bool Tulora { get; set; }
|
||||
|
||||
[KretaDisplayName(1534)] /*TÁMOP óra*/
|
||||
public bool TAMOPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KIPOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool KIPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.VEKOP73317), ResourceType = typeof(OrarendResource))]
|
||||
public bool VEKOP73317 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KAPOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool KAPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.NemSzakrendszeruOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool NemSzakrendszeruOra { get; set; }
|
||||
|
||||
[KretaDisplayName(1536)] /*IKT tanóra*/
|
||||
public bool IKTTanora { get; set; }
|
||||
|
||||
[KretaDisplayName(1537)] /*Nemzetiségi tanóra*/
|
||||
public bool NemzetisegiOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(TantargyResource.MegbizasiSzerzodesselEllatottOra), ResourceType = typeof(TantargyResource))]
|
||||
public bool IsFelnottoktatasiSzerzodes { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OnlineOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool OnlineOra { get; set; }
|
||||
|
||||
[KretaDisplayName(1538)] /*Mindennapos testnevelés*/
|
||||
public bool MindennaposTestneveles { get; set; }
|
||||
|
||||
[KretaDisplayName(1539)] /*IPR tanóra*/
|
||||
public bool IPRTanora { get; set; }
|
||||
|
||||
[KretaDisplayName(1540)] /*Differenciált*/
|
||||
public bool Differencialt { get; set; }
|
||||
|
||||
[KretaDisplayName(1541)] /*Kooperatív*/
|
||||
public bool Kooperativ { get; set; }
|
||||
|
||||
[KretaDisplayName(1542)] /*Mérés*/
|
||||
public bool Meres { get; set; }
|
||||
|
||||
[KretaDisplayName(1543)] /*Dráma*/
|
||||
public bool Drama { get; set; }
|
||||
|
||||
[KretaDisplayName(1545)] /*TIOP 12*/
|
||||
public bool Tiop { get; set; }
|
||||
|
||||
[KretaDisplayName(2593)] /*Bontott*/
|
||||
public bool Bontott { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Multikulturalis), ResourceType = typeof(OrarendResource))]
|
||||
public bool Multikulturalis { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP32317DigitalisKornyezetAKozenevelesben), ResourceType = typeof(OrarendResource))]
|
||||
public bool EFOP32317 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KomplexOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool KomplexOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.GINOP623), ResourceType = typeof(OrarendResource))]
|
||||
public bool GINOP623 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP31716EselyteremtesAKoznevelesben), ResourceType = typeof(OrarendResource))]
|
||||
public bool EFOP31716EselyteremtesAKoznevelesben { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP33717), ResourceType = typeof(OrarendResource))]
|
||||
public bool EFOP33717 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TIOP11112120120001), ResourceType = typeof(OrarendResource))]
|
||||
public bool TIOP11112120120001 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DFHT), ResourceType = typeof(OrarendResource))]
|
||||
public bool DFHT { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Rahangolodas), ResourceType = typeof(OrarendResource))]
|
||||
public bool Rahangolodas { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Testmozgas), ResourceType = typeof(OrarendResource))]
|
||||
public bool Testmozgas { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Muveszet), ResourceType = typeof(OrarendResource))]
|
||||
public bool Muveszet { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Eletgyakorlat), ResourceType = typeof(OrarendResource))]
|
||||
public bool Eletgyakorlat { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Logika), ResourceType = typeof(OrarendResource))]
|
||||
public bool Logika { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TeOrad), ResourceType = typeof(OrarendResource))]
|
||||
public bool TeOrad { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigitalisAlapProgram), ResourceType = typeof(OrarendResource))]
|
||||
public bool DigitalisAlapProgram { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP23517201700038Miapalya), ResourceType = typeof(OrarendResource))]
|
||||
public bool EFOP23517201700038Miapalya { get; set; }
|
||||
public DateTime? OraDatum { get; set; }
|
||||
public int? Oraszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.IsEgybefuggoGyakorlat), ResourceType = typeof(OrarendResource))]
|
||||
public bool IsEgybefuggoGyakorlat { get; set; }
|
||||
|
||||
public int GetNumberOfTrueProperties()
|
||||
{
|
||||
var result = 0;
|
||||
|
||||
foreach (PropertyInfo prop in GetType().GetProperties())
|
||||
{
|
||||
var type = Nullable.GetUnderlyingType(prop.PropertyType) ?? prop.PropertyType;
|
||||
if (type == typeof(Boolean) && (bool)prop.GetValue(this))
|
||||
{
|
||||
result++;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public static AdminKozpontiOrakRogzitesModel MapFromTanoraAdatok(TanoraAdatok tanoraAdatok)
|
||||
{
|
||||
return new AdminKozpontiOrakRogzitesModel
|
||||
{
|
||||
Sorszamozando = tanoraAdatok.Sorszamozando,
|
||||
ParhuzamosOra = tanoraAdatok.ParhuzamosOra,
|
||||
Tulora = tanoraAdatok.Tulora,
|
||||
TAMOPOra = tanoraAdatok.TAMOPOra,
|
||||
KIPOra = tanoraAdatok.KIPOra,
|
||||
VEKOP73317 = tanoraAdatok.VEKOP73317,
|
||||
KAPOra = tanoraAdatok.KAPOra,
|
||||
NemSzakrendszeruOra = tanoraAdatok.NemSzakrendszeruOra,
|
||||
IKTTanora = tanoraAdatok.IKTTanora,
|
||||
NemzetisegiOra = tanoraAdatok.NemzetisegiOra,
|
||||
IsEgybefuggoGyakorlat = tanoraAdatok.IsEgybefuggoGyakorlat,
|
||||
IsFelnottoktatasiSzerzodes = tanoraAdatok.IsFelnottoktatasiSzerzodes,
|
||||
OnlineOra = tanoraAdatok.OnlineOra,
|
||||
MindennaposTestneveles = tanoraAdatok.MindennaposTestneveles,
|
||||
IPRTanora = tanoraAdatok.IPRTanora,
|
||||
Differencialt = tanoraAdatok.Differencialt,
|
||||
Kooperativ = tanoraAdatok.Kooperativ,
|
||||
Meres = tanoraAdatok.Meres,
|
||||
Drama = tanoraAdatok.Drama,
|
||||
Tiop = tanoraAdatok.Tiop,
|
||||
TIOP11112120120001 = tanoraAdatok.TIOP11112120120001,
|
||||
Bontott = tanoraAdatok.Bontott,
|
||||
Multikulturalis = tanoraAdatok.Multikulturalis,
|
||||
EFOP32317 = tanoraAdatok.EFOP32317,
|
||||
EFOP33717 = tanoraAdatok.EFOP33717,
|
||||
EFOP31716EselyteremtesAKoznevelesben = tanoraAdatok.EFOP31716EselyteremtesAKoznevelesben,
|
||||
KomplexOra = tanoraAdatok.KomplexOra,
|
||||
GINOP623 = tanoraAdatok.GINOP623,
|
||||
DFHT = tanoraAdatok.DFHT,
|
||||
Rahangolodas = tanoraAdatok.Rahangolodas,
|
||||
Testmozgas = tanoraAdatok.Testmozgas,
|
||||
Muveszet = tanoraAdatok.Muveszet,
|
||||
Eletgyakorlat = tanoraAdatok.Eletgyakorlat,
|
||||
Logika = tanoraAdatok.Logika,
|
||||
TeOrad = tanoraAdatok.TeOrad,
|
||||
DigitalisAlapProgram = tanoraAdatok.DigitalisAlapProgram,
|
||||
EFOP23517201700038Miapalya = tanoraAdatok.EFOP23517201700038Miapalya,
|
||||
OraDatum = tanoraAdatok.OraDatum,
|
||||
Oraszam = tanoraAdatok.Oraszam
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
using System.Collections.Generic;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class AdminKozpontiOrakRogzitesSelectedModel
|
||||
{
|
||||
public int OsztalyId { get; set; }
|
||||
public int TanarId { get; set; }
|
||||
public int TeremId { get; set; }
|
||||
|
||||
public static List<AdminSelectedKozpontiOraCo> MapListToKozpontiOrakOrarendiOrakUtkozesCoList(List<AdminKozpontiOrakRogzitesSelectedModel> list, int oraSzam)
|
||||
{
|
||||
var result = new List<AdminSelectedKozpontiOraCo>();
|
||||
|
||||
foreach (AdminKozpontiOrakRogzitesSelectedModel item in list)
|
||||
{
|
||||
var temp = new AdminSelectedKozpontiOraCo
|
||||
{
|
||||
OsztalyId = item.OsztalyId,
|
||||
TanarId = item.TanarId,
|
||||
TeremId = item.TeremId,
|
||||
OraSzam = oraSzam
|
||||
};
|
||||
|
||||
result.Add(temp);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public class DeserializeHelper
|
||||
{
|
||||
public string JsonContent { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class AdminKozpontiOrakSearchModel
|
||||
{
|
||||
public DateTime Start { get; set; }
|
||||
|
||||
public DateTime End { get; set; }
|
||||
|
||||
public int HanyadikOra { get; set; }
|
||||
|
||||
public List<AdminKozpontiOrakRogzitesSelectedModel> KozpontiOrakList { get; set; }
|
||||
|
||||
public string CreateModelsJson { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,67 @@
|
|||
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.Orarend.Models
|
||||
{
|
||||
public class AdminNemElerhetoOrarendiElemGridModel : IKretaIdentity
|
||||
{
|
||||
public const string NemElerhetoOrarendiElemExportAttributeId = nameof(NemElerhetoOrarendiElemExportAttributeId);
|
||||
|
||||
public AdminNemElerhetoOrarendiElemGridModel() { }
|
||||
|
||||
public AdminNemElerhetoOrarendiElemGridModel(NemElerhetoOrarendiElemItemCo itemCo)
|
||||
{
|
||||
ID = itemCo.Id;
|
||||
ErvenyessegKezdete = itemCo.ErvenyessegKezdete;
|
||||
ErvenyessegVege = itemCo.ErvenyessegVege;
|
||||
Tanar = itemCo.Tanar;
|
||||
TanarElotagNelkul = itemCo.TanarElotagNelkul;
|
||||
OsztalyCsoport = itemCo.OsztalyCsoport;
|
||||
Tantargy = itemCo.Tantargy;
|
||||
Hetirend = itemCo.Hetirend;
|
||||
Nap = itemCo.Nap;
|
||||
Terem = itemCo.Terem;
|
||||
}
|
||||
|
||||
public string ID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ErvenyessegKezdete), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(NemElerhetoOrarendiElemExportAttributeId, 00, nameof(OrarendResource.ErvenyessegKezdete), typeof(OrarendResource))]
|
||||
public DateTime? ErvenyessegKezdete { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ErvenyessegVege), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(NemElerhetoOrarendiElemExportAttributeId, 01, nameof(OrarendResource.ErvenyessegVege), typeof(OrarendResource))]
|
||||
public DateTime? ErvenyessegVege { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tanar), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(NemElerhetoOrarendiElemExportAttributeId, 02, nameof(OrarendResource.Tanar), typeof(OrarendResource))]
|
||||
public string Tanar { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tanar), ResourceType = typeof(OrarendResource))]
|
||||
public string TanarElotagNelkul { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(NemElerhetoOrarendiElemExportAttributeId, 03, nameof(OrarendResource.OsztalyCsoport), typeof(OrarendResource))]
|
||||
public string OsztalyCsoport { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(NemElerhetoOrarendiElemExportAttributeId, 04, nameof(OrarendResource.Tantargy), typeof(OrarendResource))]
|
||||
public string Tantargy { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Hetirend), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(NemElerhetoOrarendiElemExportAttributeId, 05, nameof(OrarendResource.Hetirend), typeof(OrarendResource))]
|
||||
public string Hetirend { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HetNapja), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(NemElerhetoOrarendiElemExportAttributeId, 06, nameof(OrarendResource.HetNapja), typeof(OrarendResource))]
|
||||
public string Nap { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Terem), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(NemElerhetoOrarendiElemExportAttributeId, 07, nameof(OrarendResource.Terem), typeof(OrarendResource))]
|
||||
public string Terem { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,70 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class AdminNemElerhetoOrarendiElemSearchModel
|
||||
{
|
||||
[Display(Name = nameof(OrarendResource.ErvenyessegKezdete), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? ErvenyessegKezdeteTol { get; set; }
|
||||
public DateTime? ErvenyessegKezdeteIg { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ErvenyessegVege), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? ErvenyessegVegeTol { get; set; }
|
||||
public DateTime? ErvenyessegVegeIg { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tanar), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanarId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Terem), ResourceType = typeof(OrarendResource))]
|
||||
public int? TeremId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HetNapja), ResourceType = typeof(OrarendResource))]
|
||||
public int? NapId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Hetirend), ResourceType = typeof(OrarendResource))]
|
||||
public int? HetirendId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public int? TantargyId { get; set; }
|
||||
|
||||
public static AdminNemElerhetoOrarendiElemCO ConvertModelToCo(AdminNemElerhetoOrarendiElemSearchModel model)
|
||||
{
|
||||
return new AdminNemElerhetoOrarendiElemCO()
|
||||
{
|
||||
ErvenyessegKezdeteTol = model.ErvenyessegKezdeteTol,
|
||||
ErvenyessegKezdeteIg = model.ErvenyessegKezdeteIg,
|
||||
ErvenyessegVegeTol = model.ErvenyessegVegeTol,
|
||||
ErvenyessegVegeIg = model.ErvenyessegVegeIg,
|
||||
OsztalyCsoportId = model.OsztalyCsoportId,
|
||||
TanarId = model.TanarId,
|
||||
TeremId = model.TeremId,
|
||||
NapId = model.NapId,
|
||||
HetirendId = model.HetirendId,
|
||||
TantargyId = model.TantargyId
|
||||
};
|
||||
}
|
||||
|
||||
public AdminNemElerhetoOrarendiElemCO ConvertToCo()
|
||||
{
|
||||
return new AdminNemElerhetoOrarendiElemCO()
|
||||
{
|
||||
ErvenyessegKezdeteTol = this.ErvenyessegKezdeteTol,
|
||||
ErvenyessegKezdeteIg = this.ErvenyessegKezdeteIg,
|
||||
ErvenyessegVegeTol = this.ErvenyessegVegeTol,
|
||||
ErvenyessegVegeIg = this.ErvenyessegVegeIg,
|
||||
OsztalyCsoportId = this.OsztalyCsoportId,
|
||||
TanarId = this.TanarId,
|
||||
TeremId = this.TeremId,
|
||||
NapId = this.NapId,
|
||||
HetirendId = this.HetirendId,
|
||||
TantargyId = this.TantargyId
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
37
KretaWeb/Areas/Orarend/Models/AdminOsztalyOrarendModel.cs
Normal file
37
KretaWeb/Areas/Orarend/Models/AdminOsztalyOrarendModel.cs
Normal file
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Helpers.TabStrip;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class AdminOsztalyOrarendModel
|
||||
{
|
||||
public AdminOsztalyOrarendModel()
|
||||
{
|
||||
TabList = new List<TabStripItemModel>();
|
||||
}
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? Osztaly { get; set; }
|
||||
|
||||
public string HetirendJson { get; set; }
|
||||
public string NaptariHetekHetirendJson { get; set; }
|
||||
|
||||
public List<TabStripItemModel> TabList { get; set; }
|
||||
|
||||
public TimeSpan CalendarMinTime { get; set; }
|
||||
public TimeSpan CalendarMaxTime { get; set; }
|
||||
|
||||
public TimeSpan CsengetesiRendMinTime { get; set; }
|
||||
public TimeSpan CsengetesiRendMaxTime { get; set; }
|
||||
|
||||
public bool IsOravegeBeallitasOrahosszAlapjan { get; set; }
|
||||
public string CopyOrarendJson { get; set; }
|
||||
|
||||
public bool IsFromSzervezet { get; set; }
|
||||
public string ControllerName => IsFromSzervezet ? Constants.Controllers.DualisAdminOsztalyOrarend : Constants.Controllers.AdminOsztalyOrarend;
|
||||
public string ApiControllerName => IsFromSzervezet ? Constants.ApiControllers.DualisAdminOsztalyOrarendApi : Constants.ApiControllers.AdminOsztalyOrarendApi;
|
||||
}
|
||||
}
|
42
KretaWeb/Areas/Orarend/Models/AdminTanariOrarendModel.cs
Normal file
42
KretaWeb/Areas/Orarend/Models/AdminTanariOrarendModel.cs
Normal file
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
using Kreta.Web.Helpers.TabStrip;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class AdminTanariOrarendModel
|
||||
{
|
||||
public AdminTanariOrarendModel()
|
||||
{
|
||||
TabList = new List<TabStripItemModel>();
|
||||
}
|
||||
|
||||
[Display(Name = nameof(AlkalmazottResource.Tanar), ResourceType = typeof(AlkalmazottResource))]
|
||||
public int? Tanar { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.Osztaly), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? Osztaly { get; set; }
|
||||
|
||||
public string HetirendJson { get; set; }
|
||||
public string NaptariHetekHetirendJson { get; set; }
|
||||
public int TanarId { get; set; }
|
||||
|
||||
public List<TabStripItemModel> TabList { get; set; }
|
||||
|
||||
public TimeSpan CalendarMinTime { get; set; }
|
||||
public TimeSpan CalendarMaxTime { get; set; }
|
||||
|
||||
public TimeSpan CsengetesiRendMinTime { get; set; }
|
||||
public TimeSpan CsengetesiRendMaxTime { get; set; }
|
||||
|
||||
public bool IsOravegeBeallitasOrahosszAlapjan { get; set; }
|
||||
public string CopyOrarendJson { get; set; }
|
||||
|
||||
public bool IsFromSzervezet { get; set; }
|
||||
public string ControllerName => IsFromSzervezet ? Constants.Controllers.DualisAdminTanariOrarend : Constants.Controllers.AdminTanariOrarend;
|
||||
public string ApiControllerName => IsFromSzervezet ? Constants.ApiControllers.DualisAdminTanariOrarendApi : Constants.ApiControllers.AdminTanariOrarendApi;
|
||||
}
|
||||
}
|
37
KretaWeb/Areas/Orarend/Models/AdminTeremOrarendModel.cs
Normal file
37
KretaWeb/Areas/Orarend/Models/AdminTeremOrarendModel.cs
Normal file
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
using Kreta.Web.Helpers.TabStrip;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class AdminTeremOrarendModel
|
||||
{
|
||||
public AdminTeremOrarendModel()
|
||||
{
|
||||
TabList = new List<TabStripItemModel>();
|
||||
}
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Terem), ResourceType = typeof(OrarendResource))]
|
||||
public int? Terem { get; set; }
|
||||
|
||||
public string HetirendJson { get; set; }
|
||||
public string NaptariHetekHetirendJson { get; set; }
|
||||
|
||||
public List<TabStripItemModel> TabList { get; set; }
|
||||
|
||||
public TimeSpan CalendarMinTime { get; set; }
|
||||
public TimeSpan CalendarMaxTime { get; set; }
|
||||
|
||||
public TimeSpan CsengetesiRendMinTime { get; set; }
|
||||
public TimeSpan CsengetesiRendMaxTime { get; set; }
|
||||
|
||||
public bool IsOravegeBeallitasOrahosszAlapjan { get; set; }
|
||||
public string CopyOrarendJson { get; set; }
|
||||
public bool IsFromSzervezet { get; set; }
|
||||
public string ControllerName => IsFromSzervezet ? Constants.Controllers.DualisAdminTeremOrarend : Constants.Controllers.AdminTeremOrarend;
|
||||
public string ApiControllerName => IsFromSzervezet ? Constants.ApiControllers.DualisAdminTeremOrarendApi : Constants.ApiControllers.AdminTeremOrarendApi;
|
||||
}
|
||||
}
|
26
KretaWeb/Areas/Orarend/Models/BaseOrarendTorleseModel.cs
Normal file
26
KretaWeb/Areas/Orarend/Models/BaseOrarendTorleseModel.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class BaseOrarendTorleseModel
|
||||
{
|
||||
public List<SelectListItem> OraTipusok { get; set; } = new List<SelectListItem>();
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(OrarendekTorleseResource.OraTipusMegadasaKotelezo), ErrorMessageResourceType = typeof(OrarendekTorleseResource))]
|
||||
public string OraTipus { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(OrarendekTorleseResource.IntervallumKezdeteDatumMegadasaKotelezo), ErrorMessageResourceType = typeof(OrarendekTorleseResource))]
|
||||
public DateTime? KezdeteDatum { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(OrarendekTorleseResource.IntervallumVegeDatumMegadasaKotelezo), ErrorMessageResourceType = typeof(OrarendekTorleseResource))]
|
||||
public DateTime? VegeDatum { get; set; }
|
||||
|
||||
public DateTime MinDatum { get; set; }
|
||||
|
||||
public DateTime MaxDatum { get; set; }
|
||||
}
|
||||
}
|
|
@ -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.Orarend.Models
|
||||
{
|
||||
public class BejelentettSzamonkeresekGridModel : IKretaIdentity
|
||||
{
|
||||
public const string BejelentettSzamonkeresekExportAttributeId = nameof(BejelentettSzamonkeresekExportAttributeId);
|
||||
|
||||
public BejelentettSzamonkeresekGridModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public BejelentettSzamonkeresekGridModel(BejelentettSzamonkeresekItemCo itemCo)
|
||||
{
|
||||
ID = itemCo.Id.ToString();
|
||||
SzamonkeresDatuma = itemCo.SzamonkeresDatuma;
|
||||
HetNapjaNev = itemCo.HetNapjaNev;
|
||||
HetNapjaId = itemCo.HetNapjaId;
|
||||
Oraszam = itemCo.Oraszam;
|
||||
TanarNev = itemCo.Tanarnev;
|
||||
TargyNev = itemCo.TargyNev;
|
||||
OsztalyNev = itemCo.OsztalyNev;
|
||||
ErtekelesModNev = itemCo.ErtekelesModNev;
|
||||
SzamonkeresMegnevezes = itemCo.SzamonkeresMegnevezes;
|
||||
BejelentesDatuma = itemCo.BejelentesDatuma;
|
||||
}
|
||||
|
||||
public string ID { get; set; }
|
||||
|
||||
[SimpleExportColumn(BejelentettSzamonkeresekExportAttributeId, 00, nameof(OrarendResource.Datum), typeof(OrarendResource))]
|
||||
[Display(Name = nameof(OrarendResource.Datum), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime SzamonkeresDatuma { get; set; }
|
||||
|
||||
[SimpleExportColumn(BejelentettSzamonkeresekExportAttributeId, 01, nameof(OrarendResource.HetNapja), typeof(OrarendResource))]
|
||||
[Display(Name = nameof(OrarendResource.HetNapja), ResourceType = typeof(OrarendResource))]
|
||||
public string HetNapjaNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HetNapja), ResourceType = typeof(OrarendResource))]
|
||||
public int? HetNapjaId { get; set; }
|
||||
|
||||
[SimpleExportColumn(BejelentettSzamonkeresekExportAttributeId, 02, nameof(OrarendResource.Oraszam), typeof(OrarendResource))]
|
||||
[Display(Name = nameof(OrarendResource.Oraszam), ResourceType = typeof(OrarendResource))]
|
||||
public int? Oraszam { get; set; }
|
||||
|
||||
[SimpleExportColumn(BejelentettSzamonkeresekExportAttributeId, 05, nameof(OrarendResource.Tanar), typeof(OrarendResource))]
|
||||
[Display(Name = nameof(OrarendResource.Tanar), ResourceType = typeof(OrarendResource))]
|
||||
public string TanarNev { get; set; }
|
||||
|
||||
[SimpleExportColumn(BejelentettSzamonkeresekExportAttributeId, 03, nameof(OrarendResource.Tantargy), typeof(OrarendResource))]
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public string TargyNev { get; set; }
|
||||
|
||||
[SimpleExportColumn(BejelentettSzamonkeresekExportAttributeId, 04, nameof(OrarendResource.OsztalyCsoport), typeof(OrarendResource))]
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
||||
public string OsztalyNev { get; set; }
|
||||
|
||||
[SimpleExportColumn(BejelentettSzamonkeresekExportAttributeId, 06, nameof(OrarendResource.SzamonkeresMod), typeof(OrarendResource))]
|
||||
[Display(Name = nameof(OrarendResource.SzamonkeresMod), ResourceType = typeof(OrarendResource))]
|
||||
public string ErtekelesModNev { get; set; }
|
||||
|
||||
[SimpleExportColumn(BejelentettSzamonkeresekExportAttributeId, 07, nameof(OrarendResource.SzamonkeresMegnevezes), typeof(OrarendResource))]
|
||||
[Display(Name = nameof(OrarendResource.SzamonkeresMegnevezes), ResourceType = typeof(OrarendResource))]
|
||||
public string SzamonkeresMegnevezes { get; set; }
|
||||
|
||||
[SimpleExportColumn(BejelentettSzamonkeresekExportAttributeId, 08, nameof(OrarendResource.BejelentesDatuma), typeof(OrarendResource))]
|
||||
[Display(Name = nameof(OrarendResource.BejelentesDatuma), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime BejelentesDatuma { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,76 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class BejelentettSzamonkeresekSearchModel
|
||||
{
|
||||
[Display(Name = nameof(OrarendResource.SzamonkeresDatum), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? DatumTol { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.SzamonkeresDatum), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? DatumIg { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HetNapja), ResourceType = typeof(OrarendResource))]
|
||||
public int? HetNapjaSrc { get; set; }
|
||||
|
||||
[KretaRange(0, 99)]
|
||||
[Display(Name = nameof(OrarendResource.Oraszam), ResourceType = typeof(OrarendResource))]
|
||||
public int? OraszamSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.RegiSzamonkeresekElrejtese), ResourceType = typeof(OrarendResource))]
|
||||
public bool RegiSzamonkeresekElrejtese { get; set; } = true;
|
||||
|
||||
[Display(Name = nameof(OrarendResource.SzamonkeresMod), ResourceType = typeof(OrarendResource))]
|
||||
public int? SzamonkeresModSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.SzamonkeresMegnevezes), ResourceType = typeof(OrarendResource))]
|
||||
public string SzamonkeresMegnevezesSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.BejelentesDatuma), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? BejelentesDatumaTol { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.BejelentesDatuma), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? BejelentesDatumaIg { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public int? TantargySrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tanar), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanarSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanuloNeve), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanuloId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KapcsolodoCsoportok), ResourceType = typeof(OrarendResource))]
|
||||
public bool KapcsolodoCsoportok { get; set; }
|
||||
|
||||
public SzamonkeresElorejelzesSearchCO ConvertToCo()
|
||||
{
|
||||
var co = new SzamonkeresElorejelzesSearchCO();
|
||||
|
||||
co.DatumTol = DatumTol;
|
||||
co.DatumIg = DatumIg;
|
||||
co.HetNapjaSrc = HetNapjaSrc;
|
||||
co.OraszamSrc = OraszamSrc;
|
||||
co.SzamonkeresModSrc = SzamonkeresModSrc;
|
||||
co.SzamonkeresMegnevezesSrc = SzamonkeresMegnevezesSrc;
|
||||
co.BejelentesDatumaTol = BejelentesDatumaTol;
|
||||
co.BejelentesDatumaIg = BejelentesDatumaIg;
|
||||
co.TantargySrc = TantargySrc;
|
||||
co.TanarSrc = TanarSrc;
|
||||
co.TanuloId = TanuloId;
|
||||
co.RegiSzamonkeresekElrejtese = RegiSzamonkeresekElrejtese;
|
||||
co.OsztalyCsoportId = OsztalyCsoportId;
|
||||
co.KapcsolodoCsoportok = KapcsolodoCsoportok;
|
||||
|
||||
return co;
|
||||
}
|
||||
}
|
||||
}
|
89
KretaWeb/Areas/Orarend/Models/CalendarModel.cs
Normal file
89
KretaWeb/Areas/Orarend/Models/CalendarModel.cs
Normal file
|
@ -0,0 +1,89 @@
|
|||
using System;
|
||||
using Kreta.BusinessLogic.Logic.Naplozas;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class CalendarModel
|
||||
{
|
||||
DateTime starttime;
|
||||
DateTime endtime;
|
||||
|
||||
public int EventId { get; set; }
|
||||
public EventTypeEnum EventType { get; set; }
|
||||
public bool IsDateAlreadyChangedToUtc { get; set; }
|
||||
public DateTime Start
|
||||
{
|
||||
get
|
||||
{
|
||||
return starttime;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (IsDateAlreadyChangedToUtc)
|
||||
{
|
||||
starttime = value.ToLocalTime();
|
||||
}
|
||||
else
|
||||
{
|
||||
starttime = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
public DateTime End
|
||||
{
|
||||
get
|
||||
{
|
||||
return endtime;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (IsDateAlreadyChangedToUtc)
|
||||
{
|
||||
endtime = value.ToLocalTime();
|
||||
}
|
||||
else
|
||||
{
|
||||
endtime = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
public bool AllDay { get; set; }
|
||||
public string EventColor { get; set; }
|
||||
public CalendarOraTypeEnum OraType { get; set; }
|
||||
public int? HelyettesitesId { get; set; }
|
||||
public int? HelyettesitoId { get; set; }
|
||||
public int? Hanyadikora { get; set; }
|
||||
public bool UseFoglakozas { get; set; }
|
||||
public bool isHelyettesites { get; set; }
|
||||
public bool IsOraOsszevonas { get; set; }
|
||||
public string Tema { get; set; }
|
||||
bool IsFromSzervezet { get; set; }
|
||||
|
||||
public void ConvertTo(NaplozasElokeszitesCo co)
|
||||
{
|
||||
//Mindenhol UTC date-et küldünk ezért kell local date-é alakítani minden esetben
|
||||
co.Start = Start.ToLocalTime();
|
||||
co.End = End.ToLocalTime();
|
||||
|
||||
if (OraType == CalendarOraTypeEnum.TanitasiOra || OraType == CalendarOraTypeEnum.TanoranKivuliNaplozottFoglalkozas)
|
||||
{
|
||||
co.TanitasiOraId = EventId;
|
||||
}
|
||||
if (OraType == CalendarOraTypeEnum.OrarendiOra || OraType == CalendarOraTypeEnum.TanoranKivuliFoglalkozas)
|
||||
{
|
||||
co.OrarendiOraId = EventId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public enum EventTypeEnum
|
||||
{
|
||||
UjOraFelvitele = 0,
|
||||
LetezoOraSzerkesztese = 1,
|
||||
EgeszNaposEsemeny = 2,
|
||||
UjEgyediOraFelvitel = 4,
|
||||
TanarHelyetesites = 5
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class CheckFoglalkozasRogzithetoResult
|
||||
{
|
||||
public bool IsOrarendiNap { get; set; }
|
||||
|
||||
public bool IsNaplozaras { get; set; }
|
||||
|
||||
public bool IsTanitasiNap { get; set; }
|
||||
|
||||
public bool IsNapirendMegnyithato { get; set; }
|
||||
|
||||
public bool IsCsakErtekelesZarasa { get; set; }
|
||||
}
|
||||
}
|
12
KretaWeb/Areas/Orarend/Models/CopyOrarendiElemModel.cs
Normal file
12
KretaWeb/Areas/Orarend/Models/CopyOrarendiElemModel.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class CopyOrarendiElemModel
|
||||
{
|
||||
public int copyId { get; set; }
|
||||
public DateTime dateFrom { get; set; }
|
||||
public DateTime dateTo { get; set; }
|
||||
public int oraszam { get; set; }
|
||||
}
|
||||
}
|
33
KretaWeb/Areas/Orarend/Models/CsoportOrarendTorleseModel.cs
Normal file
33
KretaWeb/Areas/Orarend/Models/CsoportOrarendTorleseModel.cs
Normal file
|
@ -0,0 +1,33 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Resources;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class CsoportOrarendTorleseModel : BaseOrarendTorleseModel
|
||||
{
|
||||
public IEnumerable<OrarendTorleseOsztalyCsoportListItem> CsoportList { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(OrarendekTorleseResource.LegalabbEgyCsoportKivalasztasaKotelezo), ErrorMessageResourceType = typeof(OrarendekTorleseResource))]
|
||||
public string SelectedCsoportok { get; set; }
|
||||
|
||||
public OrarendekTorleseCo ConvertToCo()
|
||||
{
|
||||
return new OrarendekTorleseCo
|
||||
{
|
||||
IntervallumKezdete = KezdeteDatum.Value,
|
||||
IntervallumVege = VegeDatum.Value,
|
||||
NezetTipus = (OrarendekTorleseNezetTipusEnum)Enum.Parse(typeof(OrarendekTorleseNezetTipusEnum), OraTipus),
|
||||
Csoportok = JsonConvert.DeserializeObject<List<OrarendTorleseOsztalyCsoportListItem>>(SelectedCsoportok).Select(x => new OrarendekTorleseListItemCo
|
||||
{
|
||||
Id = x.Id
|
||||
})
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
37
KretaWeb/Areas/Orarend/Models/CsoportVezetoOrarendModel.cs
Normal file
37
KretaWeb/Areas/Orarend/Models/CsoportVezetoOrarendModel.cs
Normal file
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
using Kreta.Web.Helpers.TabStrip;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class CsoportVezetoOrarendModel
|
||||
{
|
||||
public CsoportVezetoOrarendModel()
|
||||
{
|
||||
TabList = new List<TabStripItemModel>();
|
||||
}
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.Csoport), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? CsoportId { get; set; }
|
||||
|
||||
public string HetirendJson { get; set; }
|
||||
public string NaptariHetekHetirendJson { get; set; }
|
||||
|
||||
public bool ShowKerdoivPopup { get; set; }
|
||||
public List<TabStripItemModel> TabList { get; set; }
|
||||
|
||||
[KretaDisplayName(1681)] /*Helyettesített*/
|
||||
public int? Tanar { get; set; }
|
||||
|
||||
public bool isHelyettesites { get; set; }
|
||||
|
||||
public TimeSpan CalendarMinTime { get; set; }
|
||||
public TimeSpan CalendarMaxTime { get; set; }
|
||||
|
||||
public TimeSpan CsengetesiRendMinTime { get; set; }
|
||||
public TimeSpan CsengetesiRendMaxTime { get; set; }
|
||||
}
|
||||
}
|
60
KretaWeb/Areas/Orarend/Models/DigitalisOktatasAdatok.cs
Normal file
60
KretaWeb/Areas/Orarend/Models/DigitalisOktatasAdatok.cs
Normal file
|
@ -0,0 +1,60 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.Logic.Naplozas.Elokeszites;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Framework.Util;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class DigitalisOktatasAdatok
|
||||
{
|
||||
public DigitalisOktatasAdatok(int? szervezetTipusId)
|
||||
{
|
||||
DigTamEszkozTipusList = new List<SelectListItem>();
|
||||
SzervezetTipusId_DigitalisOktatasAdatok = szervezetTipusId;
|
||||
}
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigPlatformTipus), ResourceType = typeof(OrarendResource))]
|
||||
public int? DigPlatformTipusId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigEszkozTipus), ResourceType = typeof(OrarendResource))]
|
||||
public int? DigEszkozTipusId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigTamEszkozTipus), ResourceType = typeof(OrarendResource))]
|
||||
public string[] DigTamEszkozTipus { get; set; }
|
||||
|
||||
public List<SelectListItem> DigTamEszkozTipusList { get; set; }
|
||||
|
||||
public int? SzervezetTipusId_DigitalisOktatasAdatok { get; set; }
|
||||
|
||||
public void Fill(NaplozasElokeszitesModel model)
|
||||
{
|
||||
DigPlatformTipusId = model.OraAdat.DigPlatformTipusId ?? (int)DigPlatformTipusEnum.na;
|
||||
DigEszkozTipusId = model.OraAdat.DigEszkozTipusId ?? (int)DigEszkozTipusEnum.na;
|
||||
DigTamEszkozTipus = model.OraAdat.DigTamEszkozTipusIdList != null && model.OraAdat.DigTamEszkozTipusIdList.Count > 0 ? model.OraAdat.DigTamEszkozTipusIdList.Select(x => x.ToString()).ToArray() : new string[] { ((int)DigTamEszkozTipusEnum.na).ToString() };
|
||||
DigTamEszkozTipusList = GetDigTamEszkozTipusList();
|
||||
}
|
||||
|
||||
public List<SelectListItem> GetDigTamEszkozTipusList()
|
||||
{
|
||||
List<SelectListItem> dropdownListItems = new List<SelectListItem>();
|
||||
|
||||
foreach (var item in FrameworkEnumExtensions.EnumToList((int)GeneratedAdatszotarTipusEnum.DigTamEszkozTipus, ClaimData.SelectedTanevID.Value))
|
||||
{
|
||||
dropdownListItems.Add(new SelectListItem
|
||||
{
|
||||
Value = item.Key,
|
||||
Text = item.Value
|
||||
});
|
||||
}
|
||||
|
||||
return dropdownListItems;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
78
KretaWeb/Areas/Orarend/Models/ErtekelesNaplozasaGrid.cs
Normal file
78
KretaWeb/Areas/Orarend/Models/ErtekelesNaplozasaGrid.cs
Normal file
|
@ -0,0 +1,78 @@
|
|||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class ErtekelesNaplozasaGrid : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
public string Oka { get; set; }
|
||||
public bool ErtkelesMentesseg_BOOL { get; set; }
|
||||
public bool OraMentesseg_BOOL { get; set; }
|
||||
public bool SzovegesenErtekelheto_BOOL { get; set; }
|
||||
public bool BeirtOsztalyzat_BOOL { get; set; }
|
||||
public string BeirtOsztalyzatTitle { get; set; }
|
||||
|
||||
[KretaDisplayName(455)] /*Tanuló neve*/
|
||||
public string Nev { get; set; }
|
||||
|
||||
[KretaDisplayName(1817)] /*Átlag*/
|
||||
public double Atlag { get; set; }
|
||||
|
||||
[KretaDisplayName(275)] /*Osztályzat*/
|
||||
public string Osztalyzat { get; set; }
|
||||
|
||||
[KretaDisplayName(2619)] /*Magatartás*/
|
||||
public int? Magatartas { get; set; }
|
||||
|
||||
[KretaDisplayName(2620)] /*Szorgalom*/
|
||||
public int? Szorgalom { get; set; }
|
||||
|
||||
[KretaRange(0, 100, StringResourcesId = 4178)] //Az érték nem esik a megengedett tartományba
|
||||
[KretaDisplayName(2581)] /*Százalék*/
|
||||
public int Szazalek { get; set; }
|
||||
|
||||
[KretaDisplayName(276)] /*Szöveges értékelés*/
|
||||
public string Szoveg { get; set; }
|
||||
|
||||
[KretaDisplayName(1804)] //09
|
||||
public string Szeptember { get; set; }
|
||||
|
||||
[KretaDisplayName(1805)] //10
|
||||
public string Oktober { get; set; }
|
||||
|
||||
[KretaDisplayName(1806)] //11
|
||||
public string November { get; set; }
|
||||
|
||||
[KretaDisplayName(1807)] //12
|
||||
public string December { get; set; }
|
||||
|
||||
[KretaDisplayName(4350)] //01/I
|
||||
public string JanuarI { get; set; }
|
||||
|
||||
[KretaDisplayName(1815)] //I
|
||||
public string FeleviJegy { get; set; }
|
||||
|
||||
[KretaDisplayName(4352)] //01/II
|
||||
public string JanuarII { get; set; }
|
||||
|
||||
[KretaDisplayName(1810)] //02
|
||||
public string Februar { get; set; }
|
||||
|
||||
[KretaDisplayName(1811)] //03
|
||||
public string Marcius { get; set; }
|
||||
|
||||
[KretaDisplayName(1812)] //04
|
||||
public string Aprilis { get; set; }
|
||||
|
||||
[KretaDisplayName(1813)] //05
|
||||
public string Majus { get; set; }
|
||||
|
||||
[KretaDisplayName(1814)] //06
|
||||
public string Junius { get; set; }
|
||||
|
||||
[KretaDisplayName(1816)] //II
|
||||
public string EvvegiJegy { get; set; }
|
||||
}
|
||||
}
|
99
KretaWeb/Areas/Orarend/Models/FeladatokListajaGridModel.cs
Normal file
99
KretaWeb/Areas/Orarend/Models/FeladatokListajaGridModel.cs
Normal file
|
@ -0,0 +1,99 @@
|
|||
using System;
|
||||
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;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class FeladatokListajaGridModel : IKretaIdentity
|
||||
{
|
||||
#region Fields
|
||||
|
||||
public const string HazifeladatExportAttributeId = nameof(HazifeladatExportAttributeId);
|
||||
|
||||
#endregion
|
||||
|
||||
public FeladatokListajaGridModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public FeladatokListajaGridModel(HaziFeladatItemCo itemCo)
|
||||
{
|
||||
ID = itemCo.Id.ToString();
|
||||
OraDatuma = itemCo.OraDatuma;
|
||||
HaziFeladatRogzitesDatuma = itemCo.RogzitesDatuma;
|
||||
HaziFeladatHataridoDatuma = itemCo.HataridoDatuma;
|
||||
Tanar = itemCo.TanarNev;
|
||||
Tantargy = itemCo.TantargyNev;
|
||||
OraTema = itemCo.OraTema;
|
||||
TanarHazifeladat = itemCo.Szoveg;
|
||||
OraSorszama = itemCo.OraSorszama.ToString();
|
||||
HazifeladatId = itemCo.HazifeladatId;
|
||||
IsOnlineOraText = itemCo.IsOnlineOraText;
|
||||
FeladatTipusId = itemCo.FeladatTipusId;
|
||||
IsTanitasiOra = itemCo.IsTanitasiOra;
|
||||
IsToroltOra = itemCo.IsToroltOra;
|
||||
}
|
||||
|
||||
public string ID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraDatuma), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 00, nameof(OrarendResource.OraDatuma), typeof(OrarendResource))]
|
||||
public DateTime? OraDatuma { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.FeladatRogztesenekDatuma), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 06, nameof(OrarendResource.FeladatRogztesenekDatuma), typeof(OrarendResource))]
|
||||
public DateTime HaziFeladatRogzitesDatuma { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanarAltalRogzitettFeladatokHataridejenekDatuma), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 07, nameof(OrarendResource.TanarAltalRogzitettFeladatokHataridejenekDatuma), typeof(OrarendResource))]
|
||||
public DateTime? HaziFeladatHataridoDatuma { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanarNeve), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 02, nameof(OrarendResource.TanarNeve), typeof(OrarendResource))]
|
||||
public string Tanar { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 03, nameof(OrarendResource.Tantargy), typeof(OrarendResource))]
|
||||
public string Tantargy { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraTemaja), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 04, nameof(OrarendResource.OraTemaja), typeof(OrarendResource))]
|
||||
public string OraTema { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanarAltalRogzitettFeladat), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 05, nameof(OrarendResource.TanarAltalRogzitettFeladat), typeof(OrarendResource))]
|
||||
public string TanarHazifeladat { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HozzaszolasokSzama), ResourceType = typeof(OrarendResource))]
|
||||
public int DiakHaziSzam { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokSzamaKesz), ResourceType = typeof(OrarendResource))]
|
||||
public string TanulokSzamaKesz { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraNaponBeluliSorszama), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 01, nameof(OrarendResource.OraNaponBeluliSorszama), typeof(OrarendResource))]
|
||||
public string OraSorszama { get; set; }
|
||||
|
||||
public string OsztalyCsoport { get; set; }
|
||||
|
||||
public int HazifeladatId { get; set; }
|
||||
|
||||
public int FeladatTipusId { get; set; }
|
||||
|
||||
public string FeladatTipusName => ((FeladatTipusEnum)FeladatTipusId).GetDisplayName(ClaimData.SelectedTanevID.Value);
|
||||
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 08, nameof(OrarendResource.OnlineOra), typeof(OrarendResource))]
|
||||
public string IsOnlineOraText { get; set; }
|
||||
|
||||
public bool IsTanitasiOra { get; set; }
|
||||
|
||||
public bool IsToroltOra { get; set; }
|
||||
}
|
||||
}
|
103
KretaWeb/Areas/Orarend/Models/FeladatokListajaSrcModel.cs
Normal file
103
KretaWeb/Areas/Orarend/Models/FeladatokListajaSrcModel.cs
Normal file
|
@ -0,0 +1,103 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class FeladatokListajaSrcModel
|
||||
{
|
||||
|
||||
[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(OrarendResource.TanarNeve), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanarIdSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public int? TantargyIdSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraTemaja), ResourceType = typeof(OrarendResource))]
|
||||
public string OraTemaSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
||||
public int? OsztalyCsoportIdSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KapcsolodoCsoportok), ResourceType = typeof(OrarendResource))]
|
||||
public bool KellKapcsolodoCsoportokSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraDatuma), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? OraDatumaTolSrc { get; set; }
|
||||
public DateTime? OraDatumaIgSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanarAltalRogzitettFeladat), ResourceType = typeof(OrarendResource))]
|
||||
public string HazifeladatTemaSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.FeladatRogzitesenekDatuma), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? RogzitesTolSrc { get; set; }
|
||||
public DateTime? RogzitesIgSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanarAltalRgozitettFeladatokHataridejenekDatuma), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? HataridoTolSrc { get; set; }
|
||||
public DateTime? HataridoIgSrc { get; set; }
|
||||
|
||||
public string OsztalyCsoportComboUrl { get; set; }
|
||||
|
||||
public bool IsJustTanar { get; set; }
|
||||
|
||||
public bool IsKapcsolodoOsztalyCsoportokVisible { get; set; }
|
||||
|
||||
public HazifeladatokListajaTipusEnum HazifeladatokListajaTipus { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OnlineOra), ResourceType = typeof(OrarendResource))]
|
||||
public int? IsOnlineOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.FeladatTipusa), ResourceType = typeof(OrarendResource))]
|
||||
public int? FeladatTipusId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KellToroltOrasFeladat), ResourceType = typeof(OrarendResource))]
|
||||
public bool KellToroltOrasFeladat { get; set; }
|
||||
|
||||
public HazifeladatokListajaCO ToCo(IEnumerable<int> osztalyCsoportIds)
|
||||
{
|
||||
var co = new HazifeladatokListajaCO
|
||||
{
|
||||
FeladatKategoriaId = FeladatKategoriaId,
|
||||
FeladatEllatasiHelyId = FeladatEllatasiHelyId,
|
||||
TanarIdSrc = TanarIdSrc,
|
||||
TantargyIdSrc = TantargyIdSrc,
|
||||
OraTemaSrc = OraTemaSrc,
|
||||
KellKapcsolodoCsoportokSrc = KellKapcsolodoCsoportokSrc,
|
||||
OraDatumaTolSrc = OraDatumaTolSrc,
|
||||
OraDatumaIgSrc = OraDatumaIgSrc,
|
||||
HazifeladatTemaSrc = HazifeladatTemaSrc,
|
||||
RogzitesTolSrc = RogzitesTolSrc,
|
||||
RogzitesIgSrc = RogzitesIgSrc,
|
||||
HataridoTolSrc = HataridoTolSrc,
|
||||
HataridoIgSrc = HataridoIgSrc,
|
||||
OsztalyCsoportIds = new List<int>(),
|
||||
IsOnlineOra = IsOnlineOra,
|
||||
FeladatTipusId = FeladatTipusId,
|
||||
KellToroltOrasHazifeladat = KellToroltOrasFeladat,
|
||||
};
|
||||
|
||||
if (osztalyCsoportIds != null && osztalyCsoportIds.Any())
|
||||
{
|
||||
co.OsztalyCsoportIds.AddRange(osztalyCsoportIds);
|
||||
}
|
||||
|
||||
if (OsztalyCsoportIdSrc.HasValue)
|
||||
{
|
||||
co.OsztalyCsoportIds.Add(OsztalyCsoportIdSrc.Value);
|
||||
}
|
||||
|
||||
return co;
|
||||
}
|
||||
}
|
||||
}
|
15
KretaWeb/Areas/Orarend/Models/FelhelyOrarendTorleseModel.cs
Normal file
15
KretaWeb/Areas/Orarend/Models/FelhelyOrarendTorleseModel.cs
Normal file
|
@ -0,0 +1,15 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class FelhelyOrarendTorleseModel : BaseOrarendTorleseModel
|
||||
{
|
||||
[Required(ErrorMessageResourceName = nameof(OrarendekTorleseResource.LegalabbEgyFeladatellatasiHelyKivalasztasaKotelezo), ErrorMessageResourceType = typeof(OrarendekTorleseResource))]
|
||||
public string KivalasztottFelhelyekIds { get; set; } = null;
|
||||
|
||||
public List<SelectListItem> FelhelyList { get; set; } = new List<SelectListItem>();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class FelhelyOrarendTorleseParameterModel : BaseOrarendTorleseModel
|
||||
{
|
||||
public string KivalasztottFelhelyekIds { get; set; }
|
||||
|
||||
public OrarendekTorleseCo ConvertToCo()
|
||||
{
|
||||
return new OrarendekTorleseCo
|
||||
{
|
||||
IntervallumKezdete = KezdeteDatum.Value,
|
||||
IntervallumVege = VegeDatum.Value,
|
||||
NezetTipus = (OrarendekTorleseNezetTipusEnum)Enum.Parse(typeof(OrarendekTorleseNezetTipusEnum), OraTipus),
|
||||
FeladatellatasiHelyek = KivalasztottFelhelyekIds.Split(",".ToCharArray()).Select(x => new OrarendekTorleseListItemCo
|
||||
{
|
||||
Id = int.Parse(x)
|
||||
})
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
83
KretaWeb/Areas/Orarend/Models/FogadooraModel.cs
Normal file
83
KretaWeb/Areas/Orarend/Models/FogadooraModel.cs
Normal file
|
@ -0,0 +1,83 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Foolproof;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class FogadooraModel
|
||||
{
|
||||
public FogadooraModel()
|
||||
{
|
||||
SelectedOsztalyCsoportIdList = new List<int>();
|
||||
ModifiedOsztalyCsoportList = new Dictionary<int, bool>();
|
||||
FogadooraDatumList = new List<DateTime>();
|
||||
}
|
||||
|
||||
public int? Id { get; set; }
|
||||
|
||||
public List<int> SelectedOsztalyCsoportIdList { get; set; }
|
||||
public Dictionary<int, bool> ModifiedOsztalyCsoportList { get; set; }
|
||||
public List<DateTime> FogadooraDatumList { get; set; }
|
||||
|
||||
public DateTime FogadoOraDatuma { get; set; } //Fogadó óra napját ebből szedjük ki (hidden field lesz)
|
||||
public int? NemKotottMunkaidoId { get; set; }
|
||||
|
||||
[Display(Name = nameof(FogadooraResource.FogadooraKezdete), ResourceType = typeof(FogadooraResource))]
|
||||
[Required(ErrorMessageResourceName = nameof(FogadooraResource.FogadooraKezdeteMegadasaKotelezo), ErrorMessageResourceType = typeof(FogadooraResource))]
|
||||
public DateTime FogadoOraKezdete { get; set; } //Óra-percet ebből szedjük ki
|
||||
[Display(Name = nameof(FogadooraResource.FogadooraVege), ResourceType = typeof(FogadooraResource))]
|
||||
[Required(ErrorMessageResourceName = nameof(FogadooraResource.FogadooraVegeMegadasaKotelezo), ErrorMessageResourceType = typeof(FogadooraResource))]
|
||||
public DateTime FogadoOraVege { get; set; } //Óra-percet ebből szedjük ki
|
||||
[Required(ErrorMessageResourceName = nameof(FogadooraResource.NincsBeallitvaTeremAFogadoorahoz), ErrorMessageResourceType = typeof(FogadooraResource))]
|
||||
[Display(Name = nameof(FogadooraResource.Terem), ResourceType = typeof(FogadooraResource))]
|
||||
public int? TeremId { get; set; }
|
||||
[Display(Name = nameof(FogadooraResource.Terem), ResourceType = typeof(FogadooraResource))]
|
||||
public string TeremNev { get; set; }
|
||||
[Display(Name = nameof(FogadooraResource.Rendszeresseg), ResourceType = typeof(FogadooraResource))]
|
||||
public int Rendszeresseg { get; set; } //Enum
|
||||
[Display(Name = nameof(FogadooraResource.Rendszeresseg), ResourceType = typeof(FogadooraResource))]
|
||||
public string RendszeressegText { get; set; } //Enum
|
||||
[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; }
|
||||
[Display(Name = nameof(FogadooraResource.EgysegnyiIdopontokPerc), ResourceType = typeof(FogadooraResource))]
|
||||
public int EgysegnyiIdopontok { get; set; }
|
||||
[Display(Name = nameof(FogadooraResource.FogadooraIdosavokraOsztasa), ResourceType = typeof(FogadooraResource))]
|
||||
public bool? IsIdosavraOsztas { get; set; }
|
||||
[Display(Name = nameof(FogadooraResource.ElsoAlkalomDatuma), ResourceType = typeof(FogadooraResource))]
|
||||
public DateTime? RendszeresFogadooraElsoDatuma { get; set; }
|
||||
[Display(Name = nameof(FogadooraResource.UtolsoAlkalomDatuma), ResourceType = typeof(FogadooraResource))]
|
||||
public DateTime? RendszeresFogadooraUtolsoDatuma { get; set; }
|
||||
public bool IsEgyAlkalomModosul { get; set; }
|
||||
[Display(Name = nameof(FogadooraResource.JelenjenMegFaliujsagon), ResourceType = typeof(FogadooraResource))]
|
||||
public bool IsFaliujsagonMegjelenjen { get; set; }
|
||||
|
||||
[RequiredIf(nameof(IsFaliujsagonMegjelenjen), true, ErrorMessageResourceName = nameof(FogadooraResource.FaliujsagErvenyessegKezdeteKotelezo), ErrorMessageResourceType = typeof(FogadooraResource))]
|
||||
[DateRange(ErrorMessageResourceName = nameof(FogadooraResource.FaliujsagErvenyessegKezdeteNemErvenyes), ErrorMessageResourceType = typeof(FogadooraResource))]
|
||||
[Display(Name = nameof(FogadooraResource.FaliujsagErvenyessegKezdete), ResourceType = typeof(FogadooraResource))]
|
||||
public DateTime? FaliujsagErvenyessegKezdete { get; set; }
|
||||
|
||||
[RequiredIf(nameof(IsFaliujsagonMegjelenjen), true, ErrorMessageResourceName = nameof(FogadooraResource.FaliujsagErvenyessegVegeKotelezo), ErrorMessageResourceType = typeof(FogadooraResource))]
|
||||
[DateRange(ErrorMessageResourceName = nameof(FogadooraResource.FaliujsagErvenyessegVegeNemErvenyes), ErrorMessageResourceType = typeof(FogadooraResource))]
|
||||
[Display(Name = nameof(FogadooraResource.FaliujsagErvenyessegVege), ResourceType = typeof(FogadooraResource))]
|
||||
public DateTime? FaliujsagErvenyessegVege { get; set; }
|
||||
|
||||
public int ModositasiIdoszakTipus { get; set; }
|
||||
public string JSHelperNev { get; set; }
|
||||
public bool IsCalendar { get; set; }
|
||||
public bool IsRendszeressegModosithato { get; set; }
|
||||
public bool VanGvJelentkezes { get; set; }
|
||||
|
||||
[Display(Name = nameof(FogadooraResource.KerjukValasszaKiAFogadooraIdopontjait), ResourceType = typeof(FogadooraResource))]
|
||||
public DateTime? FogadooraEgyebGyakorisagDefaultDate { get; set; }
|
||||
public DateTime TanevUtolsoNapja { get; set; }
|
||||
|
||||
[Display(Name = nameof(FogadooraResource.JelentkezesHatarideje), ResourceType = typeof(FogadooraResource))]
|
||||
public int? JelentkezesHatarideje { get; set; } = 0;
|
||||
public bool IsNemKellNemKotott { get; set; }
|
||||
}
|
||||
}
|
104
KretaWeb/Areas/Orarend/Models/FoglalkozasModel.cs
Normal file
104
KretaWeb/Areas/Orarend/Models/FoglalkozasModel.cs
Normal file
|
@ -0,0 +1,104 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class FoglalkozasModel
|
||||
{
|
||||
public int? ID { get; set; }
|
||||
public bool UseFoglalkozas { get; set; }
|
||||
public DateTime? KezdeteDatum { get; set; }
|
||||
public DateTime? VegeDatum { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Napirend), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int? TanoranKivuliFoglalkozas { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int? TantargyId { get; set; }
|
||||
|
||||
[Display(Name = nameof(ExcelNyomtatvanyResource.Tanarok), ResourceType = typeof(ExcelNyomtatvanyResource))]
|
||||
public string Tanarok { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HelyettesitoTanar), ResourceType = typeof(OrarendResource))]
|
||||
public int? HelyettesitettTanarID { get; set; }
|
||||
|
||||
[Display(Name = nameof(ImportExportOrarendResource.ImportHeaderNameFoglalkozasKezdete), ResourceType = typeof(ImportExportOrarendResource))]
|
||||
public string KezdeteLabel { get; set; }
|
||||
|
||||
[Display(Name = nameof(ImportExportOrarendResource.ImportHeaderNameFoglalkozasVege), ResourceType = typeof(ImportExportOrarendResource))]
|
||||
public string VegeLabel { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 4186)]/*Foglalkozás kezdetének megadása kötelező*/
|
||||
[Display(Name = nameof(ImportExportOrarendResource.ImportHeaderNameFoglalkozasKezdete), ResourceType = typeof(ImportExportOrarendResource))]
|
||||
public DateTime? Kezdete { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 4187)]/*Foglalkozás kezdetének megadása kötelező*/
|
||||
[Display(Name = nameof(ImportExportOrarendResource.ImportHeaderNameFoglalkozasVege), ResourceType = typeof(ImportExportOrarendResource))]
|
||||
public DateTime? Vege { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Helyiseg), ResourceType = typeof(OrarendResource))]
|
||||
public int? TeremID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Sorszamozando), ResourceType = typeof(OrarendResource))]
|
||||
public bool Sorszamozando { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ParhuzamosOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool ParhuzamosOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tulora), ResourceType = typeof(OrarendResource))]
|
||||
public bool Tulora { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TamopOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool TAMOPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KIPOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool KIPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.VEKOP73317), ResourceType = typeof(OrarendResource))]
|
||||
public bool VEKOP73317 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KAPOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool KAPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.NemSzakrendszeruOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool NemSzakrendszeruOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.IktTanora), ResourceType = typeof(OrarendResource))]
|
||||
public bool IKTTanora { get; set; }
|
||||
|
||||
[Display(Name = nameof(TantargyResource.NemzetisegiOra), ResourceType = typeof(TantargyResource))]
|
||||
public bool NemzetisegiOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(TantargyResource.MegbizasiSzerzodesselEllatottOra), ResourceType = typeof(TantargyResource))]
|
||||
public bool IsFelnottoktatasiSzerzodes { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.MindennaposTestneveles), ResourceType = typeof(OrarendResource))]
|
||||
public bool MindennaposTestneveles { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.IprTanora), ResourceType = typeof(OrarendResource))]
|
||||
public bool IPRTanora { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Differencialt), ResourceType = typeof(OrarendResource))]
|
||||
public bool Differencialt { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Kooperativ), ResourceType = typeof(OrarendResource))]
|
||||
public bool Kooperativ { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Meres), ResourceType = typeof(OrarendResource))]
|
||||
public bool Meres { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Drama), ResourceType = typeof(OrarendResource))]
|
||||
public bool Drama { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tiop12), ResourceType = typeof(OrarendResource))]
|
||||
public bool Tiop { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Bontott), ResourceType = typeof(OrarendResource))]
|
||||
public bool Bontott { get; set; }
|
||||
}
|
||||
}
|
66
KretaWeb/Areas/Orarend/Models/HaziFeladatNaplozas.cs
Normal file
66
KretaWeb/Areas/Orarend/Models/HaziFeladatNaplozas.cs
Normal file
|
@ -0,0 +1,66 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Logic.Naplozas.Elokeszites;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class HaziFeladatNaplozas
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
|
||||
public string HaziFeladat { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Hatarido), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? Hatarido { get; set; }
|
||||
|
||||
public bool IsTanarVehetFelHazitNaplozasNelkul { get; set; }
|
||||
|
||||
public int? OrarendiOraId { get; set; }
|
||||
public int? TanitasiOraId { get; set; }
|
||||
public int? HelyettesitoId { get; set; }
|
||||
public DateTime? NapDatuma { get; set; }
|
||||
public bool IsHaziFeladatHelper { get; set; }
|
||||
public bool IsElmaradt { get; set; }
|
||||
|
||||
public int UsedFilesSizeInKiloBytes { get; set; } = 0;
|
||||
|
||||
public int MaxAllowedFilesSizeInKiloBytes { get; set; }
|
||||
|
||||
public double UsedFilesSizeInKiloBytesTotal { get; set; } = 0D;
|
||||
|
||||
public int MaxAllowedFilesSizeInKiloBytesTotal { get; set; } = 2097152;
|
||||
|
||||
public IEnumerable<string> AllowedFileExtensions { get; set; } = new List<string>
|
||||
{
|
||||
".txt",
|
||||
".pdf",
|
||||
".doc",
|
||||
".docx",
|
||||
".xls",
|
||||
".xlsx",
|
||||
".ppt",
|
||||
".pptx",
|
||||
".bmp",
|
||||
".jpg",
|
||||
".jpeg",
|
||||
".png",
|
||||
".rar",
|
||||
".zip"
|
||||
};
|
||||
|
||||
public int? CsatolmanyId { get; set; }
|
||||
|
||||
public void Fill(NaplozasElokeszitesModel model)
|
||||
{
|
||||
Id = model.Hazifeladat.Id;
|
||||
HaziFeladat = model.Hazifeladat.Szoveg;
|
||||
Hatarido = model.Hazifeladat.Hatarido;
|
||||
OrarendiOraId = model.OraAdat.OrarendiOraId;
|
||||
IsHaziFeladatHelper = false;
|
||||
IsElmaradt = model.OraAdat.IsElmaradt;
|
||||
CsatolmanyId = model.Hazifeladat.CsatolmanyId;
|
||||
}
|
||||
}
|
||||
}
|
25
KretaWeb/Areas/Orarend/Models/HaziFeladatNaplozasRogzites.cs
Normal file
25
KretaWeb/Areas/Orarend/Models/HaziFeladatNaplozasRogzites.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
using System;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.Logic;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class HaziFeladatNaplozasRogzites
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
|
||||
private string haziFeladat;
|
||||
|
||||
public string HaziFeladat
|
||||
{
|
||||
get { return haziFeladat; }
|
||||
set { haziFeladat = RichTextLogic.RemoveSpecificHtmlTags(value, RichTextLogic.RemovableHtmlTags); }
|
||||
}
|
||||
|
||||
[DateRange(ErrorMessageResourceName = nameof(ErrorResource.HataridoDatumaNemErvenyes), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
public DateTime? Hatarido { get; set; }
|
||||
public int? OrarendiOraId { get; set; }
|
||||
public int? CsatolmanyId { get; set; }
|
||||
}
|
||||
}
|
78
KretaWeb/Areas/Orarend/Models/HazifeladatBevitelModel.cs
Normal file
78
KretaWeb/Areas/Orarend/Models/HazifeladatBevitelModel.cs
Normal file
|
@ -0,0 +1,78 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class HazifeladatBevitelModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public int? TanitasiOraId { get; set; }
|
||||
public int? OrarendiOraId { get; set; }
|
||||
public int? Oraszam { get; set; }
|
||||
public bool IsTTF { get; set; }
|
||||
|
||||
public int UsedFilesSizeInKiloBytes { get; set; } = 0;
|
||||
|
||||
public int MaxAllowedFilesSizeInKiloBytes { get; set; } = 15360;
|
||||
|
||||
public double UsedFilesSizeInKiloBytesTotal { get; set; } = 0D;
|
||||
|
||||
public int MaxAllowedFilesSizeInKiloBytesTotal { get; set; } = 2097152;
|
||||
|
||||
public IEnumerable<string> AllowedFileExtensions { get; set; } = new List<string>
|
||||
{
|
||||
".txt",
|
||||
".pdf",
|
||||
".doc",
|
||||
".docx",
|
||||
".xls",
|
||||
".xlsx",
|
||||
".ppt",
|
||||
".pptx",
|
||||
".bmp",
|
||||
".jpg",
|
||||
".jpeg",
|
||||
".png",
|
||||
".rar",
|
||||
".zip"
|
||||
};
|
||||
|
||||
public int? CsatolmanyId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargyfelosztas), ResourceType = typeof(OrarendResource))]
|
||||
public int? TTFId { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(OrarendResource.HazifeladatSzovegKotelezo), ErrorMessageResourceType = typeof(OrarendResource))]
|
||||
public string Szoveg { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
||||
public string OsztalycsoportNev { get; set; }
|
||||
|
||||
public int? OsztalycsoportId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public string TantarrgyNev { get; set; }
|
||||
|
||||
public int? TantargyId { get; set; }
|
||||
|
||||
public DateTime ErvenyessegKezdete { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(OrarendResource.HazifeladatHataridoKotelezo), ErrorMessageResourceType = typeof(OrarendResource))]
|
||||
[Display(Name = nameof(OrarendResource.HazifeladatHatarido), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? ErvenyessegVege { get; set; }
|
||||
|
||||
public int? FeladatTipusId { get; set; }
|
||||
|
||||
public bool ValidateModel()
|
||||
{
|
||||
if (Id.HasValue || TTFId.HasValue || (TantargyId.HasValue && OsztalycsoportId.HasValue))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
24
KretaWeb/Areas/Orarend/Models/HazifeladatTanuloGridModel.cs
Normal file
24
KretaWeb/Areas/Orarend/Models/HazifeladatTanuloGridModel.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class HazifeladatTanuloGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.TanuloNeve), ResourceType = typeof(TanuloResource))]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.TanuloOktatasiAzonosito), ResourceType = typeof(TanuloResource))]
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ElvegzettHaziFeladat), ResourceType = typeof(OrarendResource))]
|
||||
public string ElvegzettHaziFeladat_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ElvegzettHaziFeladatDatum), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime ElvegzettHaziFeladatDatum { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,99 @@
|
|||
using System;
|
||||
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;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class HazifeladatokListajaGridModel : IKretaIdentity
|
||||
{
|
||||
#region Fields
|
||||
|
||||
public const string HazifeladatExportAttributeId = nameof(HazifeladatExportAttributeId);
|
||||
|
||||
#endregion
|
||||
|
||||
public HazifeladatokListajaGridModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public HazifeladatokListajaGridModel(HaziFeladatItemCo itemCo)
|
||||
{
|
||||
ID = itemCo.Id.ToString();
|
||||
OraDatuma = itemCo.OraDatuma;
|
||||
HaziFeladatRogzitesDatuma = itemCo.RogzitesDatuma;
|
||||
HaziFeladatHataridoDatuma = itemCo.HataridoDatuma;
|
||||
Tanar = itemCo.TanarNev;
|
||||
Tantargy = itemCo.TantargyNev;
|
||||
OraTema = itemCo.OraTema;
|
||||
TanarHazifeladat = itemCo.Szoveg;
|
||||
OraSorszama = itemCo.OraSorszama.ToString();
|
||||
HazifeladatId = itemCo.HazifeladatId;
|
||||
IsOnlineOraText = itemCo.IsOnlineOraText;
|
||||
FeladatTipusId = itemCo.FeladatTipusId;
|
||||
IsTanitasiOra = itemCo.IsTanitasiOra;
|
||||
IsToroltOra = itemCo.IsToroltOra;
|
||||
}
|
||||
|
||||
public string ID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraDatuma), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 00, nameof(OrarendResource.OraDatuma), typeof(OrarendResource))]
|
||||
public DateTime? OraDatuma { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HFRogzitesenekDatuma), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 06, nameof(OrarendResource.HFRogzitesenekDatuma), typeof(OrarendResource))]
|
||||
public DateTime HaziFeladatRogzitesDatuma { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HFTanarHazifeladatDatuma), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 07, nameof(OrarendResource.HFTanarHazifeladatDatuma), typeof(OrarendResource))]
|
||||
public DateTime? HaziFeladatHataridoDatuma { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanarNeve), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 02, nameof(OrarendResource.TanarNeve), typeof(OrarendResource))]
|
||||
public string Tanar { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 03, nameof(OrarendResource.Tantargy), typeof(OrarendResource))]
|
||||
public string Tantargy { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraTemaja), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 04, nameof(OrarendResource.OraTemaja), typeof(OrarendResource))]
|
||||
public string OraTema { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanarHazifeladat), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 05, nameof(OrarendResource.TanarHazifeladat), typeof(OrarendResource))]
|
||||
public string TanarHazifeladat { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HozzaszolasokSzama), ResourceType = typeof(OrarendResource))]
|
||||
public int DiakHaziSzam { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokSzamaKesz), ResourceType = typeof(OrarendResource))]
|
||||
public string TanulokSzamaKesz { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraNaponBeluliSorszama), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 01, nameof(OrarendResource.OraNaponBeluliSorszama), typeof(OrarendResource))]
|
||||
public string OraSorszama { get; set; }
|
||||
|
||||
public string OsztalyCsoport { get; set; }
|
||||
|
||||
public int HazifeladatId { get; set; }
|
||||
|
||||
[SimpleExportColumn(HazifeladatExportAttributeId, 08, nameof(OrarendResource.OnlineOra), typeof(OrarendResource))]
|
||||
public string IsOnlineOraText { get; set; }
|
||||
|
||||
public int FeladatTipusId { get; set; }
|
||||
|
||||
public string FeladatTipusName => ((FeladatTipusEnum)FeladatTipusId).GetDisplayName(ClaimData.SelectedTanevID.Value);
|
||||
|
||||
public bool IsTanitasiOra { get; set; }
|
||||
|
||||
public bool IsToroltOra { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,99 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class HazifeladatokListajaSrcModel
|
||||
{
|
||||
|
||||
[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(OrarendResource.TanarNeve), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanarIdSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public int? TantargyIdSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraTemaja), ResourceType = typeof(OrarendResource))]
|
||||
public string OraTemaSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
||||
public int? OsztalyCsoportIdSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KapcsolodoCsoportok), ResourceType = typeof(OrarendResource))]
|
||||
public bool KellKapcsolodoCsoportokSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraDatuma), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? OraDatumaTolSrc { get; set; }
|
||||
public DateTime? OraDatumaIgSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanarAltalRogzitettHazifeladat), ResourceType = typeof(OrarendResource))]
|
||||
public string HazifeladatTemaSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HFRogzitesenekDatuma), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? RogzitesTolSrc { get; set; }
|
||||
public DateTime? RogzitesIgSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HataridoDatuma), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? HataridoTolSrc { get; set; }
|
||||
public DateTime? HataridoIgSrc { get; set; }
|
||||
|
||||
public string OsztalyCsoportComboUrl { get; set; }
|
||||
|
||||
public bool IsJustTanar { get; set; }
|
||||
|
||||
public bool IsKapcsolodoOsztalyCsoportokVisible { get; set; }
|
||||
|
||||
public HazifeladatokListajaTipusEnum HazifeladatokListajaTipus { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OnlineOra), ResourceType = typeof(OrarendResource))]
|
||||
public int? IsOnlineOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KellToroltOrasHazifeladat), ResourceType = typeof(OrarendResource))]
|
||||
public bool KellToroltOrasHazifeladat { get; set; }
|
||||
|
||||
public HazifeladatokListajaCO ToCo(IEnumerable<int> osztalyCsoportIds)
|
||||
{
|
||||
var co = new HazifeladatokListajaCO
|
||||
{
|
||||
FeladatKategoriaId = FeladatKategoriaId,
|
||||
FeladatEllatasiHelyId = FeladatEllatasiHelyId,
|
||||
TanarIdSrc = TanarIdSrc,
|
||||
TantargyIdSrc = TantargyIdSrc,
|
||||
OraTemaSrc = OraTemaSrc,
|
||||
KellKapcsolodoCsoportokSrc = KellKapcsolodoCsoportokSrc,
|
||||
OraDatumaTolSrc = OraDatumaTolSrc,
|
||||
OraDatumaIgSrc = OraDatumaIgSrc,
|
||||
HazifeladatTemaSrc = HazifeladatTemaSrc,
|
||||
RogzitesTolSrc = RogzitesTolSrc,
|
||||
RogzitesIgSrc = RogzitesIgSrc,
|
||||
HataridoTolSrc = HataridoTolSrc,
|
||||
HataridoIgSrc = HataridoIgSrc,
|
||||
OsztalyCsoportIds = new List<int>(),
|
||||
IsOnlineOra = IsOnlineOra,
|
||||
KellToroltOrasHazifeladat = KellToroltOrasHazifeladat,
|
||||
};
|
||||
|
||||
if (osztalyCsoportIds != null && osztalyCsoportIds.Any())
|
||||
{
|
||||
co.OsztalyCsoportIds.AddRange(osztalyCsoportIds);
|
||||
}
|
||||
|
||||
if (OsztalyCsoportIdSrc.HasValue)
|
||||
{
|
||||
co.OsztalyCsoportIds.Add(OsztalyCsoportIdSrc.Value);
|
||||
}
|
||||
|
||||
return co;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class InformaciokFogadoorakGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
public int JelentkezesekKezeleseId { get; set; }
|
||||
public int IdopontId { get; set; }
|
||||
public int? IdopontGondviseloId { get; set; }
|
||||
public string IdopontStr { get; set; }
|
||||
public DateTime? JelentkezesiHatarido { get; set; }
|
||||
public int JelentkezesAllapot { get; set; }
|
||||
|
||||
public bool IsJelentkezheto => JelentkezesekKezeleseId != 0;
|
||||
public bool IsJelentkezesiHataridoElott => DateTime.Now < (JelentkezesiHatarido ?? FogadooraKezdete);
|
||||
public bool IsKezdeteElott => DateTime.Now < FogadooraKezdete;
|
||||
public bool IsJelentkezett => JelentkezesAllapot == 2;
|
||||
public bool IsNemJelentkezett => JelentkezesAllapot == 1;
|
||||
|
||||
[Display(Name = nameof(FogadooraResource.Pedagogus), ResourceType = typeof(FogadooraResource))]
|
||||
public string Pedagogus { get; set; }
|
||||
|
||||
[Display(Name = nameof(FogadooraResource.Terem), ResourceType = typeof(FogadooraResource))]
|
||||
public string Terem { get; set; }
|
||||
|
||||
[Display(Name = nameof(FogadooraResource.FogadooraKezdete), ResourceType = typeof(FogadooraResource))]
|
||||
public DateTime FogadooraKezdete { get; set; }
|
||||
|
||||
[Display(Name = nameof(FogadooraResource.FogadooraVege), ResourceType = typeof(FogadooraResource))]
|
||||
public DateTime FogadooraVege { get; set; }
|
||||
}
|
||||
}
|
15
KretaWeb/Areas/Orarend/Models/InformaciokOra.cs
Normal file
15
KretaWeb/Areas/Orarend/Models/InformaciokOra.cs
Normal file
|
@ -0,0 +1,15 @@
|
|||
using System.Collections.Generic;
|
||||
using Kreta.Web.Helpers.TabStrip;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class InformaciokOra
|
||||
{
|
||||
public InformaciokOra()
|
||||
{
|
||||
TabList = new List<TabStripItemModel>();
|
||||
}
|
||||
|
||||
public List<TabStripItemModel> TabList { get; set; }
|
||||
}
|
||||
}
|
63
KretaWeb/Areas/Orarend/Models/InformaciokOraAdatai.cs
Normal file
63
KretaWeb/Areas/Orarend/Models/InformaciokOraAdatai.cs
Normal file
|
@ -0,0 +1,63 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Helpers.SystemSettings;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Helpers;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class InformaciokOraAdatai
|
||||
{
|
||||
public InformaciokOraAdatai()
|
||||
{
|
||||
TanoraTemaEllenorzobenLathato = new SystemSettingsHelper(ConnectionTypeExtensions.GetSessionConnectionType()).GetSystemSettingValue<bool>(RendszerBeallitasTipusEnum.Tanora_Tema_Az_Ellenorzoben);
|
||||
}
|
||||
|
||||
public bool TanoraTemaEllenorzobenLathato { get; set; }
|
||||
|
||||
public bool IsHelyettesitoTanarLathato { get; set; }
|
||||
|
||||
public string OsztalyNev { get; set; }
|
||||
public bool Megtartott { get; set; }
|
||||
public bool IsTanora { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Targy), ResourceType = typeof(OrarendResource))]
|
||||
public string Targy { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tanar), ResourceType = typeof(OrarendResource))]
|
||||
public string Tanar { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Terem), ResourceType = typeof(OrarendResource))]
|
||||
public string Terem { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraTemaja), ResourceType = typeof(OrarendResource))]
|
||||
public string Tema { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HelyettesitoTanar), ResourceType = typeof(OrarendResource))]
|
||||
public string HelyettesitoTanar { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Mulasztas), ResourceType = typeof(OrarendResource))]
|
||||
public string MulasztasText { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Oraszam), ResourceType = typeof(OrarendResource))]
|
||||
public string Oraszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraDatuma), ResourceType = typeof(OrarendResource))]
|
||||
public string Datum { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraTartam), ResourceType = typeof(OrarendResource))]
|
||||
public string OraTartam { get; set; }
|
||||
|
||||
//[Display(Name = nameof(OrarendResource.HaziFeladat), ResourceType = typeof(OrarendResource))]
|
||||
//public string HaziFeladat { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.SzamonkeresMod), ResourceType = typeof(OrarendResource))]
|
||||
public string SzamonkeresMod { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.SzamonkeresMegnevezes), ResourceType = typeof(OrarendResource))]
|
||||
public string SzamonkeresMegnevezes { get; set; }
|
||||
|
||||
//[Display(Name = "Órához csatolt képek listája", ResourceType = typeof(OrarendResource))]
|
||||
public string OpenBoardFiles { get; set; }
|
||||
}
|
||||
}
|
17
KretaWeb/Areas/Orarend/Models/InformaciokOraOsztalyAdatai.cs
Normal file
17
KretaWeb/Areas/Orarend/Models/InformaciokOraOsztalyAdatai.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class InformaciokOraOsztalyAdatai
|
||||
{
|
||||
public InformaciokOraOsztalyAdatai()
|
||||
{
|
||||
OrarendiOraId = "-1";
|
||||
TanitasiOraId = "-1";
|
||||
}
|
||||
|
||||
public string OrarendiOraId { get; set; }
|
||||
public string TanitasiOraId { get; set; }
|
||||
public DateTime OraDatum { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class InformaciokOraOsztalyAdataiGrid : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
[KretaDisplayName(455)] /*Tanuló neve*/
|
||||
public string TanuloNeve { get; set; }
|
||||
}
|
||||
}
|
||||
|
16
KretaWeb/Areas/Orarend/Models/InformaciokOrarendModel.cs
Normal file
16
KretaWeb/Areas/Orarend/Models/InformaciokOrarendModel.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class InformaciokOrarendModel
|
||||
{
|
||||
|
||||
public string HetirendJson { get; set; }
|
||||
public string NaptariHetekHetirendJson { get; set; }
|
||||
public string HetesekJson { get; set; }
|
||||
public TimeSpan CalendarMinTime { get; set; }
|
||||
public TimeSpan CalendarMaxTime { get; set; }
|
||||
public int AktualisHetSorszam { get; set; }
|
||||
public bool IsOraTemaTooltip { get; set; }
|
||||
}
|
||||
}
|
16
KretaWeb/Areas/Orarend/Models/InformaciokSearchModel.cs
Normal file
16
KretaWeb/Areas/Orarend/Models/InformaciokSearchModel.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using Kreta.BusinessLogic.Helpers.SystemSettings;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Web.Helpers;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class InformaciokSearchModel
|
||||
{
|
||||
public InformaciokSearchModel()
|
||||
{
|
||||
TanoraTemaEllenorzobenLathato = new SystemSettingsHelper(ConnectionTypeExtensions.GetSessionConnectionType()).GetSystemSettingValue<bool>(RendszerBeallitasTipusEnum.Tanora_Tema_Az_Ellenorzoben);
|
||||
}
|
||||
|
||||
public bool TanoraTemaEllenorzobenLathato { get; set; }
|
||||
}
|
||||
}
|
|
@ -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.Orarend.Models
|
||||
{
|
||||
public class InformaciokTanitasiOraGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
[KretaDisplayName(273)] /*Dátum*/
|
||||
public DateTime Datum { get; set; }
|
||||
|
||||
[KretaDisplayName(219)] /*Óra*/
|
||||
public int OraSorsz { get; set; }
|
||||
|
||||
[KretaDisplayName(483)] /*Nap*/
|
||||
public string HetNapja_DNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string TargyNev { get; set; }
|
||||
|
||||
[KretaDisplayName(442)] /*Évfolyam*/
|
||||
public string Evfolyam_DNAME { get; set; }
|
||||
|
||||
[KretaDisplayName(30)] /*Tanár*/
|
||||
public string TanarNev { get; set; }
|
||||
|
||||
[KretaDisplayName(30)] /*Tanár*/
|
||||
public string TanarNevElotagNelkul { get; set; }
|
||||
|
||||
[KretaDisplayName(484)] /*Tanóra témája*/
|
||||
public string Tema { get; set; }
|
||||
}
|
||||
}
|
41
KretaWeb/Areas/Orarend/Models/KepekListajaGridModel.cs
Normal file
41
KretaWeb/Areas/Orarend/Models/KepekListajaGridModel.cs
Normal file
|
@ -0,0 +1,41 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class KepekListajaGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
public int? OraFileId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Datum), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime Datum { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanarHelyettesito), ResourceType = typeof(OrarendResource))]
|
||||
public string TanarHelyettesito { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
||||
public string OsztalyCsoport { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public string Tantargy { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KepNeve), ResourceType = typeof(OrarendResource))]
|
||||
[MaxLength(50, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
|
||||
public string KepNeve { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Megjelenitett), ResourceType = typeof(OrarendResource))]
|
||||
public string Megjelenitett_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Megjegyzes), ResourceType = typeof(OrarendResource))]
|
||||
[MaxLength(1000, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
|
||||
public string Megjegyzes { get; set; }
|
||||
|
||||
public string FajlUrl { get; set; }
|
||||
|
||||
public string Base64EncodedFajlTartalom { get; set; }
|
||||
}
|
||||
}
|
39
KretaWeb/Areas/Orarend/Models/KepekListajaSearchModel.cs
Normal file
39
KretaWeb/Areas/Orarend/Models/KepekListajaSearchModel.cs
Normal file
|
@ -0,0 +1,39 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class KepekListajaSearchModel
|
||||
{
|
||||
[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(OrarendResource.Datum), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? DatumIg { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Datum), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? DatumTol { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanarHelyettesito), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanarHelyettesitoId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public int? TantargyId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KepNeve), ResourceType = typeof(OrarendResource))]
|
||||
public string KepNeve { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Foglalkozas), ResourceType = typeof(OrarendResource))]
|
||||
public int? FoglalkozasId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OnlineOra), ResourceType = typeof(OrarendResource))]
|
||||
public int? IsOnlineOra { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class KozpontiOraCalendarModel
|
||||
{
|
||||
public int Index { get; set; }
|
||||
|
||||
public string FullCalendarId => "FullCalendar-" + Index;
|
||||
}
|
||||
}
|
26
KretaWeb/Areas/Orarend/Models/KozpontiOraModel.cs
Normal file
26
KretaWeb/Areas/Orarend/Models/KozpontiOraModel.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Kreta.Web.Helpers.TabStrip;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class KozpontiOraModel
|
||||
{
|
||||
public KozpontiOraModel() => TabList = new List<TabStripItemModel>();
|
||||
|
||||
public string HetirendJson { get; set; }
|
||||
public string NaptariHetekHetirendJson { get; set; }
|
||||
|
||||
public List<TabStripItemModel> TabList { get; set; }
|
||||
|
||||
public string Tanarok { get; set; }
|
||||
public string Tantargyak { get; set; }
|
||||
public string Termek { get; set; }
|
||||
|
||||
public TimeSpan CalendarMinTime { get; set; }
|
||||
public TimeSpan CalendarMaxTime { get; set; }
|
||||
|
||||
public TimeSpan CsengetesiRendMinTime { get; set; }
|
||||
public TimeSpan CsengetesiRendMaxTime { get; set; }
|
||||
}
|
||||
}
|
161
KretaWeb/Areas/Orarend/Models/MulasztasNaplozas.cs
Normal file
161
KretaWeb/Areas/Orarend/Models/MulasztasNaplozas.cs
Normal file
|
@ -0,0 +1,161 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.Helpers;
|
||||
using Kreta.BusinessLogic.Logic.Naplozas.Elokeszites;
|
||||
using Kreta.Core;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Framework.Util;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
using Kreta.Web.Helpers;
|
||||
using Kreta.Web.Security;
|
||||
using Kreta.Web.Utils;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class MulasztasNaplozas
|
||||
{
|
||||
public MulasztasNaplozas(int? szervezetTipusId, bool isMentorOra = false)
|
||||
{
|
||||
JelenletList = new List<SelectListItem>();
|
||||
FelmentettJelenletList = new List<SelectListItem>();
|
||||
TemaList = new List<SelectListItem>();
|
||||
TanulasiEgysegList = new List<SelectListItem>();
|
||||
SzervezetTipusId_MulasztasNaplozas = szervezetTipusId;
|
||||
IsMentorOra_MulasztasNaplozas = isMentorOra;
|
||||
|
||||
var mulasztasTipusok = ((int)GeneratedAdatszotarTipusEnum.MulasztasTipus).GetItemsByType(ClaimData.SelectedTanevID.Value, visibleOnly: true)
|
||||
.Where(x => (szervezetTipusId.HasValue && x.Id != (int)MulasztasTipusEnum.hianyzas) || (x.Id != (int)MulasztasTipusEnum.szabadsag && x.Id != (int)MulasztasTipusEnum.tappenz
|
||||
&& x.Id != (int)MulasztasTipusEnum.betegszabadsag && x.Id != (int)MulasztasTipusEnum.potlas
|
||||
&& (!isMentorOra || x.Id != (int)MulasztasTipusEnum.hianyzas))).ToList().OrderBy(x => x.Order);
|
||||
|
||||
foreach (var item in mulasztasTipusok)
|
||||
{
|
||||
if (item.Id == (int)MulasztasTipusEnum.na || item.Id == (int)MulasztasTipusEnum.ures || item.Id == (int)MulasztasTipusEnum.keses)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
JelenletList.Add(new SelectListItem() { Value = item.Id.ToString(), Text = item.Name });
|
||||
|
||||
if (item.Id == (int)MulasztasTipusEnum.hianyzas)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
FelmentettJelenletList.Add(new SelectListItem() { Value = item.Id.ToString(), Text = item.Name });
|
||||
}
|
||||
}
|
||||
|
||||
public int? TargyId { get; set; }
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
public int? TanoraId { get; set; }
|
||||
public int MaxKeses { get; set; }
|
||||
public int? TanarId { get; set; }
|
||||
|
||||
public DateTime OraKezdete { get; set; }
|
||||
public DateTime OraVege { get; set; }
|
||||
|
||||
public bool isTanora { get; set; }
|
||||
public bool isElozoOraTemaNeeded { get; set; }
|
||||
public bool IsAmi { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraTemaja), ResourceType = typeof(OrarendResource))]
|
||||
public int? TemaTanmenetId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulasiEgyseg), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanulasiEgysegId { get; set; }
|
||||
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tema), ResourceType = typeof(OrarendResource))]
|
||||
public string Tema { get; set; }
|
||||
|
||||
public List<SelectListItem> JelenletList { get; set; }
|
||||
public List<SelectListItem> FelmentettJelenletList { get; set; }
|
||||
public List<SelectListItem> TemaList { get; set; }
|
||||
public List<SelectListItem> TanulasiEgysegList { get; set; }
|
||||
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraEvesSorszama), ResourceType = typeof(OrarendResource))]
|
||||
public double? EvesOraSorszam { get; set; }
|
||||
|
||||
public bool IsSorszamozando { get; set; }
|
||||
|
||||
public string SzamonkeresAdatai { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Hetesek), ResourceType = typeof(OrarendResource))]
|
||||
public string Hetesek { get; set; }
|
||||
|
||||
public bool IsSzamonkeresAdataiVisible { get; set; }
|
||||
|
||||
public bool IsHetesekAdataiVisible { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ElozoOraTemaja), ResourceType = typeof(OrarendResource))]
|
||||
public string ElozoOraAdatai { get; set; }
|
||||
|
||||
public string ElozoOraTema { get; set; }
|
||||
|
||||
public bool HianyzokAutoKitoltes { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.JogviszontSzuneteltetoDiakok), ResourceType = typeof(OrarendResource))]
|
||||
public int? JogviszonySzunetletetokDb { get; set; }
|
||||
|
||||
public string JogviszonySzunetletetok { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.SzakmaiGyakorlatonLevoDiakok), ResourceType = typeof(OrarendResource))]
|
||||
public int? SzakmaiGyakorlatonLevokDb { get; set; }
|
||||
|
||||
public string SzakmaiGyakorlatonLevok { get; set; }
|
||||
|
||||
public int? SzervezetTipusId_MulasztasNaplozas { get; set; }
|
||||
|
||||
public bool IsMentorOra_MulasztasNaplozas { get; set; }
|
||||
|
||||
public void Fill(NaplozasElokeszitesModel model)
|
||||
{
|
||||
TargyId = model.OraAdat.TantargyId;
|
||||
OsztalyCsoportId = model.OraAdat.OsztalyCsoportId;
|
||||
TanarId = model.OraAdat.TanarId;
|
||||
TanoraId = model.OraAdat.TanitasiOraId;
|
||||
MaxKeses = model.MaxKeses;
|
||||
OraKezdete = model.OraAdat.OraKezdete;
|
||||
OraVege = model.OraAdat.OraVege;
|
||||
isTanora = model.IsTanora;
|
||||
isElozoOraTemaNeeded = model.KellElozoOraTema;
|
||||
TemaTanmenetId = model.OraAdat.TemaTanmenetId;
|
||||
TanulasiEgysegId = model.OraAdat.TanulasiEgysegId;
|
||||
Tema = model.OraAdat.Tema;
|
||||
TemaList = model.OraAdat.TemaLista.ToSelectListItemList();
|
||||
EvesOraSorszam = model.OraAdat.EvesOraSorszam;
|
||||
IsSorszamozando = model.OraAdat.IsSorszamozando;
|
||||
ElozoOraAdatai = model.OraAdat.ElozoOraAdat;
|
||||
SzamonkeresAdatai = model.OraAdat.SzamonkeresAdatai;
|
||||
Hetesek = model.OraAdat.Hetesek;
|
||||
IsSzamonkeresAdataiVisible = model.Naplozhat && !string.IsNullOrWhiteSpace(model.OraAdat.SzamonkeresAdatai);
|
||||
IsHetesekAdataiVisible = model.Naplozhat && !string.IsNullOrWhiteSpace(model.OraAdat.Hetesek);
|
||||
ElozoOraTema = model.OraAdat.ElozoOraTema;
|
||||
HianyzokAutoKitoltes = ProfileUtils.IsHianyzokAutoKitoltesEnabled;
|
||||
JogviszonySzunetletetokDb = model.Mulasztas.JogviszonySzunetletetokDb;
|
||||
JogviszonySzunetletetok = model.Mulasztas.JogviszonySzunetletetok;
|
||||
SzakmaiGyakorlatonLevokDb = model.Mulasztas.SzakmaiGyakorlatonLevokDb;
|
||||
SzakmaiGyakorlatonLevok = model.Mulasztas.SzakmaiGyakorlatonLevok;
|
||||
}
|
||||
|
||||
public void SetIsAmi()
|
||||
{
|
||||
IsAmi = OsztalyCsoportId.IsEntityId() && new OsztalyCsoportHelper(ConnectionTypeExtensions.GetSessionConnectionType()).IsAmiOsztalyCsoport(OsztalyCsoportId.Value);
|
||||
}
|
||||
|
||||
public void SetMentorCsoportEgyedisegek()
|
||||
{
|
||||
if (OsztalyCsoportId.IsEntityId() && new OsztalyCsoportHelper(ConnectionTypeExtensions.GetSessionConnectionType()).GetCsoportTipusByOsztalyCsoportId(OsztalyCsoportId.Value) == CsoportTipusEnum.apaczai_mentorcsoport)
|
||||
{
|
||||
JelenletList.Remove(JelenletList.SingleOrDefault(x => x.Value == ((int)MulasztasTipusEnum.hianyzas).ToString()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
35
KretaWeb/Areas/Orarend/Models/MulasztasNaplozasGrid.cs
Normal file
35
KretaWeb/Areas/Orarend/Models/MulasztasNaplozasGrid.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class MulasztasNaplozasGrid : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KesesPercben), ResourceType = typeof(OrarendResource))]
|
||||
public int? KesesIdo { get; set; }
|
||||
|
||||
public string MulasztasTipus { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.MulasztasTipusa), ResourceType = typeof(OrarendResource))]
|
||||
public string MulasztasTipus_DNAME { get; set; }
|
||||
public string MulasztasId { get; set; }
|
||||
public bool OraMentesseg_BOOL { get; set; }
|
||||
public string Oka { get; set; }
|
||||
|
||||
public bool? Igazolt { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanuloNeve), ResourceType = typeof(OrarendResource))]
|
||||
public string TanuloNev { get; set; }
|
||||
|
||||
public string GondviseloNev { get; set; }
|
||||
public string GondviseloTelSzam { get; set; }
|
||||
|
||||
public bool HaziFeladatHiany_BOOL { get; set; }
|
||||
public bool FelszerelesHiany_BOOL { get; set; }
|
||||
public bool Felmentes_BOOL { get; set; }
|
||||
public bool TanoraiDicseret_BOOL { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class MulasztasNaplozasItemRogzites
|
||||
{
|
||||
public int? MulasztasRowId { get; set; }
|
||||
public int TanuloId { get; set; }
|
||||
public int? MulasztasTipus { get; set; }
|
||||
public int? Keses { get; set; }
|
||||
|
||||
public bool HazifeladatHiany { get; set; }
|
||||
public bool FelszerelesHiany { get; set; }
|
||||
public bool Felmentes { get; set; }
|
||||
public bool TanoraiDicseret { get; set; }
|
||||
|
||||
public int? HazifeladatHianyId { get; set; }
|
||||
public int? FelszerelesHianyId { get; set; }
|
||||
public int? FelmentesId { get; set; }
|
||||
public int? TanoraiDicseretId { get; set; }
|
||||
}
|
||||
}
|
17
KretaWeb/Areas/Orarend/Models/MulasztasNaplozasRogzites.cs
Normal file
17
KretaWeb/Areas/Orarend/Models/MulasztasNaplozasRogzites.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class MulasztasNaplozasRogzites
|
||||
{
|
||||
public MulasztasNaplozasRogzites()
|
||||
{
|
||||
MulasztasList = new List<MulasztasNaplozasItemRogzites>();
|
||||
}
|
||||
|
||||
public int? TemaTanmenetId { get; set; }
|
||||
public string Tema { get; set; }
|
||||
public int? TanulasiEgysegId { get; set; }
|
||||
public List<MulasztasNaplozasItemRogzites> MulasztasList { get; set; }
|
||||
}
|
||||
}
|
51
KretaWeb/Areas/Orarend/Models/NemKotottMunkaidoModel.cs
Normal file
51
KretaWeb/Areas/Orarend/Models/NemKotottMunkaidoModel.cs
Normal file
|
@ -0,0 +1,51 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class NemKotottMunkaidoModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public bool isReadonly { get; set; }
|
||||
public int ModositasiIdoszakTipus { get; set; }
|
||||
public string JSHelperNev { get; set; }
|
||||
public bool isMegtartott { get; set; }
|
||||
public bool isAdminRogzitette { get; set; }
|
||||
public int TulajId { get; set; }
|
||||
public string GroupId { get; set; }
|
||||
public bool AdminAltalTorolt { get; set; }
|
||||
public bool isTanarAltalTorolt { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 4285)]
|
||||
[Display(Name = nameof(OrarendResource.NemKotottMunkaidoKezdoIdopont), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? Kezdet { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 4286)]
|
||||
[Display(Name = nameof(OrarendResource.NemKotottMunkaidoZaroIdopont), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? Veg { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.NemKotottMunkaidoNap), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? Datum { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 5050)]
|
||||
[KretaDisplayName(5049)] /*Törvényi kategória*/
|
||||
public int? TorvenyKategoria { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.PedagogusMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[KretaDisplayName(456)] /*Pedagógus*/
|
||||
public int? TanarId { get; set; }
|
||||
|
||||
[KretaDisplayName(97)] /*Megjegyzés*/
|
||||
public string Megjegyzes { get; set; }
|
||||
|
||||
[KretaDisplayName(97)] /*Megjegyzés*/
|
||||
public string NaplozottMegjegyzes { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 2536)] /*Hetirend megadása kötelező*/
|
||||
[KretaDisplayName(4252)] /*Hetirend*/
|
||||
public int? HetirendId { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,91 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Core.CustomAttributes;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class NemNaplozottTanorakGridModel : IKretaIdentity
|
||||
{
|
||||
#region Fields
|
||||
|
||||
public const string NemNaplozottTanorakExportAttributeId = nameof(NemNaplozottTanorakExportAttributeId);
|
||||
|
||||
#endregion
|
||||
|
||||
public NemNaplozottTanorakGridModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public NemNaplozottTanorakGridModel(OrarendiOraCO orarendiOraCO)
|
||||
{
|
||||
ID = orarendiOraCO.ID.ToString();
|
||||
OraKezdeteDate = orarendiOraCO.OraKezdete;
|
||||
OraKezdeteTimeText = orarendiOraCO.OraKezdeteTimeText;
|
||||
Oraszam = orarendiOraCO.Oraszam;
|
||||
TanarNev = orarendiOraCO.TanarNev;
|
||||
OsztalyNev = orarendiOraCO.OsztalyCsoportNev;
|
||||
TargyNev = orarendiOraCO.TantargyNev;
|
||||
HetNapjaValos = orarendiOraCO.HetNapjaValos;
|
||||
HetNapjaValos_DNAME = orarendiOraCO.HetNapjaValosNev;
|
||||
HelyettesitoTanarNev = orarendiOraCO.HelyettesitoTanarNev;
|
||||
}
|
||||
|
||||
public string ID { get; set; }
|
||||
|
||||
public int? HelyettesitoTanarID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HelyettesitoTanar), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(NemNaplozottTanorakExportAttributeId, 07, nameof(OrarendResource.HelyettesitoTanar), typeof(OrarendResource))]
|
||||
public string HelyettesitoTanarNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HelyettesitettPedagogusNev), ResourceType = typeof(OrarendResource))]
|
||||
public string HelyettesitettPedagogusNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Datum), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(NemNaplozottTanorakExportAttributeId, 00, nameof(OrarendResource.Datum), typeof(OrarendResource))]
|
||||
public DateTime OraKezdeteDate { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraKezdete), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime OraKezdete { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraKezdete), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(NemNaplozottTanorakExportAttributeId, 03, nameof(OrarendResource.OraKezdete), typeof(OrarendResource))]
|
||||
public string OraKezdeteTimeText { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraDatuma), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime OraVege { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HetNapja), ResourceType = typeof(OrarendResource))]
|
||||
public string HetNapja_DNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HetNapja), ResourceType = typeof(OrarendResource))]
|
||||
public int? HetNapja { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Oraszam), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(NemNaplozottTanorakExportAttributeId, 02, nameof(OrarendResource.Oraszam), typeof(OrarendResource))]
|
||||
public int? Oraszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tanar), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(NemNaplozottTanorakExportAttributeId, 06, nameof(OrarendResource.Tanar), typeof(OrarendResource))]
|
||||
public string TanarNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(NemNaplozottTanorakExportAttributeId, 04, nameof(OrarendResource.OsztalyCsoport), typeof(OrarendResource))]
|
||||
public string OsztalyNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(NemNaplozottTanorakExportAttributeId, 05, nameof(OrarendResource.Tantargy), typeof(OrarendResource))]
|
||||
public string TargyNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HetNapja), ResourceType = typeof(OrarendResource))]
|
||||
public int? HetNapjaValos { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HetNapja), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(NemNaplozottTanorakExportAttributeId, 01, nameof(OrarendResource.HetNapja), typeof(OrarendResource))]
|
||||
public string HetNapjaValos_DNAME { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,74 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class NemNaplozottTanorakSearchModel
|
||||
{
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
||||
public int? OsztalyCsoportSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public int? TantargySrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Pedagogus), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanarSrc { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.CsakAHelyettesiteseim), ResourceType = typeof(OrarendResource))]
|
||||
public bool? CsakAHelyettesiteseim { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HelyettesitettOraimIs), ResourceType = typeof(OrarendResource))]
|
||||
public bool? HelyettesitettOraimIs { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.JovobeniOrakMegjelenitese), ResourceType = typeof(OrarendResource))]
|
||||
public bool? JovobeniOrakMegjelenitese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Datum), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? DatumSrcTol { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Datum), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? DatumSrcIg { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Oraszam), ResourceType = typeof(OrarendResource))]
|
||||
public int? OraszamSrcTol { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Oraszam), ResourceType = typeof(OrarendResource))]
|
||||
public int? OraszamSrcIg { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraKezdete), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? OraKezdetSrcTol { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraKezdete), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? OraKezdetSrcIg { get; set; }
|
||||
|
||||
public DateTime NaplozarasDate { get; set; }
|
||||
|
||||
public bool IsCsakErtekelesZarasa { 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 static NemNaplozottTanorakSearchCO ConvertModelToCo(NemNaplozottTanorakSearchModel model) => new NemNaplozottTanorakSearchCO
|
||||
{
|
||||
OsztalyCsoportSrc = model.OsztalyCsoportSrc,
|
||||
TantargySrc = model.TantargySrc,
|
||||
TanarSrc = model.TanarSrc,
|
||||
CsakAHelyettesiteseim = model.CsakAHelyettesiteseim,
|
||||
HelyettesitettOraimIs = model.HelyettesitettOraimIs,
|
||||
JovobeniOrakMegjelenitese = model.JovobeniOrakMegjelenitese,
|
||||
DatumTol = model.DatumSrcTol,
|
||||
DatumIg = model.DatumSrcIg,
|
||||
OraszamTol = model.OraszamSrcTol,
|
||||
OraszamIg = model.OraszamSrcIg,
|
||||
OraKezdetTol = model.OraKezdetSrcTol,
|
||||
OraKezdetIg = model.OraKezdetSrcIg,
|
||||
FeladatKategoriaId = model.FeladatKategoriaId,
|
||||
FeladatEllatasiHelyId = model.FeladatEllatasiHelyId
|
||||
};
|
||||
}
|
||||
}
|
36
KretaWeb/Areas/Orarend/Models/OralatogatasModel.cs
Normal file
36
KretaWeb/Areas/Orarend/Models/OralatogatasModel.cs
Normal file
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class OralatogatasModel
|
||||
{
|
||||
public string HetirendJson { get; set; }
|
||||
public string NaptariHetekHetirendJson { get; set; }
|
||||
|
||||
[KretaDisplayName(30)] /*Tanár*/
|
||||
public int? TanarId { get; set; }
|
||||
|
||||
public int? OraID { get; set; }
|
||||
public int? OralatogatasID { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(OrarendResource.OralatogatasMegjegyzesKotelezo), ErrorMessageResourceType = typeof(OrarendResource))]
|
||||
public string OralatogatasSzovege { get; set; }
|
||||
public DateTime OralatogatasDatuma { get; set; }
|
||||
|
||||
public TimeSpan CalendarMinTime { get; set; }
|
||||
public TimeSpan CalendarMaxTime { get; set; }
|
||||
[Display(Name = nameof(OrarendResource.NemKotottMunkaidos), ResourceType = typeof(OrarendResource))]
|
||||
public bool NemKotottMunkaidos { get; set; }
|
||||
public string TanitasiOraTema { get; set; }
|
||||
public bool IsNemKellNemKotottSystemSettings { get; set; }
|
||||
}
|
||||
|
||||
public class OralatogatasExtendModel
|
||||
{
|
||||
public CalendarModel CalendarModel { get; set; }
|
||||
public int? TanarId { get; set; }
|
||||
}
|
||||
}
|
26
KretaWeb/Areas/Orarend/Models/OrarendKeresoModel.cs
Normal file
26
KretaWeb/Areas/Orarend/Models/OrarendKeresoModel.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class OrarendKeresoModel
|
||||
{
|
||||
[KretaDisplayName(30)] /*Tanár*/
|
||||
public int? Tanar { get; set; }
|
||||
|
||||
[KretaDisplayName(379)] /*Osztály*/
|
||||
public int? Osztaly { get; set; }
|
||||
|
||||
[KretaDisplayName(2477)] /*Terem*/
|
||||
public int? Terem { get; set; }
|
||||
|
||||
public string HetirendJson { get; set; }
|
||||
public string NaptariHetekHetirendJson { get; set; }
|
||||
|
||||
public TimeSpan CalendarMinTime { get; set; }
|
||||
public TimeSpan CalendarMaxTime { get; set; }
|
||||
|
||||
public TimeSpan CsengetesiRendMinTime { get; set; }
|
||||
public TimeSpan CsengetesiRendMaxTime { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class OrarendTorleseOsztalyCsoportListItem
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Nev { get; set; }
|
||||
|
||||
public int FeladatellatasiHelyId { get; set; }
|
||||
|
||||
public bool IsSelected { get; set; } = false;
|
||||
|
||||
public bool IsKellKapcsolodoCsoportok { get; set; } = false;
|
||||
|
||||
public bool IsKellOsztalybontottCsoportok { get; set; } = false;
|
||||
}
|
||||
}
|
535
KretaWeb/Areas/Orarend/Models/OrarendiOraModel.cs
Normal file
535
KretaWeb/Areas/Orarend/Models/OrarendiOraModel.cs
Normal file
|
@ -0,0 +1,535 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
using Kreta.Web.Helpers.TabStrip;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class OrarendiOraModel
|
||||
{
|
||||
public OrarendiOraModel()
|
||||
{
|
||||
OrarendiOraTabList = new List<TabStripItemModel>();
|
||||
HetirendList = new List<SelectListItem>();
|
||||
TTFModel = new TTFModel();
|
||||
}
|
||||
|
||||
public bool IsTanoranKivuliFoglalkozas { get; set; }
|
||||
|
||||
public int? ID { get; set; }
|
||||
public int HetNapja { get; set; }
|
||||
public int CsengetesiRendOraID { get; set; }
|
||||
public int ModositasiIdoszakTipus { get; set; }
|
||||
public string JSHelperNev { get; set; }
|
||||
public bool IsModification { get; set; }
|
||||
public DateTime ModificationDate { get; set; }
|
||||
public DateTime ErvenyessegiIdo { get; set; }
|
||||
public bool IsEgyediNap { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 4573)] /*Óra kezdete megadása kötelező*/
|
||||
[Display(Name = nameof(OrarendResource.OraKezdete), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? OraKezdete { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 4574)] /*Óra vége megadása kötelező*/
|
||||
[Display(Name = nameof(OrarendResource.OraVege), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? OraVege { get; set; }
|
||||
|
||||
public List<TabStripItemModel> OrarendiOraTabList { get; set; }
|
||||
public List<SelectListItem> HetirendList { get; set; }
|
||||
|
||||
[ValidateObject]
|
||||
public TTFModel TTFModel { get; set; }
|
||||
|
||||
//[KretaRequired(StringResourcesId = 2536)] /*Hetirend megadása kötelező*/
|
||||
[Display(Name = nameof(OrarendResource.Hetirend), ResourceType = typeof(OrarendResource))]
|
||||
public int? HetirendID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Hetirend), ResourceType = typeof(OrarendResource))]
|
||||
public string Hetirend { get; set; }
|
||||
|
||||
//[KretaRequired(StringResourcesId = 2493)] /*Terem megadása kötelező*/
|
||||
[Display(Name = nameof(OrarendResource.Terem_kotelezo), ResourceType = typeof(OrarendResource))]
|
||||
public int? TeremID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Sorszamozando), ResourceType = typeof(OrarendResource))]
|
||||
public bool Sorszamozando { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ParhuzamosOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool ParhuzamosOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tulora), ResourceType = typeof(OrarendResource))]
|
||||
public bool Tulora { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TamopOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool TAMOPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KIPOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool KIPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.VEKOP73317), ResourceType = typeof(OrarendResource))]
|
||||
public bool VEKOP73317 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KAPOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool KAPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.NemSzakrendszeruOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool NemSzakrendszeruOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.IktTanora), ResourceType = typeof(OrarendResource))]
|
||||
public bool IKTTanora { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.NemzetisegiTanora), ResourceType = typeof(OrarendResource))]
|
||||
public bool NemzetisegiOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(TantargyResource.MegbizasiSzerzodesselEllatottOra), ResourceType = typeof(TantargyResource))]
|
||||
public bool IsFelnottoktatasiSzerzodes { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OnlineOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool OnlineOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.MindennaposTestneveles), ResourceType = typeof(OrarendResource))]
|
||||
public bool MindennaposTestneveles { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.IprTanora), ResourceType = typeof(OrarendResource))]
|
||||
public bool IPRTanora { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Differencialt), ResourceType = typeof(OrarendResource))]
|
||||
public bool Differencialt { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Kooperativ), ResourceType = typeof(OrarendResource))]
|
||||
public bool Kooperativ { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Meres), ResourceType = typeof(OrarendResource))]
|
||||
public bool Meres { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Drama), ResourceType = typeof(OrarendResource))]
|
||||
public bool Drama { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tiop12), ResourceType = typeof(OrarendResource))]
|
||||
public bool Tiop { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Bontott), ResourceType = typeof(OrarendResource))]
|
||||
public bool Bontott { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HetNapja), ResourceType = typeof(OrarendResource))]
|
||||
public string HetNapjaSzoveg { get; set; }
|
||||
|
||||
[KretaDisplayName(1530)] /*Óra érvényességi ideje*/
|
||||
public string ErvenyessegiIdoSzoveg { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 4575)] /*Óra érvényességi idejének kezdete kötelező*/
|
||||
[Display(Name = nameof(OrarendResource.ErvenyessegKezdete), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? OraErvenyessegKezdete { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 4576)] /*Óra érvényességi idejének vége kötelező*/
|
||||
[Display(Name = nameof(OrarendResource.ErvenyessegVege), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? OraErvenyessegVege { get; set; }
|
||||
|
||||
public DateTime? ValasztottDatum { get; set; }
|
||||
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.CsengetesiRend), ResourceType = typeof(OrarendResource))]
|
||||
public int? CsengetesiRendID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Oraszam), ResourceType = typeof(OrarendResource))]
|
||||
[KretaRange(0, 24)]
|
||||
public int? Oraszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Multikulturalis), ResourceType = typeof(OrarendResource))]
|
||||
public bool Multikulturalis { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP32317DigitalisKornyezetAKozenevelesben), ResourceType = typeof(OrarendResource))]
|
||||
public bool EFOP32317 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KomplexOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool KomplexOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.GINOP623), ResourceType = typeof(OrarendResource))]
|
||||
public bool GINOP623 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP31716EselyteremtesAKoznevelesben), ResourceType = typeof(OrarendResource))]
|
||||
public bool EFOP31716EselyteremtesAKoznevelesben { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP33717), ResourceType = typeof(OrarendResource))]
|
||||
public bool EFOP33717 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TIOP11112120120001), ResourceType = typeof(OrarendResource))]
|
||||
public bool TIOP11112120120001 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Foglalkozas), ResourceType = typeof(OrarendResource))]
|
||||
public string FoglalkozasNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
||||
public string OsztalyCsoportNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public string TantargyNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tanar), ResourceType = typeof(OrarendResource))]
|
||||
public string TanarNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Terem), ResourceType = typeof(OrarendResource))]
|
||||
public string TeremNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraszamIdopont), ResourceType = typeof(OrarendResource))]
|
||||
public string OraIdopont { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.CsengetesiRend), ResourceType = typeof(OrarendResource))]
|
||||
public string CsengetesiRendNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraKezdete), ResourceType = typeof(OrarendResource))]
|
||||
public string OraKezdeteSzoveg { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraVege), ResourceType = typeof(OrarendResource))]
|
||||
public string OraVegeSzoveg { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ErvenyessegKezdete), ResourceType = typeof(OrarendResource))]
|
||||
public string OraErvenyessegKezdeteSzoveg { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ErvenyessegVege), ResourceType = typeof(OrarendResource))]
|
||||
public string OraErvenyessegVegeSzoveg { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DFHT), ResourceType = typeof(OrarendResource))]
|
||||
public bool DFHT { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Rahangolodas), ResourceType = typeof(OrarendResource))]
|
||||
public bool Rahangolodas { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Testmozgas), ResourceType = typeof(OrarendResource))]
|
||||
public bool Testmozgas { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Muveszet), ResourceType = typeof(OrarendResource))]
|
||||
public bool Muveszet { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Eletgyakorlat), ResourceType = typeof(OrarendResource))]
|
||||
public bool Eletgyakorlat { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Logika), ResourceType = typeof(OrarendResource))]
|
||||
public bool Logika { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TeOrad), ResourceType = typeof(OrarendResource))]
|
||||
public bool TeOrad { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigitalisAlapProgram), ResourceType = typeof(OrarendResource))]
|
||||
public bool DigitalisAlapProgram { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP23517201700038Miapalya), ResourceType = typeof(OrarendResource))]
|
||||
public bool EFOP23517201700038Miapalya { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanevTananyaganakIsmetlese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanevTananyaganakIsmetlese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanevTananyaganakKiegeszitese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanevTananyaganakKiegeszitese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokDigitalisKeszsegfejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokDigitalisKeszsegfejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Projektmunka), ResourceType = typeof(OrarendResource))]
|
||||
public bool Projektmunka { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokKompenzaciosIraskeszsegFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokKompenzaciosIraskeszsegFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokKompenzaciosOlvasasiKepessegFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokKompenzaciosOlvasasiKepessegFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokNyelviKepessegenekKompenzaciosFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokNyelviKepessegenekKompenzaciosFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokOnmegismeresenekSegitese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokOnmegismeresenekSegitese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokOnallosagraNevelese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokOnallosagraNevelese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokOrientaciosTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokOrientaciosTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokSzocialitasanakFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokSzocialitasanakFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokTovabbhaladasatElokeszitoTevekenysegek), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokTovabbhaladasatElokeszitoTevekenysegek { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.PedagogusAltalJelzettEgyeniEsetkezeles), ResourceType = typeof(OrarendResource))]
|
||||
public bool PedagogusAltalJelzettEgyeniEsetkezeles { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ProjektmunkaTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public bool ProjektmunkaTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigitalisKeszsegfejlesztes), ResourceType = typeof(OrarendResource))]
|
||||
public bool DigitalisKeszsegfejlesztes { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KozossegiMunkaTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public bool KozossegiMunkaTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanoraElokeszitesenekTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanoraElokeszitesenekTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanoraLebonyolitasanakTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanoraLebonyolitasanakTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.NapkozisTevekenysegKeretebenEgyeniFejlesztes), ResourceType = typeof(OrarendResource))]
|
||||
public bool NapkozisTevekenysegKeretebenEgyeniFejlesztes { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.IsEgybefuggoGyakorlat), ResourceType = typeof(OrarendResource))]
|
||||
public bool IsEgybefuggoGyakorlat { get; set; }
|
||||
|
||||
public int OrarendiElemekRogzitesenekElofeltetele { get; set; }
|
||||
|
||||
public bool IsFromSzervezet { get; set; }
|
||||
public bool IsMentorOra { get; set; }
|
||||
|
||||
public OraValidationCo CreateOraValidationCo()
|
||||
{
|
||||
return new OraValidationCo
|
||||
{
|
||||
OrarendiOraValidationCo = new OrarendiOraValidationCo
|
||||
{
|
||||
Id = ID,
|
||||
ModificationDate = ModificationDate,
|
||||
CsengetesiRendOraId = CsengetesiRendOraID,
|
||||
CsengetesiRendId = CsengetesiRendID,
|
||||
OraKezdete = OraKezdete.Value.ToLocalTime(),
|
||||
OraVege = OraVege.Value.ToLocalTime(),
|
||||
Differencialt = Differencialt,
|
||||
Drama = Drama,
|
||||
FoglalkozasID = TTFModel.FoglalkozasID,
|
||||
OsztalyId = TTFModel.OsztalyID,
|
||||
TantargyId = TTFModel.TantargyID.Value,
|
||||
TanarId = TTFModel.TanarID,
|
||||
TeremId = TeremID.Value,
|
||||
HetirendId = HetirendID.Value,
|
||||
HetNapjaId = HetNapja,
|
||||
IKTTanora = IKTTanora,
|
||||
IPRTanora = IPRTanora,
|
||||
Kooperativ = Kooperativ,
|
||||
Meres = Meres,
|
||||
MindennaposTestneveles = MindennaposTestneveles,
|
||||
NemSzakrendszeruOra = NemSzakrendszeruOra,
|
||||
NemzetisegiOra = NemzetisegiOra,
|
||||
IsFelnottoktatasiSzerzodes = IsFelnottoktatasiSzerzodes,
|
||||
OnlineOra = OnlineOra,
|
||||
OraErvenyessegKezdete = OraErvenyessegKezdete.Value,
|
||||
OraErvenyessegVege = OraErvenyessegVege.Value,
|
||||
ParhuzamosOra = ParhuzamosOra,
|
||||
Sorszamozando = Sorszamozando,
|
||||
TAMOPOra = TAMOPOra,
|
||||
KIPOra = KIPOra,
|
||||
VEKOP73317 = VEKOP73317,
|
||||
KAPOra = KAPOra,
|
||||
Tiop = Tiop,
|
||||
Tulora = Tulora,
|
||||
Bontott = Bontott,
|
||||
IsModification = IsModification,
|
||||
Oraszam = Oraszam,
|
||||
Multikulturalis = Multikulturalis,
|
||||
EFOP32317 = EFOP32317,
|
||||
KomplexOra = KomplexOra,
|
||||
EFOP31716EselyteremtesAKoznevelesben = EFOP31716EselyteremtesAKoznevelesben,
|
||||
EFOP33717 = EFOP33717,
|
||||
GINOP623 = GINOP623,
|
||||
IsEgyediNap = IsEgyediNap,
|
||||
IsNapirend = IsTanoranKivuliFoglalkozas,
|
||||
TIOP11112120120001 = TIOP11112120120001,
|
||||
DFHT = DFHT,
|
||||
Rahangolodas = Rahangolodas,
|
||||
Testmozgas = Testmozgas,
|
||||
Muveszet = Muveszet,
|
||||
Eletgyakorlat = Eletgyakorlat,
|
||||
Logika = Logika,
|
||||
TeOrad = TeOrad,
|
||||
DigitalisAlapProgram = DigitalisAlapProgram,
|
||||
ModositasiIdoszakTipus = ModositasiIdoszakTipus,
|
||||
JSHelperNev = JSHelperNev,
|
||||
EFOP23517201700038Miapalya = EFOP23517201700038Miapalya,
|
||||
TanevTananyaganakIsmetlese = TanevTananyaganakIsmetlese,
|
||||
TanevTananyaganakKiegeszitese = TanevTananyaganakKiegeszitese,
|
||||
TanulokDigitalisKeszsegfejlesztese = TanulokDigitalisKeszsegfejlesztese,
|
||||
Projektmunka = Projektmunka,
|
||||
TanulokKompenzaciosIraskeszsegFejlesztese = TanulokKompenzaciosIraskeszsegFejlesztese,
|
||||
TanulokKompenzaciosOlvasasiKepessegFejlesztese = TanulokKompenzaciosOlvasasiKepessegFejlesztese,
|
||||
TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese = TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese,
|
||||
TanulokNyelviKepessegenekKompenzaciosFejlesztese = TanulokNyelviKepessegenekKompenzaciosFejlesztese,
|
||||
TanulokOnmegismeresenekSegitese = TanulokOnmegismeresenekSegitese,
|
||||
TanulokOnallosagraNevelese = TanulokOnallosagraNevelese,
|
||||
TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese = TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese,
|
||||
TanulokOrientaciosTamogatasa = TanulokOrientaciosTamogatasa,
|
||||
TanulokSzocialitasanakFejlesztese = TanulokSzocialitasanakFejlesztese,
|
||||
TanulokTovabbhaladasatElokeszitoTevekenysegek = TanulokTovabbhaladasatElokeszitoTevekenysegek,
|
||||
PedagogusAltalJelzettEgyeniEsetkezeles = PedagogusAltalJelzettEgyeniEsetkezeles,
|
||||
ProjektmunkaTamogatasa = ProjektmunkaTamogatasa,
|
||||
DigitalisKeszsegfejlesztes = DigitalisKeszsegfejlesztes,
|
||||
KozossegiMunkaTamogatasa = KozossegiMunkaTamogatasa,
|
||||
TanoraElokeszitesenekTamogatasa = TanoraElokeszitesenekTamogatasa,
|
||||
TanoraLebonyolitasanakTamogatasa = TanoraLebonyolitasanakTamogatasa,
|
||||
NapkozisTevekenysegKeretebenEgyeniFejlesztes = NapkozisTevekenysegKeretebenEgyeniFejlesztes,
|
||||
IsFromSzervezet = IsFromSzervezet,
|
||||
IsMentorOra = IsMentorOra,
|
||||
IsEgybefuggoGyakorlat = IsEgybefuggoGyakorlat
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public class TTFModel
|
||||
{
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.PedagogusMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
[Display(Name = nameof(OrarendResource.Pedagogus), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanarID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Foglalkozas), ResourceType = typeof(OrarendResource))]
|
||||
public int? FoglalkozasID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport_kotelezo), ResourceType = typeof(OrarendResource))]
|
||||
public int? OsztalyID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy_kotelezo), ResourceType = typeof(OrarendResource))]
|
||||
public int? TantargyID { get; set; }
|
||||
|
||||
[KretaDisplayName(274)] /*Óraszám*/
|
||||
public int? Oraszam { get; set; }
|
||||
|
||||
[KretaDisplayName(2661)] /*Foglalkozás neve*/
|
||||
public string Nev { get; set; }
|
||||
}
|
||||
|
||||
public class OrarendiOraValidationModel
|
||||
{
|
||||
public OrarendiOraValidationModel()
|
||||
{
|
||||
TanarokID = new List<int>();
|
||||
}
|
||||
|
||||
public int? Id { get; set; }
|
||||
public DateTime OraErvenyessegKezdete { get; set; }
|
||||
public DateTime OraErvenyessegVege { get; set; }
|
||||
public int HetirendId { get; set; }
|
||||
public int CsengetesiRendId { get; set; }
|
||||
public int CsengetesiRendOraId { get; set; }
|
||||
public int TeremId { get; set; }
|
||||
public int HetNapjaId { get; set; }
|
||||
public int OsztalyId { get; set; }
|
||||
public List<int> TanarokID { get; set; }
|
||||
public DateTime OraKezdete { get; set; }
|
||||
public DateTime OraVege { get; set; }
|
||||
public int? Oraszam { get; set; }
|
||||
public DateTime ModificationDate { get; set; }
|
||||
public bool IsModification { get; set; }
|
||||
public int ModositasiIdoszakTipus { get; set; }
|
||||
public string JSHelperNev { get; set; }
|
||||
public bool IsEgyediNap { get; set; }
|
||||
public bool IsNapirend { get; set; }
|
||||
public int TantargyId { get; set; }
|
||||
|
||||
public static OrarendiOraValidationModel ConvertToModel(OrarendiOraValidationCo co)
|
||||
{
|
||||
return new OrarendiOraValidationModel
|
||||
{
|
||||
Id = co.Id,
|
||||
OraErvenyessegKezdete = co.OraErvenyessegKezdete,
|
||||
OraErvenyessegVege = co.OraErvenyessegVege,
|
||||
HetirendId = co.HetirendId,
|
||||
CsengetesiRendId = co.CsengetesiRendId.Value,
|
||||
CsengetesiRendOraId = co.CsengetesiRendOraId,
|
||||
TeremId = co.TeremId,
|
||||
HetNapjaId = co.HetNapjaId,
|
||||
OsztalyId = co.OsztalyId.Value,
|
||||
TanarokID = new List<int> { co.TanarId ?? -1 },
|
||||
OraKezdete = co.OraKezdete,
|
||||
OraVege = co.OraVege,
|
||||
Oraszam = co.Oraszam.Value,
|
||||
ModificationDate = co.ModificationDate,
|
||||
IsModification = co.IsModification,
|
||||
ModositasiIdoszakTipus = co.ModositasiIdoszakTipus,
|
||||
JSHelperNev = co.JSHelperNev,
|
||||
IsEgyediNap = co.IsEgyediNap,
|
||||
IsNapirend = co.IsNapirend,
|
||||
TantargyId = co.TantargyId.Value
|
||||
};
|
||||
}
|
||||
|
||||
public OrarendiOraValidationCo ConvertToCo()
|
||||
{
|
||||
return new OrarendiOraValidationCo
|
||||
{
|
||||
Id = this.Id,
|
||||
OraErvenyessegKezdete = this.OraErvenyessegKezdete,
|
||||
OraErvenyessegVege = this.OraErvenyessegVege,
|
||||
HetirendId = this.HetirendId,
|
||||
CsengetesiRendId = this.CsengetesiRendId,
|
||||
CsengetesiRendOraId = this.CsengetesiRendOraId,
|
||||
TeremId = this.TeremId,
|
||||
HetNapjaId = this.HetNapjaId,
|
||||
OsztalyId = this.OsztalyId,
|
||||
TanarId = this.TanarokID.Count > 0 ? this.TanarokID[0] : (int?)default,
|
||||
OraKezdete = this.OraKezdete,
|
||||
OraVege = this.OraVege,
|
||||
Oraszam = this.Oraszam,
|
||||
ModificationDate = this.ModificationDate,
|
||||
IsModification = this.IsModification,
|
||||
ModositasiIdoszakTipus = this.ModositasiIdoszakTipus,
|
||||
JSHelperNev = this.JSHelperNev,
|
||||
IsEgyediNap = this.IsEgyediNap,
|
||||
IsNapirend = this.IsNapirend,
|
||||
TantargyId = this.TantargyId
|
||||
};
|
||||
}
|
||||
|
||||
public OraValidationCo ConvertToValidationCo()
|
||||
{
|
||||
return new OraValidationCo
|
||||
{
|
||||
OrarendiOraValidationCo = new OrarendiOraValidationCo
|
||||
{
|
||||
Id = this.Id,
|
||||
OraErvenyessegKezdete = this.OraErvenyessegKezdete,
|
||||
OraErvenyessegVege = this.OraErvenyessegVege,
|
||||
HetirendId = this.HetirendId,
|
||||
CsengetesiRendId = this.CsengetesiRendId,
|
||||
CsengetesiRendOraId = this.CsengetesiRendOraId,
|
||||
TeremId = this.TeremId,
|
||||
HetNapjaId = this.HetNapjaId,
|
||||
OsztalyId = this.OsztalyId,
|
||||
TanarId = this.TanarokID.Count > 0 ? this.TanarokID[0] : (int?)default,
|
||||
OraKezdete = this.OraKezdete,
|
||||
OraVege = this.OraVege,
|
||||
Oraszam = this.Oraszam,
|
||||
ModificationDate = this.ModificationDate,
|
||||
IsModification = this.IsModification,
|
||||
ModositasiIdoszakTipus = this.ModositasiIdoszakTipus,
|
||||
JSHelperNev = this.JSHelperNev,
|
||||
IsEgyediNap = this.IsEgyediNap,
|
||||
IsNapirend = this.IsNapirend,
|
||||
TantargyId = this.TantargyId
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public class OsztalyOrarendModel
|
||||
{
|
||||
public int OsztalyId { get; set; }
|
||||
public CalendarModel CalendarModel { get; set; }
|
||||
}
|
||||
|
||||
public class CsengetesiRendOraszamaModel
|
||||
{
|
||||
public string AktualisCsengetesiRendId { get; set; }
|
||||
public int AktualisOraSzam { get; set; }
|
||||
}
|
||||
|
||||
}
|
17
KretaWeb/Areas/Orarend/Models/OrarendiOrakModel.cs
Normal file
17
KretaWeb/Areas/Orarend/Models/OrarendiOrakModel.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class OrarendiOrakModel
|
||||
{
|
||||
public int Index { get; set; }
|
||||
|
||||
public string FullCalendarId
|
||||
{
|
||||
get
|
||||
{
|
||||
return "FullCalendar-" + Index;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsFromSzervezet { get; set; }
|
||||
}
|
||||
}
|
19
KretaWeb/Areas/Orarend/Models/OsztalyCsoportNevGridModel.cs
Normal file
19
KretaWeb/Areas/Orarend/Models/OsztalyCsoportNevGridModel.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class OsztalyCsoportNevGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public string OsztalyCsoportNev { get; set; }
|
||||
|
||||
public bool Hozzarendelve { get; set; }
|
||||
|
||||
}
|
||||
}
|
35
KretaWeb/Areas/Orarend/Models/OsztalyOrarendTorleseModel.cs
Normal file
35
KretaWeb/Areas/Orarend/Models/OsztalyOrarendTorleseModel.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Resources;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class OsztalyOrarendTorleseModel : BaseOrarendTorleseModel
|
||||
{
|
||||
public IEnumerable<OrarendTorleseOsztalyCsoportListItem> OsztalyList { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = nameof(OrarendekTorleseResource.LegalabbEgyOsztalyKivalasztasaKotelezo), ErrorMessageResourceType = typeof(OrarendekTorleseResource))]
|
||||
public string SelectedOsztalyok { get; set; }
|
||||
|
||||
public OrarendekTorleseCo ConvertToCo()
|
||||
{
|
||||
return new OrarendekTorleseCo
|
||||
{
|
||||
IntervallumKezdete = KezdeteDatum.Value,
|
||||
IntervallumVege = VegeDatum.Value,
|
||||
NezetTipus = (OrarendekTorleseNezetTipusEnum)Enum.Parse(typeof(OrarendekTorleseNezetTipusEnum), OraTipus),
|
||||
Osztalyok = JsonConvert.DeserializeObject<List<OrarendTorleseOsztalyCsoportListItem>>(SelectedOsztalyok).Select(x => new OrarendekTorleseListItemCo
|
||||
{
|
||||
Id = x.Id,
|
||||
IsKellKapcsolodoCsoportok = x.IsKellKapcsolodoCsoportok,
|
||||
IsKellOsztalybontottCsoportok = x.IsKellOsztalybontottCsoportok,
|
||||
})
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class SzamonkeresElorejelzesGridModel : IKretaIdentity
|
||||
{
|
||||
|
||||
public string ID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public string Tantargy { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Oraszam), ResourceType = typeof(OrarendResource))]
|
||||
public double Oraszam { get; set; }
|
||||
[Display(Name = nameof(OrarendResource.Pedagogus), ResourceType = typeof(OrarendResource))]
|
||||
public string Tanar { get; set; }
|
||||
[Display(Name = nameof(OrarendResource.ErtekelesMod), ResourceType = typeof(OrarendResource))]
|
||||
public string SzamonkeresMod { get; set; }
|
||||
[Display(Name = nameof(OrarendResource.SzamonkeresMegnevezes), ResourceType = typeof(OrarendResource))]
|
||||
public string SzamonkeresMegnevezes { get; set; }
|
||||
[Display(Name = nameof(OrarendResource.TanulokSzama), ResourceType = typeof(OrarendResource))]
|
||||
public string TanulokSzama { get; set; }
|
||||
public bool Torolheto_BOOL { get; set; }
|
||||
}
|
||||
}
|
78
KretaWeb/Areas/Orarend/Models/SzamonkeresElorejelzesModel.cs
Normal file
78
KretaWeb/Areas/Orarend/Models/SzamonkeresElorejelzesModel.cs
Normal file
|
@ -0,0 +1,78 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Http.ModelBinding;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class SzamonkeresElorejelzesModel
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
public SzamonkeresElorejelzesModel()
|
||||
{
|
||||
}
|
||||
|
||||
public SzamonkeresElorejelzesModel(bool isFromSzervezet)
|
||||
{
|
||||
IsFromSzervezet_SzamonkeresElorejelzes = isFromSzervezet;
|
||||
}
|
||||
|
||||
public SzamonkeresElorejelzesModel(SzamonkeresElorejelzesCO co, bool isFromSzervezet)
|
||||
{
|
||||
OraGroupId = co.OrarendiOraGroupId;
|
||||
Datum = co.Datum;
|
||||
Megnevezes = co.Megnevezes;
|
||||
ErtekelesModId = co.SzamonkeresModId;
|
||||
Oraszam = co.Oraszam;
|
||||
IsFromSzervezet_SzamonkeresElorejelzes = isFromSzervezet;
|
||||
}
|
||||
|
||||
#endregion Constructors
|
||||
|
||||
#region Properties
|
||||
|
||||
[Display(Name = nameof(OrarendResource.SzamonkeresMegnevezes), ResourceType = typeof(OrarendResource))]
|
||||
[MaxLength(300, ErrorMessageResourceName = nameof(CommonResource.MaxLengthValidation), ErrorMessageResourceType = typeof(CommonResource))]
|
||||
public string Megnevezes { get; set; }
|
||||
[KretaRequired]
|
||||
[Display(Name = nameof(OrarendResource.ErtekelesMod), ResourceType = typeof(OrarendResource))]
|
||||
public int? ErtekelesModId { get; set; }
|
||||
public int? OraGroupId { get; set; }
|
||||
public int? Oraszam { get; set; }
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
public DateTime? Datum { get; set; }
|
||||
|
||||
public bool IsFromSzervezet_SzamonkeresElorejelzes { get; set; }
|
||||
|
||||
#endregion Properties
|
||||
|
||||
public ModelStateDictionary Validate()
|
||||
{
|
||||
var modelStateDictionary = new ModelStateDictionary();
|
||||
|
||||
if (!ErtekelesModId.HasValueAndPositive())
|
||||
{
|
||||
modelStateDictionary.AddModelError(nameof(OrarendResource.ErtekelesMod), string.Format(CommonResource.Required, $"\"{OrarendResource.ErtekelesMod}\""));
|
||||
}
|
||||
|
||||
return modelStateDictionary;
|
||||
}
|
||||
|
||||
public SzamonkeresElorejelzesCO ToCo()
|
||||
{
|
||||
var result = new SzamonkeresElorejelzesCO
|
||||
{
|
||||
OrarendiOraGroupId = OraGroupId.Value,
|
||||
Datum = Datum.Value,
|
||||
Megnevezes = Megnevezes,
|
||||
SzamonkeresModId = ErtekelesModId,
|
||||
Oraszam = Oraszam
|
||||
};
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Logic.Naplozas.Elokeszites;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class SzamonkeresElorejelzesNaplozas
|
||||
{
|
||||
public int? GroupId { get; set; }
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
public DateTime? Datum { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.SzamonkeresMegnevezes), ResourceType = typeof(OrarendResource))]
|
||||
public string Megnevezes { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ErtekelesMod), ResourceType = typeof(OrarendResource))]
|
||||
public int? ErtekelesModId { get; set; }
|
||||
|
||||
public void Fill(NaplozasElokeszitesModel model)
|
||||
{
|
||||
GroupId = model.OraAdat.GroupId;
|
||||
OsztalyCsoportId = model.OraAdat.OsztalyCsoportId;
|
||||
Datum = model.OraAdat.OraKezdete.Date;
|
||||
}
|
||||
}
|
||||
}
|
15
KretaWeb/Areas/Orarend/Models/TanariOrarendFogadooraModel.cs
Normal file
15
KretaWeb/Areas/Orarend/Models/TanariOrarendFogadooraModel.cs
Normal file
|
@ -0,0 +1,15 @@
|
|||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class TanariOrarendFogadooraModel
|
||||
{
|
||||
public int Index { get; set; }
|
||||
|
||||
public string FullCalendarId
|
||||
{
|
||||
get
|
||||
{
|
||||
return "FullCalendar-" + Index;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class TanariOrarendNemKotottMunkaidoModel
|
||||
{
|
||||
public int Index { get; set; }
|
||||
|
||||
public string FullCalendarId
|
||||
{
|
||||
get
|
||||
{
|
||||
return "FullCalendar-" + Index;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,83 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Helpers.SystemSettings;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
using Kreta.Web.Helpers;
|
||||
using Kreta.Web.Helpers.TabStrip;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class TanariOrarendModel
|
||||
{
|
||||
public TanariOrarendModel()
|
||||
{
|
||||
TabList = new List<TabStripItemModel>();
|
||||
LezartOsztalyokEsOsztalybontottCsoportokIdList = new List<int>();
|
||||
|
||||
var systemSettingsHelper = new SystemSettingsHelper(ConnectionTypeExtensions.GetSessionConnectionType());
|
||||
|
||||
LehetOratFelvenniTTFNelkul = systemSettingsHelper.GetSystemSettingValue<bool>(RendszerBeallitasTipusEnum.Lehet_orat_felvenni_TTF_nelkul);
|
||||
TanarVeheteFelOratMaganak = systemSettingsHelper.GetSystemSettingValue<bool>(RendszerBeallitasTipusEnum.Tanar_vehet_e_fel_orat_maganak);
|
||||
}
|
||||
|
||||
public bool LehetOratFelvenniTTFNelkul { get; set; }
|
||||
|
||||
public bool TanarVeheteFelOratMaganak { get; set; }
|
||||
|
||||
public string HetirendJson { get; set; }
|
||||
public string NaptariHetekHetirendJson { get; set; }
|
||||
|
||||
public bool ShowKerdoivPopup { get; set; }
|
||||
public List<TabStripItemModel> TabList { get; set; }
|
||||
|
||||
[KretaDisplayName(1681)] /*Helyettesített*/
|
||||
public int? Tanar { get; set; }
|
||||
|
||||
public bool isHelyettesites { get; set; }
|
||||
|
||||
public TimeSpan CalendarMinTime { get; set; }
|
||||
public TimeSpan CalendarMaxTime { get; set; }
|
||||
|
||||
public TimeSpan CsengetesiRendMinTime { get; set; }
|
||||
public TimeSpan CsengetesiRendMaxTime { get; set; }
|
||||
//public List<int> ErtekelesModListNapiLimithez { get { return new SzamonkeresElorejelzesHelper(ClaimData.SelectedTanevID.Value).Using(h => h.GetModListNapiLimithez()); } }
|
||||
|
||||
public List<int> LezartOsztalyokEsOsztalybontottCsoportokIdList { get; set; }
|
||||
|
||||
public string TanorakServiceAction { get; set; } = "GetTanariOrarendOrarendiorakEsTanorak";
|
||||
public string TanoranKivuliFoglalkozasokServiceAction { get; set; } = "GetTanariOrarendTanoranKivuliFoglalkozasok";
|
||||
public string NemKotottMunkaidoServiceAction { get; set; } = "GetTanariOrarendNemKotottMunkaido";
|
||||
public string FogadoorakServiceAction { get; set; } = "GetTanariOrarendFogadoora";
|
||||
public string TanorakCalendarClickJSFunction { get; set; } = "Tanorak.CalendarClickEvent";
|
||||
public string TanoranKivuliFoglalkozasokCalendarClickJSFunction { get; set; } = "Foglalkozasok.CalendarClickEvent";
|
||||
public string NemKotottMunkaidoCalendarClickJSFunction { get; set; } = "NemKotottMunkaido.CalendarClickEvent";
|
||||
public string FogadooraCalendarClickJSFunction { get; set; } = "Fogadoora.CalendarClickEvent";
|
||||
public string TanorakCalendarSelectJSFunction { get; set; } = "undefined";
|
||||
public string TanoranKivuliFoglalkozasokCalendarSelectJSFunction { get; set; } = "Foglalkozasok.CalendarSelectEvent";
|
||||
public string NemKotottMunkaidoCalendarSelectJSFunction { get; set; } = "NemKotottMunkaido.CalendarSelectEvent";
|
||||
public string FogadooraCalendarSelectJSFunction { get; set; } = "Fogadoora.CalendarSelectEvent";
|
||||
|
||||
public int? FelhasznalodTanarId { get; set; }
|
||||
|
||||
public bool IsShowRogzitottOrak { get; set; }
|
||||
|
||||
public DateTime TanevUtolsoTanitasiNap { get; set; }
|
||||
|
||||
public List<DateTime> RendkivuliTanitasiNapok { get; set; }
|
||||
|
||||
public bool IsNemKellNemKotott { get; set; }
|
||||
|
||||
public int? SzervezetTipusId { get; set; }
|
||||
public string ControllerName => SzervezetTipusId.HasValue ? Constants.Controllers.DualisTanariOrarend : Constants.Controllers.TanariOrarend;
|
||||
public string ApiControllerName => SzervezetTipusId.HasValue ? Constants.ApiControllers.DualisTanariOrarendApi : Constants.ApiControllers.TanariOrarendApi;
|
||||
}
|
||||
|
||||
public class TanariOrarendModelKeresheto : TanariOrarendModel
|
||||
{
|
||||
[Display(Name = nameof(OrarendResource.Tanar), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanarId { get; set; }
|
||||
}
|
||||
}
|
15
KretaWeb/Areas/Orarend/Models/TanariOrarendTanorakModel.cs
Normal file
15
KretaWeb/Areas/Orarend/Models/TanariOrarendTanorakModel.cs
Normal file
|
@ -0,0 +1,15 @@
|
|||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class TanariOrarendTanorakModel
|
||||
{
|
||||
public int Index { get; set; }
|
||||
|
||||
public string FullCalendarId
|
||||
{
|
||||
get
|
||||
{
|
||||
return "FullCalendar-" + Index;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class TanariOrarendTanoranKivuliFoglalkozasokModel
|
||||
{
|
||||
public int Index { get; set; }
|
||||
|
||||
public string FullCalendarId
|
||||
{
|
||||
get
|
||||
{
|
||||
return "FullCalendar-" + Index;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsFromSzervezet { get; set; }
|
||||
}
|
||||
}
|
103
KretaWeb/Areas/Orarend/Models/TanitasiOraGridModel.cs
Normal file
103
KretaWeb/Areas/Orarend/Models/TanitasiOraGridModel.cs
Normal file
|
@ -0,0 +1,103 @@
|
|||
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.Orarend.Models
|
||||
{
|
||||
public class TanitasiOraGridModel : IKretaIdentity
|
||||
{
|
||||
#region Fields
|
||||
|
||||
/// <summary>
|
||||
/// Technikai paraméter(ek) a reflection-ös exporthoz.
|
||||
/// </summary>
|
||||
public const string TanoraExportAttributeId = nameof(TanoraExportAttributeId);
|
||||
|
||||
#endregion Fields
|
||||
|
||||
public TanitasiOraGridModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public TanitasiOraGridModel(TanoraItemCo itemCo)
|
||||
{
|
||||
ID = itemCo.ID.ToString();
|
||||
Datum = itemCo.Datum;
|
||||
Ora = itemCo.Ora;
|
||||
OraSorszTxt = itemCo.OraSorszam;
|
||||
TanarNev = itemCo.TanarNev;
|
||||
Megjegyzes = itemCo.Megjegyzes;
|
||||
OsztCsopNev = itemCo.OsztCsopNev;
|
||||
TargyNev = itemCo.TargyNev;
|
||||
Tema = itemCo.Tema;
|
||||
NaplozasDatuma = itemCo.NaplozasDatuma;
|
||||
HFRogzitve = itemCo.HFRogzitve;
|
||||
OnlineOra = itemCo.OnlineOra;
|
||||
}
|
||||
|
||||
public string ID { get; set; }
|
||||
public int? OrarendiOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Datum), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(nameof(TanoraExportAttributeId), 00, nameof(OrarendResource.Datum), typeof(OrarendResource))]
|
||||
public DateTime Datum { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.NaplozasDatuma), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(nameof(TanoraExportAttributeId), 08, nameof(OrarendResource.NaplozasDatuma), typeof(OrarendResource))]
|
||||
public DateTime NaplozasDatuma { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.NagyOra), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(nameof(TanoraExportAttributeId), 01, nameof(OrarendResource.OraNaponBeluliSorszama), typeof(OrarendResource))]
|
||||
public int? Ora { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraSorszam), ResourceType = typeof(OrarendResource))]
|
||||
public int OraSorsz { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraSorszam), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(nameof(TanoraExportAttributeId), 02, nameof(OrarendResource.OraSorszam), typeof(OrarendResource))]
|
||||
public string OraSorszTxt { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraEvesSorszama), ResourceType = typeof(OrarendResource))]
|
||||
public int EvesSorsz { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanarHelyettesito), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(nameof(TanoraExportAttributeId), 03, nameof(OrarendResource.TanarHelyettesito), typeof(OrarendResource))]
|
||||
public string TanarNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanarHelyettesito), ResourceType = typeof(OrarendResource))]
|
||||
public string TanarNevElotagNelkul { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HelyettesitesOka), ResourceType = typeof(OrarendResource))]
|
||||
public string Helyettesitesoka { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Megjegyzes), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(nameof(TanoraExportAttributeId), 04, nameof(OrarendResource.Megjegyzes), typeof(OrarendResource))]
|
||||
public string Megjegyzes { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(nameof(TanoraExportAttributeId), 05, nameof(OrarendResource.OsztalyCsoport), typeof(OrarendResource))]
|
||||
public string OsztCsopNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(nameof(TanoraExportAttributeId), 06, nameof(OrarendResource.Tantargy), typeof(OrarendResource))]
|
||||
public string TargyNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tema), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(nameof(TanoraExportAttributeId), 07, nameof(OrarendResource.Tema), typeof(OrarendResource))]
|
||||
public string Tema { get; set; }
|
||||
|
||||
public string HFRogzitve_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HFRogzitve), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(nameof(TanoraExportAttributeId), 09, nameof(OrarendResource.HFRogzitve), typeof(OrarendResource))]
|
||||
public string HFRogzitve { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OnlineOra), ResourceType = typeof(OrarendResource))]
|
||||
[SimpleExportColumn(nameof(TanoraExportAttributeId), 10, nameof(OrarendResource.OnlineOra), typeof(OrarendResource))]
|
||||
public string OnlineOra { get; set; }
|
||||
}
|
||||
}
|
81
KretaWeb/Areas/Orarend/Models/TanitasiOraInfoModel.cs
Normal file
81
KretaWeb/Areas/Orarend/Models/TanitasiOraInfoModel.cs
Normal file
|
@ -0,0 +1,81 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Helpers.SystemSettings;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Helpers;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class TanitasiOraInfoModel
|
||||
{
|
||||
public TanitasiOraInfoModel()
|
||||
{
|
||||
TanoraTemaEllenorzobenLathato = new SystemSettingsHelper(ConnectionTypeExtensions.GetSessionConnectionType()).GetSystemSettingValue<bool>(RendszerBeallitasTipusEnum.Tanora_Tema_Az_Ellenorzoben);
|
||||
}
|
||||
|
||||
public bool TanoraTemaEllenorzobenLathato { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Datum), ResourceType = typeof(OrarendResource))]
|
||||
public string Datum { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraszamIdopont), ResourceType = typeof(OrarendResource))]
|
||||
public int? Oraszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HetNapja), ResourceType = typeof(OrarendResource))]
|
||||
public string HetNapja { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Hetirend), ResourceType = typeof(OrarendResource))]
|
||||
public string Hetirend { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Foglalkozas), ResourceType = typeof(OrarendResource))]
|
||||
public string Foglalkozas { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
||||
public string OsztalyCsoport { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public string Tantargy { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Alkalmazott), ResourceType = typeof(OrarendResource))]
|
||||
public string Tanar { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Helyiseg), ResourceType = typeof(OrarendResource))]
|
||||
public string Terem { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Megtartott), ResourceType = typeof(OrarendResource))]
|
||||
public string Megtartott { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Sorszamozott), ResourceType = typeof(OrarendResource))]
|
||||
public string Sorszamozando { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanitasiOraKezdete), ResourceType = typeof(OrarendResource))]
|
||||
public string OraKezdete { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanitasiOraVege), ResourceType = typeof(OrarendResource))]
|
||||
public string OraVege { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanitasiOraTemaja), ResourceType = typeof(OrarendResource))]
|
||||
public string Tema { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Megjegyzes), ResourceType = typeof(OrarendResource))]
|
||||
public string Megjegyzes { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HaziFeladat), ResourceType = typeof(OrarendResource))]
|
||||
public string HaziFeladat { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitoPedagogus), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string HelyettesitoTanar { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitesOka), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string HelyettesitesOka { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.HelyettesitesTipusa), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string HelyettesitesTipusa { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.NaplozasIdopontja), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string NaplozasIdopontja { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.LegutobbiModositasIdopontja), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string LegutobbiModositasIdopontja { get; set; }
|
||||
}
|
||||
}
|
358
KretaWeb/Areas/Orarend/Models/TanitasiOraSearchModel.cs
Normal file
358
KretaWeb/Areas/Orarend/Models/TanitasiOraSearchModel.cs
Normal file
|
@ -0,0 +1,358 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.BusinessLogic.Helpers.SystemSettings;
|
||||
using Kreta.Core;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Framework;
|
||||
using Kreta.Framework.Util;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Helpers;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class TanitasiOraSearchModel
|
||||
{
|
||||
public TanitasiOraSearchModel()
|
||||
{
|
||||
this.CheckBoxValueList = new List<SelectListItem>();
|
||||
this.CheckBoxValueList.Add(new SelectListItem() { Text = StringResourcesUtil.GetString(133)/*Igen*/, Value = ((int)IgenNemEnum.Igen).ToString() });
|
||||
this.CheckBoxValueList.Add(new SelectListItem() { Text = StringResourcesUtil.GetString(134)/*Nem*/, Value = ((int)IgenNemEnum.Nem).ToString() });
|
||||
KellKapcsolodoCsoportok = false;
|
||||
|
||||
if (ClaimData.IsVegyes)
|
||||
{
|
||||
FeladatKategoriaId = new SystemSettingsHelper(ConnectionTypeExtensions.GetSessionConnectionType()).GetSystemSettingValue<int>(RendszerBeallitasTipusEnum.Default_Feladat_Kategoria);
|
||||
}
|
||||
|
||||
DigTamEszkozTipusList = GetDigTamEszkozTipusList();
|
||||
}
|
||||
|
||||
[Display(Name = nameof(OrarendResource.MegtartottOrakIdoszaka), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? DatumTol { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.MegtartottOrakIdoszaka), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? DatumIg { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KapcsolodoCsoportok), ResourceType = typeof(OrarendResource))]
|
||||
public bool KellKapcsolodoCsoportok { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.CsoportTipusa), ResourceType = typeof(OrarendResource))]
|
||||
public int? CsoportTipus { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Foglalkozas), ResourceType = typeof(OrarendResource))]
|
||||
public int? FoglalkozasId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public int? TantargyId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Pedagogus), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanarId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Helyiseg), ResourceType = typeof(OrarendResource))]
|
||||
public int? TeremId { get; set; }
|
||||
|
||||
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
|
||||
public int? FeladatEllatasiHelyID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.EllatottKoznevelesiFeladatTipus), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? FeladatKategoriaId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ElmaradtOra), ResourceType = typeof(OrarendResource))]
|
||||
public int? Elmaradt { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Sorszamozando), ResourceType = typeof(OrarendResource))]
|
||||
public int? Sorszamozando { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ParhuzamosOra), ResourceType = typeof(OrarendResource))]
|
||||
public int? ParhuzamosOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tulora), ResourceType = typeof(OrarendResource))]
|
||||
public int? Tulora { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TamopOra), ResourceType = typeof(OrarendResource))]
|
||||
public int? TAMOPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KAPOra), ResourceType = typeof(OrarendResource))]
|
||||
public int? KAPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KIPOra), ResourceType = typeof(OrarendResource))]
|
||||
public int? KIPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.VEKOP73317), ResourceType = typeof(OrarendResource))]
|
||||
public int? VEKOP73317 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.NemSzakrendszeruOra), ResourceType = typeof(OrarendResource))]
|
||||
public int? NemSzakrendszeruOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.IktTanora), ResourceType = typeof(OrarendResource))]
|
||||
public int? IKTTanora { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.NemzetisegiTanora), ResourceType = typeof(OrarendResource))]
|
||||
public int? NemzetisegiOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(TantargyResource.MegbizasiSzerzodesselEllatottOra), ResourceType = typeof(TantargyResource))]
|
||||
public int? IsFelnottoktatasiSzerzodes { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OnlineOra), ResourceType = typeof(OrarendResource))]
|
||||
public int? OnlineOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.MindennaposTestneveles), ResourceType = typeof(OrarendResource))]
|
||||
public int? MindennaposTestneveles { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.IprTanora), ResourceType = typeof(OrarendResource))]
|
||||
public int? IPRTanora { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Differencialt), ResourceType = typeof(OrarendResource))]
|
||||
public int? Differencialt { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Kooperativ), ResourceType = typeof(OrarendResource))]
|
||||
public int? Kooperativ { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Meres), ResourceType = typeof(OrarendResource))]
|
||||
public int? Meres { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Drama), ResourceType = typeof(OrarendResource))]
|
||||
public int? Drama { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tiop12), ResourceType = typeof(OrarendResource))]
|
||||
public int? Tiop { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Bontott), ResourceType = typeof(OrarendResource))]
|
||||
public int? Bontott { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HelyettesitettSearchModel), ResourceType = typeof(OrarendResource))]
|
||||
public int? Helyetesitett { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP32317DigitalisKornyezetAKozenevelesben), ResourceType = typeof(OrarendResource))]
|
||||
public int? EFOP32317 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.GINOP623), ResourceType = typeof(OrarendResource))]
|
||||
public int? GINOP623 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KomplexOra), ResourceType = typeof(OrarendResource))]
|
||||
public int? KomplexOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Multikulturalis), ResourceType = typeof(OrarendResource))]
|
||||
public int? MultikulturalisOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP31716EselyteremtesAKoznevelesben), ResourceType = typeof(OrarendResource))]
|
||||
public int? EFOP31716EselyteremtesAKoznevelesben { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP33717), ResourceType = typeof(OrarendResource))]
|
||||
public int? EFOP33717 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TIOP11112120120001), ResourceType = typeof(OrarendResource))]
|
||||
public int? TIOP11112120120001 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DFHT), ResourceType = typeof(OrarendResource))]
|
||||
public int? DFHTOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Rahangolodas), ResourceType = typeof(OrarendResource))]
|
||||
public int? Rahangolodas { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Testmozgas), ResourceType = typeof(OrarendResource))]
|
||||
public int? TestmozgasAlapuAlprogram { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Muveszet), ResourceType = typeof(OrarendResource))]
|
||||
public int? MuveszetAlapuAlprogram { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Eletgyakorlat), ResourceType = typeof(OrarendResource))]
|
||||
public int? EletgyakorlatAlapuAlprogram { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Logika), ResourceType = typeof(OrarendResource))]
|
||||
public int? LogikaAlapuAlprogram { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TeOrad), ResourceType = typeof(OrarendResource))]
|
||||
public int? TeOrad { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigitalisAlapProgram), ResourceType = typeof(OrarendResource))]
|
||||
public int? DigitalisAlapuAlprogram { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HFRogzitve), ResourceType = typeof(OrarendResource))]
|
||||
public int? HFRogzitve { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP23517201700038Miapalya), ResourceType = typeof(OrarendResource))]
|
||||
public int? EFOP23517201700038Miapalya { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanevTananyaganakIsmetlese), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanevTananyaganakIsmetlese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanevTananyaganakKiegeszitese), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanevTananyaganakKiegeszitese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokDigitalisKeszsegfejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanulokDigitalisKeszsegfejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Projektmunka), ResourceType = typeof(OrarendResource))]
|
||||
public int? Projektmunka { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokKompenzaciosIraskeszsegFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanulokKompenzaciosIraskeszsegFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokKompenzaciosOlvasasiKepessegFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanulokKompenzaciosOlvasasiKepessegFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokNyelviKepessegenekKompenzaciosFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanulokNyelviKepessegenekKompenzaciosFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokOnmegismeresenekSegitese), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanulokOnmegismeresenekSegitese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokOnallosagraNevelese), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanulokOnallosagraNevelese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokOrientaciosTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanulokOrientaciosTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokSzocialitasanakFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanulokSzocialitasanakFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokTovabbhaladasatElokeszitoTevekenysegek), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanulokTovabbhaladasatElokeszitoTevekenysegek { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.PedagogusAltalJelzettEgyeniEsetkezeles), ResourceType = typeof(OrarendResource))]
|
||||
public int? PedagogusAltalJelzettEgyeniEsetkezeles { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ProjektmunkaTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public int? ProjektmunkaTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigitalisKeszsegfejlesztes), ResourceType = typeof(OrarendResource))]
|
||||
public int? DigitalisKeszsegfejlesztes { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KozossegiMunkaTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public int? KozossegiMunkaTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanoraElokeszitesenekTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanoraElokeszitesenekTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanoraLebonyolitasanakTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public int? TanoraLebonyolitasanakTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.NapkozisTevekenysegKeretebenEgyeniFejlesztes), ResourceType = typeof(OrarendResource))]
|
||||
public int? NapkozisTevekenysegKeretebenEgyeniFejlesztes { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigPlatformTipusKeresoPanel), ResourceType = typeof(OrarendResource))]
|
||||
public int? DigPlatformTipusId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigEszkozTipusKeresoPanel), ResourceType = typeof(OrarendResource))]
|
||||
public int? DigEszkozTipusId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigTamEszkozTipusKeresoPanel), ResourceType = typeof(OrarendResource))]
|
||||
public string[] DigTamEszkozTipus { get; set; }
|
||||
|
||||
public List<SelectListItem> DigTamEszkozTipusList { get; set; }
|
||||
|
||||
public List<SelectListItem> CheckBoxValueList { get; set; }
|
||||
|
||||
public static TanoraKeresoCO ConvertModelToCo(TanitasiOraSearchModel model)
|
||||
{
|
||||
return new TanoraKeresoCO
|
||||
{
|
||||
Tol = model.DatumTol,
|
||||
Ig = model.DatumIg,
|
||||
OsztCsop = model.OsztalyCsoportId,
|
||||
KellKapcsolodoCsoportok = model.KellKapcsolodoCsoportok,
|
||||
CsopTip = model.CsoportTipus,
|
||||
Fogl = model.FoglalkozasId,
|
||||
Targy = model.TantargyId,
|
||||
Tanar = model.TanarId,
|
||||
Terem = model.TeremId,
|
||||
FeladatEllatasiHely = model.FeladatEllatasiHelyID,
|
||||
FeladatKategoria = model.FeladatKategoriaId.IsEntityId() ? model.FeladatKategoriaId : null,
|
||||
Elmaradt = model.Elmaradt,
|
||||
Sorszamozando = model.Sorszamozando,
|
||||
ParhuzamosOra = model.ParhuzamosOra,
|
||||
Tulora = model.Tulora,
|
||||
TAMOP = model.TAMOPOra,
|
||||
KIPOra = model.KIPOra,
|
||||
VEKOP73317 = model.VEKOP73317,
|
||||
KAPOra = model.KAPOra,
|
||||
NemSzakrendszeruOra = model.NemSzakrendszeruOra,
|
||||
IKTTanora = model.IKTTanora,
|
||||
NemzetisegiOra = model.NemzetisegiOra,
|
||||
IsFelnottoktatasiSzerzodes = model.IsFelnottoktatasiSzerzodes,
|
||||
OnlineOra = model.OnlineOra,
|
||||
MindennaposTestneveles = model.MindennaposTestneveles,
|
||||
IPRTanora = model.IPRTanora,
|
||||
Differencialt = model.Differencialt,
|
||||
Kooperativ = model.Kooperativ,
|
||||
Meres = model.Meres,
|
||||
Drama = model.Drama,
|
||||
Tiop = model.Tiop,
|
||||
Bontott = model.Bontott,
|
||||
Helyettesitett = model.Helyetesitett,
|
||||
EFOP32317 = model.EFOP32317,
|
||||
GINOP623 = model.GINOP623,
|
||||
MultikulturalisOra = model.MultikulturalisOra,
|
||||
KomplexOra = model.KomplexOra,
|
||||
EFOP31716EselyteremtesAKoznevelesben = model.EFOP31716EselyteremtesAKoznevelesben,
|
||||
EFOP33717 = model.EFOP33717,
|
||||
TIOP11112120120001 = model.TIOP11112120120001,
|
||||
DFHTOra = model.DFHTOra,
|
||||
Rahangolodas = model.Rahangolodas,
|
||||
TestmozgasAlapuAlprogram = model.TestmozgasAlapuAlprogram,
|
||||
MuveszetAlapuAlprogram = model.MuveszetAlapuAlprogram,
|
||||
EletgyakorlatAlapuAlprogram = model.EletgyakorlatAlapuAlprogram,
|
||||
LogikaAlapuAlprogram = model.LogikaAlapuAlprogram,
|
||||
TeOrad = model.TeOrad,
|
||||
DigitalisAlapuAlprogram = model.DigitalisAlapuAlprogram,
|
||||
HFRogzitve = model.HFRogzitve,
|
||||
EFOP23517201700038Miapalya = model.EFOP23517201700038Miapalya,
|
||||
TanevTananyaganakIsmetlese = model.TanevTananyaganakIsmetlese,
|
||||
TanevTananyaganakKiegeszitese = model.TanevTananyaganakKiegeszitese,
|
||||
TanulokDigitalisKeszsegfejlesztese = model.TanulokDigitalisKeszsegfejlesztese,
|
||||
Projektmunka = model.Projektmunka,
|
||||
TanulokKompenzaciosIraskeszsegFejlesztese = model.TanulokKompenzaciosIraskeszsegFejlesztese,
|
||||
TanulokKompenzaciosOlvasasiKepessegFejlesztese = model.TanulokKompenzaciosOlvasasiKepessegFejlesztese,
|
||||
TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese = model.TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese,
|
||||
TanulokNyelviKepessegenekKompenzaciosFejlesztese = model.TanulokNyelviKepessegenekKompenzaciosFejlesztese,
|
||||
TanulokOnmegismeresenekSegitese = model.TanulokOnmegismeresenekSegitese,
|
||||
TanulokOnallosagraNevelese = model.TanulokOnallosagraNevelese,
|
||||
TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese = model.TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese,
|
||||
TanulokOrientaciosTamogatasa = model.TanulokOrientaciosTamogatasa,
|
||||
TanulokSzocialitasanakFejlesztese = model.TanulokSzocialitasanakFejlesztese,
|
||||
TanulokTovabbhaladasatElokeszitoTevekenysegek = model.TanulokTovabbhaladasatElokeszitoTevekenysegek,
|
||||
PedagogusAltalJelzettEgyeniEsetkezeles = model.PedagogusAltalJelzettEgyeniEsetkezeles,
|
||||
ProjektmunkaTamogatasa = model.ProjektmunkaTamogatasa,
|
||||
DigitalisKeszsegfejlesztes = model.DigitalisKeszsegfejlesztes,
|
||||
KozossegiMunkaTamogatasa = model.KozossegiMunkaTamogatasa,
|
||||
TanoraElokeszitesenekTamogatasa = model.TanoraElokeszitesenekTamogatasa,
|
||||
TanoraLebonyolitasanakTamogatasa = model.TanoraLebonyolitasanakTamogatasa,
|
||||
NapkozisTevekenysegKeretebenEgyeniFejlesztes = model.NapkozisTevekenysegKeretebenEgyeniFejlesztes,
|
||||
DigEszkozTipusId = model.DigEszkozTipusId,
|
||||
DigPlatformTipusId = model.DigPlatformTipusId,
|
||||
DigTamEszkozTipus = model.DigTamEszkozTipus?.Length > 0 ? model.DigTamEszkozTipus : null
|
||||
};
|
||||
}
|
||||
|
||||
private List<SelectListItem> GetDigTamEszkozTipusList()
|
||||
{
|
||||
var dropdownListItems = new List<SelectListItem>();
|
||||
|
||||
foreach (var item in FrameworkEnumExtensions.EnumToList((int)GeneratedAdatszotarTipusEnum.DigTamEszkozTipus, ClaimData.SelectedTanevID.Value))
|
||||
{
|
||||
dropdownListItems.Add(new SelectListItem
|
||||
{
|
||||
Value = item.Key,
|
||||
Text = item.Value
|
||||
});
|
||||
}
|
||||
|
||||
return dropdownListItems;
|
||||
}
|
||||
}
|
||||
}
|
476
KretaWeb/Areas/Orarend/Models/TanoraAdatok.cs
Normal file
476
KretaWeb/Areas/Orarend/Models/TanoraAdatok.cs
Normal file
|
@ -0,0 +1,476 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.BusinessLogic.Helpers;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.BusinessLogic.Logic.Naplozas.Elokeszites;
|
||||
using Kreta.Core;
|
||||
using Kreta.Ellenorzo.Dao.VN.FeltoltottFajl;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
using Kreta.Web.Helpers;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class TanoraAdatok
|
||||
{
|
||||
private readonly IFileServiceHelper _fileServiceHelper;
|
||||
|
||||
public TanoraAdatok() { }
|
||||
|
||||
public TanoraAdatok(int? szervezetTipusId)
|
||||
{
|
||||
SzervezetTipusId_TanoraAdatok = szervezetTipusId;
|
||||
}
|
||||
|
||||
public TanoraAdatok(IFileServiceHelper fileServiceHelper = null, int? szervezetTipusId = null)
|
||||
{
|
||||
_fileServiceHelper = fileServiceHelper;
|
||||
SzervezetTipusId_TanoraAdatok = szervezetTipusId;
|
||||
}
|
||||
|
||||
[Display(Name = nameof(OrarendResource.MegtartottOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool? Megtartott { get; set; }
|
||||
|
||||
public DateTime NaplozasDatum { get; set; }
|
||||
|
||||
public bool TanarSorszamozhat { get; set; }
|
||||
public string OraTartam { get; set; }
|
||||
public int? FoglalkozasId { get; set; }
|
||||
public int? TanarId { get; set; }
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
public int? TantargyId { get; set; }
|
||||
public int? OsztalyfonokId { get; set; }
|
||||
public bool Naplozhat { get; set; }
|
||||
public bool HasOrarendiOra { get; set; }
|
||||
public bool VanOralatogatasa { get; set; }
|
||||
public List<OpenBoardFileCo> OpenBoardFiles { get; set; }
|
||||
public DateTime? OraDatum { get; set; }
|
||||
|
||||
[KretaDisplayName(1499)] /*Helyettesítés*/
|
||||
public bool Helyettesites { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public string OsztalyCsoportNev { get; set; }
|
||||
|
||||
private string _oratartamEsOraszam;
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraTartam), ResourceType = typeof(OrarendResource))]
|
||||
public string OratartamEsOraszam
|
||||
{
|
||||
get
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(_oratartamEsOraszam))
|
||||
{
|
||||
return OraTartam + " (" + Oraszam + "." + Kreta.BusinessLogic.Utils.StringResourcesUtils.GetString(219) + ")";
|
||||
}
|
||||
|
||||
return _oratartamEsOraszam;
|
||||
}
|
||||
set { _oratartamEsOraszam = value; }
|
||||
}
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string TantargyNev { get; set; }
|
||||
|
||||
[KretaDisplayName(4539)] /*Óra éves sorszáma*/
|
||||
public int? EvesOraSorszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tanar), ResourceType = typeof(OrarendResource))]
|
||||
public string TanarNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.MegtartottOra), ResourceType = typeof(OrarendResource))]
|
||||
public string MegtartottText
|
||||
{
|
||||
get
|
||||
{
|
||||
return Megtartott.HasValue ? Megtartott.Value.GetDisplayName() : Framework.StringResourcesUtil.GetString(3610);
|
||||
}
|
||||
}
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Terem), ResourceType = typeof(OrarendResource))]
|
||||
public int? Terem { get; set; }
|
||||
|
||||
[KretaDisplayName(1532)] /*Sorszámozandó*/
|
||||
public bool Sorszamozando { get; set; }
|
||||
|
||||
[KretaDisplayName(1544)] /*>Párhuzamos óra*/
|
||||
public bool ParhuzamosOra { get; set; }
|
||||
|
||||
[KretaDisplayName(1533)] /*Túlóra*/
|
||||
public bool Tulora { get; set; }
|
||||
|
||||
[KretaDisplayName(1534)] /*TÁMOP óra*/
|
||||
public bool TAMOPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KIPOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool KIPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.VEKOP73317), ResourceType = typeof(OrarendResource))]
|
||||
public bool VEKOP73317 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KAPOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool KAPOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.NemSzakrendszeruOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool NemSzakrendszeruOra { get; set; }
|
||||
|
||||
[KretaDisplayName(1536)] /*IKT tanóra*/
|
||||
public bool IKTTanora { get; set; }
|
||||
|
||||
[KretaDisplayName(1537)] /*Nemzetiségi tanóra*/
|
||||
public bool NemzetisegiOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(TantargyResource.MegbizasiSzerzodesselEllatottOra), ResourceType = typeof(TantargyResource))]
|
||||
public bool IsFelnottoktatasiSzerzodes { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OnlineOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool OnlineOra { get; set; }
|
||||
|
||||
[KretaDisplayName(1538)] /*Mindennapos testnevelés*/
|
||||
public bool MindennaposTestneveles { get; set; }
|
||||
|
||||
[KretaDisplayName(1539)] /*IPR tanóra*/
|
||||
public bool IPRTanora { get; set; }
|
||||
|
||||
[KretaDisplayName(1540)] /*Differenciált*/
|
||||
public bool Differencialt { get; set; }
|
||||
|
||||
[KretaDisplayName(1541)] /*Kooperatív*/
|
||||
public bool Kooperativ { get; set; }
|
||||
|
||||
[KretaDisplayName(1542)] /*Mérés*/
|
||||
public bool Meres { get; set; }
|
||||
|
||||
[KretaDisplayName(1543)] /*Dráma*/
|
||||
public bool Drama { get; set; }
|
||||
|
||||
[KretaDisplayName(1545)] /*TIOP 12*/
|
||||
public bool Tiop { get; set; }
|
||||
|
||||
[KretaDisplayName(2593)] /*Bontott*/
|
||||
public bool Bontott { get; set; }
|
||||
|
||||
[KretaDisplayName(97)] /*Megjegyzés*/
|
||||
public string Megjegyzes { get; set; }
|
||||
|
||||
[KretaRequiredIf("Helyettesites", true, StringResourcesId = 2683)] /*A helyettesítő tanár kiválasztása kötelező!*/
|
||||
[Display(Name = nameof(OrarendResource.HelyettesitoTanar), ResourceType = typeof(OrarendResource))]
|
||||
public int? HelyettesitoTanar { get; set; }
|
||||
|
||||
[KretaRequiredIf("Helyettesites", true, StringResourcesId = 2685)] /*A helyettesítés típusának kiválasztása kötelező!*/
|
||||
[KretaDisplayName(1694)] /*Helyettesítés típusa*/
|
||||
public int? HelyettesitesTipusa { get; set; }
|
||||
|
||||
[KretaDisplayName(1684)] /*Helyettesítés oka*/
|
||||
public string HelyettesitesOka { get; set; }
|
||||
|
||||
public bool IsTanora { get; set; } // Lenaplózott tanóra-e vagy még épp naplózás előtt áll...
|
||||
|
||||
public bool IsNapirend { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 4573)] /*Óra kezdete megadása kötelező*/
|
||||
[KretaDisplayName(1690)] /*Óra kezdete*/
|
||||
public DateTime? OraKezdete { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 4574)] /*Óra vége megadása kötelező*/
|
||||
[KretaDisplayName(1691)] /*Óra vége*/
|
||||
public DateTime? OraVege { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.CsengetesiRend), ResourceType = typeof(OrarendResource))]
|
||||
public int? CsengetesiRendID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Oraszam), ResourceType = typeof(OrarendResource))]
|
||||
[KretaRange(0, 24)]
|
||||
public int? Oraszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Multikulturalis), ResourceType = typeof(OrarendResource))]
|
||||
public bool Multikulturalis { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP32317DigitalisKornyezetAKozenevelesben), ResourceType = typeof(OrarendResource))]
|
||||
public bool EFOP32317 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KomplexOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool KomplexOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.GINOP623), ResourceType = typeof(OrarendResource))]
|
||||
public bool GINOP623 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP31716EselyteremtesAKoznevelesben), ResourceType = typeof(OrarendResource))]
|
||||
public bool EFOP31716EselyteremtesAKoznevelesben { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP33717), ResourceType = typeof(OrarendResource))]
|
||||
public bool EFOP33717 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TIOP11112120120001), ResourceType = typeof(OrarendResource))]
|
||||
public bool TIOP11112120120001 { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DFHT), ResourceType = typeof(OrarendResource))]
|
||||
public bool DFHT { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Rahangolodas), ResourceType = typeof(OrarendResource))]
|
||||
public bool Rahangolodas { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Testmozgas), ResourceType = typeof(OrarendResource))]
|
||||
public bool Testmozgas { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Muveszet), ResourceType = typeof(OrarendResource))]
|
||||
public bool Muveszet { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Eletgyakorlat), ResourceType = typeof(OrarendResource))]
|
||||
public bool Eletgyakorlat { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Logika), ResourceType = typeof(OrarendResource))]
|
||||
public bool Logika { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TeOrad), ResourceType = typeof(OrarendResource))]
|
||||
public bool TeOrad { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigitalisAlapProgram), ResourceType = typeof(OrarendResource))]
|
||||
public bool DigitalisAlapProgram { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP23517201700038Miapalya), ResourceType = typeof(OrarendResource))]
|
||||
public bool EFOP23517201700038Miapalya { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanevTananyaganakIsmetlese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanevTananyaganakIsmetlese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanevTananyaganakKiegeszitese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanevTananyaganakKiegeszitese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokDigitalisKeszsegfejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokDigitalisKeszsegfejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Projektmunka), ResourceType = typeof(OrarendResource))]
|
||||
public bool Projektmunka { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokKompenzaciosIraskeszsegFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokKompenzaciosIraskeszsegFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokKompenzaciosOlvasasiKepessegFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokKompenzaciosOlvasasiKepessegFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokNyelviKepessegenekKompenzaciosFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokNyelviKepessegenekKompenzaciosFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokOnmegismeresenekSegitese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokOnmegismeresenekSegitese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokOnallosagraNevelese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokOnallosagraNevelese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokOrientaciosTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokOrientaciosTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokSzocialitasanakFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokSzocialitasanakFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokTovabbhaladasatElokeszitoTevekenysegek), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanulokTovabbhaladasatElokeszitoTevekenysegek { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.PedagogusAltalJelzettEgyeniEsetkezeles), ResourceType = typeof(OrarendResource))]
|
||||
public bool PedagogusAltalJelzettEgyeniEsetkezeles { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ProjektmunkaTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public bool ProjektmunkaTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigitalisKeszsegfejlesztes), ResourceType = typeof(OrarendResource))]
|
||||
public bool DigitalisKeszsegfejlesztes { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KozossegiMunkaTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public bool KozossegiMunkaTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanoraElokeszitesenekTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanoraElokeszitesenekTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanoraLebonyolitasanakTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public bool TanoraLebonyolitasanakTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.NapkozisTevekenysegKeretebenEgyeniFejlesztes), ResourceType = typeof(OrarendResource))]
|
||||
public bool NapkozisTevekenysegKeretebenEgyeniFejlesztes { get; set; }
|
||||
public bool ElmaradtTanitasiOraRogzitesenekTiltasa { get; set; }
|
||||
|
||||
public int? SzervezetTipusId_TanoraAdatok { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.IsEgybefuggoGyakorlat), ResourceType = typeof(OrarendResource))]
|
||||
public bool IsEgybefuggoGyakorlat { get; set; }
|
||||
|
||||
public void Fill(NaplozasElokeszitesModel model, bool tanarSorszamozhat, bool elmaradtTanitasiOraRogzitesenekTiltasa)
|
||||
{
|
||||
if (model.IsTanora)
|
||||
{
|
||||
Megtartott = !model.IsElmaradtOra;
|
||||
}
|
||||
else
|
||||
{
|
||||
Megtartott = null;
|
||||
}
|
||||
|
||||
OpenBoardFiles = FillFileok(model.OraAdat);
|
||||
TanarSorszamozhat = tanarSorszamozhat;
|
||||
OraTartam = model.OraTartamText;
|
||||
FoglalkozasId = model.OraAdat.FoglakozasId;
|
||||
TanarId = model.OraAdat.TanarId;
|
||||
TanarNev = model.OraAdat.TanarNev;
|
||||
OsztalyfonokId = model.OraAdat.OsztalyfonokId;
|
||||
OsztalyCsoportId = model.OraAdat.OsztalyCsoportId;
|
||||
OsztalyCsoportNev = model.OraAdat.OsztalyCsoportNev;
|
||||
TantargyId = model.OraAdat.TantargyId;
|
||||
TantargyNev = model.OraAdat.TantargyNev;
|
||||
Naplozhat = model.Naplozhat;
|
||||
HasOrarendiOra = model.HasOrarendiOra;
|
||||
Helyettesites = model.IsHelyettesites;
|
||||
EvesOraSorszam = model.OraAdat.EvesOraSorszam;
|
||||
Terem = model.OraAdat.TeremId;
|
||||
Sorszamozando = model.OraAdat.IsSorszamozando;
|
||||
ParhuzamosOra = model.OraTulajdonsag.ParhuzamosOra;
|
||||
|
||||
if (model.Helyettesites != null && model.Helyettesites.Id.IsEntityId() && !model.IsTanora)
|
||||
{
|
||||
Tulora = model.Helyettesites.IsTulora;
|
||||
}
|
||||
else
|
||||
{
|
||||
Tulora = model.OraTulajdonsag.Tulora;
|
||||
}
|
||||
|
||||
TAMOPOra = model.OraTulajdonsag.TAMOP;
|
||||
KIPOra = model.OraTulajdonsag.KIPOra;
|
||||
VEKOP73317 = model.OraTulajdonsag.VEKOP73317;
|
||||
KAPOra = model.OraTulajdonsag.KAPOra;
|
||||
NemSzakrendszeruOra = model.OraTulajdonsag.NemSzakrendszeru;
|
||||
IKTTanora = model.OraTulajdonsag.IktTanora;
|
||||
NemzetisegiOra = model.OraTulajdonsag.NemzetisegiOra;
|
||||
IsEgybefuggoGyakorlat = model.OraTulajdonsag.IsEgybefuggoGyakorlat;
|
||||
MindennaposTestneveles = model.OraTulajdonsag.MindennaposTestneveles;
|
||||
IPRTanora = model.OraTulajdonsag.IPRTanora;
|
||||
Differencialt = model.OraTulajdonsag.Differencialt;
|
||||
IsEgybefuggoGyakorlat = model.OraTulajdonsag.IsEgybefuggoGyakorlat;
|
||||
Kooperativ = model.OraTulajdonsag.Kooperativ;
|
||||
Meres = model.OraTulajdonsag.Meres;
|
||||
Drama = model.OraTulajdonsag.Drama;
|
||||
Tiop = model.OraTulajdonsag.Tiop;
|
||||
Bontott = model.OraTulajdonsag.Bontott;
|
||||
Megjegyzes = model.OraAdat.Megjegyzes;
|
||||
HelyettesitoTanar = model.Helyettesites.TanarId;
|
||||
HelyettesitesTipusa = model.Helyettesites.Tipus;
|
||||
HelyettesitesOka = model.Helyettesites.Oka;
|
||||
IsTanora = model.IsTanora;
|
||||
IsNapirend = model.OraAdat.IsTanorankivuli;
|
||||
OraKezdete = model.OraAdat.OraKezdete;
|
||||
OraVege = model.OraAdat.OraVege;
|
||||
CsengetesiRendID = model.OraAdat.CsengetesirendId;
|
||||
Oraszam = model.OraAdat.Oraszam;
|
||||
Multikulturalis = model.OraTulajdonsag.Multikulturalis;
|
||||
EFOP32317 = model.OraTulajdonsag.EFOP32317;
|
||||
KomplexOra = model.OraTulajdonsag.KomplexOra;
|
||||
GINOP623 = model.OraTulajdonsag.GINOP623;
|
||||
EFOP31716EselyteremtesAKoznevelesben = model.OraTulajdonsag.EFOP31716EselyteremtesAKoznevelesben;
|
||||
EFOP33717 = model.OraTulajdonsag.EFOP33717;
|
||||
TIOP11112120120001 = model.OraTulajdonsag.TIOP11112120120001;
|
||||
DFHT = model.OraTulajdonsag.DFHT;
|
||||
Rahangolodas = model.OraTulajdonsag.Rahangolodas;
|
||||
Testmozgas = model.OraTulajdonsag.Testmozgas;
|
||||
Muveszet = model.OraTulajdonsag.Muveszet;
|
||||
Eletgyakorlat = model.OraTulajdonsag.Eletgyakorlat;
|
||||
Logika = model.OraTulajdonsag.Logika;
|
||||
TeOrad = model.OraTulajdonsag.TeOrad;
|
||||
DigitalisAlapProgram = model.OraTulajdonsag.DigitalisAlapProgram;
|
||||
IsFelnottoktatasiSzerzodes = model.OraTulajdonsag.IsFelnottoktatasiSzerzodes;
|
||||
OnlineOra = model.OraTulajdonsag.OnlineOra;
|
||||
EFOP23517201700038Miapalya = model.OraTulajdonsag.EFOP23517201700038Miapalya;
|
||||
VanOralatogatasa = model.OraAdat.VanOralatogatasa;
|
||||
TanevTananyaganakIsmetlese = model.OraTulajdonsag.TanevTananyaganakIsmetlese;
|
||||
TanevTananyaganakKiegeszitese = model.OraTulajdonsag.TanevTananyaganakKiegeszitese;
|
||||
TanulokDigitalisKeszsegfejlesztese = model.OraTulajdonsag.TanulokDigitalisKeszsegfejlesztese;
|
||||
Projektmunka = model.OraTulajdonsag.Projektmunka;
|
||||
TanulokKompenzaciosIraskeszsegFejlesztese = model.OraTulajdonsag.TanulokKompenzaciosIraskeszsegFejlesztese;
|
||||
TanulokKompenzaciosOlvasasiKepessegFejlesztese = model.OraTulajdonsag.TanulokKompenzaciosOlvasasiKepessegFejlesztese;
|
||||
TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese = model.OraTulajdonsag.TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese;
|
||||
TanulokNyelviKepessegenekKompenzaciosFejlesztese = model.OraTulajdonsag.TanulokNyelviKepessegenekKompenzaciosFejlesztese;
|
||||
TanulokOnmegismeresenekSegitese = model.OraTulajdonsag.TanulokOnmegismeresenekSegitese;
|
||||
TanulokOnallosagraNevelese = model.OraTulajdonsag.TanulokOnallosagraNevelese;
|
||||
TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese = model.OraTulajdonsag.TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese;
|
||||
TanulokOrientaciosTamogatasa = model.OraTulajdonsag.TanulokOrientaciosTamogatasa;
|
||||
TanulokSzocialitasanakFejlesztese = model.OraTulajdonsag.TanulokSzocialitasanakFejlesztese;
|
||||
TanulokTovabbhaladasatElokeszitoTevekenysegek = model.OraTulajdonsag.TanulokTovabbhaladasatElokeszitoTevekenysegek;
|
||||
PedagogusAltalJelzettEgyeniEsetkezeles = model.OraTulajdonsag.PedagogusAltalJelzettEgyeniEsetkezeles;
|
||||
ProjektmunkaTamogatasa = model.OraTulajdonsag.ProjektmunkaTamogatasa;
|
||||
DigitalisKeszsegfejlesztes = model.OraTulajdonsag.DigitalisKeszsegfejlesztes;
|
||||
KozossegiMunkaTamogatasa = model.OraTulajdonsag.KozossegiMunkaTamogatasa;
|
||||
TanoraElokeszitesenekTamogatasa = model.OraTulajdonsag.TanoraElokeszitesenekTamogatasa;
|
||||
TanoraLebonyolitasanakTamogatasa = model.OraTulajdonsag.TanoraLebonyolitasanakTamogatasa;
|
||||
NapkozisTevekenysegKeretebenEgyeniFejlesztes = model.OraTulajdonsag.NapkozisTevekenysegKeretebenEgyeniFejlesztes;
|
||||
ElmaradtTanitasiOraRogzitesenekTiltasa = elmaradtTanitasiOraRogzitesenekTiltasa;
|
||||
}
|
||||
|
||||
private List<OpenBoardFileCo> FillFileok(OraAdatModel model)
|
||||
{
|
||||
var helper = new OpenBoardHelper(ConnectionTypeExtensions.GetSessionConnectionType(), _fileServiceHelper);
|
||||
|
||||
var fileKereses = new FileKeresesRequestDao
|
||||
{
|
||||
DatumTol = model.OraKezdete,
|
||||
DatumIg = model.OraVege,
|
||||
OrarendiOraId = model.OrarendiOraId,
|
||||
OrarendiOraGroupId = model.GroupId,
|
||||
TanitasiOraId = model.TanitasiOraId,
|
||||
OraFileTipusId = (int)OraFileTipusEnum.openboard
|
||||
};
|
||||
return helper.GetFiles(fileKereses);
|
||||
}
|
||||
|
||||
public static TanoraAdatok MapFromKozpontiOrakRogzitesModel(AdminKozpontiOrakRogzitesModel model)
|
||||
{
|
||||
return new TanoraAdatok
|
||||
{
|
||||
Sorszamozando = model.Sorszamozando,
|
||||
ParhuzamosOra = model.ParhuzamosOra,
|
||||
Tulora = model.Tulora,
|
||||
TAMOPOra = model.TAMOPOra,
|
||||
KIPOra = model.KIPOra,
|
||||
VEKOP73317 = model.VEKOP73317,
|
||||
KAPOra = model.KAPOra,
|
||||
NemSzakrendszeruOra = model.NemSzakrendszeruOra,
|
||||
IKTTanora = model.IKTTanora,
|
||||
NemzetisegiOra = model.NemzetisegiOra,
|
||||
IsEgybefuggoGyakorlat = model.IsEgybefuggoGyakorlat,
|
||||
IsFelnottoktatasiSzerzodes = model.IsFelnottoktatasiSzerzodes,
|
||||
OnlineOra = model.OnlineOra,
|
||||
MindennaposTestneveles = model.MindennaposTestneveles,
|
||||
IPRTanora = model.IPRTanora,
|
||||
Differencialt = model.Differencialt,
|
||||
Kooperativ = model.Kooperativ,
|
||||
Meres = model.Meres,
|
||||
Drama = model.Drama,
|
||||
Tiop = model.Tiop,
|
||||
TIOP11112120120001 = model.TIOP11112120120001,
|
||||
Bontott = model.Bontott,
|
||||
Multikulturalis = model.Multikulturalis,
|
||||
EFOP32317 = model.EFOP32317,
|
||||
EFOP33717 = model.EFOP33717,
|
||||
EFOP31716EselyteremtesAKoznevelesben = model.EFOP31716EselyteremtesAKoznevelesben,
|
||||
KomplexOra = model.KomplexOra,
|
||||
GINOP623 = model.GINOP623,
|
||||
DFHT = model.DFHT,
|
||||
Rahangolodas = model.Rahangolodas,
|
||||
Testmozgas = model.Testmozgas,
|
||||
Muveszet = model.Muveszet,
|
||||
Eletgyakorlat = model.Eletgyakorlat,
|
||||
Logika = model.Logika,
|
||||
TeOrad = model.TeOrad,
|
||||
DigitalisAlapProgram = model.DigitalisAlapProgram,
|
||||
EFOP23517201700038Miapalya = model.EFOP23517201700038Miapalya,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
88
KretaWeb/Areas/Orarend/Models/TanoraAdatokRogzites.cs
Normal file
88
KretaWeb/Areas/Orarend/Models/TanoraAdatokRogzites.cs
Normal file
|
@ -0,0 +1,88 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class TanoraAdatokRogzites
|
||||
{
|
||||
public int? TeremId { get; set; }
|
||||
public bool Sorszamozando { get; set; }
|
||||
public string Megjegyzes { get; set; }
|
||||
|
||||
public bool ParhuzamosOra { get; set; }
|
||||
public bool Tulora { get; set; }
|
||||
public bool TAMOPOra { get; set; }
|
||||
public bool NemSzakrendszeruOra { get; set; }
|
||||
public bool IKTTanora { get; set; }
|
||||
public bool NemzetisegiOra { get; set; }
|
||||
public bool IsFelnottoktatasiSzerzodes { get; set; }
|
||||
public bool OnlineOra { get; set; }
|
||||
public bool MindennaposTestneveles { get; set; }
|
||||
public bool IPRTanora { get; set; }
|
||||
public bool Differencialt { get; set; }
|
||||
public bool Kooperativ { get; set; }
|
||||
public bool Meres { get; set; }
|
||||
public bool Drama { get; set; }
|
||||
public bool Tiop { get; set; }
|
||||
public bool Bontott { get; set; }
|
||||
public bool IsMegtartott { get; set; }
|
||||
|
||||
public DateTime OraKezdete { get; set; }
|
||||
public DateTime OraVege { get; set; }
|
||||
|
||||
public int? HelyettesitesTipusa { get; set; }
|
||||
|
||||
public int? Oraszam { get; set; }
|
||||
public int? CsengetesiRendID { get; set; }
|
||||
public int? CsengetesiRendOraId { get; set; }
|
||||
|
||||
public bool Multikulturalis { get; set; }
|
||||
|
||||
public bool EFOP32317 { get; set; }
|
||||
|
||||
public bool KomplexOra { get; set; }
|
||||
|
||||
public bool KAPOra { get; set; }
|
||||
public bool VEKOP73317 { get; set; }
|
||||
public bool KIPOra { get; set; }
|
||||
public bool GINOP623 { get; set; }
|
||||
public bool EFOP31716EselyteremtesAKoznevelesben { get; set; }
|
||||
public bool EFOP33717 { get; set; }
|
||||
public bool TIOP11112120120001 { get; set; }
|
||||
public bool DFHT { get; set; }
|
||||
public bool Rahangolodas { get; set; }
|
||||
public bool Testmozgas { get; set; }
|
||||
public bool Muveszet { get; set; }
|
||||
public bool Eletgyakorlat { get; set; }
|
||||
public bool Logika { get; set; }
|
||||
public bool TeOrad { get; set; }
|
||||
public bool DigitalisAlapProgram { get; set; }
|
||||
public bool EFOP23517201700038Miapalya { get; set; }
|
||||
public bool TanevTananyaganakIsmetlese { get; set; }
|
||||
public bool TanevTananyaganakKiegeszitese { get; set; }
|
||||
public bool TanulokDigitalisKeszsegfejlesztese { get; set; }
|
||||
public bool Projektmunka { get; set; }
|
||||
public bool TanulokKompenzaciosIraskeszsegFejlesztese { get; set; }
|
||||
public bool TanulokKompenzaciosOlvasasiKepessegFejlesztese { get; set; }
|
||||
public bool TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese { get; set; }
|
||||
public bool TanulokNyelviKepessegenekKompenzaciosFejlesztese { get; set; }
|
||||
public bool TanulokOnmegismeresenekSegitese { get; set; }
|
||||
public bool TanulokOnallosagraNevelese { get; set; }
|
||||
public bool TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese { get; set; }
|
||||
public bool TanulokOrientaciosTamogatasa { get; set; }
|
||||
public bool TanulokSzocialitasanakFejlesztese { get; set; }
|
||||
public bool TanulokTovabbhaladasatElokeszitoTevekenysegek { get; set; }
|
||||
public bool PedagogusAltalJelzettEgyeniEsetkezeles { get; set; }
|
||||
public bool ProjektmunkaTamogatasa { get; set; }
|
||||
public bool DigitalisKeszsegfejlesztes { get; set; }
|
||||
public bool KozossegiMunkaTamogatasa { get; set; }
|
||||
public bool TanoraElokeszitesenekTamogatasa { get; set; }
|
||||
public bool TanoraLebonyolitasanakTamogatasa { get; set; }
|
||||
public bool NapkozisTevekenysegKeretebenEgyeniFejlesztes { get; set; }
|
||||
public List<int> CheckedOpenBoardFileIdList { get; set; }
|
||||
|
||||
public int? DigEszkozTipusId { get; set; }
|
||||
public int? DigPlatformTipusId { get; set; }
|
||||
public string[] DigTamEszkozTipus { get; set; }
|
||||
}
|
||||
}
|
64
KretaWeb/Areas/Orarend/Models/TanoraIdBeallitasModel.cs
Normal file
64
KretaWeb/Areas/Orarend/Models/TanoraIdBeallitasModel.cs
Normal file
|
@ -0,0 +1,64 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Logic.Naplozas.Elokeszites;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class TanoraIdBeallitasModel
|
||||
{
|
||||
[KretaDisplayName(4216)] /*Helyettesített pedagógus*/
|
||||
public int? HelyettesitettId { get; set; }
|
||||
|
||||
[KretaDisplayName(1694)] /*Helyettesítés típusa*/
|
||||
public int? HelyettesitesTipusId { get; set; }
|
||||
|
||||
[KretaDisplayName(1684)] /*Helyettesítés oka*/
|
||||
public string HelyettesitesOka { get; set; }
|
||||
|
||||
[KretaDisplayName(164)] /*Foglalkozások*/
|
||||
public int? FoglalkozasId { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int? TantargyId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
|
||||
[KretaDisplayName(267)] /*Helyiség*/
|
||||
public int? TeremId { get; set; }
|
||||
|
||||
public CalendarModel calendarModel { get; set; }
|
||||
|
||||
public bool HideTanoraModButton { get; set; }
|
||||
|
||||
public DateTime NaplozasDatum { get; set; }
|
||||
|
||||
public void ConvertTo(EgyediNaplozasElokeszitesCo co)
|
||||
{
|
||||
if ((calendarModel.EventType == EventTypeEnum.UjEgyediOraFelvitel || calendarModel.EventType == EventTypeEnum.UjOraFelvitele) && calendarModel.OraType == CalendarOraTypeEnum.UresOra)
|
||||
{
|
||||
co.CsengetesirendOraId = calendarModel.EventId;
|
||||
}
|
||||
|
||||
calendarModel.ConvertTo(co);
|
||||
co.HelyettesitesTanarId = HelyettesitettId;
|
||||
co.HelyettesitesTipus = HelyettesitesTipusId;
|
||||
co.HelyettesitesOka = HelyettesitesOka;
|
||||
co.FoglakozasId = FoglalkozasId;
|
||||
co.TantargyId = TantargyId;
|
||||
co.OsztalyCsoportId = OsztalyCsoportId;
|
||||
co.TeremId = TeremId;
|
||||
}
|
||||
|
||||
public void ConvertTo(HelyettesitesNaplozasElokeszitesCo co)
|
||||
{
|
||||
calendarModel.ConvertTo(co);
|
||||
co.HelyettesitesTanarId = HelyettesitettId;
|
||||
co.HelyettesitesTipus = HelyettesitesTipusId;
|
||||
co.HelyettesitesOka = HelyettesitesOka;
|
||||
}
|
||||
}
|
||||
}
|
58
KretaWeb/Areas/Orarend/Models/TanoraMuveletek.cs
Normal file
58
KretaWeb/Areas/Orarend/Models/TanoraMuveletek.cs
Normal file
|
@ -0,0 +1,58 @@
|
|||
using System;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class TanoraMuveletek
|
||||
{
|
||||
public TanoraMuveletek(int tanarId, TanoraIdBeallitasModel tanoraBeallitasModel)
|
||||
{
|
||||
this.TanarId = tanarId;
|
||||
this.CalendarModel = tanoraBeallitasModel.calendarModel;
|
||||
this.Naplozhato = (tanoraBeallitasModel.calendarModel.Start < (DateTime.Now.Date).AddDays(1)); // "A naplózhatóságot ne vegyük percre pontosan, elég ha az adott napra vizsgálunk..."
|
||||
this.FoglakozasId = tanoraBeallitasModel.FoglalkozasId;
|
||||
this.OsztalyCsoportId = tanoraBeallitasModel.OsztalyCsoportId;
|
||||
this.TantargyId = tanoraBeallitasModel.TantargyId;
|
||||
this.TeremId = tanoraBeallitasModel.TeremId;
|
||||
this.HasOra = !(tanoraBeallitasModel.calendarModel.OraType == CalendarOraTypeEnum.UresOra ||
|
||||
tanoraBeallitasModel.calendarModel.OraType == CalendarOraTypeEnum.Egyeb);
|
||||
if (tanoraBeallitasModel.HelyettesitettId.HasValue)
|
||||
{
|
||||
this.HelyettesitoId = tanoraBeallitasModel.HelyettesitettId.Value;
|
||||
this.Helyettesites = true;
|
||||
this.HelyettesitesTipusa = tanoraBeallitasModel.HelyettesitesTipusId.Value;
|
||||
this.HelyettesitesOka = tanoraBeallitasModel.HelyettesitesOka;
|
||||
}
|
||||
this.HideTanoraModButton = tanoraBeallitasModel.HideTanoraModButton;
|
||||
this.NaplozasDatum = tanoraBeallitasModel.NaplozasDatum;
|
||||
}
|
||||
|
||||
public TanoraMuveletek(int tanarId, CalendarModel calendarModel)
|
||||
{
|
||||
this.TanarId = tanarId;
|
||||
this.CalendarModel = calendarModel;
|
||||
this.Naplozhato = (calendarModel.Start < (DateTime.Now.Date).AddDays(1)); // "A naplózhatóságot ne vegyük percre pontosan, elég ha az adott napra vizsgálunk..."
|
||||
this.HasOra = !(calendarModel.OraType == CalendarOraTypeEnum.UresOra);
|
||||
}
|
||||
|
||||
public TanoraMuveletek() { }
|
||||
|
||||
public int TanarId { get; set; }
|
||||
public CalendarModel CalendarModel { get; set; }
|
||||
public bool Naplozhato { get; set; }
|
||||
public int HelyettesitesId { get; set; }
|
||||
public bool Helyettesites { get; set; }
|
||||
public int HelyettesitoId { get; set; }
|
||||
public string HelyettesitesOka { get; set; }
|
||||
public int HelyettesitesTipusa { get; set; }
|
||||
public bool HasOra { get; set; }
|
||||
public bool IsTanoranKivuli { get; set; }
|
||||
public int? FoglakozasId { get; set; }
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
public int? TantargyId { get; set; }
|
||||
public int? TeremId { get; set; }
|
||||
public DateTime NaplozasDatum { get; set; }
|
||||
|
||||
public bool HideTanoraModButton { get; set; }
|
||||
}
|
||||
}
|
168
KretaWeb/Areas/Orarend/Models/TanoraNaplozas.cs
Normal file
168
KretaWeb/Areas/Orarend/Models/TanoraNaplozas.cs
Normal file
|
@ -0,0 +1,168 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.Helpers;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.BusinessLogic.Logic.Naplozas.Elokeszites;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Areas.Tantargy.Models;
|
||||
using Kreta.Web.Helpers;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class TanoraNaplozas
|
||||
{
|
||||
public TanoraNaplozas(IFileServiceHelper fileServiceHelper, bool isMentorOra = false, int? szervezetTipusId = null)
|
||||
{
|
||||
TanoraAdatai = new TanoraAdatok(fileServiceHelper, szervezetTipusId);
|
||||
DigitalisOktatasAdatok = new DigitalisOktatasAdatok(szervezetTipusId);
|
||||
Mulasztas = new MulasztasNaplozas(szervezetTipusId, isMentorOra);
|
||||
HaziFeladat = new HaziFeladatNaplozas();
|
||||
SzamonkeresElorejelzes = new SzamonkeresElorejelzesNaplozas();
|
||||
TanorakSearchModel = new TanorakSearchModel(szervezetTipusId);
|
||||
SzervezetTipusId = szervezetTipusId;
|
||||
}
|
||||
|
||||
public TanoraAdatok TanoraAdatai { get; set; }
|
||||
public DigitalisOktatasAdatok DigitalisOktatasAdatok { get; set; }
|
||||
public MulasztasNaplozas Mulasztas { get; set; }
|
||||
public HaziFeladatNaplozas HaziFeladat { get; set; }
|
||||
public SzamonkeresElorejelzesNaplozas SzamonkeresElorejelzes { get; set; }
|
||||
public TanorakSearchModel TanorakSearchModel { get; set; }
|
||||
public int? SzervezetTipusId { get; set; }
|
||||
|
||||
public void Fill(NaplozasElokeszitesModel model, bool tanarSorszamozhat, bool elmaradtTanitasiOraRogzitesenekTiltasa)
|
||||
{
|
||||
TanoraAdatai.Fill(model, tanarSorszamozhat, elmaradtTanitasiOraRogzitesenekTiltasa);
|
||||
Mulasztas.Fill(model);
|
||||
if (!SzervezetTipusId.HasValue)
|
||||
{
|
||||
HaziFeladat.Fill(model);
|
||||
DigitalisOktatasAdatok.Fill(model);
|
||||
}
|
||||
SzamonkeresElorejelzes.Fill(model);
|
||||
TanorakSearchModel.Fill(model);
|
||||
|
||||
}
|
||||
|
||||
public void Convert(TanoraNaplozasInfoModel model)
|
||||
{
|
||||
var connectionType = ConnectionTypeExtensions.GetSessionConnectionType();
|
||||
|
||||
model.TanoraAdataiInfo.Megtartott = TanoraAdatai.Megtartott;
|
||||
model.TanoraAdataiInfo.OraTartam = TanoraAdatai.OraTartam;
|
||||
model.TanoraAdataiInfo.Oraszam = TanoraAdatai.Oraszam ?? default;
|
||||
model.TanoraAdataiInfo.HelyettesitesString = TanoraAdatai.Helyettesites ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.OsztalyCsoportNev = TanoraAdatai.OsztalyCsoportNev;
|
||||
model.TanoraAdataiInfo.TanarId = TanoraAdatai.TanarId;
|
||||
model.TanoraAdataiInfo.OsztalyCsoportId = TanoraAdatai.OsztalyCsoportId;
|
||||
model.TanoraAdataiInfo.TantargyId = TanoraAdatai.TantargyId;
|
||||
model.TanoraAdataiInfo.TantargyNev = TanoraAdatai.TantargyNev;
|
||||
model.TanoraAdataiInfo.EvesOraSorszam = TanoraAdatai.EvesOraSorszam;
|
||||
model.TanoraAdataiInfo.TanarNev = TanoraAdatai.TanarNev;
|
||||
model.TanoraAdataiInfo.TeremNev = TanoraAdatai.Terem.HasValue ? new TeremHelper(connectionType).GetTeremNev(TanoraAdatai.Terem.Value) : string.Empty;
|
||||
model.TanoraAdataiInfo.Sorszamozando = TanoraAdatai.Sorszamozando;
|
||||
model.TanoraAdataiInfo.Sorszamozando_BNAME = TanoraAdatai.Sorszamozando ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.ParhuzamosOra_BNAME = TanoraAdatai.ParhuzamosOra ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.Tulora_BNAME = TanoraAdatai.Tulora ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TAMOPOra_BNAME = TanoraAdatai.TAMOPOra ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.KIPOra_BNAME = TanoraAdatai.KIPOra ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.VEKOP73317_BNAME = TanoraAdatai.VEKOP73317 ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.KAPOra_BNAME = TanoraAdatai.KAPOra ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.NemSzakrendszeruOra_BNAME = TanoraAdatai.NemSzakrendszeruOra ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.IKTTanora_BNAME = TanoraAdatai.IKTTanora ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.NemzetisegiOra_BNAME = TanoraAdatai.NemzetisegiOra ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.IsEgybefuggoGyakorlat_BNAME = TanoraAdatai.IsEgybefuggoGyakorlat ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.IsFelnottoktatasiSzerzodes_BNAME = TanoraAdatai.IsFelnottoktatasiSzerzodes ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.OnlineOra_BNAME = TanoraAdatai.OnlineOra ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.MindennaposTestneveles_BNAME = TanoraAdatai.MindennaposTestneveles ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.IPRTanora_BNAME = TanoraAdatai.IPRTanora ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.Differencialt_BNAME = TanoraAdatai.Differencialt ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.Kooperativ_BNAME = TanoraAdatai.Kooperativ ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.Meres_BNAME = TanoraAdatai.Meres ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.Drama_BNAME = TanoraAdatai.Drama ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.Tiop_BNAME = TanoraAdatai.Tiop ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.Bontott_BNAME = TanoraAdatai.Bontott ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.Multikulturalis_BNAME = TanoraAdatai.Multikulturalis ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.EFOP32317_BNAME = TanoraAdatai.EFOP32317 ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.KomplexOra_BNAME = TanoraAdatai.KomplexOra ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.GINOP623_BNAME = TanoraAdatai.GINOP623 ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.EFOP31716EselyteremtesAKoznevelesben_BNAME = TanoraAdatai.EFOP31716EselyteremtesAKoznevelesben ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.EFOP33717_BNAME = TanoraAdatai.EFOP33717 ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TIOP11112120120001_BNAME = TanoraAdatai.TIOP11112120120001 ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.DFHT_BNAME = TanoraAdatai.DFHT ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.Rahangolodas_BNAME = TanoraAdatai.Rahangolodas ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.Testmozgas_BNAME = TanoraAdatai.Testmozgas ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.Muveszet_BNAME = TanoraAdatai.Muveszet ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.Eletgyakorlat_BNAME = TanoraAdatai.Eletgyakorlat ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.Logika_BNAME = TanoraAdatai.Logika ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TeOrad_BNAME = TanoraAdatai.TeOrad ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.DigitalisAlapProgram_BNAME = TanoraAdatai.DigitalisAlapProgram ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.VanOralatogatasa = TanoraAdatai.VanOralatogatasa;
|
||||
model.TanoraAdataiInfo.EFOP23517201700038Miapalya_BNAME = TanoraAdatai.EFOP23517201700038Miapalya ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TanevTananyaganakIsmetlese = TanoraAdatai.TanevTananyaganakIsmetlese ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TanevTananyaganakKiegeszitese = TanoraAdatai.TanevTananyaganakKiegeszitese ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TanulokDigitalisKeszsegfejlesztese = TanoraAdatai.TanulokDigitalisKeszsegfejlesztese ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.Projektmunka = TanoraAdatai.Projektmunka ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TanulokKompenzaciosIraskeszsegFejlesztese = TanoraAdatai.TanulokKompenzaciosIraskeszsegFejlesztese ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TanulokKompenzaciosOlvasasiKepessegFejlesztese = TanoraAdatai.TanulokKompenzaciosOlvasasiKepessegFejlesztese ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese = TanoraAdatai.TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TanulokNyelviKepessegenekKompenzaciosFejlesztese = TanoraAdatai.TanulokNyelviKepessegenekKompenzaciosFejlesztese ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TanulokOnmegismeresenekSegitese = TanoraAdatai.TanulokOnmegismeresenekSegitese ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TanulokOnallosagraNevelese = TanoraAdatai.TanulokOnallosagraNevelese ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese = TanoraAdatai.TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TanulokOrientaciosTamogatasa = TanoraAdatai.TanulokOrientaciosTamogatasa ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TanulokSzocialitasanakFejlesztese = TanoraAdatai.TanulokSzocialitasanakFejlesztese ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TanulokTovabbhaladasatElokeszitoTevekenysegek = TanoraAdatai.TanulokTovabbhaladasatElokeszitoTevekenysegek ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.PedagogusAltalJelzettEgyeniEsetkezeles = TanoraAdatai.PedagogusAltalJelzettEgyeniEsetkezeles ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.ProjektmunkaTamogatasa = TanoraAdatai.ProjektmunkaTamogatasa ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.DigitalisKeszsegfejlesztes = TanoraAdatai.DigitalisKeszsegfejlesztes ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.KozossegiMunkaTamogatasa = TanoraAdatai.KozossegiMunkaTamogatasa ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TanoraElokeszitesenekTamogatasa = TanoraAdatai.TanoraElokeszitesenekTamogatasa ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.TanoraLebonyolitasanakTamogatasa = TanoraAdatai.TanoraLebonyolitasanakTamogatasa ? CommonResource.Igen : CommonResource.Nem;
|
||||
model.TanoraAdataiInfo.NapkozisTevekenysegKeretebenEgyeniFejlesztes = TanoraAdatai.NapkozisTevekenysegKeretebenEgyeniFejlesztes ? CommonResource.Igen : CommonResource.Nem;
|
||||
|
||||
model.TanoraAdataiInfo.Megjegyzes = TanoraAdatai.Megjegyzes;
|
||||
model.TanoraAdataiInfo.HelyettesitoTanar = TanoraAdatai.HelyettesitoTanar.HasValue ? new AlkalmazottHelper(connectionType).GetAlkalmazottNevById(TanoraAdatai.HelyettesitoTanar.Value) : string.Empty;
|
||||
model.TanoraAdataiInfo.HelyettesitesTipusa = TanoraAdatai.HelyettesitesTipusa.HasValue ? TanoraAdatai.HelyettesitesTipusa.Value.GetDisplayName<HelyettesitesTipusEnum>(ClaimData.SelectedTanevID.Value) : string.Empty;
|
||||
model.TanoraAdataiInfo.HelyettesitesOka = TanoraAdatai.HelyettesitesOka;
|
||||
model.TanoraAdataiInfo.OraKezdete = TanoraAdatai.OraKezdete;
|
||||
model.TanoraAdataiInfo.OraVege = TanoraAdatai.OraVege;
|
||||
model.TanoraAdataiInfo.Helyettesites = TanoraAdatai.Helyettesites;
|
||||
model.TanoraAdataiInfo.Tema = model.TanoraAdataiInfo.Megtartott == true ? Mulasztas.Tema : "-";
|
||||
model.TanoraAdataiInfo.OpenBoardFiles = TanoraAdatai.OpenBoardFiles;
|
||||
|
||||
model.MulasztasInfo.isTanora = Mulasztas.isTanora;
|
||||
model.MulasztasInfo.TargyId = Mulasztas.TargyId;
|
||||
model.MulasztasInfo.TanarId = Mulasztas.TanarId;
|
||||
model.MulasztasInfo.OsztalyCsoportId = Mulasztas.OsztalyCsoportId;
|
||||
model.MulasztasInfo.TanoraId = Mulasztas.TanoraId;
|
||||
model.MulasztasInfo.OraKezdete = Mulasztas.OraKezdete;
|
||||
model.MulasztasInfo.OraVege = Mulasztas.OraVege;
|
||||
|
||||
model.SzamonkeresElorejelzesModel = new SzamonkeresElorejelzesModel { OraGroupId = SzamonkeresElorejelzes.GroupId, Datum = SzamonkeresElorejelzes.Datum, OsztalyCsoportId = SzamonkeresElorejelzes.OsztalyCsoportId };
|
||||
|
||||
model.TanorakSearchModel = TanorakSearchModel;
|
||||
|
||||
if (!model.SzervezetTipusId.HasValue)
|
||||
{
|
||||
if (HaziFeladat.Id.HasValue)
|
||||
{
|
||||
model.HaziFeladatInfo = new HaziFeladatInfo();
|
||||
model.HaziFeladatInfo.TanarHaziFeladat = new TanarHaziFeladatInfoModel(new DktFeladatHelper(connectionType).GetTanarHaziFeladatDetail(HaziFeladat.Id.Value, isTanariFelulet: true));
|
||||
}
|
||||
else
|
||||
{
|
||||
model.HaziFeladatInfo = new HaziFeladatInfo();
|
||||
model.HaziFeladatInfo.TanarHaziFeladat.FeladasDatuma = model.MulasztasInfo.OraKezdete.Date;
|
||||
}
|
||||
model.DigitalisOktatasModel.DigEszkozTipusId = DigitalisOktatasAdatok.DigEszkozTipusId;
|
||||
model.DigitalisOktatasModel.DigPlatformTipusId = DigitalisOktatasAdatok.DigPlatformTipusId;
|
||||
model.DigitalisOktatasModel.DigTamEszkozTipusList = DigitalisOktatasAdatok.DigTamEszkozTipus.Length > 0 ? DigitalisOktatasAdatok.DigTamEszkozTipus.Select(x => int.Parse(x)).ToList() : new List<int>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
376
KretaWeb/Areas/Orarend/Models/TanoraNaplozasInfoModel.cs
Normal file
376
KretaWeb/Areas/Orarend/Models/TanoraNaplozasInfoModel.cs
Normal file
|
@ -0,0 +1,376 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Areas.Tantargy.Models;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class TanoraNaplozasInfoModel
|
||||
{
|
||||
public TanoraNaplozasInfoModel(int? szervezetTipusId)
|
||||
{
|
||||
TanoraAdataiInfo = new TanoraAdataiInfo(szervezetTipusId);
|
||||
MulasztasInfo = new MulasztasInfo(szervezetTipusId);
|
||||
HaziFeladatInfo = new HaziFeladatInfo();
|
||||
SzamonkeresElorejelzesModel = new SzamonkeresElorejelzesModel();
|
||||
DigitalisOktatasModel = new DigitalisOktatasModel(szervezetTipusId);
|
||||
SzervezetTipusId = szervezetTipusId;
|
||||
}
|
||||
|
||||
public TanoraAdataiInfo TanoraAdataiInfo { get; set; }
|
||||
public MulasztasInfo MulasztasInfo { get; set; }
|
||||
public HaziFeladatInfo HaziFeladatInfo { get; set; }
|
||||
public SzamonkeresElorejelzesModel SzamonkeresElorejelzesModel { get; set; }
|
||||
public TanorakSearchModel TanorakSearchModel { get; set; }
|
||||
public DigitalisOktatasModel DigitalisOktatasModel { get; set; }
|
||||
public int? SzervezetTipusId { get; set; }
|
||||
}
|
||||
|
||||
public class TanoraAdataiInfo
|
||||
{
|
||||
public int? TanarId { get; set; }
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
public int? TantargyId { get; set; }
|
||||
public bool VanOralatogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.MegtartottOra), ResourceType = typeof(OrarendResource))]
|
||||
public bool? Megtartott { get; set; }
|
||||
|
||||
public string OraTartam { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Oraszam), ResourceType = typeof(OrarendResource))]
|
||||
public int Oraszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Helyettesites), ResourceType = typeof(OrarendResource))]
|
||||
public string HelyettesitesString { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
||||
public string OsztalyCsoportNev { get; set; }
|
||||
|
||||
private string _oratartamEsOraszam;
|
||||
[Display(Name = nameof(OrarendResource.OraTartam), ResourceType = typeof(OrarendResource))]
|
||||
public string OratartamEsOraszam
|
||||
{
|
||||
get
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(_oratartamEsOraszam))
|
||||
{
|
||||
return OraTartam.ToString() + " (" + Oraszam + "." + OrarendResource.Ora + ")";
|
||||
}
|
||||
|
||||
return _oratartamEsOraszam;
|
||||
}
|
||||
set { _oratartamEsOraszam = value; }
|
||||
}
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public string TantargyNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraEvesSorszama), ResourceType = typeof(OrarendResource))]
|
||||
public int? EvesOraSorszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tanar), ResourceType = typeof(OrarendResource))]
|
||||
public string TanarNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.MegtartottOra), ResourceType = typeof(OrarendResource))]
|
||||
public string MegtartottString
|
||||
{
|
||||
get
|
||||
{
|
||||
return Megtartott.HasValue ? Megtartott.Value.GetDisplayName() : OrarendResource.NemNaplozott;
|
||||
}
|
||||
}
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Terem), ResourceType = typeof(OrarendResource))]
|
||||
public string TeremNev { get; set; }
|
||||
|
||||
public bool Sorszamozando { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Sorszamozando), ResourceType = typeof(OrarendResource))]
|
||||
public string Sorszamozando_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ParhuzamosOra), ResourceType = typeof(OrarendResource))]
|
||||
public string ParhuzamosOra_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tulora), ResourceType = typeof(OrarendResource))]
|
||||
public string Tulora_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TamopOra), ResourceType = typeof(OrarendResource))]
|
||||
public string TAMOPOra_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KAPOra), ResourceType = typeof(OrarendResource))]
|
||||
public string KAPOra_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.VEKOP73317), ResourceType = typeof(OrarendResource))]
|
||||
public string VEKOP73317_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KIPOra), ResourceType = typeof(OrarendResource))]
|
||||
public string KIPOra_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.NemSzakrendszeruOra), ResourceType = typeof(OrarendResource))]
|
||||
public string NemSzakrendszeruOra_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.IktTanora), ResourceType = typeof(OrarendResource))]
|
||||
public string IKTTanora_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.NemzetisegiTanora), ResourceType = typeof(OrarendResource))]
|
||||
public string NemzetisegiOra_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.IsEgybefuggoGyakorlat), ResourceType = typeof(OrarendResource))]
|
||||
public string IsEgybefuggoGyakorlat_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(TantargyResource.MegbizasiSzerzodesselEllatottOra), ResourceType = typeof(TantargyResource))]
|
||||
public string IsFelnottoktatasiSzerzodes_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OnlineOra), ResourceType = typeof(OrarendResource))]
|
||||
public string OnlineOra_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.MindennaposTestneveles), ResourceType = typeof(OrarendResource))]
|
||||
public string MindennaposTestneveles_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.IprTanora), ResourceType = typeof(OrarendResource))]
|
||||
public string IPRTanora_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Differencialt), ResourceType = typeof(OrarendResource))]
|
||||
public string Differencialt_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Kooperativ), ResourceType = typeof(OrarendResource))]
|
||||
public string Kooperativ_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Meres), ResourceType = typeof(OrarendResource))]
|
||||
public string Meres_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Drama), ResourceType = typeof(OrarendResource))]
|
||||
public string Drama_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tiop12), ResourceType = typeof(OrarendResource))]
|
||||
public string Tiop_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Bontott), ResourceType = typeof(OrarendResource))]
|
||||
public string Bontott_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Megjegyzes), ResourceType = typeof(OrarendResource))]
|
||||
public string Megjegyzes { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HelyettesitoTanar), ResourceType = typeof(OrarendResource))]
|
||||
public string HelyettesitoTanar { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HelyettesitesTipusa), ResourceType = typeof(OrarendResource))]
|
||||
public string HelyettesitesTipusa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.HelyettesitesOka), ResourceType = typeof(OrarendResource))]
|
||||
public string HelyettesitesOka { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraKezdete), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? OraKezdete { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OraVege), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? OraVege { get; set; }
|
||||
|
||||
public bool Helyettesites { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tema), ResourceType = typeof(OrarendResource))]
|
||||
public string Tema { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Multikulturalis), ResourceType = typeof(OrarendResource))]
|
||||
public string Multikulturalis_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP32317DigitalisKornyezetAKozenevelesben), ResourceType = typeof(OrarendResource))]
|
||||
public string EFOP32317_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KomplexOra), ResourceType = typeof(OrarendResource))]
|
||||
public string KomplexOra_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.GINOP623), ResourceType = typeof(OrarendResource))]
|
||||
public string GINOP623_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP31716EselyteremtesAKoznevelesben), ResourceType = typeof(OrarendResource))]
|
||||
public string EFOP31716EselyteremtesAKoznevelesben_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP33717), ResourceType = typeof(OrarendResource))]
|
||||
public string EFOP33717_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TIOP11112120120001), ResourceType = typeof(OrarendResource))]
|
||||
public string TIOP11112120120001_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DFHT), ResourceType = typeof(OrarendResource))]
|
||||
public string DFHT_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Rahangolodas), ResourceType = typeof(OrarendResource))]
|
||||
public string Rahangolodas_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Testmozgas), ResourceType = typeof(OrarendResource))]
|
||||
public string Testmozgas_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Muveszet), ResourceType = typeof(OrarendResource))]
|
||||
public string Muveszet_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Eletgyakorlat), ResourceType = typeof(OrarendResource))]
|
||||
public string Eletgyakorlat_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Logika), ResourceType = typeof(OrarendResource))]
|
||||
public string Logika_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TeOrad), ResourceType = typeof(OrarendResource))]
|
||||
public string TeOrad_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigitalisAlapProgram), ResourceType = typeof(OrarendResource))]
|
||||
public string DigitalisAlapProgram_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.EFOP23517201700038Miapalya), ResourceType = typeof(OrarendResource))]
|
||||
public string EFOP23517201700038Miapalya_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanevTananyaganakIsmetlese), ResourceType = typeof(OrarendResource))]
|
||||
public string TanevTananyaganakIsmetlese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanevTananyaganakKiegeszitese), ResourceType = typeof(OrarendResource))]
|
||||
public string TanevTananyaganakKiegeszitese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokDigitalisKeszsegfejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public string TanulokDigitalisKeszsegfejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Projektmunka), ResourceType = typeof(OrarendResource))]
|
||||
public string Projektmunka { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokKompenzaciosIraskeszsegFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public string TanulokKompenzaciosIraskeszsegFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokKompenzaciosOlvasasiKepessegFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public string TanulokKompenzaciosOlvasasiKepessegFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public string TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokNyelviKepessegenekKompenzaciosFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public string TanulokNyelviKepessegenekKompenzaciosFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokOnmegismeresenekSegitese), ResourceType = typeof(OrarendResource))]
|
||||
public string TanulokOnmegismeresenekSegitese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokOnallosagraNevelese), ResourceType = typeof(OrarendResource))]
|
||||
public string TanulokOnallosagraNevelese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese), ResourceType = typeof(OrarendResource))]
|
||||
public string TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokOrientaciosTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public string TanulokOrientaciosTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokSzocialitasanakFejlesztese), ResourceType = typeof(OrarendResource))]
|
||||
public string TanulokSzocialitasanakFejlesztese { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanulokTovabbhaladasatElokeszitoTevekenysegek), ResourceType = typeof(OrarendResource))]
|
||||
public string TanulokTovabbhaladasatElokeszitoTevekenysegek { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.PedagogusAltalJelzettEgyeniEsetkezeles), ResourceType = typeof(OrarendResource))]
|
||||
public string PedagogusAltalJelzettEgyeniEsetkezeles { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.ProjektmunkaTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public string ProjektmunkaTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigitalisKeszsegfejlesztes), ResourceType = typeof(OrarendResource))]
|
||||
public string DigitalisKeszsegfejlesztes { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KozossegiMunkaTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public string KozossegiMunkaTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanoraElokeszitesenekTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public string TanoraElokeszitesenekTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.TanoraLebonyolitasanakTamogatasa), ResourceType = typeof(OrarendResource))]
|
||||
public string TanoraLebonyolitasanakTamogatasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.NapkozisTevekenysegKeretebenEgyeniFejlesztes), ResourceType = typeof(OrarendResource))]
|
||||
public string NapkozisTevekenysegKeretebenEgyeniFejlesztes { get; set; }
|
||||
|
||||
public List<OpenBoardFileCo> OpenBoardFiles { get; set; }
|
||||
|
||||
public int? SzervezetTipusId_TanoraAdataiInfo { get; set; }
|
||||
|
||||
public TanoraAdataiInfo(int? szervezetTipusId)
|
||||
{
|
||||
SzervezetTipusId_TanoraAdataiInfo = szervezetTipusId;
|
||||
}
|
||||
}
|
||||
|
||||
public class MulasztasInfo
|
||||
{
|
||||
//cshtml-n lekérdezéshez kellenek
|
||||
public bool isTanora { get; set; }
|
||||
public int? TargyId { get; set; }
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
public int? TanoraId { get; set; }
|
||||
public int? TanarId { get; set; }
|
||||
|
||||
public DateTime OraKezdete { get; set; }
|
||||
public DateTime OraVege { get; set; }
|
||||
|
||||
public int? SzervezetTipusId_MulasztasInfo { get; set; }
|
||||
|
||||
public MulasztasInfo(int? szervezetTipusId)
|
||||
{
|
||||
SzervezetTipusId_MulasztasInfo = szervezetTipusId;
|
||||
}
|
||||
}
|
||||
|
||||
public class HaziFeladatInfo
|
||||
{
|
||||
public HaziFeladatInfo()
|
||||
{
|
||||
TanarHaziFeladat = new TanarHaziFeladatInfoModel();
|
||||
}
|
||||
|
||||
public TanarHaziFeladatInfoModel TanarHaziFeladat { get; set; }
|
||||
}
|
||||
public class TanarHaziFeladatInfoModel
|
||||
{
|
||||
public TanarHaziFeladatInfoModel() { }
|
||||
|
||||
public TanarHaziFeladatInfoModel(TanarHaziFeladatDetailCO co)
|
||||
{
|
||||
TanarNev = co.Rogzito;
|
||||
Tantargy = co.Tantargy;
|
||||
OsztalyCsoport = co.OsztalyCsoport;
|
||||
FeladasDatuma = co.FeladasDatuma;
|
||||
Hatarido = co.Hatarido;
|
||||
FeladatSzovege = co.Szoveg;
|
||||
}
|
||||
|
||||
public string TanarNev { get; set; }
|
||||
public string Tantargy { get; set; }
|
||||
public string OsztalyCsoport { get; set; }
|
||||
public DateTime FeladasDatuma { get; set; }
|
||||
public DateTime? Hatarido { get; set; }
|
||||
public string FeladatSzovege { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class DigitalisOktatasModel
|
||||
{
|
||||
public int? DigEszkozTipusId { get; set; }
|
||||
public int? DigPlatformTipusId { get; set; }
|
||||
public List<int> DigTamEszkozTipusList { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigEszkozTipus), ResourceType = typeof(OrarendResource))]
|
||||
public string DigEszkozTipusString => DigEszkozTipusId.HasValue ? DigEszkozTipusId.Value.GetDisplayName<DigEszkozTipusEnum>(ClaimData.SelectedTanevID.Value) : string.Empty;
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigPlatformTipus), ResourceType = typeof(OrarendResource))]
|
||||
public string DigPlatformTipusString => DigPlatformTipusId.HasValue ? DigPlatformTipusId.Value.GetDisplayName<DigPlatformTipusEnum>(ClaimData.SelectedTanevID.Value) : string.Empty;
|
||||
|
||||
[Display(Name = nameof(OrarendResource.DigTamEszkozTipus), ResourceType = typeof(OrarendResource))]
|
||||
public string DigTamEszkozTipusString => DigTamEszkozTipusList != null && DigTamEszkozTipusList.Count > 0 ? string.Join(", ", DigTamEszkozTipusList.Select(x => x.GetDisplayName<DigTamEszkozTipusEnum>(ClaimData.SelectedTanevID.Value))) : string.Empty;
|
||||
|
||||
public int? SzervezetTipusId_DigitalisOktatas { get; set; }
|
||||
|
||||
public DigitalisOktatasModel(int? szervezetTipusId)
|
||||
{
|
||||
SzervezetTipusId_DigitalisOktatas = szervezetTipusId;
|
||||
}
|
||||
}
|
||||
}
|
25
KretaWeb/Areas/Orarend/Models/TanoraNaplozasInfoTabok.cs
Normal file
25
KretaWeb/Areas/Orarend/Models/TanoraNaplozasInfoTabok.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
using System.Collections.Generic;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Web.Helpers.TabStrip;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class TanoraNaplozasInfoTabok
|
||||
{
|
||||
public TanoraNaplozasInfoTabok(int? szervezetTipusId)
|
||||
{
|
||||
TabList = new List<TabStripItemModel>();
|
||||
SzervezetTipusId = szervezetTipusId;
|
||||
}
|
||||
|
||||
public List<TabStripItemModel> TabList { get; set; }
|
||||
|
||||
//Ezek az attribútumok a modal fejlécéhez kellenek
|
||||
public int Oraszam { get; set; }
|
||||
public string Tantargy { get; set; }
|
||||
public string OsztalyCsoport { get; set; }
|
||||
public string Fejlec { get; set; }
|
||||
int? SzervezetTipusId { get; set; }
|
||||
|
||||
}
|
||||
}
|
208
KretaWeb/Areas/Orarend/Models/TanoraNaplozasRogzites.cs
Normal file
208
KretaWeb/Areas/Orarend/Models/TanoraNaplozasRogzites.cs
Normal file
|
@ -0,0 +1,208 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.Logic.Naplozas;
|
||||
using Kreta.BusinessLogic.Logic.Naplozas.Elokeszites;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
//Rögzítés model
|
||||
public class TanoraNaplozasRogzites
|
||||
{
|
||||
public TanoraNaplozasRogzites()
|
||||
{
|
||||
TanoraMuveletek = new TanoraMuveletek();
|
||||
TanoraAdatokRogzites = new TanoraAdatokRogzites();
|
||||
MulasztasNaplozasRogzites = new MulasztasNaplozasRogzites();
|
||||
HaziFeladatNaplozasRogzites = new HaziFeladatNaplozasRogzites();
|
||||
}
|
||||
|
||||
public TanoraMuveletek TanoraMuveletek { get; set; }
|
||||
public TanoraAdatokRogzites TanoraAdatokRogzites { get; set; }
|
||||
public MulasztasNaplozasRogzites MulasztasNaplozasRogzites { get; set; }
|
||||
public HaziFeladatNaplozasRogzites HaziFeladatNaplozasRogzites { get; set; }
|
||||
|
||||
public void ConvertTo(NaplozasCo model, DateTime naplozasDatum)
|
||||
{
|
||||
model.OraAdat.IsSorszamozando = TanoraAdatokRogzites.Sorszamozando;
|
||||
model.OraAdat.Megjegyzes = TanoraAdatokRogzites.Megjegyzes;
|
||||
model.OraAdat.TeremId = TanoraAdatokRogzites.TeremId; // TanoraMuveletek is van
|
||||
model.OraAdat.DigEszkozTipusId = TanoraAdatokRogzites.DigEszkozTipusId;
|
||||
model.OraAdat.DigPlatformTipusId = TanoraAdatokRogzites.DigPlatformTipusId;
|
||||
model.OraAdat.DigTamEszkozTipusIdList = TanoraAdatokRogzites.DigTamEszkozTipus != null ? TanoraAdatokRogzites.DigTamEszkozTipus.Select(x => SDAConvert.ToInt32(x)).ToList() : new List<int>();
|
||||
|
||||
var startDate = TanoraMuveletek.CalendarModel.Start;
|
||||
var calendarStart = new DateTime(startDate.Year, startDate.Month, startDate.Day, startDate.Hour, startDate.Minute, 0, DateTimeKind.Utc).ToLocalTime();
|
||||
|
||||
var endDdate = TanoraMuveletek.CalendarModel.End;
|
||||
var calendarEnd = new DateTime(endDdate.Year, endDdate.Month, endDdate.Day, endDdate.Hour, endDdate.Minute, 0, DateTimeKind.Utc).ToLocalTime();
|
||||
|
||||
DateTime newStartDate, newEndDate;
|
||||
if (TanoraAdatokRogzites.OraKezdete == DateTime.MinValue && TanoraAdatokRogzites.OraVege == DateTime.MinValue)
|
||||
{
|
||||
newStartDate = new DateTime(calendarStart.Year, calendarStart.Month, calendarStart.Day, calendarStart.Hour, calendarStart.Minute, 0, DateTimeKind.Local);
|
||||
newEndDate = new DateTime(calendarEnd.Year, calendarEnd.Month, calendarEnd.Day, calendarEnd.Hour, calendarEnd.Minute, 0, DateTimeKind.Local);
|
||||
}
|
||||
else
|
||||
{
|
||||
var newOrakezdete = TanoraAdatokRogzites.OraKezdete.ToLocalTime();
|
||||
var newOravege = TanoraAdatokRogzites.OraVege.ToLocalTime();
|
||||
|
||||
newStartDate = new DateTime(calendarStart.Year, calendarStart.Month, calendarStart.Day, newOrakezdete.Hour, newOrakezdete.Minute, 0, DateTimeKind.Local);
|
||||
newEndDate = new DateTime(calendarEnd.Year, calendarEnd.Month, calendarEnd.Day, newOravege.Hour, newOravege.Minute, 0, DateTimeKind.Local);
|
||||
}
|
||||
model.OraAdat.OraKezdete = newStartDate;
|
||||
model.OraAdat.OraVege = newEndDate;
|
||||
|
||||
if (model.OraAdat.OraVege.Day < model.OraAdat.OraKezdete.Day)
|
||||
{
|
||||
model.OraAdat.OraVege = model.OraAdat.OraVege.AddDays(model.OraAdat.OraKezdete.Day - model.OraAdat.OraVege.Day);
|
||||
}
|
||||
|
||||
if (TanoraMuveletek.CalendarModel.EventId > 0 && TanoraMuveletek.CalendarModel.EventType == EventTypeEnum.LetezoOraSzerkesztese && naplozasDatum != DateTime.MinValue)
|
||||
{
|
||||
model.OraAdat.OraKezdete = naplozasDatum.AddHours(model.OraAdat.OraKezdete.Hour).AddMinutes(model.OraAdat.OraKezdete.Minute);
|
||||
model.OraAdat.OraVege = naplozasDatum.AddHours(model.OraAdat.OraVege.Hour).AddMinutes(model.OraAdat.OraVege.Minute);
|
||||
}
|
||||
|
||||
model.OraAdat.Oraszam = TanoraAdatokRogzites.Oraszam;
|
||||
model.OraAdat.CsengetesirendId = TanoraAdatokRogzites.CsengetesiRendID;
|
||||
model.OraAdat.CsengetesirendOraId = TanoraAdatokRogzites.CsengetesiRendOraId;
|
||||
if (!model.OraAdat.CsengetesirendOraId.HasValue && TanoraMuveletek.CalendarModel.EventType == EventTypeEnum.UjOraFelvitele && TanoraMuveletek.CalendarModel.OraType == CalendarOraTypeEnum.UresOra)
|
||||
{
|
||||
model.OraAdat.CsengetesirendOraId = TanoraMuveletek.CalendarModel.EventId;
|
||||
}
|
||||
model.OraAdat.OsztalyCsoportId = TanoraMuveletek.OsztalyCsoportId;
|
||||
model.OraAdat.IsTanorankivuli = TanoraMuveletek.IsTanoranKivuli;
|
||||
model.OraAdat.FoglakozasId = TanoraMuveletek.FoglakozasId;
|
||||
model.OraAdat.TantargyId = TanoraMuveletek.TantargyId;
|
||||
if (TanoraMuveletek.HelyettesitoId > 0)
|
||||
{
|
||||
model.OraAdat.TanarId = TanoraMuveletek.HelyettesitoId;
|
||||
model.Helyettesites.TanarId = TanoraMuveletek.TanarId;
|
||||
}
|
||||
else
|
||||
{
|
||||
model.OraAdat.TanarId = TanoraMuveletek.TanarId;
|
||||
}
|
||||
|
||||
model.OraAdat.Tema = MulasztasNaplozasRogzites.Tema;
|
||||
model.OraAdat.TemaTanmenetId = MulasztasNaplozasRogzites.TemaTanmenetId;
|
||||
model.OraAdat.TanulasiEgysegId = MulasztasNaplozasRogzites.TanulasiEgysegId;
|
||||
model.OraTulajdosag.Bontott = TanoraAdatokRogzites.Bontott;
|
||||
model.OraTulajdosag.NemzetisegiOra = TanoraAdatokRogzites.NemzetisegiOra;
|
||||
model.OraTulajdosag.IsFelnottoktatasiSzerzodes = TanoraAdatokRogzites.IsFelnottoktatasiSzerzodes;
|
||||
model.OraTulajdosag.OnlineOra = TanoraAdatokRogzites.OnlineOra;
|
||||
model.OraTulajdosag.MindennaposTestneveles = TanoraAdatokRogzites.MindennaposTestneveles;
|
||||
model.OraTulajdosag.IPRTanora = TanoraAdatokRogzites.IPRTanora;
|
||||
model.OraTulajdosag.Differencialt = TanoraAdatokRogzites.Differencialt;
|
||||
model.OraTulajdosag.Kooperativ = TanoraAdatokRogzites.Kooperativ;
|
||||
model.OraTulajdosag.Meres = TanoraAdatokRogzites.Meres;
|
||||
model.OraTulajdosag.Drama = TanoraAdatokRogzites.Drama;
|
||||
model.OraTulajdosag.Tiop = TanoraAdatokRogzites.Tiop;
|
||||
model.OraTulajdosag.ParhuzamosOra = TanoraAdatokRogzites.ParhuzamosOra;
|
||||
model.OraTulajdosag.IktTanora = TanoraAdatokRogzites.IKTTanora;
|
||||
model.OraTulajdosag.TAMOP = TanoraAdatokRogzites.TAMOPOra;
|
||||
model.OraTulajdosag.KIPOra = TanoraAdatokRogzites.KIPOra;
|
||||
model.OraTulajdosag.VEKOP73317 = TanoraAdatokRogzites.VEKOP73317;
|
||||
model.OraTulajdosag.KAPOra = TanoraAdatokRogzites.KAPOra;
|
||||
model.OraTulajdosag.NemSzakrendszeru = TanoraAdatokRogzites.NemSzakrendszeruOra;
|
||||
model.OraTulajdosag.Tulora = TanoraAdatokRogzites.Tulora;
|
||||
model.OraTulajdosag.Multikulturalis = TanoraAdatokRogzites.Multikulturalis;
|
||||
model.OraTulajdosag.EFOP32317 = TanoraAdatokRogzites.EFOP32317;
|
||||
model.OraTulajdosag.KomplexOra = TanoraAdatokRogzites.KomplexOra;
|
||||
model.Helyettesites.Id = TanoraMuveletek.HelyettesitesId;
|
||||
model.Helyettesites.Oka = TanoraMuveletek.HelyettesitesOka;
|
||||
model.Helyettesites.Tipus = TanoraMuveletek.HelyettesitesTipusa; // TanoraAdatokRogzites is van
|
||||
model.OraTulajdosag.GINOP623 = TanoraAdatokRogzites.GINOP623;
|
||||
model.OraTulajdosag.EFOP31716EselyteremtesAKoznevelesben = TanoraAdatokRogzites.EFOP31716EselyteremtesAKoznevelesben;
|
||||
model.OraTulajdosag.EFOP33717 = TanoraAdatokRogzites.EFOP33717;
|
||||
model.OraTulajdosag.TIOP11112120120001 = TanoraAdatokRogzites.TIOP11112120120001;
|
||||
model.OraTulajdosag.DFHT = TanoraAdatokRogzites.DFHT;
|
||||
model.OraTulajdosag.Rahangolodas = TanoraAdatokRogzites.Rahangolodas;
|
||||
model.OraTulajdosag.Testmozgas = TanoraAdatokRogzites.Testmozgas;
|
||||
model.OraTulajdosag.Muveszet = TanoraAdatokRogzites.Muveszet;
|
||||
model.OraTulajdosag.Eletgyakorlat = TanoraAdatokRogzites.Eletgyakorlat;
|
||||
model.OraTulajdosag.Logika = TanoraAdatokRogzites.Logika;
|
||||
model.OraTulajdosag.TeOrad = TanoraAdatokRogzites.TeOrad;
|
||||
model.OraTulajdosag.DigitalisAlapProgram = TanoraAdatokRogzites.DigitalisAlapProgram;
|
||||
model.OraTulajdosag.EFOP23517201700038Miapalya = TanoraAdatokRogzites.EFOP23517201700038Miapalya;
|
||||
model.OraTulajdosag.TanevTananyaganakIsmetlese = TanoraAdatokRogzites.TanevTananyaganakIsmetlese;
|
||||
model.OraTulajdosag.TanevTananyaganakKiegeszitese = TanoraAdatokRogzites.TanevTananyaganakKiegeszitese;
|
||||
model.OraTulajdosag.TanulokDigitalisKeszsegfejlesztese = TanoraAdatokRogzites.TanulokDigitalisKeszsegfejlesztese;
|
||||
model.OraTulajdosag.Projektmunka = TanoraAdatokRogzites.Projektmunka;
|
||||
model.OraTulajdosag.TanulokKompenzaciosIraskeszsegFejlesztese = TanoraAdatokRogzites.TanulokKompenzaciosIraskeszsegFejlesztese;
|
||||
model.OraTulajdosag.TanulokKompenzaciosOlvasasiKepessegFejlesztese = TanoraAdatokRogzites.TanulokKompenzaciosOlvasasiKepessegFejlesztese;
|
||||
model.OraTulajdosag.TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese = TanoraAdatokRogzites.TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese;
|
||||
model.OraTulajdosag.TanulokNyelviKepessegenekKompenzaciosFejlesztese = TanoraAdatokRogzites.TanulokNyelviKepessegenekKompenzaciosFejlesztese;
|
||||
model.OraTulajdosag.TanulokOnmegismeresenekSegitese = TanoraAdatokRogzites.TanulokOnmegismeresenekSegitese;
|
||||
model.OraTulajdosag.TanulokOnallosagraNevelese = TanoraAdatokRogzites.TanulokOnallosagraNevelese;
|
||||
model.OraTulajdosag.TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese = TanoraAdatokRogzites.TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese;
|
||||
model.OraTulajdosag.TanulokOrientaciosTamogatasa = TanoraAdatokRogzites.TanulokOrientaciosTamogatasa;
|
||||
model.OraTulajdosag.TanulokSzocialitasanakFejlesztese = TanoraAdatokRogzites.TanulokSzocialitasanakFejlesztese;
|
||||
model.OraTulajdosag.TanulokTovabbhaladasatElokeszitoTevekenysegek = TanoraAdatokRogzites.TanulokTovabbhaladasatElokeszitoTevekenysegek;
|
||||
model.OraTulajdosag.PedagogusAltalJelzettEgyeniEsetkezeles = TanoraAdatokRogzites.PedagogusAltalJelzettEgyeniEsetkezeles;
|
||||
model.OraTulajdosag.ProjektmunkaTamogatasa = TanoraAdatokRogzites.ProjektmunkaTamogatasa;
|
||||
model.OraTulajdosag.DigitalisKeszsegfejlesztes = TanoraAdatokRogzites.DigitalisKeszsegfejlesztes;
|
||||
model.OraTulajdosag.KozossegiMunkaTamogatasa = TanoraAdatokRogzites.KozossegiMunkaTamogatasa;
|
||||
model.OraTulajdosag.TanoraElokeszitesenekTamogatasa = TanoraAdatokRogzites.TanoraElokeszitesenekTamogatasa;
|
||||
model.OraTulajdosag.TanoraLebonyolitasanakTamogatasa = TanoraAdatokRogzites.TanoraLebonyolitasanakTamogatasa;
|
||||
model.OraTulajdosag.NapkozisTevekenysegKeretebenEgyeniFejlesztes = TanoraAdatokRogzites.NapkozisTevekenysegKeretebenEgyeniFejlesztes;
|
||||
|
||||
model.Hazifeladat.Id = HaziFeladatNaplozasRogzites.Id;
|
||||
model.Hazifeladat.Hatarido = HaziFeladatNaplozasRogzites.Hatarido;
|
||||
model.Hazifeladat.Szoveg = HaziFeladatNaplozasRogzites.HaziFeladat;
|
||||
model.OraAdat.CheckedOpenBoardFileIdList = TanoraAdatokRogzites.CheckedOpenBoardFileIdList;
|
||||
model.Hazifeladat.CsatolmanyId = HaziFeladatNaplozasRogzites.CsatolmanyId;
|
||||
|
||||
foreach (var item in MulasztasNaplozasRogzites.MulasztasList)
|
||||
{
|
||||
model.MulasztasList.Add(new NaplozasCo.MulasztasModel
|
||||
{
|
||||
MulasztasId = item.MulasztasRowId,
|
||||
TanuloId = item.TanuloId,
|
||||
MulasztasTipus = item.MulasztasTipus,
|
||||
Keses = item.Keses,
|
||||
HazifeladatHiany = item.HazifeladatHiany,
|
||||
FelszerelesHiany = item.FelszerelesHiany,
|
||||
Felmentes = item.Felmentes,
|
||||
TanoraiDicseret = item.TanoraiDicseret,
|
||||
HazifeladatHianyId = item.HazifeladatHianyId,
|
||||
FelszerelesHianyId = item.FelszerelesHianyId,
|
||||
FelmentesId = item.FelmentesId,
|
||||
TanoraiDicseretId = item.TanoraiDicseretId,
|
||||
});
|
||||
}
|
||||
|
||||
if (TanoraMuveletek.CalendarModel.OraType == CalendarOraTypeEnum.TanitasiOra || TanoraMuveletek.CalendarModel.OraType == CalendarOraTypeEnum.TanoranKivuliNaplozottFoglalkozas)
|
||||
{
|
||||
model.OraAdat.TanitasiOraId = TanoraMuveletek.CalendarModel.EventId;
|
||||
}
|
||||
else if (TanoraMuveletek.CalendarModel.OraType == CalendarOraTypeEnum.OrarendiOra || TanoraMuveletek.CalendarModel.OraType == CalendarOraTypeEnum.TanoranKivuliFoglalkozas)
|
||||
{
|
||||
model.OraAdat.OrarendiOraId = TanoraMuveletek.CalendarModel.EventId;
|
||||
}
|
||||
}
|
||||
|
||||
public void ConvertTo(EgyediNaplozasElokeszitesCo model)
|
||||
{
|
||||
model.Start = TanoraAdatokRogzites.OraKezdete;
|
||||
model.End = TanoraAdatokRogzites.OraVege;
|
||||
model.TeremId = TanoraAdatokRogzites.TeremId; // TanoraMuveletek is van
|
||||
model.CsengetesirendId = TanoraAdatokRogzites.CsengetesiRendID;
|
||||
model.CsengetesirendOraId = TanoraAdatokRogzites.CsengetesiRendOraId;
|
||||
model.OsztalyCsoportId = TanoraMuveletek.OsztalyCsoportId;
|
||||
model.FoglakozasId = TanoraMuveletek.FoglakozasId;
|
||||
model.TantargyId = TanoraMuveletek.TantargyId;
|
||||
model.TanarId = TanoraMuveletek.TanarId;
|
||||
|
||||
model.HelyettesitesId = TanoraMuveletek.HelyettesitesId;
|
||||
model.HelyettesitesOka = TanoraMuveletek.HelyettesitesOka;
|
||||
model.HelyettesitesTipus = TanoraMuveletek.HelyettesitesTipusa; // TanoraAdatokRogzites is van
|
||||
model.HelyettesitesTanarId = TanoraMuveletek.HelyettesitoId;
|
||||
}
|
||||
}
|
||||
}
|
30
KretaWeb/Areas/Orarend/Models/TanoraNaplozasTabok.cs
Normal file
30
KretaWeb/Areas/Orarend/Models/TanoraNaplozasTabok.cs
Normal file
|
@ -0,0 +1,30 @@
|
|||
using System.Collections.Generic;
|
||||
using Kreta.Web.Helpers.TabStrip;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class TanoraNaplozasTabok
|
||||
{
|
||||
public TanoraNaplozasTabok(int? szervezetTipusId = null)
|
||||
{
|
||||
TanoraMuveletek = new TanoraMuveletek();
|
||||
TabList = new List<TabStripItemModel>();
|
||||
SzervezetTipusId = szervezetTipusId;
|
||||
}
|
||||
|
||||
public TanoraMuveletek TanoraMuveletek { get; set; }
|
||||
public List<TabStripItemModel> TabList { get; set; }
|
||||
public string SerialisedTanoraMuveletek { get { return JsonConvert.SerializeObject(TanoraMuveletek); } }
|
||||
|
||||
//Ezek az attribútumok a modal fejlécéhez kellenek
|
||||
public int Oraszam { get; set; }
|
||||
public string Tantargy { get; set; }
|
||||
public string OsztalyCsoport { get; set; }
|
||||
public string Fejlec { get; set; }
|
||||
public int? SzervezetTipusId { get; set; }
|
||||
public string ControllerName => SzervezetTipusId.HasValue ? Constants.Controllers.DualisTanariOrarend : Constants.Controllers.TanariOrarend;
|
||||
public string ApiControllerName => SzervezetTipusId.HasValue ? Constants.ApiControllers.DualisTanariOrarendApi : Constants.ApiControllers.TanariOrarendApi;
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,56 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Logic;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class TanuloHaziFeladatMentesModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
|
||||
public int? TanarHaziFeladatId { get; set; }
|
||||
|
||||
public DateTime BejelentesDatuma { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.JavasoltHatarido), ResourceType = typeof(OrarendResource))]
|
||||
public DateTime? Hatarido { get; set; }
|
||||
|
||||
private string feladatSzovege;
|
||||
[Required(ErrorMessageResourceName = nameof(ErrorResource.FeladatSzovegeKitolteseKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
|
||||
public string FeladatSzovege
|
||||
{
|
||||
get { return feladatSzovege; }
|
||||
set
|
||||
{
|
||||
string szoveg = string.Empty;
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(value))
|
||||
{
|
||||
szoveg = RichTextLogic.GetLegalHtmlString(value, RichTextLogic.LegalFastReportHtmlTagList, true);
|
||||
}
|
||||
|
||||
feladatSzovege = szoveg;
|
||||
}
|
||||
}
|
||||
|
||||
public int RogzitoId { get; set; }
|
||||
|
||||
public int? OraId { get; set; }
|
||||
|
||||
public DateTime? OraDate { get; set; }
|
||||
|
||||
public CalendarOraTypeEnum? OraType { get; set; }
|
||||
|
||||
public bool ValidateModel()
|
||||
{
|
||||
if (TanarHaziFeladatId.HasValue || (Hatarido.HasValue && OraId.HasValue && OraType.HasValue && OraDate.HasValue))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
85
KretaWeb/Areas/Orarend/Models/TanuloHaziFeladatTabModel.cs
Normal file
85
KretaWeb/Areas/Orarend/Models/TanuloHaziFeladatTabModel.cs
Normal file
|
@ -0,0 +1,85 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Helpers;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class TanuloHaziFeladatTabModel
|
||||
{
|
||||
public TanuloHaziFeladatTabModel()
|
||||
{
|
||||
OraAdatok = new HazifeladatOraAdatok();
|
||||
}
|
||||
|
||||
public TanuloHaziFeladatTabModel(HaziFeladatokTabCO co)
|
||||
{
|
||||
ModosithatoNaplozarasMiatt = new BusinessLogic.Classes.NaplozarasLogic(ConnectionTypeExtensions.GetSessionConnectionType()).ModosithatoNaplozarasMiatt(co.OraDate, co.TanarHaziFeladat.OsztalyCsoportId);
|
||||
TanarHaziFeladat = new TanarHaziFeladatModel(co.TanarHaziFeladat);
|
||||
OraAdatok = new HazifeladatOraAdatok(co);
|
||||
}
|
||||
|
||||
public HazifeladatOraAdatok OraAdatok { get; set; }
|
||||
public TanarHaziFeladatModel TanarHaziFeladat { get; set; }
|
||||
public bool ModosithatoNaplozarasMiatt { get; set; }
|
||||
public int? TanuloId { get; set; }
|
||||
public string TanuloAltalMegoldva { get; set; }
|
||||
}
|
||||
|
||||
public class TanarHaziFeladatModel
|
||||
{
|
||||
public TanarHaziFeladatModel()
|
||||
{
|
||||
Csatolmanyok = new Dictionary<int, string>();
|
||||
}
|
||||
|
||||
public TanarHaziFeladatModel(TanarHaziFeladatDetailCO co)
|
||||
{
|
||||
Id = co.Id;
|
||||
TanarNev = co.Rogzito;
|
||||
Tantargy = co.Tantargy;
|
||||
FeladasDatuma = co.FeladasDatuma;
|
||||
FeladatSzovege = co.Szoveg;
|
||||
OsztalyCsoport = co.OsztalyCsoport;
|
||||
Hatarido = co.Hatarido;
|
||||
HaziFeladathozHozzaadottKepek = co.HaziFeladathozHozzaadottKepek;
|
||||
Csatolmanyok = co.Csatolmanyok;
|
||||
OraiFeladatText = co.IsLathato.GetDisplayName();
|
||||
FeladatTipusId = co.FeladatTipusId;
|
||||
}
|
||||
|
||||
public int? Id { get; set; }
|
||||
public string TanarNev { get; set; }
|
||||
public string Tantargy { get; set; }
|
||||
public string OsztalyCsoport { get; set; }
|
||||
public DateTime FeladasDatuma { get; set; }
|
||||
public DateTime? Hatarido { get; set; }
|
||||
public string FeladatSzovege { get; set; }
|
||||
public bool IsTanuloHaziFeladatEnabled { get; set; }
|
||||
public string HaziFeladathozHozzaadottKepek { get; set; }
|
||||
public IDictionary<int, string> Csatolmanyok { get; private set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.IsKiadott), ResourceType = typeof(OrarendResource))]
|
||||
public string OraiFeladatText { get; set; }
|
||||
public int? FeladatTipusId { get; set; }
|
||||
}
|
||||
|
||||
public class HazifeladatOraAdatok
|
||||
{
|
||||
public HazifeladatOraAdatok() { }
|
||||
public HazifeladatOraAdatok(HaziFeladatokTabCO co)
|
||||
{
|
||||
OraId = co.OraId;
|
||||
OraType = co.OraType;
|
||||
OraDate = co.OraDate;
|
||||
}
|
||||
|
||||
public int? OraId { get; set; }
|
||||
public CalendarOraTypeEnum OraType { get; set; }
|
||||
public DateTime OraDate { get; set; }
|
||||
}
|
||||
}
|
11
KretaWeb/Areas/Orarend/Models/WizardElovalasztoModel.cs
Normal file
11
KretaWeb/Areas/Orarend/Models/WizardElovalasztoModel.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
namespace Kreta.Web.Areas.Orarend.Models
|
||||
{
|
||||
public class WizardElovalasztoModel
|
||||
{
|
||||
public bool TanarVehetFelOratMaganak { get; set; }
|
||||
public bool LehetOratFelvenniTTFNelkul { get; set; }
|
||||
public bool TanarKezelhetHelyettesitest { get; set; }
|
||||
public bool HelyettesitendoTanarnakNincsOttOraja { get; set; }
|
||||
public bool HelyettesitendoTanarOrajatMarNaploztak { get; set; }
|
||||
}
|
||||
}
|
61
KretaWeb/Areas/Orarend/Models/WizardModel.cs
Normal file
61
KretaWeb/Areas/Orarend/Models/WizardModel.cs
Normal file
|
@ -0,0 +1,61 @@
|
|||
using System;
|
||||
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.Orarend.Models
|
||||
{
|
||||
public class WizardModel
|
||||
{
|
||||
public int FoglalkozasFilterId { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 4834)] /*Helyettesített pedagógus megadása kötelező*/
|
||||
[KretaDisplayName(4216)] /*Helyettesített pedagógus*/
|
||||
public int? HelyettesitettId { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 4833)] /*Helyettesítés típusának megadása kötelező*/
|
||||
[KretaDisplayName(1694)] /*Helyettesítés típusa*/
|
||||
public int? HelyettesitesTipusId { get; set; }
|
||||
|
||||
//[KretaRequired(StringResourcesId = 3340)] /*Helyettesítés oka kötelező*/
|
||||
[KretaDisplayName(1684)] /*Helyettesítés oka*/
|
||||
public string HelyettesitesOka { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 2494)] /*Foglalkozás megadása kötelező*/
|
||||
[KretaDisplayName(164)] /*Foglalkozások*/
|
||||
public string FoglalkozasId { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 2564)] /*Tantárgy megadása kötelező*/
|
||||
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
|
||||
public int? TantargyId { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 4835)] /*Osztály / Csoport megadása kötelező*/
|
||||
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 2493)] /*Terem megadása kötelező*/
|
||||
[KretaDisplayName(267)] /*Helyiség*/
|
||||
public int? TeremId { get; set; }
|
||||
|
||||
public DateTime? Datum { get; set; }
|
||||
|
||||
[KretaRequired(typeof(OrarendResource), nameof(OrarendResource.OravalasztasKotelezo))]
|
||||
[Display(Name = nameof(OrarendResource.Oravalasztas), ResourceType = typeof(OrarendResource))]
|
||||
public int? WizardOrarendId { get; set; }
|
||||
|
||||
public bool IsNapirend { get; set; }
|
||||
|
||||
public List<SelectListItem> WizardOraLista { get; set; } = new List<SelectListItem>();
|
||||
|
||||
public bool IsEgyediHelyettesites { get; set; }
|
||||
public bool? WizardOrarendMegtartott { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KivalasztottOraTulora), ResourceType = typeof(OrarendResource))]
|
||||
public bool IsKeziTulora { get; set; }
|
||||
|
||||
public int? HanyadikOra { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue