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.BasicInfo; 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 SearchColor(string barCode) { StockInDAL da = new StockInDAL(); try { return da.SearchColor(barCode); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } } }