|
|
@ -331,22 +331,17 @@ public class SwappingStateMachine : IDisposable
|
|
|
|
StepSort = 0;
|
|
|
|
StepSort = 0;
|
|
|
|
|
|
|
|
|
|
|
|
Array values = Enum.GetValues(typeof(InfoEnum.BusinessSwappingStep));
|
|
|
|
Array values = Enum.GetValues(typeof(InfoEnum.BusinessSwappingStep));
|
|
|
|
foreach (var key in StepModel.Keys.ToList())
|
|
|
|
foreach (var value in values)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
StepModel[key].Status = 0;
|
|
|
|
StepModel[(string)value] = new StepModel()
|
|
|
|
StepModel[key].StartTime = null;
|
|
|
|
{
|
|
|
|
|
|
|
|
StepNo = (int)value,
|
|
|
|
|
|
|
|
Status = 0,
|
|
|
|
|
|
|
|
StepName = BaseEnumExtensions.GetEnumDescriptionByCode<InfoEnum.BusinessSwappingStep>((int)value)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//foreach (var value in values)
|
|
|
|
|
|
|
|
//{
|
|
|
|
|
|
|
|
// StepModel[(string)value] = new StepModel()
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// StepNo = (int)value,
|
|
|
|
|
|
|
|
// Status = 0,
|
|
|
|
|
|
|
|
// StepName = BaseEnumExtensions.GetEnumDescriptionByCode<InfoEnum.BusinessSwappingStep>((int)value)
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// ;
|
|
|
|
|
|
|
|
// ;
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlcSwapFlag = false;
|
|
|
|
PlcSwapFlag = false;
|
|
|
|
ManualSwapSuccFlag = false;
|
|
|
|
ManualSwapSuccFlag = false;
|
|
|
|