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.
33 lines
818 B
33 lines
818 B
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.Weight
|
|
{
|
|
public class WeighDAL
|
|
{
|
|
/// <summary>
|
|
/// 查找最新的ID的信息
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public DataTable SearchInfo(string Conn)
|
|
{
|
|
try
|
|
{
|
|
string sql = @"select top 1 * from Table1 order by ID desc";
|
|
|
|
return SqlHelper.ExecuteDataset(Conn, CommandType.Text, sql, null).Tables[0];
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|