/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:34:51.39
*/
gx.evt.autoSkip=!1;gx.define("hged01",!1,function(){var n,t;this.ServerClass="hged01";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=!0;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){};this.e159f1_client=function(){return this.clearMessages(),this.refreshOutputs([]),gx.$.Deferred().resolve()};this.e119f2_client=function(){return this.executeServerEvent("ENTER",!0,null,!1,!1)};this.e169f2_client=function(){return this.executeServerEvent("CANCEL",!0,arguments[0],!1,!1)};this.GXValidFnc=[];n=this.GXValidFnc;this.GXCtrlIds=[3,6,9,11,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",[],!1,1,!1,!0,0,!1,!1,!1,"",0,"px",0,"px","Novo registro",!1,!1,!0,null,null,!1,"",!1,[1,1,1,1],!1,0,!1,!1);t=this.Grid1Container;t.addSingleLineEdit("Nrolinha",29,"vNROLINHA","Linha","","NroLinha","int",0,"px",4,4,"right",null,[],"Nrolinha","NroLinha",!0,0,!1,!1,"Attribute",1,"");t.addSingleLineEdit("Docnro",30,"vDOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],"Docnro","DocNro",!0,0,!1,!1,"Attribute",1,"");this.Grid1Container.emptyText="";this.setGrid(t);n[3]={id:3,fld:"TEXTBLOCK1",format:0,grid:0};n[6]={id:6,fld:"TABLE1",grid:0};n[9]={id:9,fld:"BUTTON1",grid:0,evt:"e119f2_client",std:"ENTER"};n[11]={id:11,fld:"BUTTON3",grid:0,evt:"e159f1_client"};n[20]={id:20,fld:"TABLE2",grid:0};n[23]={id:23,fld:"TEXTBLOCK2",format:0,grid:0};n[25]={id:25,lvl:0,type:"int",len:4,dec:0,sign:!1,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vNROLINHAINICIAL",gxz:"ZV7NroLinhaInicial",gxold:"OV7NroLinhaInicial",gxvar:"AV7NroLinhaInicial",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.AV7NroLinhaInicial=gx.num.intval(n))},v2z:function(n){n!==undefined&&(gx.O.ZV7NroLinhaInicial=gx.num.intval(n))},v2c:function(){gx.fn.setControlValue("vNROLINHAINICIAL",gx.O.AV7NroLinhaInicial,0)},c2v:function(){this.val()!==undefined&&(gx.O.AV7NroLinhaInicial=gx.num.intval(this.val()))},val:function(){return gx.fn.getIntegerValue("vNROLINHAINICIAL",".")},nac:gx.falseFn};n[29]={id:29,lvl:2,type:"int",len:4,dec:0,sign:!1,pic:"ZZZ9",ro:0,isacc:0,grid:28,gxgrid:this.Grid1Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vNROLINHA",gxz:"ZV6NroLinha",gxold:"OV6NroLinha",gxvar:"AV6NroLinha",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"number",v2v:function(n){n!==undefined&&(gx.O.AV6NroLinha=gx.num.intval(n))},v2z:function(n){n!==undefined&&(gx.O.ZV6NroLinha=gx.num.intval(n))},v2c:function(n){gx.fn.setGridControlValue("vNROLINHA",n||gx.fn.currentGridRowImpl(28),gx.O.AV6NroLinha,0)},c2v:function(n){this.val(n)!==undefined&&(gx.O.AV6NroLinha=gx.num.intval(this.val(n)))},val:function(n){return gx.fn.getGridIntegerValue("vNROLINHA",n||gx.fn.currentGridRowImpl(28),".")},nac:gx.falseFn};n[30]={id:30,lvl:2,type:"int",len:6,dec:0,sign:!1,pic:"ZZZZZ9",ro:0,isacc:0,grid:28,gxgrid:this.Grid1Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vDOCNRO",gxz:"ZV5DocNro",gxold:"OV5DocNro",gxvar:"AV5DocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"number",v2v:function(n){n!==undefined&&(gx.O.AV5DocNro=gx.num.intval(n))},v2z:function(n){n!==undefined&&(gx.O.ZV5DocNro=gx.num.intval(n))},v2c:function(n){gx.fn.setGridControlValue("vDOCNRO",n||gx.fn.currentGridRowImpl(28),gx.O.AV5DocNro,0)},c2v:function(n){this.val(n)!==undefined&&(gx.O.AV5DocNro=gx.num.intval(this.val(n)))},val:function(n){return gx.fn.getGridIntegerValue("vDOCNRO",n||gx.fn.currentGridRowImpl(28),".")},nac:gx.falseFn};this.AV7NroLinhaInicial=0;this.ZV7NroLinhaInicial=0;this.OV7NroLinhaInicial=0;this.ZV6NroLinha=0;this.OV6NroLinha=0;this.ZV5DocNro=0;this.OV5DocNro=0;this.AV7NroLinhaInicial=0;this.AV6NroLinha=0;this.AV5DocNro=0;this.Events={e119f2_client:["ENTER",!0],e169f2_client:["CANCEL",!0],e159f1_client:["'VOLTAR'",!1]};this.EvtParms.REFRESH=[[{av:"GRID1_nFirstRecordOnPage"},{av:"GRID1_nEOF"}],[]];this.EvtParms["'VOLTAR'"]=[[],[]];this.EvtParms.START=[[],[{av:"AV7NroLinhaInicial",fld:"vNROLINHAINICIAL",pic:"ZZZ9"}]];this.EvtParms.LOAD=[[],[{av:"AV6NroLinha",fld:"vNROLINHA",pic:"ZZZ9"},{av:"AV5DocNro",fld:"vDOCNRO",pic:"ZZZZZ9"}]];this.EvtParms.ENTER=[[{av:"AV6NroLinha",fld:"vNROLINHA",grid:28,pic:"ZZZ9"},{av:"GRID1_nFirstRecordOnPage"},{av:"nRC_GXsfl_28",ctrl:"GRID1",grid:28,prop:"GridRC"},{av:"AV7NroLinhaInicial",fld:"vNROLINHAINICIAL",pic:"ZZZ9"},{av:"AV5DocNro",fld:"vDOCNRO",grid:28,pic:"ZZZZZ9"}],[]];this.EnterCtrl=["BUTTON1"];this.Initialize()});gx.setParentObj(new hged01)