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.
72 lines
1.9 KiB
72 lines
1.9 KiB
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.painting;
|
|
using MESClassLibrary.Model;
|
|
|
|
namespace MESClassLibrary.BLL.Painting
|
|
{
|
|
public class PaintBarCodeBLL
|
|
{
|
|
public DataTable SearchAll(string banci,string productdate)
|
|
{
|
|
PaintBarCodeDAL da=new PaintBarCodeDAL();
|
|
try
|
|
{
|
|
return da.SearchInfoAll(banci, productdate);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public DataTable SearchBarCode( string productdate, string ProductID)
|
|
{
|
|
PaintBarCodeDAL da = new PaintBarCodeDAL();
|
|
try
|
|
{
|
|
return da.SearchBarCode( productdate, ProductID);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public bool AddInfo(PaintBarCodeModel md)
|
|
{
|
|
PaintBarCodeDAL da = new PaintBarCodeDAL();
|
|
try
|
|
{
|
|
return da.AddInfo(md);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public bool UpdatePrintTime(PaintBarCodeModel md)
|
|
{
|
|
PaintBarCodeDAL da = new PaintBarCodeDAL();
|
|
try
|
|
{
|
|
return da.UpdatePrintTime(md);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|