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.
171 lines
4.4 KiB
171 lines
4.4 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using System.Text;
|
|
using MESClassLibrary.BLL.Log;
|
|
using MESClassLibrary.DAL.Mistake247;
|
|
using MESClassLibrary.Model;
|
|
|
|
namespace MESClassLibrary.BLL.Mistake247
|
|
{
|
|
public class RecordBLL
|
|
{
|
|
public DataTable SearchByPartNo1(string PartNo)
|
|
{
|
|
RecordDAL da = new RecordDAL();
|
|
try
|
|
{
|
|
return da.SearchByPartNo1(PartNo);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public DataTable SearchCountByBox(string boxNo)
|
|
{
|
|
RecordDAL da = new RecordDAL();
|
|
try
|
|
{
|
|
return da.SearchCountByBox(boxNo);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public bool AddInfo(RecordModel md)
|
|
{
|
|
RecordDAL da = new RecordDAL();
|
|
try
|
|
{
|
|
return da.AddInfo(md);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public bool updateBoxInfo(RecordModel md)
|
|
{
|
|
RecordDAL da = new RecordDAL();
|
|
try
|
|
{
|
|
return da.updateBoxInfo(md);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public DataTable SearchState(int type1,int type2,int type3)
|
|
{
|
|
RecordDAL da = new RecordDAL();
|
|
try
|
|
{
|
|
return da.SearchState(type1,type2,type3);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public bool DelInfo(RecordModel md)
|
|
{
|
|
RecordDAL da = new RecordDAL();
|
|
try
|
|
{
|
|
return da.DelInfo(md);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public DataTable SearchBoxByPart(string part)
|
|
{
|
|
RecordDAL da = new RecordDAL();
|
|
try
|
|
{
|
|
return da.SearchBoxByPart(part);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public DataTable SearchByPartNo2(string partno)
|
|
{
|
|
RecordDAL da = new RecordDAL();
|
|
try
|
|
{
|
|
return da.SearchByPartNo2(partno);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public DataTable GetCount(string part,string batch)
|
|
{
|
|
RecordDAL da = new RecordDAL();
|
|
try
|
|
{
|
|
return da.GetCount(part,batch);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
public DataTable GetRecord(string boxNo)
|
|
{
|
|
RecordDAL da = new RecordDAL();
|
|
try
|
|
{
|
|
return da.GetRecord(boxNo);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public DataTable GetOrderNum(string orderno)
|
|
{
|
|
RecordDAL da = new RecordDAL();
|
|
try
|
|
{
|
|
return da.GetOrderNum(orderno);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|