/*!   GeneXus Java 16_0_9-140712 on March 1, 2022 17:28:32.7
*/
gx.evt.autoSkip=!1;gx.define("timt006",!1,function(){this.ServerClass="timt006";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=!0;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){this.A969TpaDes=gx.fn.getControlValue("TPADES")};this.Valid_Tpacod=function(){return this.validSrvEvt("valid_Tpacod",0).then(function(n){return n}.closure(this))};this.Valid_Tpadsc=function(){return this.validCliEvt("Valid_Tpadsc",0,function(){try{var n=gx.util.balloon.getNew("TPADSC");if(this.AnyError=0,""===this.A1063TpaDsc)try{n.setError("Informe a descricao");this.AnyError=gx.num.trunc(1,0)}catch(t){}}catch(t){}try{return n==null?!0:n.show()}catch(t){}return!0})};this.e112t98_client=function(){return this.clearMessages(),this.call("himh288",[]),this.refreshOutputs([]),gx.$.Deferred().resolve()};this.e132t98_client=function(){return this.executeServerEvent("ENTER",!0,null,!1,!1)};this.e142t98_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:"e112t98_client"};n[14]={id:14,fld:"CABECALHOAPLICACAO_HELP",grid:0,evt:"e152t98_client"};n[16]={id:16,fld:"CABECALHOAPLICACAO_REFRESH",grid:0,evt:"e162t98_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:"e132t98_client",std:"ENTER"};n[26]={id:26,fld:"",grid:0};n[27]={id:27,fld:"BUTTON1",grid:0,evt:"e172t98_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_Tpacod,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"TPACOD",gxz:"Z19TpaCod",gxold:"O19TpaCod",gxvar:"A19TpaCod",ucs:[],op:[40],ip:[40,35],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A19TpaCod=n)},v2z:function(n){n!==undefined&&(gx.O.Z19TpaCod=n)},v2c:function(){gx.fn.setControlValue("TPACOD",gx.O.A19TpaCod,0)},c2v:function(){this.val()!==undefined&&(gx.O.A19TpaCod=this.val())},val:function(){return gx.fn.getControlValue("TPACOD")},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:25,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Tpadsc,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"TPADSC",gxz:"Z1063TpaDsc",gxold:"O1063TpaDsc",gxvar:"A1063TpaDsc",ucs:[],op:[40],ip:[40],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A1063TpaDsc=n)},v2z:function(n){n!==undefined&&(gx.O.Z1063TpaDsc=n)},v2c:function(){gx.fn.setControlValue("TPADSC",gx.O.A1063TpaDsc,0)},c2v:function(){this.val()!==undefined&&(gx.O.A1063TpaDsc=this.val())},val:function(){return gx.fn.getControlValue("TPADSC")},nac:gx.falseFn};this.A19TpaCod="";this.Z19TpaCod="";this.O19TpaCod="";this.A1063TpaDsc="";this.Z1063TpaDsc="";this.O1063TpaDsc="";this.AV7UsuCodCorr="";this.A19TpaCod="";this.A969TpaDes="";this.A1063TpaDsc="";this.Events={e132t98_client:["ENTER",!0],e142t98_client:["CANCEL",!0],e112t98_client:["'VOLTAR'",!1]};this.EvtParms.ENTER=[[{postForm:!0},{av:"A19TpaCod",fld:"TPACOD",pic:"@!"}],[]];this.EvtParms.REFRESH=[[{av:"A19TpaCod",fld:"TPACOD",pic:"@!"},{av:"A969TpaDes",fld:"TPADES",pic:""}],[]];this.EvtParms.START=[[],[{av:"AV7UsuCodCorr",fld:"vUSUCODCORR",pic:"@!"}]];this.EvtParms["'VOLTAR'"]=[[],[]];this.EvtParms.VALID_TPACOD=[[{av:"A969TpaDes",fld:"TPADES",pic:""},{av:"A19TpaCod",fld:"TPACOD",pic:"@!"},{av:"Gx_mode",fld:"vMODE",pic:"@!"}],[{av:"A969TpaDes",fld:"TPADES",pic:""},{av:"A1063TpaDsc",fld:"TPADSC",pic:""},{av:"Gx_mode",fld:"vMODE",pic:"@!"},{av:"Z19TpaCod"},{av:"Z969TpaDes"},{av:"Z1063TpaDsc"},{ctrl:"CABECALHOAPLICACAO_REFRESH",prop:"Enabled"},{ctrl:"BUTTON1",prop:"Enabled"},{ctrl:"BUTTON2",prop:"Enabled"}]];this.EvtParms.VALID_TPADSC=[[{av:"A1063TpaDsc",fld:"TPADSC",pic:""}],[{av:"A1063TpaDsc",fld:"TPADSC",pic:""}]];this.EnterCtrl=["BUTTON2"];this.setVCMap("A969TpaDes","TPADES",0,"char",10,0);this.Initialize()});gx.setParentObj(new timt006)