Example #1
0
 public override void afterAltera()
 {
     if (tcCentral.SelectedIndex == 0)
     {
         base.afterAltera();
         if (vTP_Modo == TTpModo.tm_Edit)
         {
             DS_SerieNf.Focus();
         }
     }
     else
     {
         if (BS_Sequencia.Count > 0)
         {
             base.afterAltera();
             if (vTP_Modo == TTpModo.tm_Edit)
             {
                 CD_Empresa.Focus();
             }
         }
         else
         {
             afterNovo();
         }
     }
 }
Example #2
0
        public override void afterNovo()
        {
            if (tcCentral.SelectedIndex == 0)
            {
                if ((vTP_Modo == TTpModo.tm_busca) || (vTP_Modo == TTpModo.tm_Standby))
                {
                    BS_CadSerieNF.AddNew();
                    base.afterNovo();
                    if (!Nr_Serie.Focus())
                    {
                        DS_SerieNf.Focus();
                    }
                }
            }
            else
            {
                if ((vTP_Modo == TTpModo.tm_busca) || (vTP_Modo == TTpModo.tm_Standby))
                {
                    string NR_Serie_Sequencia = (BS_CadSerieNF.Current as TRegistro_CadSerieNF).Nr_Serie.Trim();
                    string DS_Serie_Sequencia = (BS_CadSerieNF.Current as TRegistro_CadSerieNF).DS_SerieNf.Trim();

                    BS_Sequencia.AddNew();
                    base.afterNovo();
                    CD_Empresa.Focus();

                    (BS_Sequencia.Current as TRegistro_CadSequenciaNF).Nr_Serie = NR_Serie_Sequencia;
                    (BS_Sequencia.Current as TRegistro_CadSequenciaNF).DS_Serie = DS_Serie_Sequencia;
                    NR_Serie_Sequencia_edit.Text = NR_Serie_Sequencia;
                    DS_Serie_Sequencia_edit.Text = DS_Serie_Sequencia;
                }
            }
        }
Example #3
0
 public override string ToString()
 {
     return(Nr_Serie.Trim() + "-" + DS_SerieNf.Trim());
 }