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

            if (rowsCount > 0)
            {
                MobileSoft.Model.OL.Tb_OL_UnionPayOrder model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model    = new MobileSoft.Model.OL.Tb_OL_UnionPayOrder();
                    model.Id = dt.Rows[n]["Id"].ToString();
                    if (dt.Rows[n]["CommID"].ToString() != "")
                    {
                        model.CommID = int.Parse(dt.Rows[n]["CommID"].ToString());
                    }
                    model.CommunityId = dt.Rows[n]["CommunityId"].ToString();
                    //model.CustId=dt.Rows[n]["CustId"].ToString();
                    //model.merId=dt.Rows[n]["merId"].ToString();
                    model.orderId = dt.Rows[n]["orderId"].ToString();
                    model.txnTime = dt.Rows[n]["txnTime"].ToString();
                    model.Tn      = dt.Rows[n]["Tn"].ToString();
                    if (dt.Rows[n]["OrderDate"].ToString() != "")
                    {
                        model.OrderDate = DateTime.Parse(dt.Rows[n]["OrderDate"].ToString());
                    }
                    model.respCode = dt.Rows[n]["respCode"].ToString();
                    model.respMsg  = dt.Rows[n]["respMsg"].ToString();
                    if (dt.Rows[n]["respDate"].ToString() != "")
                    {
                        model.respDate = DateTime.Parse(dt.Rows[n]["respDate"].ToString());
                    }
                    if (dt.Rows[n]["IsSucc"].ToString() != "")
                    {
                        model.IsSucc = int.Parse(dt.Rows[n]["IsSucc"].ToString());
                    }
                    model.Memo = dt.Rows[n]["Memo"].ToString();
                    if (dt.Rows[n]["IsDelete"].ToString() != "")
                    {
                        model.IsDelete = int.Parse(dt.Rows[n]["IsDelete"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(MobileSoft.Model.OL.Tb_OL_UnionPayOrder model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(MobileSoft.Model.OL.Tb_OL_UnionPayOrder model)
 {
     dal.Add(model);
 }