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.
47 lines
1.5 KiB
47 lines
1.5 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using QMAPP.MD.BLL;
|
|
using QMAPP.MD.Entity;
|
|
|
|
namespace HTIS.BLL
|
|
{
|
|
public class DictMaterialTypeBll : 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
|
|
{
|
|
|
|
MaterialBLL bll = new MaterialBLL();
|
|
List<MaterialClass> list = new List<MaterialClass>();
|
|
|
|
//接收手持或车载前端传递的参数,
|
|
string userID = input.Params["userID"].GetString();
|
|
QMAPP.Entity.DataResult result = new QMAPP.Entity.DataResult();
|
|
//将用户注册到BaseBLL类中,该动作是必须动作
|
|
bll.RegistLoginUser(userID);
|
|
|
|
//获取类别
|
|
MaterialClass searchModel = new MaterialClass();
|
|
|
|
list = bll.GetMaterialClassList(searchModel).Result;
|
|
//list.Insert(0, new MaterialClass());
|
|
input.Returns = new Dictionary<string, NSC.ParameterStruct>();
|
|
input.Returns.Add("List", new NSC.ParameterStruct(list));
|
|
return input;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|