private void llenarComboRepresentanteSinCasilla(int tipusu, string tipoUsuarioActual) { try { WN_Combos Datos = new WN_Combos { CadenaConexion = Comun.Conexion, Parametro01Int = tipusu }; WN_CombosNegocio GN = new WN_CombosNegocio(); if (tipoUsuarioActual == "101" || tipoUsuarioActual == "201") { cmbSuplente.DataSource = GN.ObtenerComboRepresentanteSinCasilla(Datos); cmbSuplente.DataValueField = "ID"; cmbSuplente.DataTextField = "Nombre"; cmbSuplente.DataBind(); } else if (tipoUsuarioActual == "200" || tipoUsuarioActual == "300") { cmbAsignado.DataSource = GN.ObtenerComboRepresentanteSinCasilla(Datos); cmbAsignado.DataValueField = "ID"; cmbAsignado.DataTextField = "Nombre"; cmbAsignado.DataBind(); } } catch (Exception ex) { throw ex; } }
public DataTable ObtenerComboSeccionesXMunicipio(WN_Combos Datos) { DataSet ds; ds = SqlHelper.ExecuteDataset(Datos.CadenaConexion, "WN_spCSLDB_get_Combos", 13, "", Datos.Parametro01Int); if (ds != null) { if (ds.Tables[0] != null) { if (ds.Tables[0].Rows.Count > 0) { return(ds.Tables[0]); } } } return(null); }
public DataTable ObtenerComboRepresentanteSinCasilla(WN_Combos Datos) { DataSet ds; ds = SqlHelper.ExecuteDataset(Datos.CadenaConexion, "WN_spCSLDB_get_Combos", 14, "", Datos.Parametro01Int); if (ds != null) { if (ds.Tables[0] != null) { if (ds.Tables[0].Rows.Count > 0) { return(ds.Tables[0]); } } } return(null); }
public DataTable ObtenerComboTipoUsuario(WN_Combos Datos) { DataSet ds; ds = SqlHelper.ExecuteDataset(Datos.CadenaConexion, "WN_spCSLDB_get_Combos", 6, "", 0); if (ds != null) { if (ds.Tables[0] != null) { if (ds.Tables[0].Rows.Count > 0) { return(ds.Tables[0]); } } } return(null); }
public DataTable ObtenerComboCasillasXSeccion(WN_Combos Datos) { DataSet ds; ds = SqlHelper.ExecuteDataset(Datos.CadenaConexion, "WN_spCSLDB_get_Combos", 5, Datos.Parametro01String, 0); if (ds != null) { if (ds.Tables[0] != null) { if (ds.Tables[0].Rows.Count > 0) { return(ds.Tables[0]); } } } return(null); }
private void llenarComboSuplente(int tipusu) { try { WN_Combos Datos = new WN_Combos { CadenaConexion = Comun.Conexion, Parametro01Int = tipusu }; WN_CombosNegocio GN = new WN_CombosNegocio(); cmbSuplente.DataSource = GN.ObtenerComboSuplente(Datos); cmbSuplente.DataValueField = "ID"; cmbSuplente.DataTextField = "Nombre"; cmbSuplente.DataBind(); } catch (Exception ex) { throw ex; } }
private void llenarComboSeccionesXIDJefe(string padre) { try { WN_Combos Datos = new WN_Combos { CadenaConexion = Comun.Conexion, Parametro01String = padre }; WN_CombosNegocio GN = new WN_CombosNegocio(); cmbSeccion.DataSource = GN.ObtenerComboSeccionesXJefe(Datos); cmbSeccion.DataValueField = "ID"; cmbSeccion.DataTextField = "Nombre"; cmbSeccion.DataBind(); } catch (Exception ex) { throw ex; } }
private void llenarComboCasillas(string casilla) { try { WN_Combos Datos = new WN_Combos { CadenaConexion = Comun.Conexion, Parametro01String = casilla }; WN_CombosNegocio GN = new WN_CombosNegocio(); cmbCasilla.DataSource = GN.ObtenerComboCasillasXSeccion(Datos); cmbCasilla.DataValueField = "ID"; cmbCasilla.DataTextField = "Nombre"; cmbCasilla.DataBind(); } catch (Exception ex) { throw ex; } }
private void llenarComboSecciones() { try { WN_Combos Datos = new WN_Combos { CadenaConexion = Comun.Conexion }; WN_CombosNegocio GN = new WN_CombosNegocio(); cmbSeccion.DataSource = GN.ObtenerComboSecciones(Datos); cmbSeccion.DataValueField = "ID"; cmbSeccion.DataTextField = "Nombre"; cmbSeccion.DataBind(); } catch (Exception ex) { throw ex; } }
public void CargarComboTipoUsuario() { try { WN_Combos Datos = new WN_Combos { CadenaConexion = Comun.Conexion }; WN_CombosNegocio CN = new WN_CombosNegocio(); cmbTipoUsuario.DataSource = CN.ObtenerComboTipoUsuario(Datos); cmbTipoUsuario.DataValueField = "ID"; cmbTipoUsuario.DataTextField = "Nombre"; cmbTipoUsuario.DataBind(); cmbTipoUsuario.Items.Insert(0, new ListItem("-Seleccione-", "0")); } catch (Exception ex) { throw ex; } }
private void llenarComboPadre(int tipusu, string tipoUsuarioActual) { try { WN_Combos Datos = new WN_Combos { CadenaConexion = Comun.Conexion, Parametro01Int = tipusu }; WN_CombosNegocio GN = new WN_CombosNegocio(); cmbAsignado.DataSource = GN.ObtenerComboPadre(Datos); cmbAsignado.DataValueField = "ID"; cmbAsignado.DataTextField = "Nombre"; cmbAsignado.DataBind(); //remuevo el --seleccione-- if (tipoUsuarioActual == "100") { cmbAsignado.Items.RemoveAt(0); } } catch (Exception ex) { throw ex; } }
public DataTable ObtenerComboCasillasXSeccion(WN_Combos Datos) { WN_CombosDatos CD = new WN_CombosDatos(); return(CD.ObtenerComboCasillasXSeccion(Datos)); }
public DataTable ObtenerComboSuplente(WN_Combos Datos) { WN_CombosDatos CD = new WN_CombosDatos(); return(CD.ObtenerComboSuplente(Datos)); }
public DataTable ObtenerComboRepresentanteSinCasilla(WN_Combos Datos) { WN_CombosDatos CD = new WN_CombosDatos(); return(CD.ObtenerComboRepresentanteSinCasilla(Datos)); }
public DataTable ObtenerComboCasillaXIDJefe(WN_Combos Datos) { WN_CombosDatos CD = new WN_CombosDatos(); return(CD.ObtenerComboCasillaXIDJefe(Datos)); }
public DataTable ObtenerComboMunicipios(WN_Combos Datos) { WN_CombosDatos CD = new WN_CombosDatos(); return(CD.ObtenerComboMunicipios(Datos)); }
public DataTable ObtenerComboSecciones(WN_Combos Datos) { WN_CombosDatos CD = new WN_CombosDatos(); return(CD.ObtenerComboSecciones(Datos)); }
public DataTable ObtenerComboTipoUsuario(WN_Combos Datos) { WN_CombosDatos CD = new WN_CombosDatos(); return(CD.ObtenerComboTipoUsuario(Datos)); }