using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using MESClassLibrary.BLL.Log; using MESClassLibrary.DAL.ExchangeCenter; using MESClassLibrary.Model; namespace MESClassLibrary.BLL.ExchangeCenter { public class TESBomBLL { public bool AddInfo(TESBomModel md) { TESBomDAL da = new TESBomDAL(); try { return da.AddInfo(md); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return false; } } public DataTable Search() { TESBomDAL da=new TESBomDAL(); try { return da.Search(); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } public bool updateFlag(string TaskID) { TESBomDAL da = new TESBomDAL(); try { return da.UpdateFlag(TaskID); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return false; } } } }