コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            CreaDataTable();

            if (Request.Params["type"] == null)
            {
                this.txt_buscarFecha.Text = DateTime.Now.ToShortDateString();
                this.txt_buscarHora.Text  = DateTime.Now.ToShortTimeString();
                YMS_ZONA_BC yms = new YMS_ZONA_BC();
                DataTable   ds  = yms.ObteneSites(((UsuarioBC)Session["Usuario"]).ID);
                utils.CargaDropNormal(dropsite, "ID", "NOMBRE", ds);
                drop_SelectedIndexChanged(null, null);
            }
            else
            {
                YMS_ZONA_BC yms = new YMS_ZONA_BC();
                DataTable   ds  = yms.ObteneSites(((UsuarioBC)Session["Usuario"]).ID);
                utils.CargaDropNormal(dropsite, "ID", "NOMBRE", ds);
                llenarForm();
            }
        }
        if (table.Rows.Count > 0)
        {
            ddl_destinoZona.Enabled  = false;
            ddl_destinoPlaya.Enabled = false;
        }
        else
        {
            ddl_destinoZona.Enabled = true;
            //   ddl_destinoZona_SelectedIndexChanged(null, null);
        }
    }
コード例 #2
0
    protected void tipo_carga_SelectedIndexChanged(object sender, EventArgs e)
    {
        YMS_ZONA_BC yms = new YMS_ZONA_BC();

        rb_posAuto.Checked   = false;
        rb_posManual.Checked = true;

        if (ddl_tipo_carga.SelectedValue == "0")
        {
            ddl_motivo.Items.Clear();
            ddl_motivo.Enabled = false;
        }
        else
        {
            utils.CargaDrop(this.ddl_motivo, "ID", "DESCRIPCION", yms.obtenerMotivoTipoCarga(ddl_tipo_carga.SelectedValue, null));

            if (ddl_motivo.Items.Count > 1)
            {
                ddl_motivo.Enabled = true;
            }
            else
            {
                ddl_motivo.Enabled = false;
            }
        }
    }
コード例 #3
0
    protected void tipo_carga_SelectedIndexChanged(object sender, EventArgs e)
    {
        this.rb_posAuto.Checked   = false;
        this.rb_posManual.Checked = true;
        YMS_ZONA_BC yms = new YMS_ZONA_BC();
        string      tipo_zona;

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

        if (ddl_tipo_carga.SelectedValue == "0")
        {
            ddl_motivo.Items.Clear();
            ddl_motivo.Enabled = false;
        }
        else
        {
            utils.CargaDrop(this.ddl_motivo, "ID", "DESCRIPCION", yms.obtenerMotivoTipoCarga(this.ddl_tipo_carga.SelectedValue, null));
            ddl_motivo.Enabled = (ddl_motivo.Items.Count > 1);
        }

        utils.CargaDrop(ddl_zona, "ID", "DESCRIPCION", yms.ObtenerZonasTipoCarga(Convert.ToInt32(this.dropsite.SelectedValue), "", tipo_zona, Convert.ToInt32(this.ddl_tipo_carga.SelectedValue), 200));
        ddl_zona_SelectedIndexChanged(null, null);
        Pnl_guia.Visible = true;
        PNL_CITA.Visible = true;
    }
コード例 #4
0
    private void ObtenerMovimientos(bool forzarBD)
    {
        if (this.ViewState["lista"] == null || forzarBD)
        {
            this.ViewState.Remove("filtrados");
            YMS_ZONA_BC m  = new YMS_ZONA_BC();
            DataTable   dt = m.yardtag_cuadra_ObtenerTodos(txt_placa.Text, int.Parse(ddl_buscarPlaya.SelectedValue), 0, int.Parse(ddl_buscarSite.SelectedValue));
            this.ViewState["lista"] = dt;
            this.ViewState.Remove("filtrados");
        }
        DataView dw;

        if (this.ViewState["filtrados"] == null)
        {
            dw = new DataView((DataTable)this.ViewState["lista"]);
        }
        else
        {
            dw = new DataView((DataTable)this.ViewState["filtrados"]);
        }
        if (this.ViewState["sortExpresion"] != null && this.ViewState["sortExpresion"].ToString() != "")
        {
            dw.Sort = (String)this.ViewState["sortExpresion"];
        }
        this.gv_listar.DataSource = dw.ToTable();
        this.gv_listar.DataBind();
    }
