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.
121 lines
3.0 KiB
121 lines
3.0 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.Mistake247;
|
|
using MESClassLibrary.Model;
|
|
|
|
namespace MESClassLibrary.BLL.Mistake247
|
|
{
|
|
public class BoxBLL
|
|
{
|
|
private BoxDAL _boxDAL = new BoxDAL();
|
|
/// <summary>
|
|
/// 左前
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public DataTable GetX247LF()
|
|
{
|
|
return _boxDAL.GetX247LF();
|
|
}
|
|
/// <summary>
|
|
/// 左后
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public DataTable GetX247LR()
|
|
{
|
|
return _boxDAL.GetX247LR();
|
|
}
|
|
/// <summary>
|
|
/// 右前
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public DataTable GetX247RF()
|
|
{
|
|
return _boxDAL.GetX247RF();
|
|
}
|
|
/// <summary>
|
|
/// 右后
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public DataTable GetX247RR()
|
|
{
|
|
return _boxDAL.GetX247RR();
|
|
}
|
|
|
|
|
|
public bool AddInfo(BoxModel md)
|
|
{
|
|
BoxDAL da = new BoxDAL();
|
|
try
|
|
{
|
|
return da.AddInfo(md);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public DataTable SearchByNo(string PartNo, string BatchNo)
|
|
{
|
|
BoxDAL da = new BoxDAL();
|
|
try
|
|
{
|
|
return da.SearchByNo(PartNo, BatchNo);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public bool UpdateInfo(BoxModel md)
|
|
{
|
|
BoxDAL da = new BoxDAL();
|
|
try
|
|
{
|
|
return da.UpdateInfo(md);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public DataTable searchBox(string partno)
|
|
{
|
|
BoxDAL da = new BoxDAL();
|
|
try
|
|
{
|
|
return da.SearchBox(partno);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public DataTable SearchBoxIsExsit(string box)
|
|
{
|
|
BoxDAL da = new BoxDAL();
|
|
try
|
|
{
|
|
return da.SearchBoxIsExsit(box);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|