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

            if (rowsCount > 0)
            {
                MobileSoft.Model.WorkFlow.Tb_WorkFlow_GeneralMain model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new MobileSoft.Model.WorkFlow.Tb_WorkFlow_GeneralMain();
                    if (dt.Rows[n]["GeneralMainCode"].ToString() != "")
                    {
                        model.GeneralMainCode = new Guid(dt.Rows[n]["GeneralMainCode"].ToString());
                    }
                    //model.CutID=dt.Rows[n]["CutID"].ToString();
                    model.Title      = dt.Rows[n]["Title"].ToString();
                    model.FlowDegree = dt.Rows[n]["FlowDegree"].ToString();
                    model.Content    = dt.Rows[n]["Content"].ToString();
                    model.Memo       = dt.Rows[n]["Memo"].ToString();
                    model.DrafMan    = dt.Rows[n]["DrafMan"].ToString();
                    if (dt.Rows[n]["DrafDate"].ToString() != "")
                    {
                        model.DrafDate = DateTime.Parse(dt.Rows[n]["DrafDate"].ToString());
                    }
                    if (dt.Rows[n]["FinishDate"].ToString() != "")
                    {
                        model.FinishDate = DateTime.Parse(dt.Rows[n]["FinishDate"].ToString());
                    }
                    if (dt.Rows[n]["WorkState"].ToString() != "")
                    {
                        model.WorkState = int.Parse(dt.Rows[n]["WorkState"].ToString());
                    }
                    model.DocumentID = dt.Rows[n]["DocumentID"].ToString();
                    if (dt.Rows[n]["msrepl_tran_version"].ToString() != "")
                    {
                        model.msrepl_tran_version = new Guid(dt.Rows[n]["msrepl_tran_version"].ToString());
                    }
                    model.TYPE             = dt.Rows[n]["TYPE"].ToString();
                    model.DocumentTypeCode = dt.Rows[n]["DocumentTypeCode"].ToString();
                    if (dt.Rows[n]["DocType"].ToString() != "")
                    {
                        model.DocType = int.Parse(dt.Rows[n]["DocType"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(MobileSoft.Model.WorkFlow.Tb_WorkFlow_GeneralMain model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(MobileSoft.Model.WorkFlow.Tb_WorkFlow_GeneralMain model)
 {
     return(dal.Add(model));
 }