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.painting; using MESClassLibrary.Model; namespace MESClassLibrary.BLL.Painting { public class PaintBarCodeBLL { public DataTable SearchAll(string banci,string productdate) { PaintBarCodeDAL da=new PaintBarCodeDAL(); try { return da.SearchInfoAll(banci, productdate); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } public DataTable SearchBarCode(string banci, string productdate, string ProductID) { PaintBarCodeDAL da = new PaintBarCodeDAL(); try { return da.SearchBarCode(banci, productdate, ProductID); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } public bool AddInfo(PaintBarCodeModel md) { PaintBarCodeDAL da = new PaintBarCodeDAL(); try { return da.AddInfo(md); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return false; } } public bool UpdatePrintTime(PaintBarCodeModel md) { PaintBarCodeDAL da = new PaintBarCodeDAL(); try { return da.UpdatePrintTime(md); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return false; } } } }