using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.FJC.TRACING.DAInterface;
using QMAPP.FJC.BLL.FwMark;
namespace QMAPP.FJC.TRACING.DataValidators
{
///
/// 关闭门板指示灯
///
public class LightOff : IDataValidator
{
public ValidateResult Validate(DAObject data, Entity.QT.DAIValidation validOption)
{
Action act = new Action(() =>
{
try
{
//关灯
FJC.BLL.X_Gate.LightController lightcontrollor = new BLL.X_Gate.LightController();
lightcontrollor.LightOnCell(data.WorkLocState.WORKLOC_CODE, new List());
}
catch (Exception ex)
{
//throw ex;
}
});
act.BeginInvoke(null, null);
return new ValidateResult(true, "");
}
}
}