liuwf 10 months ago
parent b81bcdbbfd
commit 27ca0760e8

@ -329,6 +329,8 @@ namespace Aucma.Core.ProductOffLine.Business
{
try
{
OffLineInfo info11 = MapperTwo(TempOffLineInfo);
@ -419,6 +421,7 @@ namespace Aucma.Core.ProductOffLine.Business
}
return true;
}
@ -567,7 +570,7 @@ namespace Aucma.Core.ProductOffLine.Business
// }
log.Info(TempOffLineInfo.ProductSNCode + ", 多码验证通过!");
//2.上传条码系统
bool resultUp = uploadSnSysytem(TempOffLineInfo);
bool resultUp = uploadSnSysytem(TempOffLineInfo,out int orderType);
return resultUp;
}
@ -626,11 +629,11 @@ namespace Aucma.Core.ProductOffLine.Business
/// </summary>
/// <param name="TempOffLineInfo"></param>
/// <returns></returns>
public bool uploadSnSysytem(TempInfo TempOffLineInfo)
public bool uploadSnSysytem(TempInfo TempOffLineInfo,out int orderType)
{
try
{
int orderType = 1; // ZP03为在库返工订单传参数3默认正常订单1
orderType = 1; // ZP03为在库返工订单传参数3默认正常订单1
// 先查订单
if (!string.IsNullOrEmpty(TempOffLineInfo.ProductOrderNo))
{
@ -681,7 +684,7 @@ namespace Aucma.Core.ProductOffLine.Business
if (strSave.Contains("条码重复"))
{
return CodeRepeatProcess(TempOffLineInfo);
return CodeRepeatProcess(TempOffLineInfo, orderType);
}
AddExceptionRecord(TempOffLineInfo.ProductSNCode, TempOffLineInfo.MsgInfo,2);
@ -716,6 +719,7 @@ namespace Aucma.Core.ProductOffLine.Business
catch (Exception ex)
{
log.Error(ex.Message.ToString());
orderType = 1;
return false;
}
}
@ -730,8 +734,9 @@ namespace Aucma.Core.ProductOffLine.Business
/// 20240315与郑总确认不需要超时5分钟判断条码重复判断数据库plc下发应答字如果是1可以再次放行如果是2说明plc已经应答箱体未走不可放行
/// 经武经理输入密码以后手动放行
/// </summary>
/// orderType1正常订单3返工单放行过plc为2也可以放行
/// <returns></returns>
public bool CodeRepeatProcess(TempInfo TempOffLineInfo)
public bool CodeRepeatProcess(TempInfo TempOffLineInfo,int orderType)
{
try
{
@ -750,6 +755,14 @@ namespace Aucma.Core.ProductOffLine.Business
}
else
{
if (orderType == 3)
{
log.Info(TempOffLineInfo.ProductSNCode + "返工单条码重复上传,可以再次放行");
TempOffLineInfo.MsgInfo = TempOffLineInfo.ProductSNCode + "返工单条码重复上传,可以再次放行";
RefreshScanMateriaCodeEvent?.Invoke(TempOffLineInfo);
return true;
}
log.Info(TempOffLineInfo.ProductSNCode + "条码重复上传plc应答字为2已经下传过不允许再次放行");
TempOffLineInfo.MsgAlarmFlag = true;

Loading…
Cancel
Save