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> <ItemGroup>
<Reference Include="Service"> <Reference Include="Service">
<HintPath>..\..\Dlls\Service.dll</HintPath> <HintPath>..\..\..\LocalGit\TaxPayerTools\Service\bin\Debug\Service.dll</HintPath>
</Reference> </Reference>
</ItemGroup> </ItemGroup>

View File

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

View File

@@ -14,11 +14,25 @@ namespace Shared.DTOs
[Display(Name = "نام کامل")] [Display(Name = "نام کامل")]
public string FullName { get; set; } public string FullName { get; set; }
[Display(Name = "نوع مشتری")] [Display(Name = "نوع مشتری")]
public string CustomerType { get; set; } public string CustomerTypeTitle { get; set; }
[Display(Name = "تلفن")] [Display(Name = "تلفن")]
public string Phone { get; set; } public string Phone { get; set; }
[Display(Name = "پست الکترونیک")]
public string? Email { get; set; }
[Display(Name = "آدرس")]
public string? Address { get; set; }
[Display(Name = "کد اقتصادی")] [Display(Name = "کد اقتصادی")]
public string? EconomicCode { get; set; } 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"); CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("fa-Ir");