private void CargarCentros() { try { Sesion Sesion = new Sesion(); Sesion = (Sesion)Session["Sesion" + Session.SessionID]; CapaNegocios.CN__Comun CN_Comun = new CapaNegocios.CN__Comun(); if (Sesion.U_MultiOfi == false) { CN_Comun.LlenaCombo(2, Sesion.Id_Emp, Sesion.Id_U, Sesion.Emp_Cnx, "spCatCentroDistribucion_Combo", ref CmbCentro); this.CmbCentro.Visible = false; this.TblEncabezado.Rows[0].Cells[2].InnerText = " " + CmbCentro.FindItemByValue(Sesion.Id_Cd_Ver.ToString()).Text; } else { CN_Comun.LlenaCombo(1, Sesion.Id_Emp, Sesion.Id_U, sesion.Id_Cd_Ver, sesion.Id_Cd, Sesion.Emp_Cnx, "spCatCentroDistribucion_Combo", ref CmbCentro); this.CmbCentro.SelectedValue = Sesion.Id_Cd_Ver.ToString(); } CN_Comun.LlenaListBox(2, Sesion.Id_Emp, Sesion.Id_U, Sesion.Emp_Cnx, "spCatCentroDistribucion_Combo", ref RadListBox1); RadListBox1.Items.Remove(RadListBox1.FindItemByValue("-1")); RadListBox1.Items.Remove(RadListBox1.FindItemByValue("0")); RadListBox1.FindItemByValue(Sesion.Id_Cd_Ver.ToString()).Enabled = false; RadListBox1.FindItemByValue(Sesion.Id_Cd_Ver.ToString()).Checked = true; } catch (Exception ex) { throw ex; } }
private void CargarUEN() //Central { try { Sesion Sesion = new Sesion(); Sesion = (Sesion)Session["Sesion" + Session.SessionID]; CapaNegocios.CN__Comun CN_Comun = new CapaNegocios.CN__Comun(); CN_Comun.LlenaListBox(1, Sesion.Id_Emp, Sesion.Emp_Cnx, "spCatUen_Combo", ref lbUen); lbUen.Items.Remove(lbUen.FindItemByValue("-1")); //lbUen.Items.Insert(0, new RadComboBoxItem("-- Seleccionar --", "-1")); } catch (Exception ex) { throw ex; } }