/*
               File: GAM_AuthenticationTypeEntry
        Description: Authentication type
             Author: GeneXus .NET Framework Generator version 17_0_11-163677
       Generated on: 8/31/2022 2:0:40.97
       Program type: Callable routine
          Main DBMS: SQL Server
*/
gx.evt.autoSkip = false;
gx.define('gam_authenticationtypeentry', false, function () {
   this.ServerClass =  "gam_authenticationtypeentry" ;
   this.PackageName =  "GeneXus.Security.Backend" ;
   this.ServerFullClass =  "gam_authenticationtypeentry.aspx" ;
   this.setObjectType("web");
   this.setAjaxSecurity(false);
   this.setOnAjaxSessionTimeout("Warn");
   this.hasEnterEvent = false;
   this.skipOnEnter = false;
   this.autoRefresh = true;
   this.fullAjax = true;
   this.supportAjaxEvents =  true ;
   this.ajaxSecurityToken =  true ;
   this.SetStandaloneVars=function()
   {
      this.Gx_mode=gx.fn.getControlValue("vMODE") ;
      this.AV5Name=gx.fn.getControlValue("vNAME") ;
      this.AV7TypeIdDsp=gx.fn.getControlValue("vTYPEIDDSP") ;
      this.AV7TypeIdDsp=gx.fn.getControlValue("vTYPEIDDSP") ;
      this.AV5Name=gx.fn.getControlValue("vNAME") ;
      this.Gx_mode=gx.fn.getControlValue("vMODE") ;
   };
   this.s112_client=function()
   {
      /* 'WCENTRY' Routine */
      if ( gx.text.compare( this.AV6TypeId , "Oauth20" ) == 0 )
      {
         this.createWebComponent('Wcentrypanel','GAM_WCAuthenticationTypeEntryOauth20',[this.Gx_mode,this.AV5Name,this.AV6TypeId]);
      }
      else if ( gx.text.compare( this.AV6TypeId , "Saml20" ) == 0 )
      {
         this.createWebComponent('Wcentrypanel','GAM_WCAuthenticationTypeEntrySaml20',[this.Gx_mode,this.AV5Name,this.AV6TypeId]);
      }
      else
      {
         if ( ! (gx.text.compare('',this.AV6TypeId)==0) )
         {
            this.createWebComponent('Wcentrypanel','GAM_WCAuthenticationTypeEntryGeneral',[this.Gx_mode,this.AV5Name,this.AV6TypeId]);
         }
      }
   };
   this.e130f1_client=function()
   {
      /* Typeid_Click Routine */
      this.clearMessages();
      this.s112_client();
      this.refreshOutputs([{ctrl:'WCENTRYPANEL'}]);
      this.OnClientEventEnd();
      return gx.$.Deferred().resolve();
   };
   this.e120f1_client=function()
   {
      /* 'Delete' Routine */
      this.clearMessages();
      this.call("gam_authenticationtypeentry.aspx", ["DLT", this.AV5Name, this.AV7TypeIdDsp], null, ["Mode","Name","TypeIdDsp"]);
      this.refreshOutputs([{av:'AV7TypeIdDsp',fld:'vTYPEIDDSP',pic:''},{av:'AV5Name',fld:'vNAME',pic:''}]);
      this.OnClientEventEnd();
      return gx.$.Deferred().resolve();
   };
   this.e110f1_client=function()
   {
      /* 'Edit' Routine */
      this.clearMessages();
      this.call("gam_authenticationtypeentry.aspx", ["UPD", this.AV5Name, this.AV7TypeIdDsp], null, ["Mode","Name","TypeIdDsp"]);
      this.refreshOutputs([{av:'AV7TypeIdDsp',fld:'vTYPEIDDSP',pic:''},{av:'AV5Name',fld:'vNAME',pic:''}]);
      this.OnClientEventEnd();
      return gx.$.Deferred().resolve();
   };
   this.e160f2_client=function()
   {
      /* Enter Routine */
      return this.executeServerEvent("ENTER", true, null, false, false);
   };
   this.e170f2_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,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,48,49];
   this.GXLastCtrlId =49;
   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:"TABLE3",grid:0};
   GXValidFnc[7]={ id: 7, fld:"",grid:0};
   GXValidFnc[8]={ id: 8, fld:"",grid:0};
   GXValidFnc[9]={ id: 9, fld:"TEXTBLOCK1", format:0,grid:0, ctrltype: "textblock"};
   GXValidFnc[10]={ id: 10, fld:"",grid:0};
   GXValidFnc[11]={ id: 11, fld:"",grid:0};
   GXValidFnc[13]={ id: 13, fld:"",grid:0};
   GXValidFnc[14]={ id: 14, fld:"",grid:0};
   GXValidFnc[15]={ id: 15, fld:"ACTIONSCONTAINER",grid:0};
   GXValidFnc[16]={ id: 16, fld:"",grid:0};
   GXValidFnc[17]={ id: 17, fld:"",grid:0};
   GXValidFnc[18]={ id: 18, fld:"TABLEEDIT",grid:0};
   GXValidFnc[19]={ id: 19, fld:"",grid:0};
   GXValidFnc[20]={ id: 20, fld:"",grid:0};
   GXValidFnc[21]={ id: 21, fld:"IMAGE4",grid:0};
   GXValidFnc[22]={ id: 22, fld:"",grid:0};
   GXValidFnc[23]={ id: 23, fld:"TEXTBLOCK4", format:0,grid:0,evt:"e110f1_client", ctrltype: "textblock"};
   GXValidFnc[24]={ id: 24, fld:"",grid:0};
   GXValidFnc[25]={ id: 25, fld:"",grid:0};
   GXValidFnc[26]={ id: 26, fld:"TABLEDELETE",grid:0};
   GXValidFnc[27]={ id: 27, fld:"",grid:0};
   GXValidFnc[28]={ id: 28, fld:"",grid:0};
   GXValidFnc[29]={ id: 29, fld:"IMAGE2",grid:0};
   GXValidFnc[30]={ id: 30, fld:"",grid:0};
   GXValidFnc[31]={ id: 31, fld:"DELETE", format:0,grid:0,evt:"e120f1_client", ctrltype: "textblock"};
   GXValidFnc[32]={ id: 32, fld:"",grid:0};
   GXValidFnc[33]={ id: 33, fld:"TABLE2",grid:0};
   GXValidFnc[34]={ id: 34, fld:"",grid:0};
   GXValidFnc[35]={ id: 35, fld:"",grid:0};
   GXValidFnc[36]={ id: 36, fld:"TBLDATA",grid:0};
   GXValidFnc[37]={ id: 37, fld:"",grid:0};
   GXValidFnc[38]={ id: 38, fld:"",grid:0};
   GXValidFnc[39]={ id: 39, fld:"TABLE1",grid:0};
   GXValidFnc[40]={ id: 40, fld:"",grid:0};
   GXValidFnc[41]={ id: 41, fld:"",grid:0};
   GXValidFnc[42]={ id: 42, fld:"",grid:0};
   GXValidFnc[43]={ id: 43, fld:"",grid:0};
   GXValidFnc[44]={ id:44 ,lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vTYPEID",fmt:0,gxz:"ZV6TypeId",gxold:"OV6TypeId",gxvar:"AV6TypeId",ucs:[],op:[],ip:[],

						nacdep:[],ctrltype:"combo",v2v:function(Value){if(Value!==undefined)gx.O.AV6TypeId=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV6TypeId=Value},v2c:function(){gx.fn.setComboBoxValue("vTYPEID",gx.O.AV6TypeId)},c2v:function(){if(this.val()!==undefined)gx.O.AV6TypeId=this.val()},val:function(){return gx.fn.getControlValue("vTYPEID")},nac:gx.falseFn,evt:"e130f1_client"};
   GXValidFnc[45]={ id: 45, fld:"",grid:0};
   GXValidFnc[46]={ id: 46, fld:"",grid:0};
   GXValidFnc[48]={ id: 48, fld:"",grid:0};
   GXValidFnc[49]={ id: 49, fld:"",grid:0};
   this.AV6TypeId = "" ;
   this.ZV6TypeId = "" ;
   this.OV6TypeId = "" ;
   this.AV6TypeId = "" ;
   this.AV5Name = "" ;
   this.AV7TypeIdDsp = "" ;
   this.Gx_mode = "" ;
   this.Events = {"e160f2_client": ["ENTER", true] ,"e170f2_client": ["CANCEL", true] ,"e130f1_client": ["VTYPEID.CLICK", false] ,"e120f1_client": ["'DELETE'", false] ,"e110f1_client": ["'EDIT'", false]};
   this.EvtParms["REFRESH"] = [[{av:'Gx_mode',fld:'vMODE',pic:'@!',hsh:true}],[]];
   this.EvtParms["VTYPEID.CLICK"] = [[{ctrl:'vTYPEID'},{av:'AV6TypeId',fld:'vTYPEID',pic:''},{av:'Gx_mode',fld:'vMODE',pic:'@!',hsh:true},{av:'AV5Name',fld:'vNAME',pic:''}],[{ctrl:'WCENTRYPANEL'}]];
   this.EvtParms["'DELETE'"] = [[{av:'AV5Name',fld:'vNAME',pic:''},{av:'AV7TypeIdDsp',fld:'vTYPEIDDSP',pic:''}],[{av:'AV7TypeIdDsp',fld:'vTYPEIDDSP',pic:''},{av:'AV5Name',fld:'vNAME',pic:''}]];
   this.EvtParms["'EDIT'"] = [[{av:'AV5Name',fld:'vNAME',pic:''},{av:'AV7TypeIdDsp',fld:'vTYPEIDDSP',pic:''}],[{av:'AV7TypeIdDsp',fld:'vTYPEIDDSP',pic:''},{av:'AV5Name',fld:'vNAME',pic:''}]];
   this.EvtParms["ENTER"] = [[],[]];
   this.setVCMap("Gx_mode", "vMODE", 0, "char", 3, 0);
   this.setVCMap("AV5Name", "vNAME", 0, "char", 254, 0);
   this.setVCMap("AV7TypeIdDsp", "vTYPEIDDSP", 0, "char", 30, 0);
   this.setVCMap("AV7TypeIdDsp", "vTYPEIDDSP", 0, "char", 30, 0);
   this.setVCMap("AV5Name", "vNAME", 0, "char", 254, 0);
   this.setVCMap("Gx_mode", "vMODE", 0, "char", 3, 0);
   this.Initialize( );
   this.setComponent({id: "WCENTRYPANEL" ,GXClass: null , Prefix: "W0047" , lvl: 1 });
});
gx.wi( function() { gx.createParentObj(this.gam_authenticationtypeentry);});
