|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- using Learun.Util;
- using System;
- using System.Collections.Generic;
- namespace Learun.Application.TwoDevelopment.SystemDemo
- {
- /// <summary>
- /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
- /// Copyright (c) 2013-2018 北京泉江科技有限公司
- /// 创建人:陈彬彬
- /// 日 期:2017.04.17
- /// 描 述:系统表单-请假单
- /// </summary>
- public class DemoleaveBLL : DemoleaveIBLL
- {
- private DemoleaveService demoleaveService = new DemoleaveService();
-
- #region 获取数据
- /// <summary>
- /// 获取请假数据列表
- /// </summary>
- /// <param name="pagination">分页</param>
- /// <returns></returns>
- public IEnumerable<DemoleaveEntity> GetPageList(Pagination pagination)
- {
- try
- {
- return demoleaveService.GetPageList(pagination);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
- /// <summary>
- /// 根据流程实例获取表单数据
- /// </summary>
- /// <param name="processId"></param>
- /// <returns></returns>
- public DemoleaveEntity GetEntity(string processId)
- {
- try
- {
- return demoleaveService.GetEntity(processId);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
- #endregion
-
- #region 提交数据
- /// <summary>
- /// 保存更新数据
- /// </summary>
- /// <param name="keyValue">主键</param>
- /// <param name="entity">实体对象</param>
- public void SaveEntity(string keyValue, DemoleaveEntity entity)
- {
- try
- {
- demoleaveService.SaveEntity(keyValue, entity);
- }
- catch (Exception ex)
- {
- if (ex is ExceptionEx)
- {
- throw;
- }
- else
- {
- throw ExceptionEx.ThrowBusinessException(ex);
- }
- }
- }
- #endregion
- }
- }
|