Esempio n. 1
0
    protected void recargaplayas(object sender, EventArgs e)
    {
        if (this.ddl_Site.SelectedIndex != 0)
        {
            YMS_ZONA_BC yms  = new YMS_ZONA_BC();
            int         site = int.Parse(this.ddl_Site.SelectedValue);
            DataTable   dt   = yms.ObtenerZonas(site, "", null);
            this.ltl_menuZonas.Text = this.crearMenu(dt); //Variable de sesión, cambiar

            dt.Clear();
            dt = yms.ObtenerZonas(site, "", null);
            this.crearPlayasLugares2(dt);
        }
        ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "aciva", "reactivatab();", true);
        this.upplayas.Update();
    }
Esempio n. 2
0
    public void cargasite(int site)
    {
        YMS_ZONA_BC yms = new YMS_ZONA_BC();

        //     utils.CargaDrop(ddl_origenZona, "ID", "DESCRIPCION", yms.ObtenerZonas(site, "", "0"));
        utils.CargaDrop(ddl_destinoZona, "ID", "DESCRIPCION", yms.ObtenerZonas(site, "", null));
    }
Esempio n. 3
0
    protected void drop_SelectedIndexChanged(object sender, EventArgs e)
    {
        YMS_ZONA_BC yms = new YMS_ZONA_BC();
        string      tipo_zona;

        if (this.rb_ingresoCargado.Checked == true)
        {
            tipo_zona = "200";
        }
        else
        {
            tipo_zona = "100";
        }

        utils.CargaDrop(this.ddl_zona, "ID", "DESCRIPCION", yms.ObtenerZonas(Convert.ToInt32(this.dropsite.SelectedValue), "", tipo_zona));
        this.ddl_zona_SelectedIndexChanged(null, null);
        if (this.txt_buscarPatente.Text != "")
        {
            this.btnBuscarTrailer_Click(null, null);
        }
    }
Esempio n. 4
0
    protected void chk_ingresoCargado_CheckedChanged(object sender, EventArgs e)
    {
        this.rb_posAuto.Checked   = false;
        this.rb_posManual.Checked = true;
        this.ddl_motivo.Enabled   = false;
        if (!String.IsNullOrEmpty(this.hf_idTrailer.Value) && this.hf_idTrailer.Value != "0")
        {
            //    this.drop_SelectedIndexChanged(null, null);
            YMS_ZONA_BC yms = new YMS_ZONA_BC();
            string      tipo_zona;
            if (this.rb_ingresoCargado.Checked == true)
            {
                tipo_zona = "200";
            }
            else
            {
                tipo_zona = "100";
            }
            this.tipo_carga_SelectedIndexChanged(null, null);

            utils.CargaDrop(this.ddl_zona, "ID", "DESCRIPCION", yms.ObtenerZonas(Convert.ToInt32(this.dropsite.SelectedValue), "", tipo_zona));

            this.ddl_zona_SelectedIndexChanged(null, null);
            if (this.rb_ingresoCargado.Checked)
            {
                this.txt_traExtPat.Enabled = true;
                //  this.txt_doc.Enabled = true;
                this.txt_idSello.Enabled = true;
                this.rb_posAuto.Enabled  = true;
            }
            else
            {
                this.txt_traExtPat.Enabled = false;
                //        this.txt_doc.Enabled = false;
                this.txt_idSello.Enabled = false;
                this.rb_posAuto.Enabled  = false;
            }
        }
    }
Esempio n. 5
0
    protected void ddl_Site_SelectedIndexChanged(object sender, EventArgs e)
    {
        // ZonaBC zona = new ZonaBC();
        YMS_ZONA_BC yms = new YMS_ZONA_BC();

        if (this.ddl_Site.SelectedIndex != 0)
        {
            int       site = int.Parse(this.ddl_Site.SelectedValue);
            DataTable dt   = yms.ObtenerZonas(site, "", null);
            // this.ltl_menuZonas.Text = this.crearMenu(zona.ObtenerXSite(site)); //Variable de sesión, cambiar
            this.ltl_menuZonas.Text = this.crearMenu(dt); //Variable de sesión, cambiar
            //this.crearPlayasLugares2(zona.ObtenerXSite(site));
            this.crearPlayasLugares2(dt);

            //leyendaEstadoSolicitud(int.Parse(ddl_Site.SelectedValue));
            this.dv_leyendaEstado.Visible = true;
        }
        else
        {
            this.dv_leyendaEstado.Visible = false;
        }
        this.upplayas.Update();
    }
Esempio n. 6
0
    protected void drop_SelectedIndexChanged(object sender, EventArgs e)
    {
        YMS_ZONA_BC yms = new YMS_ZONA_BC();
        string      tipo_zona;

        if (this.rb_ingresoCargado.Checked == true)
        {
            tipo_zona = "200";
        }
        else
        {
            tipo_zona = "100";
        }

        utils.CargaDrop(this.ddl_zona, "ID", "DESCRIPCION", yms.ObtenerZonas(int.Parse(this.dropsite.SelectedValue), "", tipo_zona));
        this.ddl_zona_SelectedIndexChanged(null, null);
        if (!string.IsNullOrEmpty(this.hf_idTrailer.Value))
        {
            if (txt_buscarPatente.Text != "" && txt_buscarPatente.Text != null)
            {
                this.btnBuscarTrailer_Click(null, null);
            }
        }
    }