Example #1
0
        public string page(int nowPage, int pageCount, string code, string name, string type)
        {
            try
            {
                UserInfoService us             = new UserInfoService();
                string          quanxian_save1 = us.new_quanxian("sel", "BOM");
                if (quanxian_save1 != null && quanxian_save1.Length > 0 && quanxian_save1 == "是")
                {
                }
                else
                {
                    return(ResultUtil.error("没有权限!"));
                }

                bs = new BomService();
                return(ResultUtil.success(bs.page(nowPage, pageCount, code, name, type), "查询成功"));
            }
            catch (ErrorUtil err)
            {
                return(ResultUtil.fail(401, err.Message));
            }
            catch
            {
                return(ResultUtil.error("查询失败"));
            }
        }