コード例 #5
0
    protected void drop_SelectedIndexChanged(object sender, EventArgs e)
    {
        YMS_ZONA_BC yms = new YMS_ZONA_BC();

        utils.CargaDrop(ddl_destinoZona, "ID", "DESCRIPCION", yms.ObtenerZonasDescarga(Convert.ToInt32(dropsite.SelectedValue)));
        ddl_destinoZona_SelectedIndexChanged(null, null);
    }
コード例 #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //this.nuevo_trailer.ButtonClickDemo += new EventHandler(trailercreado);
        if (!this.IsPostBack)
        {
            this.CreaDataTable();

            //     Page.LoadComplete += new EventHandler(Page_LoadComplete);
            this.txt_ingresoFecha.Text = DateTime.Now.ToShortDateString();
            this.txt_ingresoHora.Text  = DateTime.Now.ToShortTimeString();
            TransportistaBC tran      = new TransportistaBC();
            ProveedorBC     proveedor = new ProveedorBC();
            CargaTipoBC     c         = new CargaTipoBC();
            YMS_ZONA_BC     yms       = new YMS_ZONA_BC();
            DataTable       ds        = yms.ObteneSites(((UsuarioBC)this.Session["Usuario"]).ID);
            utils.CargaDropNormal(this.dropsite, "ID", "NOMBRE", ds);
            this.drop_SelectedIndexChanged(null, null);

            LugarBC lugar = new LugarBC();
            utils.CargaDrop(this.ddl_proveedor, "ID", "DESCRIPCION", proveedor.obtenerTodo());
            this.ddl_proveedor.SelectedValue = ((UsuarioBC)this.Session["Usuario"]).ID_PROVEEDOR.ToString();
            //  utils.CargaDrop(ddl_zona, "ID", "DESCRIPCION", zona.ObtenerTodas());
            utils.CargaDrop(this.ddl_transportista, "ID", "NOMBRE", tran.ObtenerTodos());
            utils.CargaDrop(this.ddl_editTran, "ID", "NOMBRE", tran.ObtenerTodos());
            utils.CargaDrop(this.ddl_tipo_carga, "ID", "DESCRIPCION", yms.obtenerTipoCarga(null, true, false));
        }
    }
コード例 #7
0
    public static menuitem3[] GetMenu(string usuario)
    {
        if (HttpContext.Current.Session["Counter"] == null)
        {
            YMS_ZONA_BC yms = new YMS_ZONA_BC();

            List <menuitem3> menuprincipal = new List <menuitem3>();
            menuprincipal.Add(new menuitem3()
            {
                ID = "0", Nombre = "Enviar a", icono = "2"
            });



            List <menuitem3> lst = new List <menuitem3>();
            DataTable        ds  = yms.Obtenermenu_lugar(Convert.ToInt32(usuario.Replace("lug_", "")));

            for (int value = 0; value <= ds.Rows.Count - 1; value++)
            {
                lst.Add(new menuitem3()
                {
                    ID = ds.Rows[value]["id"].ToString(), Nombre = ds.Rows[value]["nombre"].ToString(), icono = ds.Rows[value]["icono"].ToString()
                });
            }
            menuprincipal[0].subitems = lst;

            return(menuprincipal.ToArray());
        }
        else
        {
            return(null);
        }
    }
コード例 #8
0
    protected void chk_ingresoCargado_CheckedChanged(object sender, EventArgs e)
    {
        if (!String.IsNullOrEmpty(this.hf_idTrailer.Value))
        {
            YMS_ZONA_BC yms = new YMS_ZONA_BC();
            if (this.rb_ingresoCargado.Checked == true)
            {
                this.ddl_tipo_carga.Enabled = true;
            }
            else
            {
                this.ddl_tipo_carga.Enabled = false;
            }
            this.tipo_carga_SelectedIndexChanged(null, null);

            if (this.rb_ingresoCargado.Checked)
            {
                this.txt_placaTracto.Enabled = true;
                this.txt_idSello.Enabled     = true;
            }
            else
            {
                this.txt_placaTracto.Enabled = false;
                this.txt_idSello.Enabled     = false;
            }
        }
    }
