/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:27:42.25
*/
gx.evt.autoSkip=!1;gx.define("tpet014",!1,function(){this.ServerClass="tpet014";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=!0;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){};this.Valid_Arecod=function(){return this.validSrvEvt("valid_Arecod",0).then(function(n){return n}.closure(this))};this.e1158110_client=function(){return this.executeServerEvent("ENTER",!0,null,!1,!1)};this.e1258110_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,21,24,26,29,30,31,32,33];this.GXLastCtrlId=33;n[2]={id:2,fld:"TABLE1",grid:0};n[5]={id:5,fld:"BTN_FIRST",grid:0,evt:"e1358110_client",std:"FIRST"};n[6]={id:6,fld:"BTN_PREVIOUS",grid:0,evt:"e1458110_client",std:"PREVIOUS"};n[7]={id:7,fld:"BTN_NEXT",grid:0,evt:"e1558110_client",std:"NEXT"};n[8]={id:8,fld:"BTN_LAST",grid:0,evt:"e1658110_client",std:"LAST"};n[9]={id:9,fld:"BTN_SELECT",grid:0,evt:"e1758110_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:8,dec:0,sign:!1,pic:"@!",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Arecod,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"ARECOD",gxz:"Z206AreCod",gxold:"O206AreCod",gxvar:"A206AreCod",ucs:[],op:[20,26],ip:[26,20],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A206AreCod=n)},v2z:function(n){n!==undefined&&(gx.O.Z206AreCod=n)},v2c:function(){gx.fn.setControlValue("ARECOD",gx.O.A206AreCod,0)},c2v:function(){this.val()!==undefined&&(gx.O.A206AreCod=this.val())},val:function(){return gx.fn.getControlValue("ARECOD")},nac:gx.falseFn};n[21]={id:21,fld:"BTN_GET",grid:0,evt:"e1858110_client",std:"GET"};n[24]={id:24,fld:"TEXTBLOCK2",format:0,grid:0};n[26]={id:26,lvl:0,type:"char",len:30,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"AREDES",gxz:"Z345AreDes",gxold:"O345AreDes",gxvar:"A345AreDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A345AreDes=n)},v2z:function(n){n!==undefined&&(gx.O.Z345AreDes=n)},v2c:function(){gx.fn.setControlValue("AREDES",gx.O.A345AreDes,0)},c2v:function(){this.val()!==undefined&&(gx.O.A345AreDes=this.val())},val:function(){return gx.fn.getControlValue("AREDES")},nac:gx.falseFn};n[29]={id:29,fld:"BTN_ENTER",grid:0,evt:"e1158110_client",std:"ENTER"};n[30]={id:30,fld:"BTN_CHECK",grid:0,evt:"e1958110_client",std:"CHECK"};n[31]={id:31,fld:"BTN_CANCEL",grid:0,evt:"e1258110_client"};n[32]={id:32,fld:"BTN_DELETE",grid:0,evt:"e2058110_client",std:"DELETE"};n[33]={id:33,fld:"BTN_HELP",grid:0,evt:"e2158110_client"};this.A206AreCod="";this.Z206AreCod="";this.O206AreCod="";this.A345AreDes="";this.Z345AreDes="";this.O345AreDes="";this.A206AreCod="";this.A345AreDes="";this.Events={e1158110_client:["ENTER",!0],e1258110_client:["CANCEL",!0]};this.EvtParms.ENTER=[[{postForm:!0}],[]];this.EvtParms.REFRESH=[[],[]];this.EvtParms.VALID_ARECOD=[[{av:"A206AreCod",fld:"ARECOD",pic:"@!"},{av:"Gx_mode",fld:"vMODE",pic:"@!"}],[{av:"A345AreDes",fld:"AREDES",pic:""},{av:"Gx_mode",fld:"vMODE",pic:"@!"},{av:"Z206AreCod"},{av:"Z345AreDes"},{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 tpet014)