Wonky.Client/Wonky.Entity/DTO/ActivityDto.cs

56 lines
3.8 KiB
C#
Raw Normal View History

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]
//
using System.ComponentModel.DataAnnotations;
2022-04-18 11:02:03 +02:00
namespace Wonky.Entity.DTO
2022-03-11 14:21:04 +01:00
{
2022-05-31 19:07:39 +02:00
public class ActivityDto
2022-03-11 14:21:04 +01:00
{
2022-04-18 11:02:03 +02:00
public string SalesHeadId { get; set; } = "";
public string CompanyId { get; set; } = "";
2022-04-30 10:06:59 +02:00
public string Account { get; set; } = "";
[MaxLength(20, ErrorMessage = "Du kan højst bruge 20 tegn")] public string VatNumber { get; set; } = "";
2022-04-13 18:18:01 +02:00
[MaxLength(100, ErrorMessage = "Du kan højst bruge 100 tegn")] public string Name { get; set; } = "";
[MaxLength(30, ErrorMessage = "Du kan højst bruge 30 tegn")] public string City { get; set; }= "";
[MaxLength(20, ErrorMessage = "Du kan højst bruge 20 tegn")] public string ZipCode { get; set; } = "";
[MaxLength(100, ErrorMessage = "Du kan højst bruge 100 tegn")] public string Address { get; set; } = "";
[MaxLength(50, ErrorMessage = "Du kan højst bruge 50 tegn")] public string Address2 { get; set; } = "";
[MaxLength(20, ErrorMessage = "Du kan højst bruge 20 tegn")] public string Phone { get; set; } = "";
[MaxLength(80, ErrorMessage = "Du kan højst bruge 80 tegn")] public string EMail { get; set; } = "";
2022-04-30 10:06:59 +02:00
[MaxLength(100, ErrorMessage = "Du kan højst bruge 100 tegn")] public string Attention { get; set; } = "";
2022-03-11 14:21:04 +01:00
// Form entries
2022-04-30 10:06:59 +02:00
public string SalesRep { get; set; } = "";
2022-05-07 08:46:18 +02:00
[Required(ErrorMessage = "Vælg aktivitetstype")] public string ActivityTypeEnum { get; set; } = "";
[Required(ErrorMessage = "Vælg status for besøg ")] public string ActivityStatusEnum { get; set; } = "";
2022-04-13 15:16:35 +02:00
public bool CheckDate { get; set; }
2022-05-16 10:34:27 +02:00
[Required] public string ActivityDate { get; set; } = "";
2022-04-13 18:18:01 +02:00
[MaxLength(50, ErrorMessage = "Du kan højst bruge 50 tegn")] public string Demo { get; set; } = "";
2022-04-30 10:06:59 +02:00
[MaxLength(20, ErrorMessage = "Du kan højst bruge 20 tegn")] public string OurRef { get; set; } = "";
2022-04-13 18:18:01 +02:00
[MaxLength(20, ErrorMessage = "Du kan højst bruge 20 tegn")] public string ReferenceNumber { get; set; } = "";
[MaxLength(35, ErrorMessage = "Du kan højst bruge 35 tegn")] public string YourRef { get; set; } = "";
2022-03-11 14:21:04 +01:00
[MaxLength(255, ErrorMessage = "Du kan højst bruge 255 tegn")] public string OrderMessage { get; set; } = "";
2022-04-13 18:18:01 +02:00
[MaxLength(255, ErrorMessage = "Du kan højst bruge 255 tegn")] public string CrmNote { get; set; } = "";
2022-04-13 15:16:35 +02:00
// Delivery address form entries
2022-04-13 18:18:01 +02:00
[MaxLength(100, ErrorMessage = "Du kan højst bruge 100 tegn")] public string DlvName { get; set; } = "";
2022-05-15 18:27:54 +02:00
[MaxLength(100, ErrorMessage = "Du kan højst bruge 100 tegn")] public string DlvAddress { get; set; } = "";
2022-04-13 18:18:01 +02:00
[MaxLength(50, ErrorMessage = "Du kan højst bruge 50 tegn")] public string DlvAddress2 { get; set; } = "";
[MaxLength(20, ErrorMessage = "Du kan højst bruge 20 tegn")] public string DlvZipCode { get; set; } = "";
[MaxLength(30, ErrorMessage = "Du kan højst bruge 30 tegn")] public string DlvCity { get; set; } = "";
2022-04-11 11:19:05 +02:00
// Lines
2022-05-31 19:07:39 +02:00
public List<ActivityLineDto> Lines { get; set; } = new();
2022-03-11 14:21:04 +01:00
}
}