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; } } } }