/// <summary>
        /// 选中的Tab改变事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tabControlFull_SelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
        {
            if (tabControlFull.Tabs[SysConst.EN_LIST].Selected)
            {
                #region  中【列表】Tab的场合

                //[充值]按钮可用
                SetNavigateVisiableAndEnable(SystemNavigateEnum.Code.DEPOSITMONEY, true, true);

                #endregion
            }
            else
            {
                #region  中【详情】Tab的场合

                if (string.IsNullOrEmpty(txtWal_ID.Text) ||
                    string.IsNullOrEmpty(txtWal_No.Text))
                {
                    //未保存的场合,[充值]按钮不可用
                    SetNavigateVisiableAndEnable(SystemNavigateEnum.Code.DEPOSITMONEY, true, false);
                }
                else
                {
                    //已保存的场合,[充值]按钮可用
                    SetNavigateVisiableAndEnable(SystemNavigateEnum.Code.DEPOSITMONEY, true, true);
                }
                #endregion
            }
        }
Beispiel #2
0
        private void dock_SelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
        {
            Workspace.CurrentDocument = e.DockWindow as DocumentWindow;
            var v = Workspace.CurrentDocument?.Controls[0] as TextEditorControl;

            Workspace.CurrentEditor = v;
        }
Beispiel #3
0
 private void dataTabControl_SelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
 {
     if (e.Tab != null)
     {
         lbAddUserData.Visible = e.Tab.Key.StartsWith("UDD");
         tbFocus.Focus();
     }
 }
Beispiel #4
0
        private void _ultraTabControl_Settings_SelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
        {
            _grid_Users.SuspendLayout();

            filterByType(e.Tab.Text);

            _grid_Users.ResumeLayout();
        }
Beispiel #5
0
        private void _tabStrip_SelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
        {
            TabStripButton btn = (TabStripButton)e.SelectedTab;

            _tabStrip.BackColor          = btn.BarColor;
            _toolSpecificPanel.BackColor = _panelHoldingToolStrip.BackColor = _tabStrip.BackColor;
            Logger.WriteEvent("Selecting Tab Page: " + e.SelectedTab.Name);
            SelectPage((Control)e.SelectedTab.Tag);
        }
