init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Data.SqlTypes;
|
||||
using System.Linq;
|
||||
using Kreta.Ellenorzo.Domain.VN.Interfaces;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.Intezmeny.Hetirend
|
||||
{
|
||||
public class HetirendListRequest : IValidatableObject, IModelValidacio<HetirendListRequest>
|
||||
{
|
||||
public Dictionary<Predicate<HetirendListRequest>, string> ModelValidaciok => new Dictionary<Predicate<HetirendListRequest>, string>
|
||||
{
|
||||
{
|
||||
x => x.OrarendElemVegNapDatuma < x.OrarendElemKezdoNapDatuma, $"A(z) {nameof(OrarendElemKezdoNapDatuma)} nagyobb, mint a(z) {nameof(OrarendElemVegNapDatuma)} érték!"
|
||||
},
|
||||
{ x => (x.OrarendElemVegNapDatuma - x.OrarendElemKezdoNapDatuma).Days > 21,
|
||||
$"A {nameof(OrarendElemKezdoNapDatuma)} és a {nameof(OrarendElemVegNapDatuma)} paraméterek meg vannak adva, de maximum 3 hetes intervallum kérdezhető le!"
|
||||
},
|
||||
{
|
||||
x => x.OrarendElemKezdoNapDatuma < (DateTime)SqlDateTime.MinValue || x.OrarendElemKezdoNapDatuma > (DateTime)SqlDateTime.MaxValue, $"A {nameof(OrarendElemKezdoNapDatuma)} paraméter nem lehet kisebb, mint 1753. január 1. és nagyobb, mint 9999. december 31.!"
|
||||
},
|
||||
{
|
||||
x => x.OrarendElemVegNapDatuma < (DateTime)SqlDateTime.MinValue || x.OrarendElemVegNapDatuma > (DateTime)SqlDateTime.MaxValue, $"A {nameof(OrarendElemVegNapDatuma)} paraméter nem lehet kisebb, mint 1753. január 1. és nagyobb, mint 9999. december 31.!"
|
||||
}
|
||||
};
|
||||
|
||||
public DateTime OrarendElemKezdoNapDatuma { get; set; }
|
||||
|
||||
public DateTime OrarendElemVegNapDatuma { get; set; }
|
||||
|
||||
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext) => ModelValidaciok.Where(x => x.Key.Invoke(this)).AsEnumerable().Select(x => new ValidationResult(x.Value));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Kreta.Ellenorzo.Domain.VN.Adatszotar;
|
||||
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
|
||||
using Kreta.Enums;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.Intezmeny.Hetirend
|
||||
{
|
||||
public class HetirendListResponse : IEqualityComparer<HetirendListResponse>
|
||||
{
|
||||
public Adatszotar<HetiRendTipusEnum> Tipus { get; set; }
|
||||
|
||||
public DateTime KezdoNapDatuma { get; set; }
|
||||
|
||||
public DateTime VegNapDatuma { get; set; }
|
||||
|
||||
public int HetSorszama { get; set; }
|
||||
|
||||
public HetirendUid Uid { get; set; }
|
||||
|
||||
public bool Equals(HetirendListResponse x, HetirendListResponse y) => x.Uid.Equals(x.Uid, y.Uid);
|
||||
|
||||
public int GetHashCode(HetirendListResponse obj) => obj.Uid.UidRaw.GetHashCode();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
using System.Collections.Generic;
|
||||
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.Intezmeny
|
||||
{
|
||||
public class IntezmenyAdatok : IEqualityComparer<IntezmenyAdatok>
|
||||
{
|
||||
public IntezmenyUid Uid { get; set; }
|
||||
|
||||
public string Azonosito { get; set; }
|
||||
|
||||
public string TeljesNev { get; set; }
|
||||
|
||||
public string RovidNev { get; set; }
|
||||
|
||||
public bool Equals(IntezmenyAdatok x, IntezmenyAdatok y) => x.Uid.Equals(x.Uid, y.Uid);
|
||||
|
||||
public int GetHashCode(IntezmenyAdatok obj) => obj.Uid.UidRaw.GetHashCode();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Kreta.Ellenorzo.Domain.VN.Common;
|
||||
using Kreta.Ellenorzo.Domain.VN.Intezmeny.Rendszermodul;
|
||||
using Kreta.Ellenorzo.Domain.VN.Intezmeny.TestreszabasBeallitasok;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.Intezmeny
|
||||
{
|
||||
[Serializable]
|
||||
public class IntezmenyResponse : IEqualityComparer<IntezmenyResponse>
|
||||
{
|
||||
public IntezmenyAdatok IntezmenyAdatok { get; set; }
|
||||
|
||||
public HashSet<RendszermodulListResponse> Rendszermodulok { get; set; }
|
||||
|
||||
public TestreszabasBeallitasokResponse TestreszabasBeallitasok { get; set; }
|
||||
|
||||
public bool Equals(IntezmenyResponse x, IntezmenyResponse y) => x.IntezmenyAdatok.Uid.Equals(x.IntezmenyAdatok.Uid, y.IntezmenyAdatok.Uid);
|
||||
|
||||
public int GetHashCode(IntezmenyResponse obj) => obj.IntezmenyAdatok.Uid.UidRaw.GetHashCode();
|
||||
|
||||
public static explicit operator IntezmenyResponse(IntezmenyModel model) => model == null ? null :
|
||||
new IntezmenyResponse
|
||||
{
|
||||
IntezmenyAdatok = new IntezmenyAdatok
|
||||
{
|
||||
Uid = model.Uid,
|
||||
Azonosito = model.Azonosito,
|
||||
TeljesNev = model.TeljesNev
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
using System.Collections.Generic;
|
||||
using Kreta.Ellenorzo.Enums.VN;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.Intezmeny.Rendszermodul
|
||||
{
|
||||
public class RendszermodulListResponse : IEqualityComparer<RendszermodulListResponse>
|
||||
{
|
||||
public bool IsAktiv { get; set; }
|
||||
|
||||
public string Url { get; set; }
|
||||
|
||||
public RendszermodulTipus Tipus { get; set; }
|
||||
|
||||
public bool Equals(RendszermodulListResponse x, RendszermodulListResponse y) => x.Tipus.Equals(y.Tipus);
|
||||
|
||||
public int GetHashCode(RendszermodulListResponse obj) => obj.Tipus.GetHashCode();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Kreta.Ellenorzo.Domain.VN.Adatszotar;
|
||||
using Kreta.Ellenorzo.Domain.VN.OsztalyCsoport;
|
||||
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
|
||||
using Kreta.Enums;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.Intezmeny.TanevRendje
|
||||
{
|
||||
public class TanevRendjeListResponse : IEqualityComparer<TanevRendjeListResponse>
|
||||
{
|
||||
public DateTime Datum { get; set; }
|
||||
|
||||
public Adatszotar<HetNapjaTipusEnum> ElteroOrarendSzerintiTanitasiNap { get; set; }
|
||||
|
||||
public TanevRendjeUid Uid { get; set; }
|
||||
|
||||
public Adatszotar<NapTipusEnum> Naptipus { get; set; }
|
||||
|
||||
public Adatszotar<HetiRendTipusEnum> OrarendiNapHetirendje { get; set; }
|
||||
|
||||
public OsztalyCsoportSimplifiedResponse OsztalyCsoport { get; set; }
|
||||
|
||||
public bool Equals(TanevRendjeListResponse x, TanevRendjeListResponse y) => x.Uid.Equals(x.Uid, y.Uid);
|
||||
|
||||
public int GetHashCode(TanevRendjeListResponse obj) => obj.Uid.UidRaw.GetHashCode();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.Intezmeny.TestreszabasBeallitasok
|
||||
{
|
||||
public class TestreszabasBeallitasokResponse
|
||||
{
|
||||
public bool IsDiakRogzithetHaziFeladatot { get; set; }
|
||||
|
||||
public bool IsTanorakTemajaMegtekinthetoEllenorzoben { get; set; }
|
||||
|
||||
public bool IsOsztalyAtlagMegjeleniteseEllenorzoben { get; set; }
|
||||
|
||||
public int ErtekelesekMegjelenitesenekKesleltetesenekMerteke { get; set; }
|
||||
|
||||
public DateTime KovetkezoTelepitesDatuma { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue