41 lines
No EOL
1.9 KiB
C#
41 lines
No EOL
1.9 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 Affero GNU 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
|
|
// Affero GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the Affero GNU General Public License
|
|
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
|
|
//
|
|
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Wonky.Entity.DTO;
|
|
|
|
public class CompanyDto
|
|
{
|
|
[Required(ErrorMessage = "Navn skal udyldes")] public string Name { get; set; } = "";
|
|
[Required(ErrorMessage = "Postnummer skal udfyldes")] public string ZipCode { get; set; } = "";
|
|
[Required(ErrorMessage = "Bynavn skal udfyldes")] public string City { get; set; } = "";
|
|
[Required(ErrorMessage = "CVR nummer skal udfyldes")] public string VatNumber { get; set; } = "";
|
|
|
|
public string CompanyId { get; set; } = "";
|
|
public string SalesRepId { get; set; } = "";
|
|
public string Address1 { get; set; } = "";
|
|
public string Address2 { get; set; } = "";
|
|
public string Account { get; set; } = "";
|
|
public string Phone { get; set; } = "";
|
|
public string Mobile { get; set; } = "";
|
|
public string Email { get; set; } = "";
|
|
public string Attention { get; set; } = "";
|
|
[JsonPropertyName("LastVisitTimestamp")] public DateTime LastVisitDate { get; set; }
|
|
[JsonPropertyName("NextVisitTimestamp")] public DateTime NextVisitDate { get; set; }
|
|
public int Interval { get; set; } = 12;
|
|
} |