Beispiel #1
0
 private void afterNovo()
 {
     nr_Dup.Clear();
     cd_clifor.Clear();
     dt_liquid.Clear();
     cd_empresa.Clear();
     nm_Empresa.Clear();
     vl_recibo.Value = 0;
     nm_clifor.Clear();
     cd_end.Clear();
     endereco.Clear();
     Cep.Clear();
     cidade.Clear();
     Fone_Contato.Clear();
     nr_Dup.Focus();
 }
Beispiel #2
0
 private void buscaEnd(string cd_clifor)
 {
     if (!string.IsNullOrEmpty(cd_clifor))
     {
         TList_CadEndereco lEnd =
             CamadaNegocio.Financeiro.Cadastros.TCN_CadEndereco.Buscar(cd_clifor,
                                                                       string.Empty,
                                                                       string.Empty,
                                                                       string.Empty,
                                                                       string.Empty,
                                                                       string.Empty,
                                                                       string.Empty,
                                                                       string.Empty,
                                                                       string.Empty,
                                                                       string.Empty,
                                                                       string.Empty,
                                                                       string.Empty,
                                                                       string.Empty,
                                                                       string.Empty,
                                                                       0,
                                                                       null);
         cd_end.Text       = lEnd[0].Cd_endereco;
         endereco.Text     = lEnd[0].Ds_endereco;
         Cep.Text          = lEnd[0].Cep;
         Fone_Contato.Text = lEnd[0].Fone;
         cidade.Text       = lEnd[0].rCidade.Ds_cidade;
     }
     else
     {
         cd_end.Clear();
         endereco.Clear();
         Cep.Clear();
         Fone_Contato.Clear();
         cidade.Clear();
     }
 }