gx.evt.autoSkip=false;function tabt027(){this.ServerClass="Tabt027";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_T02trncod=function(){try{var a=gx.util.balloon.getNew("T02TRNCOD");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_T02tipdoct=function(){try{var a=gx.util.balloon.getNew("T02TIPDOCT");this.AnyError=0}catch(b){}try{if(a==null){return true
}return a.show()}catch(b){}return true};this.Valid_T02docusbn=function(){gx.ajax.validSrvEvt("dyncall","Valid_T02docusbn",["gx.O.A849T02TrnCod","gx.O.A848T02TipDoct","gx.O.A845T02DocUsbN","gx.O.A847T02QtdEmpr","gx.O.A846T02QtdComp"],["A847T02QtdEmpr","A846T02QtdComp","Gx_mode","Z849T02TrnCod","Z848T02TipDoct","Z845T02DocUsbN","Z847T02QtdEmpr","Z846T02QtdComp",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);return true};this.e110s20_client=function(){this.clearMessages();this.refreshOutputs([])
};this.e120s20_client=function(){this.executeServerEvent("ENTER",true)};this.e130s20_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,23,25,28,30,34,36,39,41];this.GXLastCtrlId=41;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:16,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_T02trncod,isvalid:null,fld:"T02TRNCOD",gxz:"Z849T02TrnCod",gxold:"O849T02TrnCod",gxvar:"A849T02TrnCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A849T02TrnCod=a
},v2z:function(a){gx.O.Z849T02TrnCod=a},v2c:function(){gx.fn.setControlValue("T02TRNCOD",gx.O.A849T02TrnCod,0)},c2v:function(){gx.O.A849T02TrnCod=this.val()},val:function(){return gx.fn.getControlValue("T02TRNCOD")},nac:function(){return false}};this.GXValidFnc[23]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[25]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_T02tipdoct,isvalid:null,fld:"T02TIPDOCT",gxz:"Z848T02TipDoct",gxold:"O848T02TipDoct",gxvar:"A848T02TipDoct",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A848T02TipDoct=a
},v2z:function(a){gx.O.Z848T02TipDoct=a},v2c:function(){gx.fn.setControlValue("T02TIPDOCT",gx.O.A848T02TipDoct,0)},c2v:function(){gx.O.A848T02TipDoct=this.val()},val:function(){return gx.fn.getControlValue("T02TIPDOCT")},nac:function(){return false}};this.GXValidFnc[28]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[30]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_T02docusbn,isvalid:null,fld:"T02DOCUSBN",gxz:"Z845T02DocUsbN",gxold:"O845T02DocUsbN",gxvar:"A845T02DocUsbN",ucs:[],op:[41,36],ip:[41,36,30,25,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A845T02DocUsbN=a
},v2z:function(a){gx.O.Z845T02DocUsbN=a},v2c:function(){gx.fn.setControlValue("T02DOCUSBN",gx.O.A845T02DocUsbN,0)},c2v:function(){gx.O.A845T02DocUsbN=this.val()},val:function(){return gx.fn.getControlValue("T02DOCUSBN")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"T02QTDEMPR",gxz:"Z847T02QtdEmpr",gxold:"O847T02QtdEmpr",gxvar:"A847T02QtdEmpr",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A847T02QtdEmpr=gx.num.intval(a)
},v2z:function(a){gx.O.Z847T02QtdEmpr=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("T02QTDEMPR",gx.O.A847T02QtdEmpr,0)},c2v:function(){gx.O.A847T02QtdEmpr=this.val()},val:function(){return gx.fn.getIntegerValue("T02QTDEMPR",".")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"T02QTDCOMP",gxz:"Z846T02QtdComp",gxold:"O846T02QtdComp",gxvar:"A846T02QtdComp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A846T02QtdComp=gx.num.intval(a)
},v2z:function(a){gx.O.Z846T02QtdComp=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("T02QTDCOMP",gx.O.A846T02QtdComp,0)},c2v:function(){gx.O.A846T02QtdComp=this.val()},val:function(){return gx.fn.getIntegerValue("T02QTDCOMP",".")},nac:function(){return false}};this.A849T02TrnCod="";this.Z849T02TrnCod="";this.O849T02TrnCod="";this.A848T02TipDoct="";this.Z848T02TipDoct="";this.O848T02TipDoct="";this.A845T02DocUsbN="";this.Z845T02DocUsbN="";this.O845T02DocUsbN="";this.A847T02QtdEmpr=0;this.Z847T02QtdEmpr=0;
this.O847T02QtdEmpr=0;this.A846T02QtdComp=0;this.Z846T02QtdComp=0;this.O846T02QtdComp=0;this.ServerEvents=["e120s20_client","e130s20_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tabt027.prototype=new gx.GxObject;gx.setParentObj(new tabt027());