protected void bookingModelSetting() { this.masterInformationViewModel_.Booking_type_ = this.booking_type_; this.masterInformationViewModel_.Item_code_ = CodeClassificationGenerator.CreateItemCode(this.booking_type_); this.masterInformationViewModel_.Trade_id_ = CodeClassificationGenerator.CreateTradeID(); }
public static Excel_instrumentViewModel loadInstrumentVM(string itemCode) { MATSER_INFO_Table_DAO mt_dao = new MATSER_INFO_Table_DAO(); mt_dao.ITEM_CODE_ = itemCode; mt_dao.select(DataBaseConnectManager.ConnectionFactory("myDB")); Excel_instrumentViewModel e_ivm = CodeClassificationGenerator.CreateInstrument(mt_dao.ITEM_CODE_); e_ivm.MasterInformationViewModel_.setFromDAO(mt_dao); return(e_ivm); }
public Excel_instrument_generalViewModel(bool bookingMode = false) : base(bookingMode) { if (bookingMode) { this.masterInformationViewModel_.Booking_type_ = "general"; this.masterInformationViewModel_.Item_code_ = CodeClassificationGenerator.CreateItemCode("general"); } this.Excel_interfaceViewModel_ = new Excel_generalViewModel(); this.Excel_parameterViewModel_ = new Excel_generalParaViewModel(); //this.view_.DataContext = this; }
public Excel_instrument_stepDownKICustomViewModel(bool bookingMode = false) : base(bookingMode) { if (bookingMode) { this.masterInformationViewModel_.Booking_type_ = "stepDownKICustom"; this.masterInformationViewModel_.Item_code_ = CodeClassificationGenerator.CreateItemCode("stepDownKICustom"); } this.Excel_interfaceViewModel_ = new Excel_stepDownKICustomViewModel(); this.Excel_parameterViewModel_ = new Excel_stepDownKICustomParaViewModel(); this.excel_interfaceViewModel_.Excel_underlyingCalcInfoViewModel_.PropertyChanged += this.excel_parameterViewModel_.instrumentEventObserver; //this.view_.DataContext = this; }
public static void loadWholeMasterPosition() { MasterInformationViewModel.WholeMasterPosition_.Clear(); MasterInformationViewModel.masterPositionMap_.Clear(); MATSER_INFO_Table_DAOManager mt_daoM = new MATSER_INFO_Table_DAOManager(); mt_daoM.selectAll(DataBaseConnectManager.ConnectionFactory("myDB")); foreach (var dao in mt_daoM.DAOList_) { Excel_instrumentViewModel e_ivm = CodeClassificationGenerator.CreateInstrument(dao.ITEM_CODE_); e_ivm.MasterInformationViewModel_.setFromDAO(dao); MasterInformationViewModel.WholeMasterPosition_.Add(e_ivm); MasterInformationViewModel.masterPositionMap_.Add(e_ivm.MasterInformationViewModel_.Item_code_, e_ivm); } }
public Excel_instrument_irsViewModel(bool bookingMode = false) : base(bookingMode) { this.booking_type_ = "irs"; if (bookingMode) { this.masterInformationViewModel_.Booking_type_ = this.booking_type_; this.masterInformationViewModel_.Item_code_ = CodeClassificationGenerator.CreateItemCode(this.booking_type_); } // 메뉴 Booking // private void menuBookingItem_Click(object sender, RoutedEventArgs e) this.Excel_interfaceViewModel_ = Excel_InterfaceLoader.Load(this.booking_type_); this.Excel_parameterViewModel_ = Excel_parameterLoader.Load(this.booking_type_); //this.Excel_interfaceViewModel_.setUnderlying(); this.excel_interfaceViewModel_.Excel_underlyingCalcInfoViewModel_.PropertyChanged += this.excel_parameterViewModel_.instrumentEventObserver; }