コード例 #1
0
        private void Consultar()
        {
            int          guiaID = Convert.ToInt32(this.Request.QueryString["GuiaID"]);
            IGuiaFactura guia   = GuiaFacturaFactory.GetGuiaFactura();

            ((IGuia)guia).GuiaID = guiaID;
            DsGuiasFacturas ds = guia.GetGuiasAgenciaAAgenciaDataSet(new DateTime(1900, 1, 1), DateTime.Now);

            DsGuiasFacturas.DatosRow[] dr = (DsGuiasFacturas.DatosRow[])ds.Datos.Select("GuiaID =" + guiaID);
            if (dr.Length > 0)
            {
                char[] separador = { ',' };
                //string[] nombre = /*dr[0].IsRemitenteClienteNull() ? {''} :*/ dr[0].RemitenteCliente.Split(separador);
                string[] nombre;

                if (dr[0].RemitenteCliente.Length > 0)
                {
                    nombre = dr[0].RemitenteCliente.Split(separador);
                    this.txtNombre.Text   = nombre[1].ToString().Trim();
                    this.txtApellido.Text = nombre[0].ToString().Trim();
                }

                //nombre = /*dr[0].IsDestinatarioClienteNull() ? {''} :*/ dr[0].DestinatarioCliente.Split(separador);
                if (dr[0].DestinatarioCliente.Length > 0)
                {
                    nombre = dr[0].DestinatarioCliente.Split(separador);
                    this.txtNombreDesti.Text   = nombre[1].ToString().Trim();
                    this.txtApellidoDesti.Text = nombre[0].ToString().Trim();
                }

                this.txtObservaciones.Text = dr[0].IsObservacionesNull() ? "" : dr[0].Observaciones;

                this.lblAgenciaDestinoTitulo.Attributes.Add("style", "display:inline");
                this.lblAgenciaDestino.Attributes.Add("style", "display:inline");
                this.lblAgenciaDestino.Text = dr[0].RazonSocialDestino;
                this.lblProvincia.Attributes.Add("style", "display:none");
                this.lblLocalidad.Attributes.Add("style", "display:none");
                this.lblAgencia.Attributes.Add("style", "display:none");
                this.ddlProvincia.Attributes.Add("style", "display:none");
                this.ddlLocalidad.Attributes.Add("style", "display:none");
                this.ddlAgencia.Attributes.Add("style", "display:none");
                this.butAceptar.Attributes.Add("style", "display:none");
                this.txtApellido.Enabled      = false;
                this.txtApellidoDesti.Enabled = false;
                this.txtNombre.Enabled        = false;
                this.txtNombreDesti.Enabled   = false;
                this.txtObservaciones.Enabled = false;
                this.butVolver.Attributes.Add("style", "display:inline");
            }
        }
コード例 #2
0
        private void Consultar()
        {
            int          guiaID = Convert.ToInt32(this.Request.QueryString["GuiaID"]);
            IGuiaFactura guia   = GuiaFacturaFactory.GetGuiaFactura();

            ((IGuia)guia).GuiaID = guiaID;
            DsGuiasFacturas ds = guia.GetGuiasRendicionDataSet(new DateTime(1900, 1, 1), DateTime.Now);

            DsGuiasFacturas.DatosRow[] dr = (DsGuiasFacturas.DatosRow[])ds.Datos.Select("GuiaID =" + guiaID);
            if (dr.Length > 0)
            {
                char[]   separador = { ',' };
                string[] nombre    = /*dr[0].IsRemitenteClienteNull() ? {''} :*/ dr[0].RemitenteCliente.Split(separador);
                if (!dr[0].RemitenteCliente.Equals(""))
                {
                    this.txtNombre.Text   = nombre[1].ToString().Trim();
                    this.txtApellido.Text = nombre[0].ToString().Trim();
                }

                nombre = /*dr[0].IsDestinatarioClienteNull() ? {''} :*/ dr[0].DestinatarioCliente.Split(separador);
                if (!dr[0].DestinatarioCliente.Equals(""))
                {
                    this.txtNombreDesti.Text   = nombre[1].ToString().Trim();
                    this.txtApellidoDesti.Text = nombre[0].ToString().Trim();
                }

                this.txtObservaciones.Text = dr[0].IsObservacionesNull() ? "" : dr[0].Observaciones;
                this.butAceptar.Attributes.Add("style", "display:none");
                this.txtApellido.Enabled      = false;
                this.txtApellidoDesti.Enabled = false;
                this.txtNombre.Enabled        = false;
                this.txtNombreDesti.Enabled   = false;
                this.txtObservaciones.Enabled = false;
                this.chkTodos.Enabled         = false;

                oGuiaRen = GuiaRendicionFactory.GetGuiaRendicion();
                ((IGuia)oGuiaRen).GuiaID = guiaID;
                DsGuias dsGuiasRendidas = oGuiaRen.GetGuiasAsignadaGuiaRendicionByGuiaID();
                SisPackController.AdministrarGrillas.Configurar(this.dtgGuiasRendicion, "GuiaID", this.CantidadOpciones);
                this.dtgGuiasRendicion.DataSource = dsGuiasRendidas;
                this.dtgGuiasRendicion.DataBind();
                this.dtgGuiasRendicion.Enabled = false;
                this.butVolver.Attributes.Add("style", "display:inline");
            }
        }
