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.
91 lines
2.4 KiB
91 lines
2.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.Injection;
|
|
using MESClassLibrary.Model;
|
|
|
|
namespace MESClassLibrary.BLL.Inspection
|
|
{
|
|
public class InjectionBoxBLL
|
|
{
|
|
InjectionBoxDAL db=new InjectionBoxDAL();
|
|
|
|
public bool AddInfo(InjectionBoxModel md)
|
|
{
|
|
try
|
|
{
|
|
return db.AddInfo(md);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return false;
|
|
}
|
|
}
|
|
public bool UpdateBoxCount(string packageCode, int addCount)
|
|
{
|
|
try
|
|
{
|
|
return db.UpdateInfo(packageCode, addCount);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return false;
|
|
}
|
|
}
|
|
public bool UpdatePrinted(string packageCode)
|
|
{
|
|
try
|
|
{
|
|
return db.UpdatePrinted(packageCode);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return false;
|
|
}
|
|
}
|
|
public DataTable SeachInfoByBox(string partNo,string batchNo)
|
|
{
|
|
try
|
|
{
|
|
return db.SeachInfoByBox(partNo, batchNo);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public DataTable SearchBox(string BoxNo)
|
|
{
|
|
try
|
|
{
|
|
return db.SearchBox(BoxNo);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
public DataTable SearchUnBox(string stationID, string mould)
|
|
{
|
|
try
|
|
{
|
|
return db.SearchUnBox(stationID, mould);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|