using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; using System.Text; using MESClassLibrary.BLL.Log; using MESClassLibrary.DAL; using MESClassLibrary.DAL.Injection; namespace MESClassLibrary.BLL.Injection { public class PLCBreakBLL { PLCBreakDAL da = new PLCBreakDAL(); public DataTable SearchBreak() { try { return da.SearchBreak(); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } /// /// 记录接收到PLC 信号的记录 /// /// /// /// /// /// /// /// public bool SavePlcReceive(string stationNo, int TransactionID, int NumItems, string partCode1, string planCode, string pageType) { try { return da.SavePlcReceive(stationNo, TransactionID, NumItems, partCode1, planCode, pageType); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return false ; } } } }