|
|
|
@ -35,26 +35,25 @@ namespace Aucma.Core.BoxFoam.ViewModels
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
var storeCode = Appsettings.app("StoreInfo", "StoreCode");
|
|
|
|
|
MaterialDataGrid.Clear();
|
|
|
|
|
var storeCode = Appsettings.app("StoreInfo", "BeforeStoreCode");
|
|
|
|
|
DateTime startTime = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
|
|
|
|
|
DateTime endTime = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
|
|
|
|
|
var list = await _recordInstoreServices.SaveRecordToDb(storeCode, startTime, endTime);
|
|
|
|
|
foreach (var item in list.OrderByDescending(d => d.No))
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
MaterialDataGrid.Add(new EnterLibView()
|
|
|
|
|
{
|
|
|
|
|
No = item.No,
|
|
|
|
|
PlanCode = item.PlanCode,
|
|
|
|
|
MaterialBarCode= item.MaterialBarCode,
|
|
|
|
|
MaterialCode = item.MaterialCode,
|
|
|
|
|
MaterialName = item.MaterialName,
|
|
|
|
|
EnterSpace = item.EnterSpace,
|
|
|
|
|
ExecDateTime = item.ExecDateTime,
|
|
|
|
|
Status = item.Status,
|
|
|
|
|
|
|
|
|
|
var list = await _recordInstoreServices.queryRecordToDb(storeCode, startTime, endTime);
|
|
|
|
|
if (list == null) return;
|
|
|
|
|
int count = 0;
|
|
|
|
|
foreach (var item in list)
|
|
|
|
|
{
|
|
|
|
|
MaterialDataGrid.Add(new EnterLibView
|
|
|
|
|
{
|
|
|
|
|
No = ++count,
|
|
|
|
|
SpaceCode = item.SpaceCode,
|
|
|
|
|
MaterialBarCode = item.BarCodeCode,
|
|
|
|
|
MaterialType = item.MaterialType,
|
|
|
|
|
InstoreTime = item.InStoreTime,
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
@ -117,21 +116,18 @@ namespace Aucma.Core.BoxFoam.ViewModels
|
|
|
|
|
if (!string.IsNullOrEmpty(result.BeginTime))
|
|
|
|
|
{
|
|
|
|
|
MaterialDataGrid.Clear();
|
|
|
|
|
var list = await _recordInstoreServices.SaveRecordToDb(storeCode, startTime, endTime);
|
|
|
|
|
if (list==null) return;
|
|
|
|
|
foreach (var item in list.OrderByDescending(d => d.No))
|
|
|
|
|
{
|
|
|
|
|
MaterialDataGrid.Add(new EnterLibView()
|
|
|
|
|
{
|
|
|
|
|
No = item.No,
|
|
|
|
|
PlanCode = item.PlanCode,
|
|
|
|
|
MaterialBarCode = item.MaterialBarCode,
|
|
|
|
|
MaterialCode = item.MaterialCode,
|
|
|
|
|
MaterialName = item.MaterialName,
|
|
|
|
|
EnterSpace = item.EnterSpace,
|
|
|
|
|
ExecDateTime = item.ExecDateTime,
|
|
|
|
|
Status = item.Status,
|
|
|
|
|
|
|
|
|
|
var list = await _recordInstoreServices.queryRecordToDb(storeCode, startTime, endTime);
|
|
|
|
|
if (list == null) return;
|
|
|
|
|
int count = 0;
|
|
|
|
|
foreach (var item in list)
|
|
|
|
|
{
|
|
|
|
|
MaterialDataGrid.Add(new EnterLibView
|
|
|
|
|
{
|
|
|
|
|
No = ++count,
|
|
|
|
|
SpaceCode = item.SpaceCode,
|
|
|
|
|
MaterialBarCode = item.BarCodeCode,
|
|
|
|
|
MaterialType = item.MaterialType,
|
|
|
|
|
InstoreTime = item.InStoreTime,
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|