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

            if (rowsCount > 0)
            {
                DigiPower.Onlinecol.Standard.Model.T_Train_Plan_MDL model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new DigiPower.Onlinecol.Standard.Model.T_Train_Plan_MDL();
                    if (dt.Rows[n]["TrainPlanID"].ToString() != "")
                    {
                        model.TrainPlanID = int.Parse(dt.Rows[n]["TrainPlanID"].ToString());
                    }
                    model.Subject = dt.Rows[n]["Subject"].ToString();
                    model.Teacher = dt.Rows[n]["Teacher"].ToString();
                    if (dt.Rows[n]["PlanDate"].ToString() != "")
                    {
                        model.PlanDate = DateTime.Parse(dt.Rows[n]["PlanDate"].ToString());
                    }
                    if (dt.Rows[n]["FinishDate"].ToString() != "")
                    {
                        model.FinishDate = DateTime.Parse(dt.Rows[n]["FinishDate"].ToString());
                    }
                    model.PlanUserName = dt.Rows[n]["PlanUserName"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(DigiPower.Onlinecol.Standard.Model.T_Train_Plan_MDL model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(DigiPower.Onlinecol.Standard.Model.T_Train_Plan_MDL model)
 {
     return(dal.Add(model));
 }