init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
101
Kreta.BusinessLogic/HelperClasses/TanarHaziFeladatCO.cs
Normal file
101
Kreta.BusinessLogic/HelperClasses/TanarHaziFeladatCO.cs
Normal file
|
@ -0,0 +1,101 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Kreta.DataAccess.Interfaces;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
|
||||
namespace Kreta.BusinessLogic.HelperClasses
|
||||
{
|
||||
public class TanarHaziFeladatCO
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
public int? TantargyId { get; set; }
|
||||
public int RogzitoId { get; set; }
|
||||
public int? HelyettesitoId { get; set; }
|
||||
public bool IsTanarRogzitette { get; set; }
|
||||
public int? Oraszam { get; set; }
|
||||
public DateTime? Idopont { get; set; }
|
||||
public int? TanitasiOraId { get; set; }
|
||||
public int? OrarendiOraId { get; set; }
|
||||
public int IntezmenyId { get; set; }
|
||||
public string IntezmenyAzonosito { get; set; }
|
||||
public int TanevId { get; set; }
|
||||
public string Szoveg { get; set; }
|
||||
public DateTime FeladasDatuma { get; set; }
|
||||
public DateTime Hatarido { get; set; }
|
||||
public int? CsatolmanyId { get; set; }
|
||||
}
|
||||
|
||||
public class TanarHaziFeladatDetailCO
|
||||
{
|
||||
public TanarHaziFeladatDetailCO()
|
||||
{
|
||||
Csatolmanyok = new Dictionary<int, string>();
|
||||
}
|
||||
|
||||
public TanarHaziFeladatDetailCO(IDKT_Feladat hazi, List<(int CsatolmanyId, string FajlNev)> csatolmanyok)
|
||||
{
|
||||
Id = hazi.ID;
|
||||
OsztalyCsoport = hazi.OsztalyCsoport.Nev;
|
||||
OsztalyCsoportId = hazi.OsztalyCsoportId;
|
||||
Tantargy = hazi.Tantargy.Nev;
|
||||
TantargyId = hazi.Tantargy.ID;
|
||||
TantargyKategoria = hazi.Tantargy.TargyKategoria;
|
||||
Rogzito = hazi.HelyettesitoAlkalmazott != null ? hazi.HelyettesitoAlkalmazott.NyomtatasiNev : hazi.RogzitoAlkalmazott.NyomtatasiNev;
|
||||
RogzitoId = hazi.RogzitoAlkalmazottId;
|
||||
IsTanarRogzitette = true;
|
||||
HfBeadandoTipusId = hazi.HfBeadandoTipusId;
|
||||
Oraszam = hazi.Oraszam.HasValue ? hazi.Oraszam.Value : (int?)null;
|
||||
if (hazi.TanitasiOraId != 0)
|
||||
TanitasiOraId = hazi.TanitasiOraId;
|
||||
if (hazi.OrarendiOraGroupId != 0)
|
||||
OrarendiOraId = hazi.OrarendiOraGroupId;
|
||||
Cim = hazi.Cim;
|
||||
Szoveg = hazi.Szoveg;
|
||||
FeladasDatuma = hazi.Datum.HasValue ? hazi.Datum.Value : hazi.RogzitesIdopont;
|
||||
RogzitesIdopontja = hazi.RogzitesIdopont;
|
||||
Hatarido = hazi.BeadasHatarido;
|
||||
Csatolmanyok = new Dictionary<int, string>();
|
||||
FeladatTipusId = hazi.FeladatTipusId;
|
||||
IsLathato = hazi.IsLathato;
|
||||
CsatolasEngedelyezesTipusId = hazi.HfCsatolasEngedelyezesTipusId;
|
||||
|
||||
foreach (var (CsatolmanyId, FajlNev) in csatolmanyok)
|
||||
{
|
||||
Csatolmanyok.Add(CsatolmanyId, FajlNev);
|
||||
}
|
||||
}
|
||||
|
||||
public int? Id { get; set; }
|
||||
public string OsztalyCsoport { get; set; }
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
public string Tantargy { get; set; }
|
||||
public int TantargyId { get; set; }
|
||||
public int TantargyKategoria { get; set; }
|
||||
public string Rogzito { get; set; }
|
||||
public int RogzitoId { get; set; }
|
||||
public bool IsTanarRogzitette { get; set; }
|
||||
public int? HfBeadandoTipusId { get; set; }
|
||||
public int? Oraszam { get; set; }
|
||||
public int? TanitasiOraId { get; set; }
|
||||
public int? OrarendiOraId { get; set; }
|
||||
public string Cim { get; set; }
|
||||
public string Szoveg { get; set; }
|
||||
public DateTime FeladasDatuma { get; set; }
|
||||
public DateTime? Hatarido { get; set; }
|
||||
public DateTime RogzitesIdopontja { get; set; }
|
||||
public string HaziFeladathozHozzaadottKepek { get; set; }
|
||||
public IDictionary<int, string> Csatolmanyok { get; }
|
||||
public int? FeladatTipusId { get; set; }
|
||||
public bool IsLathato { get; set; }
|
||||
public int? CsatolasEngedelyezesTipusId { get; set; }
|
||||
}
|
||||
|
||||
public class HaziFeladatokTabCO
|
||||
{
|
||||
public CalendarOraTypeEnum OraType { get; set; }
|
||||
public int? OraId { get; set; }
|
||||
public DateTime OraDate { get; set; }
|
||||
public TanarHaziFeladatDetailCO TanarHaziFeladat { get; set; } = new TanarHaziFeladatDetailCO();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue