注塑喷涂
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.
 
 
 
 
 

278 lines
6.7 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();
#region 门板
/// <summary>
/// 左前
/// </summary>
/// <returns></returns>
public DataTable GetX247LF_MB()
{
return _boxDAL.GetX247LF_MB();
}
/// <summary>
/// 左后
/// </summary>
/// <returns></returns>
public DataTable GetX247LR_MB()
{
return _boxDAL.GetX247LR_MB();
}
/// <summary>
/// 右前
/// </summary>
/// <returns></returns>
public DataTable GetX247RF_MB()
{
return _boxDAL.GetX247RF_MB();
}
/// <summary>
/// 右后
/// </summary>
/// <returns></returns>
public DataTable GetX247RR_MB()
{
return _boxDAL.GetX247RR_MB();
}
#endregion
#region 轮眉
/// <summary>
/// 前左
/// </summary>
/// <returns></returns>
public DataTable GetX247LF_LM()
{
return _boxDAL.GetX247LF_LM();
}
/// <summary>
/// 前右
/// </summary>
/// <returns></returns>
public DataTable GetX247RF_LM()
{
return _boxDAL.GetX247RF_LM();
}
/// <summary>
/// 后左轮眉 -轮眉后左后和后左一样
/// </summary>
/// <returns></returns>
public DataTable GetX247LR_LM()
{
return _boxDAL.GetX247LR_LM();
}
/// <summary>
/// 后右 --大装箱单
/// </summary>
/// <returns></returns>
public DataTable GetX247RR_LM()
{
return _boxDAL.GetX247RR_LM();
}
/// <summary>
/// 后左前轮眉
/// </summary>
/// <returns></returns>
public DataTable GetX247HLF_LM()
{
return _boxDAL.GetX247HLF_LM();
}
/// <summary>
/// 后左后轮眉
/// </summary>
/// <returns></returns>
public DataTable GetX247HLH_LM()
{
return _boxDAL.GetX247HLH_LM();
}
/// <summary>
/// 后右前轮眉
/// </summary>
/// <returns></returns>
public DataTable GetX247HRF_LM()
{
return _boxDAL.GetX247HRF_LM();
}
/// <summary>
/// 后右后轮眉
/// </summary>
/// <returns></returns>
public DataTable GetX247HRH_LM()
{
return _boxDAL.GetX247HRH_LM();
}
#region X243轮眉
/// <summary>
/// 前左
/// </summary>
/// <returns></returns>
public DataTable GetX243LF_LM()
{
return _boxDAL.GetX243LF_LM();
}
/// <summary>
/// 后左轮眉
/// </summary>
/// <returns></returns>
public DataTable GetX243LR_LM()
{
return _boxDAL.GetX243LR_LM();
}
/// <summary>
/// 前右
/// </summary>
/// <returns></returns>
public DataTable GetX243RF_LM()
{
return _boxDAL.GetX243RF_LM();
}
/// <summary>
/// 后右后轮眉
/// </summary>
/// <returns></returns>
public DataTable GetX243HRH_LM()
{
return _boxDAL.GetX243HRH_LM();
}
#endregion
#endregion
#region 扰流板
/// <summary>
/// 后扰流板箱单 --大装箱单
/// </summary>
/// <returns></returns>
public DataTable GetX247H_RLB()
{
return _boxDAL.GetX247H_RLB();
}
/// <summary>
/// X247后部左侧扰流板
/// </summary>
/// <returns></returns>
public DataTable GetX247HL_RLB()
{
return _boxDAL.GetX247HL_RLB();
}
/// <summary>
/// X247后部右侧扰流板
/// </summary>
/// <returns></returns>
public DataTable GetX247HR_RLB()
{
return _boxDAL.GetX247HR_RLB();
}
/// <summary>
/// H247后部左侧扰流板
/// </summary>
/// <returns></returns>
public DataTable GetH247HL_RLB()
{
return _boxDAL.GetH247HL_RLB();
}
/// <summary>
/// H247后部右侧扰流板
/// </summary>
/// <returns></returns>
public DataTable GetH247HR_RLB()
{
return _boxDAL.GetH247HR_RLB();
}
#endregion
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;
}
}
}
}