init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.Fogadoora
|
||||
{
|
||||
public class FogadooraIdopontResponse : IEqualityComparer<FogadooraIdopontResponse>
|
||||
{
|
||||
public bool IsJelentkeztem { get; set; }
|
||||
|
||||
public DateTime FogadooraKezdete { get; set; }
|
||||
|
||||
public DateTime KezdoIdopont { get; set; }
|
||||
|
||||
public FogadooraIdopontUid Uid { get; set; }
|
||||
|
||||
public DateTime VegIdopont { get; set; }
|
||||
|
||||
public DateTime? JelentkezesHatarido { get; set; }
|
||||
|
||||
public FogadooraUid FogadooraUid { get; set; }
|
||||
|
||||
public bool Equals(FogadooraIdopontResponse x, FogadooraIdopontResponse y) => x.Uid.Equals(x.Uid, y.Uid);
|
||||
|
||||
public int GetHashCode(FogadooraIdopontResponse obj) => obj.Uid.UidRaw.GetHashCode();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.Fogadoora
|
||||
{
|
||||
public class FogadooraJelentkezesCreateRequest
|
||||
{
|
||||
public FogadooraJelentkezesCreateRequest(string uidRaw)
|
||||
{
|
||||
FogadooraIdopontUid = new FogadooraIdopontUid(uidRaw);
|
||||
}
|
||||
|
||||
public FogadooraIdopontUid FogadooraIdopontUid { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using Kreta.Ellenorzo.Domain.VN.Interfaces;
|
||||
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
|
||||
using Kreta.Ellenorzo.Domain.VN.Utility.ValidationAttributes;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.Fogadoora
|
||||
{
|
||||
public class FogadooraListRequest : IValidatableObject, IModelValidacio<FogadooraListRequest>
|
||||
{
|
||||
public FogadooraListRequest()
|
||||
{
|
||||
}
|
||||
|
||||
[ShortDateTime]
|
||||
public DateTime? DatumIg { get; set; }
|
||||
|
||||
public DateTime? DatumTol { get; set; }
|
||||
|
||||
public Dictionary<Predicate<FogadooraListRequest>, string> ModelValidaciok => new Dictionary<Predicate<FogadooraListRequest>, string>
|
||||
{
|
||||
{
|
||||
x => x.DatumIg.HasValue && x.DatumTol.HasValue && (x.DatumIg < x.DatumTol),
|
||||
$"A {nameof(DatumTol)} és a {nameof(DatumIg)} paraméterek meg vannak adva, de a {nameof(DatumTol)} nagyobb, mint a {nameof(DatumIg)} értek!"
|
||||
},
|
||||
{
|
||||
x => x.DatumIg.HasValue && x.DatumTol.HasValue && (((TimeSpan)(x.DatumIg - x.DatumTol)).Days > 21),
|
||||
$"A {nameof(DatumTol)} és a {nameof(DatumIg)} paraméterek meg vannak adva, de maximum 3 hetes intervallum kérdezhető le!"
|
||||
}
|
||||
};
|
||||
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext) => ModelValidaciok.Where(x => x.Key.Invoke(this)).AsEnumerable().Select(x => new ValidationResult(x.Value));
|
||||
|
||||
public FogadooraUid Uid { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
using System.Collections.Generic;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott.Tanar;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.Fogadoora
|
||||
{
|
||||
public class FogadooraListResponse
|
||||
{
|
||||
public TanarSimplifiedResponse Tanar { get; set; }
|
||||
|
||||
public List<FogadooraResponse> Fogadoorak { get; set; } = new List<FogadooraResponse>();
|
||||
|
||||
public FogadooraListResponse()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Kreta.Ellenorzo.Domain.VN.Terem;
|
||||
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.Fogadoora
|
||||
{
|
||||
public class FogadooraResponse : IEqualityComparer<FogadooraResponse>
|
||||
{
|
||||
public FogadooraUid Uid { get; set; }
|
||||
|
||||
public TeremSimplifiedResponse Terem { get; set; }
|
||||
|
||||
public bool IsJelentkezesFeatureEnabled { get; set; }
|
||||
|
||||
public DateTime KezdoIdopont { get; set; }
|
||||
|
||||
public DateTime VegIdopont { get; set; }
|
||||
|
||||
public DateTime? JelentkezesHatarido { get; set; }
|
||||
|
||||
public List<FogadooraIdopontResponse> Idopontok { get; set; }
|
||||
|
||||
public bool Equals(FogadooraResponse x, FogadooraResponse y) => x.Uid.Equals(x.Uid, y.Uid);
|
||||
|
||||
public int GetHashCode(FogadooraResponse obj) => obj.Uid.UidRaw.GetHashCode();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
|
||||
|
||||
namespace Kreta.Ellenorzo.Domain.VN.Fogadoora.Idopont
|
||||
{
|
||||
public class FogadooraIdopontJelentkezesDeleteRequest
|
||||
{
|
||||
public FogadooraIdopontJelentkezesDeleteRequest(string uidRaw = null)
|
||||
{
|
||||
FogadooraIdopontUid = new FogadooraIdopontUid(uidRaw);
|
||||
}
|
||||
|
||||
public FogadooraIdopontUid FogadooraIdopontUid { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue