You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.3 KiB
56 lines
1.3 KiB
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;
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
|