Exemplo n.º 1
0
        public void bookingEvent(MasterInformationViewModel masterInformationViewModel)
        {
            EVENT_INFO_Table_DAO dao = new EVENT_INFO_Table_DAO();

            dao.EVENT_DATE_        = this.eventDate_;
            dao.EVENT_TYPE_        = "Termination";
            dao.EVENT_SUBTYPE_     = this.detailTerminationType_;
            dao.EVENT_DESCRIPTION_ = this.description_;
            dao.EVENT_NAME_        = "Early Redemption";
            dao.CURRENCY_          = "";

            generalTerminationEventDetailViewModel_.bookingDetailEvent(masterInformationViewModel, dao);

            //dao.EVENT_AMOUNT_ = generalTerminationEventDetailViewModel_.InitialFixingAmount_;
            //dao.FIXING_UNDERLYINGS_ = generalTerminationEventDetailViewModel_.FixingUnderlying_;
            //dao.FIXING_FLAG_ = generalTerminationEventDetailViewModel_.InitialFixingFlag_;
            //dao.OBSERVATION_END_DATE_ = generalTerminationEventDetailViewModel_.ObservationEndDate_;

            dao.ITEM_CODE_       = masterInformationViewModel.Item_code_;
            dao.ITEM_TYPE_       = masterInformationViewModel.Booking_type_;
            dao.ITEM_NAME_       = masterInformationViewModel.Item_name_;
            dao.REMAIN_NOTIONAL_ = masterInformationViewModel.Remain_notional_;

            dao.insert(DataBaseConnectManager.ConnectionFactory("myDB"));
        }
 public void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     foreach (var item in this.excel_couponScheduleViewModel_)
     {
         item.bookingEvent(masterInformationViewModel);
     }
 }
        public override void bookingEvent(MasterInformationViewModel masterInformationViewModel, EVENT_INFO_Table_DAO dao)
        {
            dao.CALCULATION_TYPE_  = "vanilla floating Coupon";
            dao.EVENT_AMOUNT_      = "unCalculated";
            dao.EVENT_DATE_        = this.eventDate_.ToString(StringFormat.DbDateFormat_);
            dao.EVENT_DESCRIPTION_ = "floating coupon description";
            dao.EVENT_NAME_        = "floating coupon name";
            dao.EVENT_TYPE_        = "payment";
            dao.EVENT_SUBTYPE_     = "floating_interest";
            //dao.EXPIRED_FLAG_ = "false";
            dao.FIXING_FLAG_        = "need calculation";
            dao.FIXING_OBSERVATION_ = "undefined";

            foreach (var item in excel_underlyingCalcIDViewModel_.Excel_selectedUnderlyingViewModel_)
            {
                if (item.Checked_)
                {
                    dao.FIXING_UNDERLYINGS_ = item.NameTrans_.Value_ + ";";
                }
            }

            dao.FLOATING_FLAG_ = "true";
            //dao.NOTIONAL_ = this.excel_issueInfoViewModel_.Notional_;
            //dao.REMAIN_NOTIONAL_ = "undefined";
        }
        public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
        {
            foreach (var item in this.excel_fixedCouponScheduleListViewModel_.Excel_fixedCouponScheduleViewModel_)
            {
                EVENT_INFO_Table_DAO dao = new EVENT_INFO_Table_DAO();

                dao.ITEM_CODE_ = masterInformationViewModel.Item_code_;
                dao.ITEM_TYPE_ = masterInformationViewModel.Booking_type_;
                dao.ITEM_NAME_ = masterInformationViewModel.Item_name_;

                //dao.CALCULATION_TYPE_ =
                dao.COUNTERPARTY_ = masterInformationViewModel.Counterparty_;
                dao.CURRENCY_     = this.excel_issueInfoViewModel_.Currency_.CurrencyString_;
                //dao.EVENT_AMOUNT_ =
                dao.EVENT_CODE_ = EventViewModel.eventCodeGen();
                //dao.EVENT_DATE_ =
                //dao.EVENT_DESCRIPTION_ =
                //dao.EVENT_NAME_ =
                //dao.EVENT_SUBTYPE_
                //dao.EVENT_TYPE_
                dao.EXPIRED_FLAG_ = "false";
                //dao.FIXING_FLAG_ =
                //dao.FIXING_OBSERVATION_ =
                //dao.FIXING_UNDERLYINGS_ =
                //dao.FLOATING_FLAG_ =
                dao.NOTIONAL_ = this.excel_issueInfoViewModel_.Notional_;
                //dao.REMAIN_NOTIONAL_ = masterInformationViewModel.Remain_notional_;
                dao.REMAIN_NOTIONAL_ = "undefined";

                item.bookingEvent(masterInformationViewModel, dao);

                dao.insert(DataBaseConnectManager.ConnectionFactory("myDB"));
            }
        }
