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); }
public void SetFeeRate() { feeRate.Rate = this.tbxFeeRate.Text; interestRate.Rate = this.tbxInterestRate.Text; try { feeRate.Save(); interestRate.Save(); MessageBox.Show("费率更新成功!", "费率更新"); } catch { MessageBox.Show("费率更新失败,请检查输入数据的有效性!", "费率更新"); } }
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); }