using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; using System.Text; using MESClassLibrary.BLL.Log; using MESClassLibrary.BLL.PunchAndWeld; using MESClassLibrary.DAL.Hybrid; using MESClassLibrary.Model; namespace MESClassLibrary.BLL.Hybrid { public class HybridPlanBLL { HybridPlanDAL da = new HybridPlanDAL(); public DataTable SearchAllPlan() { try { return da.SearchAllPlan(); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } public bool AddInfo(HybridPlanModel md) { try { return da.AddInfo(md); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return false; } } public bool UpdateInfo(HybridPlanModel md) { try { return da.UpdateInfo(md); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return false; } } public bool DelInfo(HybridPlanModel md) { try { return da.DelInfo(md); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return false; } } public bool UpdateQty(HybridPlanModel md) { try { return da.UpdateQty(md); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return false; } } } }