gx.evt.autoSkip=false;function tabt087(){this.ServerClass="TAbt087";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.addKeyListener("2",'"LISTA"');this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Trscodoper=function(){try{var a=gx.util.balloon.getNew("TRSCODOPER");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Trsnrodocu=function(){try{var a=gx.util.balloon.getNew("TRSNRODOCU");
this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Trsnroseqr=function(){gx.ajax.validSrvEvt("dyncall","valid_Trsnroseqr",["gx.O.A912TrsCodOper","gx.O.A913TrsNroDocu","gx.O.A914TrsNroSeqR","gx.O.A915TrsTipAcao"],["A915TrsTipAcao","Gx_mode","Z912TrsCodOper","Z913TrsNroDocu","Z914TrsNroSeqR","Z915TrsTipAcao",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);return true};this.e112271_client=function(){this.clearMessages();this.refreshOutputs([])
};this.e122271_client=function(){this.executeServerEvent("ENTER",true)};this.e132271_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,23,25,28,30,34,36];this.GXLastCtrlId=36;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:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Trscodoper,isvalid:null,fld:"TRSCODOPER",gxz:"Z912TrsCodOper",gxold:"O912TrsCodOper",gxvar:"A912TrsCodOper",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A912TrsCodOper=a
},v2z:function(a){gx.O.Z912TrsCodOper=a},v2c:function(){gx.fn.setControlValue("TRSCODOPER",gx.O.A912TrsCodOper,0)},c2v:function(){gx.O.A912TrsCodOper=this.val()},val:function(){return gx.fn.getControlValue("TRSCODOPER")},nac:function(){return false}};this.GXValidFnc[23]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[25]={lvl:0,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Trsnrodocu,isvalid:null,rgrid:[],fld:"TRSNRODOCU",gxz:"Z913TrsNroDocu",gxold:"O913TrsNroDocu",gxvar:"A913TrsNroDocu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A913TrsNroDocu=gx.num.intval(a)
},v2z:function(a){gx.O.Z913TrsNroDocu=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("TRSNRODOCU",gx.O.A913TrsNroDocu,0)},c2v:function(){gx.O.A913TrsNroDocu=this.val()},val:function(){return gx.fn.getIntegerValue("TRSNRODOCU",".")},nac:function(){return false}};this.GXValidFnc[28]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[30]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Trsnroseqr,isvalid:null,rgrid:[],fld:"TRSNROSEQR",gxz:"Z914TrsNroSeqR",gxold:"O914TrsNroSeqR",gxvar:"A914TrsNroSeqR",ucs:[],op:[36],ip:[36,30,25,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A914TrsNroSeqR=gx.num.intval(a)
},v2z:function(a){gx.O.Z914TrsNroSeqR=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("TRSNROSEQR",gx.O.A914TrsNroSeqR,0)},c2v:function(){gx.O.A914TrsNroSeqR=this.val()},val:function(){return gx.fn.getIntegerValue("TRSNROSEQR",".")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"TRSTIPACAO",gxz:"Z915TrsTipAcao",gxold:"O915TrsTipAcao",gxvar:"A915TrsTipAcao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A915TrsTipAcao=a
},v2z:function(a){gx.O.Z915TrsTipAcao=a},v2c:function(){gx.fn.setComboBoxValue("TRSTIPACAO",gx.O.A915TrsTipAcao)},c2v:function(){gx.O.A915TrsTipAcao=this.val()},val:function(){return gx.fn.getControlValue("TRSTIPACAO")},nac:function(){return false}};this.A912TrsCodOper="";this.Z912TrsCodOper="";this.O912TrsCodOper="";this.A913TrsNroDocu=0;this.Z913TrsNroDocu=0;this.O913TrsNroDocu=0;this.A914TrsNroSeqR=0;this.Z914TrsNroSeqR=0;this.O914TrsNroSeqR=0;this.A915TrsTipAcao="";this.Z915TrsTipAcao="";this.O915TrsTipAcao="";
this.ServerEvents=["e122271_client","e132271_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tabt087.prototype=new gx.GxObject;gx.setParentObj(new tabt087());