protected override void ConfirmDoorLockOk(FALibrary.Sequence.FASequence actor, TimeSpan time)
        {
            int alarm = GetDoorLockAlarm();

            if (alarm >= 0 && TimeDoorLockTimeout.Time < time)
            {
                string windowName = string.Empty;
                var alarmObj = Utility.AlarmUtility.GetAlarm(alarm, "DOOR LOCK FAIL");
                Manager.MessageWindowManager.Instance.Show(Equipment, "DOOR WARNING", out windowName, alarmObj, string.Empty, false);
                actor.ClearState();
                Equipment.RequestStop();
            }
            else
                actor.NextStep();
        }
        protected override void ConfirmDoorLockOk(FALibrary.Sequence.FASequence actor, TimeSpan time)
        {
            //int alarm=-1;

            //if (BoxFormingMachineEquipment.DoorUnit.FrontUppeDoorLockCheck.IsOff)
            //    alarm = AlarmFrontUppeDoorLockCheck;
            //else if (BoxFormingMachineEquipment.DoorUnit.LeftUpperDoorLockCheck.IsOff)
            //    alarm = AlarmLeftUpperDoorLockCheck;
            //else if (BoxFormingMachineEquipment.DoorUnit.FrontLeftDoorLockCheck.IsOff)
            //    alarm = AlarmFrontLeftDoorLockCheck;
            //else if (BoxFormingMachineEquipment.DoorUnit.FrontRightDoorLockCheck.IsOff)
            //    alarm = AlarmFrontRightDoorLockCheck;
            //else if (BoxFormingMachineEquipment.DoorUnit.RightUpperDoorLockCheck.IsOff)
            //    alarm = AlarmRightUpperDoorLockCheck;

            //if (alarm >= 0)
            //{
            //    var alarmObj = Utility.AlarmUtility.GetAlarm(alarm, "");
            //    Manager.MessageWindowManager.Instance.Show(Equipment, "DOOR WARNING", alarmObj, false);
            //    actor.ClearState();
            //    Equipment.RequestStop();
            //}
            actor.NextStep();
        }
        protected override void ConfirmDoorLockOk(FALibrary.Sequence.FASequence actor, TimeSpan time)
        {
            int alarm = -1;

            if (VT5070Equipment.DoorUnit.FrontMonitorDoorLockCheck.IsOff)
                alarm = AlarmFrontMonitorDoorLockFail;
            else if (VT5070Equipment.DoorUnit.FrontCenterUpperLeftDoorLockCheck.IsOff)
                alarm = AlarmFrontCenterUpperLeftDoorLockFail;
            else if (VT5070Equipment.DoorUnit.FrontCenterUpperRightDoorLockCheck.IsOff)
                alarm = AlarmFrontCenterUpperRightDoorLockFail;
            else if (VT5070Equipment.DoorUnit.FrontSSDBoxInletUpperDoorLockCheck.IsOff)
                alarm = AlarmFrontSSDInletUpperDoorLockFail;
            else if (VT5070Equipment.DoorUnit.FrontSSDBoxLoadingUpperLeftDoorLockCheck.IsOff)
                alarm = AlarmFrontLoadingUpperLeftDoorLockFail;
            else if (VT5070Equipment.DoorUnit.FrontSSDBoxLoadingUpperRightDoorLockCheck.IsOff)
                alarm = AlarmFrontLoadingUpperRightDoorLockFail;
            else if (VT5070Equipment.DoorUnit.LeftFoamPadInletDoorLockCheck.IsOff)
                alarm = AlarmLeftFoamPadInletDoorLockFail;
            else if (VT5070Equipment.DoorUnit.RearCenterDoorLockCheck.IsOff)
                alarm = AlarmRearCenterDoorLockFail;
            //else if (VT5070Equipment.DoorUnit.UpperPrinterFrontDoorLockCheck.IsOff)
            //    alarm = AlarmUpperPrinterDoorLockFail;
            //else if (VT5070Equipment.DoorUnit.LowerPrinterFrontDoorLockCheck.IsOff)
            //    alarm = AlarmLowerPrinterDoorLockFail;
            else if (VT5070Equipment.DoorUnit.PrinterRearDoorLockCheck.IsOff)
                alarm = AlarmPrinterRearDoorLockFail;
            else if (VT5070Equipment.DoorUnit.BandingMachineFrontDoorLockCheck.IsOff)
                alarm = AlarmBandingMachineFrontDoorLockFail;
            else if (VT5070Equipment.DoorUnit.BandingMachineRearDoorLockCheck.IsOff)
                alarm = AlarmBandingMachineRearDoorLockFail;

            if (alarm >= 0)
            {
                if (TimeDoorLockTimeout.Time < time)
                {
                    string windowName = string.Empty;
                    var alarmObj = Utility.AlarmUtility.GetAlarm(alarm, "DOOR WARNING");
                    Manager.MessageWindowManager.Instance.Show(Equipment, "DOOR WARNING", out windowName, alarmObj, string.Empty, true);
                    actor.ClearState();
                    Equipment.RequestStop();
                }
            }
            else
                actor.NextStep();
        }
        protected override void ConfirmDoorClosed(FALibrary.Sequence.FASequence actor, TimeSpan time)
        {
            string windowName = string.Empty;
            int alarm = -1;

            if (BoxFormingMachineEquipment.DoorUnit.FrontLeftDoorCloseCheck.IsOff)
                alarm = AlarmFrontLeftDoorCloseCheck;
            else if (BoxFormingMachineEquipment.DoorUnit.FrontRightDoorCloseCheck.IsOff)
                alarm = AlarmFrontRightDoorCloseCheck;
            else if (BoxFormingMachineEquipment.DoorUnit.RearLowerDoorCloseCheck.IsOff)
                alarm = AlarmRearLowerDoorCloseCheck;

            if (alarm >= 0)
            {
                var alarmObj = Utility.AlarmUtility.GetAlarm(alarm, "");
                Manager.MessageWindowManager.Instance.Show(Equipment, "DOOR WARNING", out windowName, alarmObj, string.Empty, false);
                actor.ClearState();
                Equipment.RequestStop();
            }
            else
            actor.NextStep();
        }
 public void Execute(FALibrary.Sequence.FASequence actor, TimeSpan time)
 {
     if (TimeObject.Time < time)
         actor.NextStep();
 }