protected void txtExemplar_TextChanged(object sender, EventArgs e)
        {
            hfIdExemplar.Value = string.Empty;
            ExemplaresBL exBL = new ExemplaresBL();
            Exemplares ex = new Exemplares();
            List<Exemplares> listao = exBL.PesquisarBL("ID", txtExemplar.Text);
            foreach (Exemplares laco in listao)
            {
                hfIdExemplar.Value = laco.Id.ToString();
                txtExemplar.Text = laco.Id.ToString();
                lblDesExemplar.Text = laco.Obras.Titulo;
            }

            if (utils.ComparaIntComZero(hfIdExemplar.Value) < 1)
            {
                ExibirMensagem("Exemplar não cadastrado!");
                txtExemplar.Text = string.Empty;
                lblDesExemplar.Text = string.Empty;
                txtExemplar.Focus();
            }
        }
        private void CarregarDados(int id_exe)
        {
            ExemplaresBL exeBL = new ExemplaresBL();
            DataSet dsPar = exeBL.PesquisarBL(id_exe);

            if (dsPar.Tables[0].Rows.Count != 0)
            {
                hfId.Value = (string)dsPar.Tables[0].Rows[0]["id"].ToString();
                txtTombo.Text = (string)dsPar.Tables[0].Rows[0]["tombo"].ToString();
                ddlStatus.SelectedValue = (string)dsPar.Tables[0].Rows[0]["status"];
                hfIdObra.Value = (string)dsPar.Tables[0].Rows[0]["obraid"].ToString();
                txtObra.Text = (string)dsPar.Tables[0].Rows[0]["codigo"].ToString();
                lblDesObra.Text = (string)dsPar.Tables[0].Rows[0]["titulo"];
                ddlOrigem.SelectedValue = (string)dsPar.Tables[0].Rows[0]["origemid"].ToString();
                txtObs.Text = (string)dsPar.Tables[0].Rows[0]["obs"].ToString();
            }
        }