using MESClassLibrary.BLL.Log; using MESClassLibrary.DAL; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; using System.Text; namespace MESClassLibrary.BLL.Painting { public class NotUpBarCodeDal { public DataTable NotUpBarCode() { DataTable res = null; try { string sql = @"SELECT [barCode] FROM [BBMPT].[dbo].[tmp_barCode] a WHERE a.barCode NOT in (SELECT DISTINCT barcode FROM dbo.tb_InspectResult v )"; res= SqlHelper.ExecuteDataset(SqlHelper.GetConnSting(), CommandType.Text, sql, null).Tables[0]; } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); } return res; } } }