protected void Page_Load(object sender, EventArgs e) { this.empresas = new Empresas(); this.foto_Empresa = new Foto_Empresa(); this.servicio_Empresa = new Servicio_Empresa(); this.platillo_Empresa = new Platillo_Empresa(); String IDEmpresa = Request.QueryString["ID"]; this.regempresa = this.empresas.getEmpresaID(IDEmpresa); this.foto = this.foto_Empresa.getFotoEmpresaID(IDEmpresa); this.servicios = this.servicio_Empresa.getServicioID(IDEmpresa); this.platillos = this.platillo_Empresa.getPlatilloID(IDEmpresa); }
protected void Page_Load(object sender, EventArgs e) { con = new Conexion(); this.servicioConEmpresa = new Servicio_Empresa(); this.platillo_Empresa = new Platillo_Empresa(); this.serviciosEmpresa = new ServiciosEmpresa(); this.museoDatos = new MuseoDatos(); this.platoRestaurante = new PlatoRestaurante(); this.empresas = new Empresas(); this.registroServicios = this.serviciosEmpresa.getServicios(); this.registroMuseo = this.museoDatos.getMuseo(); this.registroPlato = this.platoRestaurante.getPlato(); if (!Page.IsPostBack) { //Cargar Datos del museo if (getMuseo().Read()) { String HorarioMuseo = getMuseo()["Horario"].ToString(); horario.Text = HorarioMuseo; String TarifaMuseo = getMuseo()["Tarifa"].ToString(); tarifa.Text = TarifaMuseo; } //Cargando Servicios listServicios.Items.Clear(); while (getServicio().Read()) { String NombreServicio = getServicio()["Nombre"].ToString(); listServicios.Items.Add(NombreServicio); } //Cargando Platos listEspecialidades.Items.Clear(); while (getPlatos().Read()) { String NombrePlato = getPlatos()["Nombre"].ToString(); listEspecialidades.Items.Add(NombrePlato); } } }