private void Page_Load(object sender, System.EventArgs e)
        {
            if (Session["Usuario"] != null)
            {
                this.usuario = (IUsuarios)Session["Usuario"];
            }

            if (User.Identity.IsAuthenticated)
            {
                //this.SetCultura();
                string sOpcion = "agenciaUVenta";
                Menu   oMenu   = (Menu)this.FindControl("Menu1");
                this.ValidarSeguridad(oMenu, sOpcion);
            }

            int agenciaID = Utiles.Validaciones.obtieneEntero(Request.QueryString["AgenciaID"]);

            this.txtAgenciaID.Text = agenciaID.ToString();

            IAgencia agencia = AgenciaFactory.GetAgencia();

            agencia.AgenciaID = agenciaID;
            agencia.ConsultarBasico();
            this.lblNombreAgencia.Text = agencia.RazonSocial;

            agencia.ConsultarUnidadVenta();

            if (!Page.IsPostBack)
            {
                LlenarCombos.UnidadesVentasEventuales(lstUnidadesVenta, this.UnidadNegocioID);

                //unidades de venta Asociados al vendedor
                if (agencia.UnidadesVentaCol.getCount() > 0)
                {
                    for (int i = 0; i < agencia.UnidadesVentaCol.getCount(); i++)
                    {
                        IUnidadVenta unidadVenta = agencia.UnidadesVentaCol.GetUnidadVenta(i);
                        for (int j = 0; j < this.lstUnidadesVenta.Items.Count; j++)
                        {
                            if (this.lstUnidadesVenta.Items[j].Value == unidadVenta.UnidadVentaID.ToString())
                            {
                                this.lstUnidadesVenta.Items[j].Selected = true;
                            }
                        }
                    }
                }
            }
        }