Esempio n. 1
0
        public BaseResponse <List <SysCatTree> > getTreelist(string fun)
        {
            BaseResponse <List <SysCatTree> > result = new BaseResponse <List <SysCatTree> >();

            try
            {
                result.result = SysCatTree.getTreeList(fun);
            }
            catch (Exception e) {
                result = SysException.getResult(result, e, fun);
            }
            return(result);
        }
Esempio n. 2
0
        public BaseResponse delCatTree(string Id)
        {
            BaseResponse result = new BaseResponse();

            try
            {
                SysCatTree tree = new SysCatTree(Id);
                tree.delete();
                result.msg = "删除成功";
            }
            catch (Exception e) {
                result = SysException.getResult(result, e, Id);
            }
            return(result);
        }
Esempio n. 3
0
        public BaseResponse <SysCatTree> editCatTree(VMTreeEditCatTreeRequest condtion)
        {
            BaseResponse <SysCatTree> result = new BaseResponse <SysCatTree>();

            try
            {
                result.result = SysCatTree.edit(condtion);
                result.msg    = "保存成功";
            }
            catch (SysException ex)
            {
                result = ex.getresult(result);
            }
            catch (Exception e) {
                result = SysException.getResult(result, e, condtion);
            }
            return(result);
        }