Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

FD_BudgetFileController.cs 3.8 KiB

vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. using Learun.Util;
  2. using System.Data;
  3. using Learun.Application.TwoDevelopment.ReceiveSendFeeManagement;
  4. using System.Web.Mvc;
  5. using System.Collections.Generic;
  6. namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers
  7. {
  8. /// <summary>
  9. /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
  10. /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  11. /// 创 建:超级管理员
  12. /// 日 期:2021-08-11 11:57
  13. /// 描 述:基础信息采集
  14. /// </summary>
  15. public class FD_BudgetFileController : MvcControllerBase
  16. {
  17. private FD_BudgetFileIBLL fD_BudgetFileIBLL = new FD_BudgetFileBLL();
  18. #region 视图功能
  19. /// <summary>
  20. /// 主页面
  21. /// <summary>
  22. /// <returns></returns>
  23. [HttpGet]
  24. public ActionResult Index()
  25. {
  26. return View();
  27. }
  28. /// <summary>
  29. /// 表单页
  30. /// <summary>
  31. /// <returns></returns>
  32. [HttpGet]
  33. public ActionResult Form()
  34. {
  35. return View();
  36. }
  37. #endregion
  38. #region 获取数据
  39. /// <summary>
  40. /// 获取年度下拉框数据
  41. /// </summary>
  42. /// <returns></returns>
  43. [HttpGet]
  44. [AjaxOnly]
  45. public ActionResult GetAcademicYear()
  46. {
  47. var data = WebHelper.GenerateNearByAcademicTwo();
  48. return Success(data);
  49. }
  50. /// <summary>
  51. /// 获取页面显示列表数据
  52. /// </summary>
  53. /// <param name="pagination">分页参数</param>
  54. /// <param name="queryJson">查询参数</param>
  55. /// <returns></returns>
  56. [HttpGet]
  57. [AjaxOnly]
  58. public ActionResult GetPageList(string pagination, string queryJson)
  59. {
  60. Pagination paginationobj = pagination.ToObject<Pagination>();
  61. var data = fD_BudgetFileIBLL.GetPageList(paginationobj, queryJson);
  62. var jsonData = new
  63. {
  64. rows = data,
  65. total = paginationobj.total,
  66. page = paginationobj.page,
  67. records = paginationobj.records
  68. };
  69. return Success(jsonData);
  70. }
  71. /// <summary>
  72. /// 获取表单数据
  73. /// </summary>
  74. /// <param name="keyValue">主键</param>
  75. /// <returns></returns>
  76. [HttpGet]
  77. [AjaxOnly]
  78. public ActionResult GetFormData(string keyValue)
  79. {
  80. var FD_BudgetFileData = fD_BudgetFileIBLL.GetFD_BudgetFileEntity( keyValue );
  81. var jsonData = new {
  82. FD_BudgetFile = FD_BudgetFileData,
  83. };
  84. return Success(jsonData);
  85. }
  86. #endregion
  87. #region 提交数据
  88. /// <summary>
  89. /// 删除实体数据
  90. /// </summary>
  91. /// <param name="keyValue">主键</param>
  92. /// <returns></returns>
  93. [HttpPost]
  94. [AjaxOnly]
  95. public ActionResult DeleteForm(string keyValue)
  96. {
  97. fD_BudgetFileIBLL.DeleteEntity(keyValue);
  98. return Success("删除成功!");
  99. }
  100. /// <summary>
  101. /// 保存实体数据(新增、修改)
  102. /// </summary>
  103. /// <param name="keyValue">主键</param>
  104. /// <param name="strEntity">实体</param>
  105. /// <returns></returns>
  106. [HttpPost]
  107. [ValidateAntiForgeryToken]
  108. [AjaxOnly]
  109. public ActionResult SaveForm(string keyValue, string strEntity)
  110. {
  111. FD_BudgetFileEntity entity = strEntity.ToObject<FD_BudgetFileEntity>();
  112. fD_BudgetFileIBLL.SaveEntity(keyValue,entity);
  113. if (string.IsNullOrEmpty(keyValue))
  114. {
  115. }
  116. return Success("保存成功!");
  117. }
  118. #endregion
  119. }
  120. }