コード例 #1
0
ファイル: InterestRateListing.cs プロジェクト: zibler/zibler
 public InterestRateListing(int id, string name, InterestRateType interestRateType, decimal currentValue, int version)
 {
     this.Id = id;
     this.Name = name;
     this.InterestRateType = interestRateType;
     this.CurrentValue = currentValue;
     this.Version = version;
 }
 public AmortisationScheduleEntryViewModel(
     int paymentNumber,
     DateTime paymentDate,
     double payment,
     double principal,
     double interest,
     InterestRateType interestRateType,
     double interestRate,
     double balance)
 {
     PaymentNumber    = paymentNumber;
     PaymentDate      = paymentDate;
     Payment          = payment;
     Principal        = principal;
     Interest         = interest;
     InterestRateType = interestRateType;
     InterestRate     = interestRate;
     Balance          = balance;
 }
 private void FillCreditFields() {
   if (!String.IsNullOrEmpty(Request.Form[txtContractDate.Name])) {
     recordingAct.ContractDate = EmpiriaString.ToDateTime(txtContractDate.Value);
   } else {
     recordingAct.ContractDate = ExecutionServer.DateMaxValue;
   }
   recordingAct.ContractNumber = txtContractNumber.Value;
   if (!String.IsNullOrEmpty(Request.Form[cboContractPlace.Name])) {
     recordingAct.ContractPlace = GeographicRegionItem.Parse(int.Parse(Request.Form[cboContractPlace.Name]));
   } else {
     recordingAct.ContractPlace = GeographicRegionItem.Unknown;
   }
   if (txtTermPeriod.Value.Length == 0) {
     txtTermPeriod.Value = "0";
   }
   if (txtInterestRate.Value.Length == 0) {
     txtInterestRate.Value = "0.00";
   }
   recordingAct.TermPeriods = int.Parse(txtTermPeriod.Value);
   recordingAct.TermUnit = DataTypes.Unit.Parse(int.Parse(cboTermUnit.Value));
   recordingAct.InterestRate = decimal.Parse(txtInterestRate.Value);
   recordingAct.InterestRateType = InterestRateType.Parse(int.Parse(cboInterestRateType.Value));
 }