Exemplo n.º 5
0
        public void enqueue_intrument(string itemCode)
        {
            // itemCode 를 master에서 찾아서 만들어서 넣음

            try
            {
                Excel_instrumentViewModel e_ivm = MasterInformationViewModel.loadInstrumentVM(itemCode);

                // inst xml
                e_ivm.loadInterfaceVMFromXml(XMLFileLoader.LoadInstrument(itemCode));

                // para xml
                e_ivm.loadParameterFromXml(XMLFileLoader.LoadParameter(itemCode, this.calculationDate_));

                BatchItemViewModel bvm = new BatchItemViewModel(e_ivm);

                this.BatchItemViewModelQueueList_.Add(bvm);
            }
            catch (Exception e)
            {
                throw e;
            }

            //
        }
        public override void bookingEvent(MasterInformationViewModel masterInformationViewModel, EVENT_INFO_Table_DAO dao)
        {
            if (this.eventDAO_ == null)
            {
                //dao.EVENT_CODE_ = "testCode";
                dao.EVENT_DATE_        = this.eventDate_.ToString(StringFormat.DbDateFormat_);
                dao.EVENT_TYPE_        = "payment";
                dao.EVENT_SUBTYPE_     = "coupon";
                dao.EVENT_NAME_        = "simple coupon";
                dao.EVENT_DESCRIPTION_ = "simpleCalculation default";
                //dao.CURRENCY_ = item[6].ToString();
                //dao.NOTIONAL_ = item[7].ToString();
                //dao.REMAIN_NOTIONAL_ = item[8].ToString();
                dao.EVENT_AMOUNT_ = "";
                //dao.COUNTERPARTY_ = item[10].ToString();
                dao.FLOATING_FLAG_    = "true";
                dao.CALCULATION_TYPE_ = "simpleCalculation";

                foreach (var item in this.excel_underlyingCalcInfoViewModel_.Excel_underlyingInfoViewModel_)
                {
                    dao.FIXING_UNDERLYINGS_ += item.NameTrans_.Value_ + " ; ";
                }

                dao.FIXING_OBSERVATION_ = "empty";

                dao.FIXING_FLAG_  = "false";
                dao.EXPIRED_FLAG_ = "false";
                //dao.ITEM_CODE_ = item[17].ToString();
                //dao.ITEM_TYPE_ = item[18].ToString();
                //dao.ITEM_NAME_ = item[19].ToString();
            }
        }
Exemplo n.º 7
0
        public RootBookViewModel()
        {
            MasterInformationViewModel.loadWholeMasterPosition();

            this.ancestorBookViewModel_ = BookViewModel.CreateRootBookViewModel();

            //this.ancestorBookViewModel_.IsTreeExpand_ = true;
            this.ancestorBookViewModel_.BookName_ = "RootBook";
            this.ancestorBookViewModel_.BookName_ = "RootBookCode";

            //this.childBookList_ = new ObservableCollection<BookViewModel>();

            //BookViewModel wholeBook = new BookViewModel();

            //wholeBook.BookName_ = "wholeBook";

            //wholeBook.addBook();
            //wholeBook.addBook();

            //this.childBookList_.Add(wholeBook);

            //BookViewModel wholeBook2 = new BookViewModel();

            //wholeBook2.BookName_ = "wholeBook2";

            //wholeBook2.addBook();
            //wholeBook2.addBook();
            //wholeBook2.addBook();

            //this.childBookList_.Add(wholeBook2);
        }
Exemplo n.º 8
0
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     foreach (var item in this.excel_swapLegViewModel_)
     {
         item.bookingEvent(masterInformationViewModel);
     }
 }
Exemplo n.º 9
0
 public void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     foreach (var item in this.generalScheduleVMList_)
     {
         item.bookingEvent(masterInformationViewModel);
     }
 }
        public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
        {
            // 상품이 모두 만들어진 후에 event를 gen 해서 박아넣음

            foreach (var item in this.excel_hifive_StepDownKI_ViewModel_.SubScheduleDataList_)
            {
                EVENT_INFO_Table_DAO dao = new EVENT_INFO_Table_DAO();

                dao.EVENT_DATE_        = item.EventDate_.ToString(DataBaseStringFormat.DateFormat_);
                dao.EVENT_TYPE_        = "settlement";
                dao.EVENT_SUBTYPE_     = "earlyRedemption";
                dao.EVENT_DESCRIPTION_ = "coupon : " + item.Coupon_ + " trigger : " + item.Trigger_;
                dao.EVENT_NAME_        = "중도상환";
                dao.CURRENCY_          = "KRW";

                double amt = Convert.ToDouble(this.excel_issueInfoViewModel_.Notional_) + Convert.ToDouble(this.excel_issueInfoViewModel_.Notional_) * Convert.ToDouble(item.Coupon_) / 100;

                dao.EVENT_AMOUNT_       = amt.ToString();
                dao.FIXING_UNDERLYINGS_ = this.excel_underlyingCalcInfoViewModel_.underlyingString();
                dao.FIXING_FLAG_        = "false";
                //dao.OBSERVATION_END_DATE_ = dao.EVENT_DATE_;

                dao.ITEM_CODE_       = masterInformationViewModel.Item_code_;
                dao.ITEM_TYPE_       = masterInformationViewModel.Booking_type_;
                dao.ITEM_NAME_       = masterInformationViewModel.Item_name_;
                dao.REMAIN_NOTIONAL_ = masterInformationViewModel.Remain_notional_;

                dao.insert(DataBaseConnectManager.ConnectionFactory("myDB"));
            }
        }
Exemplo n.º 11
0
        public void masterEventObserver(object sender, PropertyChangedEventArgs e)
        {
            MasterInformationViewModel mivm = sender as MasterInformationViewModel;

            if (e.PropertyName == "Trade_id_")
            {
                this.TradeID_ = mivm.Trade_id_;
            }
        }
Exemplo n.º 12
0
        public override bool removeInstrument(Excel_instrumentViewModel e_ivm)
        {
            // list 에서 삭제함.
            this.instrumentList_.Remove(e_ivm);

            // db 에서 삭제함.
            MasterInformationViewModel.removeMasterInfo(e_ivm.Item_code_);



            return(true);
        }
        public void bookingEvent(MasterInformationViewModel masterInformationViewModel, EVENT_INFO_Table_DAO dao)
        {
            dao.EVENT_DATE_    = this.paymentDate_.ToString(StringFormat.DbDateFormat_);
            dao.EVENT_TYPE_    = "Settlement";
            dao.EVENT_SUBTYPE_ = "Pay";
            //dao.EVENT_DESCRIPTION_ = this.description_;
            dao.EVENT_NAME_ = "FxExchange";
            dao.CURRENCY_   = this.targetCurrency_.CurrencyCode_;

            ////dao.OBSERVATION_END_DATE_ = this.calculationDate_.ToString(StringFormat.DbDateFormat_);
            ////dao.OBSERVATION_END_DATE_ = this.calculationDate_.ToString(StringFormat.DbDateFormat_);
        }
        public override void bookingDetailEvent(MasterInformationViewModel masterInformationViewModel, EVENT_INFO_Table_DAO dao)
        {
            //dao.EVENT_AMOUNT_ = Convert.ToDouble(masterInformationViewModel.RemainNotional_)
            //                    * Convert.ToDouble( this.fixedRate_ ) * this.yearFraction_;

            dao.EVENT_AMOUNT_ = "554443";

            dao.FIXING_UNDERLYINGS_ = "Target Underlying";
            dao.FIXING_FLAG_ = "TRUE";
            //dao.OBSERVATION_END_DATE_ = dao.EVENT_DATE_;
            dao.EVENT_DESCRIPTION_ = this.description();
        }
Exemplo n.º 15
0
        public override void bookingDetailEvent(MasterInformationViewModel masterInformationViewModel, EVENT_INFO_Table_DAO dao)
        {
            //dao.EVENT_AMOUNT_ = Convert.ToDouble(masterInformationViewModel.RemainNotional_)
            //                    * Convert.ToDouble( this.fixedRate_ ) * this.yearFraction_;

            dao.EVENT_AMOUNT_ = "2200000";

            dao.FIXING_UNDERLYINGS_ = "";
            dao.FIXING_FLAG_        = "TRUE";
            ////dao.OBSERVATION_END_DATE_ = dao.EVENT_DATE_;
            dao.EVENT_DESCRIPTION_ = this.description();
        }
