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

43 lines
1.5 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.FJC.BLL.Stocktaking;
using QMAPP.Entity;
using QMAPP.FJC.Entity.Stocktaking;
using QMAPP.FJC.Web.Models.Stocktaking;
namespace HTIS.BLL
{
public class SaveStocktakeBll : NSC.IService
{
public NSC.NetServiceStruct ServiceFunction(Common.Data.UserAuthority userAuth, NSC.NetServiceStruct input)
{
try
{
StocktakingBLL bll = new StocktakingBLL();
DataResult<CountSheetInfo> result = new DataResult<CountSheetInfo>();
//接收手持或车载前端传递的参数,
string userID = input.Params["userID"].GetString();
//盘点计划表名Countingplaninfo
CountSheetInfo recorders = input.Params["recorder"].GetEntity<CountSheetInfo>();
recorders.CREATEUSER = userID;
recorders.UPDATEUSER = userID;
//将用户注册到BaseBLL类中,该动作是必须动作
bll.RegistLoginUser(userID);
result = bll.InsertCountSheet(recorders);
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;
}
}
}
}