using System; using System.Collections.Generic; using QMAPP.BLL; using QMAPP.Entity; using QMAPP.FJC.BLL.Dict; using QMAPP.FJC.DAL.ProduceManage; using QMAPP.FJC.Entity.ProduceManage; using QMFrameWork.Data; using QMFrameWork.Log; using QMAPP.FJC.Entity; using QMAPP.MD.Entity.TianJin; using QMAPP.FJC.DAL.TianJin; using System.Data; namespace QMAPP.FJC.BLL.TianJin { /// /// 模块名称:库存日志信息 /// 作 者:张松男 /// 编写日期:2022年02月17日 /// public class MonitordataBLL : BaseBLL { #region 获取信息 /// /// 获取信息 /// /// 条件 /// 信息 public DataResult Get(Monitordata model) { DataResult result = new DataResult(); try { result.Result = new MonitordataDAL().Get(model); result.IsSuccess = true; } catch (Exception ex) { LogManager.LogHelper.Error(new LogInfo() { ErrorInfo = ex, Tag = ex.StackTrace, Info = "获取异常!" }); result.IsSuccess = false; result.Ex = ex; result.Msg = "获取异常"; } return result; } #endregion #region 获取列表 /// /// 获取列表 /// /// 条件 /// 数据页 /// 数据页 public DataResult GetList(Monitordata condition, DataPage page) { DataResult result = new DataResult(); try { DataPage dataPage = new MonitordataDAL().GetList(condition, page); result.IsSuccess = true; result.Result = dataPage; } catch (Exception ex) { LogManager.LogHelper.Error(new LogInfo() { ErrorInfo = ex, Tag = ex.StackTrace, Info = "获取列表异常!" }); result.IsSuccess = false; result.Ex = ex; result.Msg = "获取列表异常!"; } return result; } /// /// 获取列表 /// /// 条件 /// 全部集合 public List GetAllList() { try { //获取信息列表 return new MonitordataDAL().GetALL(); } catch (Exception ex) { LogManager.LogHelper.Error(new LogInfo() { ErrorInfo = ex, Tag = ex.StackTrace, Info = "获取列表异常!" }); throw ex; } } #endregion #region 导出数据 /// /// 获取导出的数据 /// /// 查询条件 /// 数据 public DataTable GetExportData(Monitordata model) { try { return new MonitordataDAL().GetExportData(model); } catch (Exception ex) { LogManager.LogHelper.Error(new LogInfo() { ErrorInfo = ex, Tag = ex.StackTrace, Info = "导出库存信息" }); throw ex; } } #endregion } }