|
|
|
@ -32,15 +32,15 @@ namespace Aucma.Core.Palletiz.ViewModels
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 加载DataGrid数据
|
|
|
|
|
private async void LoadData()
|
|
|
|
|
private async Task LoadData()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
//Task.Run(() =>
|
|
|
|
|
//{
|
|
|
|
|
await Task.Run(() =>
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
List<RecordInStore> list = await _recordInstoreServices.QueryAsync(x => (x.StoreCode == storeCodeA || x.StoreCode == storeCodeB) && x.InStoreTime >= DateTime.Today);
|
|
|
|
|
List<RecordInStore> list = _recordInstoreServices.QueryAsync(x => (x.StoreCode == storeCodeA || x.StoreCode == storeCodeB) && x.InStoreTime >= DateTime.Today).Result;
|
|
|
|
|
if (list != null && list.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
list.OrderByDescending(x => x.InStoreTime);
|
|
|
|
@ -58,7 +58,7 @@ namespace Aucma.Core.Palletiz.ViewModels
|
|
|
|
|
Console.WriteLine("" + ex.Message.ToString());
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// });
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//MaterialDataGrid.Add(new MaterialComplateInfo() { No = 1, ProductPlanCode = "8659452123",MaterialCode = "8659452123", MaterialName = "SC-AUCMA-农夫山泉,SC", PlanAmount = 50, CompleteAmount = 10 });
|
|
|
|
@ -84,8 +84,10 @@ namespace Aucma.Core.Palletiz.ViewModels
|
|
|
|
|
/// 查询
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RelayCommand]
|
|
|
|
|
private void ExecQuery(object obj)
|
|
|
|
|
private async Task ExecQuery(object obj)
|
|
|
|
|
{
|
|
|
|
|
await Task.Run(() =>
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
string result = (string)obj;
|
|
|
|
|
List<RecordInStore> list = _recordInstoreServices.QueryAsync(x => (x.StoreCode == storeCodeA || x.StoreCode == storeCodeB) && x.BarCodeCode.Contains(result)).Result;
|
|
|
|
@ -100,11 +102,7 @@ namespace Aucma.Core.Palletiz.ViewModels
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|