/// <summary> /// 评定并获取简答题总分 /// </summary> /// <returns>int类型,返回整数类型的简答题总分</returns> public int QuestionSum() { string str = "select count(*) from a"; SH.SqlCom(str, CommandType.Text); if ((int)SH.SqlES() == 0) { return(0); } else { SH.SqlUpdate(); str = "select SUM(score) from a"; SH.SqlCom(str, CommandType.Text); if (SH.SqlES().ToString() == "") { return(0); } else { return((int)SH.SqlES()); } } }
/// <summary> /// 更新用户信息 /// </summary> public void UserUpdate() { SH = new SqlHelp(); SH.SqlUpdate(); }
/// <summary> /// 更新题库信息 /// </summary> public void Update() { SH.SqlUpdate(); }