Ejemplo n.º 1
0
        /// <summary>
        /// 动作设定
        /// </summary>
        public ActionResult ActionSetting()
        {
            ActionSettingModel model = new ActionSettingModel();
            var areaList             = AreaBLL.GetAreas();

            model.AreasSelectList = areaList.ToSelectListWithAll(m => GetSelectListItem(m.ID, m.AreaName));

            var ctrList = ControllerBLL.GetControllers();

            model.ControllersSelectList = ctrList.ToSelectListWithAll(m => GetSelectListItem(m.ID, m.ControllerName));

            model.SearchPage   = 1;
            model.AreaID       = -1;
            model.ControllerID = -1;
            model.PagedDatas   = ActionBLL.GetPagedActions(model, PageSize);

            return(PartialView("_ActionSetting", model));
        }
Ejemplo n.º 2
0
 private ActionResult GetActionPagedGridPV(ActionSettingModel model)
 {
     model.PagedDatas = ActionBLL.GetPagedActions(model, PageSize);
     return(PartialView("_ActionPagedGrid", model));
 }
Ejemplo n.º 3
0
 public ActionResult GetActionInfo(ActionSettingModel model)
 {
     return(GetActionPagedGridPV(model));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 获取动作信息分页数据
 /// </summary>
 public static AsiatekPagedList <ActionListModel> GetPagedActions(ActionSettingModel model, int pageSize)
 {
     return(GetPagedActions(pageSize, model.SearchPage, model.ActionName, model.ControllerID, model.AreaID));
 }