gx.evt.autoSkip=false;function himh049(){this.ServerClass="HImh049";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV15DocNro=gx.fn.getIntegerValue("vDOCNRO",".");this.AV19UndCodAux=gx.fn.getIntegerValue("vUNDCODAUX",".");this.AV20DoeNroSequenciaAux=gx.fn.getIntegerValue("vDOENROSEQUENCIAAUX",".");this.AV21CedNroItem=gx.fn.getIntegerValue("vCEDNROITEM",".");this.AV22CedNroArtigo=gx.fn.getIntegerValue("vCEDNROARTIGO",".")
};this.Validv_Codcampo=function(){try{var a=gx.util.balloon.getNew("vCODCAMPO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Validv_Codsubcampo=function(){try{var a=gx.util.balloon.getNew("vCODSUBCAMPO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e11402_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e12402_client=function(){this.executeServerEvent("ENTER",true)};this.e13402_client=function(){this.executeServerEvent("'MOSTRAR'",false)
};this.e17402_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,14,18,19,20,21,22];this.GXLastCtrlId=22;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",17,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh049",[],false,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");this.Grid1Container.addSingleLineEdit("Nrolinha",18,"vNROLINHA","Linha","","NroLinha","int",0,"px",3,3,"right",null,[],"Nrolinha","NroLinha",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Codcampo",19,"vCODCAMPO","Campo","","CodCampo","char",0,"px",3,3,"left",null,[],"Codcampo","CodCampo",true,0,false,false);this.Grid1Container.addSingleLineEdit("Codsubcampo",20,"vCODSUBCAMPO","Subcampo","","CodSubcampo","char",0,"px",1,1,"left",null,[],"Codsubcampo","CodSubcampo",true,0,false,false);this.Grid1Container.addSingleLineEdit("Atdnro",21,"vATDNRO","Autoridade","","AtdNro","int",0,"px",6,6,"right",null,[],"Atdnro","AtdNro",true,0,false,false);this.Grid1Container.addBitmap("prompt_Atdnro","PROMPT_ATDNRO",24,0,"",0,"",null,"","");
this.Grid1Container.addSingleLineEdit("Nomautoridade",22,"vNOMAUTORIDADE","Nome","","NomAutoridade","char",0,"px",100,100,"left",null,[],"Nomautoridade","NomAutoridade",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[14]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[18]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:17,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNROLINHA",gxz:"ZV9NroLinha",gxold:"OV9NroLinha",gxvar:"AV9NroLinha",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9NroLinha=gx.num.intval(a)
},v2z:function(a){gx.O.ZV9NroLinha=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNROLINHA",gx.fn.currentGridRowImpl(17),gx.O.AV9NroLinha,0)},c2v:function(){gx.O.AV9NroLinha=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNROLINHA",gx.fn.currentGridRowImpl(17),".")},nac:function(){return false}};this.GXValidFnc[19]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:0,grid:17,gxgrid:this.Grid1Container,fnc:this.Validv_Codcampo,isvalid:null,fld:"vCODCAMPO",gxz:"ZV7CodCampo",gxold:"OV7CodCampo",gxvar:"AV7CodCampo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7CodCampo=a
},v2z:function(a){gx.O.ZV7CodCampo=a},v2c:function(){gx.fn.setGridControlValue("vCODCAMPO",gx.fn.currentGridRowImpl(17),gx.O.AV7CodCampo,0)},c2v:function(){gx.O.AV7CodCampo=this.val()},val:function(){return gx.fn.getGridControlValue("vCODCAMPO",gx.fn.currentGridRowImpl(17))},nac:function(){return false}};this.GXValidFnc[20]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:17,gxgrid:this.Grid1Container,fnc:this.Validv_Codsubcampo,isvalid:null,fld:"vCODSUBCAMPO",gxz:"ZV8CodSubcampo",gxold:"OV8CodSubcampo",gxvar:"AV8CodSubcampo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8CodSubcampo=a
},v2z:function(a){gx.O.ZV8CodSubcampo=a},v2c:function(){gx.fn.setGridControlValue("vCODSUBCAMPO",gx.fn.currentGridRowImpl(17),gx.O.AV8CodSubcampo,0)},c2v:function(){gx.O.AV8CodSubcampo=this.val()},val:function(){return gx.fn.getGridControlValue("vCODSUBCAMPO",gx.fn.currentGridRowImpl(17))},nac:function(){return false}};this.GXValidFnc[21]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:17,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vATDNRO",gxz:"ZV23AtdNro",gxold:"OV23AtdNro",gxvar:"AV23AtdNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV23AtdNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV23AtdNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vATDNRO",gx.fn.currentGridRowImpl(17),gx.O.AV23AtdNro,0)},c2v:function(){gx.O.AV23AtdNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("vATDNRO",gx.fn.currentGridRowImpl(17),".")},nac:function(){return false}};this.GXValidFnc[22]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:0,grid:17,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vNOMAUTORIDADE",gxz:"ZV28NomAutoridade",gxold:"OV28NomAutoridade",gxvar:"AV28NomAutoridade",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV28NomAutoridade=a
},v2z:function(a){gx.O.ZV28NomAutoridade=a},v2c:function(){gx.fn.setGridControlValue("vNOMAUTORIDADE",gx.fn.currentGridRowImpl(17),gx.O.AV28NomAutoridade,0)},c2v:function(){gx.O.AV28NomAutoridade=this.val()},val:function(){return gx.fn.getGridControlValue("vNOMAUTORIDADE",gx.fn.currentGridRowImpl(17))},nac:function(){return false}};this.ZV9NroLinha=0;this.OV9NroLinha=0;this.ZV7CodCampo="";this.OV7CodCampo="";this.ZV8CodSubcampo="";this.OV8CodSubcampo="";this.ZV23AtdNro=0;this.OV23AtdNro=0;this.ZV28NomAutoridade="";
this.OV28NomAutoridade="";this.AV15DocNro=0;this.AV19UndCodAux=0;this.AV20DoeNroSequenciaAux=0;this.AV21CedNroItem=0;this.AV22CedNroArtigo=0;this.AV9NroLinha=0;this.AV7CodCampo="";this.AV8CodSubcampo="";this.AV23AtdNro=0;this.AV28NomAutoridade="";this.A767ScdNroSeqS=0;this.A765ScdNroAgru=0;this.A114CedNroRepC=0;this.A115CedNroSeqC=0;this.A112CedNroArti=0;this.A113CedNroItem=0;this.A258DocNro=0;this.A768ScdTipEnti="";this.A766ScdNroRepS=0;this.A116CedVal1Ind="";this.A209DisCodSubc="";this.A202DicNroSequ=0;
this.A203DicTipMate="";this.A211DisIndRecu="";this.A216DisNroSequ=0;this.A217DisTipEnti="";this.A200DicNroEtiq="";this.A251DocIndRote="";this.A865TidCodDici="";this.A863TidCod="";this.ServerEvents=["e11402_client","e12402_client","e13402_client","e17402_client"];this.setPrompt("PROMPT_ATDNRO",[21]);this.EnterCtrl=["CONFIRMAR"];this.VarControlMap.AV15DocNro={id:"vDOCNRO",grid:0,type:"int"};this.VarControlMap.AV19UndCodAux={id:"vUNDCODAUX",grid:0,type:"int"};this.VarControlMap.AV20DoeNroSequenciaAux={id:"vDOENROSEQUENCIAAUX",grid:0,type:"int"};
this.VarControlMap.AV21CedNroItem={id:"vCEDNROITEM",grid:0,type:"int"};this.VarControlMap.AV22CedNroArtigo={id:"vCEDNROARTIGO",grid:0,type:"int"};this.VarControlMap.AV45IndExecutouEnter={id:"vINDEXECUTOUENTER",grid:0,type:"char"};this.Grid1Container.addRefreshingVar({rfrVar:"AV45IndExecutouEnter"});this.SetStandaloneVars()}himh049.prototype=new gx.GxObject;gx.setParentObj(new himh049());