using Learun.Util; using System; using System.Collections.Generic; namespace Learun.Application.CRM { /// /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 /// Copyright (c) 2013-2018 北京泉江科技有限公司 /// 创建人:陈彬彬 /// 日 期:2017.03.09 /// 描 述:订单管理 /// public class CrmOrderBLL : CrmOrderIBLL { private CrmOrderService crmOrderService = new CrmOrderService(); #region 获取数据 /// /// 订单列表 /// /// public IEnumerable GetPageList(Pagination pagination, string queryJson, string custmerQuerySql) { try { return crmOrderService.GetPageList(pagination, queryJson, custmerQuerySql); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } /// /// 获取订单信息主键 /// /// 主键 /// public CrmOrderEntity GetCrmOrderEntity(string keyValue) { try { return crmOrderService.GetCrmOrderEntity(keyValue); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } /// /// 获取订单产品明细数据 /// /// 订单主键 /// public IEnumerable GetCrmOrderProductEntity(string orderId) { try { return crmOrderService.GetCrmOrderProductEntity(orderId); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } #endregion #region 提交数据 /// /// 删除数据 /// /// 主键 public void DeleteEntity(string keyValue) { try { crmOrderService.DeleteEntity(keyValue); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } /// /// 保存表单(新增、修改) /// /// 主键值 /// 实体对象 /// 明细实体对象 /// public void SaveEntity(string keyValue, CrmOrderEntity crmOrderEntity, List crmOrderProductList) { try { crmOrderService.SaveEntity(keyValue, crmOrderEntity, crmOrderProductList); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } #endregion } }