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.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class BejelentettSzamonkeresekRequestDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Osztály/csoport id
|
||||
/// </summary>
|
||||
[Required]
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Dátum
|
||||
/// </summary>
|
||||
[Required]
|
||||
public DateTime Datum { get; set; }
|
||||
|
||||
public static implicit operator BejelentettSzamonkeresekRequest(BejelentettSzamonkeresekRequestDto dto) => new BejelentettSzamonkeresekRequest
|
||||
{
|
||||
OsztalyCsoportId = dto.OsztalyCsoportId,
|
||||
Datum = dto.Datum.ToLocalTime()
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,57 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using Kreta.Naplo.Dto.V3.Interfaces;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class BejelentettSzamonkeresekResponseDto : IDtoDocumentation, IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.SzamonkeresId)]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.Tema)]
|
||||
public string Tema { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ErtekelesMod)]
|
||||
public int ErtekelesMod { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.OraSzam)]
|
||||
public int? OraSzam { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TantargyId)]
|
||||
public int TantargyId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TantargyNev)]
|
||||
public string TantargyNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanarUid)]
|
||||
public Guid TanarUid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanarNev)]
|
||||
public string TanarNev { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample => new DocumentationExampleDto("GetBejelentettSzamonkeresek",
|
||||
new BejelentettSzamonkeresekRequestDto
|
||||
{
|
||||
OsztalyCsoportId = 804093,
|
||||
Datum = DateTime.Parse("2022-06-02T22:00:00Z")
|
||||
});
|
||||
|
||||
public DocumentationExampleDto Example => new DocumentationExampleDto("GetBejelentettSzamonkeres", 4707);
|
||||
|
||||
public static implicit operator BejelentettSzamonkeresekResponseDto(BejelentettSzamonkeresekResponse model) => new BejelentettSzamonkeresekResponseDto
|
||||
{
|
||||
Id = model.Id,
|
||||
Tema = model.Tema,
|
||||
ErtekelesMod = model.ErtekelesMod,
|
||||
OraSzam = model.OraSzam,
|
||||
TantargyId = model.TantargyId,
|
||||
TantargyNev = model.TantargyNev,
|
||||
TanarUid = model.TanarUid,
|
||||
TanarNev = model.TanarNev
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
using Swashbuckle.Examples;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class MondatbankRequestDto : IExamplesProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// Tantárgy id
|
||||
/// </summary>
|
||||
[Required]
|
||||
public int TantargyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Osztály/Csoport id
|
||||
/// </summary>
|
||||
[Required]
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
public static implicit operator MondatbankRequest(MondatbankRequestDto dto) => new MondatbankRequest
|
||||
{
|
||||
TantargyId = dto.TantargyId,
|
||||
OsztalyCsoportId = dto.OsztalyCsoportId
|
||||
};
|
||||
|
||||
public object GetExamples() => new MondatbankRequestDto
|
||||
{
|
||||
TantargyId = 414771,
|
||||
OsztalyCsoportId = 130796
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using Kreta.Naplo.Dto.V3.Interfaces;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class MondatbankResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.RovidNev)]
|
||||
public string RovidNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.Nev)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample
|
||||
=> new DocumentationExampleDto(
|
||||
"GetMondatbank",
|
||||
new MondatbankRequestDto
|
||||
{
|
||||
TantargyId = 414771,
|
||||
OsztalyCsoportId = 130796
|
||||
});
|
||||
|
||||
public static implicit operator MondatbankResponseDto(MondatbankResponse model) => new MondatbankResponseDto
|
||||
{
|
||||
RovidNev = model.RovidNev,
|
||||
Nev = model.Nev
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
using Kreta.Naplo.Domain.V3.Utility;
|
||||
using Kreta.Naplo.Domain.V3.Utility.ValidationAttributes;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using Kreta.Naplo.Dto.V3.Ertekeles;
|
||||
using Swashbuckle.Examples;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportErtekelesRequestDto : IExamplesProvider
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.TantargyId)]
|
||||
public int TantargyId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportId)]
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ErtekelesDatum)]
|
||||
public DateTime Datum { get; set; }
|
||||
|
||||
[Required, EnumToDescription(DescriptionLookUp.SzamonkeresMod, typeof(ErtekelesModEnum))]
|
||||
public int Mod { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.SzamonkeresTema)]
|
||||
public string Tema { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.Tanulok)]
|
||||
public List<TanuloForOsztalyCsoportErtekelesRequestDto> TanuloLista { get; set; }
|
||||
|
||||
public static implicit operator OsztalyCsoportErtekelesRequest(OsztalyCsoportErtekelesRequestDto dto) => new OsztalyCsoportErtekelesRequest
|
||||
{
|
||||
TantargyId = dto.TantargyId,
|
||||
OsztalyCsoportId = dto.OsztalyCsoportId,
|
||||
Datum = dto.Datum.ToLocalTime(),
|
||||
Mod = dto.Mod,
|
||||
Tema = dto.Tema,
|
||||
TanuloLista = Converter.RequestModelConverter.DtoToModel(dto.TanuloLista)
|
||||
};
|
||||
|
||||
public object GetExamples()
|
||||
=> new OsztalyCsoportErtekelesRequestDto
|
||||
{
|
||||
TantargyId = 330986,
|
||||
OsztalyCsoportId = 804093,
|
||||
Datum = DateTime.Now.ToLocalTime(),
|
||||
Mod = 1509,
|
||||
Tema = "Témácska",
|
||||
TanuloLista = new List<TanuloForOsztalyCsoportErtekelesRequestDto> {
|
||||
new TanuloForOsztalyCsoportErtekelesRequestDto {
|
||||
TanuloId = 218789,
|
||||
Ertekeles = new ErtekelesRequestDto { OsztalyzatTipus = 1505, Szazalek = null, Szoveg = null }
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
using Swashbuckle.Examples;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportErtekelesekRequestDto : IExamplesProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// Tantárgy id
|
||||
/// </summary>
|
||||
[Required]
|
||||
public int TantargyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Osztály/csoport id
|
||||
/// </summary>
|
||||
[Required]
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Dátum (óra vagy értékelés bejegyzés dátuma, ShortDateTime, UTC ISO 8601) opcionális
|
||||
/// </summary>
|
||||
public DateTime? Datum { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Tanuló id
|
||||
/// </summary>
|
||||
public int? TanuloId { get; set; }
|
||||
|
||||
|
||||
public static implicit operator OsztalyCsoportErtekelesekRequest(OsztalyCsoportErtekelesekRequestDto dto) => new OsztalyCsoportErtekelesekRequest
|
||||
{
|
||||
Datum = dto.Datum ?? DateTime.Now,
|
||||
TantargyId = dto.TantargyId,
|
||||
OsztalyCsoportId = dto.OsztalyCsoportId,
|
||||
TanuloId = dto.TanuloId
|
||||
};
|
||||
|
||||
public object GetExamples() => new OsztalyCsoportErtekelesekRequestDto
|
||||
{
|
||||
TantargyId = 414768,
|
||||
OsztalyCsoportId = 130796
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
using Kreta.Naplo.Domain.V3.Utility;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using Kreta.Naplo.Dto.V3.Ertekeles;
|
||||
using Kreta.Naplo.Dto.V3.Interfaces;
|
||||
using Kreta.Naplo.Dto.V3.Tanulo;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportErtekelesekResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.TanuloId)]
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanuloErtekelesFelmentes)]
|
||||
public TanuloMentessegResponseDto TanuloErtekelesFelmentes { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.TanuloTantargyiAtlag)]
|
||||
public decimal? TanuloTantargyiAtlag { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanuloErtekelesSzam)]
|
||||
public int TanuloErtekelesSzam { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.TanuloUtolsoErtekeles)]
|
||||
public ErtekelesResponseDto TanuloUtolsoErtekeles { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.TanuloUtolsoErtekelesDatum)]
|
||||
public DateTime? TanuloUtolsoErtekelesDatum { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample
|
||||
=> new DocumentationExampleDto(
|
||||
"GetOsztalyCsoportErtekelesek",
|
||||
new OsztalyCsoportErtekelesekRequestDto
|
||||
{
|
||||
TantargyId = 414768,
|
||||
OsztalyCsoportId = 130796
|
||||
});
|
||||
|
||||
public static implicit operator OsztalyCsoportErtekelesekResponseDto(OsztalyCsoportErtekelesekResponse model) => new OsztalyCsoportErtekelesekResponseDto
|
||||
{
|
||||
TanuloId = model.TanuloId,
|
||||
TanuloErtekelesFelmentes = model.TanuloErtekelesFelmentes,
|
||||
TanuloTantargyiAtlag = model.TanuloTantargyiAtlag,
|
||||
TanuloErtekelesSzam = model.TanuloErtekelesSzam,
|
||||
TanuloUtolsoErtekeles = model.TanuloUtolsoErtekeles,
|
||||
TanuloUtolsoErtekelesDatum = model.TanuloUtolsoErtekelesDatum?.ToIso8601Utc()
|
||||
};
|
||||
|
||||
public object GetExamples() => new OsztalyCsoportErtekelesekResponseDto
|
||||
{
|
||||
TanuloId = 218789,
|
||||
TanuloErtekelesFelmentes = new TanuloMentessegResponseDto { ErtekelesAloliFelmentes = true, TanoraLatogatasaAloliFelmentes = false, SzovegesenErtekelheto = true },
|
||||
TanuloTantargyiAtlag = (decimal?)4.92,
|
||||
TanuloErtekelesSzam = 21,
|
||||
TanuloUtolsoErtekeles = new ErtekelesResponseDto { OsztalyzatTipus = 1505, Szazalek = null, Szoveg = null },
|
||||
TanuloUtolsoErtekelesDatum = DateTime.Now.ToIso8601Utc()
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportGondviseloResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.GondviseloId)]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.GondviseloNev)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.GondviseloRokonsagiFok)]
|
||||
public string RokonsagiFok { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.GondviseloTelefonszam)]
|
||||
public string Telefonszam { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.GondviseloEmail)]
|
||||
public string Email { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TorvenyesKepviselo)]
|
||||
public bool IsTorvenyesKepviselo { get; set; }
|
||||
|
||||
public static implicit operator OsztalyCsoportGondviseloResponseDto(OsztalyCsoportGondviseloResponse model) => new OsztalyCsoportGondviseloResponseDto
|
||||
{
|
||||
Id = model.Id,
|
||||
Nev = model.Nev,
|
||||
RokonsagiFok = model.RokonsagiFok,
|
||||
Telefonszam = model.Telefonszam,
|
||||
Email = model.Email,
|
||||
IsTorvenyesKepviselo = model.IsTorvenyesKepviselo
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportId)]
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportNev)]
|
||||
public string OsztalyCsoportNev { get; set; }
|
||||
|
||||
public static implicit operator OsztalyCsoportResponseDto(OsztalyCsoportResponse model) => new OsztalyCsoportResponseDto
|
||||
{
|
||||
OsztalyCsoportId = model.OsztalyCsoportId,
|
||||
OsztalyCsoportNev = model.OsztalyCsoportNev
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportTanuloAdatokResponseDto : OsztalyCsoportTanuloResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportok)]
|
||||
public List<OsztalyCsoportResponseDto> OsztalyCsoportok { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.Gondviselok)]
|
||||
public List<OsztalyCsoportGondviseloResponseDto> Gondviselok { get; set; }
|
||||
|
||||
public static implicit operator OsztalyCsoportTanuloAdatokResponseDto(OsztalyCsoportTanuloAdatokResponse model) => new OsztalyCsoportTanuloAdatokResponseDto
|
||||
{
|
||||
TanuloId = model.TanuloId,
|
||||
TanuloNev = model.TanuloNev,
|
||||
TanuloSzuletesiDatum = model.TanuloSzuletesiDatum,
|
||||
TanuloAnyjaNeve = model.TanuloAnyjaNeve,
|
||||
OsztalyCsoportok = Converter.ResponseModelConverter.ModelToDto(model.OsztalyCsoportok),
|
||||
Gondviselok = Converter.ResponseModelConverter.ModelToDto(model.Gondviselok)
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
using Swashbuckle.Examples;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportTanuloRequestDto : IExamplesProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// Osztály/csoport id
|
||||
/// </summary>
|
||||
[Required]
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Dátum ha nincs megadva akkor a mai nap.
|
||||
/// </summary>
|
||||
public DateTime? Datum { get; set; }
|
||||
|
||||
public static implicit operator OsztalyCsoportTanuloRequest(OsztalyCsoportTanuloRequestDto dto) => new OsztalyCsoportTanuloRequest
|
||||
{
|
||||
OsztalyCsoportId = dto.OsztalyCsoportId,
|
||||
Datum = dto.Datum?.ToLocalTime()
|
||||
};
|
||||
|
||||
public object GetExamples() => new OsztalyCsoportTanuloRequestDto
|
||||
{
|
||||
OsztalyCsoportId = 130796,
|
||||
Datum = DateTime.Now
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
using Kreta.Naplo.Domain.V3.Utility;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using Kreta.Naplo.Dto.V3.Interfaces;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportTanuloResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.TanuloId)]
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanuloNev)]
|
||||
public string TanuloNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanuloSzuletesiDatum)]
|
||||
public DateTime TanuloSzuletesiDatum { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanuloAnyjaNeve)]
|
||||
public string TanuloAnyjaNeve { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample
|
||||
=> new DocumentationExampleDto("GetOsztalyCsoportTanuloi", 130796);
|
||||
|
||||
public static implicit operator OsztalyCsoportTanuloResponseDto(OsztalyCsoportTanuloResponse model) => new OsztalyCsoportTanuloResponseDto
|
||||
{
|
||||
TanuloId = model.TanuloId,
|
||||
TanuloNev = model.TanuloNev,
|
||||
TanuloSzuletesiDatum = model.TanuloSzuletesiDatum.ToIso8601Utc(),
|
||||
TanuloAnyjaNeve = model.TanuloAnyjaNeve
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using Kreta.Naplo.Dto.V3.Interfaces;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyokCsoportokResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportId)]
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportNev)]
|
||||
public string OsztalyCsoportNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IsTanitom)]
|
||||
public bool IsTanitom { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.OsztalyfonokCsoportvezetoUid)]
|
||||
public Guid? OsztalyfonokCsoportvezetoUid { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.OsztalyfonokCsoportvezetoNev)]
|
||||
public string OsztalyfonokCsoportvezetoNev { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.OsztalyfonokHelyettesUid)]
|
||||
public Guid? OsztalyfonokHelyettesUid { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.OsztalyfonokHelyettesNev)]
|
||||
public string OsztalyfonokHelyettesNev { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample => new DocumentationExampleDto("GetOsztalyokCsoportok", null);
|
||||
|
||||
public static implicit operator OsztalyokCsoportokResponseDto(OsztalyokCsoportokResponse model) => new OsztalyokCsoportokResponseDto
|
||||
{
|
||||
OsztalyCsoportId = model.OsztalyCsoportId,
|
||||
OsztalyCsoportNev = model.OsztalyCsoportNev,
|
||||
IsTanitom = model.IsTanitom,
|
||||
OsztalyfonokCsoportvezetoUid = model.OsztalyfonokCsoportvezetoUid,
|
||||
OsztalyfonokCsoportvezetoNev = model.OsztalyfonokCsoportvezetoNev,
|
||||
OsztalyfonokHelyettesUid = model.OsztalyfonokHelyettesUid,
|
||||
OsztalyfonokHelyettesNev = model.OsztalyfonokHelyettesNev
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel;
|
||||
using System;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class TanuloErtekelesMentesRequestDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ErtekelesDatuma)]
|
||||
public DateTime ErtekelesDatum { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ErtekelesModId)]
|
||||
public int ErtekelesModId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ErtekelesTema)]
|
||||
public string ErtekelesTema { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.ErtekelesOsztalyzatId)]
|
||||
public int? ErtekelesOsztalyzatId { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.ErtekelesSzoveg)]
|
||||
public string ErtekelesSzoveg { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.ErtekelesSzazalek)]
|
||||
public int? ErtekelesSzazalek { get; set; }
|
||||
|
||||
public static implicit operator TanuloErtekelesMentesRequest(TanuloErtekelesMentesRequestDto dto) => new TanuloErtekelesMentesRequest
|
||||
{
|
||||
ErtekelesDatum = dto.ErtekelesDatum.ToLocalTime(),
|
||||
ErtekelesModId = dto.ErtekelesModId,
|
||||
ErtekelesTema = dto.ErtekelesTema,
|
||||
ErtekelesOsztalyzatId = dto.ErtekelesOsztalyzatId,
|
||||
ErtekelesSzoveg = dto.ErtekelesSzoveg,
|
||||
ErtekelesSzazalek = dto.ErtekelesSzazalek
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Swashbuckle.Examples;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class TanuloErtekelesekRequestDto : IExamplesProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// Tanuló id
|
||||
/// </summary>
|
||||
[Required]
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tantárgy id
|
||||
/// </summary>
|
||||
[Required]
|
||||
public int TantargyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Osztály/csoport id
|
||||
/// </summary>
|
||||
[Required]
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
public static implicit operator TanuloErtekelesekRequest(TanuloErtekelesekRequestDto dto) => new TanuloErtekelesekRequest
|
||||
{
|
||||
TanuloId = dto.TanuloId,
|
||||
TantargyId = dto.TantargyId,
|
||||
OsztalyCsoportId = dto.OsztalyCsoportId
|
||||
};
|
||||
|
||||
public object GetExamples() => new TanuloErtekelesekRequestDto
|
||||
{
|
||||
TanuloId = 218785,
|
||||
TantargyId = 330986,
|
||||
OsztalyCsoportId = 804093
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,119 @@
|
|||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel;
|
||||
using System;
|
||||
using Kreta.Naplo.Dto.V3.Interfaces;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
using Kreta.Naplo.Domain.V3.Utility;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class TanuloErtekelesekResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ErtekelesId)]
|
||||
public int ErtekelesId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TantargyId)]
|
||||
public int TantargyId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TantargyNev)]
|
||||
public string TantargyNev { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.Ertekeles)]
|
||||
public string Ertekeles { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.ErtekelesOsztalyzatId)]
|
||||
public int? ErtekelesOsztalyzatId { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.ErtekelesOsztalyzatNev)]
|
||||
public string ErtekelesOsztalyzatNev { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.ErtekelesSzoveg)]
|
||||
public string ErtekelesSzoveg { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.ErtekelesSzazalek)]
|
||||
public int? ErtekelesSzazalek { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ErtekelesFajtaId)]
|
||||
public int ErtekelesFajtaId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ErtekelesFajtaNev)]
|
||||
public string ErtekelesFajtaNev { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.ErtekelesModId)]
|
||||
public int? ErtekelesModId { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.ErtekelesModNev)]
|
||||
public string ErtekelesModNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ErtekelesTipusId)]
|
||||
public int ErtekelesTipusId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ErtekelesTipusNev)]
|
||||
public string ErtekelesTipusNev { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.ErtekelesTema)]
|
||||
public string ErtekelesTema { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ErtekelesDatum)]
|
||||
public DateTime ErtekelesDatum { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.ErtekelesSuly)]
|
||||
public int? ErtekelesSuly { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ErtekelesRogzitesDatum)]
|
||||
public DateTime ErtekelesRogzitesDatum { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanarUid)]
|
||||
public Guid TanarUid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportId)]
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FeladatEllatasiHelyId)]
|
||||
public int FeladatEllatasiHelyId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FeladatEllatasiHelyNev)]
|
||||
public string FeladatEllatasiHelyNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.Naplozart)]
|
||||
public bool Naplozart { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample
|
||||
=> new DocumentationExampleDto(
|
||||
"GetTanuloErtekelesei",
|
||||
new TanuloErtekelesekRequestDto
|
||||
{
|
||||
TanuloId = 218785,
|
||||
TantargyId = 330986,
|
||||
OsztalyCsoportId = 804093
|
||||
});
|
||||
|
||||
public static implicit operator TanuloErtekelesekResponseDto(TanuloErtekelesekResponse model) => new TanuloErtekelesekResponseDto
|
||||
{
|
||||
ErtekelesId = model.ErtekelesId,
|
||||
TantargyId = model.TantargyId,
|
||||
TantargyNev = model.TantargyNev,
|
||||
Ertekeles = model.Ertekeles,
|
||||
ErtekelesOsztalyzatId = model.ErtekelesOsztalyzatId,
|
||||
ErtekelesOsztalyzatNev = model.ErtekelesOsztalyzatNev,
|
||||
ErtekelesSzoveg = model.ErtekelesSzoveg,
|
||||
ErtekelesSzazalek = model.ErtekelesSzazalek,
|
||||
ErtekelesFajtaId = model.ErtekelesFajtaId,
|
||||
ErtekelesFajtaNev = model.ErtekelesFajtaNev,
|
||||
ErtekelesModId = model.ErtekelesModId,
|
||||
ErtekelesModNev = model.ErtekelesModNev,
|
||||
ErtekelesTipusId = model.ErtekelesTipusId,
|
||||
ErtekelesTipusNev = model.ErtekelesTipusNev,
|
||||
ErtekelesTema = model.ErtekelesTema,
|
||||
ErtekelesDatum = model.ErtekelesDatum.ToIso8601Utc(),
|
||||
ErtekelesSuly = model.ErtekelesSuly,
|
||||
ErtekelesRogzitesDatum = model.ErtekelesRogzitesDatum.ToIso8601Utc(),
|
||||
TanarUid = model.TanarUid,
|
||||
OsztalyCsoportId = model.OsztalyCsoportId,
|
||||
FeladatEllatasiHelyId = model.FeladatEllatasiHelyId,
|
||||
FeladatEllatasiHelyNev = model.FeladatEllatasiHelyNev,
|
||||
Naplozart = model.Naplozart
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using Kreta.Naplo.Dto.V3.Ertekeles;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class TanuloForOsztalyCsoportErtekelesRequestDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.TanuloId)]
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.Ertekeles)]
|
||||
public ErtekelesRequestDto Ertekeles { get; set; }
|
||||
|
||||
public static implicit operator TanuloForOsztalyCsoportErtekelesRequest(TanuloForOsztalyCsoportErtekelesRequestDto dto) => new TanuloForOsztalyCsoportErtekelesRequest
|
||||
{
|
||||
TanuloId = dto.TanuloId,
|
||||
Ertekeles = dto.Ertekeles
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue