示例#1
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_creditEventInfo serial_Excel_creditEventInfo = serial_Class as FpmlSerializedCSharp.Excel_creditEventInfo;

            FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_creditEventInfo.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.Excel_referenceInformationList serial_excel_referenceInformationList = serial_Excel_creditEventInfo.Excel_referenceInformationList_;
            //string excel_referenceInformationListtype = serial_excel_referenceInformationList.Excel_type_.ValueStr;
            this.excel_referenceInformationListViewModel_ = new Excel_referenceInformationListViewModel();
            this.excel_referenceInformationListViewModel_.setFromSerial(serial_excel_referenceInformationList);

            FpmlSerializedCSharp.Excel_jointProbabilityTrait serial_excel_jointProbabilityTrait = serial_Excel_creditEventInfo.Excel_jointProbabilityTrait_;
            //string excel_jointProbabilityTraittype = serial_excel_jointProbabilityTrait.Excel_type_.ValueStr;
            this.excel_jointProbabilityTraitViewModel_ = new Excel_jointProbabilityTraitViewModel();
            this.excel_jointProbabilityTraitViewModel_.setFromSerial(serial_excel_jointProbabilityTrait);

            FpmlSerializedCSharp.Excel_protectionTerms serial_excel_protectionTerms = serial_Excel_creditEventInfo.Excel_protectionTerms_;
            //string excel_protectionTermstype = serial_excel_protectionTerms.Excel_type_.ValueStr;
            this.excel_protectionTermsViewModel_ = new Excel_protectionTermsViewModel();
            this.excel_protectionTermsViewModel_.setFromSerial(serial_excel_protectionTerms);
        }
示例#2
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_referenceInformationList serial_Excel_referenceInformationList = serial_Class as FpmlSerializedCSharp.Excel_referenceInformationList;

            List <FpmlSerializedCSharp.Excel_referenceInformation> serial_excel_referenceInformation = serial_Excel_referenceInformationList.Excel_referenceInformation_;

            this.excel_referenceInformationViewModel_ = new ObservableCollection <Excel_referenceInformationViewModel>();
            foreach (var item in serial_excel_referenceInformation)
            {
                string type = item.Excel_type_.ValueStr;
                Excel_referenceInformationViewModel viewModel = Excel_referenceInformationViewModel.CreateExcel_referenceInformation(type);
                viewModel.setFromSerial(item);
                this.excel_referenceInformationViewModel_.Add(viewModel);
            }
        }