Wonky.Client/Wonky.Entity/DTO/WorkplaceDto.cs
2023-04-02 14:39:23 +02:00

98 lines
No EOL
3.4 KiB
C#

// 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]
//
using System.ComponentModel.DataAnnotations;
namespace Wonky.Entity.DTO;
public class WorkplaceDto
{
/// <summary>
/// Workplace entity id
/// </summary>
public string WorkplaceId { get; set; } = "";
/// <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; } = "";
}