Ejemplo n.º 1
0
        private void CarregarDetalhesRelatorio(int CodRelatorio)
        {
            RelatorioBLL      RelBLL = new RelatorioBLL();
            FUN_TBL_RELATORIO rel    = RelBLL.ConsultarRelatorio(CodRelatorio);

            CarregaDropDowList(ddlTipo, RelBLL.GetRelatorioTipos().ToList <Object>(), "NM_TIPO", "ID_TIPO_RELATORIO");
            txtCodigo.Text        = rel.ID_RELATORIO.ToString();
            txtRelatorio.Text     = rel.RELATORIO;
            ddlTipo.SelectedValue = rel.ID_TIPO_RELATORIO.ToString();
            txtTitulo.Text        = rel.TITULO;
            txtOrigem.Text        = rel.ARQUIVO;
            txtExtensao.Text      = rel.RELATORIO_EXTENSAO;
        }
Ejemplo n.º 2
0
        protected void btnNovo_Click(object sender, EventArgs e)
        {
            txtCodigo.Text    = "";
            txtRelatorio.Text = String.Empty;
            txtTitulo.Text    = String.Empty;
            txtOrigem.Text    = String.Empty;
            txtExtensao.Text  = String.Empty;
            RelatorioBLL RelBLL = new RelatorioBLL();

            CarregaDropDowList(ddlTipo, RelBLL.GetRelatorioTipos().ToList <Object>(), "NM_TIPO", "ID_TIPO_RELATORIO");
            pnlLista.Visible        = false;
            pnlDetalhe.Visible      = true;
            btnInserirParam.Enabled = false;
        }