コード例 #9
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["usuario"] == null)
        {
            Response.Redirect("~/InicioQYMS2.aspx");
        }
        usuario = (UsuarioBC)Session["Usuario"];

        if (!IsPostBack)
        {
            CaractCargaBC   catt = new CaractCargaBC();
            TransportistaBC tran = new TransportistaBC();
            TrailerTipoBC   tipo = new TrailerTipoBC();
            YMS_ZONA_BC     yms  = new YMS_ZONA_BC();
            DataTable       dt   = catt.obtenerTodo();
            CargaDrops      c    = new CargaDrops();
            c.Proveedor_Todos(ddl_buscarProveedor);

            if (usuario.PROVEEDOR != "")
            {
                this.ddl_buscarProveedor.SelectedValue = usuario.ID_PROVEEDOR.ToString();
                this.ddl_buscarProveedor.Enabled       = false;
            }

            DataTable ds = yms.ObteneSites(((UsuarioBC)Session["Usuario"]).ID);
            utils.CargaDropNormal(this.ddl_buscarSite, "ID", "NOMBRE", ds);
            txt_buscarDesde.Text = DateTime.Now.ToShortDateString();
            txt_buscarHasta.Text = DateTime.Now.ToShortDateString();
            ObtenerPreIngresos(true);
        }
    }
コード例 #10
0
 public void ddl_destinoPlaya_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (!(ddl_destinoPlaya.SelectedIndex == 0) || (ddl_destinoZona.SelectedIndex == 0))
     {
         int         id_playa = int.Parse(ddl_destinoPlaya.SelectedValue);
         LugarBC     lugar    = new LugarBC();
         YMS_ZONA_BC yms      = new YMS_ZONA_BC();
         DataTable   ds1      = yms.Obtenerlugares_playa(id_playa, null, "0");
         utils.CargaDrop(ddl_destinoPos, "ID", "DESCRIPCION", ds1);
         if (ddl_destinoPos.Items.Count > 1)
         {
             ddl_destinoPos.Enabled = true;
         }
         else
         {
             ddl_destinoPos.Enabled = false;
         }
     }
     else
     {
         ddl_destinoPos.SelectedIndex = 0;
         ddl_destinoPos.Enabled       = false;
     }
     ButtonClickDemo(null, null);
 }
コード例 #11
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));
    }
コード例 #12
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["usuario"] == null)
        {
            Response.Redirect("../InicioQYMS.aspx");
        }
        usuario = (UsuarioBC)Session["usuario"];
        this.nuevo_trailer.ButtonClickDemo += new EventHandler(trailercreado);
        if (!this.IsPostBack)
        {
            this.txt_ingresoFecha.Text = DateTime.Now.ToShortDateString();
            this.txt_ingresoHora.Text  = DateTime.Now.ToShortTimeString();
            TransportistaBC tran      = new TransportistaBC();
            ProveedorBC     proveedor = new ProveedorBC();

            YMS_ZONA_BC yms = new YMS_ZONA_BC();
            DataTable   ds  = yms.ObteneSites(((UsuarioBC)Session["Usuario"]).ID);
            utils.CargaDropNormal(this.dropsite, "ID", "NOMBRE", ds);
            this.drop_SelectedIndexChanged(null, null);

            utils.CargaDrop(ddl_proveedor, "ID", "DESCRIPCION", proveedor.obtenerTodo());
            utils.CargaDrop(ddl_transportista, "ID", "NOMBRE", tran.ObtenerTodos());
            utils.CargaDrop(ddl_tipo_carga, "ID", "DESCRIPCION", yms.obtenerTipoCarga(null, false, false));
        }
    }
