/*
               File: GAM_EventSubscriptionEntry
        Description: Event Subscription
             Author: GeneXus .NET Framework Generator version 17_0_11-163677
       Generated on: 8/31/2022 2:2:55.87
       Program type: Callable routine
          Main DBMS: SQL Server
*/
gx.evt.autoSkip = false;
gx.define('gam_eventsubscriptionentry', false, function () {
   this.ServerClass =  "gam_eventsubscriptionentry" ;
   this.PackageName =  "GeneXus.Security.Backend" ;
   this.ServerFullClass =  "gam_eventsubscriptionentry.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.AV14Id=gx.fn.getControlValue("vID") ;
      this.Gx_mode=gx.fn.getControlValue("vMODE") ;
      this.AV14Id=gx.fn.getControlValue("vID") ;
   };
   this.Validv_Status=function()
   {
      return this.validCliEvt("Validv_Status", 0, function () {
      try {
         var gxballoon = gx.util.balloon.getNew("vSTATUS");
         this.AnyError  = 0;
         if ( ! ( gx.text.compare( this.AV17Status , "u" ) == 0 || gx.text.compare( this.AV17Status , "s" ) == 0 ) )
         {
            try {
               gxballoon.setError(gx.text.format( gx.getMessage( "GXSPC_OutOfRange"), gx.getMessage( "Status"), "", "", "", "", "", "", "", ""));
               this.AnyError = gx.num.trunc( 1 ,0) ;
            }
            catch(e){}
         }

      }
      catch(e){}
      try {
          if (gxballoon == null) return true; return gxballoon.show();
      }
      catch(e){}
      return true ;
      });
   }
   this.Validv_Event=function()
   {
      return this.validCliEvt("Validv_Event", 0, function () {
      try {
         var gxballoon = gx.util.balloon.getNew("vEVENT");
         this.AnyError  = 0;
         if ( ! ( gx.text.compare( this.AV11Event , "user-update" ) == 0 || gx.text.compare( this.AV11Event , "user-insert" ) == 0 || gx.text.compare( this.AV11Event , "user-delete" ) == 0 || gx.text.compare( this.AV11Event , "user-updateroles" ) == 0 || gx.text.compare( this.AV11Event , "user-getcustominfo" ) == 0 || gx.text.compare( this.AV11Event , "user-savecustominfo" ) == 0 || gx.text.compare( this.AV11Event , "role-insert" ) == 0 || gx.text.compare( this.AV11Event , "role-update" ) == 0 || gx.text.compare( this.AV11Event , "role-delete" ) == 0 || gx.text.compare( this.AV11Event , "repository-login" ) == 0 || gx.text.compare( this.AV11Event , "repository-loginfailed" ) == 0 || gx.text.compare( this.AV11Event , "repository-logout" ) == 0 || gx.text.compare( this.AV11Event , "externalauthentication-response" ) == 0 || gx.text.compare( this.AV11Event , "application-checkprmfail" ) == 0 || gx.text.compare( this.AV11Event , "user-otp-validateuser" ) == 0 || gx.text.compare( this.AV11Event , "user-otp-generatecode" ) == 0 || gx.text.compare( this.AV11Event , "user-otp-sendcode" ) == 0 || gx.text.compare( this.AV11Event , "user-otp-validatecode" ) == 0 ) )
         {
            try {
               gxballoon.setError(gx.text.format( gx.getMessage( "GXSPC_OutOfRange"), gx.getMessage( "Event"), "", "", "", "", "", "", "", ""));
               this.AnyError = gx.num.trunc( 1 ,0) ;
            }
            catch(e){}
         }

      }
      catch(e){}
      try {
          if (gxballoon == null) return true; return gxballoon.show();
      }
      catch(e){}
      return true ;
      });
   }
   this.e132m1_client=function()
   {
      /* 'DeleteSusbcription' Routine */
      this.clearMessages();
      this.call("gam_eventsubscriptionentry.aspx", ["DLT", this.AV14Id], null, ["Mode","Id"]);
      this.refreshOutputs([{av:'AV14Id',fld:'vID',pic:''}]);
      this.OnClientEventEnd();
      return gx.$.Deferred().resolve();
   };
   this.e112m1_client=function()
   {
      /* 'ShowHide' Routine */
      this.clearMessages();
      if ( gx.text.compare( gx.fn.getCtrlProperty("ACTIONSCONTAINER","Class") , "ActionsContainer" ) == 0 )
      {
         gx.fn.setCtrlProperty("ACTIONSCONTAINER","Class", "ActionsContainerVisible" );
      }
      else
      {
         gx.fn.setCtrlProperty("ACTIONSCONTAINER","Class", "ActionsContainer" );
      }
      this.refreshOutputs([{av:'gx.fn.getCtrlProperty("ACTIONSCONTAINER","Class")',ctrl:'ACTIONSCONTAINER',prop:'Class'}]);
      this.OnClientEventEnd();
      return gx.$.Deferred().resolve();
   };
   this.e122m1_client=function()
   {
      /* 'Edit' Routine */
      this.clearMessages();
      this.call("gam_eventsubscriptionentry.aspx", ["UPD", this.AV14Id], null, ["Mode","Id"]);
      this.refreshOutputs([{av:'AV14Id',fld:'vID',pic:''}]);
      this.OnClientEventEnd();
      return gx.$.Deferred().resolve();
   };
   this.e152m2_client=function()
   {
      /* Enter Routine */
      return this.executeServerEvent("ENTER", true, null, false, false);
   };
   this.e162m2_client=function()
   {
      /* 'SusbcribeUnsubscribe' Routine */
      return this.executeServerEvent("'SUSBCRIBEUNSUBSCRIBE'", true, null, false, false);
   };
   this.e182m1_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,12,13,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,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80];
   this.GXLastCtrlId =80;
   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[9]={ id: 9, fld:"TEXTBLOCK1", format:0,grid:0, ctrltype: "textblock"};
   GXValidFnc[10]={ id: 10, fld:"",grid:0};
   GXValidFnc[11]={ id: 11, fld:"SHOWHIDE",grid:0,evt:"e112m1_client"};
   GXValidFnc[12]={ id: 12, fld:"",grid:0};
   GXValidFnc[13]={ id: 13, fld:"",grid:0};
   GXValidFnc[15]={ id: 15, fld:"",grid:0};
   GXValidFnc[16]={ id: 16, fld:"",grid:0};
   GXValidFnc[17]={ id: 17, fld:"ACTIONSCONTAINER",grid:0};
   GXValidFnc[18]={ id: 18, fld:"",grid:0};
   GXValidFnc[19]={ id: 19, fld:"",grid:0};
   GXValidFnc[20]={ id: 20, fld:"TABLEEDIT",grid:0};
   GXValidFnc[21]={ id: 21, fld:"",grid:0};
   GXValidFnc[22]={ id: 22, fld:"",grid:0};
   GXValidFnc[23]={ id: 23, fld:"IMAGE3",grid:0};
   GXValidFnc[24]={ id: 24, fld:"",grid:0};
   GXValidFnc[25]={ id: 25, fld:"TEXTBLOCK2", format:0,grid:0,evt:"e122m1_client", ctrltype: "textblock"};
   GXValidFnc[26]={ id: 26, fld:"",grid:0};
   GXValidFnc[27]={ id: 27, fld:"",grid:0};
   GXValidFnc[28]={ id: 28, fld:"TABLE5",grid:0};
   GXValidFnc[29]={ id: 29, fld:"",grid:0};
   GXValidFnc[30]={ id: 30, fld:"",grid:0};
   GXValidFnc[31]={ id: 31, fld:"IMAGE2",grid:0};
   GXValidFnc[32]={ id: 32, fld:"",grid:0};
   GXValidFnc[33]={ id: 33, fld:"DELETE", format:0,grid:0,evt:"e132m1_client", ctrltype: "textblock"};
   GXValidFnc[34]={ id: 34, fld:"",grid:0};
   GXValidFnc[35]={ id: 35, fld:"",grid:0};
   GXValidFnc[36]={ id: 36, fld:"TABLE3",grid:0};
   GXValidFnc[37]={ id: 37, fld:"",grid:0};
   GXValidFnc[38]={ id: 38, fld:"",grid:0};
   GXValidFnc[39]={ id: 39, fld:"SUBSCRIBEUNSUBSCRIBEIMAGE",grid:0};
   GXValidFnc[40]={ id: 40, fld:"",grid:0};
   GXValidFnc[41]={ id: 41, fld:"SUBSCRIBEUNSUBSCRIBE", format:0,grid:0,evt:"e162m2_client", ctrltype: "textblock"};
   GXValidFnc[42]={ id: 42, fld:"",grid:0};
   GXValidFnc[43]={ id: 43, fld:"TABLE1",grid:0};
   GXValidFnc[44]={ id: 44, fld:"",grid:0};
   GXValidFnc[45]={ id: 45, fld:"",grid:0};
   GXValidFnc[46]={ id: 46, fld:"",grid:0};
   GXValidFnc[47]={ id: 47, fld:"",grid:0};
   GXValidFnc[48]={ id:48 ,lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vDESCRIPTION",fmt:0,gxz:"ZV8Description",gxold:"OV8Description",gxvar:"AV8Description",ucs:[],op:[],ip:[],

						nacdep:[],ctrltype:"edit",v2v:function(Value){if(Value!==undefined)gx.O.AV8Description=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV8Description=Value},v2c:function(){gx.fn.setControlValue("vDESCRIPTION",gx.O.AV8Description,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV8Description=this.val()},val:function(){return gx.fn.getControlValue("vDESCRIPTION")},nac:gx.falseFn};
   this.declareDomainHdlr( 48 , function() {
   });
   GXValidFnc[49]={ id: 49, fld:"",grid:0};
   GXValidFnc[50]={ id: 50, fld:"",grid:0};
   GXValidFnc[51]={ id: 51, fld:"",grid:0};
   GXValidFnc[52]={ id: 52, fld:"",grid:0};
   GXValidFnc[53]={ id:53 ,lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Status,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vSTATUS",fmt:0,gxz:"ZV17Status",gxold:"OV17Status",gxvar:"AV17Status",ucs:[],op:[53],ip:[53],

						nacdep:[],ctrltype:"combo",v2v:function(Value){if(Value!==undefined)gx.O.AV17Status=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV17Status=Value},v2c:function(){gx.fn.setComboBoxValue("vSTATUS",gx.O.AV17Status);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV17Status=this.val()},val:function(){return gx.fn.getControlValue("vSTATUS")},nac:gx.falseFn};
   this.declareDomainHdlr( 53 , function() {
   });
   GXValidFnc[54]={ id: 54, fld:"",grid:0};
   GXValidFnc[55]={ id: 55, fld:"",grid:0};
   GXValidFnc[56]={ id: 56, fld:"",grid:0};
   GXValidFnc[57]={ id: 57, fld:"",grid:0};
   GXValidFnc[58]={ id:58 ,lvl:0,type:"char",len:60,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Event,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vEVENT",fmt:0,gxz:"ZV11Event",gxold:"OV11Event",gxvar:"AV11Event",ucs:[],op:[58],ip:[58],

						nacdep:[],ctrltype:"combo",v2v:function(Value){if(Value!==undefined)gx.O.AV11Event=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV11Event=Value},v2c:function(){gx.fn.setComboBoxValue("vEVENT",gx.O.AV11Event);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV11Event=this.val()},val:function(){return gx.fn.getControlValue("vEVENT")},nac:gx.falseFn};
   this.declareDomainHdlr( 58 , function() {
   });
   GXValidFnc[59]={ id: 59, fld:"",grid:0};
   GXValidFnc[60]={ id: 60, fld:"",grid:0};
   GXValidFnc[61]={ id: 61, fld:"",grid:0};
   GXValidFnc[62]={ id: 62, fld:"",grid:0};
   GXValidFnc[63]={ id:63 ,lvl:0,type:"char",len:254,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vFILENAME",fmt:0,gxz:"ZV13FileName",gxold:"OV13FileName",gxvar:"AV13FileName",ucs:[],op:[],ip:[],

						nacdep:[],ctrltype:"edit",v2v:function(Value){if(Value!==undefined)gx.O.AV13FileName=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV13FileName=Value},v2c:function(){gx.fn.setControlValue("vFILENAME",gx.O.AV13FileName,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV13FileName=this.val()},val:function(){return gx.fn.getControlValue("vFILENAME")},nac:gx.falseFn};
   this.declareDomainHdlr( 63 , function() {
   });
   GXValidFnc[64]={ id: 64, fld:"",grid:0};
   GXValidFnc[65]={ id: 65, fld:"",grid:0};
   GXValidFnc[66]={ id: 66, fld:"",grid:0};
   GXValidFnc[67]={ id: 67, fld:"",grid:0};
   GXValidFnc[68]={ id:68 ,lvl:0,type:"char",len:60,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vCLASSNAME",fmt:0,gxz:"ZV7ClassName",gxold:"OV7ClassName",gxvar:"AV7ClassName",ucs:[],op:[],ip:[],

						nacdep:[],ctrltype:"edit",v2v:function(Value){if(Value!==undefined)gx.O.AV7ClassName=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV7ClassName=Value},v2c:function(){gx.fn.setControlValue("vCLASSNAME",gx.O.AV7ClassName,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV7ClassName=this.val()},val:function(){return gx.fn.getControlValue("vCLASSNAME")},nac:gx.falseFn};
   this.declareDomainHdlr( 68 , function() {
   });
   GXValidFnc[69]={ id: 69, fld:"",grid:0};
   GXValidFnc[70]={ id: 70, fld:"",grid:0};
   GXValidFnc[71]={ id: 71, fld:"",grid:0};
   GXValidFnc[72]={ id: 72, fld:"",grid:0};
   GXValidFnc[73]={ id:73 ,lvl:0,type:"char",len:60,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vMETHODNAME",fmt:0,gxz:"ZV16MethodName",gxold:"OV16MethodName",gxvar:"AV16MethodName",ucs:[],op:[],ip:[],

						nacdep:[],ctrltype:"edit",v2v:function(Value){if(Value!==undefined)gx.O.AV16MethodName=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV16MethodName=Value},v2c:function(){gx.fn.setControlValue("vMETHODNAME",gx.O.AV16MethodName,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV16MethodName=this.val()},val:function(){return gx.fn.getControlValue("vMETHODNAME")},nac:gx.falseFn};
   this.declareDomainHdlr( 73 , function() {
   });
   GXValidFnc[74]={ id: 74, fld:"",grid:0};
   GXValidFnc[75]={ id: 75, fld:"",grid:0};
   GXValidFnc[76]={ id: 76, fld:"",grid:0};
   GXValidFnc[77]={ id: 77, fld:"",grid:0};
   GXValidFnc[78]={ id: 78, fld:"BTNCANCEL",grid:0,evt:"e182m1_client"};
   GXValidFnc[79]={ id: 79, fld:"",grid:0};
   GXValidFnc[80]={ id: 80, fld:"BTNCONFIRM",grid:0,evt:"e152m2_client",std:"ENTER"};
   this.AV8Description = "" ;
   this.ZV8Description = "" ;
   this.OV8Description = "" ;
   this.AV17Status = "" ;
   this.ZV17Status = "" ;
   this.OV17Status = "" ;
   this.AV11Event = "" ;
   this.ZV11Event = "" ;
   this.OV11Event = "" ;
   this.AV13FileName = "" ;
   this.ZV13FileName = "" ;
   this.OV13FileName = "" ;
   this.AV7ClassName = "" ;
   this.ZV7ClassName = "" ;
   this.OV7ClassName = "" ;
   this.AV16MethodName = "" ;
   this.ZV16MethodName = "" ;
   this.OV16MethodName = "" ;
   this.AV8Description = "" ;
   this.AV17Status = "" ;
   this.AV11Event = "" ;
   this.AV13FileName = "" ;
   this.AV7ClassName = "" ;
   this.AV16MethodName = "" ;
   this.AV14Id = "" ;
   this.Gx_mode = "" ;
   this.Events = {"e152m2_client": ["ENTER", true] ,"e162m2_client": ["'SUSBCRIBEUNSUBSCRIBE'", true] ,"e182m1_client": ["CANCEL", true] ,"e132m1_client": ["'DELETESUSBCRIPTION'", false] ,"e112m1_client": ["'SHOWHIDE'", false] ,"e122m1_client": ["'EDIT'", false]};
   this.EvtParms["REFRESH"] = [[{av:'Gx_mode',fld:'vMODE',pic:'@!',hsh:true}],[]];
   this.EvtParms["ENTER"] = [[{av:'AV14Id',fld:'vID',pic:''},{av:'Gx_mode',fld:'vMODE',pic:'@!',hsh:true},{av:'AV8Description',fld:'vDESCRIPTION',pic:''},{ctrl:'vEVENT'},{av:'AV11Event',fld:'vEVENT',pic:''},{av:'AV13FileName',fld:'vFILENAME',pic:''},{av:'AV7ClassName',fld:'vCLASSNAME',pic:''},{av:'AV16MethodName',fld:'vMETHODNAME',pic:''}],[]];
   this.EvtParms["'DELETESUSBCRIPTION'"] = [[{av:'AV14Id',fld:'vID',pic:''}],[{av:'AV14Id',fld:'vID',pic:''}]];
   this.EvtParms["'SUSBCRIBEUNSUBSCRIBE'"] = [[{ctrl:'vSTATUS'},{av:'AV17Status',fld:'vSTATUS',pic:''},{av:'AV14Id',fld:'vID',pic:''}],[{ctrl:'vSTATUS'},{av:'AV17Status',fld:'vSTATUS',pic:''},{av:'gx.fn.getCtrlProperty("SUBSCRIBEUNSUBSCRIBE","Caption")',ctrl:'SUBSCRIBEUNSUBSCRIBE',prop:'Caption'}]];
   this.EvtParms["'SHOWHIDE'"] = [[{av:'gx.fn.getCtrlProperty("ACTIONSCONTAINER","Class")',ctrl:'ACTIONSCONTAINER',prop:'Class'}],[{av:'gx.fn.getCtrlProperty("ACTIONSCONTAINER","Class")',ctrl:'ACTIONSCONTAINER',prop:'Class'}]];
   this.EvtParms["'EDIT'"] = [[{av:'AV14Id',fld:'vID',pic:''}],[{av:'AV14Id',fld:'vID',pic:''}]];
   this.EvtParms["VALIDV_STATUS"] = [[],[]];
   this.EvtParms["VALIDV_EVENT"] = [[],[]];
   this.EnterCtrl = ["BTNCONFIRM"];
   this.setVCMap("AV14Id", "vID", 0, "char", 40, 0);
   this.setVCMap("Gx_mode", "vMODE", 0, "char", 3, 0);
   this.setVCMap("AV14Id", "vID", 0, "char", 40, 0);
   this.Initialize( );
});
gx.wi( function() { gx.createParentObj(this.gam_eventsubscriptionentry);});
