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