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

48 lines
1.6 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.Entity;
using HTIS.Model;
using QMFrameWork.Common.Util;
using QMAPP.FJC.BLL.Injection;
using QMAPP.FJC.Entity.Injection;
using QMAPP.MD.Entity;
using QMAPP.MD.DAL;
namespace HTIS.BLL
{
public class SaveInjection : NSC.IService
{
public NSC.NetServiceStruct ServiceFunction(Common.Data.UserAuthority userAuth, NSC.NetServiceStruct input)
{
try
{
InjectionRecorderBLL bll = new InjectionRecorderBLL();
DataResult result = new DataResult();
//接收手持或车载前端传递的参数,
string userID = input.Params["userID"].GetString();
InjectionInfo recorders = input.Params["recorder"].GetEntity<InjectionInfo>();
recorders.CREATEUSER = userID;
recorders.UPDATEUSER = userID;
//Material material = new MaterialDAL().Get(new Material { MATERIAL_CODE = recorders.MATERIAL_CODE });
//recorders.MATERIAL_TYPE = material.MATERIAL_TYPE_CODE;
//将用户注册到BaseBLL类中,该动作是必须动作
bll.RegistLoginUser(userID);
result = bll.InsertNew(recorders);
input.Returns = new Dictionary<string, NSC.ParameterStruct>();
input.Returns.Add("ResultModel", new NSC.ParameterStruct(result));//基本信息
return input;
}
catch (Exception ex)
{
throw ex;
}
}
}
}