Exemple #1
0
    protected void btn_cargafiltros_Click(object sender, EventArgs e)
    {
        RemolcadorBC r = new RemolcadorBC();

        this.utils.CargaDropTodos(this.ddl_buscarRemolcador, "ID", "CODIGO", r.obtenerTodos(int.Parse(this.ddl_buscarSite.SelectedValue)));
        this.ddl_buscarSite_SelectedIndexChanged(null, null);
    }
Exemple #2
0
    private void cargarDropsForm()
    {
        int                     site_id = int.Parse(this.ddl_siteEdit.SelectedValue);
        RemolcadorBC            r       = new RemolcadorBC();
        RemoProgDistribuicionBC rpd     = new RemoProgDistribuicionBC();

        this.drops.Usuario(this.ddl_usuaEdit, site_id, true);
        this.utils.CargaDrop(this.ddl_programacionEdit, "ID", "DESCRIPCION", rpd.ObtenerTodo(site_id));
        this.utils.CargaDrop(this.ddl_remoEdit, "ID", "DESCRIPCION", r.obtenerTodos(site_id));
    }
Exemple #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (this.Session["usuario"] != null)
     {
         this.u = (UsuarioBC)this.Session["usuario"];
     }
     else
     {
         this.Response.Redirect("../InicioQYMS2.aspx");
     }
     if (!this.IsPostBack)
     {
         RemolcadorBC r   = new RemolcadorBC();
         YMS_ZONA_BC  yms = new YMS_ZONA_BC();
         DataTable    ds  = yms.ObteneSites(((UsuarioBC)this.Session["Usuario"]).ID);
         this.utils.CargaDropNormal(this.ddl_buscarSite, "ID", "NOMBRE", ds);
         this.utils.CargaDropTodos(this.ddl_buscarRemolcador, "ID", "CODIGO", r.obtenerTodos(int.Parse(this.ddl_buscarSite.SelectedValue)));
         this.ddl_buscarSite_SelectedIndexChanged(null, null);
     }
 }
Exemple #4
0
    protected void ddl_buscarSite_SelectedIndexChanged(object sender, EventArgs e)
    {
        RemolcadorBC r = new RemolcadorBC();

        this.utils.CargaDropTodos(this.ddl_remo, "ID", "DESCRIPCION", r.obtenerTodos(Convert.ToInt32(this.ddl_buscarSite.SelectedValue)));
    }