protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); Response.Cache.SetAllowResponseInBrowserHistory(false); Response.Cache.SetNoStore(); Int32 FORMULARIO = 24; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaMenureserva(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaMenureserva(FORMULARIO, DDL); } // Hashtable compIdioma = new Hashtable(); //Session["mensajes"] = compIdioma; // DL_menuReser.Columns[0].HeaderText = com.B; Session["men"] = com.F; DL_menuReser.DataBind(); }
protected void GV_Controles_SelectedIndexChanged(object sender, EventArgs e) { ClientScriptManager cm = this.ClientScript; LIdioma user = new LIdioma(); try { Session["idioma"] = GV_Idioma.SelectedRow.Cells[0].Text; Session["formulario"] = GV_Formulario.SelectedRow.Cells[0].Text; Int32 idioma = int.Parse(Session["idioma"].ToString()); Int32 formulario = int.Parse(Session["formulario"].ToString()); DataTable datos = user.ToDataTable(user.listarcontroles(formulario, idioma)); } catch { Session["control"] = GV_Controles.SelectedRow.Cells[1].Text; Session["idioma_id"] = GV_Controles.SelectedRow.Cells[2].Text; Session["formulario_id"] = GV_Controles.SelectedRow.Cells[3].Text; Session["texto"] = GV_Controles.SelectedRow.Cells[4].Text; Session["id"] = GV_Controles.SelectedRow.Cells[5].Text; LB_Control.Text = Session["control"].ToString(); TB_Texto.Text = Session["texto"].ToString(); } }
protected void Page_Load(object sender, EventArgs e) { Int32 FORMULARIO = 6; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaGenerartoken(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaGenerartoken(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; //for (int i = 0; i < info.Rows.Count; i++) //{ // compIdioma.Add(info.Rows[i]["control"].ToString(), info.Rows[i]["valor"].ToString()); //} LB_recuperar.Text = com.A; LB_nombre.Text = com.B; L_Mensaje.Text = com.C; Session["men"] = com.D; Session["men1"] = com.E; Session["men2"] = com.F; }
protected void Button1_Click(object sender, EventArgs e) { UIdioma user = new UIdioma(); LIdioma datos = new LIdioma(); UControles idioma = new UControles(); LUser data = new LUser(); idioma.Idioma_id = int.Parse(DDL_Idioma.SelectedValue.ToString()); idioma.Formulario_id = int.Parse(L_Formulario.Text.ToString()); idioma.Control = L_Control.Text.ToString(); idioma.Texto = TB_Texto.Text.ToString(); user.Mensaje = Session["men"].ToString(); user.A = Session["men1"].ToString(); user = datos.agregarControl(idioma, user); this.RegisterStartupScript("mensaje", user.Mensaje); DataTable regis = data.ToDataTable(data.obtenerAdioma()); String esquema = "idioma"; String tabla = "controles"; String pk = Session["user_id"].ToString(); String session = Session.SessionID; data.insert(regis, esquema, tabla, pk, session); }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); Response.Cache.SetAllowResponseInBrowserHistory(false); Response.Cache.SetNoStore(); Int32 FORMULARIO = 4; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaCreamenu(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaCreamenu(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; L_insertmenu.Text = com.A; LB_nompla.Text = com.B; LB_desc.Text = com.C; LB_precio.Text = com.D; LB_seleccionar.Text = com.E; B_guardar.Text = com.F; Session["men"] = com.G; }
protected void Page_Load(object sender, EventArgs e) { Int32 FORMULARIO = 3; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaContacto(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaContacto(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; //for (int i = 0; i < info.Rows.Count; i++) //{ // compIdioma.Add(info.Rows[i]["control"].ToString(), info.Rows[i]["valor"].ToString()); //} L_title.Text = com.A; LB_Nombre.Text = com.B; LB_Email.Text = com.C; LB_Telefono.Text = com.D; LB_Detalle.Text = com.E; BT_Enviar.Text = com.F; Session["men"] = com.G; }
protected void Page_Load(object sender, EventArgs e) { Int32 FORMULARIO = 39; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaReserva(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaReserva(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); GV_Reserva.Columns[1].HeaderText = com.A; GV_Reserva.Columns[2].HeaderText = com.B; GV_Reserva.Columns[3].HeaderText = com.D; BT_Platos.Text = com.C; LB_reserT.Text = com.E; }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); Response.Cache.SetAllowResponseInBrowserHistory(false); Response.Cache.SetNoStore(); Int32 FORMULARIO = 28; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaModificarmesa(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaModificarmesa(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; //for (int i = 0; i < info.Rows.Count; i++) //{ // compIdioma.Add(info.Rows[i]["control"].ToString(), info.Rows[i]["valor"].ToString()); //} LB_modimesa.Text = com.A; LB_codimesa.Text = com.B; LB_cantper.Text = com.C; LB_ubi.Text = com.D; BT_Modificar.Text = com.E; Session["men"] = com.F; UUser datos = new UUser(); datos.Ispos = IsPostBack; LUser info = new LUser(); //TB_id_mesa.Text = Session["id_mesa"].ToString(); //TB_Cantidad.Text = Session["descripcion"].ToString(); //TB_Ubicacion.Text = Session["ubicacion"].ToString(); info.ispost(datos); { ClientScriptManager cm = this.ClientScript; datos.A = TB_id_mesa.Text; datos.B = Session["id_mesa"].ToString(); datos.C = TB_Cantidad.Text; datos.D = Session["descripcion"].ToString(); datos.E = TB_Ubicacion.Text; datos.F = Session["ubicacion"].ToString(); } }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); Response.Cache.SetAllowResponseInBrowserHistory(false); Response.Cache.SetNoStore(); Int32 FORMULARIO = 27; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaModificarmenu(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaModificarmenu(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; //for (int i = 0; i < info.Rows.Count; i++) //{ // compIdioma.Add(info.Rows[i]["control"].ToString(), info.Rows[i]["valor"].ToString()); //} LB_modimeni.Text = com.A; LB_nompla.Text = com.B; REV_nombre.Text = com.C; LB_desc.Text = com.D; REV_desc.Text = com.E; LB_preciopla.Text = com.F; validator_precio.Text = com.G; LB_imagen.Text = com.H; //FU_imagen. = com.I; B_Modificar.Text = com.J; Session["men"] = com.K; Session["men1"] = com.L; Session["men2"] = com.M; UuserCrear datos = new UuserCrear(); datos.Ispos = IsPostBack; LUser user = new LUser(); LUser ins = new LUser(); UUser info = new UUser(); { ClientScriptManager cm = this.ClientScript; } }
protected void Page_Load(object sender, EventArgs e) { Int32 FORMULARIO = 31; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaRegistro(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaRegistro(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; LB_regis.Text = com.A; LB_nombre.Text = com.B; LB_user.Text = com.C; LB_pass.Text = com.D; LB_rpass.Text = com.E; REV_Nombre.Text = com.F; validator_username.Text = com.G; CV_CContrasena.Text = com.H; LB_apellido.Text = com.I; LB_email.Text = com.J; LB_cedula.Text = com.K; LB_celu.Text = com.L; REV_Nombre0.Text = com.M; REV_Nombre1.Text = com.N; REV_Nombre2.Text = com.O; B_Crear.Text = com.P; Session["mensaje"] = com.Q; Session["men1"] = com.R; //if (Session["band"].Equals(true)) //{ // TB_Usuario.Text = Session["user_name"].ToString(); // TB_Email.Text = Session["correo"].ToString(); //} //else //{ // TB_Usuario.Text = ""; // TB_Email.Text = ""; //} }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); Response.Cache.SetAllowResponseInBrowserHistory(false); Response.Cache.SetNoStore(); Int32 FORMULARIO = 43; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); Int32 DDL; try { DDL = int.Parse(Session["ddl"].ToString()); } catch { DDL = 1; } DataTable info = idioma.obtenerControl(FORMULARIO, DDL); Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; compIdioma = idioma.hastableIdioma(info, compIdioma); LB_TIdioma.Text = compIdioma["LB_TIdioma"].ToString(); LB_Idioma.Text = compIdioma["LB_Idioma"].ToString(); LB_Controles.Text = compIdioma["LB_Controles"].ToString(); LB_Nombre.Text = compIdioma["LB_Nombre"].ToString(); LB_Terminacion.Text = compIdioma["LB_Terminacion"].ToString(); BT_Agregarc.Text = compIdioma["BT_Agregarc"].ToString(); BT_Agregar.Text = compIdioma["BT_Agregar"].ToString(); BT_Eliminar.Text = compIdioma["BT_Eliminar"].ToString(); //LB_Control.Text = compIdioma["LB_Control"].ToString(); //LB_Texto.Text = compIdioma["LB_Texto"].ToString(); BT_ModificarC.Text = compIdioma["BT_ModificarC"].ToString(); LB_Formularios.Text = compIdioma["LB_Formularios"].ToString(); GV_Idioma.Columns[1].HeaderText = compIdioma["Lb_nombre"].ToString(); GV_Idioma.Columns[2].HeaderText = compIdioma["LB_Termina"].ToString(); GV_Idioma.Columns[3].HeaderText = compIdioma["LB_Codigo"].ToString(); GV_Formulario.Columns[1].HeaderText = compIdioma["LB_Nom"].ToString(); GV_Formulario.Columns[2].HeaderText = compIdioma["LB_url"].ToString(); GV_Formulario.Columns[3].HeaderText = compIdioma["LB_Id"].ToString(); GV_Controles.Columns[1].HeaderText = compIdioma["LB_Control"].ToString(); GV_Controles.Columns[2].HeaderText = compIdioma["LB_idIdioma"].ToString(); GV_Controles.Columns[3].HeaderText = compIdioma["LB_idForm"].ToString(); GV_Controles.Columns[4].HeaderText = compIdioma["LB_text"].ToString(); GV_Controles.Columns[5].HeaderText = compIdioma["LB_iD"].ToString(); Session["men"] = compIdioma["JS_agreIdio"].ToString(); Session["men1"] = compIdioma["JS_eliIdio"].ToString(); Session["men2"] = compIdioma["JS_eliIdio1"].ToString(); Session["men3"] = compIdioma["JS_agreIdio1"].ToString(); Session["men4"] = compIdioma["JS_Modi"].ToString(); }
protected void descartar_idioma_Click(object sender, EventArgs e) { LIdioma logica = new LIdioma(); UIdioma enc = new UIdioma(); int idioma = Convert.ToInt32(Session["nombreIdioma"]); enc = logica.eliminarIdiomaCompleto(idioma); Session["empezar"] = null; }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); Response.Cache.SetAllowResponseInBrowserHistory(false); Response.Cache.SetNoStore(); Int32 FORMULARIO = 10; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaListaplatos(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaListaplatos(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; //for (int i = 0; i < info.Rows.Count; i++) //{ // compIdioma.Add(info.Rows[i]["control"].ToString(), info.Rows[i]["valor"].ToString()); //} LB_listPlato.Text = com.A; BT_Nuevo.Text = com.B; B_modificar.Text = com.C; BT_Eliminar.Text = com.D; LB_buscar.Text = com.E; BT_Buscar.Text = com.F; RFV_alerta.Text = com.G; validator_username.Text = com.H; GV_Platos.Columns[0].HeaderText = com.I; GV_Platos.Columns[2].HeaderText = com.J; GV_Platos.Columns[3].HeaderText = com.K; GV_Platos.Columns[4].HeaderText = com.L; GV_Platos.Columns[5].HeaderText = com.M; Session["men"] = com.N; Session["buscarp"] = com.O; L_Persistencia dato = new L_Persistencia(); GV_Platos.DataSource = dato.obtenerMenu(); GV_Platos.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); Response.Cache.SetAllowResponseInBrowserHistory(false); Response.Cache.SetNoStore(); Int32 FORMULARIO = 1; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); Int32 DDL; try { DDL = int.Parse(Session["ddl"].ToString()); } catch { DDL = 1; } DataTable info = idioma.obtenerControl(FORMULARIO, DDL); Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; compIdioma = idioma.hastableIdioma(info, compIdioma); L_PuntosR.Text = compIdioma["L_PuntosR"].ToString(); L_cantPuntos.Text = compIdioma["L_cantPuntos"].ToString(); L_puntosInsu.Text = compIdioma["L_puntosInsu"].ToString(); L_Historial.Text = compIdioma["L_Historial"].ToString(); BT_Regresar.Text = compIdioma["BT_Regresar"].ToString(); GV_Historial.Columns[0].HeaderText = compIdioma["LB_Mesa"].ToString(); GV_Historial.Columns[1].HeaderText = compIdioma["LB_Dia"].ToString(); DL_canje.DataBind(); Session["men"] = compIdioma["JS_canje"].ToString(); int Id = int.Parse(Session["user_id"].ToString()); LUser dao = new LUser(); DataTable tabla = new DataTable(); L_Persistencia data = new L_Persistencia(); int id_usuario = int.Parse(Session["user_id"].ToString()); GV_Historial.DataSource = data.listadeReservas(id_usuario); GV_Historial.DataBind(); DataTable inter = data.ToDataTable(data.listadePuntos(Id)); //tabla = data.listadePuntos(Id); UuserReservas dato = dao.canje(inter); LB_puntos.Text = inter.Rows[0]["puntos"].ToString(); L_puntosInsu.Visible = dato.Est1; DL_canje.Visible = dato.Est2; }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); Response.Cache.SetAllowResponseInBrowserHistory(false); Response.Cache.SetNoStore(); Int32 FORMULARIO = 35; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaPago(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaPago(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; //for (int i = 0; i < info.Rows.Count; i++) //{ // compIdioma.Add(info.Rows[i]["control"].ToString(), info.Rows[i]["valor"].ToString()); //} LB_pago.Text = com.A; LB_preciore.Text = com.B; LB_valor.Text = com.C; BT_Pagar.Text = com.D; Session["men"] = com.E; UUser datos = new UUser(); LUser user = new LUser(); try { datos.User_name = Session["nombre"].ToString(); user.validarlogin(datos); } catch { datos = user.validarlogin(datos); Response.Redirect(datos.Url); } }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); Response.Cache.SetAllowResponseInBrowserHistory(false); Response.Cache.SetNoStore(); Int32 FORMULARIO = 5; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaDespachos(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaDespachos(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; LB_pedidos.Text = com.A; LB_Reservas.Text = com.B; GV_Pedidos.Columns[0].HeaderText = com.C; GV_Pedidos.Columns[1].HeaderText = com.D; GV_Pedidos.Columns[2].HeaderText = com.E; GV_Despachar.Columns[0].HeaderText = com.D; GV_Despachar.Columns[1].HeaderText = com.F; GV_Despachar.Columns[2].HeaderText = com.G; GV_Despachar.Columns[3].HeaderText = com.H; GV_Reservas.Columns[0].HeaderText = com.C; GV_Reservas.Columns[1].HeaderText = com.D; GV_Reservas.Columns[2].HeaderText = com.E; GV_DespachoR.Columns[0].HeaderText = com.D; GV_DespachoR.Columns[1].HeaderText = com.F; GV_DespachoR.Columns[2].HeaderText = com.G; GV_DespachoR.Columns[3].HeaderText = com.H; }
protected void Page_Load(object sender, EventArgs e) { Int32 FORMULARIO = 7; Estado est = new Estado(); UUser datos = new UUser(); LIdioma user = new LIdioma(); try { Session["ddl"] = DDL_Idioma.SelectedValue.ToString(); } catch { Session["ddl"] = 1; } int DDL = int.Parse(Session["ddl"].ToString());; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); com = idioma.idiomaInicio(FORMULARIO, DDL); Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; L_MInicio.Text = com.A; L_PPopulares.Text = com.B; L_Opciones.Text = com.C; L_Plato1.Text = com.D; L_Detalle1.Text = com.E; L_Precio1.Text = com.F; L_Plato2.Text = com.G; L_Detalle2.Text = com.H; L_Precio2.Text = com.I; L_Plato3.Text = com.J; L_Detalle3.Text = com.K; L_Precio3.Text = com.L; Session["user_name"] = ""; Session["correo"] = ""; Session["band"] = ""; }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); Response.Cache.SetAllowResponseInBrowserHistory(false); Response.Cache.SetNoStore(); Int32 FORMULARIO = 13; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaListarmesas(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaListarmesas(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; //for (int i = 0; i < info.Rows.Count; i++) //{ // compIdioma.Add(info.Rows[i]["control"].ToString(), info.Rows[i]["valor"].ToString()); //} LB_listmesas.Text = com.A; BT_Nuevo.Text = com.B; BT_Modificar.Text = com.C; BT_Eliminar.Text = com.D; LB_buscar.Text = com.E; BT_Buscar.Text = com.F; GV_Mesas.Columns[1].HeaderText = com.G; GV_Mesas.Columns[2].HeaderText = com.H; GV_Mesas.Columns[3].HeaderText = com.I; //L_Precio2.Text = com.I; //L_Plato3.Text = com.J; //L_Detalle3.Text = com.K; //L_Precio3.Text = com.L; }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); Response.Cache.SetAllowResponseInBrowserHistory(false); Response.Cache.SetNoStore(); Int32 FORMULARIO = 8; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaListaclientes(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaListaclientes(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; //for (int i = 0; i < info.Rows.Count; i++) //{ // compIdioma.Add(info.Rows[i]["control"].ToString(), info.Rows[i]["valor"].ToString()); //} LB_listClien.Text = com.A; LB_Buscar.Text = com.B; BT_Buscar.Text = com.C; REV_Username.Text = com.D; RFV_alerta.Text = com.E; GV_listClien.Columns[0].HeaderText = com.F; GV_listClien.Columns[1].HeaderText = com.G; GV_listClien.Columns[2].HeaderText = com.H; GV_listClien.Columns[3].HeaderText = com.I; GV_listClien.Columns[4].HeaderText = com.J; GV_listClien.Columns[5].HeaderText = com.K; LUser dato = new LUser(); L_Persistencia data = new L_Persistencia(); GV_listClien.DataSource = data.listadeClientes(); GV_listClien.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { Int32 FORMULARIO = 19; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaMastermesero(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaMastermesero(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; //for (int i = 0; i < info.Rows.Count; i++) //{ // compIdioma.Add(info.Rows[i]["control"].ToString(), info.Rows[i]["valor"].ToString()); //} LB_pedidos.Text = com.A; LB_Reser.Text = com.B; LB_cerrar.Text = com.C; UUser datos = new UUser(); LUser user = new LUser(); try { user.validarlogin(datos); datos.User_name = Session["nombre"].ToString(); } catch { datos = user.validarlogin(datos); Response.Redirect(datos.Url); } }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); Response.Cache.SetAllowResponseInBrowserHistory(false); Response.Cache.SetNoStore(); Int32 FORMULARIO = 9; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaComentarios(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaComentarios(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; //for (int i = 0; i < info.Rows.Count; i++) //{ // compIdioma.Add(info.Rows[i]["control"].ToString(), info.Rows[i]["valor"].ToString()); //} lb_listComen.Text = com.A; LB_buscar.Text = com.B; BT_Buscar.Text = com.C; validator_username.Text = com.D; RFV_alerta.Text = com.E; GV_Listar.Columns[1].HeaderText = com.F; GV_Listar.Columns[2].HeaderText = com.G; //L_Persistencia dato = new L_Persistencia(); //GV_Listar.DataSource = dato.obtenerComentario(); //GV_Listar.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { Int32 FORMULARIO = 32; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaRecuperar_contraseña(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaRecuperar_contraseña(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; //for (int i = 0; i < info.Rows.Count; i++) //{ // compIdioma.Add(info.Rows[i]["control"].ToString(), info.Rows[i]["valor"].ToString()); //} LB_recucontra.Text = com.A; LB_newpas.Text = com.B; LB_Rnewpas.Text = com.C; CV_veri.Text = com.D; Guardar_new_pass.Text = com.E; Session["men"] = com.F; LUser recu = new LUser(); Response.Cache.SetNoStore(); int x = Request.QueryString.Count; string y = Request.QueryString[0]; Session["user_id"] = recu.Recuperar(x, y); }
protected void Page_Load(object sender, EventArgs e) { Int32 FORMULARIO = 41; UUser datos = new UUser(); LIdioma user = new LIdioma(); LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaInicio1(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaInicio1(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; L_MInicio.Text = com.A; L_PPopulares.Text = com.B; L_Opciones.Text = com.C; L_Plato1.Text = com.D; L_Detalle1.Text = com.E; L_Precio1.Text = com.F; L_Plato2.Text = com.G; L_Detalle2.Text = com.H; L_Precio2.Text = com.I; L_Plato3.Text = com.J; L_Detalle3.Text = com.K; L_Precio3.Text = com.L; }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); Response.Cache.SetAllowResponseInBrowserHistory(false); Response.Cache.SetNoStore(); Int32 FORMULARIO = 44; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); Int32 DDL; try { DDL = int.Parse(Session["ddl"].ToString()); } catch { DDL = 1; } //com = idioma.idiomaCanje(FORMULARIO, DDL); DataTable info = idioma.obtenerControl(FORMULARIO, DDL); Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; compIdioma = idioma.hastableIdioma(info, compIdioma); Label2.Text = compIdioma["Label2"].ToString(); LB_Idioma.Text = compIdioma["LB_Idioma"].ToString(); LB_Formulario.Text = compIdioma["LB_Formulario"].ToString(); LB_Control.Text = compIdioma["LB_Control"].ToString(); LB_Texto.Text = compIdioma["LB_Texto"].ToString(); LB_Traduccion.Text = compIdioma["LB_Traduccion"].ToString(); BT_AControl.Text = compIdioma["BT_AControl"].ToString(); L_Formulario.Text = Session["formulario_id"].ToString(); L_Control.Text = Session["control"].ToString(); l_Texto.Text = Session["texto"].ToString(); Session["men"] = compIdioma["JS_agreCon"].ToString(); Session["men1"] = compIdioma["JS_agreCon1"].ToString(); }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); Response.Cache.SetAllowResponseInBrowserHistory(false); Response.Cache.SetNoStore(); Int32 FORMULARIO = 30; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaRegistrarempleado(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaRegistrarempleado(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; LB_regisemp.Text = com.A; LB_nombre.Text = com.B; LB_user.Text = com.C; LB_pas.Text = com.D; LB_rpas.Text = com.E; LB_apellido.Text = com.F; LB_email.Text = com.G; LB_cedula.Text = com.H; LB_celu.Text = com.I; CV_CContrasena.Text = com.J; LB_rol.Text = com.K; B_Crear.Text = com.O; Session["men"] = com.P; }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); Response.Cache.SetAllowResponseInBrowserHistory(false); Response.Cache.SetNoStore(); Int32 FORMULARIO = 34; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaNuevamesa(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaNuevamesa(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; //for (int i = 0; i < info.Rows.Count; i++) //{ // compIdioma.Add(info.Rows[i]["control"].ToString(), info.Rows[i]["valor"].ToString()); //} LB_nuevamesa.Text = com.A; LB_cantper.Text = com.B; RFV_numeros.Text = com.C; LB_ubi.Text = com.D; RFV_ubi.Text = com.E; BT_Nuevo.Text = com.F; Session["men"] = com.G; }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); Response.Cache.SetAllowResponseInBrowserHistory(false); Response.Cache.SetNoStore(); Int32 FORMULARIO = 33; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); //int DDL = int.Parse(Session["ddl"].ToString()); //com = idioma.idiomaPedido(FORMULARIO, DDL); Int32 DDL; try { DDL = int.Parse(Session["ddl"].ToString()); } catch { DDL = 1; } DataTable info = idioma.obtenerControl(FORMULARIO, DDL); Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; compIdioma = idioma.hastableIdioma(info, compIdioma); LB_pedidoT.Text = compIdioma["LB_pedidoT"].ToString(); LB_seleccion.Text = compIdioma["LB_seleccion"].ToString();; BT_Mesa.Text = compIdioma["BT_Mesa"].ToString();; LB_menuT.Text = compIdioma["LB_menuT"].ToString();; Session["men"] = compIdioma["JS_pedido"].ToString();; DL_Pedido.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { Int32 FORMULARIO = 16; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); LUser user = new LUser(); UUser emp = new UUser(); UUsuario dato = new UUsuario(); LUsuario luser = new LUsuario(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaLoggin(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaLoggin(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; LB_Login.Text = com.A; LB_username.Text = com.B; validator_username.Text = com.C; LB_pass.Text = com.D; LB_Recuperar.Text = com.E; B_Login.Text = com.F; B_Registrarse.Text = com.G; Session["men"] = com.H; Session["men1"] = com.I; Session["men2"] = com.J; Session["men3"] = com.K; GoogleConnect.ClientId = "326076519225-vg67uko89vu71hcetltti24jsvbenk33.apps.googleusercontent.com"; GoogleConnect.ClientSecret = "MMHhqYJwIWXP4Bz_eAthOto9"; GoogleConnect.RedirectUri = Request.Url.AbsoluteUri.Split('?')[0]; if (!string.IsNullOrEmpty(Request.QueryString["code"])) { try { string code = Request.QueryString["code"]; string json = GoogleConnect.Fetch("me", code); GoogleProfile profile = new JavaScriptSerializer().Deserialize <GoogleProfile>(json); Session["password"] = profile.Id; Session["user_name"] = profile.DisplayName; Session["correo"] = profile.Emails.Find(email => email.Type == "account").Value; Session["band"] = true; //Image1.ImageUrl = profile.Im/ImageButton1.Visible = false; UUser usua = new UUser(); LUser datas = new LUser(); String correo = Session["correo"].ToString(); String user_name = Session["user_name"].ToString(); DataTable dat = user.verificarRegistro(correo); if (int.Parse(dat.Rows.Count.ToString()) > 0) { emp.User_id = int.Parse(dat.Rows[0]["user_id"].ToString()); emp.User_name = dat.Rows[0]["user_name1"].ToString(); emp.Clave = dat.Rows[0]["clave"].ToString(); emp.Session = Session.SessionID; emp.A = Session["men"].ToString(); emp.B = Session["men1"].ToString(); emp.C = Session["men2"].ToString(); emp.D = Session["men3"].ToString(); usua = user.logear(emp); Session["nombre"] = (usua.User_name); Session["name"] = (usua.User_name); Session["user_id"] = (usua.UserId); Response.Redirect(usua.Url); } else { UEmpleados empl = new UEmpleados(); empl.Email = correo; empl.Puntos = 0; empl.Id_Rol = 4; empl.User_Name1 = user_name; empl.Clave = Session["password"].ToString(); empl.Rclave = Session["password"].ToString(); empl.Sesiones = 0; empl.Intentos = 0; empl.Session = "a"; dato = datas.insertUsuario(empl); DataTable datos = user.verificarRegistro(correo); emp.User_id = int.Parse(datos.Rows[0]["user_id"].ToString()); emp.User_name = datos.Rows[0]["user_name1"].ToString(); emp.Clave = datos.Rows[0]["clave"].ToString(); emp.Session = Session.SessionID; emp.A = Session["men"].ToString(); emp.B = Session["men1"].ToString(); emp.C = Session["men2"].ToString(); emp.D = Session["men3"].ToString(); usua = user.logear(emp); Session["nombre"] = (usua.User_name); Session["name"] = (usua.User_name); Session["user_id"] = (usua.UserId); Response.Redirect(usua.Url); } } catch { } } FaceBookConnect.API_Key = "196078794611552"; FaceBookConnect.API_Secret = "fb201e558813c89209c150c723cb9b99"; if (!IsPostBack) { if (Request.QueryString["error"] == "access_denied") { ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", "alert('Acceso no permitido.')", true); return; } string cod = Request.QueryString["code"]; if (!string.IsNullOrEmpty(cod)) { ViewState["code"] = cod; try { string data = FaceBookConnect.Fetch(cod, "me?fields=id,name,email"); FacebookService facebookuser = new JavaScriptSerializer().Deserialize <FacebookService>(data); facebookuser.PictureUrl = string.Format("http://graph.facebook.com/{0}/picture", facebookuser.Id); //pnlFaceBookUser.Visible = true; //LB_.Text = facebookuser.Id; Session["password"] = facebookuser.Id; Session["user_name"] = facebookuser.Name; Session["correo"] = facebookuser.Email; Session["band"] = true; //profileImage.ImageUrl = facebookuser.PictureUrl; B_Login.Enabled = false; UUser usua = new UUser(); LUser datas = new LUser(); String correo = Session["correo"].ToString(); String user_name = Session["user_name"].ToString(); DataTable dat = user.verificarRegistro(correo); if (int.Parse(dat.Rows.Count.ToString()) > 0) { emp.User_id = int.Parse(dat.Rows[0]["user_id"].ToString()); emp.User_name = dat.Rows[0]["user_name1"].ToString(); emp.Clave = dat.Rows[0]["clave"].ToString(); emp.Session = Session.SessionID; emp.A = Session["men"].ToString(); emp.B = Session["men1"].ToString(); emp.C = Session["men2"].ToString(); emp.D = Session["men3"].ToString(); usua = user.logear(emp); Session["nombre"] = (usua.User_name); Session["name"] = (usua.User_name); Session["user_id"] = (usua.UserId); Response.Redirect(usua.Url); } else { UEmpleados empl = new UEmpleados(); empl.Email = correo; empl.Puntos = 0; empl.Id_Rol = 4; empl.User_Name1 = user_name; empl.Clave = Session["password"].ToString(); empl.Rclave = Session["password"].ToString(); empl.Sesiones = 0; empl.Intentos = 0; empl.Session = "a"; dato = datas.insertUsuario(empl); DataTable datos = user.verificarRegistro(correo); emp.User_id = int.Parse(datos.Rows[0]["user_id"].ToString()); emp.User_name = datos.Rows[0]["user_name1"].ToString(); emp.Clave = datos.Rows[0]["clave"].ToString(); emp.Session = Session.SessionID; emp.A = Session["men"].ToString(); emp.B = Session["men1"].ToString(); emp.C = Session["men2"].ToString(); emp.D = Session["men3"].ToString(); usua = user.logear(emp); Session["nombre"] = (usua.User_name); Session["name"] = (usua.User_name); Session["user_id"] = (usua.UserId); Response.Redirect(usua.Url); } } catch { } } } }
protected void Page_Load(object sender, EventArgs e) { Int32 FORMULARIO = 17; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaMasteradmin(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaMasteradmin(FORMULARIO, DDL); } Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; //for (int i = 0; i < info.Rows.Count; i++) //{ // compIdioma.Add(info.Rows[i]["control"].ToString(), info.Rows[i]["valor"].ToString()); //} LB_menunave.Text = com.A; LB_cerrar.Text = com.B; LB_users.Text = com.C; LB_comen.Text = com.D; LB_menu.Text = com.E; LB_Mesas.Text = com.F; LB_ventas.Text = com.G; LB_Reportes.Text = com.H; LB_clientes.Text = com.I; LB_Emple.Text = com.J; LB_Coment.Text = com.K; LB_menu1.Text = com.L; LB_mesas1.Text = com.M; LB_pedidos.Text = com.N; LB_Rerservas.Text = com.O; LB_repo1.Text = com.P; LB_repo2.Text = com.Q; LB_repo3.Text = com.R; LB_Idioma.Text = com.S; UUser datos = new UUser(); LUser user = new LUser(); try { datos.User_name = Session["nombre"].ToString(); user.validarlogin(datos); } catch { datos = user.validarlogin(datos); Response.Redirect(datos.Url); } }
protected void Page_Load(object sender, EventArgs e) { Int32 FORMULARIO = 42; LIdioma idioma = new LIdioma(); UIdioma com = new UIdioma(); try { int DDL = int.Parse(Session["ddl"].ToString()); com = idioma.idiomaMasterprincipal1(FORMULARIO, DDL); } catch { int DDL = 1; com = idioma.idiomaMasterprincipal1(FORMULARIO, DDL); } //int DDL = int.Parse(Session["ddl"].ToString()); Hashtable compIdioma = new Hashtable(); Session["mensajes"] = compIdioma; //for (int i = 0; i < info.Rows.Count; i++) //{ // compIdioma.Add(info.Rows[i]["control"].ToString(), info.Rows[i]["valor"].ToString()); //} LB_inicio.Text = com.A; LB_contacto.Text = com.B; LB_Menu.Text = com.C; LB_Reservas.Text = com.D; //LB_login.Text = com.E; //LB_cerrar.Text = com.F; //LB_login.Text = com.G; LB_cerrar.Text = com.H; L_Comentario.Text = com.I; REV_tex.Text = com.J; BT_Enviar.Text = com.K; Session["men"] = com.L; Estado est = new Estado(); UUser datos = new UUser(); LUser user = new LUser(); //string usu = Session["nombre"].ToString(); //Session["user_id"].ToString(); try { datos.User_name = Session["nombre"].ToString(); est = user.estado(datos); BT_Cerrar.Visible = (est.Esstado); //BT_Login.Visible = (est.Estado1); L_Comentario.Visible = (est.Esstado); TB_Comentario.Visible = (est.Esstado); BT_Enviar.Visible = (est.Esstado); } catch { est = user.estado(datos); BT_Cerrar.Visible = (est.Esstado); L_Comentario.Visible = (est.Esstado); TB_Comentario.Visible = (est.Esstado); BT_Enviar.Visible = (est.Esstado); } }