|
|
@@ -464,7 +464,7 @@ namespace PLC_S.ServerModel
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
- #region 【可选】产品类别和重烧标识混合写入
|
|
|
+ #region 【可选】产品类别和重烧标识混合写入(官塘厂)
|
|
|
if (!string.IsNullOrEmpty(plc_s.PLC_GOODSTYPEISREFIRE_CODE) && !string.IsNullOrEmpty(plc_s.PLC_GOODSTYPEISREFIRE_CODENUM))
|
|
|
{
|
|
|
Int16 goodsType = Convert.ToInt16(GetGoodsType(barCode, e, logKeyT));
|
|
|
@@ -515,6 +515,10 @@ namespace PLC_S.ServerModel
|
|
|
if (!string.IsNullOrEmpty(plc_s.PLC_GOODSDEFECTTYPE_CODE) && !string.IsNullOrEmpty(plc_s.PLC_GOODSDEFECTTYPE_CODENUM))
|
|
|
{
|
|
|
Int16 goodsDefectType = Convert.ToInt16(GetDefectTypeId(barCode, e, logKeyT));
|
|
|
+
|
|
|
+ //如果是重烧产品写入 16 代替产品缺陷类别
|
|
|
+ goodsDefectType = Convert.ToInt16(GetAutoFireID(barCode, goodsDefectType.ToString(), "16", e, logKeyT));
|
|
|
+
|
|
|
if (!string.IsNullOrEmpty(plc_s.PLC_IP))
|
|
|
{
|
|
|
outputMessage = $"[{e.Content}]SET_DefectType=[{goodsDefectType}]{plc_s.PLC_GOODSDEFECTTYPE_CODE + plc_s.PLC_GOODSDEFECTTYPE_CODENUM}";
|