Browse Source

成品自动入库108库入库默认统一储位108-108-GJ

master
yangtm 5 months ago
parent
commit
a93f223d3b
  1. 4
      ICSSoft.FromERP/ICSSoft.FromERP/ICSWareHouseLotInfoDoc.cs

4
ICSSoft.FromERP/ICSSoft.FromERP/ICSWareHouseLotInfoDoc.cs

@ -69,6 +69,10 @@ namespace ICSSoft.FromERP
string sequence = data.Sequence; string sequence = data.Sequence;
var warehouse = db.ICSWarehouse.SingleOrDefault(e => e.WarehouseCode == data.WHCode && e.WorkPoint == data.WorkPoint); var warehouse = db.ICSWarehouse.SingleOrDefault(e => e.WarehouseCode == data.WHCode && e.WorkPoint == data.WorkPoint);
string location = db.ICSLocation.Where(e => e.WHID == warehouse.ID && e.WorkPoint == workPoint).FirstOrDefault()?.LocationCode; string location = db.ICSLocation.Where(e => e.WHID == warehouse.ID && e.WorkPoint == workPoint).FirstOrDefault()?.LocationCode;
if (data.WHCode=="108")
{
location = "108-108-GJ";
}
log.Info(location); log.Info(location);
string sql = $@"EXEC Addins_GetSerialCode '{workPoint}','ICSInventoryLot','LotNO','KCP{rcvCode}{sequence}',5;"; string sql = $@"EXEC Addins_GetSerialCode '{workPoint}','ICSInventoryLot','LotNO','KCP{rcvCode}{sequence}',5;";
log.Info(sql); log.Info(sql);

Loading…
Cancel
Save