gx.evt.autoSkip=false;function timt020(){this.ServerClass="TImt020";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE");this.Gx_msg=gx.fn.getControlValue("vMSG");this.AV12TemErro=gx.fn.getControlValue("vTEMERRO")};this.Valid_Cctcod=function(){gx.ajax.validSrvEvt("dyncall","Valid_Cctcod",["gx.O.A97CctCod","gx.O.A98CctNomCent","gx.O.A15AreCod"],["A98CctNomCent","A15AreCod","A16AreDes","Gx_mode","Z97CctCod","Z98CctNomCent","Z15AreCod","Z16AreDes",["BUTTON5","Enabled"]]);
return true};this.Valid_Arecod=function(){gx.ajax.validSrvEvt("dyncall","Valid_Arecod",["gx.O.A15AreCod","gx.O.A16AreDes"],["A16AreDes"]);return true};this.e113h111_client=function(){this.clearMessages();this.AV12TemErro="N";if(this.AV12TemErro=="N"){if((""==this.A97CctCod)){this.AV12TemErro="S";this.Gx_msg="Selecione um centro de custo"}}if(this.AV12TemErro=="N"){gx.popup.openUrl(gx.http.formatLink("himh136.aspx",[this.A97CctCod]),["A97CctCod"])}else{this.addMessage(this.Gx_msg)}this.refreshOutputs([{av:"Gx_msg",fld:"vMSG"},{av:"AV12TemErro",fld:"vTEMERRO"}])
};this.e133h2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e143h111_client=function(){this.executeServerEvent("ENTER",true)};this.e153h111_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,26,28,31,33,36,38,41,43,46,48,49];this.GXLastCtrlId=49;this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[26]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[28]={fld:"TABLE2",grid:0};this.GXValidFnc[31]={fld:"TEXTBLOCK2",format:0,grid:0};
this.GXValidFnc[33]={lvl:0,type:"char",len:8,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Cctcod,isvalid:null,fld:"CCTCOD",gxz:"Z97CctCod",gxold:"O97CctCod",gxvar:"A97CctCod",ucs:[],op:[33,46,38],ip:[46,38,33],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A97CctCod=a},v2z:function(a){gx.O.Z97CctCod=a},v2c:function(){gx.fn.setControlValue("CCTCOD",gx.O.A97CctCod,0)},c2v:function(){gx.O.A97CctCod=this.val()},val:function(){return gx.fn.getControlValue("CCTCOD")},nac:function(){return false
}};this.GXValidFnc[36]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[38]={lvl:0,type:"char",len:35,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"CCTNOMCENT",gxz:"Z98CctNomCent",gxold:"O98CctNomCent",gxvar:"A98CctNomCent",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A98CctNomCent=a},v2z:function(a){gx.O.Z98CctNomCent=a},v2c:function(){gx.fn.setControlValue("CCTNOMCENT",gx.O.A98CctNomCent,0)},c2v:function(){gx.O.A98CctNomCent=this.val()},val:function(){return gx.fn.getControlValue("CCTNOMCENT")
},nac:function(){return false}};this.GXValidFnc[41]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[43]={fld:"TABLE3",grid:0};this.GXValidFnc[46]={lvl:0,type:"char",len:8,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Arecod,isvalid:null,fld:"ARECOD",gxz:"Z15AreCod",gxold:"O15AreCod",gxvar:"A15AreCod",ucs:[],op:[48],ip:[48,46],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A15AreCod=a},v2z:function(a){gx.O.Z15AreCod=a},v2c:function(){gx.fn.setControlValue("ARECOD",gx.O.A15AreCod,0)},c2v:function(){gx.O.A15AreCod=this.val()
},val:function(){return gx.fn.getControlValue("ARECOD")},nac:function(){return false}};this.GXValidFnc[48]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"AREDES",gxz:"Z16AreDes",gxold:"O16AreDes",gxvar:"A16AreDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A16AreDes=a},v2z:function(a){gx.O.Z16AreDes=a},v2c:function(){gx.fn.setControlValue("AREDES",gx.O.A16AreDes,0)},c2v:function(){gx.O.A16AreDes=this.val()},val:function(){return gx.fn.getControlValue("AREDES")
},nac:function(){return false}};this.GXValidFnc[49]={fld:"PROMPT_15",grid:111};this.A97CctCod="";this.Z97CctCod="";this.O97CctCod="";this.A98CctNomCent="";this.Z98CctNomCent="";this.O98CctNomCent="";this.A15AreCod="";this.Z15AreCod="";this.O15AreCod="";this.A16AreDes="";this.Z16AreDes="";this.O16AreDes="";this.AV7UsuCodCorr="";this.Gx_msg="";this.AV12TemErro="";this.ServerEvents=["e133h2_client","e143h111_client","e153h111_client"];this.setPrompt("PROMPT_15",[46]);this.EnterCtrl=["BUTTON5"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};
this.VarControlMap.Gx_msg={id:"vMSG",grid:0,type:"char"};this.VarControlMap.AV12TemErro={id:"vTEMERRO",grid:0,type:"char"};this.SetStandaloneVars()}timt020.prototype=new gx.GxObject;gx.setParentObj(new timt020());