/*
               File: GAM_RoleEntry
        Description: Role
             Author: GeneXus .NET Framework Generator version 17_0_11-163677
       Generated on: 8/31/2022 2:0:32.3
       Program type: Callable routine
          Main DBMS: SQL Server
*/
gx.evt.autoSkip = false;
gx.define('gam_roleentry', false, function () {
   this.ServerClass =  "gam_roleentry" ;
   this.PackageName =  "GeneXus.Security.Backend" ;
   this.ServerFullClass =  "gam_roleentry.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.Gx_mode=gx.fn.getControlValue("vMODE") ;
   };
   this.e13091_client=function()
   {
      /* 'RolePermissions' Routine */
      this.clearMessages();
      this.call("gam_wwrolepermissions.aspx", [this.AV11Id, 0], null, ["RoleId","pApplicationId"]);
      this.refreshOutputs([{av:'AV11Id',fld:'vID',pic:'ZZZZZZZZZZZ9'}]);
      this.OnClientEventEnd();
      return gx.$.Deferred().resolve();
   };
   this.e14091_client=function()
   {
      /* 'DeleteRole' Routine */
      this.clearMessages();
      this.call("gam_roleentry.aspx", ["DLT", this.AV11Id], null, ["Mode","Id"]);
      this.refreshOutputs([{av:'AV11Id',fld:'vID',pic:'ZZZZZZZZZZZ9'}]);
      this.OnClientEventEnd();
      return gx.$.Deferred().resolve();
   };
   this.e11091_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.e12091_client=function()
   {
      /* 'Edit' Routine */
      this.clearMessages();
      this.call("gam_roleentry.aspx", ["UPD", this.AV11Id], null, ["Mode","Id"]);
      this.refreshOutputs([{av:'AV11Id',fld:'vID',pic:'ZZZZZZZZZZZ9'}]);
      this.OnClientEventEnd();
      return gx.$.Deferred().resolve();
   };
   this.e16092_client=function()
   {
      /* Enter Routine */
      return this.executeServerEvent("ENTER", true, null, false, false);
   };
   this.e17092_client=function()
   {
      /* 'RoleChildren' Routine */
      return this.executeServerEvent("'ROLECHILDREN'", true, null, false, false);
   };
   this.e19091_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,81,82,83,84,85,86,87,88];
   this.GXLastCtrlId =88;
   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:"e11091_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:"IMAGE4",grid:0};
   GXValidFnc[24]={ id: 24, fld:"",grid:0};
   GXValidFnc[25]={ id: 25, fld:"TEXTBLOCK2", format:0,grid:0,evt:"e12091_client", ctrltype: "textblock"};
   GXValidFnc[26]={ id: 26, fld:"",grid:0};
   GXValidFnc[27]={ id: 27, fld:"",grid:0};
   GXValidFnc[28]={ id: 28, fld:"TABLE4",grid:0};
   GXValidFnc[29]={ id: 29, fld:"",grid:0};
   GXValidFnc[30]={ id: 30, fld:"",grid:0};
   GXValidFnc[31]={ id: 31, fld:"IMAGE1",grid:0};
   GXValidFnc[32]={ id: 32, fld:"",grid:0};
   GXValidFnc[33]={ id: 33, fld:"CHILDREN", format:0,grid:0,evt:"e17092_client", ctrltype: "textblock"};
   GXValidFnc[34]={ id: 34, fld:"",grid:0};
   GXValidFnc[35]={ id: 35, fld:"",grid:0};
   GXValidFnc[36]={ id: 36, fld:"TABLE6",grid:0};
   GXValidFnc[37]={ id: 37, fld:"",grid:0};
   GXValidFnc[38]={ id: 38, fld:"",grid:0};
   GXValidFnc[39]={ id: 39, fld:"IMAGE3",grid:0};
   GXValidFnc[40]={ id: 40, fld:"",grid:0};
   GXValidFnc[41]={ id: 41, fld:"PERMISSION", format:0,grid:0,evt:"e13091_client", ctrltype: "textblock"};
   GXValidFnc[42]={ id: 42, fld:"",grid:0};
   GXValidFnc[43]={ id: 43, fld:"",grid:0};
   GXValidFnc[44]={ id: 44, fld:"TABLE5",grid:0};
   GXValidFnc[45]={ id: 45, fld:"",grid:0};
   GXValidFnc[46]={ id: 46, fld:"",grid:0};
   GXValidFnc[47]={ id: 47, fld:"IMAGE2",grid:0};
   GXValidFnc[48]={ id: 48, fld:"",grid:0};
   GXValidFnc[49]={ id: 49, fld:"DELETEROLE", format:0,grid:0,evt:"e14091_client", ctrltype: "textblock"};
   GXValidFnc[50]={ id: 50, fld:"",grid:0};
   GXValidFnc[51]={ id: 51, fld:"TABLE1",grid:0};
   GXValidFnc[52]={ id: 52, fld:"",grid:0};
   GXValidFnc[53]={ id: 53, fld:"",grid:0};
   GXValidFnc[54]={ id: 54, fld:"",grid:0};
   GXValidFnc[55]={ id: 55, fld:"",grid:0};
   GXValidFnc[56]={ id:56 ,lvl:0,type:"int",len:12,dec:0,sign:false,pic:"ZZZZZZZZZZZ9",ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vID",fmt:0,gxz:"ZV11Id",gxold:"OV11Id",gxvar:"AV11Id",ucs:[],op:[],ip:[],

						nacdep:[],ctrltype:"edit",v2v:function(Value){if(Value!==undefined)gx.O.AV11Id=gx.num.intval(Value)},v2z:function(Value){if(Value!==undefined)gx.O.ZV11Id=gx.num.intval(Value)},v2c:function(){gx.fn.setControlValue("vID",gx.O.AV11Id,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV11Id=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("vID",gx.thousandSeparator)},nac:gx.falseFn};
   this.declareDomainHdlr( 56 , function() {
   });
   GXValidFnc[57]={ id: 57, fld:"",grid:0};
   GXValidFnc[58]={ id: 58, fld:"",grid:0};
   GXValidFnc[59]={ id: 59, fld:"",grid:0};
   GXValidFnc[60]={ id: 60, fld:"",grid:0};
   GXValidFnc[61]={ id:61 ,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:"vGUID",fmt:0,gxz:"ZV10GUID",gxold:"OV10GUID",gxvar:"AV10GUID",ucs:[],op:[],ip:[],

						nacdep:[],ctrltype:"edit",v2v:function(Value){if(Value!==undefined)gx.O.AV10GUID=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV10GUID=Value},v2c:function(){gx.fn.setControlValue("vGUID",gx.O.AV10GUID,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV10GUID=this.val()},val:function(){return gx.fn.getControlValue("vGUID")},nac:gx.falseFn};
   this.declareDomainHdlr( 61 , function() {
   });
   GXValidFnc[62]={ id: 62, fld:"",grid:0};
   GXValidFnc[63]={ id: 63, fld:"",grid:0};
   GXValidFnc[64]={ id: 64, fld:"",grid:0};
   GXValidFnc[65]={ id: 65, fld:"",grid:0};
   GXValidFnc[66]={ id:66 ,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:"vNAME",fmt:0,gxz:"ZV12Name",gxold:"OV12Name",gxvar:"AV12Name",ucs:[],op:[],ip:[],

						nacdep:[],ctrltype:"edit",v2v:function(Value){if(Value!==undefined)gx.O.AV12Name=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV12Name=Value},v2c:function(){gx.fn.setControlValue("vNAME",gx.O.AV12Name,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV12Name=this.val()},val:function(){return gx.fn.getControlValue("vNAME")},nac:gx.falseFn};
   this.declareDomainHdlr( 66 , function() {
   });
   GXValidFnc[67]={ id: 67, fld:"",grid:0};
   GXValidFnc[68]={ id: 68, fld:"",grid:0};
   GXValidFnc[69]={ id: 69, fld:"",grid:0};
   GXValidFnc[70]={ id: 70, fld:"",grid:0};
   GXValidFnc[71]={ id:71 ,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:"vDSC",fmt:0,gxz:"ZV5Dsc",gxold:"OV5Dsc",gxvar:"AV5Dsc",ucs:[],op:[],ip:[],

						nacdep:[],ctrltype:"edit",v2v:function(Value){if(Value!==undefined)gx.O.AV5Dsc=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV5Dsc=Value},v2c:function(){gx.fn.setControlValue("vDSC",gx.O.AV5Dsc,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV5Dsc=this.val()},val:function(){return gx.fn.getControlValue("vDSC")},nac:gx.falseFn};
   this.declareDomainHdlr( 71 , function() {
   });
   GXValidFnc[72]={ id: 72, fld:"",grid:0};
   GXValidFnc[73]={ id: 73, fld:"",grid:0};
   GXValidFnc[74]={ id: 74, fld:"",grid:0};
   GXValidFnc[75]={ id: 75, fld:"",grid:0};
   GXValidFnc[76]={ id:76 ,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:"vEXTID",fmt:0,gxz:"ZV8ExtId",gxold:"OV8ExtId",gxvar:"AV8ExtId",ucs:[],op:[],ip:[],

						nacdep:[],ctrltype:"edit",v2v:function(Value){if(Value!==undefined)gx.O.AV8ExtId=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV8ExtId=Value},v2c:function(){gx.fn.setControlValue("vEXTID",gx.O.AV8ExtId,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV8ExtId=this.val()},val:function(){return gx.fn.getControlValue("vEXTID")},nac:gx.falseFn};
   this.declareDomainHdlr( 76 , function() {
   });
   GXValidFnc[77]={ id: 77, fld:"",grid:0};
   GXValidFnc[78]={ id: 78, fld:"",grid:0};
   GXValidFnc[79]={ id: 79, fld:"",grid:0};
   GXValidFnc[80]={ id: 80, fld:"",grid:0};
   GXValidFnc[81]={ id:81 ,lvl:0,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vSECPOLID",fmt:0,gxz:"ZV14SecPolId",gxold:"OV14SecPolId",gxvar:"AV14SecPolId",ucs:[],op:[],ip:[],

						nacdep:[],ctrltype:"combo",v2v:function(Value){if(Value!==undefined)gx.O.AV14SecPolId=gx.num.intval(Value)},v2z:function(Value){if(Value!==undefined)gx.O.ZV14SecPolId=gx.num.intval(Value)},v2c:function(){gx.fn.setComboBoxValue("vSECPOLID",gx.O.AV14SecPolId);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV14SecPolId=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("vSECPOLID",gx.thousandSeparator)},nac:gx.falseFn};
   this.declareDomainHdlr( 81 , function() {
   });
   GXValidFnc[82]={ id: 82, fld:"",grid:0};
   GXValidFnc[83]={ id: 83, fld:"",grid:0};
   GXValidFnc[84]={ id: 84, fld:"",grid:0};
   GXValidFnc[85]={ id: 85, fld:"",grid:0};
   GXValidFnc[86]={ id: 86, fld:"BTNCANCEL",grid:0,evt:"e19091_client"};
   GXValidFnc[87]={ id: 87, fld:"",grid:0};
   GXValidFnc[88]={ id: 88, fld:"BTNCONFIRM",grid:0,evt:"e16092_client",std:"ENTER"};
   this.AV11Id = 0 ;
   this.ZV11Id = 0 ;
   this.OV11Id = 0 ;
   this.AV10GUID = "" ;
   this.ZV10GUID = "" ;
   this.OV10GUID = "" ;
   this.AV12Name = "" ;
   this.ZV12Name = "" ;
   this.OV12Name = "" ;
   this.AV5Dsc = "" ;
   this.ZV5Dsc = "" ;
   this.OV5Dsc = "" ;
   this.AV8ExtId = "" ;
   this.ZV8ExtId = "" ;
   this.OV8ExtId = "" ;
   this.AV14SecPolId = 0 ;
   this.ZV14SecPolId = 0 ;
   this.OV14SecPolId = 0 ;
   this.AV11Id = 0 ;
   this.AV10GUID = "" ;
   this.AV12Name = "" ;
   this.AV5Dsc = "" ;
   this.AV8ExtId = "" ;
   this.AV14SecPolId = 0 ;
   this.Gx_mode = "" ;
   this.Events = {"e16092_client": ["ENTER", true] ,"e17092_client": ["'ROLECHILDREN'", true] ,"e19091_client": ["CANCEL", true] ,"e13091_client": ["'ROLEPERMISSIONS'", false] ,"e14091_client": ["'DELETEROLE'", false] ,"e11091_client": ["'SHOWHIDE'", false] ,"e12091_client": ["'EDIT'", false]};
   this.EvtParms["REFRESH"] = [[{av:'Gx_mode',fld:'vMODE',pic:'@!',hsh:true}],[]];
   this.EvtParms["ENTER"] = [[{av:'Gx_mode',fld:'vMODE',pic:'@!',hsh:true},{av:'AV11Id',fld:'vID',pic:'ZZZZZZZZZZZ9'},{av:'AV12Name',fld:'vNAME',pic:''},{av:'AV5Dsc',fld:'vDSC',pic:''},{av:'AV8ExtId',fld:'vEXTID',pic:''},{ctrl:'vSECPOLID'},{av:'AV14SecPolId',fld:'vSECPOLID',pic:'ZZZZZZZZ9'}],[]];
   this.EvtParms["'ROLEPERMISSIONS'"] = [[{av:'AV11Id',fld:'vID',pic:'ZZZZZZZZZZZ9'}],[{av:'AV11Id',fld:'vID',pic:'ZZZZZZZZZZZ9'}]];
   this.EvtParms["'ROLECHILDREN'"] = [[{av:'AV11Id',fld:'vID',pic:'ZZZZZZZZZZZ9'}],[{av:'AV11Id',fld:'vID',pic:'ZZZZZZZZZZZ9'}]];
   this.EvtParms["'DELETEROLE'"] = [[{av:'AV11Id',fld:'vID',pic:'ZZZZZZZZZZZ9'}],[{av:'AV11Id',fld:'vID',pic:'ZZZZZZZZZZZ9'}]];
   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:'AV11Id',fld:'vID',pic:'ZZZZZZZZZZZ9'}],[{av:'AV11Id',fld:'vID',pic:'ZZZZZZZZZZZ9'}]];
   this.EnterCtrl = ["BTNCONFIRM"];
   this.setVCMap("Gx_mode", "vMODE", 0, "char", 3, 0);
   this.Initialize( );
});
gx.wi( function() { gx.createParentObj(this.gam_roleentry);});
