SigStatTask.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using Aitex.Sorter.RT.EFEMs.Servers;
  2. namespace Aitex.Sorter.RT.EFEMs.Tasks
  3. {
  4. public class SigStatTask : CheckImp, ITask
  5. {
  6. public SigStatTask()
  7. {
  8. }
  9. public bool Execute(out string result, params string[] args)
  10. {
  11. string device = Args2Unit(args.Length > 0 ? args[0] : string.Empty);
  12. if (string.IsNullOrEmpty(device))
  13. {
  14. result = PARAM_NG;
  15. return false;
  16. }
  17. if (!Check<NoReadyPolicy>(device, out result))
  18. {
  19. return false;
  20. }
  21. if (!Check<MaintenancePolicy>(device, out result))
  22. {
  23. return false;
  24. }
  25. if (!Check<RemovePolicy>(device, out result))
  26. {
  27. return false;
  28. }
  29. return true;
  30. }
  31. public bool? Monitor(out string result, params string[] args)
  32. {
  33. result = string.Empty;
  34. if(args.Length > 0)
  35. {
  36. //var data1 = Singleton<EfemEntity>.Instance.GetSigStatData1(args[0].ToString());
  37. //result = data1.ToString("X8");
  38. //var data2 = Singleton<EfemEntity>.Instance.GetSigStatData2(args[0].ToString());
  39. //result += "/" + data2.ToString("X8");
  40. }
  41. return true;
  42. }
  43. }
  44. }