gx.evt.autoSkip=false;function tpet018(){this.ServerClass="Tpet018";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Tipcod=function(){gx.ajax.validSrvEvt("dyncall","valid_Tipcod",["gx.O.A881TipCod","gx.O.A882TipDes"],["A882TipDes","Gx_mode","Z881TipCod","Z882TipDes",["BUTTON8","Enabled"],["BUTTON5","Enabled"]]);return true};this.Valid_Tipdes=function(){try{var a=gx.util.balloon.getNew("TIPDES");
this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e125g2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e135g149_client=function(){this.executeServerEvent("ENTER",true)};this.e145g149_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,23,25,28,30,33,38,40];this.GXLastCtrlId=40;this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[23]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[25]={fld:"TABLE2",grid:0};
this.GXValidFnc[28]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[30]={fld:"TABLE3",grid:0};this.GXValidFnc[33]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Tipcod,isvalid:null,fld:"TIPCOD",gxz:"Z881TipCod",gxold:"O881TipCod",gxvar:"A881TipCod",ucs:[],op:[40],ip:[40,33],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A881TipCod=a},v2z:function(a){gx.O.Z881TipCod=a},v2c:function(){gx.fn.setControlValue("TIPCOD",gx.O.A881TipCod,0)},c2v:function(){gx.O.A881TipCod=this.val()
},val:function(){return gx.fn.getControlValue("TIPCOD")},nac:function(){return false}};this.GXValidFnc[38]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[40]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Tipdes,isvalid:null,fld:"TIPDES",gxz:"Z882TipDes",gxold:"O882TipDes",gxvar:"A882TipDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A882TipDes=a},v2z:function(a){gx.O.Z882TipDes=a},v2c:function(){gx.fn.setControlValue("TIPDES",gx.O.A882TipDes,0)
},c2v:function(){gx.O.A882TipDes=this.val()},val:function(){return gx.fn.getControlValue("TIPDES")},nac:function(){return false}};this.A881TipCod="";this.Z881TipCod="";this.O881TipCod="";this.A882TipDes="";this.Z882TipDes="";this.O882TipDes="";this.AV7UsuCodCorr="";this.AV8IndLiber="";this.Gx_msg="";this.ServerEvents=["e125g2_client","e135g149_client","e145g149_client"];this.EnterCtrl=["BUTTON5"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tpet018.prototype=new gx.GxObject;
gx.setParentObj(new tpet018());