SajetConnect.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.InteropServices;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace MesAdaptor
  8. {
  9. public enum MesType
  10. {
  11. none,
  12. shinewave,
  13. sajet,
  14. sajet2,
  15. test
  16. }
  17. public static class SajetConnect
  18. {
  19. public static ISajetConnect Instance { get; set; }
  20. public static bool SajetTransStart() => Instance.SajetTransStart();
  21. public static bool SajetTransClose() => Instance.SajetTransClose();
  22. public static bool SajetTransSignIn(ref string data) => Instance.SajetTransSignIn(ref data);
  23. public static bool SajetTransWoCheck(ref string workOrder) => Instance.SajetTransWoCheck(ref workOrder);
  24. public static bool SajetTransSnCheck(ref string serialNumber) => Instance.SajetTransWoCheck(ref serialNumber);
  25. public static bool SajetTranFinishSuccess() => Instance.SajetTranFinishSuccess();
  26. public static bool SajetTranFinishFail(MesErrorCode errorCode) => Instance.SajetTranFinishFail(errorCode);
  27. public static string SajetTransRegisterHeader(string model, string header) => Instance.SajetTransRegisterHeader(model, header);
  28. public static bool SajetTransReport(Dictionary<string, string> reportPair) => Instance.SajetTransReport(reportPair);
  29. public static bool SajetTransLog(string data) => Instance.SajetTransLog(data);
  30. }
  31. }