Пример #1
0
        private void InitFeeRate()
        {
            DDFeeRate newFeeRate = new DDFeeRate("RateType", 1);

            this.tbxFeeRate.Text = newFeeRate.Rate.ToString();
            DDFeeRate newInterestRate = new DDFeeRate("RateType", 2);

            this.tbxInterestRate.Text = newInterestRate.Rate.ToString();
        }
Пример #2
0
        public void Insert(string Rate, int?RateType, string Description)
        {
            DDFeeRate item = new DDFeeRate();

            item.Rate = Rate;

            item.RateType = RateType;

            item.Description = Description;


            item.Save(UserName);
        }
Пример #3
0
        public void Update(int RateID, string Rate, int?RateType, string Description)
        {
            DDFeeRate item = new DDFeeRate();

            item.MarkOld();
            item.IsLoaded = true;

            item.RateID = RateID;

            item.Rate = Rate;

            item.RateType = RateType;

            item.Description = Description;

            item.Save(UserName);
        }
Пример #4
0
 public bool Destroy(object RateID)
 {
     return(DDFeeRate.Destroy(RateID) == 1);
 }
Пример #5
0
 public bool Delete(object RateID)
 {
     return(DDFeeRate.Delete(RateID) == 1);
 }