You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

118 lines
3.2 KiB

  1. using Learun.Util;
  2. using System;
  3. using System.Collections.Generic;
  4. namespace Learun.Application.CRM
  5. {
  6. /// <summary>
  7. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  8. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  9. /// 创 建:超级管理员
  10. /// 日 期:2017-07-11 09:58
  11. /// 描 述:客户联系人
  12. /// </summary>
  13. public class CrmCustomerContactBLL : CrmCustomerContactIBLL
  14. {
  15. private CrmCustomerContactService crmCustomerContactService = new CrmCustomerContactService();
  16. #region 获取数据
  17. /// <summary>
  18. /// 获取列表
  19. /// </summary>
  20. /// <param name="queryJson">查询参数</param>
  21. /// <returns>返回列表</returns>
  22. public IEnumerable<CrmCustomerContactEntity> GetList(string queryJson)
  23. {
  24. try
  25. {
  26. return crmCustomerContactService.GetList(queryJson);
  27. }
  28. catch (Exception ex)
  29. {
  30. if (ex is ExceptionEx)
  31. {
  32. throw;
  33. }
  34. else
  35. {
  36. throw ExceptionEx.ThrowBusinessException(ex);
  37. }
  38. }
  39. }
  40. /// <summary>
  41. /// 获取实体
  42. /// </summary>
  43. /// <param name="keyValue">主键值</param>
  44. /// <returns></returns>
  45. public CrmCustomerContactEntity GetEntity(string keyValue)
  46. {
  47. try
  48. {
  49. return crmCustomerContactService.GetEntity(keyValue);
  50. }
  51. catch (Exception ex)
  52. {
  53. if (ex is ExceptionEx)
  54. {
  55. throw;
  56. }
  57. else
  58. {
  59. throw ExceptionEx.ThrowBusinessException(ex);
  60. }
  61. }
  62. }
  63. #endregion
  64. #region 提交数据
  65. /// <summary>
  66. /// 删除数据
  67. /// </summary>
  68. /// <param name="keyValue">主键</param>
  69. public void DeleteEntity(string keyValue)
  70. {
  71. try
  72. {
  73. crmCustomerContactService.DeleteEntity(keyValue);
  74. }
  75. catch (Exception ex)
  76. {
  77. if (ex is ExceptionEx)
  78. {
  79. throw;
  80. }
  81. else
  82. {
  83. throw ExceptionEx.ThrowBusinessException(ex);
  84. }
  85. }
  86. }
  87. /// <summary>
  88. /// 保存表单(新增、修改)
  89. /// </summary>
  90. /// <param name="keyValue">主键值</param>
  91. /// <param name="entity">实体对象</param>
  92. /// <returns></returns>
  93. public void SaveEntity(string keyValue, CrmCustomerContactEntity entity)
  94. {
  95. try
  96. {
  97. crmCustomerContactService.SaveEntity(keyValue, entity);
  98. }
  99. catch (Exception ex)
  100. {
  101. if (ex is ExceptionEx)
  102. {
  103. throw;
  104. }
  105. else
  106. {
  107. throw ExceptionEx.ThrowBusinessException(ex);
  108. }
  109. }
  110. }
  111. #endregion
  112. }
  113. }