You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
993 B
36 lines
993 B
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
|
|
{
|
|
/// <summary>
|
|
/// 关闭门板指示灯
|
|
/// </summary>
|
|
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<string>());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
//throw ex;
|
|
}
|
|
});
|
|
act.BeginInvoke(null, null);
|
|
|
|
return new ValidateResult(true, "");
|
|
}
|
|
}
|
|
}
|
|
|