private void CargarUsuarios() { try { Sesion sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun cn_comun = new CN__Comun(); cn_comun.LlenaCombo(sesion.Id_Cd_Ver, 1, 1, sesion.Emp_Cnx, "spCatUsuario_Combo", ref CmbId_ULider); cn_comun.LlenaCombo(sesion.Id_Cd_Ver, 1, 1, sesion.Emp_Cnx, "spCatUsuario_Combo", ref CmbId_UEjecutivo); } catch (Exception ex) { throw ex; } }
private void CargaNoConformidades() { try { this.txtCodigo.Text = string.Empty; this.cmbCodigo.Text = string.Empty; this.cmbCodigo.SelectedIndex = 0; this.cmbCodigo.Text = this.cmbTipo.Items[0].Text; this.cmbCodigo.Items.Clear(); if (this.cmbTipo.SelectedIndex != -1) { CapaNegocios.CN__Comun CN_Comun = new CN__Comun(); CN_Comun.LlenaCombo(1, sesion.Id_Emp, Convert.ToInt32(this.cmbTipo.SelectedValue), sesion.Emp_Cnx, "spCatNoConformidades_Combo", ref this.cmbCodigo); } else { this.cmbCodigo.Items.Insert(0, new RadComboBoxItem("-- Seleccionar --", "-1")); } } catch (Exception ex) { throw ex; } }
protected void CmbCDI_SelectedIndexChanged(object sender, EventArgs e) { try { Sesion sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun cn_comun = new CN__Comun(); cn_comun.LlenaCombo(2, int.Parse(cmbCDI.SelectedValue), sesion.Emp_Cnx, "spCatRikVI_Combo", ref this.cmbRIK); cn_comun.LlenaCombo(2, int.Parse(cmbCDI.SelectedValue), sesion.Emp_Cnx, "spCatTerritorioVI_Combo", ref this.cmbTer); cn_comun.LlenaCombo(2, int.Parse(cmbCDI.SelectedValue), sesion.Emp_Cnx, "spCatClienteVI_Combo", ref this.cmbCte); } catch (Exception ex) { ErrorManager(ex, new System.Diagnostics.StackTrace().GetFrame(0).GetMethod().Name); } }
private void CargarAnoMes() { try { Sesion sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun cn_comun = new CN__Comun(); cn_comun.LlenaCombo(1, sesion.Id_Emp, sesion.Id_Cd, sesion.Emp_Cnx, "spCatCalendarioAnhio2_Combo", ref this.cmbanioini); cn_comun.LlenaCombo(1, sesion.Id_Emp, sesion.Id_Cd, sesion.CalendarioIni.Year, sesion.Emp_Cnx, "spCatCalendarioMes_Combo", ref this.cmbmesini); //cn_comun.LlenaCombo(1, sesion.Id_Emp, sesion.Id_Cd, sesion.Emp_Cnx, "spCatCalendarioAnhio2_Combo", ref this.cmbaniofin); // cn_comun.LlenaCombo(1, sesion.Id_Emp, sesion.Id_Cd, sesion.CalendarioIni.Year, sesion.Emp_Cnx, "spCatCalendarioMes_Combo", ref this.cmbmesfin); } catch (Exception ex) { throw ex; } }
private void CargarAnoMes() { try { Sesion sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun cn_comun = new CN__Comun(); cn_comun.LlenaCombo(1, sesion.Id_Emp, sesion.Id_Cd, sesion.Emp_Cnx, "spCatCalendarioAnhio2_Combo", ref this.cmbanio); cn_comun.LlenaCombo(1, sesion.Id_Emp, sesion.Id_Cd, sesion.CalendarioIni.Year, sesion.Emp_Cnx, "spCatCalendarioMes_Combo", ref this.cmbmes); this.cmbanio.SelectedValue = DateTime.Now.Year.ToString(); this.cmbmes.SelectedValue = DateTime.Now.Month.ToString(); } catch (Exception ex) { throw ex; } }
private void CargarCDIS() { try { Sesion sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun cn_comun = new CN__Comun(); cn_comun.LlenaCombo(sesion.Id_U, sesion.Emp_Cnx, "SPCatUsuarioCDI_Combo", ref CmbCDI); } catch (Exception ex) { throw ex; } }
protected void RblTipoCd_SelectedIndexChanged(object sender, EventArgs e) { try { Sesion sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun cn_comun = new CN__Comun(); cn_comun.LlenaCombo(int.Parse(this.RblTipoCd.SelectedValue), sesion.Emp_Cnx, "spCatCDI_ComboTodos", ref cmbCDI); } catch (Exception ex) { ErrorManager(ex, new System.Diagnostics.StackTrace().GetFrame(0).GetMethod().Name); } }
//JFCV private void CargarCDIS() { try { Sesion sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun cn_comun = new CN__Comun(); cn_comun.LlenaCombo(1, sesion.Emp_Cnx, "spCatCDI_ComboTodos", ref CmbCDI); } catch (Exception ex) { throw ex; } }
private void CargarCDI() { try { Sesion sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun cn_comun = new CN__Comun(); cn_comun.LlenaCombo(sesion.Emp_Cnx, "spCatCDI_ComboDias", ref this.CmbCdi); } catch (Exception ex) { throw ex; } }
private void CargaCdi() { try { Sesion sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun cn_comun = new CN__Comun(); cn_comun.LlenaCombo(int.Parse(this.RblTipoCd.SelectedValue), sesion.Emp_Cnx, "spCatCDI_ComboTodos", ref cmbCDI); } catch (Exception ex) { ErrorManager(ex, new System.Diagnostics.StackTrace().GetFrame(0).GetMethod().Name); } }
private void CargaRepresentantes() { try { Sesion sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun cn_comun = new CN__Comun(); int id1 = int.Parse(this.CmbCdi.SelectedValue); cn_comun.LlenaCombo(id1, sesion.Emp_Cnx, "spCatCDI_ComboRepCentral", ref this.CmbRepresentante); } catch (Exception ex) { throw ex; } }
private void CargarCategoria() { try { CN__Comun cn_comun = new CN__Comun(); string Conexion = System.Configuration.ConfigurationManager.AppSettings["strConnectionCentral"]; cn_comun.LlenaCombo(Conexion, "spCatConvCategoria_Combo", ref CmbId_Cat); } catch (Exception ex) { throw ex; } }
private void CargarCombos() { try { Sesion sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun cn_comun = new CN__Comun(); cn_comun.LlenaCombo(1, sesion.Id_Emp, sesion.Id_Cd, sesion.Emp_Cnx, "spCatCalendarioAnhio2_Combo", ref this.cmbanio); cn_comun.LlenaCombo(1, sesion.Id_Emp, sesion.Id_Cd, sesion.CalendarioIni.Year, sesion.Emp_Cnx, "spCatCalendarioMes_Combo", ref this.cmbmes); cn_comun.LlenaCombo(sesion.Emp_Cnx, "spCatCDIRegion_Combo", ref cmbRegion); cn_comun.LlenaCombo(int.Parse(this.RblTipoCd.SelectedValue), sesion.Emp_Cnx, "spCatCDI_ComboTodos", ref cmbCDI); cn_comun.LlenaCombo(2, sesion.Emp_Cnx, "spCatUENVI_Combo", ref cmbUEN); cn_comun.LlenaCombo(2, sesion.Emp_Cnx, "spCatSegmentoVI_Combo", ref cmbSegmento); cn_comun.LlenaCombo(2, -1, sesion.Emp_Cnx, "spCatRikVI_Combo", ref this.cmbRIK); cn_comun.LlenaCombo(2, -1, sesion.Emp_Cnx, "spCatTerritorioVI_Combo", ref this.cmbTer); cn_comun.LlenaCombo(2, -1, sesion.Emp_Cnx, "spCatClienteVI_Combo", ref this.cmbCte); this.cmbanio.SelectedValue = DateTime.Now.Year.ToString(); this.cmbmes.SelectedValue = DateTime.Now.Month.ToString(); } catch (Exception ex) { throw ex; } }
private void CargarTipoPrecio() { try { Sesion sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun cn_comun = new CN__Comun(); cn_comun.LlenaCombo(1, sesion.Id_Emp, sesion.Emp_Cnx, "spCatTipoPrecio_Combo", ref this.cmbTPrecio); if (sesion.Id_TU != 14) { if (sesion.Id_TU != 1) { RemoverItem(new int[] { 4 }); } } } catch (Exception ex) { throw ex; } }
private void CargarUsuarios() { try { Sesion sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun cn_comun = new CN__Comun(); cn_comun.LlenaCombo(sesion.Id_Cd_Ver, 1, 1, sesion.Emp_Cnx, "spCatUsuario_Combo", ref CmbId_UAdmin1); cn_comun.LlenaCombo(sesion.Id_Cd_Ver, 1, 1, sesion.Emp_Cnx, "spCatUsuario_Combo", ref CmbId_UAdmin2); cn_comun.LlenaCombo(sesion.Id_Cd_Ver, 1, 1, sesion.Emp_Cnx, "spCatUsuario_Combo", ref CmbId_UCteIntranet); cn_comun.LlenaCombo(sesion.Id_Cd_Ver, 1, 1, sesion.Emp_Cnx, "spCatUsuario_Combo", ref CmbId_UCteMacola); cn_comun.LlenaCombo(sesion.Id_Cd_Ver, 1, 1, sesion.Emp_Cnx, "spCatUsuario_Combo", ref CmbId_UComodato); cn_comun.LlenaCombo(sesion.Id_Cd_Ver, 1, 1, sesion.Emp_Cnx, "spCatUsuario_Combo", ref CmbId_UTodo); } catch (Exception ex) { throw ex; } }