private void buildFromSerialClass()
        {
            if (serial_under_.ID_ == null)
            {
                throw new Exception();
            }
            else
            {
                this.sym_ = serial_under_.ID_;

                if (serial_under_.StockIndex_ != null)
                {
                    this.code_ = serial_under_.StockIndex_.Code_.StringValue();
                    this.name_ = serial_under_.StockIndex_.Name_.StringValue();
                    viewModel_ = new StockIndexViewModel(serial_under_.StockIndex_);
                }
                else if (serial_under_.InterestrateIndex_ != null)
                {
                    this.code_ = serial_under_.InterestrateIndex_.Code_.StringValue();
                    this.name_ = serial_under_.InterestrateIndex_.Name_.StringValue();
                    viewModel_ = new IRIndexViewModel(serial_under_.InterestrateIndex_);
                }
                else if (serial_under_.CommodityIndex_ != null)
                {
                    this.code_ = serial_under_.CommodityIndex_.Code_.StringValue();
                    this.name_ = serial_under_.CommodityIndex_.Name_.StringValue();
                    viewModel_ = new CommodityIndexViewModel(serial_under_.CommodityIndex_);
                }
                else
                {
                    throw new Exception();
                }
            }
        }
        private void buildFromSerialClass() 
        {
            if (serial_under_.ID_ == null)
            {
                throw new Exception();
            }
            else 
            {
                this.sym_ = serial_under_.ID_;

                if(serial_under_.StockIndex_ != null)
                {
                    this.code_ = serial_under_.StockIndex_.Code_.StringValue();
                    this.name_ = serial_under_.StockIndex_.Name_.StringValue();
                    viewModel_ = new StockIndexViewModel(serial_under_.StockIndex_);
                }
                else if (serial_under_.InterestrateIndex_ != null)
                {
                    this.code_ = serial_under_.InterestrateIndex_.Code_.StringValue();
                    this.name_ = serial_under_.InterestrateIndex_.Name_.StringValue();
                    viewModel_ = new IRIndexViewModel(serial_under_.InterestrateIndex_);
                }
                else if (serial_under_.CommodityIndex_ != null)
                {
                    this.code_ = serial_under_.CommodityIndex_.Code_.StringValue();
                    this.name_ = serial_under_.CommodityIndex_.Name_.StringValue();
                    viewModel_ = new CommodityIndexViewModel(serial_under_.CommodityIndex_);

                }
                else 
                {
                    throw new Exception();
                }

            }
        }