This commit is contained in:
mmrbnjd
2024-05-06 17:13:12 +03:30
parent 9511457704
commit c3ca68e404
4 changed files with 33 additions and 17 deletions

View File

@@ -34,7 +34,7 @@
<ItemGroup>
<Reference Include="Service">
<HintPath>..\..\Dlls\Service.dll</HintPath>
<HintPath>..\..\..\LocalGit\TaxPayerTools\Service\bin\Debug\Service.dll</HintPath>
</Reference>
</ItemGroup>

View File

@@ -44,18 +44,20 @@ namespace Back.Services
//-----------------------
return await invok.Select(s=>new RCustomer()
{
// Address = s.Address,
CustomerType = s.CustomerType.GetEnumDisplayName(),
Address = s.Address,
CustomerTypeTitle = s.CustomerType.GetEnumDisplayName(),
EconomicCode = s.EconomicCode,
// Email =s.Email,
Email = s.Email,
FullName = s.FullName,
ID = s.ID,
// Info = s.Info,
Info = s.Info,
Phone =s.Phone,
// BranchID = s.BranchID,
// MeliCode = s.MeliCode,
// ZipCode = s.ZipCode ,
// PassportNumber=s.PassportNumber,
BranchID = s.BranchID,
MeliCode = s.MeliCode,
ZipCode = s.ZipCode,
PassportNumber = s.PassportNumber,
CustomerType= s.CustomerType
// CompanyID=s.CompanyID
})
.Paging(itemSerch.PageIndex, itemSerch.PageSize);

View File

@@ -14,11 +14,25 @@ namespace Shared.DTOs
[Display(Name = "نام کامل")]
public string FullName { get; set; }
[Display(Name = "نوع مشتری")]
public string CustomerType { get; set; }
public string CustomerTypeTitle { get; set; }
[Display(Name = "تلفن")]
public string Phone { get; set; }
[Display(Name = "پست الکترونیک")]
public string? Email { get; set; }
[Display(Name = "آدرس")]
public string? Address { get; set; }
[Display(Name = "کد اقتصادی")]
public string? EconomicCode { get; set; }
[Display(Name = "کد شعبه")]
public string? BranchID { get; set; }
[Display(Name = "توضیحات")]
public string? Info { get; set; }
//------------
public CustomerType CustomerType { get; set; }
public string? ZipCode { get; set; }
public string? MeliCode { get; set; }
public string? PassportNumber { get; set; }
}
}

View File

@@ -33,9 +33,9 @@ builder.Services.AddScoped(sp => new UserAuthenticationDTO()
}) ;
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:7075/api/") });
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:7075/api/") });
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5271/api/") });
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5271/api/") });
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("fa-Ir");