public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_underlyingInfo_para serial_Excel_underlyingInfo_para = serial_Class as FpmlSerializedCSharp.Excel_underlyingInfo_para;

            this.excel_type_     = serial_Excel_underlyingInfo_para.Excel_type_.ValueStr;
            this.krCode_         = serial_Excel_underlyingInfo_para.KrCode_.ValueStr;
            this.underNameTrans_ = new NameTrans(serial_Excel_underlyingInfo_para.UnderName_.ValueStr);

            this.basePrice_   = serial_Excel_underlyingInfo_para.BasePrice_.ValueStr;
            this.sub_type_    = serial_Excel_underlyingInfo_para.Sub_type_.ValueStr;
            this.tenor_       = serial_Excel_underlyingInfo_para.Tenor_.ValueStr;
            this.linkedCurve_ = serial_Excel_underlyingInfo_para.LinkedCurve_.ValueStr;

            FpmlSerializedCSharp.Excel_underlyingModel_para serial_excel_underlyingModel_para = serial_Excel_underlyingInfo_para.Excel_underlyingModel_para_;
            string excel_underlyingModel_paratype = serial_excel_underlyingModel_para.Excel_type_.ValueStr;

            this.excel_underlyingModel_paraViewModel_ = Excel_underlyingModel_paraViewModel.CreateExcel_underlyingModel_para(excel_underlyingModel_paratype);
            this.excel_underlyingModel_paraViewModel_.setFromSerial(serial_excel_underlyingModel_para);

            this.CurrentValue_ = serial_Excel_underlyingInfo_para.Value_.ValueStr;

            //this.value_ = serial_Excel_underlyingInfo_para.Value_.ValueStr;

            //this.description_ = serial_Excel_underlyingInfo_para.Description_.ValueStr;
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_selectedUnderlying serial_Excel_selectedUnderlying = serial_Class as FpmlSerializedCSharp.Excel_selectedUnderlying;

            this.code_      = serial_Excel_selectedUnderlying.Code_.ValueStr;
            this.nameTrans_ = new NameTrans(serial_Excel_selectedUnderlying.Name_.ValueStr);
            this.checked_   = serial_Excel_selectedUnderlying.Checked_.BooleanValue();
        }
        public  void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_selectedUnderlying serial_Excel_selectedUnderlying = serial_Class as FpmlSerializedCSharp.Excel_selectedUnderlying;
        
            this.code_ = serial_Excel_selectedUnderlying.Code_.ValueStr;
            this.nameTrans_ = new NameTrans(serial_Excel_selectedUnderlying.Name_.ValueStr);
            this.checked_ = serial_Excel_selectedUnderlying.Checked_.BooleanValue();

        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_underlyingInfo_para serial_Excel_underlyingInfo_para = serial_Class as FpmlSerializedCSharp.Excel_underlyingInfo_para;

            this.excel_type_ = serial_Excel_underlyingInfo_para.Excel_type_.ValueStr;
            this.krCode_ = serial_Excel_underlyingInfo_para.KrCode_.ValueStr;
            this.underNameTrans_ = new NameTrans(serial_Excel_underlyingInfo_para.UnderName_.ValueStr);
            
            this.basePrice_= serial_Excel_underlyingInfo_para.BasePrice_.ValueStr;
            this.sub_type_ = serial_Excel_underlyingInfo_para.Sub_type_.ValueStr;
            this.tenor_ = serial_Excel_underlyingInfo_para.Tenor_.ValueStr;
            this.linkedCurve_ = serial_Excel_underlyingInfo_para.LinkedCurve_.ValueStr;

            FpmlSerializedCSharp.Excel_underlyingModel_para serial_excel_underlyingModel_para = serial_Excel_underlyingInfo_para.Excel_underlyingModel_para_;
            string excel_underlyingModel_paratype = serial_excel_underlyingModel_para.Excel_type_.ValueStr;
            this.excel_underlyingModel_paraViewModel_ = Excel_underlyingModel_paraViewModel.CreateExcel_underlyingModel_para(excel_underlyingModel_paratype);
            this.excel_underlyingModel_paraViewModel_.setFromSerial(serial_excel_underlyingModel_para);

            this.CurrentValue_ = serial_Excel_underlyingInfo_para.Value_.ValueStr;

            //this.value_ = serial_Excel_underlyingInfo_para.Value_.ValueStr;

            //this.description_ = serial_Excel_underlyingInfo_para.Description_.ValueStr;
            
     
        }