using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Reflection; using System.Text; using MESClassLibrary.BLL.Log; using MESClassLibrary.DAL; using MESClassLibrary.DAL.ZPPlan; using MESClassLibrary.Model; namespace MESClassLibrary.BLL.ZPPlan { public class ZPBoxBLL { ZPBoxDAL da=new ZPBoxDAL(); public bool AddInfo(ZPBoxModel md) { try { return da.AddInfo(md); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return false; } } public DataTable SearchBoxByPartNo(string partNo) { try { return da.SearchBoxByPartNo(partNo); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } public DataTable SearchCountByBoxNo(string boxNo) { try { return da.SearchCountByBoxNo(boxNo); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } } }