调整仓库类型
This commit is contained in:
@@ -107,8 +107,8 @@ namespace WMS.Web.Repositories
|
||||
{
|
||||
#region dto组装
|
||||
Box = s.box.BoxBillNo,
|
||||
SrcSubStock = _singleDataService.GetSingleData(SingleAction.SubStocks, _loginRepositories.CompanyId, s.moveBox.SrcSubStockId),
|
||||
DestSubStock = _singleDataService.GetSingleData(SingleAction.SubStocks, _loginRepositories.CompanyId, s.moveBox.DestSubStockId),
|
||||
SrcSubStock = _singleDataService.GetSingleData(SingleAction.SubStocks, _loginRepositories.CompanyId, s.moveBox.SrcSubStockCode),
|
||||
DestSubStock = _singleDataService.GetSingleData(SingleAction.SubStocks, _loginRepositories.CompanyId, s.moveBox.DestSubStockCode),
|
||||
Qty = s.moveBox.Qty,
|
||||
Type = s.moveBox.Type.GetRemark(),
|
||||
Creator = _singleDataService.GetSingleData(SingleAction.Staffs, _loginRepositories.CompanyId, s.moveBox.CreatorId),
|
||||
|
||||
@@ -142,8 +142,8 @@ namespace WMS.Web.Repositories
|
||||
query = query.Where(w => w.order.SuccessSync == dto.SuccessSync);
|
||||
if (dto.DeliveryOrgId != null)
|
||||
query = query.Where(w => w.order.DeliveryOrgId == dto.DeliveryOrgId);
|
||||
if (dto.StockId != null)
|
||||
query = query.Where(w => w.detail.StockId == dto.StockId);
|
||||
if (!string.IsNullOrEmpty(dto.StockCode))
|
||||
query = query.Where(w => w.detail.StockCode == dto.StockCode);
|
||||
if (dto.CreateBeginDate != null)
|
||||
query = query.Where(w => w.order.CreateTime >= dto.CreateBeginDate);
|
||||
if (dto.CreateEndDate != null)
|
||||
@@ -159,7 +159,7 @@ namespace WMS.Web.Repositories
|
||||
Creator = _singleDataService.GetSingleData(SingleAction.Staffs, _loginRepositories.CompanyId, s.order.CreatorId),
|
||||
CreateTime = s.order.CreateTime.DateToStringSeconds(),
|
||||
SuccessSync = s.order.SuccessSync,
|
||||
Stock = _singleDataService.GetSingleData(SingleAction.Stocks, _loginRepositories.CompanyId, s.detail.StockId),
|
||||
Stock = _singleDataService.GetSingleData(SingleAction.Stocks, _loginRepositories.CompanyId, s.detail.StockCode),
|
||||
SourceBillNo = s.order.SourceBillNo,
|
||||
SaleBillNo = s.detail.SaleBillNo,
|
||||
DeliveryOrg = _erpBasicDataExtendService.GetOrgName(orgs, s.order.DeliveryOrgId),
|
||||
|
||||
@@ -268,8 +268,8 @@ namespace WMS.Web.Repositories
|
||||
query = query.Where(w => w.order.Status == (OutStockStatus)dto.Status);
|
||||
if (dto.DeliveryOrgId != null)
|
||||
query = query.Where(w => w.order.DeliveryOrgId == dto.DeliveryOrgId);
|
||||
if (dto.StockId != null)
|
||||
query = query.Where(w => w.detail.StockId == dto.StockId);
|
||||
if (!string.IsNullOrEmpty(dto.StockCode))
|
||||
query = query.Where(w => w.detail.StockCode == dto.StockCode);
|
||||
if (dto.CreateBeginDate != null)
|
||||
query = query.Where(w => w.order.OperateTime >= dto.CreateBeginDate);
|
||||
if (dto.CreateEndDate != null)
|
||||
@@ -287,7 +287,7 @@ namespace WMS.Web.Repositories
|
||||
CreateTime = s.order.OperateTime.DateToStringSeconds(),
|
||||
OutStockBeginTime = s.detail.OutStockBeginTime.DateToStringSeconds(),
|
||||
OutStockEndTime = s.detail.OutStockEndTime.DateToStringSeconds(),
|
||||
Stock = _singleDataService.GetSingleData(SingleAction.Stocks, _loginRepositories.CompanyId, s.detail.StockId),
|
||||
Stock = _singleDataService.GetSingleData(SingleAction.Stocks, _loginRepositories.CompanyId, s.detail.StockCode),
|
||||
SourceBillNo = s.order.SourceBillNo,
|
||||
SaleBillNo = s.detail.SaleBillNo,
|
||||
DeliveryOrg = _erpBasicDataExtendService.GetOrgName(orgs, s.order.DeliveryOrgId),
|
||||
|
||||
@@ -177,8 +177,8 @@ namespace WMS.Web.Repositories
|
||||
query = query.Where(w => w.ResultType == (TakeStockType)dto.ResultType);
|
||||
if (!string.IsNullOrEmpty(dto.BillNo))
|
||||
query = query.Where(w => EF.Functions.Like(w.BillNo, "%" + dto.BillNo + "%"));
|
||||
if (dto.StockId != null)
|
||||
query = query.Where(w => w.StockId == dto.StockId);
|
||||
if (!string.IsNullOrEmpty(dto.StockCode))
|
||||
query = query.Where(w => w.StockCode == dto.StockCode);
|
||||
if (dto.DateBeginDate != null)
|
||||
query = query.Where(w => w.Date >= dto.DateBeginDate);
|
||||
if (dto.DateEndDate != null)
|
||||
@@ -191,8 +191,8 @@ namespace WMS.Web.Repositories
|
||||
Id = s.Id,
|
||||
BillNo = s.BillNo,
|
||||
Unit = _erpBasicDataExtendService.GetMaterialUnitName(materials, s.MaterialId),
|
||||
Stock = _singleDataService.GetSingleData(SingleAction.Stocks, _loginRepositories.CompanyId, s.StockId),
|
||||
SubStock = _singleDataService.GetSingleData(SingleAction.SubStocks, _loginRepositories.CompanyId, s.SubStockId),
|
||||
Stock = _singleDataService.GetSingleData(SingleAction.Stocks, _loginRepositories.CompanyId, s.StockCode),
|
||||
SubStock = _singleDataService.GetSingleData(SingleAction.SubStocks, _loginRepositories.CompanyId, s.SubStockCode),
|
||||
BeforeQty = s.BeforeQty,
|
||||
AfterQty = s.AfterQty,
|
||||
FinalQty = s.FinalQty,
|
||||
|
||||
Reference in New Issue
Block a user