/// <summary> /// Page_Load(object sender, EventArgs e) /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { if (Session["connectionString"] == null || Session["USER"] == null) { ScriptManager.RegisterStartupScript(this, GetType(), "Logoff", "LogOff();", true); return; } if (Session["UiVistaClientesSinGps"] != null) { UiVistaClientesSinGps.DataSource = Session["UiVistaClientesSinGps"]; UiVistaClientesSinGps.DataBind(); } }
/// <summary> /// UiVistaClientesSinGps_OnCustomCallback /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void UiVistaClientesSinGps_OnCustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e) { try { switch (e.Parameters.Split('|')[0]) { case "ExpandirGrupoVistaGeneral": UiVistaClientesSinGps.ExpandAll(); break; case "ContraerGrupoVistaGeneral": UiVistaClientesSinGps.CollapseAll(); break; case "ObtenerClientesSinPuntoGps": UsuarioDeseaObtenerClientesSinGps?.Invoke(sender, null); break; case "GuardarCambioDeGpsDeCliente": UsuarioDeseaCrearModificacionDeGpsDeCliente?.Invoke(sender, new ClienteArgumento { Data = new Cliente { CODE_CUSTOMER = e.Parameters.Split('|')[1] , GPS = e.Parameters.Split('|')[2] , LAST_UPDATE_BY = Session["LOGIN"].ToString() } }); break; case "ObtenerPuntoGpsPorDefecto": TerminoProceso("cpPuntoGpsPorDefecto", ParametroDePuntoGpsPorDefecto.VALUE, sender); break; } } catch (Exception exception) { EstablecerError(exception.Message, sender); } }