/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:26:4.28
*/
gx.evt.autoSkip=!1;gx.define("timt038",!1,function(){this.ServerClass="timt038";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=!0;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){};this.Valid_Mtccod=function(){return this.validSrvEvt("valid_Mtccod",0).then(function(n){return n}.closure(this))};this.e114273_client=function(){return this.clearMessages(),this.call("himh001",["AQUIS"]),this.refreshOutputs([]),gx.$.Deferred().resolve()};this.e124273_client=function(){return this.executeServerEvent("ENTER",!0,null,!1,!1)};this.e134273_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,41,42,43,44,45,46,47,48];this.GXLastCtrlId=48;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:"e114273_client"};n[14]={id:14,fld:"CABECALHOAPLICACAO_HELP",grid:0,evt:"e144273_client"};n[16]={id:16,fld:"CABECALHOAPLICACAO_REFRESH",grid:0,evt:"e154273_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:"BUTTON3",grid:0,evt:"e164273_client",std:"FIRST"};n[26]={id:26,fld:"",grid:0};n[27]={id:27,fld:"BUTTON6",grid:0,evt:"e174273_client",std:"PREVIOUS"};n[28]={id:28,fld:"",grid:0};n[29]={id:29,fld:"BUTTON11",grid:0,evt:"e184273_client",std:"NEXT"};n[30]={id:30,fld:"",grid:0};n[31]={id:31,fld:"BUTTON12",grid:0,evt:"e194273_client",std:"LAST"};n[32]={id:32,fld:"",grid:0};n[33]={id:33,fld:"BUTTON13",grid:0,evt:"e124273_client",std:"ENTER"};n[34]={id:34,fld:"",grid:0};n[35]={id:35,fld:"BUTTON14",grid:0,evt:"e204273_client",std:"SELECT"};n[36]={id:36,fld:"",grid:0};n[37]={id:37,fld:"",grid:0};n[38]={id:38,fld:"TABLE2",grid:0};n[39]={id:39,fld:"",grid:0};n[40]={id:40,fld:"",grid:0};n[41]={id:41,fld:"",grid:0};n[42]={id:42,fld:"",grid:0};n[43]={id:43,lvl:0,type:"int",len:3,dec:0,sign:!1,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Mtccod,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"MTCCOD",gxz:"Z154MtcCod",gxold:"O154MtcCod",gxvar:"A154MtcCod",ucs:[],op:[48],ip:[48,43],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A154MtcCod=gx.num.intval(n))},v2z:function(n){n!==undefined&&(gx.O.Z154MtcCod=gx.num.intval(n))},v2c:function(){gx.fn.setControlValue("MTCCOD",gx.O.A154MtcCod,0)},c2v:function(){this.val()!==undefined&&(gx.O.A154MtcCod=gx.num.intval(this.val()))},val:function(){return gx.fn.getIntegerValue("MTCCOD",".")},nac:gx.falseFn};n[44]={id:44,fld:"",grid:0};n[45]={id:45,fld:"",grid:0};n[46]={id:46,fld:"",grid:0};n[47]={id:47,fld:"",grid:0};n[48]={id:48,lvl:0,type:"char",len:50,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"MTCDES",gxz:"Z709Mtcdes",gxold:"O709Mtcdes",gxvar:"A709Mtcdes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A709Mtcdes=n)},v2z:function(n){n!==undefined&&(gx.O.Z709Mtcdes=n)},v2c:function(){gx.fn.setControlValue("MTCDES",gx.O.A709Mtcdes,0)},c2v:function(){this.val()!==undefined&&(gx.O.A709Mtcdes=this.val())},val:function(){return gx.fn.getControlValue("MTCDES")},nac:gx.falseFn};this.A154MtcCod=0;this.Z154MtcCod=0;this.O154MtcCod=0;this.A709Mtcdes="";this.Z709Mtcdes="";this.O709Mtcdes="";this.A154MtcCod=0;this.A709Mtcdes="";this.Events={e124273_client:["ENTER",!0],e134273_client:["CANCEL",!0],e114273_client:["'VOLTAR'",!1]};this.EvtParms.ENTER=[[{postForm:!0}],[]];this.EvtParms.REFRESH=[[],[]];this.EvtParms["'VOLTAR'"]=[[],[]];this.EvtParms.VALID_MTCCOD=[[{av:"A154MtcCod",fld:"MTCCOD",pic:"ZZ9"},{av:"Gx_mode",fld:"vMODE",pic:"@!"}],[{av:"A709Mtcdes",fld:"MTCDES",pic:""},{av:"Gx_mode",fld:"vMODE",pic:"@!"},{av:"Z154MtcCod"},{av:"Z709Mtcdes"},{ctrl:"CABECALHOAPLICACAO_REFRESH",prop:"Enabled"},{ctrl:"BUTTON13",prop:"Enabled"}]];this.EnterCtrl=["BUTTON13"];this.Initialize()});gx.setParentObj(new timt038)