2023-02-07 09:01:03 +01:00
|
|
|
|
2022-03-11 14:21:04 +01:00
|
|
|
// Copyright (C) 2022 FCS Frede's Computer Services.
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
2022-05-31 19:07:39 +02:00
|
|
|
// it under the terms of the GNU Affero General Public License as
|
2022-03-11 14:21:04 +01:00
|
|
|
// 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
|
2022-05-31 19:07:39 +02:00
|
|
|
// GNU Affero General Public License for more details.
|
2022-03-11 14:21:04 +01:00
|
|
|
//
|
2022-05-31 19:07:39 +02:00
|
|
|
// You should have received a copy of the GNU Affero General Public License
|
2022-03-11 14:21:04 +01:00
|
|
|
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
|
|
|
|
//
|
|
|
|
|
2022-03-14 17:59:22 +01:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2022-03-11 14:21:04 +01:00
|
|
|
|
2022-03-14 17:59:22 +01:00
|
|
|
namespace Wonky.Entity.DTO;
|
2022-03-11 14:21:04 +01:00
|
|
|
|
2022-03-14 17:59:22 +01:00
|
|
|
public class KrvVariantDto
|
2022-03-11 14:21:04 +01:00
|
|
|
{
|
2022-07-01 10:02:29 +02:00
|
|
|
/// <summary>
|
|
|
|
/// Variant entity id
|
|
|
|
/// </summary>
|
2022-04-18 11:02:03 +02:00
|
|
|
[Required] public string VariantId { get; set; } = "";
|
2022-07-01 10:02:29 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Vendor variant name
|
|
|
|
/// </summary>
|
2022-04-18 11:02:03 +02:00
|
|
|
[Required] public string Name { get; set; } = "";
|
2022-07-01 10:02:29 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Vendor variant SKU
|
|
|
|
/// </summary>
|
2022-04-18 11:02:03 +02:00
|
|
|
[Required] public string Sku { get; set; } = "";
|
2022-07-01 10:02:29 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// ERP variant SKU
|
|
|
|
/// </summary>
|
2022-04-18 11:02:03 +02:00
|
|
|
[Required] public string ErpSku { get; set; } = "";
|
2022-07-01 10:02:29 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// ERP variant name
|
|
|
|
/// </summary>
|
2022-04-18 11:02:03 +02:00
|
|
|
[Required] public string ErpName { get; set; } = "";
|
2022-07-01 10:02:29 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Variant short name
|
|
|
|
/// </summary>
|
2022-04-18 11:02:03 +02:00
|
|
|
[Required] public string ShortName { get; set; } = "";
|
2022-07-01 10:02:29 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Link to variant safety data sheet
|
|
|
|
/// </summary>
|
2022-04-18 11:02:03 +02:00
|
|
|
[Required] public string SdsLink { get; set; } = "";
|
2022-07-01 10:02:29 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Picture link
|
|
|
|
/// </summary>
|
2022-03-14 17:59:22 +01:00
|
|
|
public string PictureLink { get; set; } = "";
|
2022-03-11 14:21:04 +01:00
|
|
|
}
|