/// <summary> ///查询课程性质(删除之前) /// </summary> /// <param name="CourseId"></param> /// <returns></returns> public int queryCouresProperty(int CourseId) { string sql = "select courseproperty from CoursesMes where CourseId = @CourseId"; SqlParameter[] param = new SqlParameter[] { new SqlParameter("@CourseId", CourseId) }; object result = new Helper.SQLHelper().QuerySingleResult(sql, param, false); if ((result.ToString()).Equals("必修")) { return(0); } return(1); }