gx.evt.autoSkip=false;function tmit008(){this.ServerClass="TMit008";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_BScreen=gx.fn.getIntegerValue("vGXBSCREEN",".");this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Funcod=function(){gx.ajax.validSrvEvt("dyncall","valid_Funcod",["gx.O.A450FunCod","gx.O.A452FunNom","gx.O.A451FunDesAbre","gx.O.A453FunTipRela"],["A452FunNom","A451FunDesAbre","A453FunTipRela","Gx_mode","Z450FunCod","Z452FunNom","Z451FunDesAbre","Z453FunTipRela","O451FunDesAbre",["BTN_ENTER2","Enabled"]]);
return true};this.Valid_Funnom=function(){try{var a=gx.util.balloon.getNew("FUNNOM");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Fundesabre=function(){try{var a=gx.util.balloon.getNew("FUNDESABRE");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e114v32_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh015",["FU"]),[""]);this.refreshOutputs([])};this.e134v2_client=function(){this.executeServerEvent("'VOLTAR'",false)
};this.e144v32_client=function(){this.executeServerEvent("ENTER",true)};this.e154v32_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,23,26,29,31,34,36,39,41,44,46];this.GXLastCtrlId=46;this.GXValidFnc[3]={fld:"TABLE4",grid:0};this.GXValidFnc[23]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[26]={fld:"TABLE1",grid:0};this.GXValidFnc[29]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Funcod,isvalid:null,rgrid:[],fld:"FUNCOD",gxz:"Z450FunCod",gxold:"O450FunCod",gxvar:"A450FunCod",ucs:[],op:[46,41,36],ip:[46,41,36,31],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A450FunCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z450FunCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("FUNCOD",gx.O.A450FunCod,0)},c2v:function(){gx.O.A450FunCod=this.val()},val:function(){return gx.fn.getIntegerValue("FUNCOD",".")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Funnom,isvalid:null,fld:"FUNNOM",gxz:"Z452FunNom",gxold:"O452FunNom",gxvar:"A452FunNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A452FunNom=a
},v2z:function(a){gx.O.Z452FunNom=a},v2c:function(){gx.fn.setControlValue("FUNNOM",gx.O.A452FunNom,0)},c2v:function(){gx.O.A452FunNom=this.val()},val:function(){return gx.fn.getControlValue("FUNNOM")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"char",len:12,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Fundesabre,isvalid:null,fld:"FUNDESABRE",gxz:"Z451FunDesAbre",gxold:"O451FunDesAbre",gxvar:"A451FunDesAbre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A451FunDesAbre=a
},v2z:function(a){gx.O.Z451FunDesAbre=a},v2c:function(){gx.fn.setControlValue("FUNDESABRE",gx.O.A451FunDesAbre,0)},c2v:function(){gx.O.A451FunDesAbre=this.val()},val:function(){return gx.fn.getControlValue("FUNDESABRE")},nac:function(){return false}};this.GXValidFnc[44]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[46]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"FUNTIPRELA",gxz:"Z453FunTipRela",gxold:"O453FunTipRela",gxvar:"A453FunTipRela",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A453FunTipRela=a
},v2z:function(a){gx.O.Z453FunTipRela=a},v2c:function(){gx.fn.setComboBoxValue("FUNTIPRELA",gx.O.A453FunTipRela)},c2v:function(){gx.O.A453FunTipRela=this.val()},val:function(){return gx.fn.getControlValue("FUNTIPRELA")},nac:function(){return false}};this.A450FunCod=0;this.Z450FunCod=0;this.O450FunCod=0;this.A452FunNom="";this.Z452FunNom="";this.O452FunNom="";this.A451FunDesAbre="";this.Z451FunDesAbre="";this.O451FunDesAbre="";this.A453FunTipRela="";this.Z453FunTipRela="";this.O453FunTipRela="";this.AV20UsuCodCorr="";
this.Gx_BScreen=0;this.ServerEvents=["e134v2_client","e144v32_client","e154v32_client"];this.EnterCtrl=["BTN_ENTER2"];this.VarControlMap.Gx_BScreen={id:"vGXBSCREEN",grid:0,type:"int"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars();this.LvlOlds[32]=["O451FunDesAbre"]}tmit008.prototype=new gx.GxObject;gx.setParentObj(new tmit008());