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; using MESClassLibrary.Model; namespace MESClassLibrary.BLL.Painting { public class InspectResultBLL { InspectResultDAL da = new InspectResultDAL(); public bool AddInfo(InspectResultModel md) { try { return da.AddInfo(md); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return false; } } public DataTable SearchInfoByBarcode(string barcode) { try { return da.SearchInfoByBarcode(barcode); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } public string OneBarCode(string barcode) { try { return da.OneBarCode(barcode); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(),MethodBase.GetCurrentMethod()); return barcode; } } } }