public bool GiveUpTempTrans(SaleBillDetails_Model detail, out string strErrMsg) { try { string sql = @"update salebillvouchs_extradefine set cbdefine5 = null,cbdefine6 = null where autoid = " + detail.autoid; int i = OperationSql.ExecuteNonQueryForU8(CommandType.Text, sql, null); if (i <= 0) { strErrMsg = "数据库操作失败,未能弃审记录"; return(false); } sql = @"update T_temptrans set verifydate = null where cinvcode = '" + detail.cinvcode + "' and ssbvcode = '" + detail.ssbvcode + "'"; i = OperationSql.ExecuteNonQuery(CommandType.Text, sql, null); if (i <= 0) { strErrMsg = "数据库操作失败,未能弃审记录"; return(false); } strErrMsg = ""; return(true); } catch (Exception ex) { strErrMsg = ex.Message; return(false); } }