凹版放卷涨紧取消获取膜卷号逻辑

master
CaesarBao 2 weeks ago
parent 2649703dbd
commit bd98529e49

@ -1266,6 +1266,11 @@ namespace MaterialTraceability.Business.Impl
LogHelper.Info("收卷轴异常下料信号触发,下发下料信号");
plcBusiness.writePlc(appConfig.AbAddress., 0);
break;
case 0:
LogRefreshEvent?.Invoke(LogType.PlcLog, "放卷轴异常下料信号触发,下发下料信号");
LogHelper.Info("放卷轴异常下料信号触发,下发下料信号");
plcBusiness.writePlc(appConfig.AbAddress., 0);
break;
default:
break;
}
@ -1369,9 +1374,9 @@ namespace MaterialTraceability.Business.Impl
{
bool result = false;
//通过MES获取RFID绑定的SFC并判断是否结束凹版来料RFID绑定为凹版膜卷号暂不使用SFC判断使用RFID判断
string sfcStr = GetSfcByRfid(rfidStr);
// string sfcStr = GetSfcByRfid(rfidStr);
LogRefreshEvent?.Invoke(LogType.RfidLog, String.Format("当前RFID{0}绑定的SFC为{1}", rfidStr, sfcStr));
//LogRefreshEvent?.Invoke(LogType.RfidLog, String.Format("当前RFID{0}绑定的SFC为{1}", rfidStr, sfcStr));
//通过SFC判断该卷物料是否已经生产结束如果已生产返回true未生产返回false
//upRecordServices
Expression<Func<ProUpRecord, bool>> exp = s1 => true;
@ -1382,12 +1387,12 @@ namespace MaterialTraceability.Business.Impl
{
if (StringExtension.IsBlank(upRecord.endTime))
{
LogRefreshEvent?.Invoke(LogType.RfidLog, String.Format("当前SFC{0}放卷结束时间为空,生产未结束", sfcStr));
LogRefreshEvent?.Invoke(LogType.RfidLog, String.Format("当前SFC{0}放卷结束时间为空,生产未结束", rfidStr));
result = false;
}
else
{
LogRefreshEvent?.Invoke(LogType.RfidLog, String.Format("当前SFC{0}放卷结束时间为:{1}", sfcStr, upRecord.endTime));
LogRefreshEvent?.Invoke(LogType.RfidLog, String.Format("当前SFC{0}放卷结束时间为:{1}", rfidStr, upRecord.endTime));
result = true;
}
}

Loading…
Cancel
Save