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

            if (rowsCount > 0)
            {
                MobileSoft.Model.WorkFlow.Tb_WorkFlow_InstanceTemp model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new MobileSoft.Model.WorkFlow.Tb_WorkFlow_InstanceTemp();
                    if (dt.Rows[n]["InfoId"].ToString() != "")
                    {
                        model.InfoId = int.Parse(dt.Rows[n]["InfoId"].ToString());
                    }
                    if (dt.Rows[n]["InstanceId"].ToString() != "")
                    {
                        model.InstanceId = int.Parse(dt.Rows[n]["InstanceId"].ToString());
                    }
                    model.Tb_Dictionary_InstanceType_DictionaryCode = dt.Rows[n]["Tb_Dictionary_InstanceType_DictionaryCode"].ToString();
                    model.InstanceMark = dt.Rows[n]["InstanceMark"].ToString();
                    if (dt.Rows[n]["NoticeMsg"].ToString() != "")
                    {
                        model.NoticeMsg = int.Parse(dt.Rows[n]["NoticeMsg"].ToString());
                    }
                    if (dt.Rows[n]["NoticeMail"].ToString() != "")
                    {
                        model.NoticeMail = int.Parse(dt.Rows[n]["NoticeMail"].ToString());
                    }
                    if (dt.Rows[n]["NoticePhone"].ToString() != "")
                    {
                        model.NoticePhone = int.Parse(dt.Rows[n]["NoticePhone"].ToString());
                    }
                    if (dt.Rows[n]["NoticeHaveDeal"].ToString() != "")
                    {
                        model.NoticeHaveDeal = int.Parse(dt.Rows[n]["NoticeHaveDeal"].ToString());
                    }
                    if (dt.Rows[n]["NoticeStartDeal"].ToString() != "")
                    {
                        model.NoticeStartDeal = int.Parse(dt.Rows[n]["NoticeStartDeal"].ToString());
                    }
                    if (dt.Rows[n]["NoticeOtherUser"].ToString() != "")
                    {
                        model.NoticeOtherUser = int.Parse(dt.Rows[n]["NoticeOtherUser"].ToString());
                    }
                    if (dt.Rows[n]["IsComplete"].ToString() != "")
                    {
                        model.IsComplete = int.Parse(dt.Rows[n]["IsComplete"].ToString());
                    }
                    if (dt.Rows[n]["IsSuccess"].ToString() != "")
                    {
                        model.IsSuccess = int.Parse(dt.Rows[n]["IsSuccess"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(MobileSoft.Model.WorkFlow.Tb_WorkFlow_InstanceTemp model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(MobileSoft.Model.WorkFlow.Tb_WorkFlow_InstanceTemp model)
 {
     return(dal.Add(model));
 }