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.
101 lines
2.7 KiB
101 lines
2.7 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Data.SqlClient;
|
|
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 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;
|
|
}
|
|
}
|
|
|
|
public DataTable SearchPlanIDByOrderNo(string partNo, string orderNo)
|
|
{
|
|
Plan247DAL da = new Plan247DAL();
|
|
try
|
|
{
|
|
return da.SearchPlanIDByOrderNo(partNo, orderNo);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|