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

            if (rowsCount > 0)
            {
                MobileSoft.Model.OAPublicWork.Tb_OAPublicWork_InsuranceCheck model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new MobileSoft.Model.OAPublicWork.Tb_OAPublicWork_InsuranceCheck();
                    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.UserCode      = dt.Rows[n]["UserCode"].ToString();
                    model.Title         = dt.Rows[n]["Title"].ToString();
                    model.AgentUserCode = dt.Rows[n]["AgentUserCode"].ToString();
                    model.HandleContent = dt.Rows[n]["HandleContent"].ToString();
                    if (dt.Rows[n]["HandleDate"].ToString() != "")
                    {
                        model.HandleDate = DateTime.Parse(dt.Rows[n]["HandleDate"].ToString());
                    }
                    model.DocumentUrl = dt.Rows[n]["DocumentUrl"].ToString();
                    if (dt.Rows[n]["WorkStartDate"].ToString() != "")
                    {
                        model.WorkStartDate = DateTime.Parse(dt.Rows[n]["WorkStartDate"].ToString());
                    }
                    model.BeforeClassRole = dt.Rows[n]["BeforeClassRole"].ToString();
                    model.AfterClassRole  = dt.Rows[n]["AfterClassRole"].ToString();
                    model.NatureList      = dt.Rows[n]["NatureList"].ToString();
                    model.LeaveDays       = dt.Rows[n]["LeaveDays"].ToString();
                    model.StartDate       = dt.Rows[n]["StartDate"].ToString();
                    model.EndDate         = dt.Rows[n]["EndDate"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(MobileSoft.Model.OAPublicWork.Tb_OAPublicWork_InsuranceCheck model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(MobileSoft.Model.OAPublicWork.Tb_OAPublicWork_InsuranceCheck model)
 {
     return(dal.Add(model));
 }