|
@ -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); |
|
|