コード例 #1
0
 /*DM 25/09/2012 agregado para cargar las zonas de agencias*/
 protected void chkZonaAgOrigen_CheckedChanged(object sender, EventArgs e)
 {
     if (chkZonaAgOrigen.Checked)
     {
         LlenarCombos.ZonasByUsuario(lstAgOrigen, usuario.UsuarioID);
     }
     else
     {
         LlenarCombos.AgenciasOrigen(this.lstAgOrigen, this.UnidadNegocioID);
     }
 }
コード例 #2
0
        private void LlenarListas()
        {
            LlenarCombos.AgenciasOrigen(this.lstAgenciasOrigen, this.UnidNegocioID);
            //this.lstAgenciasOrigen.SelectedIndex = 0;

            LlenarCombos.ClientesCombos(this.lstClientes, this.UnidNegocioID);
            ListItem item = this.lstClientes.Items[0];

            this.lstClientes.Items.Remove(item);
            item = this.lstClientes.Items[0];
            this.lstClientes.Items.Remove(item);
            this.lstClientes.Items[0].Selected = false;
            //this.lstClientes.SelectedIndex = 0;
        }
コード例 #3
0
        private void LlenarListas()
        {
            LlenarFechas();
            LlenarCombos.Producto(this.lstProductos, this.UnidadNegocioID);
            this.lstProductos.SelectedIndex = 0;
            LlenarCombos.TiempoEntrega(this.lstTiemposEntrega, this.UnidadNegocioID);
            this.lstTiemposEntrega.SelectedIndex = 0;
            LlenarCombos.Servicio(this.lstServicios, this.TraducirTexto("Combos.SinServicioAdicional"), this.UnidadNegocioID);
            ListItem item = this.lstServicios.Items[0];

            item.Value = "0";
            this.lstServicios.SelectedIndex = 0;
            LlenarCombos.ModalidadEntrega(this.lstModalidadesEntrega, this.UnidadNegocioID);
            this.lstModalidadesEntrega.SelectedIndex = 0;
            LlenarCombos.AgenciasOrigen(this.lstAgOrigen, this.UnidadNegocioID);
            this.lstAgOrigen.SelectedIndex = 0;
            LlenarCombos.AgenciasDestino(this.lstAgDestino, this.UnidadNegocioID);
            this.lstAgDestino.SelectedIndex = 0;
            LlenarCombos.ClientesCombos(this.lstClientes, this.UnidadNegocioID);
            this.lstClientes.Items[0].Selected = false;
            this.lstClientes.SelectedIndex     = 0;
            LlenarCombos.CategoriaServicios(ddlServiciosTransporte);
            this.ddlServiciosTransporte.SelectedIndex = 0;
        }