12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- using System.Data;
- using Microsoft.AspNetCore.Mvc;using WMS.BZWeb;
- using WMS.Info;
- using WMS.Util;
- using WMS.Core;
- using System.Collections.Generic;
-
- namespace WMS.BZWeb
- {
- /// <summary>
- /// 描 述:用户组
- /// </summary>
- [Area("ACLManager")]
- public class ACLConstController : MvcControllerBase
- {
- ACLConst bll = new ACLConst();
- /// <summary>
- /// 主页面
- /// <summary>
- /// <returns></returns>
- [HttpGet]
- public ActionResult Index()
- {
- return View();
- }
- /// <summary>
- /// 表单页
- /// <summary>
- /// <returns></returns>
- [HttpGet]
- public ActionResult ModuleBtnForm()
- {
- return View();
- }
- /// <summary>
- /// 获取列表数据
- /// <summary>
- /// <returns></returns>
- [HttpGet]
- ////[AjaxOnly]
- public ActionResult GetList(string keyword)
- {
- var data = bll.GetList(keyword);
- return Success("", data);
- }
- /// <summary>
- /// 删除实体数据
- /// <param name="keyValue">主键</param>
- /// <summary>
- /// <returns></returns>
- [HttpPost]
- ////[AjaxOnly]
- public ActionResult DeleteForm(string keyValue)
- {
- bll.DeleteEntity(keyValue);
- return Success("删除成功。");
- }
- /// <summary>
- /// 保存实体数据(新增、修改)
- /// <param name="keyValue">主键</param>
- /// <summary>
- /// <returns></returns>
- [HttpPost]
- ////[AjaxOnly]
- public ActionResult SaveWebACLConst()
- {
- LoginUserInfo LoginUser = LoginBLLCore.GetLoginUser();
- bll.SaveWebACLConst(LoginUser);
- return Success("保存成功!");
- }
- [HttpPost]
- ////[AjaxOnly]
- public ActionResult SaveWebACLBtnConst(string KeyValue, string acllist)
- {
- LoginUserInfo LoginUser = LoginBLLCore.GetLoginUser();
- bll.SaveWebACLBtnConst(LoginUser, KeyValue, acllist.ToObject<List<ACL_ACLCONST>>());
- return Success("保存成功!");
- }
- }
- }
|