public static bool CheckSfc(string code, out string msg) { if (!Current.Mes.IsEnabled) { msg = "MES未启用"; return(false); } if (!Current.Mes.IsAlive) { msg = "MES未在线"; return(false); } Sfc sfc = new Sfc { BarcodeNo = code, IPAddress = LocalIPAddr.ToString(), MachineNo = Current.Tester.Number, MaterialOrderNo = Current.Option.CurrentMaterialOrderNo, OrderNo = Current.Option.CurrentOrderNo, ProcessCode = Current.Option.CurrentProcessCode, StationCode = Current.Option.CurrentStationCode, UserNumber = AppCurrent.User.Number }; if (!Tafel.MES.MES.CheckSfc(sfc, out msg)) { return(false); } msg = string.Empty; return(true); }
public static bool CheckSfc(string code, out string msg) { if (!Current.mes.IsOffline) { Sfc sfc = new Sfc { BarcodeNo = code, IPAddress = MES.IPAddr.ToString(), MachineNo = Current.feeder.Number, MaterialOrderNo = Current.option.CurrentMaterialOrderNo, OrderNo = Current.option.CurrentOrderNo, ProcessCode = Current.option.CurrentProcessCode, StationCode = Current.option.CurrentStationCode, UserNumber = TengDa.WF.Current.user.Number }; if (!Tafel.MES.MES.CheckSfc(sfc, out msg)) { return(false); } } msg = string.Empty; return(true); }