/*
               File: GAM_WWRolePermissions
        Description: Role`s permissions
             Author: GeneXus .NET Framework Generator version 17_0_11-163677
       Generated on: 8/31/2022 2:2:9.19
       Program type: Callable routine
          Main DBMS: SQL Server
*/
gx.evt.autoSkip = false;
gx.define('gam_wwrolepermissions', false, function () {
   this.ServerClass =  "gam_wwrolepermissions" ;
   this.PackageName =  "GeneXus.Security.Backend" ;
   this.ServerFullClass =  "gam_wwrolepermissions.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.AV26RoleId=gx.fn.getIntegerValue("vROLEID",gx.thousandSeparator) ;
      this.AV28SearchFilter=gx.fn.getControlValue("vSEARCHFILTER") ;
      this.AV18isOK=gx.fn.getControlValue("vISOK") ;
      this.AV22pApplicationId=gx.fn.getIntegerValue("vPAPPLICATIONID",gx.thousandSeparator) ;
      this.AV26RoleId=gx.fn.getIntegerValue("vROLEID",gx.thousandSeparator) ;
      this.AV28SearchFilter=gx.fn.getControlValue("vSEARCHFILTER") ;
      this.AV26RoleId=gx.fn.getIntegerValue("vROLEID",gx.thousandSeparator) ;
   };
   this.Validv_Permissionaccesstype=function()
   {
      return this.validCliEvt("Validv_Permissionaccesstype", 0, function () {
      try {
         var gxballoon = gx.util.balloon.getNew("vPERMISSIONACCESSTYPE");
         this.AnyError  = 0;
         if ( ! ( gx.text.compare( this.AV24PermissionAccessType , "A" ) == 0 || gx.text.compare( this.AV24PermissionAccessType , "D" ) == 0 || gx.text.compare( this.AV24PermissionAccessType , "R" ) == 0 || (gx.text.compare('',this.AV24PermissionAccessType)==0) ) )
         {
            try {
               gxballoon.setError(gx.text.format( gx.getMessage( "GXSPC_OutOfRange"), gx.getMessage( "Permission Access Type"), "", "", "", "", "", "", "", ""));
               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_Boolenfilter=function()
   {
      return this.validCliEvt("Validv_Boolenfilter", 0, function () {
      try {
         var gxballoon = gx.util.balloon.getNew("vBOOLENFILTER");
         this.AnyError  = 0;
         if ( ! ( gx.text.compare( this.AV9BoolenFilter , "A" ) == 0 || gx.text.compare( this.AV9BoolenFilter , "T" ) == 0 || gx.text.compare( this.AV9BoolenFilter , "F" ) == 0 ) )
         {
            try {
               gxballoon.setError(gx.text.format( gx.getMessage( "GXSPC_OutOfRange"), gx.getMessage( "Boolen Filter"), "", "", "", "", "", "", "", ""));
               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_Accesstype=function()
   {
      var currentRow = gx.fn.currentGridRowImpl(66);
      return this.validCliEvt("Validv_Accesstype", 66, function () {
      try {
         var gxballoon = gx.util.balloon.getNew("vACCESSTYPE");
         this.AnyError  = 0;
         if ( ! ( gx.text.compare( this.AV5AccessType , "A" ) == 0 || gx.text.compare( this.AV5AccessType , "D" ) == 0 || gx.text.compare( this.AV5AccessType , "R" ) == 0 ) )
         {
            try {
               gxballoon.setError(gx.text.format( gx.getMessage( "GXSPC_OutOfRange"), gx.getMessage( "Access Type"), "", "", "", "", "", "", "", ""));
               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_Old_accesstype=function()
   {
      var currentRow = gx.fn.currentGridRowImpl(66);
      return this.validCliEvt("Validv_Old_accesstype", 66, function () {
      try {
         var gxballoon = gx.util.balloon.getNew("vOLD_ACCESSTYPE");
         this.AnyError  = 0;
         if ( ! ( gx.text.compare( this.AV20old_AccessType , "A" ) == 0 || gx.text.compare( this.AV20old_AccessType , "D" ) == 0 || gx.text.compare( this.AV20old_AccessType , "R" ) == 0 ) )
         {
            try {
               gxballoon.setError(gx.text.format( gx.getMessage( "GXSPC_OutOfRange"), gx.getMessage( "old_Access Type"), "", "", "", "", "", "", "", ""));
               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.e121b1_client=function()
   {
      /* 'AddNew' Routine */
      this.clearMessages();
      if ( ! ((0==this.AV8ApplicationId)) )
      {
         this.call("gam_rolepermissionselect.aspx", [this.AV26RoleId, this.AV8ApplicationId], null, ["RoleId","ApplicationId"]);
      }
      else
      {
         this.addMessage(gx.getMessage( "You must select Application."));
      }
      this.refreshOutputs([{ctrl:'vAPPLICATIONID'},{av:'AV8ApplicationId',fld:'vAPPLICATIONID',pic:'ZZZZZZZZZZZ9'},{av:'AV26RoleId',fld:'vROLEID',pic:'ZZZZZZZZZZZ9'}]);
      this.OnClientEventEnd();
      return gx.$.Deferred().resolve();
   };
   this.e111b1_client=function()
   {
      /* 'Hide' Routine */
      this.clearMessages();
      if ( gx.text.compare( gx.fn.getCtrlProperty("FILTERSCONTAINER","Class") , "AdvancedContainer" ) == 0 )
      {
         gx.fn.setCtrlProperty("FILTERSCONTAINER","Class", "AdvancedContainer"+" "+"AdvancedContainerVisible" );
         gx.fn.setCtrlProperty("HIDE","Caption", gx.getMessage( "HIDE FILTERS") );
         gx.fn.setCtrlProperty("HIDE","Class", "HideFiltersButton" );
         gx.fn.setCtrlProperty("GRIDCELL","Class", "WWGridCell" );
      }
      else
      {
         gx.fn.setCtrlProperty("FILTERSCONTAINER","Class", "AdvancedContainer" );
         gx.fn.setCtrlProperty("HIDE","Caption", gx.getMessage( "SHOW FILTERS") );
         gx.fn.setCtrlProperty("HIDE","Class", "ShowFiltersButton" );
         gx.fn.setCtrlProperty("GRIDCELL","Class", "WWGridCellExpanded" );
      }
      this.refreshOutputs([{av:'gx.fn.getCtrlProperty("FILTERSCONTAINER","Class")',ctrl:'FILTERSCONTAINER',prop:'Class'},{ctrl:'HIDE',prop:'Caption'},{ctrl:'HIDE',prop:'Class'},{av:'gx.fn.getCtrlProperty("GRIDCELL","Class")',ctrl:'GRIDCELL',prop:'Class'}]);
      this.OnClientEventEnd();
      return gx.$.Deferred().resolve();
   };
   this.e131b2_client=function()
   {
      /* 'Save' Routine */
      return this.executeServerEvent("'SAVE'", false, null, false, false);
   };
   this.e161b2_client=function()
   {
      /* Btndlt_Click Routine */
      return this.executeServerEvent("VBTNDLT.CLICK", true, arguments[0], false, false);
   };
   this.e171b2_client=function()
   {
      /* Enter Routine */
      return this.executeServerEvent("ENTER", true, arguments[0], false, false);
   };
   this.e181b1_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,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,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,69,70,71,72,73,74];
   this.GXLastCtrlId =74;
   this.GridwwContainer = new gx.grid.grid(this, 2,"WbpLvl2",66,"Gridww","Gridww","GridwwContainer",this.CmpContext,this.IsMasterPage,"gam_wwrolepermissions",[],false,1,false,true,0,false,false,false,"",0,"px",0,"px",gx.getMessage( "GXM_newrow"),false,false,true,null,null,false,"",false,[1,1,1,1],false,0,true,false);
   var GridwwContainer = this.GridwwContainer;
   GridwwContainer.addSingleLineEdit("Name",67,"vNAME",gx.getMessage( "Permission name"),"","Name","char",0,"px",120,80,"left",null,[],"Name","Name",true,0,false,false,"Attribute",1,"WWColumn");
   GridwwContainer.addSingleLineEdit("Dsc",68,"vDSC",gx.getMessage( "Description"),"","Dsc","char",0,"px",254,80,"left",null,[],"Dsc","Dsc",true,0,false,false,"Attribute",1,"WWColumn WWOptionalColumn");
   GridwwContainer.addComboBox("Accesstype",69,"vACCESSTYPE",gx.getMessage( "Permissions options"),"AccessType","char",null,0,true,false,0,"px","WWColumn");
   GridwwContainer.addCheckBox("Inherited",70,"vINHERITED",gx.getMessage( "Inherited"),"","Inherited","boolean","true","false",null,true,false,0,"px","WWTextActionColumn");
   GridwwContainer.addSingleLineEdit("Btndlt",71,"vBTNDLT","","","BtnDlt","char",0,"px",20,20,"left","e161b2_client",[],"Btndlt","BtnDlt",true,0,false,false,"TextActionAttribute TextLikeLink",1,"WWTextActionColumn");
   GridwwContainer.addComboBox("Old_accesstype",72,"vOLD_ACCESSTYPE",gx.getMessage( "Permissions options"),"old_AccessType","char",null,0,false,false,0,"px","");
   GridwwContainer.addCheckBox("Old_inherited",73,"vOLD_INHERITED",gx.getMessage( "Boolean"),"","old_Inherited","boolean","true","false",null,false,false,0,"px","");
   GridwwContainer.addSingleLineEdit("Id",74,"vID",gx.getMessage( "GUID"),"","Id","char",0,"px",40,40,"left",null,[],"Id","Id",false,0,false,false,"Attribute",1,"");
   this.GridwwContainer.emptyText = gx.getMessage( "");
   this.setGrid(GridwwContainer);
   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:"TABLE1",grid:0};
   GXValidFnc[10]={ id: 10, fld:"",grid:0};
   GXValidFnc[11]={ id: 11, fld:"",grid:0};
   GXValidFnc[12]={ id: 12, fld:"HIDE",grid:0,evt:"e111b1_client"};
   GXValidFnc[13]={ id: 13, fld:"",grid:0};
   GXValidFnc[14]={ id: 14, fld:"TEXTBLOCK4", format:0,grid:0, ctrltype: "textblock"};
   GXValidFnc[15]={ id: 15, fld:"",grid:0};
   GXValidFnc[16]={ id: 16, fld:"TABLE8",grid:0};
   GXValidFnc[17]={ id: 17, fld:"",grid:0};
   GXValidFnc[18]={ id: 18, fld:"",grid:0};
   GXValidFnc[19]={ id: 19, fld:"BTNBACK",grid:0,evt:"e181b1_client"};
   GXValidFnc[20]={ id: 20, fld:"",grid:0};
   GXValidFnc[21]={ id: 21, fld:"BTNSAVE",grid:0,evt:"e131b2_client"};
   GXValidFnc[22]={ id: 22, fld:"",grid:0};
   GXValidFnc[23]={ id: 23, fld:"ADDNEW",grid:0,evt:"e121b1_client"};
   GXValidFnc[24]={ id: 24, fld:"",grid:0};
   GXValidFnc[25]={ id: 25, fld:"",grid:0};
   GXValidFnc[26]={ id:26 ,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:"vFILNAME",fmt:0,gxz:"ZV14FilName",gxold:"OV14FilName",gxvar:"AV14FilName",ucs:[],op:[],ip:[],

						nacdep:[],ctrltype:"edit",v2v:function(Value){if(Value!==undefined)gx.O.AV14FilName=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV14FilName=Value},v2c:function(){gx.fn.setControlValue("vFILNAME",gx.O.AV14FilName,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV14FilName=this.val()},val:function(){return gx.fn.getControlValue("vFILNAME")},nac:gx.falseFn};
   this.declareDomainHdlr( 26 , function() {
   });
   GXValidFnc[27]={ id: 27, fld:"",grid:0};
   GXValidFnc[28]={ id: 28, fld:"CELLFILTERS",grid:0};
   GXValidFnc[29]={ id: 29, fld:"FILTERSCONTAINER",grid:0};
   GXValidFnc[30]={ id: 30, fld:"",grid:0};
   GXValidFnc[31]={ id: 31, fld:"",grid:0};
   GXValidFnc[32]={ id: 32, fld:"TABLE6",grid:0};
   GXValidFnc[33]={ id: 33, fld:"",grid:0};
   GXValidFnc[34]={ id: 34, fld:"",grid:0};
   GXValidFnc[35]={ id: 35, fld:"TEXTBLOCK2", format:0,grid:0, ctrltype: "textblock"};
   GXValidFnc[36]={ id: 36, fld:"",grid:0};
   GXValidFnc[37]={ id: 37, fld:"",grid:0};
   GXValidFnc[38]={ id: 38, fld:"",grid:0};
   GXValidFnc[39]={ id:39 ,lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Permissionaccesstype,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vPERMISSIONACCESSTYPE",fmt:0,gxz:"ZV24PermissionAccessType",gxold:"OV24PermissionAccessType",gxvar:"AV24PermissionAccessType",ucs:[],op:[39],ip:[39],

						nacdep:[],ctrltype:"combo",v2v:function(Value){if(Value!==undefined)gx.O.AV24PermissionAccessType=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV24PermissionAccessType=Value},v2c:function(){gx.fn.setComboBoxValue("vPERMISSIONACCESSTYPE",gx.O.AV24PermissionAccessType);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV24PermissionAccessType=this.val()},val:function(){return gx.fn.getControlValue("vPERMISSIONACCESSTYPE")},nac:gx.falseFn};
   this.declareDomainHdlr( 39 , function() {
   });
   GXValidFnc[40]={ id: 40, fld:"",grid:0};
   GXValidFnc[41]={ id: 41, fld:"",grid:0};
   GXValidFnc[42]={ id: 42, fld:"TABLE7",grid:0};
   GXValidFnc[43]={ id: 43, fld:"",grid:0};
   GXValidFnc[44]={ id: 44, fld:"",grid:0};
   GXValidFnc[45]={ id: 45, fld:"TEXTBLOCK3", format:0,grid:0, ctrltype: "textblock"};
   GXValidFnc[46]={ id: 46, fld:"",grid:0};
   GXValidFnc[47]={ id: 47, fld:"",grid:0};
   GXValidFnc[48]={ id: 48, fld:"",grid:0};
   GXValidFnc[49]={ id:49 ,lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Boolenfilter,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vBOOLENFILTER",fmt:0,gxz:"ZV9BoolenFilter",gxold:"OV9BoolenFilter",gxvar:"AV9BoolenFilter",ucs:[],op:[49],ip:[49],

						nacdep:[],ctrltype:"combo",v2v:function(Value){if(Value!==undefined)gx.O.AV9BoolenFilter=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV9BoolenFilter=Value},v2c:function(){gx.fn.setComboBoxValue("vBOOLENFILTER",gx.O.AV9BoolenFilter);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV9BoolenFilter=this.val()},val:function(){return gx.fn.getControlValue("vBOOLENFILTER")},nac:gx.falseFn};
   this.declareDomainHdlr( 49 , function() {
   });
   GXValidFnc[50]={ id: 50, fld:"GRIDCELL",grid:0};
   GXValidFnc[51]={ id: 51, fld:"GRIDTABLE",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:"char",len:254,dec:0,sign:false,ro:0,multiline:true,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"CTLNAME1",fmt:0,gxz:"ZV31GXV1",gxold:"OV31GXV1",gxvar:"GXV1",ucs:[],op:[],ip:[],

						nacdep:[],ctrltype:"edit",v2v:function(Value){if(Value!==undefined)gx.O.GXV1=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV31GXV1=Value},v2c:function(){gx.fn.setControlValue("CTLNAME1",gx.O.GXV1,0)},c2v:function(){if(this.val()!==undefined)gx.O.GXV1=this.val()},val:function(){return gx.fn.getControlValue("CTLNAME1")},nac:gx.falseFn};
   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 ,lvl:0,type:"int",len:12,dec:0,sign:false,pic:"ZZZZZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vAPPLICATIONID",fmt:0,gxz:"ZV8ApplicationId",gxold:"OV8ApplicationId",gxvar:"AV8ApplicationId",ucs:[],op:[],ip:[],

						nacdep:[],ctrltype:"combo",v2v:function(Value){if(Value!==undefined)gx.O.AV8ApplicationId=gx.num.intval(Value)},v2z:function(Value){if(Value!==undefined)gx.O.ZV8ApplicationId=gx.num.intval(Value)},v2c:function(){gx.fn.setComboBoxValue("vAPPLICATIONID",gx.O.AV8ApplicationId);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){if(this.val()!==undefined)gx.O.AV8ApplicationId=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("vAPPLICATIONID",gx.thousandSeparator)},nac:gx.falseFn};
   this.declareDomainHdlr( 60 , function() {
   });
   GXValidFnc[61]={ id: 61, fld:"",grid:0};
   GXValidFnc[62]={ id: 62, fld:"",grid:0};
   GXValidFnc[64]={ id: 64, fld:"",grid:0};
   GXValidFnc[65]={ id: 65, fld:"",grid:0};
   GXValidFnc[67]={ id:67 ,lvl:2,type:"char",len:120,dec:0,sign:false,ro:0,isacc:0,grid:66,gxgrid:this.GridwwContainer,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vNAME",fmt:0,gxz:"ZV19Name",gxold:"OV19Name",gxvar:"AV19Name",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:'text',autoCorrect:"1",v2v:function(Value){if(Value!==undefined)gx.O.AV19Name=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV19Name=Value},v2c:function(row){gx.fn.setGridControlValue("vNAME",row || gx.fn.currentGridRowImpl(66),gx.O.AV19Name,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(row){if(this.val(row)!==undefined)gx.O.AV19Name=this.val(row)},val:function(row){return gx.fn.getGridControlValue("vNAME",row || gx.fn.currentGridRowImpl(66))},nac:gx.falseFn};
   GXValidFnc[68]={ id:68 ,lvl:2,type:"char",len:254,dec:0,sign:false,ro:0,isacc:0,grid:66,gxgrid:this.GridwwContainer,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vDSC",fmt:0,gxz:"ZV11Dsc",gxold:"OV11Dsc",gxvar:"AV11Dsc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:'text',autoCorrect:"1",v2v:function(Value){if(Value!==undefined)gx.O.AV11Dsc=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV11Dsc=Value},v2c:function(row){gx.fn.setGridControlValue("vDSC",row || gx.fn.currentGridRowImpl(66),gx.O.AV11Dsc,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(row){if(this.val(row)!==undefined)gx.O.AV11Dsc=this.val(row)},val:function(row){return gx.fn.getGridControlValue("vDSC",row || gx.fn.currentGridRowImpl(66))},nac:gx.falseFn};
   GXValidFnc[69]={ id:69 ,lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,isacc:0,grid:66,gxgrid:this.GridwwContainer,fnc:this.Validv_Accesstype,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vACCESSTYPE",fmt:0,gxz:"ZV5AccessType",gxold:"OV5AccessType",gxvar:"AV5AccessType",ucs:[],op:[69],ip:[69],nacdep:[],ctrltype:"combo",inputType:'text',v2v:function(Value){if(Value!==undefined)gx.O.AV5AccessType=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV5AccessType=Value},v2c:function(row){gx.fn.setGridComboBoxValue("vACCESSTYPE",row || gx.fn.currentGridRowImpl(66),gx.O.AV5AccessType);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(row){if(this.val(row)!==undefined)gx.O.AV5AccessType=this.val(row)},val:function(row){return gx.fn.getGridControlValue("vACCESSTYPE",row || gx.fn.currentGridRowImpl(66))},nac:gx.falseFn};
   GXValidFnc[70]={ id:70 ,lvl:2,type:"boolean",len:4,dec:0,sign:false,ro:0,isacc:0,grid:66,gxgrid:this.GridwwContainer,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vINHERITED",fmt:0,gxz:"ZV17Inherited",gxold:"OV17Inherited",gxvar:"AV17Inherited",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",inputType:'text',v2v:function(Value){if(Value!==undefined)gx.O.AV17Inherited=gx.lang.booleanValue(Value)},v2z:function(Value){if(Value!==undefined)gx.O.ZV17Inherited=gx.lang.booleanValue(Value)},v2c:function(row){gx.fn.setGridCheckBoxValue("vINHERITED",row || gx.fn.currentGridRowImpl(66),gx.O.AV17Inherited,true)},c2v:function(row){if(this.val(row)!==undefined)gx.O.AV17Inherited=gx.lang.booleanValue(this.val(row))},val:function(row){return gx.fn.getGridControlValue("vINHERITED",row || gx.fn.currentGridRowImpl(66))},nac:gx.falseFn,values:['true','false']};
   GXValidFnc[71]={ id:71 ,lvl:2,type:"char",len:20,dec:0,sign:false,ro:0,isacc:0,grid:66,gxgrid:this.GridwwContainer,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vBTNDLT",fmt:0,gxz:"ZV10BtnDlt",gxold:"OV10BtnDlt",gxvar:"AV10BtnDlt",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:'text',autoCorrect:"1",v2v:function(Value){if(Value!==undefined)gx.O.AV10BtnDlt=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV10BtnDlt=Value},v2c:function(row){gx.fn.setGridControlValue("vBTNDLT",row || gx.fn.currentGridRowImpl(66),gx.O.AV10BtnDlt,0)},c2v:function(row){if(this.val(row)!==undefined)gx.O.AV10BtnDlt=this.val(row)},val:function(row){return gx.fn.getGridControlValue("vBTNDLT",row || gx.fn.currentGridRowImpl(66))},nac:gx.falseFn,evt:"e161b2_client"};
   GXValidFnc[72]={ id:72 ,lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,isacc:0,grid:66,gxgrid:this.GridwwContainer,fnc:this.Validv_Old_accesstype,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vOLD_ACCESSTYPE",fmt:0,gxz:"ZV20old_AccessType",gxold:"OV20old_AccessType",gxvar:"AV20old_AccessType",ucs:[],op:[72],ip:[72],nacdep:[],ctrltype:"combo",inputType:'text',v2v:function(Value){if(Value!==undefined)gx.O.AV20old_AccessType=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV20old_AccessType=Value},v2c:function(row){gx.fn.setGridComboBoxValue("vOLD_ACCESSTYPE",row || gx.fn.currentGridRowImpl(66),gx.O.AV20old_AccessType);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(row){if(this.val(row)!==undefined)gx.O.AV20old_AccessType=this.val(row)},val:function(row){return gx.fn.getGridControlValue("vOLD_ACCESSTYPE",row || gx.fn.currentGridRowImpl(66))},nac:gx.falseFn};
   GXValidFnc[73]={ id:73 ,lvl:2,type:"boolean",len:1,dec:0,sign:false,ro:0,isacc:0,grid:66,gxgrid:this.GridwwContainer,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vOLD_INHERITED",fmt:0,gxz:"ZV21old_Inherited",gxold:"OV21old_Inherited",gxvar:"AV21old_Inherited",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",inputType:'text',v2v:function(Value){if(Value!==undefined)gx.O.AV21old_Inherited=gx.lang.booleanValue(Value)},v2z:function(Value){if(Value!==undefined)gx.O.ZV21old_Inherited=gx.lang.booleanValue(Value)},v2c:function(row){gx.fn.setGridCheckBoxValue("vOLD_INHERITED",row || gx.fn.currentGridRowImpl(66),gx.O.AV21old_Inherited,true);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(row){if(this.val(row)!==undefined)gx.O.AV21old_Inherited=gx.lang.booleanValue(this.val(row))},val:function(row){return gx.fn.getGridControlValue("vOLD_INHERITED",row || gx.fn.currentGridRowImpl(66))},nac:gx.falseFn,values:['true','false']};
   GXValidFnc[74]={ id:74 ,lvl:2,type:"char",len:40,dec:0,sign:false,ro:0,isacc:0,grid:66,gxgrid:this.GridwwContainer,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vID",fmt:0,gxz:"ZV16Id",gxold:"OV16Id",gxvar:"AV16Id",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:'text',v2v:function(Value){if(Value!==undefined)gx.O.AV16Id=Value},v2z:function(Value){if(Value!==undefined)gx.O.ZV16Id=Value},v2c:function(row){gx.fn.setGridControlValue("vID",row || gx.fn.currentGridRowImpl(66),gx.O.AV16Id,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(row){if(this.val(row)!==undefined)gx.O.AV16Id=this.val(row)},val:function(row){return gx.fn.getGridControlValue("vID",row || gx.fn.currentGridRowImpl(66))},nac:gx.falseFn};
   this.AV14FilName = "" ;
   this.ZV14FilName = "" ;
   this.OV14FilName = "" ;
   this.AV24PermissionAccessType = "" ;
   this.ZV24PermissionAccessType = "" ;
   this.OV24PermissionAccessType = "" ;
   this.AV9BoolenFilter = "" ;
   this.ZV9BoolenFilter = "" ;
   this.OV9BoolenFilter = "" ;
   this.GXV1 = "" ;
   this.ZV31GXV1 = "" ;
   this.OV31GXV1 = "" ;
   this.AV8ApplicationId = 0 ;
   this.ZV8ApplicationId = 0 ;
   this.OV8ApplicationId = 0 ;
   this.ZV19Name = "" ;
   this.OV19Name = "" ;
   this.ZV11Dsc = "" ;
   this.OV11Dsc = "" ;
   this.ZV5AccessType = "" ;
   this.OV5AccessType = "" ;
   this.ZV17Inherited = false ;
   this.OV17Inherited = false ;
   this.ZV10BtnDlt = "" ;
   this.OV10BtnDlt = "" ;
   this.ZV20old_AccessType = "" ;
   this.OV20old_AccessType = "" ;
   this.ZV21old_Inherited = false ;
   this.OV21old_Inherited = false ;
   this.ZV16Id = "" ;
   this.OV16Id = "" ;
   this.AV14FilName = "" ;
   this.AV24PermissionAccessType = "" ;
   this.AV9BoolenFilter = "" ;
   this.GXV1 = "" ;
   this.AV8ApplicationId = 0 ;
   this.AV26RoleId = 0 ;
   this.AV22pApplicationId = 0 ;
   this.AV19Name = "" ;
   this.AV11Dsc = "" ;
   this.AV5AccessType = "" ;
   this.AV17Inherited = false ;
   this.AV10BtnDlt = "" ;
   this.AV20old_AccessType = "" ;
   this.AV21old_Inherited = false ;
   this.AV16Id = "" ;
   this.AV28SearchFilter = "" ;
   this.AV18isOK = false ;
   this.AV15GAMRole = {} ;
   this.Events = {"e131b2_client": ["'SAVE'", true] ,"e161b2_client": ["VBTNDLT.CLICK", true] ,"e171b2_client": ["ENTER", true] ,"e181b1_client": ["CANCEL", true] ,"e121b1_client": ["'ADDNEW'", false] ,"e111b1_client": ["'HIDE'", false]};
   this.EvtParms["REFRESH"] = [[{av:'GRIDWW_nFirstRecordOnPage'},{av:'GRIDWW_nEOF'},{av:'AV26RoleId',fld:'vROLEID',pic:'ZZZZZZZZZZZ9'},{ctrl:'vAPPLICATIONID'},{av:'AV8ApplicationId',fld:'vAPPLICATIONID',pic:'ZZZZZZZZZZZ9'},{av:'AV14FilName',fld:'vFILNAME',pic:''},{ctrl:'vPERMISSIONACCESSTYPE'},{av:'AV24PermissionAccessType',fld:'vPERMISSIONACCESSTYPE',pic:''},{ctrl:'vBOOLENFILTER'},{av:'AV9BoolenFilter',fld:'vBOOLENFILTER',pic:''},{av:'AV28SearchFilter',fld:'vSEARCHFILTER',pic:'',hsh:true}],[]];
   this.EvtParms["GRIDWW.LOAD"] = [[{av:'AV26RoleId',fld:'vROLEID',pic:'ZZZZZZZZZZZ9'},{ctrl:'vAPPLICATIONID'},{av:'AV8ApplicationId',fld:'vAPPLICATIONID',pic:'ZZZZZZZZZZZ9'},{av:'AV14FilName',fld:'vFILNAME',pic:''},{av:'AV28SearchFilter',fld:'vSEARCHFILTER',pic:'',hsh:true},{ctrl:'vPERMISSIONACCESSTYPE'},{av:'AV24PermissionAccessType',fld:'vPERMISSIONACCESSTYPE',pic:''},{ctrl:'vBOOLENFILTER'},{av:'AV9BoolenFilter',fld:'vBOOLENFILTER',pic:''}],[{av:'AV10BtnDlt',fld:'vBTNDLT',pic:''},{av:'AV16Id',fld:'vID',pic:'',hsh:true},{av:'AV19Name',fld:'vNAME',pic:''},{av:'AV11Dsc',fld:'vDSC',pic:''},{ctrl:'vACCESSTYPE'},{av:'AV5AccessType',fld:'vACCESSTYPE',pic:''},{av:'AV17Inherited',fld:'vINHERITED',pic:''},{ctrl:'vOLD_ACCESSTYPE'},{av:'AV20old_AccessType',fld:'vOLD_ACCESSTYPE',pic:'',hsh:true},{av:'AV21old_Inherited',fld:'vOLD_INHERITED',pic:'',hsh:true}]];
   this.EvtParms["'ADDNEW'"] = [[{ctrl:'vAPPLICATIONID'},{av:'AV8ApplicationId',fld:'vAPPLICATIONID',pic:'ZZZZZZZZZZZ9'},{av:'AV26RoleId',fld:'vROLEID',pic:'ZZZZZZZZZZZ9'}],[{ctrl:'vAPPLICATIONID'},{av:'AV8ApplicationId',fld:'vAPPLICATIONID',pic:'ZZZZZZZZZZZ9'},{av:'AV26RoleId',fld:'vROLEID',pic:'ZZZZZZZZZZZ9'}]];
   this.EvtParms["'SAVE'"] = [[{av:'GRIDWW_nFirstRecordOnPage'},{av:'GRIDWW_nEOF'},{av:'AV26RoleId',fld:'vROLEID',pic:'ZZZZZZZZZZZ9'},{ctrl:'vAPPLICATIONID'},{av:'AV8ApplicationId',fld:'vAPPLICATIONID',pic:'ZZZZZZZZZZZ9'},{av:'AV14FilName',fld:'vFILNAME',pic:''},{av:'AV28SearchFilter',fld:'vSEARCHFILTER',pic:'',hsh:true},{ctrl:'vPERMISSIONACCESSTYPE'},{av:'AV24PermissionAccessType',fld:'vPERMISSIONACCESSTYPE',pic:''},{ctrl:'vBOOLENFILTER'},{av:'AV9BoolenFilter',fld:'vBOOLENFILTER',pic:''},{av:'AV5AccessType',fld:'vACCESSTYPE',grid:66,pic:''},{av:'nRC_GXsfl_66',ctrl:'GRIDWW',grid:66,prop:'GridRC',grid:66},{av:'AV20old_AccessType',fld:'vOLD_ACCESSTYPE',grid:66,pic:'',hsh:true},{av:'AV17Inherited',fld:'vINHERITED',grid:66,pic:''},{av:'AV21old_Inherited',fld:'vOLD_INHERITED',grid:66,pic:'',hsh:true},{av:'AV16Id',fld:'vID',grid:66,pic:'',hsh:true},{av:'AV18isOK',fld:'vISOK',pic:''}],[{av:'AV18isOK',fld:'vISOK',pic:''}]];
   this.EvtParms["'HIDE'"] = [[{av:'gx.fn.getCtrlProperty("FILTERSCONTAINER","Class")',ctrl:'FILTERSCONTAINER',prop:'Class'}],[{av:'gx.fn.getCtrlProperty("FILTERSCONTAINER","Class")',ctrl:'FILTERSCONTAINER',prop:'Class'},{ctrl:'HIDE',prop:'Caption'},{ctrl:'HIDE',prop:'Class'},{av:'gx.fn.getCtrlProperty("GRIDCELL","Class")',ctrl:'GRIDCELL',prop:'Class'}]];
   this.EvtParms["VBTNDLT.CLICK"] = [[{av:'GRIDWW_nFirstRecordOnPage'},{av:'GRIDWW_nEOF'},{av:'AV26RoleId',fld:'vROLEID',pic:'ZZZZZZZZZZZ9'},{ctrl:'vAPPLICATIONID'},{av:'AV8ApplicationId',fld:'vAPPLICATIONID',pic:'ZZZZZZZZZZZ9'},{av:'AV14FilName',fld:'vFILNAME',pic:''},{av:'AV28SearchFilter',fld:'vSEARCHFILTER',pic:'',hsh:true},{ctrl:'vPERMISSIONACCESSTYPE'},{av:'AV24PermissionAccessType',fld:'vPERMISSIONACCESSTYPE',pic:''},{ctrl:'vBOOLENFILTER'},{av:'AV9BoolenFilter',fld:'vBOOLENFILTER',pic:''},{av:'AV16Id',fld:'vID',pic:'',hsh:true}],[{av:'AV18isOK',fld:'vISOK',pic:''}]];
   this.EvtParms["ENTER"] = [[],[]];
   this.EvtParms["VALIDV_PERMISSIONACCESSTYPE"] = [[],[]];
   this.EvtParms["VALIDV_BOOLENFILTER"] = [[],[]];
   this.EvtParms["VALIDV_ACCESSTYPE"] = [[{ctrl:'vACCESSTYPE'},{av:'AV5AccessType',fld:'vACCESSTYPE',pic:''}],[{ctrl:'vACCESSTYPE'},{av:'AV5AccessType',fld:'vACCESSTYPE',pic:''}]];
   this.EvtParms["VALIDV_OLD_ACCESSTYPE"] = [[{ctrl:'vOLD_ACCESSTYPE'},{av:'AV20old_AccessType',fld:'vOLD_ACCESSTYPE',pic:'',hsh:true}],[{ctrl:'vOLD_ACCESSTYPE'},{av:'AV20old_AccessType',fld:'vOLD_ACCESSTYPE',pic:'',hsh:true}]];
   this.setVCMap("AV26RoleId", "vROLEID", 0, "int", 12, 0);
   this.setVCMap("AV28SearchFilter", "vSEARCHFILTER", 0, "char", 254, 0);
   this.setVCMap("AV18isOK", "vISOK", 0, "boolean", 4, 0);
   this.setVCMap("AV22pApplicationId", "vPAPPLICATIONID", 0, "int", 12, 0);
   this.setVCMap("AV26RoleId", "vROLEID", 0, "int", 12, 0);
   this.setVCMap("AV28SearchFilter", "vSEARCHFILTER", 0, "char", 254, 0);
   this.setVCMap("AV26RoleId", "vROLEID", 0, "int", 12, 0);
   this.setVCMap("AV26RoleId", "vROLEID", 0, "int", 12, 0);
   this.setVCMap("AV28SearchFilter", "vSEARCHFILTER", 0, "char", 254, 0);
   GridwwContainer.addRefreshingVar({rfrVar:"AV26RoleId"});
   GridwwContainer.addRefreshingVar(this.GXValidFnc[60]);
   GridwwContainer.addRefreshingVar(this.GXValidFnc[26]);
   GridwwContainer.addRefreshingVar({rfrVar:"AV28SearchFilter"});
   GridwwContainer.addRefreshingVar(this.GXValidFnc[39]);
   GridwwContainer.addRefreshingVar(this.GXValidFnc[49]);
   GridwwContainer.addRefreshingParm({rfrVar:"AV26RoleId"});
   GridwwContainer.addRefreshingParm(this.GXValidFnc[60]);
   GridwwContainer.addRefreshingParm(this.GXValidFnc[26]);
   GridwwContainer.addRefreshingParm({rfrVar:"AV28SearchFilter"});
   GridwwContainer.addRefreshingParm(this.GXValidFnc[39]);
   GridwwContainer.addRefreshingParm(this.GXValidFnc[49]);
   this.addBCProperty("Gamrole", ["Name"], this.GXValidFnc[56], "AV15GAMRole");
   this.Initialize( );
});
gx.wi( function() { gx.createParentObj(this.gam_wwrolepermissions);});