Beispiel #6
0
        /// <summary>
        /// Raises the <see cref="SelectedTabChanged"/> event.
        /// </summary>
        /// <param name="e">Event args of the event.</param>
        protected void OnSelectedTabChanged(SelectedTabChangedEventArgs e)
        {
            var handler = SelectedTabChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Beispiel #7
0
        void _radDock_SelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
        {
            ISmartViewer viewer = e.NewWindow as ISmartViewer;

            if (viewer != null)
            {
                SetActiveViewer(viewer, viewer is ICanvasViewer);
            }
        }
Beispiel #8
0
 /// <summary>
 /// 选中的Tab改变事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void tabControlFull_SelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
 {
     //[列表]页不允许删除
     if (tabControlFull.Tabs[SysConst.EN_LIST].Selected)
     {
         SetActionEnable(SystemActionEnum.Code.DELETE, false);
     }
     else
     {
         SetActionEnable(SystemActionEnum.Code.DELETE, true);
     }
 }
Beispiel #9
0
 /// <summary>
 /// Chuyển khu vực
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void tabAreaTableMapping_SelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
 {
     try
     {
         //LoadTableByAreaID();
         ChangeAreaStatus();
     }
     catch (Exception ex)
     {
         MessageBoxCommon.ShowException(ex);
     }
 }
Beispiel #10
0
 void uTabControl_SelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
 {
     try
     {
         this.intCurTab = e.Tab.Index;
         refreshCombo();
     }
     catch (Exception ex)
     {
         var errMsg = new StringBuilder();
         errMsg.AppendLine("uTabControl_SelectedTabChanged Eror");
         errMsg.AppendLine(string.Format(ex.Message));
         WfShowErrorMsg(errMsg.ToString());
     }
 }
Beispiel #11
0
 /// <summary>
 /// 选中的Tab改变事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void tabControlFull_SelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
 {
     //[列表]页不允许删除
     if (tabControlFull.Tabs[SysConst.EN_LIST].Selected)
     {
         //选中【列表】Tab的场合
         //[删除]不可用
         SetActionEnable(SystemActionEnum.Code.DELETE, false);
     }
     else
     {
         //选中【详情】Tab的场合
         //[删除]可用
         SetActionEnable(SystemActionEnum.Code.DELETE, !string.IsNullOrEmpty(txtUser_ID.Text));
     }
 }
Beispiel #12
0
        public void ChangeCaptionOfSelectedTab(SelectedTabChangedEventArgs e)
        {
            if (e == null)
            {
                return;
            }

            if (e.PreviousSelectedTab != null)
            {
                e.PreviousSelectedTab.Appearance.FontData.Bold = Infragistics.Win.DefaultableBoolean.False;
            }

            if (e.Tab != null)
            {
                e.Tab.Appearance.FontData.Bold = Infragistics.Win.DefaultableBoolean.True;
            }
        }
Beispiel #13
0
 /// <summary>
 /// Handles the selected tab changed event of the ribbon.
 /// </summary>
 /// <param name="sender">Sender of the event.</param>
 /// <param name="e">Event args of the event.</param>
 private void RibbonBarSelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
 {
     if (e.RibbonTabVM == null)
     {
         ContentArea = null;
     }
     else if (e.RibbonTabVM.Header == RibbonTabName.CATEGORIES)
     {
         ContentArea = _categoriesVM;
     }
     else if (e.RibbonTabVM.Header == RibbonTabName.DOWNLOADS)
     {
         ContentArea = _downloadsVM;
     }
     else if (e.RibbonTabVM.Header == RibbonTabName.DASHBOARD)
     {
         ContentArea = _dashboardVM;
     }
 }
 private void ripartizioneUnitaSelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
 {
     if (e.Tab.Key == "unitaImmobiliari")
     {
         if (_movimentoContabileDTO != null && _contoDTO != null)
         {
             panelSpesePersonali.Visible = _contoDTO.IsSpesePersonali && !_readOnly;
             if (_contoDTO.IsSpesePersonali)
             {
                 soggetti.DisplayLayout.Bands[0].Columns["Importo"].Hidden = false;
                 soggetti.DisplayLayout.Bands[0].Columns["TipoCondomino"].Hidden = false;
                 soggetti.DisplayLayout.Bands[0].Columns["DirittiReali"].Hidden = false;
                 soggetti.DisplayLayout.Bands[0].Columns["PercentualeSpese"].Hidden = false;
                 importoUguale.Value = _movimentoContabileDTO.Importo.GetValueOrDefault();
             }
             else
             {
                 soggetti.DisplayLayout.Bands[0].Columns["Importo"].Hidden = true;
                 soggetti.DisplayLayout.Bands[0].Columns["TipoCondomino"].Hidden = true;
                 soggetti.DisplayLayout.Bands[0].Columns["DirittiReali"].Hidden = true;
                 soggetti.DisplayLayout.Bands[0].Columns["PercentualeSpese"].Hidden = true;
             }
         }
         else if (_contoDTO == null)
         {
             _log.WarnFormat("ATTENZIONE: Trovato movimento senza conto definito - {0} - esercizio:{1} - movimento:{2}", Utility.GetMethodDescription(), _esercizioDTO.ID, _movimentoContabileDTO != null ? _movimentoContabileDTO.ID.ToString(CultureInfo.InvariantCulture) : "<NULL>", _contoDTO != null ? _contoDTO.ID.ToString(CultureInfo.InvariantCulture) : "<NULL>");
         }
     }
 }
Beispiel #15
0
        private void dettagliSpesaSelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
        {
            try
            {
                if (e.Tab.Index == -1)
                {
                    dettagliSpesa.SelectedTab = dettagliSpesa.Tabs[0];
                    return;
                }

                var modelloDaSalvare = false;

                if (dettagliSpesa.Tabs.Count > 2)
                {
                    lblAltreSpese.Visible = false;
                    altreSpese.Visible = false;
                    altreSpese.Tag = null;
                    altreSpeseDettaglio.ValueObject = null;
                    altreSpeseDettaglio.Visible = false;

                    lblAltreSpeseEsenti.Visible = false;
                    altreSpeseEsenti.ValueObject = null;
                    altreSpeseEsenti.Visible = false;

                    lblSpeseEsentiRitenuta.Visible = false;
                    speseEsentiRitenuta.ValueObject = null;
                    speseEsentiRitenuta.Visible = false;

                    _spesa.AltreSpese = null;
                    _spesa.AltreSpeseEsenti = null;
                    _spesa.SpeseEsentiRitenuta = null;
                }

                if (_isInserimento && modelloRipartizione.Value == null && ripartizioneDettaglio.Rows.Count > 1 && getCurrentRipartizione() != null && string.IsNullOrEmpty(getCurrentRipartizione().NomeModello))
                    modelloDaSalvare = true;

                DettaglioSpesaDTO dettaglio;
                DettaglioSpesaDTO oldDettaglio = null;
                if (e.Tab.Tag == null)
                {
                    dettaglio = newDettaglioSpesa();
                    dettaglio.NumeroRiga = e.Tab.Index + 1;
                    e.Tab.Tag = dettaglio;

                    if (e.PreviousSelectedTab?.Tag != null)
                    {
                        oldDettaglio = (DettaglioSpesaDTO)e.PreviousSelectedTab.Tag;
                        if (oldDettaglio.IdModelloRipartizione != null && oldDettaglio.IdModelloRipartizione.Value > 0)
                            dettaglio.IdModelloRipartizione = oldDettaglio.IdModelloRipartizione;
                        dettaglio.AliquotaIva = oldDettaglio.AliquotaIva;
                        dettaglio.SoggettoRitenutaAcconto = oldDettaglio.SoggettoRitenutaAcconto;
                        dettaglio.Descrizione = oldDettaglio.Descrizione;

                        if (modelloDaSalvare)
                        {

                            var form = new SalvataggioModelloRegistrazioneContabile((List<ModelloRegistrazioneContabileDTO>)modelliContabiliBindingSource.DataSource, modelloRipartizione.Text, descrizioneDettaglio.Text);
                            if (form.ShowDialog() != DialogResult.Cancel)
                            {
                                getCurrentRipartizione().NomeModello = form.Nome;
                                getCurrentRipartizione().DescrizioneVoceSpesa = form.DescrizioneVoceSpesa;
                                getCurrentRipartizione().AssociatoFornitore = form.AssociatoFornitore;
                            }

                            form.Dispose();
                        }
                    }
                }
                else
                    dettaglio = (DettaglioSpesaDTO)e.Tab.Tag;

                setRipartizioneDettaglio(dettaglio);

                // Se non è impostato un importo elimino il dettaglio
                if (importoDettaglioSpesa.Value == 0 && e.PreviousSelectedTab?.Tag != null)
                {
                    _spesa.Dettagli.Remove((DettaglioSpesaDTO)e.PreviousSelectedTab.Tag);
                    e.PreviousSelectedTab.Tag = null;
                }

                setDettaglioDataSource(oldDettaglio, dettaglio);

                setFocus(importoDettaglioSpesa);

                // Cassa professionisti e Altre spese sono campi di testata li visualizzo solo sul primo dettaglio
                if (dettagliSpesa.SelectedTab.Index != 0)
                {
                    cassaProfessionistiDettaglio.Visible = false;
                    lblCassaProfessionistiDettaglio.Visible = false;

                    altreSpeseDettaglio.Visible = false;
                    lblAltreSpeseDettaglio.Visible = false;

                    altreSpeseEsenti.Visible = false;
                    lblAltreSpeseEsenti.Visible = false;

                    speseEsentiRitenuta.Visible = false;
                    lblSpeseEsentiRitenuta.Visible = false;
                }
                else
                {
                    lblCassaProfessionistiDettaglio.Visible = true;
                    cassaProfessionistiDettaglio.Visible = true;

                    if (dettagliSpesa.Tabs.Count <= 2 && !getMovimentoContabileService().IsMultiSpesa)
                    {
                        altreSpeseDettaglio.Visible = true;
                        lblAltreSpeseDettaglio.Visible = true;

                        speseEsentiRitenuta.Visible = true;
                        lblSpeseEsentiRitenuta.Visible = true;

                        altreSpeseEsenti.Visible = true;
                        lblAltreSpeseEsenti.Visible = true;
                    }
                    else
                    {
                        altreSpeseDettaglio.Visible = false;
                        altreSpeseDettaglio.ValueObject = null;
                        lblAltreSpeseDettaglio.Visible = false;

                        altreSpeseEsenti.Visible = false;
                        altreSpeseEsenti.ValueObject = null;
                        lblAltreSpeseEsenti.Visible = false;
                        lblAltreSpese.Visible = false;

                        speseEsentiRitenuta.Visible = false;
                        speseEsentiRitenuta.ValueObject = null;
                        lblSpeseEsentiRitenuta.Visible = false;

                        if(_spesa.AltreSpeseEsenti != 0 && _spesa.AltreSpeseEsenti != null)
                            _spesa.AltreSpeseEsenti = null;
                        if (_spesa.SpeseEsentiRitenuta != 0 && _spesa.SpeseEsentiRitenuta != null)
                            _spesa.SpeseEsentiRitenuta = null;
                    }
                }

                if (string.IsNullOrEmpty(descrizioneDettaglio.Text))
                    descrizioneDettaglio.Text = _condominio.FormatoDescrizioneSpesa;

                ripartizioneDettaglio.Focus();
                ripartizioneDettaglio.PerformAction(UltraGridAction.FirstCellInGrid);
            }
            catch (Exception ex)
            {
                
                _log.Error("Errore non previsto nel click sul tab di dettaglio - " + Utility.GetMethodDescription(), ex);
                throw;
            }
        }
Beispiel #16
0
 protected void editor_SelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
 {
     ManageTemplatesDisplay();
 }
Beispiel #17
0
        protected override void OnSelectedTabChanged(SelectedTabChangedEventArgs e)
        {
            base.OnSelectedTabChanged(e);

            this.composer.VerifyActiveItem(e.Tab);
        }
Beispiel #18
0
 private void TabPageControl_SelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
 {
     SelectTabControl();
 }
Beispiel #19
0
 private void UltraTabControl1_SelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
 {
     _formLogic.ChangeCaptionOfSelectedTab(e);
 }
Beispiel #20
0
 protected void editor_SelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
 {
     ManageTemplatesDisplay();
 }
Beispiel #21
0
        private void dock_SelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
        {
            Workspace.CurrentDocument = e.DockWindow as DocumentWindow;
            var v = Workspace.CurrentDocument?.Controls[0] as TextEditorControl;

            Workspace.CurrentEditor = v;
        }