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.
46 lines
1.6 KiB
46 lines
1.6 KiB
4 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using QMAPP.FJC.BLL.Injection;
|
||
|
using QMAPP.FJC.Entity.Injection;
|
||
|
using QMAPP.Entity;
|
||
|
|
||
|
namespace HTIS.BLL
|
||
|
{
|
||
|
public class GetCheckInjection : NSC.IService
|
||
|
{
|
||
|
public NSC.NetServiceStruct ServiceFunction(Common.Data.UserAuthority userAuth, NSC.NetServiceStruct input)
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
InjectionRecorderBLL bll = new InjectionRecorderBLL();
|
||
|
DataResult<InjectionInfo> result = new DataResult<InjectionInfo>();
|
||
|
//接收手持或车载前端传递的参数,
|
||
|
string userID = input.Params["userID"].GetString();
|
||
|
|
||
|
InjectionInfo recorders = input.Params["recorder"].GetEntity<InjectionInfo>();
|
||
|
|
||
|
//将用户注册到BaseBLL类中,该动作是必须动作
|
||
|
bll.RegistLoginUser(userID);
|
||
|
//InjectionInfo materialInfo = bll.GetCheckInjection(recorders);
|
||
|
result = bll.GetCheckInjection(recorders);
|
||
|
|
||
|
if (result.Result == null)
|
||
|
{
|
||
|
result.IsSuccess = false;
|
||
|
result.Result = new InjectionInfo();
|
||
|
}
|
||
|
input.Returns = new Dictionary<string, NSC.ParameterStruct>();
|
||
|
input.Returns.Add("ResultModel", new NSC.ParameterStruct(result));//基本信息
|
||
|
input.Returns.Add("RECORD", new NSC.ParameterStruct(result.Result));
|
||
|
return input;
|
||
|
}
|
||
|
catch (Exception ex)
|
||
|
{
|
||
|
throw ex;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|