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

            if (rowsCount > 0)
            {
                MobileSoft.Model.OAPublicWork.Tb_OAPublicWork_OfficialConference model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new MobileSoft.Model.OAPublicWork.Tb_OAPublicWork_OfficialConference();
                    if (dt.Rows[n]["InfoId"].ToString() != "")
                    {
                        model.InfoId = int.Parse(dt.Rows[n]["InfoId"].ToString());
                    }
                    if (dt.Rows[n]["Tb_WorkFlow_FlowSort_InfoId"].ToString() != "")
                    {
                        model.Tb_WorkFlow_FlowSort_InfoId = int.Parse(dt.Rows[n]["Tb_WorkFlow_FlowSort_InfoId"].ToString());
                    }
                    model.ConferenceName    = dt.Rows[n]["ConferenceName"].ToString();
                    model.UserCode          = dt.Rows[n]["UserCode"].ToString();
                    model.ConferenceCode    = dt.Rows[n]["ConferenceCode"].ToString();
                    model.ConferenceTitle   = dt.Rows[n]["ConferenceTitle"].ToString();
                    model.ConferenceExplain = dt.Rows[n]["ConferenceExplain"].ToString();
                    model.StartDate         = dt.Rows[n]["StartDate"].ToString();
                    model.EndDate           = dt.Rows[n]["EndDate"].ToString();
                    model.Moderator         = dt.Rows[n]["Moderator"].ToString();
                    model.Convenor          = dt.Rows[n]["Convenor"].ToString();
                    model.ConferenceList    = dt.Rows[n]["ConferenceList"].ToString();
                    model.DraftingUser      = dt.Rows[n]["DraftingUser"].ToString();
                    model.DocumentUrl       = dt.Rows[n]["DocumentUrl"].ToString();
                    model.ConferencePlace   = dt.Rows[n]["ConferencePlace"].ToString();
                    if (dt.Rows[n]["WorkStartDate"].ToString() != "")
                    {
                        model.WorkStartDate = DateTime.Parse(dt.Rows[n]["WorkStartDate"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(MobileSoft.Model.OAPublicWork.Tb_OAPublicWork_OfficialConference model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(MobileSoft.Model.OAPublicWork.Tb_OAPublicWork_OfficialConference model)
 {
     return(dal.Add(model));
 }