Base_ModuleBLL.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. using LeaRun.Application.Entity.BaseManage;
  2. using LeaRun.Application.IService.BaseManage;
  3. using LeaRun.Application.Service.BaseManage;
  4. using LeaRun.Util.WebControl;
  5. using System.Collections.Generic;
  6. using System;
  7. namespace LeaRun.Application.Busines.BaseManage
  8. {
  9. /// <summary>
  10. /// 版 本 6.1
  11. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  12. /// 创 建:超级管理员
  13. /// 日 期:2017-02-22 21:03
  14. /// 描 述:系统功能表
  15. /// </summary>
  16. public class Base_ModuleBLL
  17. {
  18. private Base_ModuleIService service = new Base_ModuleService();
  19. #region 获取数据
  20. /// <summary>
  21. /// 获取列表
  22. /// </summary>
  23. /// <param name="queryJson">查询参数</param>
  24. /// <returns>返回列表</returns>
  25. public IEnumerable<Base_ModuleEntity> GetList(string queryJson)
  26. {
  27. return service.GetList(queryJson);
  28. }
  29. /// <summary>
  30. /// 获取实体
  31. /// </summary>
  32. /// <param name="keyValue">主键值</param>
  33. /// <returns></returns>
  34. public Base_ModuleEntity GetEntity(string keyValue)
  35. {
  36. return service.GetEntity(keyValue);
  37. }
  38. #endregion
  39. #region 提交数据
  40. /// <summary>
  41. /// 删除数据
  42. /// </summary>
  43. /// <param name="keyValue">主键</param>
  44. public void RemoveForm(string keyValue)
  45. {
  46. try
  47. {
  48. service.RemoveForm(keyValue);
  49. }
  50. catch (Exception)
  51. {
  52. throw;
  53. }
  54. }
  55. /// <summary>
  56. /// 保存表单(新增、修改)
  57. /// </summary>
  58. /// <param name="keyValue">主键值</param>
  59. /// <param name="entity">实体对象</param>
  60. /// <returns></returns>
  61. public void SaveForm(string keyValue, Base_ModuleEntity entity)
  62. {
  63. try
  64. {
  65. service.SaveForm(keyValue, entity);
  66. }
  67. catch (Exception)
  68. {
  69. throw;
  70. }
  71. }
  72. #endregion
  73. }
  74. }