/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:33:42.22
*/
gx.evt.autoSkip=!1;gx.define("himh164",!1,function(){var n,t;this.ServerClass="himh164";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=!0;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){this.A255AtdNro=gx.fn.getIntegerValue("ATDNRO",".");this.A256AtdCodCamp=gx.fn.getControlValue("ATDCODCAMP");this.AV5AtdNroAnterior=gx.fn.getIntegerValue("vATDNROANTERIOR",".")};this.e127i2_client=function(){return this.executeServerEvent("ENTER",!0,arguments[0],!1,!1)};this.e147i1_client=function(){return this.executeServerEvent("CANCEL",!0,null,!1,!1)};this.GXValidFnc=[];n=this.GXValidFnc;this.GXCtrlIds=[2,3,4,5,6,9,12,14,16,19,20,22,23];this.GXLastCtrlId=23;this.Grid2Container=new gx.grid.grid(this,2,"WbpLvl2",21,"Grid2","Grid2","Grid2Container",this.CmpContext,this.IsMasterPage,"himh164",[],!1,1,!1,!0,0,!1,!1,!1,"",0,"px",0,"px","Novo registro",!1,!1,!1,null,null,!1,"",!1,[1,1,1,1],!1,0,!0,!1);t=this.Grid2Container;t.addSingleLineEdit("Dsclinha",22,"vDSCLINHA","","","DscLinha","char",0,"px",34,34,"left",null,[],"Dsclinha","DscLinha",!0,0,!1,!1,"Attribute",1,"");t.addSingleLineEdit("Dsccodigo",23,"vDSCCODIGO","","","DscCodigo","char",0,"px",31,31,"left",null,[],"Dsccodigo","DscCodigo",!0,0,!1,!1,"Attribute",1,"");this.Grid2Container.emptyText="";this.setGrid(t);n[2]={id:2,fld:"",grid:0};n[3]={id:3,fld:"MAINTABLE",grid:0};n[4]={id:4,fld:"",grid:0};n[5]={id:5,fld:"",grid:0};n[6]={id:6,fld:"CABECALHOPOPUP",grid:0};n[9]={id:9,fld:"CABECALHOPOPUP_TABLE1",grid:0};n[12]={id:12,fld:"CABECALHOPOPUP_VOLTAR",grid:0,evt:"e147i1_client"};n[14]={id:14,fld:"CABECALHOPOPUP_HELP",grid:0,evt:"e157i1_client"};n[16]={id:16,fld:"CABECALHOPOPUP_REFRESH",grid:0,evt:"e167i1_client"};n[19]={id:19,fld:"",grid:0};n[20]={id:20,fld:"",grid:0};n[22]={id:22,lvl:2,type:"char",len:34,dec:0,sign:!1,ro:1,isacc:0,grid:21,gxgrid:this.Grid2Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vDSCLINHA",gxz:"ZV7DscLinha",gxold:"OV7DscLinha",gxvar:"AV7DscLinha",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){n!==undefined&&(gx.O.AV7DscLinha=n)},v2z:function(n){n!==undefined&&(gx.O.ZV7DscLinha=n)},v2c:function(n){gx.fn.setGridControlValue("vDSCLINHA",n||gx.fn.currentGridRowImpl(21),gx.O.AV7DscLinha,0)},c2v:function(n){this.val(n)!==undefined&&(gx.O.AV7DscLinha=this.val(n))},val:function(n){return gx.fn.getGridControlValue("vDSCLINHA",n||gx.fn.currentGridRowImpl(21))},nac:gx.falseFn};n[23]={id:23,lvl:2,type:"char",len:31,dec:0,sign:!1,ro:1,isacc:0,grid:21,gxgrid:this.Grid2Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vDSCCODIGO",gxz:"ZV6DscCodigo",gxold:"OV6DscCodigo",gxvar:"AV6DscCodigo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){n!==undefined&&(gx.O.AV6DscCodigo=n)},v2z:function(n){n!==undefined&&(gx.O.ZV6DscCodigo=n)},v2c:function(n){gx.fn.setGridControlValue("vDSCCODIGO",n||gx.fn.currentGridRowImpl(21),gx.O.AV6DscCodigo,0)},c2v:function(n){this.val(n)!==undefined&&(gx.O.AV6DscCodigo=this.val(n))},val:function(n){return gx.fn.getGridControlValue("vDSCCODIGO",n||gx.fn.currentGridRowImpl(21))},nac:gx.falseFn};this.ZV7DscLinha="";this.OV7DscLinha="";this.ZV6DscCodigo="";this.OV6DscCodigo="";this.AV7DscLinha="";this.AV6DscCodigo="";this.A256AtdCodCamp="";this.A255AtdNro=0;this.AV5AtdNroAnterior=0;this.Events={e127i2_client:["ENTER",!0],e147i1_client:["CANCEL",!0]};this.EvtParms.REFRESH=[[{av:"GRID2_nFirstRecordOnPage"},{av:"GRID2_nEOF"},{av:"A255AtdNro",fld:"ATDNRO",pic:"ZZZZZ9"},{av:"A256AtdCodCamp",fld:"ATDCODCAMP",pic:""},{av:"AV5AtdNroAnterior",fld:"vATDNROANTERIOR",pic:"ZZZZZ9"}],[]];this.EvtParms.START=[[],[]];this.EvtParms.ENTER=[[],[]];this.EvtParms.LOAD=[[{av:"A255AtdNro",fld:"ATDNRO",pic:"ZZZZZ9"},{av:"A256AtdCodCamp",fld:"ATDCODCAMP",pic:""},{av:"AV5AtdNroAnterior",fld:"vATDNROANTERIOR",pic:"ZZZZZ9"}],[{av:"AV7DscLinha",fld:"vDSCLINHA",pic:""},{av:"AV6DscCodigo",fld:"vDSCCODIGO",pic:""},{av:"AV5AtdNroAnterior",fld:"vATDNROANTERIOR",pic:"ZZZZZ9"}]];this.setVCMap("A255AtdNro","ATDNRO",0,"int",6,0);this.setVCMap("A256AtdCodCamp","ATDCODCAMP",0,"char",3,0);this.setVCMap("AV5AtdNroAnterior","vATDNROANTERIOR",0,"int",6,0);this.setVCMap("A255AtdNro","ATDNRO",0,"int",6,0);this.setVCMap("A256AtdCodCamp","ATDCODCAMP",0,"char",3,0);this.setVCMap("AV5AtdNroAnterior","vATDNROANTERIOR",0,"int",6,0);t.addRefreshingVar({rfrVar:"A255AtdNro"});t.addRefreshingVar({rfrVar:"A256AtdCodCamp"});t.addRefreshingVar({rfrVar:"AV5AtdNroAnterior"});t.addRefreshingParm({rfrVar:"A255AtdNro"});t.addRefreshingParm({rfrVar:"A256AtdCodCamp"});t.addRefreshingParm({rfrVar:"AV5AtdNroAnterior"});this.Initialize()});gx.setParentObj(new himh164)