|
@ -240,13 +240,13 @@ public class StockMoveService : ApplicationService, IStockMoveService |
|
|
|
|
|
|
|
|
if (_SSDto.BillType == "902")//从WMS移库到AGV
|
|
|
if (_SSDto.BillType == "902")//从WMS移库到AGV
|
|
|
{ |
|
|
{ |
|
|
tbStockMove.FromLocCode = wmsloc; |
|
|
tbStockMove.FromLocCode = part.DefaultReceiveLocCode;//wmsloc;
|
|
|
tbStockMove.ToLocCode = agvloc; |
|
|
tbStockMove.ToLocCode = part.DefaultReceiveLocCode;//agvloc;
|
|
|
} |
|
|
} |
|
|
else if (_SSDto.BillType == "903") |
|
|
else if (_SSDto.BillType == "903") |
|
|
{ |
|
|
{ |
|
|
tbStockMove.FromLocCode = agvloc; |
|
|
tbStockMove.FromLocCode = part.DefaultReceiveLocCode;//agvloc;
|
|
|
tbStockMove.ToLocCode = wmsloc; |
|
|
tbStockMove.ToLocCode = part.DefaultReceiveLocCode;//wmsloc;
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
_stockMoveList.Add(tbStockMove); |
|
|
_stockMoveList.Add(tbStockMove); |
|
@ -286,7 +286,7 @@ public class StockMoveService : ApplicationService, IStockMoveService |
|
|
if (_SSDto.BillType == "902")//AGV库位增加库存,WMS库位减少库存
|
|
|
if (_SSDto.BillType == "902")//AGV库位增加库存,WMS库位减少库存
|
|
|
{ |
|
|
{ |
|
|
#region 出库
|
|
|
#region 出库
|
|
|
tsStock.LocCode = wmsloc; |
|
|
tsStock.LocCode = part.DefaultReceiveLocCode;//wmsloc;
|
|
|
if (stockwms == null || stockwms.Qty - item.Qty < 0) |
|
|
if (stockwms == null || stockwms.Qty - item.Qty < 0) |
|
|
{ |
|
|
{ |
|
|
bErr = true; |
|
|
bErr = true; |
|
@ -323,7 +323,7 @@ public class StockMoveService : ApplicationService, IStockMoveService |
|
|
else//WMS库位增加库存
|
|
|
else//WMS库位增加库存
|
|
|
{ |
|
|
{ |
|
|
#region 出库
|
|
|
#region 出库
|
|
|
tsStock.LocCode = agvloc; |
|
|
tsStock.LocCode = part.DefaultReceiveLocCode;//agvloc;
|
|
|
if (stockagv == null || stockagv.Qty - item.Qty < 0) |
|
|
if (stockagv == null || stockagv.Qty - item.Qty < 0) |
|
|
{ |
|
|
{ |
|
|
bErr = true; |
|
|
bErr = true; |
|
@ -372,7 +372,7 @@ public class StockMoveService : ApplicationService, IStockMoveService |
|
|
Batch = item.Batch, |
|
|
Batch = item.Batch, |
|
|
Qty = item.Qty, |
|
|
Qty = item.Qty, |
|
|
BarCode = _barcode, |
|
|
BarCode = _barcode, |
|
|
LocCode = agvloc, |
|
|
LocCode = part.DefaultReceiveLocCode,//agvloc,
|
|
|
EqptCode = "", |
|
|
EqptCode = "", |
|
|
Remark = "In", |
|
|
Remark = "In", |
|
|
State = 2, |
|
|
State = 2, |
|
@ -389,7 +389,7 @@ public class StockMoveService : ApplicationService, IStockMoveService |
|
|
Batch = item.Batch, |
|
|
Batch = item.Batch, |
|
|
Qty = 0 - item.Qty, |
|
|
Qty = 0 - item.Qty, |
|
|
BarCode = _barcode, |
|
|
BarCode = _barcode, |
|
|
LocCode = wmsloc, |
|
|
LocCode = part.DefaultReceiveLocCode,//wmsloc,
|
|
|
EqptCode = "", |
|
|
EqptCode = "", |
|
|
Remark = "Out", |
|
|
Remark = "Out", |
|
|
State = 2, |
|
|
State = 2, |
|
@ -411,7 +411,7 @@ public class StockMoveService : ApplicationService, IStockMoveService |
|
|
Batch = item.Batch, |
|
|
Batch = item.Batch, |
|
|
Qty = item.Qty, |
|
|
Qty = item.Qty, |
|
|
BarCode = _barcode, |
|
|
BarCode = _barcode, |
|
|
LocCode = wmsloc, |
|
|
LocCode = part.DefaultReceiveLocCode,//wmsloc,
|
|
|
EqptCode = "", |
|
|
EqptCode = "", |
|
|
Remark = "In", |
|
|
Remark = "In", |
|
|
State = 2, |
|
|
State = 2, |
|
@ -428,7 +428,7 @@ public class StockMoveService : ApplicationService, IStockMoveService |
|
|
Batch = item.Batch, |
|
|
Batch = item.Batch, |
|
|
Qty = 0 - item.Qty, |
|
|
Qty = 0 - item.Qty, |
|
|
BarCode = _barcode, |
|
|
BarCode = _barcode, |
|
|
LocCode = agvloc, |
|
|
LocCode = part.DefaultReceiveLocCode,//agvloc,
|
|
|
EqptCode = "", |
|
|
EqptCode = "", |
|
|
Remark = "Out", |
|
|
Remark = "Out", |
|
|
State = 2, |
|
|
State = 2, |
|
|