Exemplo n.º 1
0
        public ActionResult GetPosLevelCheckedTree()
        {
            bool isCheckAll = false;

            isCheckAll = Model_SYS_MENU.HasPermission("Scripts", "SYS_MEMBER_POS3", "List", HttpMethod.Get);
            return(Content(Model_SYS_POSLEVEL_DIC.GetPosLevelCheckedTree(oc.CurrentUser.SYS_DEPT.DEPT_CODE, oc.CurrentUser.SYS_DEPT.PARENT_CODE, isCheckAll)));
        }
Exemplo n.º 2
0
        public ActionResult Index()
        {
            string ControllerUrl = "/api/SYS/SYS_MEMBER/";
            var    viewModel     = new
            {
                Permission = new//权限
                {
                    a_list = Model_SYS_MENU.HasPermission("SYS", "SYS_MEMBER", "List", HttpMethod.Post),
                    a_add  = Model_SYS_MENU.HasPermission("SYS", "SYS_MEMBER", "Add", HttpMethod.Post),
                    a_edit = Model_SYS_MENU.HasPermission("SYS", "SYS_MEMBER", "Edit", HttpMethod.Get),
                    a_del  = Model_SYS_MENU.HasPermission("SYS", "SYS_MEMBER", "Del", HttpMethod.Get),
                    //a_excelin = Model_SYS_MENU.HasPermission("SYS", "SYS_MEMBER", "List", HttpMethod.Post),
                    a_excelout = Model_SYS_MENU.HasPermission("SYS", "SYS_MEMBER", "List", HttpMethod.Post),
                },
                resx = new
                {
                    listTitle   = "您没有【查看人员】权限",
                    addTitle    = "您没有【新增人员】权限",
                    editTitle   = "您没有【编辑人员】权限!",
                    deleteTitle = "您没有【删除人员】权限!",
                },
                urls = new//请求URL
                {
                    save     = ControllerUrl + "Save",
                    list     = ControllerUrl + "List",
                    edit     = ControllerUrl + "Edit",
                    del      = ControllerUrl + "Del",
                    writexls = ControllerUrl + "WirteExcel",
                    //readxls = ControllerUrl + "ReadXls",
                    dataGgridName = "data_grid",   //列表ID
                    dataGgridType = "datagrid",    //列表类型
                    dataAddName   = "data_add",    //增加窗口
                    dataFormName  = "DataForm",    //提交表单
                },
                searchForm = new VIEW_SYS_MEMBER() //查询
                {
                },
                addForm = new VIEW_SYS_MEMBER()
                {                                                                                                                //添加修改
                },
                extForm = new                                                                                                    //扩展类
                {
                    extA = Model_SYS_DEPT.GetMyDEPTTree(oc.CurrentUser.SYS_DEPT.DEPT_CODE, oc.CurrentUser.SYS_DEPT.PARENT_CODE), //部门列表
                    extB = Model_SYS_INTELLIGENCE_DIC.GetIntelligenceDic(),                                                      //资质
                    //extC = Model_SYS_POSLEVEL_DIC.GetPosLevelDic(oc.CurrentUser.SYS_DEPT.DEPT_CODE,oc.CurrentUser.SYS_DEPT.PARENT_CODE),//级别
                    extC = Model_SYS_POSLEVEL_DIC.GetPosLevelDic(),                                                              //级别
                    extE = new List <EasyUIComBoBoxNode>()                                                                       //手机状态
                }
            };

            return(View(viewModel));
        }