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

63 lines
1.9 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.FJC.BLL.Operation;
using QMAPP.MD.BLL;
using QMAPP.Entity;
using QMAPP.MD.Entity;
namespace HTIS.BLL
{
public class CheckRackCodeBll : 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();
DataResult<Material> result = new DataResult<Material>();
//接收手持或车载前端传递的参数,
string userID = input.Params["userID"].GetString();
//零件号计划表名T_MD_MATERIAL
//Material recorders = input.Params["recorder"].GetEntity<Material>();
string materialcode = input.Params["materialCode"].GetString();
Material recorders = new Material();
if (!string.IsNullOrEmpty(materialcode))
{
recorders.MATERIAL_CODE = materialcode;
}
//将用户注册到BaseBLL类中,该动作是必须动作
bll.RegistLoginUser(userID);
result = bll.Get(recorders);
if (result.Result == null)
{
result.IsSuccess = false;
}
input.Returns = new Dictionary<string, NSC.ParameterStruct>();
input.Returns.Add("ResultModel", new NSC.ParameterStruct(result));//基本信息
input.Returns.Count();
return input;
}
catch (Exception ex)
{
throw ex;
}
}
}
}