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.

CrmCustomerIBLL.cs 1.9 KiB

4 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using Learun.Util;
  2. using System.Collections.Generic;
  3. namespace Learun.Application.CRM
  4. {
  5. /// <summary>
  6. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  7. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  8. /// 创 建:超级管理员
  9. /// 日 期:2017-07-11 09:43
  10. /// 描 述:客户管理
  11. /// </summary>
  12. public interface CrmCustomerIBLL
  13. {
  14. #region 获取数据
  15. /// <summary>
  16. /// 获取列表
  17. /// </summary>
  18. /// <returns></returns>
  19. IEnumerable<CrmCustomerEntity> GetList();
  20. /// <summary>
  21. /// 获取列表
  22. /// </summary>
  23. /// <param name="pagination">分页</param>
  24. /// <param name="queryJson">查询参数</param>
  25. /// <returns>返回分页列表</returns>
  26. IEnumerable<CrmCustomerEntity> GetPageList(Pagination pagination, string queryJson);
  27. /// <summary>
  28. /// 获取实体
  29. /// </summary>
  30. /// <param name="keyValue">主键值</param>
  31. /// <returns></returns>
  32. CrmCustomerEntity GetEntity(string keyValue);
  33. #endregion
  34. #region 验证数据
  35. /// <summary>
  36. /// 客户名称不能重复
  37. /// </summary>
  38. /// <param name="fullName">名称</param>
  39. /// <param name="keyValue">主键</param>
  40. /// <returns></returns>
  41. bool ExistFullName(string fullName, string keyValue);
  42. #endregion
  43. #region 提交数据
  44. /// <summary>
  45. /// 删除数据
  46. /// </summary>
  47. /// <param name="keyValue">主键</param>
  48. void DeleteEntity(string keyValue);
  49. /// <summary>
  50. /// 保存表单(新增、修改)
  51. /// </summary>
  52. /// <param name="keyValue">主键值</param>
  53. /// <param name="entity">实体对象</param>
  54. /// <returns></returns>
  55. void SaveEntity(string keyValue, CrmCustomerEntity entity);
  56. #endregion
  57. }
  58. }