コード例 #3
0
        private void BindGrid(int currentPage)
        {
            SisPackController.AdministrarGrillas.Configurar(this.dtgGuias, "GuiaID", this.CantidadOpciones);
            DateTime fechaDesde = this.txtFechaDesde.Text != "" ? Utiles.Fechas.FormatFechaDDMMYYYY(this.txtFechaDesde.Text) : Utiles.Fechas.FormatFechaDDMMYYYY("01/01/1900"),
                     fechaHasta = this.txtFechaHasta.Text != "" ? Utiles.Fechas.FormatFechaDDMMYYYY(this.txtFechaHasta.Text) : DateTime.Today;

            IGuiaFactura guiaFact = GuiaFacturaFactory.GetGuiaFactura();

            ((IGuia)guiaFact).AgenciaOrigenID = this.AgenciaConectadaID;
            ((IGuia)guiaFact).TipoGuia        = this.rbtGuiaA.Checked ? "A" : this.rbtGuiaB.Checked ? "B" : this.rbtGuiaR.Checked ? "R" : this.rbtGuiaE.Checked ? "E" : "";
            guiaFact.CondicionPagoID          = (NegociosSisPackInterface.SisPack.CondicionPago)(this.ddlCondicionPago.SelectedIndex > 0 ? Convert.ToInt32(this.ddlCondicionPago.SelectedValue) : 0);
            DsGuiasFacturas dsAux = new DsGuiasFacturas();
            DsGuiasFacturas ds    = new DsGuiasFacturas();

            if (this.chkGuiasFacturas.Checked)
            {
                #region GuiasFacturas
                //obtengo las guias facturas en el ds Final
                ds = guiaFact.GetGuiasFacturasDataSet(fechaDesde, fechaHasta);
                #endregion
            }

            if (this.chkGuiasAgenciaAAgencia.Checked)
            {
                #region AgenciaAAgencia
                //obtengo las guias agencia a agencia en el dsAux
                dsAux = guiaFact.GetGuiasAgenciaAAgenciaDataSet(fechaDesde, fechaHasta);
                //agrego las guias de agencia a agencia en ds Final
                foreach (DsGuiasFacturas.DatosRow row in dsAux.Tables[0].Rows)
                {
                    ds.Datos.AddDatosRow(row.GuiaID,
                                         row.IsCantidadBultosTotalNull() ? 0 : row.CantidadBultosTotal,
                                         row.IsRemitoClienteNroNull() ? "" : row.RemitoClienteNro,
                                         row.IsVolumenTotalNull() ? 0 : row.VolumenTotal,
                                         row.IsValorDeclaradoTotalNull() ? 0 : row.ValorDeclaradoTotal,
                                         row.IsTipoAgenteGuiaPagoIDNull() ? 0 : row.TipoAgenteGuiaPagoID,
                                         row.IsModalidadEntregaIDNull() ? 0 : row.ModalidadEntregaID,
                                         row.IsImporteNetoTotalNull() ? 0 : row.ImporteNetoTotal,
                                         row.IsImporteTotalGuiaNull() ? 0 : row.ImporteTotalGuia,
                                         row.IsIVAInscriptoTotalNull() ? 0 : row.IVAInscriptoTotal,
                                         row.IsTipoDocumCUITAgentePagoNull() ? 0 : row.TipoDocumCUITAgentePago,
                                         row.IsCUITAgentePagoNull() ? "" : row.CUITAgentePago,
                                         row.IsImporteRedondeoTotalNull() ? 0 : row.ImporteRedondeoTotal,
                                         row.IsCondicionIvaAgentePagoNull() ? 0 : row.CondicionIvaAgentePago,
                                         row.IsCondicionPagoIDNull() ? 0 : row.CondicionPagoID,
                                         row.IsDestinatarioClienteNull() ? "" : row.DestinatarioCliente,
                                         row.IsPesoTotalNull() ? 0 : row.PesoTotal,
                                         row.IsRemitenteClienteNull() ? "" : row.RemitenteCliente,
                                         row.IsPorcentajeIVAAplicadoNull() ? 0 : row.PorcentajeIVAAplicado,
                                         row.IsTipoGuiaNull() ? "" : row.TipoGuia,
                                         row.IsNroSucursalGuiaNull() ? 0 : row.NroSucursalGuia,
                                         row.IsNroGuiaNull() ? 0 : row.NroGuia,
                                         row.IsAgenciaDestinoIDNull() ? 0 : row.AgenciaDestinoID,
                                         row.IsAgenciaOrigenIDNull() ? 0 : row.AgenciaOrigenID,
                                         row.IsPuntoRecepcionIDNull() ? 0 : row.PuntoRecepcionID,
                                         row.IsClasificacionGuiaIDNull() ? 0 : row.ClasificacionGuiaID,
                                         row.IsFechaEmisionNull() ? new DateTime(1900, 1, 1) : row.FechaEmision,
                                         row.IsUnidadNegocioIDNull() ? 0 : row.UnidadNegocioID, 0, 0,
                                         row.IsClienteDescripNull() ? "" : row.ClienteDescrip,
                                         row.IsCondicionPagoDescripNull() ? "" : row.CondicionPagoDescrip,
                                         row.IsRazonSocialOrigenNull() ? "" : row.RazonSocialOrigen,
                                         row.IsRazonSocialDestinoNull()? "" : row.RazonSocialDestino,
                                         row.IsModalidadEntregaDescripNull() ? "" : row.ModalidadEntregaDescrip,
                                         row.IsObservacionesNull() ? "" : row.Observaciones,
                                         row.IsRemitenteClienteIDNull() ? 0 : row.RemitenteClienteID,
                                         row.IsDestinatarioClienteIDNull() ? 0 : row.DestinatarioClienteID,
                                         row.IsOrdenPlanillaRetiroNroNull() ? "" : row.OrdenPlanillaRetiroNro,
                                         row.IsSiniestroNull()? "" : row.Siniestro,
                                         row.IsFacturaIDNull() ? 0: row.FacturaID,
                                         /* SF Agregar Datos para que no de error el dataset por nro lote y cupon*/
                                         row.IsNroLoteNull() ? "": row.NroLote,
                                         row.IsNroCuponNull() ? "": row.NroCupon, row.IsMetrosCubicosNull() ? 0 : row.MetrosCubicos);
                }
                #endregion
            }

            if (this.chkGuiasRendicion.Checked)
            {
                #region GuiasRendicion
                //obtengo las guias de rendicion en el dsAux
                dsAux = guiaFact.GetGuiasRendicionDataSet(fechaDesde, fechaHasta);
                //agrego las guias de rendicion en el ds Final
                foreach (DsGuiasFacturas.DatosRow row in dsAux.Tables[0].Rows)
                {
                    ds.Datos.AddDatosRow(row.GuiaID,
                                         row.IsCantidadBultosTotalNull() ? 0 : row.CantidadBultosTotal,
                                         row.IsRemitoClienteNroNull() ? "" : row.RemitoClienteNro,
                                         row.IsVolumenTotalNull() ? 0 : row.VolumenTotal,
                                         row.IsValorDeclaradoTotalNull() ? 0 : row.ValorDeclaradoTotal,
                                         row.IsTipoAgenteGuiaPagoIDNull() ? 0 : row.TipoAgenteGuiaPagoID,
                                         row.IsModalidadEntregaIDNull() ? 0 : row.ModalidadEntregaID,
                                         row.IsImporteNetoTotalNull() ? 0 : row.ImporteNetoTotal,
                                         row.IsImporteTotalGuiaNull() ? 0 : row.ImporteTotalGuia,
                                         row.IsIVAInscriptoTotalNull() ? 0 : row.IVAInscriptoTotal,
                                         row.IsTipoDocumCUITAgentePagoNull() ? 0 : row.TipoDocumCUITAgentePago,
                                         row.IsCUITAgentePagoNull() ? "" : row.CUITAgentePago,
                                         row.IsImporteRedondeoTotalNull() ? 0 : row.ImporteRedondeoTotal,
                                         row.IsCondicionIvaAgentePagoNull() ? 0 : row.CondicionIvaAgentePago,
                                         row.IsCondicionPagoIDNull() ? 0 : row.CondicionPagoID,
                                         row.IsDestinatarioClienteNull() ? "" : row.DestinatarioCliente,
                                         row.IsPesoTotalNull() ? 0 : row.PesoTotal,
                                         row.IsRemitenteClienteNull() ? "" : row.RemitenteCliente,
                                         row.IsPorcentajeIVAAplicadoNull() ? 0 : row.PorcentajeIVAAplicado,
                                         row.IsTipoGuiaNull() ? "" : row.TipoGuia,
                                         row.IsNroSucursalGuiaNull() ? 0 : row.NroSucursalGuia,
                                         row.IsNroGuiaNull() ? 0 : row.NroGuia,
                                         row.IsAgenciaDestinoIDNull() ? 0 : row.AgenciaDestinoID,
                                         row.IsAgenciaOrigenIDNull() ? 0 : row.AgenciaOrigenID,
                                         row.IsPuntoRecepcionIDNull() ? 0 : row.PuntoRecepcionID,
                                         row.IsClasificacionGuiaIDNull() ? 0 : row.ClasificacionGuiaID,
                                         row.IsFechaEmisionNull() ? new DateTime(1900, 1, 1) : row.FechaEmision,
                                         row.IsUnidadNegocioIDNull() ? 0 : row.UnidadNegocioID, 0, 0,
                                         row.IsClienteDescripNull() ? "" : row.ClienteDescrip,
                                         row.IsCondicionPagoDescripNull() ? "" : row.CondicionPagoDescrip,
                                         row.IsRazonSocialOrigenNull() ? "" : row.RazonSocialOrigen,
                                         row.IsRazonSocialDestinoNull()? "" : row.RazonSocialDestino,
                                         row.IsModalidadEntregaDescripNull() ? "" : row.ModalidadEntregaDescrip,
                                         row.IsObservacionesNull() ? "" : row.Observaciones,
                                         row.IsRemitenteClienteIDNull() ? 0 : row.RemitenteClienteID,
                                         row.IsDestinatarioClienteIDNull() ? 0 : row.DestinatarioClienteID,
                                         row.IsOrdenPlanillaRetiroNroNull() ? "" : row.OrdenPlanillaRetiroNro,
                                         row.IsSiniestroNull() ? "": row.Siniestro,
                                         row.IsFacturaIDNull() ? 0: row.FacturaID,
                                         /* SF Agregar Datos para que no de error el dataset por nro lote y cupon*/
                                         row.IsNroLoteNull() ? "": row.NroLote,
                                         row.IsNroCuponNull() ? "" : row.NroCupon, row.IsMetrosCubicosNull() ? 0 : row.MetrosCubicos);
                }
                #endregion
            }

            //filtro el dataset completo y listo
            Session["DsGuiasConsul"] = ds;
            if (this.txtNroGuia.Text.Trim() != "" && this.txtOrdenRetiro.Text.Trim() == "")
            {
                this.dtgGuias.DataSource = (DsGuiasFacturas.DatosRow[])ds.Datos.Select("NroGuia = " + Validaciones.obtieneEntero(this.txtNroGuia.Text), "NroGuia ASC");
            }
            else if (this.txtNroGuia.Text.Trim() == "" && this.txtOrdenRetiro.Text.Trim() != "")
            {
                this.dtgGuias.DataSource = (DsGuiasFacturas.DatosRow[])ds.Datos.Select("OrdenPlanillaRetiroNro LIKE '" + this.txtOrdenRetiro.Text + "'", "NroGuia ASC");
            }
            else if (this.txtNroGuia.Text.Trim() != "" && this.txtOrdenRetiro.Text.Trim() != "")
            {
                this.dtgGuias.DataSource = (DsGuiasFacturas.DatosRow[])ds.Datos.Select("NroGuia = " + Validaciones.obtieneEntero(this.txtNroGuia.Text) + " and OrdenPlanillaRetiroNro LIKE '" + this.txtOrdenRetiro.Text + "'", "NroGuia ASC");
            }
            else
            {
                this.dtgGuias.DataSource = ds.Datos.Select("", "NroGuia ASC");
            }
            this.dtgGuias.CurrentPageIndex = currentPage;
            this.dtgGuias.DataBind();
        }
