Esempio n. 1
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Fx_exchangeLeg serial_Fx_exchangeLeg = serial_Class as FpmlSerializedCSharp.Fx_exchangeLeg;

            this.targetNotional_ = serial_Fx_exchangeLeg.TargetNotional_.ValueStr;

            this.targetCurrency_ = serial_Fx_exchangeLeg.TargetCurrency_.ValueStr;

            this.baseNotional_ = serial_Fx_exchangeLeg.BaseNotional_.ValueStr;

            this.baseCurrency_ = serial_Fx_exchangeLeg.BaseCurrency_.ValueStr;

            this.exchangeType_ = serial_Fx_exchangeLeg.ExchangeType_.ValueStr;

            this.exchangeRate_ = serial_Fx_exchangeLeg.ExchangeRate_.ValueStr;

            this.calculationDate_ = StringConverter.xmlDateToDateTime(serial_Fx_exchangeLeg.CalculationDate_.ValueStr);

            this.paymentDays_ = serial_Fx_exchangeLeg.PaymentDays_.ValueStr;

            this.paymentDate_ = StringConverter.xmlDateToDateTime(serial_Fx_exchangeLeg.PaymentDate_.ValueStr);

            this.forwardFlag_ = serial_Fx_exchangeLeg.ForwardFlag_.ValueStr;

            this.forwardPoint_ = serial_Fx_exchangeLeg.ForwardPoint_.ValueStr;
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface;
            FpmlSerializedCSharp.Excel_fxForward serial_Excel_fxForward = serial_Excel_interface.Excel_fxForward_;

            FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_fxForward.Excel_issueInfo_;
            string excel_issueInfotype = serial_excel_issueInfo.Excel_type_.ValueStr;

            this.excel_issueInfoViewModel_ = Excel_issueInfoViewModel.CreateExcel_issueInfo(excel_issueInfotype);
            this.excel_issueInfoViewModel_.setFromSerial(serial_excel_issueInfo);

            FpmlSerializedCSharp.Fx_exchangeLeg serial_fx_exchangeLeg = serial_Excel_fxForward.Fx_exchangeLeg_;
            this.fx_exchangeLegViewModel_.setFromSerial(serial_fx_exchangeLeg);
        }