Exemplo n.º 1
0
        /// <summary>
        /// 获取公司简介
        /// </summary>
        /// <param name="id">查询参数</param>
        /// <returns>返回</returns>
        public static string GetSysInfoStrByID(string id)
        {
            SysInfoResult result = new SysInfoResult();

            if (!VerifyTool.IsLong(id))
            {
                result.HasError     = true;
                result.ErrorMessage = "参数错误。";
                return(null);
            }
            result.HasError = false;
            result.Result   = EispSysInfoDAL.GetSysInfoByID(Convert.ToInt32(id));
            return(result.Result.Content);
        }
Exemplo n.º 2
0
        public static SysInfoResult UpdateSysInfoByID(SysInfoModel f)
        {
            SysInfoResult result = new SysInfoResult();

            if (!VerifyTool.IsLong(f.ID.ToString()))
            {
                result.HasError     = true;
                result.ErrorMessage = "参数错误。";
                return(result);
            }

            if (EispSysInfoDAL.UpdateSysInfoByID(f) > 0)
            {
                result.HasError = false;
                return(result);
            }
            else
            {
                result.HasError     = true;
                result.ErrorMessage = "数据库错误,请联系管理员。";
                return(result);
            }
        }