Exemplo n.º 16
0
        private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            this.viewModel_ = this.DataContext as MasterInformationViewModel;
            this.bindingPanel_.DataContext = this.viewModel_;

            this.currencyCombo_.DataContext = this.viewModel_.Currency_;

            this.underlyingCombo_.DataContext  = this.viewModel_.Underlying_type_;
            this.contractCombo_.DataContext    = this.viewModel_.Contract_type_;
            this.contractSubCombo_.DataContext = this.viewModel_.Contract_subtype_;

            //this.Contract_detail_type_Combo_.SelectedItem_.Copy(this.viewModel_.Contract_detail_type_);
            //this.Contract_detail_type_Combo_.refreshComboBox();
        }
        public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
        {
            EVENT_INFO_Table_DAO dao = new EVENT_INFO_Table_DAO();

            this.fx_exchangeLegViewModel_.bookingEvent(masterInformationViewModel, dao);

            //dao.EVENT_AMOUNT_ = generalScheduleDeatilViewModel_.InitialFixingAmount_;
            //dao.FIXING_UNDERLYINGS_ = generalScheduleDeatilViewModel_.FixingUnderlying_;
            //dao.FIXING_FLAG_ = generalScheduleDeatilViewModel_.InitialFixingFlag_;

            dao.ITEM_CODE_       = masterInformationViewModel.Item_code_;
            dao.ITEM_TYPE_       = masterInformationViewModel.Booking_type_;
            dao.ITEM_NAME_       = masterInformationViewModel.Item_name_;
            dao.REMAIN_NOTIONAL_ = masterInformationViewModel.Remain_notional_;
        }
        public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
        {
            EVENT_INFO_Table_DAO dao = new EVENT_INFO_Table_DAO();

            foreach (var item in this.excel_multiAsset_compositeOption_subtypeViewModel_)
            {
                item.bookingEvent(masterInformationViewModel, dao);
            }

            dao.ITEM_CODE_       = masterInformationViewModel.Item_code_;
            dao.ITEM_TYPE_       = masterInformationViewModel.Booking_type_;
            dao.ITEM_NAME_       = masterInformationViewModel.Item_name_;
            dao.REMAIN_NOTIONAL_ = masterInformationViewModel.Remain_notional_;

            dao.insert(DataBaseConnectManager.ConnectionFactory("myDB"));
        }
        private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            this.viewModel_ = this.DataContext as MasterInformationViewModel;
            this.bindingPanel_.DataContext = this.viewModel_;

            this.currencyCombo_.DataContext = this.viewModel_.Currency_;

            this.underlyingCombo_.DataContext = this.viewModel_.Underlying_type_;
            this.contractCombo_.DataContext = this.viewModel_.Contract_type_;
            this.contractSubCombo_.DataContext = this.viewModel_.Contract_subtype_;

            //this.Contract_detail_type_Combo_.SelectedItem_.Copy(this.viewModel_.Contract_detail_type_);
            //this.Contract_detail_type_Combo_.refreshComboBox();


        }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel, EVENT_INFO_Table_DAO dao)
 {
     dao.CALCULATION_TYPE_  = "fixedCoupon";
     dao.EVENT_AMOUNT_      = "unCalculated";
     dao.EVENT_DATE_        = this.eventDate_.ToString(StringFormat.DbDateFormat_);
     dao.EVENT_DESCRIPTION_ = "fixed coupon description";
     dao.EVENT_NAME_        = "fixed coupon name";
     dao.EVENT_TYPE_        = "payment";
     dao.EVENT_SUBTYPE_     = "fixed_interest";
     //dao.EXPIRED_FLAG_ = "false";
     dao.FIXING_FLAG_        = "true";
     dao.FIXING_OBSERVATION_ = "undefined";
     dao.FIXING_UNDERLYINGS_ = "";
     dao.FLOATING_FLAG_      = "false";
     //dao.NOTIONAL_ = this.excel_issueInfoViewModel_.Notional_;
     //dao.REMAIN_NOTIONAL_ = "undefined";
 }
