Beispiel #1
0
 private void shortTimeRB_CheckedChanged(object sender, EventArgs e)
 {
     if (shortTimeRB.Checked == true)
     {
         iearyDebt = getShortTimeImplemation();
     }
     else
     {
         shortMonthMoneyRB.Checked = true;
     }
 }
Beispiel #2
0
 private void setDefaultImplemation()
 {
     if (GlobalObject.Debt.DebtType == DebtType.MEqualCaptial)
     {
         iearyDebt = new ShortMonthsBigRepayS1(this.planBigRepayTimeDTP.Value);
     }
     else if (GlobalObject.Debt.DebtType == DebtType.MEqualInterest)
     {
         iearyDebt = new ShortMonthsBigRepayS2(this.planBigRepayTimeDTP.Value);
     }
 }
Beispiel #3
0
        private IBigRepayDebt getShortTimeImplemation()
        {
            IBigRepayDebt iearyDebt;

            if (GlobalObject.Debt.DebtType == DebtType.MEqualCaptial)
            {
                iearyDebt = new ShortMonthsBigRepayS1(this.planBigRepayTimeDTP.Value);
            }
            else if (GlobalObject.Debt.DebtType == DebtType.MEqualInterest)
            {
                iearyDebt = new ShortMonthsBigRepayS2(this.planBigRepayTimeDTP.Value);
            }
            else
            {
                throw new Exception("为配置贷款类型!");
            }
            return(iearyDebt);
        }