/// <summary>
        /// 获得数据列表
        /// </summary>
        public List <university.Model.CCOM.View_FirstIn_Score> DataTableToList(DataTable dt)
        {
            List <university.Model.CCOM.View_FirstIn_Score> modelList = new List <university.Model.CCOM.View_FirstIn_Score>();
            int rowsCount = dt.Rows.Count;

            if (rowsCount > 0)
            {
                university.Model.CCOM.View_FirstIn_Score model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new university.Model.CCOM.View_FirstIn_Score();
                    model.UP_CCOM_number = dt.Rows[n]["UP_CCOM_number"].ToString();
                    if (dt.Rows[n]["Period_id"].ToString() != "")
                    {
                        model.Period_id = int.Parse(dt.Rows[n]["Period_id"].ToString());
                    }
                    model.User_realname = dt.Rows[n]["User_realname"].ToString();
                    if (dt.Rows[n]["User_id"].ToString() != "")
                    {
                        model.User_id = long.Parse(dt.Rows[n]["User_id"].ToString());
                    }
                    if (dt.Rows[n]["Subject_id"].ToString() != "")
                    {
                        model.Subject_id = int.Parse(dt.Rows[n]["Subject_id"].ToString());
                    }
                    model.Subject_title = dt.Rows[n]["Subject_title"].ToString();
                    if (dt.Rows[n]["Major_id"].ToString() != "")
                    {
                        model.Major_id = int.Parse(dt.Rows[n]["Major_id"].ToString());
                    }
                    if (dt.Rows[n]["Efss_score"].ToString() != "")
                    {
                        model.Efss_score = decimal.Parse(dt.Rows[n]["Efss_score"].ToString());
                    }
                    if (dt.Rows[n]["Efss_sequence"].ToString() != "")
                    {
                        model.Efss_sequence = decimal.Parse(dt.Rows[n]["Efss_sequence"].ToString());
                    }
                    if (dt.Rows[n]["UP_calculation_status"].ToString() != "")
                    {
                        model.UP_calculation_status = int.Parse(dt.Rows[n]["UP_calculation_status"].ToString());
                    }


                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(university.Model.CCOM.View_FirstIn_Score model)
 {
     return(dal.Update(model));
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void  Add(university.Model.CCOM.View_FirstIn_Score model)
 {
     dal.Add(model);
 }