Ejemplo n.º 1
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     AV10tAllCookieMess    = AV8httprequest.GetHeader("Cookie");
     AV11tCookieCollection = GxRegex.Split(AV10tAllCookieMess, ";");
     AV12tCookieValue      = "";
     AV16I = 1;
     while (AV16I <= AV11tCookieCollection.Count)
     {
         AV13tSingleCookieName = StringUtil.Substring(AV11tCookieCollection.GetString(AV16I), 1, StringUtil.StringSearch(AV11tCookieCollection.GetString(AV16I), "=", 1) - 1);
         if (StringUtil.StrCmp(AV9iTargetName, StringUtil.Trim(AV13tSingleCookieName)) == 0)
         {
             AV12tCookieValue = StringUtil.Substring(AV11tCookieCollection.GetString(AV16I), StringUtil.StringSearch(AV11tCookieCollection.GetString(AV16I), "=", 1) + 1, StringUtil.Len(AV11tCookieCollection.GetString(AV16I)) - StringUtil.StringSearch(AV11tCookieCollection.GetString(AV16I), "=", 1));
             if (true)
             {
                 break;
             }
         }
         AV16I = (short)(AV16I + 1);
     }
     if (String.IsNullOrEmpty(StringUtil.RTrim(StringUtil.Trim(AV12tCookieValue))))
     {
         AV12tCookieValue = "CookieFindError";
     }
     this.cleanup();
 }
Ejemplo n.º 2
0
 protected void E110D2( )
 {
     /* Start Routine */
     AV12SplittedGeolocation = GxRegex.Split(AV7Geolocation, ",");
     if (AV12SplittedGeolocation.Count == 2)
     {
         GxMapPoint.gxTpr_Pointlat  = StringUtil.Trim(AV12SplittedGeolocation.GetString(1));
         GxMapPoint.gxTpr_Pointlong = StringUtil.Trim(AV12SplittedGeolocation.GetString(2));
         GxMapData.gxTpr_Points.Add(GxMapPoint, 0);
         Googlemapcontrol1_Latitude = StringUtil.Trim(AV12SplittedGeolocation.GetString(1));
         ucGooglemapcontrol1.SendProperty(context, "", false, Googlemapcontrol1_Internalname, "Latitude", Googlemapcontrol1_Latitude);
         Googlemapcontrol1_Longitude = StringUtil.Trim(AV12SplittedGeolocation.GetString(2));
         ucGooglemapcontrol1.SendProperty(context, "", false, Googlemapcontrol1_Internalname, "Longitude", Googlemapcontrol1_Longitude);
     }
 }
Ejemplo n.º 3
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     AV10tAllCookieMess    = AV8httprequest.GetHeader("Cookie");
     AV11tCookieCollection = GxRegex.Split(AV10tAllCookieMess, ";");
     AV12tNewCookieCollection.Clear();
     AV18I = 1;
     while (AV18I <= AV11tCookieCollection.Count)
     {
         AV15tSingleCookieName = StringUtil.Substring(AV11tCookieCollection.GetString(AV18I), 1, StringUtil.StringSearch(AV11tCookieCollection.GetString(AV18I), "=", 1) - 1);
         AV12tNewCookieCollection.Add(AV15tSingleCookieName, 0);
         AV18I = (short)(AV18I + 1);
     }
     AV14oMessage = AV12tNewCookieCollection.ToJSonString(false);
     this.cleanup();
 }
Ejemplo n.º 4
0
 protected void E110B2( )
 {
     /* Start Routine */
     AV12SplittedGeolocation = GxRegex.Split(AV7Geolocation, ",");
     if (AV12SplittedGeolocation.Count == 2)
     {
         GxMapPoint.gxTpr_Pointlat  = StringUtil.Trim(AV12SplittedGeolocation.GetString(1));
         GxMapPoint.gxTpr_Pointlong = StringUtil.Trim(AV12SplittedGeolocation.GetString(2));
         GxMapData.gxTpr_Points.Add(GxMapPoint, 0);
         Googlemapcontrol1_Latitude  = StringUtil.Trim(AV12SplittedGeolocation.GetString(1));
         Googlemapcontrol1_Longitude = StringUtil.Trim(AV12SplittedGeolocation.GetString(2));
     }
     GXt_boolean1 = AV14IsAuthorized;
     new GeneXus.Programs.wwpbaseobjects.secisauthbyfunctionalitykey(context).execute("PromptGeolocation", out GXt_boolean1);
     AV14IsAuthorized = GXt_boolean1;
     if (!AV14IsAuthorized)
     {
         CallWebObject(formatLink("wwpbaseobjects.notauthorized.aspx") + "?" + UrlEncode(StringUtil.RTrim(AV18Pgmname)));
         context.wjLocDisableFrm = 1;
     }
 }