private void carregaCBB() { Controller.PagamentoController pagc = new Controller.PagamentoController(); DataTable dtForma = pagc.retornaFormaPagamento(); cbbForma.DataSource = dtForma; cbbForma.ValueMember = "codformapag"; cbbForma.DisplayMember = "formpag_descricao"; }
public void carregaGrid() { Controller.PagamentoController _ctlFormaPag = new Controller.PagamentoController(); DataTable dtRetorno = _ctlFormaPag.retornaFormaPagamento(); if (dtRetorno != null && dtRetorno.Rows.Count > 0) { DataRow dr = dtRetorno.Rows[intcodForma]; this.carregaFormaPagamento( dr["codformapag"].ToString(), dr["formpag_descricao"].ToString()); } }
private void CarregaFormasPagamento() { Controller.PagamentoController objForma = new Controller.PagamentoController(); DataTable dtFormas = objForma.retornaFormaPagamento(); if (dtFormas != null && dtFormas.Rows.Count > 0) { this.cbbForma.ValueMember = "codformapag"; this.cbbForma.DisplayMember = "formpag_descricao"; this.cbbForma.DataSource = dtFormas; } }
public void pesquisaFormaPagamento() { Controller.PagamentoController _ctrlFormaPag = new Controller.PagamentoController(); DataTable dtRetorno = _ctrlFormaPag.retornaFormaPagamento(); if (dtRetorno != null) { dgvFormaPagamento.DataSource = dtRetorno; dgvFormaPagamento.ClearSelection(); } else { dgvFormaPagamento.Rows.Clear(); } }
public void carregaGrid() { Controller.PagamentoController _ctlFormaPag = new Controller.PagamentoController(); DataTable dtRetorno = _ctlFormaPag.retornaFormaPagamento(); if (dtRetorno != null && dtRetorno.Rows.Count > 0) { DataRow dr = dtRetorno.Rows[intCodServico]; this.carregaServico( dr["codtiposervico"].ToString(), dr["tiposerv_descricao"].ToString(), dr["tiposerv_obs"].ToString(), dr["tiposerv_valor"].ToString(), dr["tiposerv_temposervico"].ToString()); DGVMoeda(); } }