/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:27:46.87
*/
gx.evt.autoSkip=!1;gx.define("tpet018",!1,function(){this.ServerClass="tpet018";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=!0;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){};this.Valid_Tipcod=function(){return this.validSrvEvt("valid_Tipcod",0).then(function(n){return n}.closure(this))};this.Valid_Tipdes=function(){return this.validCliEvt("Valid_Tipdes",0,function(){try{var n=gx.util.balloon.getNew("TIPDES");this.AnyError=0}catch(t){}try{return n==null?!0:n.show()}catch(t){}return!0})};this.e115c152_client=function(){return this.clearMessages(),this.call("himh335",[]),this.refreshOutputs([]),gx.$.Deferred().resolve()};this.e135c152_client=function(){return this.executeServerEvent("ENTER",!0,null,!1,!1)};this.e145c152_client=function(){return this.executeServerEvent("CANCEL",!0,null,!1,!1)};this.GXValidFnc=[];var n=this.GXValidFnc;this.GXCtrlIds=[2,3,4,5,6,9,12,14,16,18,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40];this.GXLastCtrlId=40;n[2]={id:2,fld:"",grid:0};n[3]={id:3,fld:"MAINTABLE",grid:0};n[4]={id:4,fld:"",grid:0};n[5]={id:5,fld:"",grid:0};n[6]={id:6,fld:"CABECALHOAPLICACAO",grid:0};n[9]={id:9,fld:"CABECALHOAPLICACAO_TABLE1",grid:0};n[12]={id:12,fld:"CABECALHOAPLICACAO_VOLTAR",grid:0,evt:"e115c152_client"};n[14]={id:14,fld:"CABECALHOAPLICACAO_HELP",grid:0,evt:"e155c152_client"};n[16]={id:16,fld:"CABECALHOAPLICACAO_REFRESH",grid:0,evt:"e165c152_client",std:"GET"};n[18]={id:18,fld:"CABECALHOAPLICACAO_TEXTBLOCK1",format:0,grid:0};n[21]={id:21,fld:"",grid:0};n[22]={id:22,fld:"",grid:0};n[23]={id:23,fld:"",grid:0};n[24]={id:24,fld:"",grid:0};n[25]={id:25,fld:"BUTTON2",grid:0,evt:"e135c152_client",std:"ENTER"};n[26]={id:26,fld:"",grid:0};n[27]={id:27,fld:"BUTTON1",grid:0,evt:"e175c152_client",std:"DELETE"};n[28]={id:28,fld:"",grid:0};n[29]={id:29,fld:"",grid:0};n[30]={id:30,fld:"TABLE2",grid:0};n[31]={id:31,fld:"",grid:0};n[32]={id:32,fld:"",grid:0};n[33]={id:33,fld:"",grid:0};n[34]={id:34,fld:"",grid:0};n[35]={id:35,lvl:0,type:"char",len:3,dec:0,sign:!1,pic:"@!",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Tipcod,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"TIPCOD",gxz:"Z267TipCod",gxold:"O267TipCod",gxvar:"A267TipCod",ucs:[],op:[40],ip:[40,35],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A267TipCod=n)},v2z:function(n){n!==undefined&&(gx.O.Z267TipCod=n)},v2c:function(){gx.fn.setControlValue("TIPCOD",gx.O.A267TipCod,0)},c2v:function(){this.val()!==undefined&&(gx.O.A267TipCod=this.val())},val:function(){return gx.fn.getControlValue("TIPCOD")},nac:gx.falseFn};n[36]={id:36,fld:"",grid:0};n[37]={id:37,fld:"",grid:0};n[38]={id:38,fld:"",grid:0};n[39]={id:39,fld:"",grid:0};n[40]={id:40,lvl:0,type:"char",len:30,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Tipdes,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"TIPDES",gxz:"Z955TipDes",gxold:"O955TipDes",gxvar:"A955TipDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A955TipDes=n)},v2z:function(n){n!==undefined&&(gx.O.Z955TipDes=n)},v2c:function(){gx.fn.setControlValue("TIPDES",gx.O.A955TipDes,0)},c2v:function(){this.val()!==undefined&&(gx.O.A955TipDes=this.val())},val:function(){return gx.fn.getControlValue("TIPDES")},nac:gx.falseFn};this.A267TipCod="";this.Z267TipCod="";this.O267TipCod="";this.A955TipDes="";this.Z955TipDes="";this.O955TipDes="";this.AV12UsuCod="";this.A267TipCod="";this.A955TipDes="";this.Events={e135c152_client:["ENTER",!0],e145c152_client:["CANCEL",!0],e115c152_client:["'VOLTAR'",!1]};this.EvtParms.ENTER=[[{postForm:!0},{av:"A267TipCod",fld:"TIPCOD",pic:"@!"}],[]];this.EvtParms.REFRESH=[[{av:"A267TipCod",fld:"TIPCOD",pic:"@!"}],[]];this.EvtParms.START=[[],[{av:"AV12UsuCod",fld:"vUSUCOD",pic:"@!"}]];this.EvtParms["'VOLTAR'"]=[[],[]];this.EvtParms.VALID_TIPCOD=[[{av:"A267TipCod",fld:"TIPCOD",pic:"@!"},{av:"Gx_mode",fld:"vMODE",pic:"@!"}],[{av:"A955TipDes",fld:"TIPDES",pic:""},{av:"Gx_mode",fld:"vMODE",pic:"@!"},{av:"Z267TipCod"},{av:"Z955TipDes"},{ctrl:"CABECALHOAPLICACAO_REFRESH",prop:"Enabled"},{ctrl:"BUTTON1",prop:"Enabled"},{ctrl:"BUTTON2",prop:"Enabled"}]];this.EvtParms.VALID_TIPDES=[[],[]];this.EnterCtrl=["BUTTON2"];this.Initialize()});gx.setParentObj(new tpet018)