init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,9 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.OsztalyCsoport.Osztaly
|
||||
{
|
||||
public class OsztalyTanuloiListRequest
|
||||
{
|
||||
public List<int> OsztalyIds { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportListRequest
|
||||
{
|
||||
public List<int> TanuloIds { get; set; }
|
||||
|
||||
public List<int> OsztalyfonokIds { get; set; }
|
||||
|
||||
public int? OktatasiNevelesiFeladatId { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,47 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Kreta.Ellenorzo.Domain.VN.Adatszotar;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott.Tanar.Osztalyfonok;
|
||||
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
|
||||
using Kreta.Ellenorzo.Enums.VN;
|
||||
using Kreta.Enums;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportListResponse : IEqualityComparer<OsztalyCsoportListResponse>
|
||||
{
|
||||
public Adatszotar<OktNevelesiKategoriaEnum> OktatasNevelesiKategoria { get; set; }
|
||||
|
||||
public int OktatasiNevelesiFeladatSortIndex { get; set; }
|
||||
|
||||
public Adatszotar<OktatasiNevelesiFeladatEnum> OktatasNevelesiFeladat { get; set; }
|
||||
|
||||
public Adatszotar<EvfolyamTipusEnum> EvfolyamTipus { get; set; }
|
||||
|
||||
public OsztalyCsoportUid Uid { get; set; }
|
||||
|
||||
public string Nev { get; set; }
|
||||
|
||||
public bool IsAktiv => Tagsagok.Any(t => t.IsAktiv);
|
||||
|
||||
public OsztalyCsoportTipus OsztalyCsoportTipus { get; set; }
|
||||
|
||||
public TanuloUid TanuloUid { get; set; }
|
||||
|
||||
#region Csoport
|
||||
public CsoportTipusEnum? CsoportTipus { get; set; }
|
||||
|
||||
public bool? IsTanoraiCeluCsoportTipus { get; set; }
|
||||
#endregion
|
||||
|
||||
public OsztalyfonokSimplifiedResponse Osztalyfonok { get; set; }
|
||||
|
||||
public OsztalyfonokHelyettesSimplifiedResponse OsztalyfonokHelyettes { get; set; }
|
||||
|
||||
public HashSet<OsztalyCsoportTagsagResponse> Tagsagok { get; set; }
|
||||
|
||||
public bool Equals(OsztalyCsoportListResponse x, OsztalyCsoportListResponse y) => x.Uid.Equals(x.Uid, y.Uid) && x.TanuloUid.Equals(x.TanuloUid, y.TanuloUid);
|
||||
|
||||
public int GetHashCode(OsztalyCsoportListResponse obj) => obj.Uid.UidRaw.GetHashCode();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
using System.Collections.Generic;
|
||||
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportResponse : IEqualityComparer<OsztalyCsoportResponse>
|
||||
{
|
||||
public OsztalyCsoportUid Uid { get; set; }
|
||||
|
||||
public string Nev { get; set; }
|
||||
|
||||
public bool Equals(OsztalyCsoportResponse x, OsztalyCsoportResponse y) => x.Uid.Equals(x.Uid, y.Uid);
|
||||
|
||||
public int GetHashCode(OsztalyCsoportResponse obj) => obj.Uid.UidRaw.GetHashCode();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
using System.Collections.Generic;
|
||||
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportSimplifiedResponse : IEqualityComparer<OsztalyCsoportSimplifiedResponse>
|
||||
{
|
||||
public OsztalyCsoportUid Uid { get; set; }
|
||||
|
||||
public bool Equals(OsztalyCsoportSimplifiedResponse x, OsztalyCsoportSimplifiedResponse y) => x.Uid.Equals(x.Uid, y.Uid);
|
||||
|
||||
public int GetHashCode(OsztalyCsoportSimplifiedResponse obj) => obj.Uid.UidRaw.GetHashCode();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Kreta.Ellenorzo.Domain.VN.Logic;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportTagsagResponse : IEqualityComparer<OsztalyCsoportTagsagResponse>
|
||||
{
|
||||
public OsztalyCsoportTagsagResponse(DateTime ido, DateTime besorolasDatuma, DateTime? kisorolasDatuma)
|
||||
{
|
||||
BesorolasDatuma = besorolasDatuma;
|
||||
KisorolasDatuma = kisorolasDatuma;
|
||||
IsAktiv = OsztalyCsoportLogic.IsAktivTagsag(ido, besorolasDatuma, kisorolasDatuma);
|
||||
}
|
||||
|
||||
public OsztalyCsoportTagsagResponse()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DateTime BesorolasDatuma { get; private set; }
|
||||
|
||||
public DateTime? KisorolasDatuma { get; private set; }
|
||||
|
||||
public bool IsAktiv { get; private set; }
|
||||
|
||||
public bool Equals(OsztalyCsoportTagsagResponse x, OsztalyCsoportTagsagResponse y) => x.BesorolasDatuma == y.BesorolasDatuma && x.KisorolasDatuma == y.KisorolasDatuma;
|
||||
|
||||
public int GetHashCode(OsztalyCsoportTagsagResponse obj) => obj.GetHashCode();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue