using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CentralControl.BaseData;
using CommonFunc;
using System.Data;
using MySql.Data.MySqlClient;
namespace CentralControl.DBDAO
{
public class MESDBService
{
///
/// 从mes获取 扫描时间端内的条码信息
///
///
///
///
public static DataTable GetOffLineMaterialByMESView(string LineNo,string bdt,string edt)
{
string sql = @" select * from t_mes_finalscan where zd_bh='"+ LineNo + "' and create_date >='" + bdt + "' and create_date<='"+ edt + "' order by create_date ; ";
DataSet dtset = DbHelperToMES.Query(sql);
if (dtset != null && dtset.Tables.Count > 0 && dtset.Tables[0].Rows.Count > 0)
{
return dtset.Tables[0];
}
return null;
}
}
}