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.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.LjMaterial;
|
|
|
|
|
|
|
|
|
|
namespace Mesnac.Action.ChemicalWeighing.LjDry
|
|
|
|
|
{
|
|
|
|
|
public class DrySettingDb:DBHelp
|
|
|
|
|
{
|
|
|
|
|
public static IList<MyNameValue> GetDry()
|
|
|
|
|
{
|
|
|
|
|
string sql = "select Id,Name from DrySetting ";
|
|
|
|
|
var dt = GetTable(sql);
|
|
|
|
|
IList<MyNameValue> ls = new List<MyNameValue>();
|
|
|
|
|
foreach (DataRow dr in dt.Rows)
|
|
|
|
|
{
|
|
|
|
|
ls.Add(new MyNameValue()
|
|
|
|
|
{
|
|
|
|
|
Id = Convert.ToInt32(dr[0].ToString()),
|
|
|
|
|
Name = dr[1].ToString()
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ls;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|