using MESClassLibrary.BLL.Log; using MESClassLibrary.DAL.painting; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; using System.Text; namespace MESClassLibrary.BLL.Painting { public class TmpBarCodeBll { TmpBarCodeDal da = new TmpBarCodeDal(); public bool ClearBarCode() { try { return da.ClearBarCode(); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return false; } } public bool AddInfo(string barCode) { try { return da.AddInfo(barCode); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return false; } } public int InsertBulkCopy(string connectionString, DataTable dt) { try { return da.InsertBulkCopy(connectionString, dt); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return -1; } } } }