using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Reflection;
using System.Text;
using MESClassLibrary.BLL.Log;

namespace MESClassLibrary.DAL.Injection
{
    public class PLCBreakDAL
    {
        public DataTable SearchBreak()
        {
            try
            {
                string sql = @"select * from tb_PLC_Break order by ID";

                return SqlHelper.ExecuteDataset(SqlHelper.GetConnSting(), CommandType.Text, sql, null).Tables[0];
            }
            catch (Exception ex)
            {
                LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
                return null;
            }
        }
    }
}