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.
118 lines
3.1 KiB
118 lines
3.1 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.DAL.painting;
|
|
|
|
namespace MESClassLibrary.BLL.Mistake247
|
|
{
|
|
public class MistakeBLL
|
|
{
|
|
public DataTable IsMath(string DeviceNo, string PartNo)
|
|
{
|
|
MistakeDAL da = new MistakeDAL();
|
|
try
|
|
{
|
|
return da.IsMath(DeviceNo, PartNo);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public DataTable SearchByNo(string PartNo,string deviceNo)
|
|
{
|
|
MistakeDAL da = new MistakeDAL();
|
|
try
|
|
{
|
|
return da.SearchByNo(PartNo, deviceNo);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public DataTable SearchPartName(string PartNo)
|
|
{
|
|
MistakeDAL da = new MistakeDAL();
|
|
try
|
|
{
|
|
return da.SearchPartName(PartNo);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public DataTable SearchPartNoByDecice(string deviceNo)
|
|
{
|
|
MistakeDAL da = new MistakeDAL();
|
|
try
|
|
{
|
|
return da.SearchPartNoByDecice(deviceNo);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
#region 243
|
|
|
|
public DataTable IsMath1(string DeviceNo, string PartNo)
|
|
{
|
|
MistakeDAL da = new MistakeDAL();
|
|
try
|
|
{
|
|
return da.IsMath1(DeviceNo, PartNo);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public DataTable SearchByNo1(string PartNo, string deviceNo)
|
|
{
|
|
MistakeDAL da = new MistakeDAL();
|
|
try
|
|
{
|
|
return da.SearchByNo1(PartNo, deviceNo);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public DataTable SearchPartName1(string PartNo)
|
|
{
|
|
MistakeDAL da = new MistakeDAL();
|
|
try
|
|
{
|
|
return da.SearchPartName1(PartNo);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|
|
|