Exemplo n.º 21
0
        //public static Excel_issueInfoViewModel CreateExcel_issueInfo(FpmlSerializedCSharp.ISerialized serial_Class)
        //{
        //    FpmlSerializedCSharp.Excel_issueInfo serial_Excel_issueInfo = serial_Class as FpmlSerializedCSharp.Excel_issueInfo;
        //    string typeStr = serial_Excel_issueInfo.Type_.ValueStr;
        //    return Excel_issueInfoViewModel.CreateExcel_issueInfo(typeStr);
        //}

        public void MaturityDateObserver(object sender, PropertyChangedEventArgs e)
        {
            MasterInformationViewModel mivm = sender as MasterInformationViewModel;

            //if (e.PropertyName == "Maturity_date_")
            //{
            //    this.MaturityDate_ = mivm.Maturity_date_;
            //}
            //else
            if (e.PropertyName == "Notional_")
            {
                this.Notional_ = mivm.Notional_;
            }
            else if (e.PropertyName == "Currency_")
            {
                this.Currency_ = mivm.Currency_.Clone();
            }

            // Excel_noteInfoView ¿¡ ¿¬°á
        }
        public void masterEventObserver(object sender, PropertyChangedEventArgs e)
        {
            MasterInformationViewModel mivm = sender as MasterInformationViewModel;

            if (e.PropertyName == "Maturity_date_")
            {
                this.CalculationDate_ = mivm.Maturity_date_;
                this.PaymentDate_
                    = mivm.Maturity_date_.AddDays(Convert.ToDouble(this.PaymentDays_));
            }
            else if (e.PropertyName == "Notional_")
            {
                this.BaseNotional_ = mivm.Notional_;
                //this.BaseCurrency_ = mivm.Currency_.Clone();
            }
            else if (e.PropertyName == "Currency_")
            {
                this.BaseCurrency_.SelectedIndex_ = mivm.Currency_.SelectedIndex_;
            }
        }
        public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
        {
            {
                EVENT_INFO_Table_DAO daoFirst = new EVENT_INFO_Table_DAO();

                this.fx_exchangeLegViewModel_[0].bookingEvent(masterInformationViewModel, daoFirst);

                daoFirst.ITEM_CODE_       = masterInformationViewModel.Item_code_;
                daoFirst.ITEM_TYPE_       = masterInformationViewModel.Booking_type_;
                daoFirst.ITEM_NAME_       = masterInformationViewModel.Item_name_;
                daoFirst.REMAIN_NOTIONAL_ = masterInformationViewModel.Remain_notional_;
            }

            {
                EVENT_INFO_Table_DAO daoSecond = new EVENT_INFO_Table_DAO();

                this.fx_exchangeLegViewModel_[0].bookingEvent(masterInformationViewModel, daoSecond);

                daoSecond.ITEM_CODE_       = masterInformationViewModel.Item_code_;
                daoSecond.ITEM_TYPE_       = masterInformationViewModel.Booking_type_;
                daoSecond.ITEM_NAME_       = masterInformationViewModel.Item_name_;
                daoSecond.REMAIN_NOTIONAL_ = masterInformationViewModel.Remain_notional_;
            }
        }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel, EVENT_INFO_Table_DAO dao)
 {
     dao.CALCULATION_TYPE_ = "fixedCoupon";
     dao.EVENT_AMOUNT_ = "unCalculated";
     dao.EVENT_DATE_ = this.eventDate_.ToString(StringFormat.DbDateFormat_);
     dao.EVENT_DESCRIPTION_ = "fixed coupon description";
     dao.EVENT_NAME_ = "fixed coupon name";
     dao.EVENT_TYPE_ = "payment";
     dao.EVENT_SUBTYPE_= "fixed_interest";
     //dao.EXPIRED_FLAG_ = "false";
     dao.FIXING_FLAG_ = "true";
     dao.FIXING_OBSERVATION_ = "undefined";
     dao.FIXING_UNDERLYINGS_ = "";
     dao.FLOATING_FLAG_ = "false";
     //dao.NOTIONAL_ = this.excel_issueInfoViewModel_.Notional_;
     //dao.REMAIN_NOTIONAL_ = "undefined";
     
 }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     this.excel_hifiveViewModel_.bookingEvent(masterInformationViewModel);
 }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     foreach (var item in this.excel_swapLegViewModel_)
     {
         item.bookingEvent(masterInformationViewModel);
     }
 }
 public void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     foreach (var item in this.generalTerminationEventVMList_)
     {
         item.bookingEvent(masterInformationViewModel);
     }   
 }
        public override void bookingEvent(MasterInformationViewModel masterInformationViewModel, EVENT_INFO_Table_DAO dao)
        {
            dao.CALCULATION_TYPE_ = "vanilla floating Coupon";
            dao.EVENT_AMOUNT_ = "unCalculated";
            dao.EVENT_DATE_ = this.eventDate_.ToString(StringFormat.DbDateFormat_);
            dao.EVENT_DESCRIPTION_ = "floating coupon description";
            dao.EVENT_NAME_ = "floating coupon name";
            dao.EVENT_TYPE_ = "payment";
            dao.EVENT_SUBTYPE_ = "floating_interest";
            //dao.EXPIRED_FLAG_ = "false";
            dao.FIXING_FLAG_ = "need calculation"; 
            dao.FIXING_OBSERVATION_ = "undefined";

            foreach (var item in excel_underlyingCalcIDViewModel_.Excel_selectedUnderlyingViewModel_)
	        {
                if (item.Checked_)
                {
                    dao.FIXING_UNDERLYINGS_ = item.NameTrans_.Value_ + ";";
                }
	        }

            dao.FLOATING_FLAG_ = "true";
            //dao.NOTIONAL_ = this.excel_issueInfoViewModel_.Notional_;
            //dao.REMAIN_NOTIONAL_ = "undefined";
        }
        public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
        {
            {
                EVENT_INFO_Table_DAO daoFirst = new EVENT_INFO_Table_DAO();

                this.fx_exchangeLegViewModel_[0].bookingEvent(masterInformationViewModel, daoFirst);

                daoFirst.ITEM_CODE_ = masterInformationViewModel.Item_code_;
                daoFirst.ITEM_TYPE_ = masterInformationViewModel.Booking_type_;
                daoFirst.ITEM_NAME_ = masterInformationViewModel.Item_name_;
                daoFirst.REMAIN_NOTIONAL_ = masterInformationViewModel.Remain_notional_;
            }

            {
                EVENT_INFO_Table_DAO daoSecond = new EVENT_INFO_Table_DAO();

                this.fx_exchangeLegViewModel_[0].bookingEvent(masterInformationViewModel, daoSecond);

                daoSecond.ITEM_CODE_ = masterInformationViewModel.Item_code_;
                daoSecond.ITEM_TYPE_ = masterInformationViewModel.Booking_type_;
                daoSecond.ITEM_NAME_ = masterInformationViewModel.Item_name_;
                daoSecond.REMAIN_NOTIONAL_ = masterInformationViewModel.Remain_notional_;
            }
        }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel, EVENT_INFO_Table_DAO dao)
 {
     throw new NotImplementedException();
 }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     this.generalScheduleInfoViewModel_.bookingEvent(masterInformationViewModel);
     this.generalTerminationEventInfoViewModel_.bookingEvent(masterInformationViewModel);
 }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel, EVENT_INFO_Table_DAO dao)
 {
     throw new NotImplementedException();
 }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel,
                           EVENT_INFO_Table_DAO dao)
 {
     dao.EVENT_TYPE_ = "multiAssetcompositeOptionSubTypeTest";
     dao.EVENT_NAME_ = "multi_vanillaCallPut";
 }
        public void bookingEvent(MasterInformationViewModel masterInformationViewModel)
        {
            EVENT_INFO_Table_DAO dao = new EVENT_INFO_Table_DAO();

            dao.EVENT_DATE_ = this.eventDate_;
            dao.EVENT_TYPE_ = "Termination";
            dao.EVENT_SUBTYPE_ = this.detailTerminationType_;
            dao.EVENT_DESCRIPTION_ = this.description_;
            dao.EVENT_NAME_ = "Early Redemption";
            dao.CURRENCY_ = "";

            generalTerminationEventDetailViewModel_.bookingDetailEvent(masterInformationViewModel, dao);

            //dao.EVENT_AMOUNT_ = generalTerminationEventDetailViewModel_.InitialFixingAmount_;
            //dao.FIXING_UNDERLYINGS_ = generalTerminationEventDetailViewModel_.FixingUnderlying_;
            //dao.FIXING_FLAG_ = generalTerminationEventDetailViewModel_.InitialFixingFlag_;
            //dao.OBSERVATION_END_DATE_ = generalTerminationEventDetailViewModel_.ObservationEndDate_;

            dao.ITEM_CODE_ = masterInformationViewModel.Item_code_;
            dao.ITEM_TYPE_ = masterInformationViewModel.Booking_type_;
            dao.ITEM_NAME_ = masterInformationViewModel.Item_name_;
            dao.REMAIN_NOTIONAL_ = masterInformationViewModel.Remain_notional_;

            dao.insert(DataBaseConnectManager.ConnectionFactory("myDB"));
        }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     this.excel_couponScheduleListViewModel_.bookingEvent(masterInformationViewModel);
 }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     this.excel_hifiveViewModel_.bookingEvent(masterInformationViewModel);
 }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     
 }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     this.excel_swapLegViewModel_.bookingEvent(masterInformationViewModel);
     this.excel_creditEventSwapLegViewModel_.bookingEvent(masterInformationViewModel);
 }
 public abstract void bookingEvent(MasterInformationViewModel masterInformationViewModel);
        public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
        {
            EVENT_INFO_Table_DAO dao = new EVENT_INFO_Table_DAO();

            foreach (var item in this.excel_compositeOption_subtypeViewModelList_)
            {
                item.bookingEvent(masterInformationViewModel, dao);
            }

            dao.ITEM_CODE_ = masterInformationViewModel.Item_code_;
            dao.ITEM_TYPE_ = masterInformationViewModel.Booking_type_;
            dao.ITEM_NAME_ = masterInformationViewModel.Item_name_;
            dao.REMAIN_NOTIONAL_ = masterInformationViewModel.Remain_notional_;

            dao.insert(DataBaseConnectManager.ConnectionFactory("myDB"));

        }
        public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
        {
            EVENT_INFO_Table_DAO dao = new EVENT_INFO_Table_DAO();

            this.fx_exchangeLegViewModel_.bookingEvent(masterInformationViewModel, dao);

            //dao.EVENT_AMOUNT_ = generalScheduleDeatilViewModel_.InitialFixingAmount_;
            //dao.FIXING_UNDERLYINGS_ = generalScheduleDeatilViewModel_.FixingUnderlying_;
            //dao.FIXING_FLAG_ = generalScheduleDeatilViewModel_.InitialFixingFlag_;

            dao.ITEM_CODE_ = masterInformationViewModel.Item_code_;
            dao.ITEM_TYPE_ = masterInformationViewModel.Booking_type_;
            dao.ITEM_NAME_ = masterInformationViewModel.Item_name_;
            dao.REMAIN_NOTIONAL_ = masterInformationViewModel.Remain_notional_;

        }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel, EVENT_INFO_Table_DAO dao)
 {
     
 }
        public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
        {
            //this.excel_vanillaFloatingCouponScheduleListViewModel_.bookingEvent(masterInformationViewModel);

            foreach (var item in this.excel_vanillaFloatingCouponScheduleListViewModel_.Excel_vanillaFloatingCouponScheduleViewModel_)
            {
                EVENT_INFO_Table_DAO dao = new EVENT_INFO_Table_DAO();

                dao.ITEM_CODE_ = masterInformationViewModel.Item_code_;
                dao.ITEM_TYPE_ = masterInformationViewModel.Booking_type_;
                dao.ITEM_NAME_ = masterInformationViewModel.Item_name_;

                //dao.CALCULATION_TYPE_ = 
                dao.COUNTERPARTY_ = masterInformationViewModel.Counterparty_;
                dao.CURRENCY_ = this.excel_issueInfoViewModel_.Currency_.CurrencyString_;
                //dao.EVENT_AMOUNT_ = 
                dao.EVENT_CODE_ = EventViewModel.eventCodeGen();
                //dao.EVENT_DATE_ = 
                //dao.EVENT_DESCRIPTION_ = 
                //dao.EVENT_NAME_ =
                //dao.EVENT_SUBTYPE_
                //dao.EVENT_TYPE_
                dao.EXPIRED_FLAG_ = "false";
                //dao.FIXING_FLAG_ = 
                //dao.FIXING_OBSERVATION_ =
                //dao.FIXING_UNDERLYINGS_ = 
                //dao.FLOATING_FLAG_ = 
                dao.NOTIONAL_ = this.excel_issueInfoViewModel_.Notional_;
                //dao.REMAIN_NOTIONAL_ = masterInformationViewModel.Remain_notional_;
                dao.REMAIN_NOTIONAL_ = "undefined";

                item.bookingEvent(masterInformationViewModel, dao);

                dao.insert(DataBaseConnectManager.ConnectionFactory("myDB"));

            }

        }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     OutputLogViewModel.addResult("not implemented yet");
     //this.excel_creditEventInfoViewModel_.
 }
 public void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     // list가 issue 정보를 사용하기 위해 한칸 위로 올림
 }
        public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
        {
            // 상품이 모두 만들어진 후에 event를 gen 해서 박아넣음

            foreach (var item in this.excel_hifive_StepDownKI_ViewModel_.SubScheduleDataList_)
            {
                EVENT_INFO_Table_DAO dao = new EVENT_INFO_Table_DAO();

                dao.EVENT_DATE_ = item.EventDate_.ToString(DataBaseStringFormat.DateFormat_);
                dao.EVENT_TYPE_ = "settlement";
                dao.EVENT_SUBTYPE_ = "earlyRedemption";
                dao.EVENT_DESCRIPTION_ = "coupon : " + item.Coupon_ + " trigger : " + item.Trigger_;
                dao.EVENT_NAME_ = "중도상환";
                dao.CURRENCY_ = "KRW";

                double amt = Convert.ToDouble(this.excel_issueInfoViewModel_.Notional_) + Convert.ToDouble(this.excel_issueInfoViewModel_.Notional_) * Convert.ToDouble(item.Coupon_) / 100;
                
                dao.EVENT_AMOUNT_ = amt.ToString();
                dao.FIXING_UNDERLYINGS_ = this.excel_underlyingCalcInfoViewModel_.underlyingString();
                dao.FIXING_FLAG_ = "false";
                //dao.OBSERVATION_END_DATE_ = dao.EVENT_DATE_;

                dao.ITEM_CODE_ = masterInformationViewModel.Item_code_;
                dao.ITEM_TYPE_ = masterInformationViewModel.Booking_type_;
                dao.ITEM_NAME_ = masterInformationViewModel.Item_name_;
                dao.REMAIN_NOTIONAL_ = masterInformationViewModel.Remain_notional_;

                dao.insert(DataBaseConnectManager.ConnectionFactory("myDB"));
            }
                
        }
 public void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     foreach (var item in this.excel_couponScheduleViewModel_)
     {
         item.bookingEvent(masterInformationViewModel);
     }
 }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel,
                                   EVENT_INFO_Table_DAO dao)
 {
     dao.EVENT_TYPE_ = "compositeOptionSubTypeTest";
     dao.EVENT_NAME_ = "vanillaCallPut";
 }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel,
                                   EVENT_INFO_Table_DAO dao)
 {
     dao.EVENT_TYPE_ = "compositeOptionSubTypeTest";
     dao.EVENT_NAME_ = "upInOutCall";
 }
 public void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     throw new NotImplementedException();
 }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
 }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     this.excel_swapLegViewModel_.bookingEvent(masterInformationViewModel);
     this.excel_creditEventSwapLegViewModel_.bookingEvent(masterInformationViewModel);
 }
