12345678910111213141516171819202122232425262728293031323334 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.InteropServices;
- using System.Text;
- using System.Threading.Tasks;
- namespace MesAdaptor
- {
- public enum MesType
- {
- none,
- shinewave,
- sajet,
- sajet2,
- test
- }
- public static class SajetConnect
- {
- public static ISajetConnect Instance { get; set; }
- public static bool SajetTransStart() => Instance.SajetTransStart();
- public static bool SajetTransClose() => Instance == null ? false : Instance.SajetTransClose();
- public static bool SajetTransSignIn(ref string data) => Instance.SajetTransSignIn(ref data);
- public static bool SajetTransWoCheck(ref string workOrder) => Instance.SajetTransWoCheck(ref workOrder);
- public static bool SajetTransSnCheck(ref string serialNumber) => Instance.SajetTransSnCheck(ref serialNumber);
- public static bool SajetTranFinishSuccess() => Instance.SajetTranFinishSuccess();
- public static bool SajetTranFinishFail(MesErrorCode errorCode) => Instance.SajetTranFinishFail(errorCode);
- public static string SajetTransRegisterHeader(string model, string header) => Instance.SajetTransRegisterHeader(model, header);
- public static bool SajetTransReport(ValueReportDatas reportPair) => Instance.SajetTransReport(reportPair);
- public static bool SajetTransLog(string data) => Instance.SajetTransLog(data);
- }
- }
|