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.Weight; using MESClassLibrary.Model; namespace MESClassLibrary.BLL.Weight { public class WeightRecordBLL { WeightRecordDAL da=new WeightRecordDAL(); public DataTable SearchMaxIDByDevice(string Device) { try { return da.SearchMaxIDByDevice(Device); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } public bool AddInfo(WeightRecordModel md) { try { return da.AddInfo(md); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return false; } } } }