Example #1
0
 public override void afterNovo()
 {
     if ((vTP_Modo == TTpModo.tm_busca) || (vTP_Modo == TTpModo.tm_Standby))
     {
         bsCadItens.Clear();
         bsCadItens.AddNew();
         base.afterNovo();
         DS_Item.Focus();
     }
 }
Example #2
0
 public override void afterAltera()
 {
     base.afterAltera();
     st_sintetico.Enabled = (bsCadItens.Current as TRegistro_CadItens).St_sintetico.Trim().ToUpper().Equals("N");
     id_itempai.Enabled   = !(bsCadItens.Current as TRegistro_CadItens).Id_itempai.HasValue &&
                            !(bsCadItens.Current as TRegistro_CadItens).St_sinteticobool;
     BB_Grupo.Enabled = !(bsCadItens.Current as TRegistro_CadItens).Id_itempai.HasValue &&
                        !(bsCadItens.Current as TRegistro_CadItens).St_sinteticobool;
     if (vTP_Modo == TTpModo.tm_Edit)
     {
         if (!id_itempai.Focus())
         {
             DS_Item.Focus();
         }
     }
 }