/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:23:52.23
*/
gx.evt.autoSkip=!1;gx.define("tgrt003",!1,function(){this.ServerClass="tgrt003";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=!0;this.skipOnEnter=!1;this.addKeyListener("2","'LISTA'");this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){};this.Valid_Tgecodtabe=function(){return this.validCliEvt("Valid_Tgecodtabe",0,function(){try{var n=gx.util.balloon.getNew("TGECODTABE");this.AnyError=0}catch(t){}try{return n==null?!0:n.show()}catch(t){}return!0})};this.Valid_Tgecodchav=function(){return this.validSrvEvt("valid_Tgecodchav",0).then(function(n){return n}.closure(this))};this.e112678_client=function(){return this.clearMessages(),this.refreshOutputs([]),gx.$.Deferred().resolve()};this.e122678_client=function(){return this.executeServerEvent("ENTER",!0,null,!1,!1)};this.e132678_client=function(){return this.executeServerEvent("CANCEL",!0,null,!1,!1)};this.GXValidFnc=[];var n=this.GXValidFnc;this.GXCtrlIds=[2,5,6,7,8,9,15,18,20,23,25,26,29,31,34,35,36,37,38];this.GXLastCtrlId=38;n[2]={id:2,fld:"TABLE1",grid:0};n[5]={id:5,fld:"BTN_FIRST",grid:0,evt:"e142678_client",std:"FIRST"};n[6]={id:6,fld:"BTN_PREVIOUS",grid:0,evt:"e152678_client",std:"PREVIOUS"};n[7]={id:7,fld:"BTN_NEXT",grid:0,evt:"e162678_client",std:"NEXT"};n[8]={id:8,fld:"BTN_LAST",grid:0,evt:"e172678_client",std:"LAST"};n[9]={id:9,fld:"BTN_SELECT",grid:0,evt:"e182678_client",std:"SELECT"};n[15]={id:15,fld:"TABLE2",grid:0};n[18]={id:18,fld:"TEXTBLOCK1",format:0,grid:0};n[20]={id:20,lvl:0,type:"char",len:10,dec:0,sign:!1,pic:"@!",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Tgecodtabe,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"TGECODTABE",gxz:"Z161TgeCodTabe",gxold:"O161TgeCodTabe",gxvar:"A161TgeCodTabe",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A161TgeCodTabe=n)},v2z:function(n){n!==undefined&&(gx.O.Z161TgeCodTabe=n)},v2c:function(){gx.fn.setControlValue("TGECODTABE",gx.O.A161TgeCodTabe,0)},c2v:function(){this.val()!==undefined&&(gx.O.A161TgeCodTabe=this.val())},val:function(){return gx.fn.getControlValue("TGECODTABE")},nac:gx.falseFn};n[23]={id:23,fld:"TEXTBLOCK2",format:0,grid:0};n[25]={id:25,lvl:0,type:"char",len:30,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Tgecodchav,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"TGECODCHAV",gxz:"Z162TgeCodChav",gxold:"O162TgeCodChav",gxvar:"A162TgeCodChav",ucs:[],op:[31],ip:[31,25,20],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A162TgeCodChav=n)},v2z:function(n){n!==undefined&&(gx.O.Z162TgeCodChav=n)},v2c:function(){gx.fn.setControlValue("TGECODCHAV",gx.O.A162TgeCodChav,0)},c2v:function(){this.val()!==undefined&&(gx.O.A162TgeCodChav=this.val())},val:function(){return gx.fn.getControlValue("TGECODCHAV")},nac:gx.falseFn};n[26]={id:26,fld:"BTN_GET",grid:0,evt:"e192678_client",std:"GET"};n[29]={id:29,fld:"TEXTBLOCK3",format:0,grid:0};n[31]={id:31,lvl:0,type:"char",len:200,dec:0,sign:!1,ro:0,multiline:!0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"TGEVALCONT",gxz:"Z935TgeValCont",gxold:"O935TgeValCont",gxvar:"A935TgeValCont",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A935TgeValCont=n)},v2z:function(n){n!==undefined&&(gx.O.Z935TgeValCont=n)},v2c:function(){gx.fn.setControlValue("TGEVALCONT",gx.O.A935TgeValCont,0)},c2v:function(){this.val()!==undefined&&(gx.O.A935TgeValCont=this.val())},val:function(){return gx.fn.getControlValue("TGEVALCONT")},nac:gx.falseFn};n[34]={id:34,fld:"BTN_ENTER",grid:0,evt:"e122678_client",std:"ENTER"};n[35]={id:35,fld:"BTN_CHECK",grid:0,evt:"e202678_client",std:"CHECK"};n[36]={id:36,fld:"BTN_CANCEL",grid:0,evt:"e132678_client"};n[37]={id:37,fld:"BTN_DELETE",grid:0,evt:"e212678_client",std:"DELETE"};n[38]={id:38,fld:"BTN_HELP",grid:0,evt:"e222678_client"};this.A161TgeCodTabe="";this.Z161TgeCodTabe="";this.O161TgeCodTabe="";this.A162TgeCodChav="";this.Z162TgeCodChav="";this.O162TgeCodChav="";this.A935TgeValCont="";this.Z935TgeValCont="";this.O935TgeValCont="";this.A161TgeCodTabe="";this.A162TgeCodChav="";this.A935TgeValCont="";this.Events={e122678_client:["ENTER",!0],e132678_client:["CANCEL",!0],e112678_client:["'LISTA'",!1]};this.EvtParms.ENTER=[[{postForm:!0}],[]];this.EvtParms.REFRESH=[[],[]];this.EvtParms["'LISTA'"]=[[],[]];this.EvtParms.VALID_TGECODTABE=[[],[]];this.EvtParms.VALID_TGECODCHAV=[[{av:"A161TgeCodTabe",fld:"TGECODTABE",pic:"@!"},{av:"A162TgeCodChav",fld:"TGECODCHAV",pic:""},{av:"Gx_mode",fld:"vMODE",pic:"@!"}],[{av:"A935TgeValCont",fld:"TGEVALCONT",pic:""},{av:"Gx_mode",fld:"vMODE",pic:"@!"},{av:"Z161TgeCodTabe"},{av:"Z162TgeCodChav"},{av:"Z935TgeValCont"},{ctrl:"BTN_GET",prop:"Enabled"},{ctrl:"BTN_DELETE",prop:"Enabled"},{ctrl:"BTN_ENTER",prop:"Enabled"},{ctrl:"BTN_CHECK",prop:"Enabled"}]];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.Initialize()});gx.setParentObj(new tgrt003)