using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HTIS.BLL
{
///
/// 获取盘点计划未完成状态(手持)
/// 作 者:郭兆福
/// 时 间:2017年09月29日
///
public class DictStockPlanNo : NSC.IService
{
///
/// 盘点计划
///
///
///
///
public NSC.NetServiceStruct ServiceFunction(Common.Data.UserAuthority userAuth, NSC.NetServiceStruct input)
{
try
{
QMAPP.FJC.BLL.Stocktaking.StocktakingBLL bll = new QMAPP.FJC.BLL.Stocktaking.StocktakingBLL();
List list = new List();
//接收手持或车载前端传递的参数,
string userID = input.Params["userID"].GetString();
QMAPP.Entity.DataResult result = new QMAPP.Entity.DataResult();
//将用户注册到BaseBLL类中,该动作是必须动作
bll.RegistLoginUser(userID);
string type = input.Params["stockPlanState"].GetString();
//获取类别
QMAPP.FJC.Entity.Stocktaking.Countingplaninfo searchModel = new QMAPP.FJC.Entity.Stocktaking.Countingplaninfo();
if (!string.IsNullOrEmpty(type))
{
searchModel.PLAN_STATE = type;
}
list = bll.GetAllList(searchModel);
list.Insert(0, new QMAPP.FJC.Entity.Stocktaking.Countingplaninfo());
input.Returns = new Dictionary();
input.Returns.Add("List", new NSC.ParameterStruct(list));
return input;
}
catch (Exception ex)
{
throw ex;
}
}
}
}