Wonky.Client/Wonky.Entity/DTO/WorkplaceDto.cs

55 lines
2.5 KiB
C#
Raw Normal View History

2022-07-31 10:12:28 +02:00
using System.ComponentModel.DataAnnotations;
2022-07-29 16:57:43 +02:00
namespace Wonky.Entity.DTO;
public class WorkplaceDto
{
2022-07-31 10:12:28 +02:00
/// <summary>
/// Workplace entity id
/// </summary>
2022-07-29 16:57:43 +02:00
public string WorkplaceId { get; set; } = "";
2022-07-31 10:12:28 +02:00
/// <summary>
/// Company name
/// </summary>
public string CompanyName { get; set; } = "";
/// <summary>
/// Workplace name
/// </summary>
[Required(ErrorMessage = "Navn skal angives")] [MaxLength(128, ErrorMessage = "Der kan højst anvendes 128 tegn")] public string Name { get; set; } = "";
/// <summary>
/// Workplace description
/// </summary>
[MaxLength(128, ErrorMessage = "Der kan højst anvendes 128 tegn")] public string Description { get; set; } = "";
/// <summary>
/// Short url to document overview
/// </summary>
public string ShortUrl { get; set; } = "";
/// <summary>
/// Product storage location
/// </summary>
[Required(ErrorMessage = "Opbevaringssted skal angives")] [MaxLength(128, ErrorMessage = "Der kan højst anvendes 128 tegn")] public string ProductStorage { get; set; } = "";
/// <summary>
/// Mask storage location
/// </summary>
[Required(ErrorMessage = "Opbevaringssted skal angives")] [MaxLength(128, ErrorMessage = "Der kan højst anvendes 128 tegn")] public string MaskStorage { get; set; } = "";
/// <summary>
/// Gloves storage location
/// </summary>
[Required(ErrorMessage = "Opbevaringssted skal angives")] [MaxLength(128, ErrorMessage = "Der kan højst anvendes 128 tegn")] public string GlovesStorage { get; set; } = "";
/// <summary>
/// Goggles storage location
/// </summary>
[Required(ErrorMessage = "Opbevaringssted skal angives")] [MaxLength(128, ErrorMessage = "Der kan højst anvendes 128 tegn")] public string GogglesStorage { get; set; } = "";
/// <summary>
/// Eye cleaner storage location
/// </summary>
[Required(ErrorMessage = "Opbevaringssted skal angives")] [MaxLength(128, ErrorMessage = "Der kan højst anvendes 128 tegn")] public string EyeCleanerLocation { get; set; } = "";
/// <summary>
/// First aid storage location
/// </summary>
[Required(ErrorMessage = "Opbevaringssted skal angives")] [MaxLength(128, ErrorMessage = "Der kan højst anvendes 128 tegn")] public string FirstAidStorage { get; set; } = "";
/// <summary>
/// Waste deposit location
/// </summary>
[Required(ErrorMessage = "Opbevaringssted skal angives")] [MaxLength(128, ErrorMessage = "Der kan højst anvendes 128 tegn")] public string WasteDeposit { get; set; } = "";
2022-07-29 16:57:43 +02:00
}