public override void initialize( ) { AV13tNowDate = (DateTime)(DateTime.MinValue); AV15tSessionID = ""; AV10Session = context.GetSession(); AV14tSDT_JWT = new SdtSDT_JWT(context); AV12tJWTTokenContent = ""; AV17JWTEncode = new SdtJWTEncode(context); AV20BCSYS_User = new SdtSYS_User(context); AV40jwtcookie = new GxHttpCookie(); AV37httpresponse = new GxHttpResponse(context); AV39BCXT_Config = new SdtXT_Config(context); AV22httpclient = new GxHttpClient(context); AV23tCookieContent = ""; AV24tResult = ""; AV25tSDT_MicroUserInfo = new SdtSDT_MicroUserInfo(context); AV26oTenantsCodes = new GxSimpleCollection <String>(); AV18tContent = ""; AV38cookie = new GxHttpCookie(); pr_datastore1 = new DataStoreProvider(context, new GeneXus.Programs.wwpbaseobjects.setwwpcontextincludecookie__datastore1(), new Object[][] { } ); pr_default = new DataStoreProvider(context, new GeneXus.Programs.wwpbaseobjects.setwwpcontextincludecookie__default(), new Object[][] { } ); /* GeneXus formulas. */ context.Gx_err = 0; }
public override void initialize( ) { AV9WWPContext = new GeneXus.Programs.wwpbaseobjects.SdtWWPContext(context); AV8tSDT_JWT = new SdtSDT_JWT(context); AV10tJWTTokenContent = ""; AV11JWTEncode = new SdtJWTEncode(context); AV16jwtcookie = new GxHttpCookie(); AV17httpresponse = new GxHttpResponse(context); /* GeneXus formulas. */ context.Gx_err = 0; }
public override void initialize( ) { AV11websession = context.GetSession(); AV10tCookieContent = ""; AV19JWTDecode = new SdtJWTDecode(context); AV20JWTRefreshCode = new SdtJWTRefreshCode(context); AV22jwtcookie = new GxHttpCookie(); AV23httpresponse = new GxHttpResponse(context); AV15BCXT_Config = new SdtXT_Config(context); AV16tTargetUrl = ""; AV17tCurPage = ""; AV18httprequest = new GxHttpRequest(context); /* GeneXus formulas. */ context.Gx_err = 0; }
protected void E126U2( ) { /* Start Routine */ AV23cookie = new GxHttpCookie(); AV23cookie.Name = "DAS_UserTInfo"; AV23cookie.CurrentValue = StringUtil.Trim(AV21tCurrentCode); AV23cookie.Path = "/"; AV23cookie.HttpOnly = false; AV24httpresponse.SetCookie(AV23cookie); AV23cookie = new GxHttpCookie(); AV23cookie.Name = "ASP.NET_SessionId"; AV23cookie.Path = "/"; AV23cookie.HttpOnly = false; AV24httpresponse.SetCookie(AV23cookie); GXt_dbconnection1 = new GxDataStore(); new zxt_choosedatabase(context).execute(ref GXt_dbconnection1); AV12BR_MedicalImaging.Load(AV13iBR_MedicalImagingID); }
public override void initialize( ) { wcpOAV21tCurrentCode = ""; gxfirstwebparm = ""; gxfirstwebparm_bkp = ""; sDynURL = ""; FormProcess = ""; bodyStyle = ""; GXKey = ""; AV7UploadedFiles = new GXBaseCollection <SdtFileUploadData>(context, "FileUploadData", "DataAnalysisPlatform"); AV12BR_MedicalImaging = new SdtBR_MedicalImaging(context); GX_FocusControl = ""; Form = new GXWebForm(); sPrefix = ""; ucFileupload1 = new GXUserControl(); sEvt = ""; EvtGridId = ""; EvtRowId = ""; sEvtType = ""; AV23cookie = new GxHttpCookie(); AV24httpresponse = new GxHttpResponse(context); GXt_dbconnection1 = new GxDataStore(); AV8FileUploadData = new SdtFileUploadData(context); AV18tBaseFile = new GxFile(context.GetPhysicalPath()); AV19tLargeHtml = ""; AV10tFileNewName = ""; AV22Context = new GeneXus.Programs.wwpbaseobjects.SdtWWPContext(context); BackMsgLst = new msglist(); LclMsgLst = new msglist(); pr_datastore1 = new DataStoreProvider(context, new GeneXus.Programs.br_sduploadimage__datastore1(), new Object[][] { } ); pr_default = new DataStoreProvider(context, new GeneXus.Programs.br_sduploadimage__default(), new Object[][] { } ); /* GeneXus formulas. */ context.Gx_err = 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(); }