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.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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|