2023-03-04 12:14:21 +01:00
|
|
|
// 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]
|
|
|
|
//
|
|
|
|
|
2023-03-07 12:40:02 +01:00
|
|
|
|
2023-05-21 08:23:47 +02:00
|
|
|
using System.Collections.Generic;
|
2023-03-04 12:14:21 +01:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
namespace Wonky.Entity.DTO;
|
|
|
|
|
2023-04-02 14:39:23 +02:00
|
|
|
public class UserManagerCreateView
|
2023-03-04 12:14:21 +01:00
|
|
|
{
|
|
|
|
[MaxLength(128)] public string CompanyId { get; set; } = "";
|
|
|
|
[MaxLength(128)] public string ContactId { get; set; } = "";
|
2023-04-02 14:39:23 +02:00
|
|
|
|
|
|
|
[Required(ErrorMessage = "Landekode skal udfyldes")]
|
|
|
|
[MaxLength(2, ErrorMessage = "Landekode er 2 bogstaver")]
|
|
|
|
public string CountryCode { get; set; } = "";
|
|
|
|
|
|
|
|
[MaxLength(128, ErrorMessage = "Kort beskrivelse på højst 128 tegn.")]
|
|
|
|
public string Description { get; set; } = "";
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "Email adresse skal udfyldes")]
|
|
|
|
[MaxLength(255, ErrorMessage = "Der er afsat 255 tegn til email adressen")]
|
|
|
|
public string Email { get; set; } = "";
|
|
|
|
|
2023-03-04 12:14:21 +01:00
|
|
|
public bool EmailConfirmed { get; set; }
|
|
|
|
public bool EShop { get; set; }
|
2023-04-02 14:39:23 +02:00
|
|
|
|
|
|
|
[Required(ErrorMessage = "Fornavn skal udfyldes")]
|
|
|
|
[MaxLength(50, ErrorMessage = "Der er afsat 50 tegn til fornavn")]
|
|
|
|
public string FirstName { get; set; } = "";
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "Efternavn skal udfyldes")]
|
|
|
|
[MaxLength(50, ErrorMessage = "Der er afsat 50 tegn til efternavn")]
|
|
|
|
public string LastName { get; set; } = "";
|
|
|
|
|
2023-03-04 12:14:21 +01:00
|
|
|
public bool LockoutEnabled { get; set; }
|
|
|
|
public string Passwd { get; set; } = "";
|
2023-04-02 14:39:23 +02:00
|
|
|
|
|
|
|
[MaxLength(20, ErrorMessage = "Der er afsat 20 tegn til telefon nummber")]
|
|
|
|
public string PhoneNumber { get; set; } = "";
|
|
|
|
|
|
|
|
[MaxLength(20, ErrorMessage = "Der er afsat 20 tegn til medarbejder ID")]
|
|
|
|
public string SalesRep { get; set; } = "";
|
|
|
|
|
2023-03-04 12:14:21 +01:00
|
|
|
public string UserId { get; set; } = "";
|
2023-03-19 10:05:44 +01:00
|
|
|
public List<UserRoleAssignment> AssignedRoles { get; set; } = new();
|
2023-04-02 14:39:23 +02:00
|
|
|
public List<SubjectAssignment> AssignedMembers { get; set; } = new();
|
2023-03-04 12:14:21 +01:00
|
|
|
}
|