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.
83 lines
2.0 KiB
83 lines
2.0 KiB
3 months ago
|
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.ZPPlan;
|
||
|
using MESClassLibrary.Model;
|
||
|
|
||
|
namespace MESClassLibrary.BLL.ZPPlan
|
||
|
{
|
||
|
public class ZPRecordBLL
|
||
|
{
|
||
|
ZPRecordDAL da=new ZPRecordDAL();
|
||
|
|
||
|
public bool AddInfo(ZPRecordModel md)
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
return da.AddInfo(md);
|
||
|
}
|
||
|
catch (Exception ex)
|
||
|
{
|
||
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public DataTable SearchInfo(string barCode)
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
return da.SearchInfo(barCode);
|
||
|
}
|
||
|
catch (Exception ex)
|
||
|
{
|
||
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public DataTable SearchPrint(string stockNo)
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
return da.SearchPrint(stockNo);
|
||
|
}
|
||
|
catch (Exception ex)
|
||
|
{
|
||
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public DataTable SearchBarCode(string stockNo,string batch)
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
return da.SearchBarCode(stockNo, batch);
|
||
|
}
|
||
|
catch (Exception ex)
|
||
|
{
|
||
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public bool UpdatePrint(ZPRecordModel md)
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
return da.UpdatePrint(md);
|
||
|
}
|
||
|
catch (Exception ex)
|
||
|
{
|
||
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|