コード例 #13
0
    protected void chk_ingresoCargado_CheckedChanged(object sender, EventArgs e)
    {
        if (!String.IsNullOrEmpty(hf_idTrailer.Value))
        {
            //    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";
                ddl_tipo_carga.Enabled = true;
            }
            else
            {
                tipo_zona = "100";
                ddl_tipo_carga.Enabled = false;
            }
            tipo_carga_SelectedIndexChanged(null, null);

            if (this.rb_ingresoCargado.Checked)
            {
                this.txt_placaTracto.Enabled = true;
                this.ddl_proveedor.Enabled   = true;
                this.txt_doc.Enabled         = true;
                this.txt_idSello.Enabled     = true;
            }
            else
            {
                this.txt_placaTracto.Enabled = false;
                this.ddl_proveedor.Enabled   = false;
                this.txt_doc.Enabled         = false;
                this.txt_idSello.Enabled     = false;
            }
        }
    }
コード例 #14
0
    public void cargaYMS()
    {
        // aquí va el sp



        YMS_ZONA_BC yms    = new YMS_ZONA_BC();
        var         imagen = yms.ObteneSite(Convert.ToInt32(dropsite.SelectedValue)).Rows[0]["SITE_IMAGEN"];

        siteimage.ImageUrl = url + "/images/" + imagen;
        DataTable ds = yms.ObtenerPlayas_Site(Convert.ToInt32(dropsite.SelectedValue), null, null);

        try
        {
            int i = 0;
            while (i < ds.Rows.Count)
            {
                llenaPlaya(ds.Rows[i]);
                // If (IsPostBack = False) Then

                agregafiltroplaya(ds.Rows[i]);
                // End If
                i = i + 1;
            }
        }
        catch (Exception ex)
        {
        }
    }
コード例 #15
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (this.Session["usuario"] == null)
        {
            this.Response.Redirect("~/InicioQYMS2.aspx");
        }

        this.usuario = (UsuarioBC)this.Session["usuario"];

        if (!this.IsPostBack)
        {
            TransportistaBC tran = new TransportistaBC();
            TrailerTipoBC   tipo = new TrailerTipoBC();
            SiteBC          site = new SiteBC();
            utils.CargaDrop(this.ddl_buscarSite, "ID", "NOMBRE", site.ObtenerTodos());
            this.utils.CargaDrop(this.ddl_editTran, "ID", "NOMBRE", tran.ObtenerTodos());
            this.utils.CargaDrop(this.ddl_editTipo, "ID", "DESCRIPCION", tipo.obtenerTodo());
            this.utils.CargaDrop(this.ddl_buscarTransportista, "ID", "NOMBRE", tran.ObtenerTodos());
            this.utils.CargaDrop(this.ddl_buscarTipo, "ID", "DESCRIPCION", tipo.obtenerTodo());
            YMS_ZONA_BC yms = new YMS_ZONA_BC();
            utils.CargaDropNormal(this.ddl_site, "ID", "NOMBRE", yms.ObteneSites(this.usuario.ID));


            this.utils.CargaDrop(this.ddl_buscarMotivo, "ID", "NOMBRE", tran.ObtenerMotivoBloqueo("1"));
            this.ltl_contenidoCaract.Text = this.crearContenido();
        }
        this.ObtenerTrailer(false);
    }
コード例 #16
0
    public void cargaYMS(bool forzarcargaplayas)
    {
        // aquí va el sp



        YMS_ZONA_BC yms    = new YMS_ZONA_BC();
        var         imagen = yms.ObteneSite(Convert.ToInt32(dropsite.SelectedValue)).Rows[0]["SITE_IMAGEN"];

        siteimage.ImageUrl = url + "/images/" + imagen;
        DataTable ds = yms.ObtenerPlayas_Site(Convert.ToInt32(dropsite.SelectedValue), null, null);

        carga_trailers();
        try
        {
            int i = 0;
            while (i < ds.Rows.Count)
            {
                llenaPlaya(ds.Rows[i]);
                if (IsPostBack == false || forzarcargaplayas == true)
                {
                    agregafiltroplaya(ds.Rows[i]);
                }
                i = i + 1;
            }
        }
        catch (Exception ex)
        {
        }
    }
