using Learun.Util; using System; using System.Collections.Generic; namespace Learun.Application.OA.Gantt { /// /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 /// Copyright (c) 2013-2017 /// 创建人:陈彬彬 /// 日 期:2018.06.20 /// 描 述:项目计划 /// public class JQueryGanttBLL : JQueryGanttIBLL { private JQueryGanttService jQueryGanttService = new JQueryGanttService(); #region 获取数据 /// /// 获取甘特图数据 /// /// 分页参数 /// 关键词 /// public IEnumerable GetList(string queryJson) { try { return jQueryGanttService.GetList(queryJson); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } /// /// 获取甘特图实体 /// /// 主键 /// public JQueryGanttEntity GetEntity(string keyValue) { try { return jQueryGanttService.GetEntity(keyValue); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } #endregion #region 提交数据 /// /// 删除 /// /// 主键 public void DeleteEntity(string keyValue) { try { jQueryGanttService.DeleteEntity(keyValue); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } /// /// 保存(新增、修改) /// /// 主键值 /// 邮件发送实体 /// public void SaveEntity(string keyValue, JQueryGanttEntity entity) { try { jQueryGanttService.SaveEntity(keyValue, entity); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } #endregion } }