public static Excel_hifive_subtypeViewModel CreateExcel_hifive_subtype(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_hifive_subtype serial_Excel_hifive_subtype = serial_Class as FpmlSerializedCSharp.Excel_hifive_subtype;
            string typeStr = serial_Excel_hifive_subtype.Type_.ValueStr;

            return(Excel_hifive_subtypeViewModel.CreateExcel_hifive_subtype(typeStr));
        }
Esempio n. 2
0
        //excel_vm으로 부터 각각의 subType을 만드는 작업
        public void buildHifive()
        {
            // view 데이터를 가져오는 부분 binding대서 자동으로 박힐거임. 여기서는 만들어줌
            {
                // 이게 원래 화면에서 build 대야대는디
                Excel_hifive_stepDown_kiViewModel e_hsvm = new Excel_hifive_stepDown_kiViewModel();

                ScheduleInfoViewModel sivm = new ScheduleInfoViewModel();
                sivm.PeriodFrequency_ = "3M";
                sivm.InitialDate_     = "20160325";
                sivm.EndDate_         = "20160325";

                e_hsvm.ScheduleInfoVM_ = sivm;

                e_hsvm.Ki_    = "";
                e_hsvm.Tenor_ = "3M";

                //기초자산 정보를 전달해줌.
                e_hsvm.Excel_underlyingCalcInfoViewModel_ =
                    this.excel_underlyingCalcInfoViewModel_;

                this.excel_hifive_subtypeViewModel_ = e_hsvm;
            }

            // setting된 정보를 토대로 상품을 만듬
            this.excel_hifive_subtypeViewModel_.buildProduct();

            this.excel_underlyingCalcIDViewModel_ = this.excel_hifive_subtypeViewModel_.excel_underlyingCalcIDVM();

            // 이미 세부 calculation 을 만들 vm은 생성이 되어있음
            this.excel_scheduleListViewModel_   = this.excel_hifive_subtypeViewModel_.excel_scheduleListVM();
            this.excel_kiScheduleListViewModel_ = this.excel_hifive_subtypeViewModel_.excel_kiScheduleListVM();
        }
        //excel_vm으로 부터 각각의 subType을 만드는 작업
        public void buildHifive()
        {

            // view 데이터를 가져오는 부분 binding대서 자동으로 박힐거임. 여기서는 만들어줌
            {
                // 이게 원래 화면에서 build 대야대는디
                Excel_hifive_stepDown_kiViewModel e_hsvm = new Excel_hifive_stepDown_kiViewModel();

                ScheduleInfoViewModel sivm = new ScheduleInfoViewModel();
                sivm.PeriodFrequency_ = "3M";
                sivm.InitialDate_ = "20160325";
                sivm.EndDate_ = "20160325";

                e_hsvm.ScheduleInfoVM_ = sivm;

                e_hsvm.Ki_ = "";
                e_hsvm.Tenor_ = "3M";

                //기초자산 정보를 전달해줌.
                e_hsvm.Excel_underlyingCalcInfoViewModel_ =
                    this.excel_underlyingCalcInfoViewModel_;

                this.excel_hifive_subtypeViewModel_ = e_hsvm;

            }

            // setting된 정보를 토대로 상품을 만듬
            this.excel_hifive_subtypeViewModel_.buildProduct();

            this.excel_underlyingCalcIDViewModel_ = this.excel_hifive_subtypeViewModel_.excel_underlyingCalcIDVM();

            // 이미 세부 calculation 을 만들 vm은 생성이 되어있음
            this.excel_scheduleListViewModel_ = this.excel_hifive_subtypeViewModel_.excel_scheduleListVM();
            this.excel_kiScheduleListViewModel_ = this.excel_hifive_subtypeViewModel_.excel_kiScheduleListVM();

        }