init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,61 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Kreta.Naplo.Domain.V3.Igazolas;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.Igazolas
|
||||
{
|
||||
public class IgazolasCreateRequestDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Tanuló id
|
||||
/// </summary>
|
||||
[Required, Description(DescriptionLookUp.TanuloId)]
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Osztály/csoport id
|
||||
/// </summary>
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportId)]
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Igazolás kezdete (UTC ISO 8601)
|
||||
/// </summary>
|
||||
[Required, Description(DescriptionLookUp.IgazolasKezdete)]
|
||||
public DateTime IgazolasKezdete { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Igazolás vége (UTC ISO 8601)
|
||||
/// </summary>
|
||||
[Required, Description(DescriptionLookUp.IgazolasVege)]
|
||||
public DateTime IgazolasVege { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Igazolás típus
|
||||
/// </summary>
|
||||
[Required, Description(DescriptionLookUp.IgazolasTipusa)]
|
||||
public int IgazolasTipus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Igazolás megjegyzése
|
||||
/// </summary>
|
||||
[Description(DescriptionLookUp.IgazolasMegjegyzes)]
|
||||
public string IgazolasMegjegyzes { get; set; }
|
||||
|
||||
public static implicit operator IgazolasCreateRequest(IgazolasCreateRequestDto dto) => new IgazolasCreateRequest
|
||||
{
|
||||
TanuloId = dto.TanuloId,
|
||||
OsztalyCsoportId = dto.OsztalyCsoportId,
|
||||
IgazolasKezdete = dto.IgazolasKezdete,
|
||||
IgazolasVege = dto.IgazolasVege,
|
||||
IgazolasTipus = dto.IgazolasTipus,
|
||||
IgazolasMegjegyzes = dto.IgazolasMegjegyzes
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.Igazolas;
|
||||
using Kreta.Naplo.Domain.V3.Utility;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using Kreta.Naplo.Dto.V3.Interfaces;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.Igazolas
|
||||
{
|
||||
public class IgazolasResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.IgazolasId)]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IgazolasKezdete)]
|
||||
public DateTime Kezdete { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IgazolasVege)]
|
||||
public DateTime Vege { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IgazolasTipusa)]
|
||||
public int Tipusa { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.IgazolasMegjegyzes)]
|
||||
public string Megjegyzes { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IgazolasRogzito)]
|
||||
public string Rogzito { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IgazolasTorolheto)]
|
||||
public bool Torolheto { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample => new DocumentationExampleDto("GetIgazolasok", 218789);
|
||||
|
||||
public static implicit operator IgazolasResponseDto(IgazolasResponse model) => new IgazolasResponseDto
|
||||
{
|
||||
Id = model.Id,
|
||||
Kezdete = model.Kezdete.ToIso8601Utc(),
|
||||
Vege = model.Vege.ToIso8601Utc(),
|
||||
Tipusa = model.Tipusa,
|
||||
Megjegyzes = model.Megjegyzes,
|
||||
Rogzito = model.Rogzito,
|
||||
Torolheto = model.Torolheto
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue