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; using MESClassLibrary.DAL.painting; namespace MESClassLibrary.BLL.Painting { public class StockInBLL { public DataTable SearchInfoA() { StockInDAL da = new StockInDAL(); try { return da.SearchInfoA(); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } public DataTable SearchInfoB() { StockInDAL da = new StockInDAL(); try { return da.SearchInfoB(); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } public DataTable SearchInfoBByA() { StockInDAL da = new StockInDAL(); try { return da.SearchInfoBByA(); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } public DataTable SearchInfoAByB() { StockInDAL da = new StockInDAL(); try { return da.SearchInfoAByB(); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } public DataTable SearchDetailA() { StockInDAL da = new StockInDAL(); try { return da.SearchDetailA(); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } public DataTable SearchDetailB() { StockInDAL da = new StockInDAL(); try { return da.SearchDetailB(); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } public DataTable SearchColorByBarCode(string barcode) { try { StockInDAL da = new StockInDAL(); return da.SearchColorByBarCode(barcode); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } } }