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

71 lines
3.3 KiB
C#
Raw Normal View History

2022-08-01 06:24:27 +02:00
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
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
}