/*
               File: GAM_OTPAuthentication
        Description: GAM_Auth OTP
             Author: GeneXus .NET Framework Generator version 17_0_11-163677
       Generated on: 8/31/2022 2:3:9.80
       Program type: Callable routine
          Main DBMS: SQL Server
*/
gx.evt.autoSkip = false;
gx.define('gam_otpauthentication', false, function () {
   this.ServerClass =  "gam_otpauthentication" ;
   this.PackageName =  "GeneXus.Security.Backend" ;
   this.ServerFullClass =  "gam_otpauthentication.aspx" ;
   this.setObjectType("web");
   this.setAjaxSecurity(false);
   this.setOnAjaxSessionTimeout("Warn");
   this.hasEnterEvent = true;
   this.skipOnEnter = false;
   this.autoRefresh = true;
   this.fullAjax = true;
   this.supportAjaxEvents =  true ;
   this.ajaxSecurityToken =  true ;
   this.SetStandaloneVars=function()
   {
      this.AV13AuthenticationTypeName=gx.fn.getControlValue("vAUTHENTICATIONTYPENAME") ;
      this.AV17UseTwoFactorAuthentication=gx.fn.getControlValue("vUSETWOFACTORAUTHENTICATION") ;
      this.AV7IDP_State=gx.fn.getControlValue("vIDP_STATE") ;
   };
   this.e12322_client=function()
   {
      /* Enter Routine */
      return this.executeServerEvent("ENTER", true, null, false, false);
   };
   this.e13322_client=function()
   {
      /* 'Login' Routine */
      return this.executeServerEvent("'LOGIN'", true, null, false, false);
   };
   this.e15322_client=function()
   {
      /* Cancel Routine */
      return this.executeServerEvent("CANCEL", true, null, false, false);
   };
   this.GXValidFnc = [];
   var GXValidFnc = this.GXValidFnc ;
   this.GXCtrlIds=[2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32];
   this.GXLastCtrlId =32;
   GXValidFnc[2]={ id: 2, fld:"",grid:0};
   GXValidFnc[3]={ id: 3, fld:"MAINTABLE",grid:0};
   GXValidFnc[4]={ id: 4, fld:"",grid:0};
   GXValidFnc[5]={ id: 5, fld:"",grid:0};
   GXValidFnc[6]={ id: 6, fld:"TABLE2",grid:0};
   GXValidFnc[7]={ id: 7, fld:"",grid:0};
   GXValidFnc[8]={ id: 8, fld:"",grid:0};
   GXValidFnc[10]={ id: 10, fld:"",grid:0};
   GXValidFnc[11]={ id: 11, fld:"",grid:0};
   GXValidFnc[12]={ id: 12, fld:"TABLE1",grid:0};
   GXValidFnc[13]={ id: 13, fld:"",grid:0};
   GXValidFnc[14]={ id: 14, fld:"",grid:0};
   GXValidFnc[15]={ id: 15, fld:"TBTITLE", format:0,grid:0, ctrltype: "textblock"};
   GXValidFnc[16]={ id: 16, fld:"",grid:0};
   GXValidFnc[17]={ id: 17, fld:"",grid:0};
   GXValidFnc[18]={ id: 18, fld:"",grid:0};
   GXValidFnc[19]={ id:19 ,lvl:0,type:"svchar",len:100,dec:60,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vUSERNAME",fmt:0,gxz:"ZV11UserName",gxold:"OV11UserName",gxvar:"AV11UserName",ucs:[],op:[],ip:[],

						nacdep:[],ctrltype:"edit",v2v:function(Value){if(Value!==undefined)gx.O.AV11UserName=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV11UserName=Value},v2c:function(){gx.fn.setControlValue("vUSERNAME",gx.O.AV11UserName,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV11UserName=this.val()},val:function(){return gx.fn.getControlValue("vUSERNAME")},nac:gx.falseFn};
   this.declareDomainHdlr( 19 , function() {
   });
   GXValidFnc[20]={ id: 20, fld:"",grid:0};
   GXValidFnc[21]={ id: 21, fld:"",grid:0};
   GXValidFnc[22]={ id: 22, fld:"",grid:0};
   GXValidFnc[23]={ id:23 ,lvl:0,type:"char",len:50,dec:0,sign:false,isPwd:true,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vUSERPASSWORD",fmt:0,gxz:"ZV12UserPassword",gxold:"OV12UserPassword",gxvar:"AV12UserPassword",ucs:[],op:[],ip:[],

						nacdep:[],ctrltype:"edit",v2v:function(Value){if(Value!==undefined)gx.O.AV12UserPassword=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV12UserPassword=Value},v2c:function(){gx.fn.setControlValue("vUSERPASSWORD",gx.O.AV12UserPassword,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV12UserPassword=this.val()},val:function(){return gx.fn.getControlValue("vUSERPASSWORD")},nac:gx.falseFn};
   this.declareDomainHdlr( 23 , function() {
   });
   GXValidFnc[24]={ id: 24, fld:"",grid:0};
   GXValidFnc[25]={ id: 25, fld:"",grid:0};
   GXValidFnc[26]={ id: 26, fld:"ENTER",grid:0,evt:"e12322_client",std:"ENTER"};
   GXValidFnc[27]={ id: 27, fld:"",grid:0};
   GXValidFnc[28]={ id: 28, fld:"",grid:0};
   GXValidFnc[29]={ id: 29, fld:"TABLE3",grid:0};
   GXValidFnc[30]={ id: 30, fld:"",grid:0};
   GXValidFnc[31]={ id: 31, fld:"",grid:0};
   GXValidFnc[32]={ id: 32, fld:"TEXTBLOCK2", format:0,grid:0,evt:"e13322_client", ctrltype: "textblock"};
   this.AV11UserName = "" ;
   this.ZV11UserName = "" ;
   this.OV11UserName = "" ;
   this.AV12UserPassword = "" ;
   this.ZV12UserPassword = "" ;
   this.OV12UserPassword = "" ;
   this.AV11UserName = "" ;
   this.AV12UserPassword = "" ;
   this.AV7IDP_State = "" ;
   this.AV13AuthenticationTypeName = "" ;
   this.AV17UseTwoFactorAuthentication = false ;
   this.Events = {"e12322_client": ["ENTER", true] ,"e13322_client": ["'LOGIN'", true] ,"e15322_client": ["CANCEL", true]};
   this.EvtParms["REFRESH"] = [[{av:'AV13AuthenticationTypeName',fld:'vAUTHENTICATIONTYPENAME',pic:'',hsh:true},{av:'AV17UseTwoFactorAuthentication',fld:'vUSETWOFACTORAUTHENTICATION',pic:'',hsh:true},{av:'AV11UserName',fld:'vUSERNAME',pic:''}],[]];
   this.EvtParms["ENTER"] = [[{av:'AV13AuthenticationTypeName',fld:'vAUTHENTICATIONTYPENAME',pic:'',hsh:true},{av:'AV17UseTwoFactorAuthentication',fld:'vUSETWOFACTORAUTHENTICATION',pic:'',hsh:true},{av:'AV7IDP_State',fld:'vIDP_STATE',pic:''},{av:'AV11UserName',fld:'vUSERNAME',pic:''},{av:'AV12UserPassword',fld:'vUSERPASSWORD',pic:''}],[{av:'AV7IDP_State',fld:'vIDP_STATE',pic:''},{av:'AV12UserPassword',fld:'vUSERPASSWORD',pic:''}]];
   this.EvtParms["'LOGIN'"] = [[{av:'AV7IDP_State',fld:'vIDP_STATE',pic:''}],[]];
   this.EnterCtrl = ["ENTER"];
   this.setVCMap("AV13AuthenticationTypeName", "vAUTHENTICATIONTYPENAME", 0, "char", 60, 0);
   this.setVCMap("AV17UseTwoFactorAuthentication", "vUSETWOFACTORAUTHENTICATION", 0, "boolean", 1, 0);
   this.setVCMap("AV7IDP_State", "vIDP_STATE", 0, "char", 60, 0);
   this.Initialize( );
});
gx.wi( function() { gx.createParentObj(this.gam_otpauthentication);});
