using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.BLL;
using QMAPP.KB.Entity;
using QMFrameWork.Data;
using QMFrameWork.Log;
using QMAPP.FJC.Entity;
using QMAPP.FJC.Entity.WIPManage;
using QMAPP.FJC.DAL.WIPManage;
using QMAPP.FJC.BLL.Dict;
using System.Data;
namespace QMAPP.FJC.BLL.WIPManage
{
///
/// 模块编号:M7-2
/// 作 用:在制品入库信息
/// 作 者:王济
/// 编写日期:2015年07月07日
///
public class WIPInRecorderBLL : BaseBLL
{
#region 获取列表
///
/// 获取列表
///
/// 条件
/// 数据页
/// 数据页
public DataResult GetList(WIPInRecorder condition, DataPage page)
{
DataResult result = new DataResult();
try
{
DataPage dataPage = new WIPInRecorderDAL().GetList(condition, page);
List materielList = dataPage.Result as List;
result.Result = dataPage;
result.IsSuccess = true;
return result;
}
catch (Exception ex)
{
LogManager.LogHelper.Error(new LogInfo()
{
ErrorInfo = ex,
Tag = ex.StackTrace,
Info = "在制品库存逻辑层-获取列表!"
});
result.IsSuccess = false;
result.Msg = Resource.SystemException;
throw ex;
}
}
#endregion
#region 导出数据
///
/// 获取导出的数据
///
/// 查询条件
/// 数据
public DataResult GetExportData(WIPInRecorder model)
{
DataResult result = new DataResult();
try
{
DataTable dt = new WIPInRecorderDAL().GetExportData(model);
result.Result = dt;
}
catch (Exception ex)
{
LogManager.LogHelper.Error(new LogInfo()
{
ErrorInfo = ex,
Tag = ex.StackTrace,
Info = "在制品入库信息逻辑层-导出数据!"
});
result.IsSuccess = false;
result.Msg = Resource.SystemException;
throw ex;
}
result.IsSuccess = true;
return result;
}
#endregion
}
}