/// <summary>
 /// 得到一个对象实体
 /// </summary>
 public SHMetroTestSysModel.jc_EvaluateResult DataRowToModel(DataRow row)
 {
     SHMetroTestSysModel.jc_EvaluateResult model = new SHMetroTestSysModel.jc_EvaluateResult();
     if (row != null)
     {
         if (row["evalResultId"] != null && row["evalResultId"].ToString() != "")
         {
             model.evalResultId = int.Parse(row["evalResultId"].ToString());
         }
         if (row["evalCourseId"] != null && row["evalCourseId"].ToString() != "")
         {
             model.evalCourseId = int.Parse(row["evalCourseId"].ToString());
         }
         if (row["evalSurveryId"] != null && row["evalSurveryId"].ToString() != "")
         {
             model.evalSurveryId = int.Parse(row["evalSurveryId"].ToString());
         }
         if (row["evalItemId"] != null && row["evalItemId"].ToString() != "")
         {
             model.evalItemId = int.Parse(row["evalItemId"].ToString());
         }
         if (row["evalResult"] != null)
         {
             model.evalResult = row["evalResult"].ToString();
         }
         if (row["evalUserId"] != null && row["evalUserId"].ToString() != "")
         {
             model.evalUserId = int.Parse(row["evalUserId"].ToString());
         }
     }
     return model;
 }
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public SHMetroTestSysModel.jc_EvaluateResult GetModel(int evalResultId)
        {
            StringBuilder strSql = new StringBuilder();
            strSql.Append("select  top 1 evalResultId,evalCourseId,evalSurveryId,evalItemId,evalResult,evalUserId from jc_EvaluateResult ");
            strSql.Append(" where evalResultId=@evalResultId");
            SqlParameter[] parameters = {
                    new SqlParameter("@evalResultId", SqlDbType.Int,4)
            };
            parameters[0].Value = evalResultId;

            SHMetroTestSysModel.jc_EvaluateResult model = new SHMetroTestSysModel.jc_EvaluateResult();
            DataSet ds = DbHelperSQL.Query(strSql.ToString(), parameters);
            if (ds.Tables[0].Rows.Count > 0)
            {
                return DataRowToModel(ds.Tables[0].Rows[0]);
            }
            else
            {
                return null;
            }
        }