gx.evt.autoSkip=false;function tabt061(){this.ServerClass="TAbt061";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Mbacod=function(){gx.ajax.validSrvEvt("dyncall","valid_Mbacod",["gx.O.A528MbaCod","gx.O.A529MbaDes","gx.O.A527MbaCampo1L"],["A529MbaDes","A527MbaCampo1L","Gx_mode","Z528MbaCod","Z529MbaDes","Z527MbaCampo1L",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Mbades=function(){try{var a=gx.util.balloon.getNew("MBADES");this.AnyError=0;if((""==this.A529MbaDes)){try{a.setError("Informe a descrição");this.AnyError=1}catch(b){}}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e111i46_client=function(){this.executeServerEvent("ENTER",true)};this.e121i46_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,24,26,29,31];this.GXLastCtrlId=31;this.GXValidFnc[2]={fld:"TABLE1",grid:0};
this.GXValidFnc[15]={fld:"TABLE2",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[20]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Mbacod,isvalid:null,rgrid:[],fld:"MBACOD",gxz:"Z528MbaCod",gxold:"O528MbaCod",gxvar:"A528MbaCod",ucs:[],op:[20,31,26],ip:[31,26,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A528MbaCod=gx.num.intval(a)},v2z:function(a){gx.O.Z528MbaCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("MBACOD",gx.O.A528MbaCod,0)
},c2v:function(){gx.O.A528MbaCod=this.val()},val:function(){return gx.fn.getIntegerValue("MBACOD",".")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Mbades,isvalid:null,fld:"MBADES",gxz:"Z529MbaDes",gxold:"O529MbaDes",gxvar:"A529MbaDes",ucs:[],op:[26],ip:[26],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A529MbaDes=a},v2z:function(a){gx.O.Z529MbaDes=a},v2c:function(){gx.fn.setControlValue("MBADES",gx.O.A529MbaDes,0)
},c2v:function(){gx.O.A529MbaDes=this.val()},val:function(){return gx.fn.getControlValue("MBADES")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"MBACAMPO1L",gxz:"Z527MbaCampo1L",gxold:"O527MbaCampo1L",gxvar:"A527MbaCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A527MbaCampo1L=a},v2z:function(a){gx.O.Z527MbaCampo1L=a},v2c:function(){gx.fn.setControlValue("MBACAMPO1L",gx.O.A527MbaCampo1L,0)
},c2v:function(){gx.O.A527MbaCampo1L=this.val()},val:function(){return gx.fn.getControlValue("MBACAMPO1L")},nac:function(){return false}};this.A528MbaCod=0;this.Z528MbaCod=0;this.O528MbaCod=0;this.A529MbaDes="";this.Z529MbaDes="";this.O529MbaDes="";this.A527MbaCampo1L="";this.Z527MbaCampo1L="";this.O527MbaCampo1L="";this.ServerEvents=["e111i46_client","e121i46_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()
}tabt061.prototype=new gx.GxObject;gx.setParentObj(new tabt061());