/// <summary> /// Procedimiento para cargar los datos predeterminados de los controles /// </summary> private void CargarControles() { // Cargo las fechas Desde y hasta txtFechaDesde.Text = string.Format("{0:dd/MM/yyyy}", DateTime.Now.AddMonths(-1)); txtFechaHasta.Text = string.Format("{0:dd/MM/yyyy}", DateTime.Now); // Cargo el ListBox de empresas IAgrupacionEmpresas catEmp = AgrupacionEmpresasFactory.GetAgrupacionEmpresasFactory(); this.ddlEmpresas.DataSource = catEmp.GetEmpresasNoAgrupadasALL(); //devuelve todas las empresas this.ddlEmpresas.DataTextField = "CodigoEmpresa"; this.ddlEmpresas.DataValueField = "CodigoEmpresa"; this.ddlEmpresas.DataBind(); this.chTodasEmpresas.Checked = false; // Cargo el ListBox ddlCatServicios LlenarCombos.CategoriaServicios(this.ddlCatServicios, "Todos"); }
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; }
/// <summary> /// Procedimiento para cargar los servicios de transporte /// </summary> private void CargarServiciosTransporte() { LlenarCombos.CategoriaServicios(ddlServiciosTransporte); }