You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.0 KiB
C#

2 years ago
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
{
/// <summary>
/// 从mes获取 扫描时间端内的条码信息
/// </summary>
/// <param name="bdt"></param>
/// <param name="edt"></param>
/// <returns></returns>
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;
}
}
}