|
|
|
@ -15,7 +15,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl.DB
|
|
|
|
|
/// 获取干混机物料
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public List<MyNameValue> GetDryerMaterrial()
|
|
|
|
|
public static List<MyNameValue> GetDryerMaterrial()
|
|
|
|
|
{
|
|
|
|
|
var list = GetStockMaterrial(1);
|
|
|
|
|
list.RemoveAll(x => x.Id == 5);
|
|
|
|
@ -27,7 +27,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl.DB
|
|
|
|
|
/// 获取糊化机物料
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public List<MyNameValue> GetSiloMaterrial()
|
|
|
|
|
public static List<MyNameValue> GetSiloMaterrial()
|
|
|
|
|
{
|
|
|
|
|
var list1 = GetStockMaterrial(1);
|
|
|
|
|
list1 = list1.Where(x => x.Id == 5 || x.Id == 6).ToList();
|
|
|
|
@ -40,7 +40,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl.DB
|
|
|
|
|
/// <param name="id"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
public int GetCodeById(int id)
|
|
|
|
|
public static int GetCodeById(int id)
|
|
|
|
|
{
|
|
|
|
|
string sql = $"select Code from lj_stock_material where Id={id}";
|
|
|
|
|
var dataTable = DBHelp.GetTable(sql);
|
|
|
|
@ -50,7 +50,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl.DB
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private List<MyNameValue> GetStockMaterrial(int mtypId)
|
|
|
|
|
private static List<MyNameValue> GetStockMaterrial(int mtypId)
|
|
|
|
|
{
|
|
|
|
|
string sql = "select Id, Code, StockName, MTypeId, MTypeName, MId, MName, Remark from lj_stock_material";
|
|
|
|
|
|
|
|
|
|