Exemplo n.º 1
0
        protected void btnEntregada_Click(object sender, EventArgs e)
        {
            int codigoEstado = Convert.ToInt32(gvEntregas.GetRowValues(gvEntregas.FocusedRowIndex, "codigoEstado"));

            if (codigoEstado != Constantes.Estados.ANULADA)
            {
                int    codigoEntrega = Convert.ToInt32(gvEntregas.GetRowValues(gvEntregas.FocusedRowIndex, "codigoEntrega"));
                string observaciones = gvEntregas.GetRowValues(gvEntregas.FocusedRowIndex, "observaciones").ToString();
                ControladorGeneral.EntregadaPendienteEntrega(codigoEntrega, observaciones);
                CargarGrilla();
            }
            else
            {
                lblMensaje.Text        = "No se permite entregar un remito que esta anulado.";
                pcError.ShowOnPageLoad = true;
            }
        }