2023-03-07 12:40:02 +01:00
|
|
|
|
// Copyright (C) 2022 FCS Frede's Computer Services.
|
2022-03-11 14:21:04 +01:00
|
|
|
|
// 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]
|
|
|
|
|
//
|
|
|
|
|
|
2023-03-07 12:40:02 +01:00
|
|
|
|
|
2023-05-21 08:23:47 +02:00
|
|
|
|
using System.Collections.Generic;
|
2022-03-11 14:21:04 +01:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
2022-09-06 12:28:44 +02:00
|
|
|
|
namespace Wonky.Entity.DTO;
|
|
|
|
|
|
2023-03-19 10:05:44 +01:00
|
|
|
|
public class ActivityDto
|
2022-03-11 14:21:04 +01:00
|
|
|
|
{
|
2022-09-28 12:35:26 +02:00
|
|
|
|
public string SalesHeadId { get; set; } = "";
|
2023-05-24 18:57:07 +02:00
|
|
|
|
|
|
|
|
|
[Required]
|
2023-04-06 13:22:02 +02:00
|
|
|
|
public string SalesRep { get; set; } = "";
|
2023-05-24 18:57:07 +02:00
|
|
|
|
|
|
|
|
|
[Required]
|
2023-04-06 13:22:02 +02:00
|
|
|
|
public string SalesRepId { get; set; } = "";
|
2023-05-24 18:57:07 +02:00
|
|
|
|
|
2023-04-06 13:22:02 +02:00
|
|
|
|
[Required]
|
|
|
|
|
public string CountryCode { get; set; } = "";
|
2023-05-24 18:57:07 +02:00
|
|
|
|
|
2023-04-06 13:22:02 +02:00
|
|
|
|
[Required]
|
|
|
|
|
public string CompanyId { get; set; } = "";
|
2023-05-24 18:57:07 +02:00
|
|
|
|
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string BcId { get; set; } = "";
|
2023-05-24 18:57:07 +02:00
|
|
|
|
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string Account { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(20, ErrorMessage = "Du kan højst bruge 20 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string VatNumber { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
2022-09-06 12:28:44 +02:00
|
|
|
|
[Required(ErrorMessage = "Navn skal udfyldes")]
|
2023-04-06 13:22:02 +02:00
|
|
|
|
[MaxLength(100, ErrorMessage = "Du kan højst bruge 100 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string Name { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
2023-11-08 19:03:22 +01:00
|
|
|
|
[Required(ErrorMessage = "Bynavn skal udfyldes")]
|
2023-04-06 13:22:02 +02:00
|
|
|
|
[MaxLength(30, ErrorMessage = "Du kan højst bruge 30 tegn")]
|
|
|
|
|
public string City { get; set; } = "";
|
|
|
|
|
|
2022-09-06 12:28:44 +02:00
|
|
|
|
[Required(ErrorMessage = "Postnr. skal udfyldes")]
|
2023-04-06 13:22:02 +02:00
|
|
|
|
[MaxLength(20, ErrorMessage = "Du kan højst bruge 20 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string ZipCode { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(100, ErrorMessage = "Du kan højst bruge 100 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string Address1 { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(50, ErrorMessage = "Du kan højst bruge 50 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string Address2 { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(20, ErrorMessage = "Du kan højst bruge 20 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string Phone { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(20, ErrorMessage = "Du kan højst bruge 20 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string Mobile { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(80, ErrorMessage = "Du kan højst bruge 80 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string Email { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(100, ErrorMessage = "Du kan højst bruge 100 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string Attention { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public bool Express { get; set; }
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "Vælg status for besøg ")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string ActivityStatusEnum { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "Vælg aktivitetstype")]
|
|
|
|
|
public string ActivityTypeEnum { get; set; } = "";
|
|
|
|
|
|
|
|
|
|
public string ActivityVisitEnum { get; set; } = "recall";
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "Dato skal angives")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string ActivityDate { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(50, ErrorMessage = "Du kan højst bruge 50 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string Demo { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(20, ErrorMessage = "Du kan højst bruge 20 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string OurRef { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(20, ErrorMessage = "Du kan højst bruge 20 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string ReferenceNumber { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(35, ErrorMessage = "Du kan højst bruge 35 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string YourRef { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(255, ErrorMessage = "Du kan højst bruge 255 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string OrderMessage { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(255, ErrorMessage = "Du kan højst bruge 255 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string CrmNote { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(100, ErrorMessage = "Du kan højst bruge 100 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string DlvName { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(100, ErrorMessage = "Du kan højst bruge 100 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string DlvAddress1 { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(50, ErrorMessage = "Du kan højst bruge 50 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string DlvAddress2 { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(20, ErrorMessage = "Du kan højst bruge 20 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string DlvZipCode { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
[MaxLength(30, ErrorMessage = "Du kan højst bruge 30 tegn")]
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public string DlvCity { get; set; } = "";
|
2023-04-06 13:22:02 +02:00
|
|
|
|
|
2023-05-24 18:57:07 +02:00
|
|
|
|
public string EanNumber { get; set; } = "";
|
|
|
|
|
|
|
|
|
|
public string Segment { get; set; } = "";
|
|
|
|
|
|
2022-09-06 12:28:44 +02:00
|
|
|
|
public List<ActivityLineDto> Lines { get; set; } = new();
|
|
|
|
|
}
|