gx.evt.autoSkip=false;function habw029(){this.ServerClass="Habw029";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.e11282_client=function(){this.executeServerEvent("ENTER",true)};this.e14281_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,12,15,18,20,22,24,27,31];this.GXLastCtrlId=31;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",30,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"habw029",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("Tomsobra",31,"vTOMSOBRA","Tombo disponível para uso","","TomSobra","int",0,"px",9,9,"right",null,[],"Tomsobra","TomSobra",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[15]={fld:"TABLE2",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[20]={lvl:0,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vPOSINI",gxz:"ZV11PosIni",gxold:"OV11PosIni",gxvar:"AV11PosIni",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11PosIni=gx.num.intval(a)
},v2z:function(a){gx.O.ZV11PosIni=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vPOSINI",gx.O.AV11PosIni,0)},c2v:function(){gx.O.AV11PosIni=this.val()},val:function(){return gx.fn.getIntegerValue("vPOSINI",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vPOSFIM",gxz:"ZV12PosFim",gxold:"OV12PosFim",gxvar:"AV12PosFim",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12PosFim=gx.num.intval(a)
},v2z:function(a){gx.O.ZV12PosFim=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vPOSFIM",gx.O.AV12PosFim,0)},c2v:function(){gx.O.AV12PosFim=this.val()},val:function(){return gx.fn.getIntegerValue("vPOSFIM",".")},nac:function(){return false}};this.GXValidFnc[27]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCMAIORTOMBO",gxz:"ZV18DscMaiorTombo",gxold:"OV18DscMaiorTombo",gxvar:"AV18DscMaiorTombo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV18DscMaiorTombo=a
},v2z:function(a){gx.O.ZV18DscMaiorTombo=a},v2c:function(){gx.fn.setControlValue("vDSCMAIORTOMBO",gx.O.AV18DscMaiorTombo,0)},c2v:function(){gx.O.AV18DscMaiorTombo=this.val()},val:function(){return gx.fn.getControlValue("vDSCMAIORTOMBO")},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZZZZ9",ro:1,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vTOMSOBRA",gxz:"ZV19TomSobra",gxold:"OV19TomSobra",gxvar:"AV19TomSobra",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV19TomSobra=gx.num.intval(a)
},v2z:function(a){gx.O.ZV19TomSobra=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vTOMSOBRA",gx.fn.currentGridRowImpl(30),gx.O.AV19TomSobra,0)},c2v:function(){gx.O.AV19TomSobra=this.val()},val:function(){return gx.fn.getGridIntegerValue("vTOMSOBRA",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.AV11PosIni=0;this.ZV11PosIni=0;this.OV11PosIni=0;this.AV12PosFim=0;this.ZV12PosFim=0;this.OV12PosFim=0;this.AV18DscMaiorTombo="";this.ZV18DscMaiorTombo="";this.OV18DscMaiorTombo="";
this.ZV19TomSobra=0;this.OV19TomSobra=0;this.AV19TomSobra=0;this.A315DvoNroTomb=0;this.ServerEvents=["e11282_client","e14281_client"];this.EnterCtrl=["BUTTON1"];this.VarControlMap.AV10QtdAchado={id:"vQTDACHADO",grid:0,type:"int"};this.VarControlMap.AV17TomboAtual={id:"vTOMBOATUAL",grid:0,type:"int"};this.VarControlMap.AV16TomboAnt={id:"vTOMBOANT",grid:0,type:"int"};this.VarControlMap.A315DvoNroTomb={id:"DVONROTOMB",grid:0,type:"int"};this.VarControlMap.AV9UltTombo={id:"vULTTOMBO",grid:0,type:"int"};
this.Grid1Container.addRefreshingVar({rfrVar:"AV10QtdAchado"});this.Grid1Container.addRefreshingVar({rfrVar:"AV17TomboAtual"});this.Grid1Container.addRefreshingVar({rfrVar:"AV16TomboAnt"});this.Grid1Container.addRefreshingVar({rfrVar:"A315DvoNroTomb"});this.Grid1Container.addRefreshingVar({rfrVar:"AV9UltTombo"});this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[20]);this.SetStandaloneVars()}habw029.prototype=new gx.GxObject;gx.setParentObj(new habw029());