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.2 KiB
83 lines
2.2 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.BasicInfo;
|
|
using MESClassLibrary.Model;
|
|
|
|
namespace MESClassLibrary.BLL.BasicInfo
|
|
{
|
|
public class ProductOfInjectionBLL
|
|
{
|
|
ProductOfInjectionDAL db=new ProductOfInjectionDAL();
|
|
|
|
public bool Add_Info(ProductOfInjectionModel md)
|
|
{
|
|
try
|
|
{
|
|
return db.AddInfo(md);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public DataTable SearchCountByInfo(string station, string date, string classname, string StockNo,string partno)
|
|
{
|
|
try
|
|
{
|
|
return db.SearchCountByInfo(station,date,classname,StockNo,partno);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public bool Update_Info(ProductOfInjectionModel md)
|
|
{
|
|
try
|
|
{
|
|
return db.UpdateInfo(md);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public bool UpdateBad_Info(ProductOfInjectionModel md)
|
|
{
|
|
try
|
|
{
|
|
return db.UpdteBadInfo(md);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public bool updateProductCount(ProductOfInjectionModel md)
|
|
{
|
|
try
|
|
{
|
|
return db.updateProductCount(md);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|