...
This commit is contained in:
@@ -12,6 +12,8 @@ namespace Front
|
||||
public readonly HttpClientController _hc;
|
||||
private List<ForCustomerSearch>? Cus = null;
|
||||
private List<IdName<int>>? Patterns = null;
|
||||
private List<IdName<int>>? Patternsbyinp = null;
|
||||
private List<IdName<int>>? BillTypes = null;
|
||||
private List<IdName<int>>? Units = null;
|
||||
private List<CODIdName<int>>? Cods = null;
|
||||
private CompanyDTO? InfoCompany = null;
|
||||
@@ -68,6 +70,34 @@ namespace Front
|
||||
|
||||
return Patterns;
|
||||
}
|
||||
public async Task<List<IdName<int>>?> GetPatternsbyinp()
|
||||
{
|
||||
if (Patternsbyinp == null)
|
||||
{
|
||||
var request = await _hc.Get($"TaxPayer/GetPatterns");
|
||||
if (request.IsSuccessStatusCode)
|
||||
{
|
||||
Patternsbyinp = await request.Content.ReadFromJsonAsync<List<IdName<int>>>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return Patternsbyinp;
|
||||
}
|
||||
public async Task<List<IdName<int>>?> GetBillTypes()
|
||||
{
|
||||
if (BillTypes == null)
|
||||
{
|
||||
var request = await _hc.Get($"TaxPayer/GetBillTypes");
|
||||
if (request.IsSuccessStatusCode)
|
||||
{
|
||||
BillTypes = await request.Content.ReadFromJsonAsync<List<IdName<int>>>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return BillTypes;
|
||||
}
|
||||
public async Task<CompanyDTO?> GetInfoCompany()
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user