Exemplo n.º 53
0
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     OutputLogViewModel.addResult("not implemented yet");
     //this.excel_creditEventInfoViewModel_.
 }
 public abstract void bookingEvent(MasterInformationViewModel masterInformationViewModel,
                                   EVENT_INFO_Table_DAO dao);
Exemplo n.º 55
0
 public void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     throw new NotImplementedException();
 }
        public override void bookingEvent(MasterInformationViewModel masterInformationViewModel, EVENT_INFO_Table_DAO dao)
        {
            if (this.eventDAO_ == null)
            {
                //dao.EVENT_CODE_ = "testCode";
                dao.EVENT_DATE_ = this.eventDate_.ToString(StringFormat.DbDateFormat_);
                dao.EVENT_TYPE_ = "payment";
                dao.EVENT_SUBTYPE_ = "coupon";
                dao.EVENT_NAME_ = "simple coupon";
                dao.EVENT_DESCRIPTION_ = "simpleCalculation default";
                //dao.CURRENCY_ = item[6].ToString();
                //dao.NOTIONAL_ = item[7].ToString();
                //dao.REMAIN_NOTIONAL_ = item[8].ToString();
                dao.EVENT_AMOUNT_ = "";
                //dao.COUNTERPARTY_ = item[10].ToString();
                dao.FLOATING_FLAG_ = "true";
                dao.CALCULATION_TYPE_ = "simpleCalculation";

                foreach (var item in this.excel_underlyingCalcInfoViewModel_.Excel_underlyingInfoViewModel_)
                {
                    dao.FIXING_UNDERLYINGS_ += item.NameTrans_.Value_ + " ; ";
                }

                dao.FIXING_OBSERVATION_ = "empty";

                dao.FIXING_FLAG_ = "false";
                dao.EXPIRED_FLAG_ = "false";
                //dao.ITEM_CODE_ = item[17].ToString();
                //dao.ITEM_TYPE_ = item[18].ToString();
                //dao.ITEM_NAME_ = item[19].ToString();

            }


        }
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel,
                                   EVENT_INFO_Table_DAO dao)
 {
     dao.EVENT_TYPE_ = "multiAssetcompositeOptionSubTypeTest";
     dao.EVENT_NAME_ = "multi_upInOutCall";
 }
Exemplo n.º 58
0
 public abstract void bookingDetailEvent(MasterInformationViewModel masterInformationViewModel,
                                         EVENT_INFO_Table_DAO dao);
 public override void bookingEvent(MasterInformationViewModel masterInformationViewModel)
 {
     this.excel_vanillaFloatingBondViewModel_.bookingEvent(masterInformationViewModel);
 }