コード例 #17
0
    public void cargasites()
    {
        YMS_ZONA_BC yms        = new YMS_ZONA_BC();
        DataTable   ds         = yms.ObteneSites(((UsuarioBC)Session["Usuario"]).ID);
        UtilsWeb    utilidades = new UtilsWeb();

        utilidades.CargaDropNormal(dropsite, "ID", "NOMBRE", ds);
    }
コード例 #18
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["usuario"] == null)
     {
         Response.Redirect("../InicioQYMS.aspx");
     }
     usuario = (UsuarioBC)Session["Usuario"];
     if (!IsPostBack)
     {
         YMS_ZONA_BC y = new YMS_ZONA_BC();
         utils.CargaDropNormal(ddl_buscarSite, "ID", "NOMBRE", y.ObteneSites(usuario.ID));
     }
 }
コード例 #19
0
 protected void chk_ingresoCargado_CheckedChanged(object sender, EventArgs e)
 {
     rb_posAuto.Checked       = false;
     rb_posManual.Checked     = true;
     rb_mantenimiento.Checked = false;
     ddl_tipo_carga.Enabled   = false;
     ddl_motivo.Enabled       = false;
     if (!String.IsNullOrEmpty(this.hf_idTrailer.Value) && this.hf_idTrailer.Value != "0")
     {
         YMS_ZONA_BC yms = new YMS_ZONA_BC();
         if (rb_ingresoCargado.Checked == true)
         {
             ddl_tipo_carga.Enabled = true;
         }
         else
         {
             ddl_tipo_carga.Enabled = false;
             ddl_tipo_carga.ClearSelection();
             ddl_motivo.ClearSelection();
             ddl_proveedor.ClearSelection();
         }
         if (rb_ingresoCargado.Checked)
         {
             txt_tracto.Enabled              = true;
             ddl_proveedor.Enabled           = true;
             txt_doc.Enabled                 = true;
             txt_idSello.Enabled             = true;
             txt_conductorRut.Enabled        = true;
             txt_conductorNombre.Enabled     = true;
             chk_conductorExtranjero.Enabled = true;
             txt_acomRut.Enabled             = true;
             rb_posAuto.Enabled              = true;
         }
         if (rb_ingresoVacio.Checked)
         {
             ddl_proveedor.SelectedValue = "0";
             txt_idSello.Text            = "";
             txt_doc.Text                    = "";
             txt_tracto.Enabled              = true;
             ddl_proveedor.Enabled           = false;
             txt_doc.Enabled                 = false;
             txt_idSello.Enabled             = false;
             txt_conductorRut.Enabled        = true;
             txt_conductorNombre.Enabled     = true;
             chk_conductorExtranjero.Enabled = true;
             txt_acomRut.Enabled             = true;
             rb_posAuto.Enabled              = false;
         }
     }
     rb_pos_CheckedChanged(sender, e);
 }
コード例 #20
0
 protected void gv_listar_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "EDITAR")
     {
         SiteBC site = new SiteBC();
         hf_idSite.Value               = e.CommandArgument.ToString();
         site                          = site.ObtenerXId(Convert.ToInt32(hf_idSite.Value));
         txt_editNombre.Text           = site.NOMBRE;
         txt_editDesc.Text             = site.DESCRIPCION;
         ddl_editEmpresa.SelectedValue = site.EMPRESA_ID.ToString();
         txt_editCodSap.Text           = site.COD_SAP.ToString();
         ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "modal", "modalSite();", true);
     }
     if (e.CommandName == "ELIMINAR")
     {
         hf_idSite.Value          = e.CommandArgument.ToString();
         lblRazonEliminacion.Text = "Eliminar Site";
         msjEliminacion.Text      = "Se eliminará el Site seleccionado, ¿desea continuar?";
         ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "modal", "modalConfirmacion();", true);
     }
     if (e.CommandName == "ACTIVAR")
     {
         SiteBC site = new SiteBC();
         if (site.TrailerAuto(u.ID, Convert.ToInt32(e.CommandArgument.ToString())))
         {
             ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "msj", "alert('Todo OK');", true);
         }
         else
         {
             ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "msj", "alert('Error');", true);
         }
         ObtenerSite(true);
     }
     if (e.CommandName == "VIRTUAL")
     {
         hf_idSite.Value = e.CommandArgument.ToString();
         SiteBC site = new SiteBC();
         site.ObtenerXId(Convert.ToInt32(hf_idSite.Value));
         ZonaBC z = new ZonaBC();
         utils.CargaDrop(ddl_virtualZona, "ID", "DESCRIPCION", z.ObtenerXSite(Convert.ToInt32(hf_idSite.Value), true));
         ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "modal", "modalVirtual();", true);
         YMS_ZONA_BC p  = new YMS_ZONA_BC();
         DataTable   dt = p.ObtenerPlayas_Site(Convert.ToInt32(hf_idSite.Value), "", "1");
         if (dt.Rows.Count == 1)
         {
             ddl_virtualZona.SelectedValue = dt.Rows[0]["zona_id"].ToString();
             ddl_virtualZona_SelectedIndexChanged(null, null);
             ddl_virtualPlaya.SelectedValue = dt.Rows[0]["id"].ToString();
         }
     }
 }
