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