예제 #1
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     AV9Session.Set("wwpcontext", AV8Context.ToXml(false, true, "WWPContext", "FMX"));
     this.cleanup();
 }
예제 #2
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     AV8Context.FromXml(AV9Session.Get("context"), "");
     this.cleanup();
 }
예제 #3
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     AV9Session.Set("context", AV8Context.ToXml(false, true, "Context", "CalcularPeajes"));
     this.cleanup();
 }
예제 #4
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     AV10tCookieContent = context.GetCookie("GX_Cookie");
     AV10tCookieContent = Decrypt64(AV10tCookieContent, "A803C9281F6C819705ADF9E4208BE89C");
     AV8Context.FromXml(AV10tCookieContent, null, "WWPContext", "DataAnalysisPlatform");
     this.cleanup();
 }
예제 #5
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     AV13tNowDate                 = DateTimeUtil.ServerNow(context, pr_default);
     AV15tSessionID               = StringUtil.Trim(AV10Session.Id);
     AV14tSDT_JWT                 = new SdtSDT_JWT(context);
     AV14tSDT_JWT.gxTpr_Name      = AV8Context.gxTpr_Username;
     AV14tSDT_JWT.gxTpr_Userid    = StringUtil.Trim(AV19iUserID.ToString());
     AV14tSDT_JWT.gxTpr_Sessionid = AV15tSessionID;
     AV14tSDT_JWT.gxTpr_Ip        = AV11tClientAddress;
     AV14tSDT_JWT.gxTpr_Nbf       = "123421423";
     AV14tSDT_JWT.gxTpr_Exp       = "1740576564857";
     AV14tSDT_JWT.gxTpr_Iss       = "das";
     AV14tSDT_JWT.gxTpr_Aud       = "das";
     AV14tSDT_JWT.gxTpr_Iat       = "124124214";
     AV12tJWTTokenContent         = AV17JWTEncode.encode(AV14tSDT_JWT.ToJSonString(false));
     AV20BCSYS_User.Load(AV19iUserID);
     AV20BCSYS_User.gxTpr_Loginip   = StringUtil.Trim(AV11tClientAddress);
     AV20BCSYS_User.gxTpr_Logintime = AV13tNowDate;
     AV20BCSYS_User.Save();
     context.CommitDataStores("wwpbaseobjects.setwwpcontextincludecookie", pr_default);
     AV40jwtcookie.Name         = "DAS_LoginUser";
     AV40jwtcookie.CurrentValue = AV12tJWTTokenContent;
     AV40jwtcookie.Path         = "/";
     AV40jwtcookie.HttpOnly     = false;
     AV37httpresponse.SetCookie(AV40jwtcookie);
     AV39BCXT_Config.Load(6);
     AV22httpclient.Host = StringUtil.Trim(AV39BCXT_Config.gxTpr_Xt_configvalue3);
     AV22httpclient.AddHeader("Connection", "keep-alive");
     AV22httpclient.AddHeader("Content-Type", "application/json; charset=utf-8");
     AV23tCookieContent = "DAS_LoginUser="******";";
     AV22httpclient.AddHeader("Cookie", AV23tCookieContent);
     AV22httpclient.Execute("Get", "/api/User/getpermission?userid=" + StringUtil.Trim(AV19iUserID.ToString()));
     AV24tResult = StringUtil.Trim(AV22httpclient.ToString());
     AV25tSDT_MicroUserInfo.FromJSonString(AV24tResult, null);
     AV26oTenantsCodes.Clear();
     AV43I = 1;
     while (AV43I <= AV25tSDT_MicroUserInfo.gxTpr_Tenants.Count)
     {
         AV26oTenantsCodes.Add(StringUtil.Trim(((SdtSDT_MicroUserInfo_Tenants)AV25tSDT_MicroUserInfo.gxTpr_Tenants.Item(AV43I)).gxTpr_Code), 0);
         AV43I = (short)(AV43I + 1);
     }
     AV27oCodes = AV26oTenantsCodes.ToJSonString(false);
     AV8Context.gxTpr_Currenttnum = (short)(AV26oTenantsCodes.Count);
     AV8Context.gxTpr_Usertype    = AV25tSDT_MicroUserInfo.gxTpr_Usertype;
     AV8Context.gxTpr_Clientip    = AV11tClientAddress;
     AV18tContent            = Encrypt64(AV8Context.ToXml(false, true, "WWPContext", "DataAnalysisPlatform"), "A803C9281F6C819705ADF9E4208BE89C");
     AV38cookie.Name         = "GX_Cookie";
     AV38cookie.CurrentValue = AV18tContent;
     AV38cookie.Path         = "/";
     AV38cookie.HttpOnly     = false;
     AV37httpresponse.SetCookie(AV38cookie);
     if (AV26oTenantsCodes.Count == 1)
     {
         AV38cookie              = new GxHttpCookie();
         AV38cookie.Name         = "DAS_UserTInfo";
         AV38cookie.CurrentValue = StringUtil.Trim(((String)AV26oTenantsCodes.Item(1)));
         AV38cookie.Path         = "/";
         AV38cookie.HttpOnly     = false;
         AV37httpresponse.SetCookie(AV38cookie);
         new zutil_recordlog(context).execute("", "", "Login", 2);
     }
     this.cleanup();
 }