I made a select to fetch an account and load the sub account and would like your opinion to see if this is how it does if it is correct
code
private void cbbConta_SelectedIndexChanged(object sender, EventArgs e)
{
PlanoContasDTO objPlanoConta = new PlanoContasDTO();
objPlanoConta.DescricaoPlanoContas = cbbConta.Text;
objPlanoConta = new PlanoContasModel().PesqContaNome(objPlanoConta);
int conta = objPlanoConta.CodConta;
CarregarSubContaCombo(conta);
}
follows the screen images
Choose the consumer account
ChooseAccountSubaccount
SofarrightthisaccountisR=Revenueanddoesnotappearinexpenses