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.
52 lines
1.5 KiB
52 lines
1.5 KiB
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.Injection;
|
|
|
|
namespace MESClassLibrary.BLL.Injection
|
|
{
|
|
public class PLCBreakBLL
|
|
{
|
|
PLCBreakDAL da = new PLCBreakDAL();
|
|
|
|
public DataTable SearchBreak()
|
|
{
|
|
try
|
|
{
|
|
return da.SearchBreak();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 记录接收到PLC 信号的记录
|
|
/// </summary>
|
|
/// <param name="stationNo"></param>
|
|
/// <param name="TransactionID"></param>
|
|
/// <param name="NumItems"></param>
|
|
/// <param name="partCode1"></param>
|
|
/// <param name="partCode2"></param>
|
|
/// <param name="planCode"></param>
|
|
/// <returns></returns>
|
|
public bool SavePlcReceive(string stationNo, int TransactionID, int NumItems, string partCode1, string planCode, string pageType)
|
|
{
|
|
try
|
|
{
|
|
return da.SavePlcReceive(stationNo, TransactionID, NumItems, partCode1, planCode, pageType);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return false ;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|