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

            if (rowsCount > 0)
            {
                MobileSoft.Model.WorkFlow.Tb_WorkFlow_GeneralMain_Hasten model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new MobileSoft.Model.WorkFlow.Tb_WorkFlow_GeneralMain_Hasten();
                    if (dt.Rows[n]["GeneralMainCode"].ToString() != "")
                    {
                        model.GeneralMainCode = new Guid(dt.Rows[n]["GeneralMainCode"].ToString());
                    }
                    model.Title = dt.Rows[n]["Title"].ToString();
                    model.FQR   = dt.Rows[n]["FQR"].ToString();
                    model.CBR   = dt.Rows[n]["CBR"].ToString();
                    model.BCBBM = dt.Rows[n]["BCBBM"].ToString();
                    model.BCBR  = dt.Rows[n]["BCBR"].ToString();
                    if (dt.Rows[n]["FQSJ"].ToString() != "")
                    {
                        model.FQSJ = DateTime.Parse(dt.Rows[n]["FQSJ"].ToString());
                    }
                    model.ZXBLR = dt.Rows[n]["ZXBLR"].ToString();
                    if (dt.Rows[n]["ZXBLSJ"].ToString() != "")
                    {
                        model.ZXBLSJ = DateTime.Parse(dt.Rows[n]["ZXBLSJ"].ToString());
                    }
                    if (dt.Rows[n]["CutID"].ToString() != "")
                    {
                        model.CutID = int.Parse(dt.Rows[n]["CutID"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(MobileSoft.Model.WorkFlow.Tb_WorkFlow_GeneralMain_Hasten model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(MobileSoft.Model.WorkFlow.Tb_WorkFlow_GeneralMain_Hasten model)
 {
     dal.Add(model);
 }