Wonky.Client/Wonky.Entity/DTO/ManagerNewUserDto.cs
Frede Hundewadt 2d9ee3c9ce FEAT: add statistic page, add history filter class
REN: drawer cabinet service -> cabinet drawer service
FIX: page size component - prefix function call
WIP: create user with web shop permission - attach to company
FEAT: add workaround for Swedish moms numbers - new api call
FIX: advisor create activity page
FIX: advisor customer CRM data edit and reload
FEAT: add button to statistic on customer view page
FIX: advisor customer create - set correct segment for no and se
2023-06-09 13:38:36 +02:00

59 lines
No EOL
2.3 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 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]
//
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Wonky.Entity.DTO;
public class ManagerNewUserDto
{
[MaxLength(128)] public string CompanyId { get; set; } = "";
[Required(ErrorMessage = "Land skal angives")]
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; } = "";
public bool EmailConfirmed { get; set; }
public bool EShop { get; set; }
[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; } = "";
public bool LockoutEnabled { get; set; }
public string Passwd { get; set; } = "";
[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; } = "";
public string UserId { get; set; } = "";
public List<UserRoleAssignment> AssignedRoles { get; set; } = new();
public List<SubjectAssignment> AssignedMembers { get; set; } = new();
}