UpAlctPolicyController.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using System;
  2. using System.Collections.Generic;
  3. using Microsoft.AspNetCore.Mvc;using WMS.BZWeb;
  4. using WMS.Info;
  5. using WMS.Core;
  6. using WMS.Util;
  7. namespace WMS.BZWeb
  8. {
  9. /// <summary>
  10. /// 描 述:功能模块控制器
  11. /// </summary>
  12. [Area("SysManager")]
  13. public class UpAlctPolicyController : MvcControllerBase
  14. {
  15. BillOrderOut bll = new BillOrderOut();
  16. /// <summary>
  17. /// 主页面
  18. /// <summary>
  19. /// <returns></returns>
  20. [HttpGet]
  21. public ActionResult Index()
  22. {
  23. return View();
  24. }
  25. /// <summary>
  26. /// 获取规则类型
  27. /// </summary>
  28. /// <returns></returns>
  29. [HttpGet]
  30. ////[AjaxOnly]
  31. public ActionResult GetTree(string parentId) {
  32. SysDataBLLCore bll = new SysDataBLLCore();
  33. var data = bll.GetOutInTree();
  34. return Success("", data);
  35. }
  36. /// <summary>
  37. /// 获取规则明细封装成对象
  38. /// </summary>
  39. /// <returns></returns>
  40. [HttpPost]
  41. ////[AjaxOnly]
  42. public ActionResult GetPolicyItem(string ID)
  43. {
  44. SysDataBLLCore bll = new SysDataBLLCore();
  45. var data = bll.GetPolicyItem(ID);
  46. return Success("", data);
  47. }
  48. /// <summary>
  49. /// 启用规则
  50. /// </summary>
  51. /// <returns></returns>
  52. [HttpPost]
  53. ////[AjaxOnly]
  54. public ActionResult UpEdit(string ID)
  55. {
  56. SysDataBLLCore bll = new SysDataBLLCore();
  57. bll.UpEdit(ID);
  58. return Success("", "操作成功");
  59. }
  60. }
  61. }