一厂MES,含注塑,喷涂,冲孔
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.

59 lines
1.4 KiB

3 months ago
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.ExchangeCenter;
using MESClassLibrary.Model;
namespace MESClassLibrary.BLL.ExchangeCenter
{
public class TESBomBLL
{
public bool AddInfo(TESBomModel md)
{
TESBomDAL da = new TESBomDAL();
try
{
return da.AddInfo(md);
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return false;
}
}
public DataTable Search()
{
TESBomDAL da=new TESBomDAL();
try
{
return da.Search();
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return null;
}
}
public bool updateFlag(string TaskID)
{
TESBomDAL da = new TESBomDAL();
try
{
return da.UpdateFlag(TaskID);
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return false;
}
}
}
}