注塑喷涂
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.
 
 
 
 
 

38 lines
1.0 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MESClassLibrary.BLL.Log;
using MESClassLibrary.Model;
using System.Data;
using System.Data.SqlClient;
using System.Reflection;
namespace MESClassLibrary.DAL.BasicInfo
{
public class StationDAL
{
public static string TableName = "tb_Station";
public DataTable SearchInfoByNo(string station)
{
try
{
string sql = @"select * from " + TableName + " where StationNo=@StationNo";
SqlParameter[] param = new SqlParameter[1];
param[0] = new SqlParameter("@StationNo", SqlDbType.VarChar);
param[0].Value = station;
return SqlHelper.ExecuteDataset(SqlHelper.GetConnSting(), CommandType.Text, sql, param).Tables[0];
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return null;
}
}
}
}