using HH.WMS.DAL.Algorithm;
using HH.WMS.DAL.Common;
using HH.WMS.Entitys;
using HH.WMS.Entitys.Algorithm;
using HH.WMS.Entitys.Basic;
using HH.WMS.Entitys.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HH.WMS.BLL.Common
{
public class TN_WM_MONGOBLL : BaseBLL
{
#region 判断mongo中是否存在该条记录
///
/// 判断mongo中是否存在该条记录
///
///
/// 字段值
/// 字段名称
/// 表名
///
public OperateResult IsExistsMongo(string fieldValue, string fieldName, string collectionName)
{
return CreateDAL().IsExistsMongo(fieldValue, fieldName, collectionName);
}
#endregion
#region 新增一个集合到mongo数据库
///
/// 新增一个集合到mongo数据库
///
/// 实体类
/// 实体类集合数据
/// 对象名称
///
public OperateResult AddList(List lstEntity, string collectionName)
{
return CreateDAL().AddList(lstEntity, collectionName);
}
#endregion
#region 根据仓库编码删除
///
/// 根据仓库编码删除
///
///
/// 字段值
/// 字段名称
/// 表名
///
/// [HanHe(XDL)] CREATED 2018/06/13
public OperateResult RemoveData(string fieldValue, string fieldName, string collectionName)
{
return CreateDAL().RemoveData(fieldValue, fieldName, collectionName);
}
#endregion
#region 分页获取数据
public List GetXmlList(SearchModel searchModel, out int total)
{
return CreateDAL().GetXmlList(searchModel, out total);
}
#endregion
#region
///
/// 根据仓库获得所有库区
///
///
///
///
/// [HanHe(LT)] CREATED 2018/8/13
public List GetList(string stockCode, string type)
{
return CreateDAL().GetList(stockCode, type);
}
#endregion
#region 根据库区编码获取仓库信息
///
/// 根据库区编码获取仓库信息
///
/// 仓库编码
///
public AutoBomStockAreaEntity GetStockArea(string areaCode)
{
AutoBomStockAreaEntity areaentity = CreateDAL().GetModel(areaCode);//获取库区名称
return areaentity;
}
#endregion
#region 根据编码删除
///
/// 根据编码删除
///
///
/// 字段值
/// 字段名称
/// 表名
///
/// [HanHe(XDL)] CREATED 2018/06/13
public OperateResult RemoveDataByCode(string fieldValue, string fieldName, string collectionName)
{
return CreateDAL().RemoveDataByCode(fieldValue, fieldName, collectionName);
}
#endregion
#region 获取仓库信息
///
/// 获取仓库信息
///
/// 字段名称
/// 输入值
///
/// [HanHe(LT)] CREATED 2018/7/5
public TN_AB_STOCKEntity GetStockentity(string fieldName, string inputValue)
{
return CreateDAL().GetStockentity(fieldName, inputValue);
}
#endregion
#region 获取虚拟库区
///
/// 根据仓库获得所有库区
///
///
/// [HanHe(LT)] CREATED 2018/12/22
public List GetXNAreaList(string stockCode, string areaCode, string type)
{
return CreateDAL().GetXNAreaList(stockCode, areaCode, type);
}
#endregion
}
}