using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.BLL.Dict;
using QMAPP.MD.Entity;
namespace HTIS.BLL
{
public class DictMachineBll : NSC.IService
{
///
/// 仓库信息
///
///
///
///
public NSC.NetServiceStruct ServiceFunction(Common.Data.UserAuthority userAuth, NSC.NetServiceStruct input)
{
try
{
QMAPP.FJC.BLL.Basic.MachineInfoBLL machineInfoBLL = new QMAPP.FJC.BLL.Basic.MachineInfoBLL();
List list = new List();
//接收手持或车载前端传递的参数,
string userID = input.Params["userID"].GetString();
QMAPP.Entity.DataResult result = new QMAPP.Entity.DataResult();
//将用户注册到BaseBLL类中,该动作是必须动作
machineInfoBLL.RegistLoginUser(userID);
//string[] types = input.Params["workcellCode"].GetArray();
string types = input.Params["workcellCode"].GetString();
//获取类别
QMAPP.FJC.Entity.Basic.MachineInfo searchModel = new QMAPP.FJC.Entity.Basic.MachineInfo();
WorkCell workcellmodel = new WorkCell();
if (types != "")
{
workcellmodel.WORKCELL_CODE = types;
}
list = machineInfoBLL.GetMachineForOrderList(searchModel,workcellmodel);
list.Insert(0, new QMAPP.FJC.Entity.Basic.MachineInfo());
input.Returns = new Dictionary();
input.Returns.Add("List", new NSC.ParameterStruct(list));
return input;
}
catch (Exception ex)
{
throw ex;
}
}
}
}