修改multiProcess客户端逻辑,取消processidle判断

This commit is contained in:
SIC1016\caipeilun 2024-02-19 08:43:09 +08:00
parent 4c7e1e2c82
commit bff7f0c802
1 changed files with 4 additions and 32 deletions

View File

@ -309,20 +309,13 @@ namespace MECF.Framework.Common.MultiProcess.ProcessCenter
string state = (string)DATA.Poll("PM1.Status");
if (state != null)
{
if (state == "Process" || state == "ToProcess")
if (state == "Process" || state == "PostProcess")
{
if (!Service.UpdateChamberState(_name, "PM1", state, "2"))
{
return false;
}
}
else if (state == "ProcessIdle" || state == "ToProcessIdle")
{
if (!Service.UpdateChamberState(_name, "PM1", state, "1"))
{
return false;
}
}
else if (!Service.UpdateChamberState(_name, "PM1", state, "0"))
{
return false;
@ -336,20 +329,13 @@ namespace MECF.Framework.Common.MultiProcess.ProcessCenter
string state = (string)DATA.Poll("PM2.Status");
if (state != null)
{
if (state == "Process" || state == "ToProcess")
if (state == "Process"|| state == "PostProcess")
{
if (!Service.UpdateChamberState(_name, "PM2", state, "2"))
{
return false;
}
}
else if (state == "ProcessIdle" || state == "ToProcessIdle")
{
if (!Service.UpdateChamberState(_name, "PM2", state, "1"))
{
return false;
}
}
else if (!Service.UpdateChamberState(_name, "PM2", state, "0"))
{
return false;
@ -375,20 +361,13 @@ namespace MECF.Framework.Common.MultiProcess.ProcessCenter
string state = (string)DATA.Poll("PM1.Status");
if (args.Length == 1)
{
if ((string)args[0] == "QuitHeating" || (string)args[0] == "QuitProcessIdle")
if ((string)args[0] == "QuitHeating" || (string)args[0] == "QuitProcess")
{
if (!Service.UpdateChamberState(_name, "PM1",state, "0"))
{
return false;
}
}
else if ((string)args[0] == "QuitProcess")
{
if (!Service.UpdateChamberState(_name, "PM1", state, "1"))
{
return false;
}
}
else return false;
}
else return false;
@ -398,20 +377,13 @@ namespace MECF.Framework.Common.MultiProcess.ProcessCenter
string state = (string)DATA.Poll("PM2.Status");
if (args.Length == 1)
{
if ((string)args[0] == "QuitHeating" || (string)args[0] == "QuitProcessIdle")
if ((string)args[0] == "QuitHeating" || (string)args[0] == "QuitProcess")
{
if (!Service.UpdateChamberState(_name, "PM2", state, "0"))
{
return false;
}
}
else if ((string)args[0] == "QuitProcess")
{
if (!Service.UpdateChamberState(_name, "PM2", state, "1"))
{
return false;
}
}
else return false;
}
else return false;