Beispiel #1
0
        /// <summary>
        /// 更新记录
        /// </summary>
        /// <returns></returns>
        public static bool updateExinfo(int ID, string UserID, string ProjectID, string TypeID, string ExcepitionID, string ExcepitionName, string ExceptionDescri, string Solution, string Remarks)
        {
            string sql = string.Format("update exceptionsinfo set userid='{0}',projectid='{1}',typeid='{2}',exceptionid='{3}',exceptionName='{4}',ExceptionDescription='{5}',Solution='{6}',Remarks='{7}' where id={8}",
                                       UserID, ProjectID, TypeID, ExcepitionID, ExcepitionName, ExceptionDescri, Solution, Remarks, ID);

            try
            {
                DBHelper.ExcuteCommand(sql);
            }
            catch
            {
                return(false);
            }
            return(true);
        }