using System;
|
using System.Collections.Generic;
|
using System.Text;
|
using System.Data;
|
|
namespace BLL //逻辑层
|
{
|
public class ClsIF_Warehouse_View
|
{
|
/// <summary>
|
/// 根据过滤条件返回仓库列表
|
/// </summary>
|
/// <param name="sWhere">过滤条件</param>
|
/// <param name="sErr">错误信息</param>
|
/// <returns></returns>
|
public DataSet GetList(string sWhere, ref string sErr)
|
{
|
try
|
{
|
DAL.ClsIF_Warehouse_View dal = new DAL.ClsIF_Warehouse_View();
|
return dal.GetList(sWhere);
|
}
|
catch (Exception e)
|
{
|
sErr = sErr + "," + e.Message;
|
return null;
|
}
|
}
|
|
/// <summary>
|
/// 根据内码返回仓库信息
|
/// </summary>
|
/// <param name="sWhere">内码</param>
|
/// <param name="sErr">错误信息</param>
|
/// <returns></returns>
|
public Model.ClsGy_Warehouse_Model GetInfoByID(long sWhere, ref string sErr)
|
{
|
try
|
{
|
DAL.ClsIF_Warehouse_View dal = new DAL.ClsIF_Warehouse_View();
|
if (dal.GetInfoByID(sWhere))
|
{
|
return dal.omodel;
|
}
|
else
|
{
|
return null;
|
}
|
}
|
catch (Exception e)
|
{
|
sErr = sErr + "," + e.Message;
|
return null;
|
}
|
}
|
|
|
}
|
}
|