天津投入产出系统后端
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.

49 lines
1.8 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.BLL.Dict;
namespace HTIS.BLL
{
public class DictOpreatorBll : 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
{
QMAPP.FJC.BLL.Basic.OperatorInfoBLL bll = new QMAPP.FJC.BLL.Basic.OperatorInfoBLL();
List<QMAPP.FJC.Entity.Basic.OperatorInfo> list = new List<QMAPP.FJC.Entity.Basic.OperatorInfo>();
//接收手持或车载前端传递的参数,
string userID = input.Params["userID"].GetString();
QMAPP.Entity.DataResult result = new QMAPP.Entity.DataResult();
//将用户注册到BaseBLL类中,该动作是必须动作
bll.RegistLoginUser(userID);
string type = input.Params["processType"].GetString();
//获取类别
QMAPP.FJC.Entity.Basic.OperatorInfo searchModel = new QMAPP.FJC.Entity.Basic.OperatorInfo();
if (!string.IsNullOrEmpty(type))
{
//searchModel.PROCESSTYPE = type;
}
list = bll.GetAllList(searchModel);
list.Insert(0, new QMAPP.FJC.Entity.Basic.OperatorInfo());
input.Returns = new Dictionary<string, NSC.ParameterStruct>();
input.Returns.Add("List", new NSC.ParameterStruct(list));
return input;
}
catch (Exception ex)
{
throw ex;
}
}
}
}