コード例 #21
0
    public static menuitem2[] graba(string usuario, string supl_id, string x, string y, string ancho, string alto, string orientacion)
    {
        if (HttpContext.Current.Session["Counter"] == null)
        {
            YMS_ZONA_BC yms = new YMS_ZONA_BC();
            yms.guarda_playa(Convert.ToInt32(usuario.Replace("play_", "")), double.Parse(x.Replace(".", ",")), double.Parse(y.Replace(".", ",")), double.Parse(ancho.Replace(".", ",")), double.Parse(alto.Replace(".", ",")), Convert.ToInt32(orientacion));

            return(null);
        }
        else
        {
            return(null);
        }
    }
コード例 #22
0
    private void CargaDrops()
    {
        TransportistaBC tran      = new TransportistaBC();
        ProveedorBC     proveedor = new ProveedorBC();
        YMS_ZONA_BC     yms       = new YMS_ZONA_BC();

        utils.CargaDrop(this.ddl_tipo_carga, "ID", "DESCRIPCION", yms.obtenerTipoCarga(null, false, false));
        DataTable ds = yms.ObteneSites(usuario.ID);

        utils.CargaDropNormal(this.dropsite, "ID", "NOMBRE", ds);
        this.drop_SelectedIndexChanged(null, null);
        utils.CargaDrop(this.ddl_proveedor, "ID", "DESCRIPCION", proveedor.obtenerTodo());
        utils.CargaDrop(this.ddl_transportista, "ID", "NOMBRE", tran.ObtenerTodos());
    }
コード例 #23
0
    public void visibleasignamovilmanual()
    {
        YMS_ZONA_BC yms     = new YMS_ZONA_BC();
        UsuarioBC   usuario = (UsuarioBC)this.Session["USUARIO"];

        if (usuario != null)
        {
            Boolean ds1 = yms.visibleasignartrailer(Convert.ToInt32(this.dropsite.SelectedValue), usuario.ID);

            visiblasignamanual.Visible = ds1;
            chk_trailer.Checked        = ds1;
            pnl_trailer.Enabled        = ds1;
        }
    }
コード例 #24
0
    private void cargaDrops()
    {
        TransportistaBC tran      = new TransportistaBC();
        ProveedorBC     proveedor = new ProveedorBC();
        YMS_ZONA_BC     yms       = new YMS_ZONA_BC();
        DataTable       dt        = yms.ObteneSites(usuario.ID);

        utils.CargaDropNormal(dropsite, "ID", "NOMBRE", dt);
        drop_SelectedIndexChanged(null, null);
        utils.CargaDrop(ddl_proveedor, "ID", "DESCRIPCION", proveedor.obtenerTodo());
        utils.CargaDrop(ddl_transportista, "ID", "NOMBRE", tran.ObtenerTodos());
        utils.CargaDrop(ddl_motivo, "ID", "DESCRIPCION", yms.obtenerMotivoTipoCarga(ddl_tipo_carga.SelectedValue, null));
        utils.CargaDrop(ddl_tipo_carga, "ID", "DESCRIPCION", yms.obtenerTipoCarga(null, false, true));
    }
