gx.evt.autoSkip=false;function hged01(){this.ServerClass="HGed01";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.e153f1_client=function(){this.clearMessages();this.refreshOutputs([])};this.e113f2_client=function(){this.executeServerEvent("ENTER",true)};this.e163f2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,6,20,23,25,29,30];this.GXLastCtrlId=30;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",28,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hged01",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");
this.Grid1Container.addSingleLineEdit("Nrolinha",29,"vNROLINHA","Linha","","NroLinha","int",0,"px",4,4,"right",null,[],"Nrolinha","NroLinha",true,0,false,false);this.Grid1Container.addSingleLineEdit("Docnro",30,"vDOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],"Docnro","DocNro",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[6]={fld:"TABLE1",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:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vNROLINHAINICIAL",gxz:"ZV7NroLinhaInicial",gxold:"OV7NroLinhaInicial",gxvar:"AV7NroLinhaInicial",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7NroLinhaInicial=gx.num.intval(a)},v2z:function(a){gx.O.ZV7NroLinhaInicial=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vNROLINHAINICIAL",gx.O.AV7NroLinhaInicial,0)},c2v:function(){gx.O.AV7NroLinhaInicial=this.val()
},val:function(){return gx.fn.getIntegerValue("vNROLINHAINICIAL",".")},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:28,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNROLINHA",gxz:"ZV6NroLinha",gxold:"OV6NroLinha",gxvar:"AV6NroLinha",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6NroLinha=gx.num.intval(a)},v2z:function(a){gx.O.ZV6NroLinha=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNROLINHA",gx.fn.currentGridRowImpl(28),gx.O.AV6NroLinha,0)
},c2v:function(){gx.O.AV6NroLinha=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNROLINHA",gx.fn.currentGridRowImpl(28),".")},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:28,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vDOCNRO",gxz:"ZV5DocNro",gxold:"OV5DocNro",gxvar:"AV5DocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5DocNro=gx.num.intval(a)},v2z:function(a){gx.O.ZV5DocNro=gx.num.intval(a)
},v2c:function(){gx.fn.setGridControlValue("vDOCNRO",gx.fn.currentGridRowImpl(28),gx.O.AV5DocNro,0)},c2v:function(){gx.O.AV5DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("vDOCNRO",gx.fn.currentGridRowImpl(28),".")},nac:function(){return false}};this.AV7NroLinhaInicial=0;this.ZV7NroLinhaInicial=0;this.OV7NroLinhaInicial=0;this.ZV6NroLinha=0;this.OV6NroLinha=0;this.ZV5DocNro=0;this.OV5DocNro=0;this.AV6NroLinha=0;this.AV5DocNro=0;this.ServerEvents=["e113f2_client","e163f2_client"];
this.EnterCtrl=["BUTTON1"];this.SetStandaloneVars()}hged01.prototype=new gx.GxObject;gx.setParentObj(new hged01());