/// <summary> /// Metodo de consulta de ciudades por zona geografica /// </summary> /// <param name="PageSource"></param> /// <remarks> /// Autor: Juan Camilo Diaz /// Company: Ssoft Colombia /// Fecha: 2013-11-13 /// ------------------- /// Control de Cambios /// ------------------- /// </remarks> public void setCiudadesZona(UserControl PageSource, string Empresa) { try { if (PageSource.Request.QueryString["PaisDestino"] != null) { int iCodPais = 0; try { iCodPais = Convert.ToInt32(PageSource.Request.QueryString["PaisDestino"].ToString()); } catch { } DataTable dtDatos = new DataTable(); csConsultasPlanes cConsPlanes = new csConsultasPlanes(); DropDownList ddlCiudad = (DropDownList)PageSource.FindControl("ddlCiudad"); DropDownList ddlPais = (DropDownList)PageSource.FindControl("ddlPais"); ddlPais.SelectedValue = PageSource.Request.QueryString["PaisDestino"].ToString(); dtDatos = cConsPlanes.ConsultarPaises_CiudadesPlanes(false, iCodPais, Empresa); csGenerales csRefere = new csGenerales(); if (dtDatos != null && dtDatos.Rows.Count > 0) { csRefere.LlenarControlData(ddlCiudad, Enum_Controls.DropDownList, "intCode", "strDescripcion", true, false, null, dtDatos); } } } catch { } }
public void setPaisesZona(UserControl PageSource, string Empresa, string strTipoplan) { try { DropDownList ddlZonaGeo = (DropDownList)PageSource.FindControl("ddlZonaGeo"); if (ddlZonaGeo != null) { try { csConsultasPlanes cConsPlanes = new csConsultasPlanes(); DataTable dtDatosUbic = new DataTable(); dtDatosUbic = cConsPlanes.ConsultarPaises_ZonasSeguros(Empresa, strTipoplan); csGenerales csRefere = new csGenerales(); if (dtDatosUbic != null && dtDatosUbic.Rows.Count > 0) { csRefere.LlenarControlData(ddlZonaGeo, Enum_Controls.DropDownList, "intZonaGeografica", "STRDESCRIPCION", true, false, null, dtDatosUbic); } } catch { } } var ZonaGeo = PageSource.Request.QueryString["ZonaGeo"]; if (!string.IsNullOrEmpty(ZonaGeo) && ZonaGeo != "0") { ddlZonaGeo.SelectedValue = ZonaGeo; } } catch { } }
public void setPaisesZona(UserControl PageSource, string Empresa, int strZona) { try { AjaxControlToolkit.CascadingDropDown cddZona = PageSource.FindControl("cddZona") as AjaxControlToolkit.CascadingDropDown; if (cddZona == null) { try { csConsultasPlanes cConsPlanes = new csConsultasPlanes(); DataTable dtDatosUbic = new DataTable(); DropDownList ddlPais = (DropDownList)PageSource.FindControl("ddlPais"); dtDatosUbic = cConsPlanes.ConsultarPaises_CiudadesPlanes(true, strZona, Empresa); csGenerales csRefere = new csGenerales(); if (dtDatosUbic != null && dtDatosUbic.Rows.Count > 0) { csRefere.LlenarControlData(ddlPais, Enum_Controls.DropDownList, "intCode", "strDescripcion", true, false, null, dtDatosUbic); } } catch { } } } catch { } }
/// <summary> /// metodo pendiente por revision /// </summary> private void GuardarDatosProyecto() { /*FECHA LIMITE DE PAGO*/ DateTime dPlazo = clsSesiones.GET_TICKETE(); const string strNombreCarroCompras = "CarritoCompras"; clsCache cCache = new csCache().cCache(); csCarrito csCarCompras = new csCarrito("Reserva" + cCache.SessionID, strNombreCarroCompras); string idRecord = clsSesiones.getProyecto(); csGenerales cGeneral = new csGenerales(); cGeneral.Conexion = clsValidaciones.GetKeyOrAdd("strConexion"); //tblRefere otblRefere = new tblRefere(); //Para el estado de la reserva //otblRefere.Get(clsValidaciones.GetKeyOrAdd("EstadoReserva", "EstadoReserva"), clsValidaciones.GetKeyOrAdd("EstadoReservaConfirmada", "HK")); //string sEstado = string.Empty; //string sFormaPago = string.Empty; //string sEstadoPago = string.Empty; //if (otblRefere.Respuesta == true) // sEstado = otblRefere.intidRefere.Value.ToString(); ////Para la forma de Pago //otblRefere.Get(clsValidaciones.GetKeyOrAdd("FormasPago", "FP"), clsValidaciones.GetKeyOrAdd("Efectivo", "efe")); //if (otblRefere.Respuesta == true) // sFormaPago = otblRefere.intidRefere.Value.ToString(); ////Para el estado del Pago //otblRefere.Get(clsValidaciones.GetKeyOrAdd("EstadoPago", "EstadoPago"), clsValidaciones.GetKeyOrAdd("EstadoPagoPendiente", "PP")); //if (otblRefere.Respuesta == true) // sEstadoPago = otblRefere.intidRefere.Value.ToString(); //csCarCompras.SaveDataProject(idRecord, cCache.Contacto, cCache.Contacto, "0", sEstado, sFormaPago, sEstadoPago); }
public List <string> AerolineasPreferidas() { List <string> lsAerolineaPreferida = new List <string>(); try { csGenerales cGeneral = new csGenerales(); DataSet dsData = new DataSet(); string sTipoRefere = clsValidaciones.GetKeyOrAdd("AIRLINESABRE"); //dsData = AerolineasConEmision(); //if (dsData.Tables[0].Rows.Count > 0) //{ // int iTotal = dsData.Tables[0].Rows.Count; // if (iTotal < 15) // { // for (int i = 0; i < iTotal; i++) // { // lsAerolineaPreferida.Add(dsData.Tables[0].Rows[i]["strRefere"].ToString()); // } // } //} int iCantidad = int.Parse(clsValidaciones.GetKeyOrAdd("PreferencesAir", "99")); dsData = cGeneral.Refere(sTipoRefere, 2); if (dsData.Tables.Count > 0) { if (dsData.Tables[0].Rows.Count > 0) { int iTotal = dsData.Tables[0].Rows.Count; if (iTotal <= iCantidad) { for (int i = 0; i < iTotal; i++) { lsAerolineaPreferida.Add(dsData.Tables[0].Rows[i]["strRefere"].ToString()); } } else { for (int i = 0; i < iCantidad; i++) { lsAerolineaPreferida.Add(dsData.Tables[0].Rows[i]["strRefere"].ToString()); } } } } } catch { } return(lsAerolineaPreferida); }
public void CargarDatosUsuario(Repeater rptUsuario) { try { DropDownList ddlTipoIdent = null; RadioButtonList rblSexo = null; DropDownList ddlPais = null; DataTable dtResultadosIdent = null; DataTable dtResultadosGenero = null; DataTable dtResultadosPaises = null; csConsultasGenerales Generales = new csConsultasGenerales(); csGenerales csRefere = new csGenerales(); dtResultadosIdent = Generales.ConReferenciaTiposIdentificacion(); dtResultadosGenero = Generales.ConReferenciaSexo(); dtResultadosPaises = Generales.listado_paises(); for (int i = 0; i < rptUsuario.Items.Count; i++) { ddlTipoIdent = (DropDownList)rptUsuario.Items[i].FindControl("ddlTipoIdent"); if (ddlTipoIdent != null) { if (dtResultadosIdent != null) { csRefere.LlenarControlData(ddlTipoIdent, Enum_Controls.DropDownList, "intCode", "strDescripcion", true, false, null, dtResultadosIdent); } } rblSexo = (RadioButtonList)rptUsuario.Items[i].FindControl("rblSexo"); if (rblSexo != null) { if (dtResultadosGenero != null) { csRefere.LlenarControlData(rblSexo, Enum_Controls.RadioButtonList, "intCode", "strDescripcion", true, false, null, dtResultadosGenero); } } ddlPais = (DropDownList)rptUsuario.Items[i].FindControl("ddlPais"); if (ddlPais != null) { if (dtResultadosPaises != null) { csRefere.LlenarControlData(ddlPais, Enum_Controls.DropDownList, "intCode", "strDescripcion", true, false, null, dtResultadosPaises); } } } } catch { } }
public void datos_ciudades_pais(DropDownList ddlCiudades, string codePais) { try { DataTable dtResultados = new DataTable(); csConsultasGenerales Ubicacion = new csConsultasGenerales(); csGenerales csRefere = new csGenerales(); dtResultados = Ubicacion.listado_ciudades_pais(codePais); if (dtResultados != null) { csRefere.LlenarControlData(ddlCiudades, Enum_Controls.DropDownList, "intCode", "strDescription", true, false, null, dtResultados); } } catch { } }
public void setTipologias(UserControl PageSource, string Empresa) { try { csConsultasPlanes cConsPlanes = new csConsultasPlanes(); DataTable dtDatosUbic = new DataTable(); DropDownList ddlTipologia = (DropDownList)PageSource.FindControl("ddlTipologia"); if (ddlTipologia != null) { dtDatosUbic = cConsPlanes.ConsultarTipologias(Empresa); csGenerales csRefere = new csGenerales(); if (dtDatosUbic != null && dtDatosUbic.Rows.Count > 0) { csRefere.LlenarControlData(ddlTipologia, Enum_Controls.DropDownList, "INTCODIGO", "STRDESCRIPCION", true, false, null, dtDatosUbic); } } var IdTipologia = PageSource.Request.QueryString["IdTipologia"]; if (!string.IsNullOrEmpty(IdTipologia) && IdTipologia != "0") { ddlTipologia.SelectedValue = IdTipologia; } } catch { } }