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.
45 lines
1.6 KiB
45 lines
1.6 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using QMAPP.BLL.Dict;
|
|
using Model.Common;
|
|
namespace HTIS.BLL
|
|
{
|
|
public class DictXMLBll : NSC.IService
|
|
{
|
|
/// <summary>
|
|
/// 投料口信息
|
|
/// </summary>
|
|
/// <param name="userAuth"></param>
|
|
/// <param name="input"></param>
|
|
/// <returns></returns>
|
|
public NSC.NetServiceStruct ServiceFunction(Common.Data.UserAuthority userAuth, NSC.NetServiceStruct input)
|
|
{
|
|
try
|
|
{
|
|
List<ListItem> listItem = new List<ListItem>();
|
|
Dictionary<string, string> dicts = null;
|
|
QMAPP.FJC.BLL.Dict.DictManageBLL bll = new QMAPP.FJC.BLL.Dict.DictManageBLL();
|
|
string kind = input.Params["kind"].GetString();
|
|
dicts = bll.GetModelDictionary((QMAPP.FJC.BLL.Dict.DictKind)Enum.Parse(typeof(QMAPP.FJC.BLL.Dict.DictKind), kind));
|
|
foreach (string item in dicts.Keys)
|
|
{
|
|
listItem.Add(new ListItem(item, dicts[item]));
|
|
}
|
|
|
|
QMAPP.FJC.BLL.Basic.MachineInfoBLL machineInfoBLL = new QMAPP.FJC.BLL.Basic.MachineInfoBLL();
|
|
List<QMAPP.FJC.Entity.Basic.MachineInfo> list = new List<QMAPP.FJC.Entity.Basic.MachineInfo>();
|
|
|
|
|
|
input.Returns = new Dictionary<string, NSC.ParameterStruct>();
|
|
input.Returns.Add("List", new NSC.ParameterStruct(listItem));
|
|
return input;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|