using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.FJC.TRACING.DAInterface;
using QMAPP.FJC.Entity.Operation;
using QMAPP.FJC.BLL.FwMark;

namespace QMAPP.FJC.TRACING.StateActions
{
    /// <summary>
    /// 关闭门板指示灯
    /// </summary>
    public class LightOff : IStateAction
    {

        public void Execute(DAObject data)
        {

            Action act = new Action(() =>
            {
                try
                {
                    //关灯
                    FJC.BLL.X_Gate.LightController lightcontrollor = new BLL.X_Gate.LightController();
                    lightcontrollor.LightOnCell(data.WorkLocState.WORKLOC_CODE, null);
                }
                catch (Exception ex)
                {
                    //throw ex;
                }
            });
            act.BeginInvoke(null, null);

        }
    }
}