一厂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.

86 lines
2.2 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.Mistake247;
namespace MESClassLibrary.BLL.Mistake247
{
public class Plan247BLL
{
public DataTable SearhByOrderNo(string OrderNo)
{
Plan247DAL da = new Plan247DAL();
try
{
return da.SearhByOrderNo(OrderNo);
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return null;
}
}
public DataTable DetailOrderNo(string OrderNo)
{
Plan247DAL da = new Plan247DAL();
try
{
return da.DetailOrderNo(OrderNo);
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return null;
}
}
public DataTable IsHavePlan(string partNo1, string orderNo)
{
Plan247DAL da = new Plan247DAL();
try
{
return da.IsHavePlan(partNo1, orderNo);
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return null;
}
}
public DataTable SearhCountByOrderNo(string OrderNo, string partNo)
{
Plan247DAL da = new Plan247DAL();
try
{
return da.SearhCountByOrderNo(OrderNo, partNo);
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return null;
}
}
public bool UpdateCount(string partNo, string orderNo)
{
Plan247DAL da = new Plan247DAL();
try
{
return da.UpdateCount(partNo, orderNo);
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return false;
}
}
}
}