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

            if (rowsCount > 0)
            {
                Dianda.Model.Cash_Account_Subscription model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new Dianda.Model.Cash_Account_Subscription();
                    if (dt.Rows[n]["id"] != null && dt.Rows[n]["id"].ToString() != "")
                    {
                        model.id = int.Parse(dt.Rows[n]["id"].ToString());
                    }
                    if (dt.Rows[n]["AccountID"] != null && dt.Rows[n]["AccountID"].ToString() != "")
                    {
                        model.AccountID = int.Parse(dt.Rows[n]["AccountID"].ToString());
                    }
                    if (dt.Rows[n]["ApplyDatetime"] != null && dt.Rows[n]["ApplyDatetime"].ToString() != "")
                    {
                        model.ApplyDatetime = DateTime.Parse(dt.Rows[n]["ApplyDatetime"].ToString());
                    }
                    if (dt.Rows[n]["Subscription"] != null && dt.Rows[n]["Subscription"].ToString() != "")
                    {
                        model.Subscription = decimal.Parse(dt.Rows[n]["Subscription"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Dianda.Model.Cash_Account_Subscription model)
 {
     return(dal.Update(model));
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(Dianda.Model.Cash_Account_Subscription model)
 {
     return(dal.Add(model));
 }