コード例 #4
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            if (User.Identity.IsAuthenticated)
            {
                //this.SetCultura();
                string sOpcion = "consultarGuiasEmitidas";
                Menu   oMenu   = (Menu)this.FindControl("Menu1");
                this.ValidarSeguridad(oMenu, sOpcion);
            }

            volverAseguimiento = Request.QueryString["VolverA"] != null && Request.QueryString["VolverA"].ToString() == "Seguimiento";
            if (volverAseguimiento)
            {
                this.butVolver.Visible = false;
                /*Diego M  Mostra boton cerrar*/
                this.butCerrar.Visible                = true;
                this.butAtras.Visible                 = false;
                this.lblAgenciaEmisora.Visible        = true;
                this.lblAgenciaEmisoraDescrip.Visible = true;
            }
            else
            {
                this.butVolver.Visible = true;
                /*Diego M  Ocultar boton cerrar*/
                this.butCerrar.Visible                = false;
                this.butAtras.Visible                 = false;
                this.lblAgenciaEmisora.Visible        = false;
                this.lblAgenciaEmisoraDescrip.Visible = false;
            }

            if (!IsPostBack)
            {
                this.txtGuiaID.Text      = this.Request.QueryString["GuiaID"] == null ? "0" : this.Request.QueryString["GuiaID"];
                this.lblFechaActual.Text = DateTime.Today.ToString("dd/MM/yyyy");

                IAgencia oAgencia = AgenciaFactory.GetAgencia();
                oAgencia.AgenciaID = Convert.ToInt32(this.AgenciaConectadaID);
                oAgencia.ConsultarBasico();
                this.lblAgenciaConectada.Text = oAgencia.RazonSocial;
            }

            if (this.txtGuiaID.Text != "")
            {
                guiaID = Convert.ToInt32(this.txtGuiaID.Text);
                IGuia guia = GuiaFactory.GetGuia();
                guia.GuiaID = guiaID;
                guia.Consultar();
                lblSiniestro.Text  = guia.TipoSiniestroID == 1 ? "Número de siniestro:" : "Acta de infracción:";
                txtSiniestro.Text  = guia.SiniestroDescrip;
                lblFechaDigit.Text = guia.FechaDigitalizacionReal > DateTime.MinValue ? guia.FechaDigitalizacionReal.ToShortDateString() : "Guía no digitalizada aún";
                IGuiaFactura guiaConsul = GuiaFacturaFactory.GetGuiaFactura();
                ((IGuia)guiaConsul).GuiaID = guiaID;
                this.estadoGuia            = guiaConsul.ConsultarEstadoGuia();

                if ((DsGuiasFacturas)Session["DsGuiasConsul"] != null)
                {
                    dsGuiasConsul = (DsGuiasFacturas)Session["DsGuiasConsul"];
                }
                else
                {                       //viene de la consulta de seguimiento
                    dsGuiasConsul            = (DsGuiasFacturas)guiaConsul.GetGuiaFacturaOneDataSet();
                    Session["DsGuiasConsul"] = null;
                }
                this.Editar();
                this.VisualizarImagen();
                BindGridConceptosFacturacion();
            }
        }
