public static CouponCalculationViewModel CreateCouponCalculation(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.CouponCalculation serial_CouponCalculation = serial_Class as FpmlSerializedCSharp.CouponCalculation;
            string typeStr = serial_CouponCalculation.Excel_type_.ValueStr;

            return(CouponCalculationViewModel.CreateCouponCalculation(typeStr));
        }
Exemple #2
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.CouponSchedule serial_CouponSchedule = serial_Class as FpmlSerializedCSharp.CouponSchedule;

            this.eventDate_ = serial_CouponSchedule.EventDate_.ValueStr;

            this.calculationStartDate_ = serial_CouponSchedule.CalculationStartDate_.ValueStr;

            this.calculationEndDate_ = serial_CouponSchedule.CalculationEndDate_.ValueStr;

            this.paymentDate_ = serial_CouponSchedule.PaymentDate_.ValueStr;

            this.detailScheduleType_ = serial_CouponSchedule.DetailScheduleType_.ValueStr;

            this.description_ = serial_CouponSchedule.Description_.ValueStr;

            FpmlSerializedCSharp.CouponCalculation serial_couponCalculation = serial_CouponSchedule.CouponCalculation_;
            string couponCalculationtype = serial_couponCalculation.Excel_type_.ValueStr;

            this.couponCalculationViewModel_ = CouponCalculationViewModel.CreateCouponCalculation(couponCalculationtype);
            this.couponCalculationViewModel_.setFromSerial(serial_couponCalculation);

            this.view_             = new CouponScheduleView();
            this.view_.DataContext = this;
        }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.EventTrigger serial_EventTrigger = serial_Class as FpmlSerializedCSharp.EventTrigger;
     FpmlSerializedCSharp.CouponPayment serial_CouponPayment = serial_EventTrigger.CouponPayment_;
 
     this.date_ = serial_CouponPayment.Date_.ValueStr;
     
     FpmlSerializedCSharp.CouponCalculation serial_couponCalculation = serial_CouponPayment.CouponCalculation_;
     string couponCalculationtype = serial_couponCalculation.Type_.ValueStr;
     this.couponCalculationViewModel_ = CouponCalculationViewModel.CreateCouponCalculation(couponCalculationtype);
     this.couponCalculationViewModel_.setFromSerial(serial_couponCalculation);
     
     //this.view_ = new CouponPaymentView();
     //this.view_.DataContext = this;
 }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.EventTrigger  serial_EventTrigger  = serial_Class as FpmlSerializedCSharp.EventTrigger;
            FpmlSerializedCSharp.CouponPayment serial_CouponPayment = serial_EventTrigger.CouponPayment_;

            this.date_ = serial_CouponPayment.Date_.ValueStr;

            FpmlSerializedCSharp.CouponCalculation serial_couponCalculation = serial_CouponPayment.CouponCalculation_;
            string couponCalculationtype = serial_couponCalculation.Type_.ValueStr;

            this.couponCalculationViewModel_ = CouponCalculationViewModel.CreateCouponCalculation(couponCalculationtype);
            this.couponCalculationViewModel_.setFromSerial(serial_couponCalculation);

            //this.view_ = new CouponPaymentView();
            //this.view_.DataContext = this;
        }
 public void selectCouponCalculationInfo(string typeStr)
 {
     this.couponCalculationViewModel_ = CouponCalculationViewModel.CreateCouponCalculation(typeStr);
     this.view_.DataContext           = this;
 }
 public void selectCouponCalculationInfo(string typeStr)
 {
     this.couponCalculationViewModel_ = CouponCalculationViewModel.CreateCouponCalculation(typeStr);
     this.view_.DataContext = this;
 }
 public  void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.CouponSchedule serial_CouponSchedule = serial_Class as FpmlSerializedCSharp.CouponSchedule;
 
     this.eventDate_ = serial_CouponSchedule.EventDate_.ValueStr;
     
     this.calculationStartDate_ = serial_CouponSchedule.CalculationStartDate_.ValueStr;
     
     this.calculationEndDate_ = serial_CouponSchedule.CalculationEndDate_.ValueStr;
     
     this.paymentDate_ = serial_CouponSchedule.PaymentDate_.ValueStr;
     
     this.detailScheduleType_ = serial_CouponSchedule.DetailScheduleType_.ValueStr;
     
     this.description_ = serial_CouponSchedule.Description_.ValueStr;
     
     FpmlSerializedCSharp.CouponCalculation serial_couponCalculation = serial_CouponSchedule.CouponCalculation_;
     string couponCalculationtype = serial_couponCalculation.Excel_type_.ValueStr;
     this.couponCalculationViewModel_ = CouponCalculationViewModel.CreateCouponCalculation(couponCalculationtype);
     this.couponCalculationViewModel_.setFromSerial(serial_couponCalculation);
     
     this.view_ = new CouponScheduleView();
     this.view_.DataContext = this;
 }