예제 #1
0
        private void typeEditBtn_Click(object sender, RoutedEventArgs e)
        {
            Window w = new Window();

            w.Width  = 500;
            w.Height = 200;

            // 우선 loader 말고 그냥 박음.. listVM class 에서 refresh해야하는데 복잡허네..

            //Excel_scheduleLoaderView e_slv = new Excel_scheduleLoaderView();

            //e_slv.Excel_underlyingCalcInfoViewModel_ = this.viewModel_.Excel_underlyingCalcInfoViewModel_;

            Excel_couponScheduleViewModel selectedVM = this.CouponScheduleDataGrid_.SelectedItem as Excel_couponScheduleViewModel;

            // 그냥 우선은 수정 불가로 해놓자으

            //e_slv.SelectedScheduleTypeViewModel_ = selectedVM;

            w.Content = selectedVM.loaderView();

            if (w.ShowDialog() == true)
            {
                //this.viewModel_.Excel_scheduleViewModel_[selectedIndex] = selectedVM;

                selectedVM.descriptionUpdate();
            }
            else
            {
            }
        }
        public void initialize(Excel_couponScheduleViewModel e_csvm)
        {
            this.couponScheduleTypeCombBox_.SelectedIndex     = this.comboBoxNum(e_csvm.Excel_type_);
            this.couponScheduleTypeCombBox_.SelectionChanged += new SelectionChangedEventHandler(ComboBox_SelectionChanged);

            //view는 loaderView에서 적용했음. // 이건 submit했을때 적용할거 저장함.
            this.selectedCouponScheduleTypeViewModel_ = e_csvm;
        }
예제 #3
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_couponScheduleList serial_Excel_couponScheduleList = serial_Class as FpmlSerializedCSharp.Excel_couponScheduleList;

            List <FpmlSerializedCSharp.Excel_couponSchedule> serial_excel_couponSchedule = serial_Excel_couponScheduleList.Excel_couponSchedule_;

            this.excel_couponScheduleViewModel_ = new ObservableCollection <Excel_couponScheduleViewModel>();
            foreach (var item in serial_excel_couponSchedule)
            {
                string type = item.Excel_type_.ValueStr;
                Excel_couponScheduleViewModel viewModel = Excel_couponScheduleViewModel.CreateExcel_couponSchedule(type);
                viewModel.setFromSerial(item);
                this.excel_couponScheduleViewModel_.Add(viewModel);
            }
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_fixedCouponScheduleList serial_Excel_fixedCouponScheduleList = serial_Class as FpmlSerializedCSharp.Excel_fixedCouponScheduleList;

            //this.scheduleInitialDate_ = serial_Excel_fixedCouponScheduleList.ScheduleInitialDate_.ValueStr;
            this.fixedRate_  = serial_Excel_fixedCouponScheduleList.FixedRate_.ValueStr;
            this.dayCounter_ = serial_Excel_fixedCouponScheduleList.DayCounter_.ValueStr;
            //this.maturityDate_ = serial_Excel_fixedCouponScheduleList.MaturityDate_.ValueStr;

            List <FpmlSerializedCSharp.Excel_couponSchedule> serial_excel_couponSchedule = serial_Excel_fixedCouponScheduleList.Excel_couponSchedule_;

            this.excel_fixedCouponScheduleViewModel_ = new ObservableCollection <Excel_fixedCouponScheduleViewModel>();
            foreach (var item in serial_excel_couponSchedule)
            {
                string type = item.Excel_type_.ValueStr;
                Excel_couponScheduleViewModel viewModel = Excel_couponScheduleViewModel.CreateExcel_couponSchedule(type);
                viewModel.setFromSerial(item);
                this.excel_fixedCouponScheduleViewModel_.Add((Excel_fixedCouponScheduleViewModel)viewModel);
            }
        }
        public void initialize(Excel_couponScheduleViewModel e_csvm)
        {
            this.couponScheduleTypeCombBox_.SelectedIndex = this.comboBoxNum(e_csvm.Excel_type_);
            this.couponScheduleTypeCombBox_.SelectionChanged += new SelectionChangedEventHandler(ComboBox_SelectionChanged);

            //view는 loaderView에서 적용했음. // 이건 submit했을때 적용할거 저장함.
            this.selectedCouponScheduleTypeViewModel_ = e_csvm;
        }