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.
 
 
 
 
 
 

61 lines
1.7 KiB

  1. using Learun.Application.OA.Gantt;
  2. using System.Web.Mvc;
  3. namespace Learun.Application.Web.Areas.LR_OAModule.Controllers
  4. {
  5. /// <summary>
  6. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  7. /// Copyright (c) 2013-2017
  8. /// 创建人:陈彬彬
  9. /// 日 期:2018.06.19
  10. /// 描 述:项目计划管理
  11. /// </summary>
  12. public class ProjectGanttController : MvcControllerBase
  13. {
  14. private JQueryGanttIBLL jQueryGanttIBLL = new JQueryGanttBLL();
  15. /// <summary>
  16. /// 管理页面
  17. /// </summary>
  18. /// <returns></returns>
  19. [HttpGet]
  20. public ActionResult Index()
  21. {
  22. return View();
  23. }
  24. /// <summary>
  25. /// 添加页面
  26. /// </summary>
  27. /// <returns></returns>
  28. [HttpGet]
  29. public ActionResult Form()
  30. {
  31. return View();
  32. }
  33. /// <summary>
  34. /// 获取数据
  35. /// </summary>
  36. /// <returns></returns>
  37. public ActionResult GetList(string queryJson)
  38. {
  39. var data = jQueryGanttIBLL.GetList(queryJson);
  40. return JsonResult(data);
  41. }
  42. #region 提交数据
  43. /// <summary>
  44. /// 保存(新增、修改)
  45. /// </summary>
  46. /// <param name="keyValue">主键值</param>
  47. /// <param name="entity">实体</param>
  48. /// <returns></returns>
  49. [HttpPost, ValidateAntiForgeryToken, AjaxOnly, ValidateInput(false)]
  50. public ActionResult SaveEntity(string keyValue, JQueryGanttEntity entity)
  51. {
  52. jQueryGanttIBLL.SaveEntity(keyValue, entity);
  53. return Success("保存成功!");
  54. }
  55. #endregion
  56. }
  57. }