|
|
@ -128,10 +128,11 @@ namespace Aucma.Scada.Business
|
|
|
|
{
|
|
|
|
{
|
|
|
|
PrintLogInfoMessage($"扫码成功,物料码:{materialCode}");
|
|
|
|
PrintLogInfoMessage($"扫码成功,物料码:{materialCode}");
|
|
|
|
string materialType = SubStringMaterialCode(materialCode);
|
|
|
|
string materialType = SubStringMaterialCode(materialCode);
|
|
|
|
|
|
|
|
// 加防呆,判断任务表是否有任务了
|
|
|
|
#region Delete By wenjy 2023-10-30 11:41:00 取消通过数据库获取货道数量、在途量,改为通过PLC获取货道信息
|
|
|
|
#region Delete By wenjy 2023-10-30 11:41:00 取消通过数据库获取货道数量、在途量,改为通过PLC获取货道信息
|
|
|
|
var spaceInfo = _spaceInfoService.InStoreGetSpaceInfoByMaterialType(appConfig.foamStoreCode, materialType);
|
|
|
|
// var spaceInfo = _spaceInfoService.InStoreGetSpaceInfoByMaterialType(appConfig.foamStoreCode, materialType);
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
//var spaceInfo = GetSpaceInfoByMaterialType(appConfig.foamStoreCode, materialType);
|
|
|
|
var spaceInfo = GetSpaceInfoByMaterialType(appConfig.foamStoreCode, materialType);
|
|
|
|
if (spaceInfo != null)
|
|
|
|
if (spaceInfo != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
PrintLogInfoMessage($"匹配货道:{spaceInfo.spaceName}");
|
|
|
|
PrintLogInfoMessage($"匹配货道:{spaceInfo.spaceName}");
|
|
|
@ -366,8 +367,8 @@ namespace Aucma.Scada.Business
|
|
|
|
if (spaceInfo != null)
|
|
|
|
if (spaceInfo != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
spaceInfo.materialType = taskInfo.materialType;
|
|
|
|
spaceInfo.materialType = taskInfo.materialType;
|
|
|
|
spaceInfo.spaceStock = spaceInfo.spaceStock + 1;
|
|
|
|
//spaceInfo.spaceStock = spaceInfo.spaceStock + 1;
|
|
|
|
spaceInfo.onRouteAmount -= 1;
|
|
|
|
//spaceInfo.onRouteAmount -= 1;
|
|
|
|
|
|
|
|
|
|
|
|
//读取PLC获取货道信息:存放数量、在途数量,
|
|
|
|
//读取PLC获取货道信息:存放数量、在途数量,
|
|
|
|
#region Add By wenjy 2023-10-30 13:44:00 通过PLC获取货道信息
|
|
|
|
#region Add By wenjy 2023-10-30 13:44:00 通过PLC获取货道信息
|
|
|
@ -389,7 +390,7 @@ namespace Aucma.Scada.Business
|
|
|
|
_baseSpaceDetailService.InsertSpaceDetail(spaceDetail);
|
|
|
|
_baseSpaceDetailService.InsertSpaceDetail(spaceDetail);
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#region 添加入库任务
|
|
|
|
#region 添加入库记录
|
|
|
|
RecordInstore recordInstore = new RecordInstore();
|
|
|
|
RecordInstore recordInstore = new RecordInstore();
|
|
|
|
recordInstore.storeCode = taskInfo.storeCode;
|
|
|
|
recordInstore.storeCode = taskInfo.storeCode;
|
|
|
|
recordInstore.spaceCode = taskInfo.spaceCode;
|
|
|
|
recordInstore.spaceCode = taskInfo.spaceCode;
|
|
|
|