예제 #1
0
        public static IRCouponCalculationViewModel CreateIRCouponCalculation(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.IRCouponCalculation serial_IRCouponCalculation = serial_Class as FpmlSerializedCSharp.IRCouponCalculation;
            string typeStr = serial_IRCouponCalculation.Type_.ValueStr;

            return(IRCouponCalculationViewModel.CreateIRCouponCalculation(typeStr));
        }
예제 #2
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.IRCalculation serial_IRCalculation = serial_Class as FpmlSerializedCSharp.IRCalculation;

            FpmlSerializedCSharp.CalculationAmount serial_calculationAmount = serial_IRCalculation.CalculationAmount_;
            this.calculationAmountViewModel_ = new CalculationAmountViewModel();
            this.calculationAmountViewModel_.setFromSerial(serial_calculationAmount);

            this.calculationStartDate_ = serial_IRCalculation.CalculationStartDate_.ValueStr;

            this.calculationEndDate_ = serial_IRCalculation.CalculationEndDate_.ValueStr;

            this.paymentDate_ = serial_IRCalculation.PaymentDate_.ValueStr;

            FpmlSerializedCSharp.IRCouponCalculation serial_irCouponCalculation = serial_IRCalculation.IrCouponCalculation_;
            string irCouponCalculationtype = serial_irCouponCalculation.Type_.ValueStr;

            this.irCouponCalculationViewModel_ = IRCouponCalculationViewModel.CreateIRCouponCalculation(irCouponCalculationtype);
            this.irCouponCalculationViewModel_.setFromSerial(serial_irCouponCalculation);

            this.inArrear_ = serial_IRCalculation.InArrear_.ValueStr;
        }
예제 #3
0
 public void selectIRCouponCalculationInfo(string typeStr)
 {
     this.irCouponCalculationViewModel_ = IRCouponCalculationViewModel.CreateIRCouponCalculation(typeStr);
     this.view_.DataContext             = this;
 }