uncommented stock blocks
This commit is contained in:
parent
177ee7d57f
commit
11c2e86888
|
|
@ -187,22 +187,22 @@ public class MobileMasterDataService : IMobileMasterDataService
|
||||||
PagedResult<GetMaterialStockReponse> response = new();
|
PagedResult<GetMaterialStockReponse> response = new();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
//var httpStockResponse = await _httpService.GetMaterialStockAsync(request.PlantCode);
|
var httpStockResponse = await _httpService.GetMaterialStockAsync(request.PlantCode);
|
||||||
|
|
||||||
//response.Items = httpStockResponse.Select(p => new GetMaterialStockReponse
|
response.Items = httpStockResponse.Select(p => new GetMaterialStockReponse
|
||||||
//{
|
|
||||||
// MaterialCode = p.MaterialCode,
|
|
||||||
// PlantCode = p.PlantCode,
|
|
||||||
// AvailableStock = p.AvailableStock,
|
|
||||||
//}).ToList();
|
|
||||||
|
|
||||||
var materialResponse = await GetMaterialsAsync(new GetMaterialsRequest());
|
|
||||||
|
|
||||||
foreach (var item in materialResponse.Items)
|
|
||||||
{
|
{
|
||||||
response.Items.Add(
|
MaterialCode = p.MaterialCode,
|
||||||
new GetMaterialStockReponse() { PlantCode = request.PlantCode, MaterialCode = item.MaterialCode, AvailableStock = Random.Shared.Next(5, 500) });
|
PlantCode = p.PlantCode,
|
||||||
}
|
AvailableStock = p.AvailableStock,
|
||||||
|
}).ToList();
|
||||||
|
|
||||||
|
//var materialResponse = await GetMaterialsAsync(new GetMaterialsRequest());
|
||||||
|
|
||||||
|
//foreach (var item in materialResponse.Items)
|
||||||
|
//{
|
||||||
|
// response.Items.Add(
|
||||||
|
// new GetMaterialStockReponse() { PlantCode = request.PlantCode, MaterialCode = item.MaterialCode, AvailableStock = Random.Shared.Next(5, 500) });
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user