コード例 #25
0
    protected void chk_ingresoCargado_CheckedChanged(object sender, EventArgs e)
    {
        this.ddl_tipo_carga.Enabled = false;
        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";
                this.ddl_tipo_carga.Enabled = true;
            }
            else
            {
                tipo_zona = "100";
                ddl_tipo_carga.Enabled = false;
            }
            tipo_carga_SelectedIndexChanged(null, null);
            ddl_zona.Enabled = true;

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

            ddl_zona_SelectedIndexChanged(null, null);
            if (rb_ingresoCargado.Checked)
            {
                txt_tracto.Enabled          = true;
                ddl_proveedor.Enabled       = true;
                txt_doc.Enabled             = true;
                txt_idSello.Enabled         = true;
                txt_conductorRut.Enabled    = true;
                txt_conductorNombre.Enabled = true;
                txt_acomRut.Enabled         = true;
            }
            if (rb_ingresoVacio.Checked)
            {
                txt_tracto.Enabled          = true;
                ddl_proveedor.Enabled       = false;
                txt_doc.Enabled             = false;
                txt_idSello.Enabled         = false;
                txt_conductorRut.Enabled    = true;
                txt_conductorNombre.Enabled = true;
                txt_acomRut.Enabled         = true;
            }
        }

        this.rb_pos_CheckedChanged(null, null);
    }
コード例 #26
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["usuario"] == null)
     {
         Response.Redirect("~/InicioQYMS2.aspx");
     }
     user = (UsuarioBC)Session["usuario"];
     if (!IsPostBack)
     {
         DataTable dt = new DataTable();
         dt = new YMS_ZONA_BC().ObteneSites(user.ID);
         utils.CargaDropNormal(ddl_site, "ID", "NOMBRE", dt);
         ObtenerReporte();
     }
 }
コード例 #27
0
    private void cargaDrops()
    {
        DataTable       dt;
        TransportistaBC tran      = new TransportistaBC();
        ProveedorBC     proveedor = new ProveedorBC();
        YMS_ZONA_BC     yms       = new YMS_ZONA_BC();

        dt = yms.ObteneSites(usuario.ID);
        utils.CargaDropNormal(this.dropsite, "ID", "NOMBRE", dt);
        drop_SelectedIndexChanged(null, null);
        dt = proveedor.obtenerTodo();
        utils.CargaDrop(this.ddl_proveedor, "ID", "DESCRIPCION", dt);
        dt = tran.ObtenerTodos();
        utils.CargaDrop(this.ddl_transportista, "ID", "NOMBRE", dt);
    }
コード例 #28
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();
    }
コード例 #29
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["usuario"] == null)
     {
         Response.Redirect("../InicioQYMS.aspx");
     }
     user = (UsuarioBC)Session["usuario"];
     if (!IsPostBack)
     {
         YMS_ZONA_BC y = new YMS_ZONA_BC();
         drops.Zona_Todos(ddl_editZona);
         drops.Zona_Todos(ddl_buscarZona);
         utils.CargaDropNormal(ddl_site, "ID", "NOMBRE", y.ObteneSites(user.ID));
         ObtenerPlaya(true);
     }
 }
コード例 #30
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (this.Session["usuario"] == null)
     {
         this.Response.Redirect("../InicioQYMS2.aspx");
     }
     this.usuario = (UsuarioBC)this.Session["Usuario"];
     if (!this.IsPostBack)
     {
         YMS_ZONA_BC y   = new YMS_ZONA_BC();
         SolicitudBC sol = new SolicitudBC();
         this.utils.CargaDropNormal(this.ddl_buscarSite, "ID", "NOMBRE", y.ObteneSites(this.usuario.ID));
         this.ddl_buscarSite_SelectedIndexChanged(null, null);
         this.utils.CargaDropTodos(this.ddl_buscarEstado, "ID", "DESCRIPCION", sol.ObtenerEstadosCarga());
     }
 }