studentBLL.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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-03-01 09:20
  14. /// 描 述:学生表
  15. /// </summary>
  16. public class studentBLL
  17. {
  18. private studentIService service = new studentService();
  19. #region 获取数据
  20. /// <summary>
  21. /// 获取列表
  22. /// </summary>
  23. /// <param name="pagination">分页</param>
  24. /// <param name="queryJson">查询参数</param>
  25. /// <returns>返回分页列表</returns>
  26. public IEnumerable<studentEntity> GetPageList(Pagination pagination, string queryJson)
  27. {
  28. return service.GetPageList(pagination, queryJson);
  29. }
  30. /// <summary>
  31. /// 获取列表
  32. /// </summary>
  33. /// <param name="queryJson">查询参数</param>
  34. /// <returns>返回列表</returns>
  35. public IEnumerable<studentEntity> GetList(string queryJson)
  36. {
  37. return service.GetList(queryJson);
  38. }
  39. /// <summary>
  40. /// 获取实体
  41. /// </summary>
  42. /// <param name="keyValue">主键值</param>
  43. /// <returns></returns>
  44. public studentEntity GetEntity(string keyValue)
  45. {
  46. return service.GetEntity(keyValue);
  47. }
  48. #endregion
  49. #region 提交数据
  50. /// <summary>
  51. /// 删除数据
  52. /// </summary>
  53. /// <param name="keyValue">主键</param>
  54. public void RemoveForm(string keyValue)
  55. {
  56. try
  57. {
  58. service.RemoveForm(keyValue);
  59. }
  60. catch (Exception)
  61. {
  62. throw;
  63. }
  64. }
  65. /// <summary>
  66. /// 保存表单(新增、修改)
  67. /// </summary>
  68. /// <param name="keyValue">主键值</param>
  69. /// <param name="entity">实体对象</param>
  70. /// <returns></returns>
  71. public void SaveForm(string keyValue, studentEntity entity)
  72. {
  73. try
  74. {
  75. service.SaveForm(keyValue, entity);
  76. }
  77. catch (Exception)
  78. {
  79. throw;
  80. }
  81. }
  82. #endregion
  83. }
  84. }