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.ZPPlan; using MESClassLibrary.Model; namespace MESClassLibrary.BLL.ZPPlan { public class ZPRecordBLL { ZPRecordDAL da=new ZPRecordDAL(); public bool AddInfo(ZPRecordModel md) { try { return da.AddInfo(md); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return false; } } public DataTable SearchInfo(string barCode) { try { return da.SearchInfo(barCode); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } public DataTable SearchPrint(string stockNo) { try { return da.SearchPrint(stockNo); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } public DataTable SearchBarCode(string stockNo,string batch) { try { return da.SearchBarCode(stockNo, batch); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } public bool UpdatePrint(ZPRecordModel md) { try { return da.UpdatePrint(md); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return false; } } } }