|
@@ -39,7 +39,7 @@ namespace WCS.Service.Extensions
|
|
|
try
|
|
|
{
|
|
|
if (ExDevice.Any(v => v == Entity.CODE)) throw new WarnException($"[{Entity.CODE}]--触发并发管控");
|
|
|
- AddExDevice(Entity.CODE);
|
|
|
+ OperateExDevice(Entity.CODE);
|
|
|
act(this);
|
|
|
}
|
|
|
catch (DoException ex)
|
|
@@ -60,7 +60,7 @@ namespace WCS.Service.Extensions
|
|
|
}
|
|
|
finally
|
|
|
{
|
|
|
- RemoveExDevice(Entity.CODE);
|
|
|
+ OperateExDevice(Entity.CODE);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -273,7 +273,7 @@ namespace WCS.Service.Extensions
|
|
|
try
|
|
|
{
|
|
|
if (ExDevice.Any(v => v == Entity.CODE)) throw new WarnException($"[{Entity.CODE}]--触发并发管控");
|
|
|
- AddExDevice(Entity.CODE);
|
|
|
+ OperateExDevice(Entity.CODE);
|
|
|
act(this);
|
|
|
}
|
|
|
catch (DoException ex)
|
|
@@ -294,7 +294,7 @@ namespace WCS.Service.Extensions
|
|
|
}
|
|
|
finally
|
|
|
{
|
|
|
- RemoveExDevice(Entity.CODE);
|
|
|
+ OperateExDevice(Entity.CODE);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -372,7 +372,7 @@ namespace WCS.Service.Extensions
|
|
|
try
|
|
|
{
|
|
|
if (ExDevice.Any(v => v == Entity.CODE)) throw new WarnException($"[{Entity.CODE}]--触发并发管控");
|
|
|
- AddExDevice(Entity.CODE);
|
|
|
+ OperateExDevice(Entity.CODE);
|
|
|
act(this);
|
|
|
}
|
|
|
catch (DoException ex)
|
|
@@ -393,7 +393,7 @@ namespace WCS.Service.Extensions
|
|
|
}
|
|
|
finally
|
|
|
{
|
|
|
- RemoveExDevice(Entity.CODE);
|
|
|
+ OperateExDevice(Entity.CODE);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -620,7 +620,7 @@ namespace WCS.Service.Extensions
|
|
|
try
|
|
|
{
|
|
|
if (ExDevice.Any(v => v == Entity.CODE)) throw new WarnException($"[{Entity.CODE}]--触发并发管控");
|
|
|
- AddExDevice(Entity.CODE);
|
|
|
+ OperateExDevice(Entity.CODE);
|
|
|
act(this);
|
|
|
}
|
|
|
catch (DoException ex)
|
|
@@ -641,7 +641,7 @@ namespace WCS.Service.Extensions
|
|
|
}
|
|
|
finally
|
|
|
{
|
|
|
- RemoveExDevice(Entity.CODE);
|
|
|
+ OperateExDevice(Entity.CODE);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -658,29 +658,29 @@ namespace WCS.Service.Extensions
|
|
|
{
|
|
|
code = "SRM3-SRM4-Out";
|
|
|
if (ExDevice.Any(v => v == code)) throw new WarnException($"触发出库并发管控--[{code}]");
|
|
|
- AddExDevice(code);
|
|
|
+ OperateExDevice(code);
|
|
|
}
|
|
|
if (Entity.CODE == "SRM5" || Entity.CODE == "SRM6")
|
|
|
{
|
|
|
code = "SRM5-SRM6-Out";
|
|
|
if (ExDevice.Any(v => v == code)) throw new WarnException($"触发出库并发管控--[{code}]");
|
|
|
- AddExDevice(code);
|
|
|
+ OperateExDevice(code);
|
|
|
}
|
|
|
|
|
|
if (Entity.CODE == "SRM7" || Entity.CODE == "SRM8")
|
|
|
{
|
|
|
code = "SRM7-SRM8-Out";
|
|
|
if (ExDevice.Any(v => v == code)) throw new WarnException($"触发出库并发管控--[{code}]");
|
|
|
- AddExDevice(code);
|
|
|
+ OperateExDevice(code);
|
|
|
}
|
|
|
|
|
|
act(this);
|
|
|
}
|
|
|
finally
|
|
|
{
|
|
|
- if (Entity.CODE == "SRM3" || Entity.CODE == "SRM4") RemoveExDevice("SRM3-SRM4-Out");
|
|
|
- if (Entity.CODE == "SRM5" || Entity.CODE == "SRM6") RemoveExDevice("SRM5-SRM6-Out");
|
|
|
- if (Entity.CODE == "SRM7" || Entity.CODE == "SRM8") RemoveExDevice("SRM7-SRM8-Out");
|
|
|
+ if (Entity.CODE == "SRM3" || Entity.CODE == "SRM4") OperateExDevice("SRM3-SRM4-Out");
|
|
|
+ if (Entity.CODE == "SRM5" || Entity.CODE == "SRM6") OperateExDevice("SRM5-SRM6-Out");
|
|
|
+ if (Entity.CODE == "SRM7" || Entity.CODE == "SRM8") OperateExDevice("SRM7-SRM8-Out");
|
|
|
}
|
|
|
}
|
|
|
|