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