using System;
using System.Collections.Generic;
using QMAPP.BLL;
using QMAPP.Entity;
using QMAPP.FJC.DAL.Basic;
using QMAPP.FJC.DAL.EM;
using QMAPP.FJC.Entity;
using QMAPP.FJC.Entity.EM;
using QMFrameWork.Data;
using QMFrameWork.Log;
namespace QMAPP.FJC.BLL.EM
{
public class EmMeterReadingsBLL : BaseBLL
{
#region 获取信息
///
/// 获取信息
///
/// 条件
/// 信息
public DataResult Get(EmMeterReadings model)
{
DataResult result = new DataResult();
try
{
result.Result = new EmMeterReadingsDAL().Get(model);
}
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
#region 获取列表
///
/// 获取列表
///
/// 条件
/// 数据页
/// 数据页
public DataResult GetList(EmMeterReadings condition, DataPage page)
{
DataResult result = new DataResult();
try
{
DataPage dataPage = new EmMeterReadingsDAL().GetList(condition, page);
result.Result = dataPage;
}
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
///
/// 获取列表
///
/// 条件
/// 数据页
/// 数据页
public DataResult GetCountList(EmMeterReadings condition, DataPage page)
{
DataResult result = new DataResult();
try
{
DataPage dataPage = new EmMeterReadingsDAL().GetCountList(condition, page);
result.Result = dataPage;
}
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;
}
}
}