using System;
|
using System.Collections.Generic;
|
using System.Text;
|
using System.Data;
|
|
namespace BLL
|
{
|
public class ClsIF_Source_View
|
{
|
/// <summary>
|
/// 根据过滤条件返回生产资源列表
|
/// </summary>
|
/// <param name="sWhere">过滤条件</param>
|
/// <param name="sErr">错误信息</param>
|
/// <returns></returns>
|
public DataSet GetList(string sWhere, ref string sErr)
|
{
|
try
|
{
|
DAL.ClsIF_Source_View dal = new DAL.ClsIF_Source_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_Source_Model GetInfoByNumber(string sWhere, ref string sErr)
|
{
|
try
|
{
|
DAL.ClsIF_Source_View dal = new DAL.ClsIF_Source_View();
|
if (dal.GetInfoByNumber(sWhere))
|
{
|
return dal.omodel;
|
}
|
else
|
{
|
return null;
|
}
|
}
|
catch (Exception e)
|
{
|
sErr = sErr + "," + e.Message;
|
return null;
|
}
|
}
|
|
/// <summary>
|
/// 根据名称返回生产资源信息
|
/// </summary>
|
/// <param name="sWhere">名称</param>
|
/// <param name="sErr">错误信息</param>
|
/// <returns></returns>
|
public Model.ClsGy_Source_Model GetInfoByName(string sWhere, ref string sErr)
|
{
|
try
|
{
|
DAL.ClsIF_Source_View dal = new DAL.ClsIF_Source_View();
|
if (dal.GetInfoByName(sWhere))
|
{
|
return dal.omodel;
|
}
|
else
|
{
|
return null;
|
}
|
}
|
catch (Exception e)
|
{
|
sErr = sErr + "," + e.Message;
|
return null;
|
}
|
}
|
|
/// <summary>
|
/// 根据内码返回生产资源信息
|
/// </summary>
|
/// <param name="sWhere">内码</param>
|
/// <param name="sErr">错误信息</param>
|
/// <returns></returns>
|
public Model.ClsGy_Source_Model GetInfoByID(long sWhere, ref string sErr)
|
{
|
try
|
{
|
DAL.ClsIF_Source_View dal = new DAL.ClsIF_Source_View();
|
if (dal.GetInfoByID(sWhere))
|
{
|
return dal.omodel;
|
}
|
else
|
{
|
return null;
|
}
|
}
|
catch (Exception e)
|
{
|
sErr = sErr + "," + e.Message;
|
return null;
|
}
|
}
|
|
}
|
}
|