ACLConstController.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. using System.Data;
  2. using Microsoft.AspNetCore.Mvc;using WMS.BZWeb;
  3. using WMS.Info;
  4. using WMS.Util;
  5. using WMS.Core;
  6. using System.Collections.Generic;
  7. namespace WMS.BZWeb
  8. {
  9. /// <summary>
  10. /// 描 述:用户组
  11. /// </summary>
  12. [Area("ACLManager")]
  13. public class ACLConstController : MvcControllerBase
  14. {
  15. ACLConst bll = new ACLConst();
  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. public ActionResult ModuleBtnForm()
  31. {
  32. return View();
  33. }
  34. /// <summary>
  35. /// 获取列表数据
  36. /// <summary>
  37. /// <returns></returns>
  38. [HttpGet]
  39. ////[AjaxOnly]
  40. public ActionResult GetList(string keyword)
  41. {
  42. var data = bll.GetList(keyword);
  43. return Success("", data);
  44. }
  45. /// <summary>
  46. /// 删除实体数据
  47. /// <param name="keyValue">主键</param>
  48. /// <summary>
  49. /// <returns></returns>
  50. [HttpPost]
  51. ////[AjaxOnly]
  52. public ActionResult DeleteForm(string keyValue)
  53. {
  54. bll.DeleteEntity(keyValue);
  55. return Success("删除成功。");
  56. }
  57. /// <summary>
  58. /// 保存实体数据(新增、修改)
  59. /// <param name="keyValue">主键</param>
  60. /// <summary>
  61. /// <returns></returns>
  62. [HttpPost]
  63. ////[AjaxOnly]
  64. public ActionResult SaveWebACLConst()
  65. {
  66. LoginUserInfo LoginUser = LoginBLLCore.GetLoginUser();
  67. bll.SaveWebACLConst(LoginUser);
  68. return Success("保存成功!");
  69. }
  70. [HttpPost]
  71. ////[AjaxOnly]
  72. public ActionResult SaveWebACLBtnConst(string KeyValue, string acllist)
  73. {
  74. LoginUserInfo LoginUser = LoginBLLCore.GetLoginUser();
  75. bll.SaveWebACLBtnConst(LoginUser, KeyValue, acllist.ToObject<List<ACL_ACLCONST>>());
  76. return Success("保存成功!");
  77. }
  78. }
  79. }