/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:24:23.81
*/
gx.evt.autoSkip=!1;gx.define("timt011",!1,function(){this.ServerClass="timt011";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=!0;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){};this.Valid_Ferdat=function(){return this.validSrvEvt("valid_Ferdat",0).then(function(n){return n}.closure(this))};this.Valid_Ferdesmoti=function(){return this.validCliEvt("Valid_Ferdesmoti",0,function(){try{var n=gx.util.balloon.getNew("FERDESMOTI");if(this.AnyError=0,""==this.A623FerDesMoti)try{n.setError("Informe o motivo do feriado ");this.AnyError=gx.num.trunc(1,0)}catch(t){}}catch(t){}try{return n==null?!0:n.show()}catch(t){}return!0})};this.e122y100_client=function(){return this.executeServerEvent("ENTER",!0,null,!1,!1)};this.e132y100_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,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38];this.GXLastCtrlId=38;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:"CABECALHOPOPUP",grid:0};n[9]={id:9,fld:"CABECALHOPOPUP_TABLE1",grid:0};n[12]={id:12,fld:"CABECALHOPOPUP_VOLTAR",grid:0,evt:"e132y100_client"};n[14]={id:14,fld:"CABECALHOPOPUP_HELP",grid:0,evt:"e142y100_client"};n[16]={id:16,fld:"CABECALHOPOPUP_REFRESH",grid:0,evt:"e152y100_client",std:"GET"};n[19]={id:19,fld:"",grid:0};n[20]={id:20,fld:"",grid:0};n[21]={id:21,fld:"",grid:0};n[22]={id:22,fld:"",grid:0};n[23]={id:23,fld:"BUTTON2",grid:0,evt:"e122y100_client",std:"ENTER"};n[24]={id:24,fld:"",grid:0};n[25]={id:25,fld:"BUTTON3",grid:0,evt:"e162y100_client",std:"DELETE"};n[26]={id:26,fld:"",grid:0};n[27]={id:27,fld:"",grid:0};n[28]={id:28,fld:"TABLE1",grid:0};n[29]={id:29,fld:"",grid:0};n[30]={id:30,fld:"",grid:0};n[31]={id:31,fld:"",grid:0};n[32]={id:32,fld:"",grid:0};n[33]={id:33,lvl:0,type:"date",len:10,dec:0,sign:!1,ro:1,grid:0,gxgrid:null,fnc:this.Valid_Ferdat,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"FERDAT",gxz:"Z191FerDat",gxold:"O191FerDat",gxvar:"A191FerDat",dp:{f:0,st:!1,wn:!1,mf:!1,pic:"99/99/9999",dec:0},ucs:[],op:[38],ip:[38,33],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A191FerDat=gx.fn.toDatetimeValue(n))},v2z:function(n){n!==undefined&&(gx.O.Z191FerDat=gx.fn.toDatetimeValue(n))},v2c:function(){gx.fn.setControlValue("FERDAT",gx.O.A191FerDat,0)},c2v:function(){this.val()!==undefined&&(gx.O.A191FerDat=gx.fn.toDatetimeValue(this.val()))},val:function(){return gx.fn.getControlValue("FERDAT")},nac:gx.falseFn};n[34]={id:34,fld:"",grid:0};n[35]={id:35,fld:"",grid:0};n[36]={id:36,fld:"",grid:0};n[37]={id:37,fld:"",grid:0};n[38]={id:38,lvl:0,type:"char",len:25,dec:0,sign:!1,pic:"@!",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Ferdesmoti,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"FERDESMOTI",gxz:"Z623FerDesMoti",gxold:"O623FerDesMoti",gxvar:"A623FerDesMoti",ucs:[],op:[38],ip:[38],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A623FerDesMoti=n)},v2z:function(n){n!==undefined&&(gx.O.Z623FerDesMoti=n)},v2c:function(){gx.fn.setControlValue("FERDESMOTI",gx.O.A623FerDesMoti,0)},c2v:function(){this.val()!==undefined&&(gx.O.A623FerDesMoti=this.val())},val:function(){return gx.fn.getControlValue("FERDESMOTI")},nac:gx.falseFn};this.A191FerDat=gx.date.nullDate();this.Z191FerDat=gx.date.nullDate();this.O191FerDat=gx.date.nullDate();this.A623FerDesMoti="";this.Z623FerDesMoti="";this.O623FerDesMoti="";this.AV8UsuCod="";this.A191FerDat=gx.date.nullDate();this.A623FerDesMoti="";this.Events={e122y100_client:["ENTER",!0],e132y100_client:["CANCEL",!0]};this.EvtParms.ENTER=[[{postForm:!0},{av:"A191FerDat",fld:"FERDAT",pic:""}],[]];this.EvtParms.REFRESH=[[{av:"A191FerDat",fld:"FERDAT",pic:""}],[]];this.EvtParms.START=[[],[{av:"AV8UsuCod",fld:"vUSUCOD",pic:"@!"}]];this.EvtParms.VALID_FERDAT=[[{av:"A191FerDat",fld:"FERDAT",pic:""},{av:"Gx_mode",fld:"vMODE",pic:"@!"}],[{av:"A623FerDesMoti",fld:"FERDESMOTI",pic:"@!"},{av:"Gx_mode",fld:"vMODE",pic:"@!"},{av:"Z191FerDat"},{av:"Z623FerDesMoti"},{ctrl:"CABECALHOPOPUP_REFRESH",prop:"Enabled"},{ctrl:"BUTTON3",prop:"Enabled"},{ctrl:"BUTTON2",prop:"Enabled"}]];this.EvtParms.VALID_FERDESMOTI=[[{av:"A623FerDesMoti",fld:"FERDESMOTI",pic:"@!"}],[{av:"A623FerDesMoti",fld:"FERDESMOTI",pic:"@!"}]];this.EnterCtrl=["BUTTON2"];this.Initialize()});gx.setParentObj(new timt011)