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

60 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.TruckBox;
using MESClassLibrary.EFModel;
namespace MESClassLibrary.BLL.TruckBox
{
public class ScanRecordBLL
{
BasicBLL<tb_ScanRecord_OpenDoor> db = new BasicBLL<tb_ScanRecord_OpenDoor>();
public bool AddInfo(tb_ScanRecord_OpenDoor md)
{
try
{
return db.AddInfo(md);
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(),MethodBase.GetCurrentMethod());
return false;
}
}
public DataTable SearchInfo(string time1, string time2)
{
try
{
ScanRecordDAL da=new ScanRecordDAL();
return da.SearchInfo(time1, time2);
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(),MethodBase.GetCurrentMethod());
return null;
}
}
public string ScanCount(string startTime, string endTime)
{
try
{
ScanRecordDAL da = new ScanRecordDAL();
return da.ScanCount(startTime, endTime);
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return "0";
}
}
}
}