framework update

This commit is contained in:
Frede Hundewadt 2023-04-18 16:52:09 +02:00
parent 4357c2484a
commit 4014a0bd78
4 changed files with 20 additions and 10 deletions

View file

@ -0,0 +1,8 @@
namespace Wonky.Client.Enums;
public enum Segment
{
None,
Auto,
Industry
}

View file

@ -11,11 +11,11 @@
<PackageReference Include="Blazored.LocalStorage" Version="4.3.0" />
<PackageReference Include="Blazored.Toast" Version="4.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="6.0.15" />
<PackageReference Include="Microsoft.AspNetCore.Components" Version="6.0.15" />
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="6.0.15" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.15" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.15" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="6.0.16" />
<PackageReference Include="Microsoft.AspNetCore.Components" Version="6.0.16" />
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="6.0.16" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.16" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.16" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />

View file

@ -60,11 +60,6 @@ public class CompanyDto
[Required(ErrorMessage = "Bynavn skal udfyldes")]
[MaxLength(30, ErrorMessage = "Du kan højst bruge 30 tegn")]
public string City { get; set; } = "";
/// <summary>
/// Customer Group
/// </summary>
public string Segment { get; set; } = "";
/// <summary>
/// Company Id
@ -161,6 +156,11 @@ public class CompanyDto
/// </summary>
public string SalesRepId { get; set; } = "";
/// <summary>
/// Customer Segment
/// </summary>
public string Segment { get; set; } = "";
/// <summary>
/// Value indicating the VAT number is valid
/// </summary>

View file

@ -24,9 +24,11 @@ public class UpdateErpDto
[MaxLength(50)] public string Address2 { get; set; } = "";
[MaxLength(100)] public string Attention { get; set; } = "";
[MaxLength(30)] public string City { get; set; } = "";
[MaxLength(30)] public string EanNumber { get; set; } = "";
[MaxLength(80)] public string Email { get; set; } = "";
[MaxLength(30)] public string Mobile { get; set; } = "";
[MaxLength(100)] public string Name { get; set; } = "";
[MaxLength(30)] public string Phone { get; set; } = "";
[MaxLength(30)] public string Segment { get; set; } = "";
[MaxLength(20)] public string ZipCode { get; set; } = "";
}