注塑喷涂
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.

57 lines
1.4 KiB

6 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;
using MESClassLibrary.DAL.Mistake247;
namespace MESClassLibrary.BLL.Mistake247
{
public class ToVisualBLL
{
ToVisualDAL da=new ToVisualDAL();
public bool AddInfo(string PartNo, string tableName)
{
try
{
return da.AddInfo(PartNo, tableName);
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return false;
}
}
public DataTable SearchInfoByPartNo(string PartNo, string tableName)
{
try
{
return da.SearchInfoByPartNo(PartNo, tableName);
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return null;
}
}
public bool IsVisual(string tableName)
{
try
{
return da.IsVisual(tableName);
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(),MethodBase.GetCurrentMethod());
return false;
}
}
}
}