public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.InstPositionInfo serial_InstPositionInfo = serial_Class as FpmlSerializedCSharp.InstPositionInfo;

            this.krCode_ = serial_InstPositionInfo.KrCode_.ValueStr;

            this.instName_ = serial_InstPositionInfo.InstName_.ValueStr;

            this.instCode_ = serial_InstPositionInfo.InstCode_.ValueStr;

            this.instType_ = serial_InstPositionInfo.InstType_.ValueStr;

            this.bookedDate_ = StringConverter.xmlDateToDateTime(serial_InstPositionInfo.BookedDate_.ValueStr);

            this.unBookedDate_ = StringConverter.xmlDateToDateTime(serial_InstPositionInfo.UnBookedDate_.ValueStr);

            this.maturityDate_ = StringConverter.xmlDateToDateTime(serial_InstPositionInfo.MaturityDate_.ValueStr);

            this.fileName_ = serial_InstPositionInfo.FileName_.ValueStr;

            this.positionName_ = serial_InstPositionInfo.PositionName_.ValueStr;

            this.counterParty_ = serial_InstPositionInfo.CounterParty_.ValueStr;

            this.notional_ = serial_InstPositionInfo.Notional_.ValueStr;

            this.currency_ = serial_InstPositionInfo.Currency_.ValueStr;

            this.fundCode_ = serial_InstPositionInfo.FundCode_.ValueStr;

            this.fundName_ = serial_InstPositionInfo.FundName_.ValueStr;
        }
Пример #2
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Instrument serial_Instrument = serial_Class as FpmlSerializedCSharp.Instrument;

            FpmlSerializedCSharp.Header serial_header = serial_Instrument.Header_;
            string headertype = serial_header.Excel_type_.ValueStr;

            this.headerViewModel_ = HeaderViewModel.CreateHeader(headertype);
            this.headerViewModel_.setFromSerial(serial_header);

            FpmlSerializedCSharp.InstPositionInfo serial_instPositionInfo = serial_Instrument.InstPositionInfo_;
            string instPositionInfotype = serial_instPositionInfo.Excel_type_.ValueStr;

            this.instPositionInfoViewModel_ = InstPositionInfoViewModel.CreateInstPositionInfo(instPositionInfotype);
            this.instPositionInfoViewModel_.setFromSerial(serial_instPositionInfo);

            FpmlSerializedCSharp.Excel_interface serial_excel_interface = serial_Instrument.Excel_interface_;
            string excel_interfacetype = serial_excel_interface.Excel_type_.ValueStr;

            this.excel_interfaceViewModel_ = Excel_interfaceViewModel.CreateExcel_interface(excel_interfacetype);
            this.excel_interfaceViewModel_.setFromSerial(serial_excel_interface);

            FpmlSerializedCSharp.InstrumentInfo serial_instrumentInfo = serial_Instrument.InstrumentInfo_;
            string instrumentInfotype = serial_instrumentInfo.Excel_type_.ValueStr;

            this.instrumentInfoViewModel_ = InstrumentInfoViewModel.CreateInstrumentInfo(instrumentInfotype);
            this.instrumentInfoViewModel_.setFromSerial(serial_instrumentInfo);
        }
Пример #3
0
        protected void loadPositionFromXml(XmlNode node)
        {
            FpmlSerializedCSharp.Root             serial_root             = new FpmlSerializedCSharp.Root(node);
            FpmlSerializedCSharp.InstPositionInfo serial_instPositionInfo = serial_root.Instrument_.InstPositionInfo_;

            InstPositionInfoViewModel vm = new InstPositionInfoViewModel();

            vm.setFromSerial(serial_instPositionInfo);

            this.InstPositionInfoViewModel_ = vm;

            this.itemCode_ = vm.InstCode_;
            this.itemType_ = vm.InstType_;
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.InstPositionInfo serial_InstPositionInfo = serial_Class as FpmlSerializedCSharp.InstPositionInfo;

            this.krCode_   = serial_InstPositionInfo.KrCode_.ValueStr;
            this.instName_ = serial_InstPositionInfo.InstName_.ValueStr;
            this.instCode_ = serial_InstPositionInfo.InstCode_.ValueStr;
            this.instType_ = serial_InstPositionInfo.InstType_.ValueStr;
            //this.bookedDate_ = serial_InstPositionInfo.BookedDate_.ValueStr;
            //this.unBookedDate_ = serial_InstPositionInfo.UnBookedDate_.ValueStr;
            //this.maturityDate_ = serial_InstPositionInfo.MaturityDate_.ValueStr;
            //this.fileName_ = serial_InstPositionInfo.FileName_.ValueStr;
            //this.positionName_ = serial_InstPositionInfo.PositionName_.ValueStr;
            //this.counterParty_ = serial_InstPositionInfo.CounterParty_.ValueStr;
            this.notional_ = serial_InstPositionInfo.Notional_.ValueStr;
            //this.currency_ = serial_InstPositionInfo.Currency_.ValueStr;
            //this.fundCode_ = serial_InstPositionInfo.FundCode_.ValueStr;
            //this.fundName_ = serial_InstPositionInfo.FundName_.ValueStr;

            this.view_             = new InstPositionInfoView();
            this.view_.DataContext = this;
        }