//protected void txt_Imposto_ #endregion #region metodos private void CarregarTela() { var corretores = new ListarCorretorRepositorio().Listar(); carregarCorretor((List <corretor_tb>)corretores); var agenciadores = new ListarAgenciadorRepositorio().Listar(); carregarAgenciador((List <agenciador_tb>)agenciadores); if (!string.IsNullOrEmpty(Request["id"])) { comissao = new ComissaoRepositorio().RecuperarPelaChave(Convert.ToInt32(Request["id"])); //chkAgenciamento.Checked = Convert.ToBoolean(proposta.agenciamento); //txtCodigo.Text = proposta.codigo.ToString(); //txtDataEmissao.Text = proposta.data_emissao.ToString(); //txtDataProposta.Text = proposta.data_proposta.ToString(); //txtParcelamento.Text = proposta.parcelamento.ToString(); //txtPremio.Text = proposta.premio_liquido.ToString(); //txtPercentual.Text = proposta.percentual_comissao.ToString(); //chkAgenciamento.Checked = Convert.ToBoolean(proposta.agenciamento); } }
public void carregarGrid() { var agenciadores = new ListarAgenciadorRepositorio().Listar(); if (agenciadores.Count() > 0) { gvAgenciador.DataSource = agenciadores.ToList(); gvAgenciador.DataBind(); } }