gx.evt.autoSkip=false;function habw112(){this.ServerClass="Habw112";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV17TipCadastro=gx.fn.getControlValue("vTIPCADASTRO")};this.e111y2_client=function(){this.executeServerEvent("ENTER",true)};this.e151y1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,5,14,20,23,25,27,29,32,36];this.GXLastCtrlId=36;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",35,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"habw112",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("Docsobra",36,"vDOCSOBRA","","","DocSobra","int",0,"px",6,6,"right",null,[],"Docsobra","DocSobra",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[5]={fld:"TABLE3",grid:0};this.GXValidFnc[14]={fld:"TITULO",format:0,grid:0};this.GXValidFnc[20]={fld:"TABLE2",grid:0};this.GXValidFnc[23]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[25]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vPOSINI",gxz:"ZV6PosIni",gxold:"OV6PosIni",gxvar:"AV6PosIni",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6PosIni=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6PosIni=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vPOSINI",gx.O.AV6PosIni,0)},c2v:function(){gx.O.AV6PosIni=this.val()},val:function(){return gx.fn.getIntegerValue("vPOSINI",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vPOSFIM",gxz:"ZV7PosFim",gxold:"OV7PosFim",gxvar:"AV7PosFim",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7PosFim=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7PosFim=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vPOSFIM",gx.O.AV7PosFim,0)},c2v:function(){gx.O.AV7PosFim=this.val()},val:function(){return gx.fn.getIntegerValue("vPOSFIM",".")},nac:function(){return false}};this.GXValidFnc[32]={lvl:0,type:"char",len:32,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCMAIORDOCUMENTO",gxz:"ZV8DscMaiorDocumento",gxold:"OV8DscMaiorDocumento",gxvar:"AV8DscMaiorDocumento",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8DscMaiorDocumento=a
},v2z:function(a){gx.O.ZV8DscMaiorDocumento=a},v2c:function(){gx.fn.setControlValue("vDSCMAIORDOCUMENTO",gx.O.AV8DscMaiorDocumento,0)},c2v:function(){gx.O.AV8DscMaiorDocumento=this.val()},val:function(){return gx.fn.getControlValue("vDSCMAIORDOCUMENTO")},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:35,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vDOCSOBRA",gxz:"ZV10DocSobra",gxold:"OV10DocSobra",gxvar:"AV10DocSobra",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10DocSobra=gx.num.intval(a)
},v2z:function(a){gx.O.ZV10DocSobra=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vDOCSOBRA",gx.fn.currentGridRowImpl(35),gx.O.AV10DocSobra,0)},c2v:function(){gx.O.AV10DocSobra=this.val()},val:function(){return gx.fn.getGridIntegerValue("vDOCSOBRA",gx.fn.currentGridRowImpl(35),".")},nac:function(){return false}};this.AV6PosIni=0;this.ZV6PosIni=0;this.OV6PosIni=0;this.AV7PosFim=0;this.ZV7PosFim=0;this.OV7PosFim=0;this.AV8DscMaiorDocumento="";this.ZV8DscMaiorDocumento="";this.OV8DscMaiorDocumento="";
this.ZV10DocSobra=0;this.OV10DocSobra=0;this.AV17TipCadastro="";this.AV10DocSobra=0;this.A258DocNro=0;this.A259DocNroPubl="";this.ServerEvents=["e111y2_client","e151y1_client"];this.EnterCtrl=["BUTTON1"];this.VarControlMap.AV17TipCadastro={id:"vTIPCADASTRO",grid:0,type:"char"};this.VarControlMap.AV13QtdAchado={id:"vQTDACHADO",grid:0,type:"int"};this.VarControlMap.A259DocNroPubl={id:"DOCNROPUBL",grid:0,type:"char"};this.VarControlMap.AV17TipCadastro={id:"vTIPCADASTRO",grid:0,type:"char"};this.Grid1Container.addRefreshingVar({rfrVar:"AV13QtdAchado"});
this.Grid1Container.addRefreshingVar({rfrVar:"A259DocNroPubl"});this.Grid1Container.addRefreshingVar({rfrVar:"AV17TipCadastro"});this.Grid1Container.addRefreshingVar(this.GXValidFnc[25]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[29]);this.SetStandaloneVars()}habw112.prototype=new gx.GxObject;gx.setParentObj(new habw112());