Exemplo n.º 1
0
        public string update(bom_info bomInfo)
        {
            try
            {
                UserInfoService us             = new UserInfoService();
                string          quanxian_save1 = us.new_quanxian("upd", "BOM");
                if (quanxian_save1 != null && quanxian_save1.Length > 0 && quanxian_save1 == "是")
                {
                }
                else
                {
                    return(ResultUtil.error("没有权限!"));
                }

                bs = new BomService();
                if (bs.update(bomInfo))
                {
                    return(ResultUtil.success("保存成功"));
                }
                else
                {
                    return(ResultUtil.error("保存失败"));
                }
            }
            catch (ErrorUtil err)
            {
                return(ResultUtil.fail(401, err.Message));
            }
            catch
            {
                return(ResultUtil.error("查询失败"));
            }
        }