コード例 #5
0
        private void butBuscar_Click(object sender, System.EventArgs e)
        {
            try
            {
                DsGuias   ds;
                DsFactura dsFactura;
                ds = BuscarPorTipo();

                if (ds.Datos.Count == 0)
                {
                    dsFactura = BuscarFacturaPorTipo();
                    if (dsFactura.Datos.Count > 0)
                    {
                        DsFactura.DatosRow drFac = (DsFactura.DatosRow)dsFactura.Datos.Rows[0];
                        if (drFac.AgenciaID != 0)
                        {
                            IAgencia agenciaOrigen = AgenciaFactory.GetAgencia();
                            agenciaOrigen.AgenciaID = drFac.AgenciaID;
                            if (agenciaOrigen.Consultar())
                            {
                                this.txtAgenciaOrigenID.Text       = agenciaOrigen.AgenciaID.ToString();
                                this.txtAgenciaOrigenDescrip.Text  = agenciaOrigen.RazonSocial;
                                this.txtSucursalAgenciaOrigen.Text = agenciaOrigen.SucursalDGI;
                            }
                        }

                        this.txtFacturaID.Text = drFac.FacturaID.ToString();
                        this.txtGuiaID.Text    = drFac.GuiaID.ToString();
                        IGuiaFactura guiaFactura = GuiaFacturaFactory.GetGuiaFactura();
                        ((IGuia)guiaFactura).GuiaID = drFac.GuiaID;
                        DsGuiasFacturas dsGuiaFactura = guiaFactura.GetGuiaFacturaOneDataSet();
                        if (dsGuiaFactura.Datos.Count > 0)
                        {
                            DsGuiasFacturas.DatosRow drGuiaFactura = (DsGuiasFacturas.DatosRow)dsGuiaFactura.Datos.Rows[0];
                            this.txtCantidadBultos.Text   = drGuiaFactura.CantidadBultosTotal.ToString();
                            this.txtVolumenDeclarado.Text = drGuiaFactura.ValorDeclaradoTotal.ToString();
                        }
                    }
                    else
                    {
                        ((ErrorWeb)this.phErrores.Controls[0]).setMensaje("La guía ingresada no existe en el sistema");
                    }
                }
                else
                {
                    DsGuias.DatosRow[] drLista = (DsGuias.DatosRow[])ds.Datos.Select("UnidadNegocioID = " + this.UnidadNegocioID);
                    DsGuias.DatosRow   dr      = drLista[0];
                    if (dr.AgenciaOrigenID != 0)
                    {
                        IAgencia agenciaOrigen = AgenciaFactory.GetAgencia();
                        agenciaOrigen.AgenciaID = dr.AgenciaOrigenID;
                        if (agenciaOrigen.Consultar())
                        {
                            this.txtAgenciaOrigenID.Text       = agenciaOrigen.AgenciaID.ToString();
                            this.txtAgenciaOrigenDescrip.Text  = agenciaOrigen.RazonSocial;
                            this.txtSucursalAgenciaOrigen.Text = agenciaOrigen.SucursalDGI;
                        }
                    }
                    if (dr.IsAgenciaDestinoIDNull())
                    {
                        IPuntoRecepcion punto = PuntoRecepcionFactory.GetPuntoRecepcion();
                        punto.PuntoRecepcionID = dr.PuntoRecepcionID;
                        if (punto.Consultar())
                        {
                            this.lblAgenciaDestino.Text           = this.TraducirTexto("Etiquetas.PuntoRecepcion");
                            this.txtSucursalAgenciaDestino.Text   = punto.RazonSocial;
                            this.txtAgenciaDestinoDescrip.Visible = false;
                        }
                    }
                    else
                    {
                        IAgencia agenciaDestino = AgenciaFactory.GetAgencia();
                        agenciaDestino.AgenciaID    = dr.AgenciaDestinoID;
                        this.lblAgenciaDestino.Text = this.TraducirTexto("Etiquetas.AgenciaDestino");
                        if (agenciaDestino.Consultar())
                        {
                            this.txtAgenciaDestinoID.Text       = agenciaDestino.AgenciaID.ToString();
                            this.txtAgenciaDestinoDescrip.Text  = agenciaDestino.RazonSocial;
                            this.txtSucursalAgenciaDestino.Text = agenciaDestino.SucursalDGI;
                        }
                    }

                    this.txtGuiaID.Text           = dr.GuiaID.ToString();
                    this.txtCantidadBultos.Text   = dr.CantidadBultosTotal.ToString();
                    this.txtVolumenDeclarado.Text = dr.ValorDeclaradoTotal.ToString();
                }

                this.tblComprobante.Visible = true;

                this.butConfirmar.Enabled = true;

                this.BindGrilla();
                this.BindGrillaComprobantes();

                this.butConfirmar.Enabled = true;
            }
            catch (Exception ex)
            {
                ((ErrorWeb)this.phErrores.Controls[0]).setMensaje(ex.Message);
            }
        }