private void LlenarListaRuta() { try { var svRoute = new WSRoute.SwiftExpressWSRoute(); var result = ""; var dt = svRoute.GetRouteByPicking(ref result, Session["connectionString"].ToString()); if (string.IsNullOrEmpty(result)) { UiListaRuta.DataSource = dt; UiListaRuta.DataBind(); Session["UiListaRuta"] = dt; } else { var lookup = (DevExpress.Web.Internal.GridViewWrapper)UiListaRuta.GridView; lookup.JSProperties.Add("cpError", result); } } catch (Exception ex) { var lookup = (DevExpress.Web.Internal.GridViewWrapper)UiListaRuta.GridView; lookup.JSProperties.Add("cpError", ex.Message); } }
public void CargarOperador() { try { //var objUsers = new WSUsers.SwiftExpressWSUsers(); var objUsers = new WSRoute.SwiftExpressWSRoute(); var pResult = ""; //var ds = objUsers.GetUsers(Session["connectionString"].ToString(), ref pResult); var ds = objUsers.GetRoutesByUser(Session["connectionString"].ToString(), Session["LOGIN"].ToString(), ref pResult); if (pResult == "") { Session["OperadorGPS"] = ds; if (ds.Tables[0].Rows.Count > 0) { UiListaDeUsuarios.DataSource = ds; UiListaDeUsuarios.DataBind(); } } else { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('" + pResult + "');", true); } objUsers.Dispose(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
public void GetRoutes() { var objRoute = new WSRoute.SwiftExpressWSRoute(); var ds = objRoute.GetRoutes(Session["connectionString"].ToString()); Session["Rutas"] = ds; gluRutasScouting.DataSource = ds; gluRutasScouting.DataBind(); }
private void GetRoute(string pAuthId, string pSerie) { try { var servRoute = new WSRoute.SwiftExpressWSRoute(); var result = ""; Session["DtRoute"] = servRoute.GetRouteResolution(pAuthId, pSerie, Session["connectionString"].ToString(), ref result); if (!result.Equals("")) { gridResolution.JSProperties.Add("cpError", result); } } catch (Exception ex) { gridResolution.JSProperties.Add("cpError", ex.Message); } }