gx.evt.autoSkip=false;function himh009(){this.ServerClass="HImh009";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.addKeyListener("3","e11482_client");this.SetStandaloneVars=function(){this.AV60HstTipEntidade=gx.fn.getControlValue("vHSTTIPENTIDADE");this.AV58VncCodOrigem=gx.fn.getControlValue("vVNCCODORIGEM");this.AV12DocTipMaterial=gx.fn.getControlValue("vDOCTIPMATERIAL");this.AV71ScdCodEntidade=gx.fn.getControlValue("vSCDCODENTIDADE");this.AV70OrigemAut=gx.fn.getControlValue("vORIGEMAUT")
};this.Validv_Atdnro=function(){try{var a=gx.util.balloon.getNew("vATDNRO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Validv_Dicnroetiqueta=function(){try{var a=gx.util.balloon.getNew("vDICNROETIQUETA");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Validv_Discodsubcampo=function(){try{var a=gx.util.balloon.getNew("vDISCODSUBCAMPO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()
}catch(b){}return true};this.Validv_Catnrorepcampo=function(){try{var a=gx.util.balloon.getNew("vCATNROREPCAMPO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Validv_Satnrorepsubcampo=function(){try{var a=gx.util.balloon.getNew("vSATNROREPSUBCAMPO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.s122_client=function(){if((0==this.AV15CatNroRepCampo)){this.AV18TemErro="S";this.Gx_msg="Informe o número de repetição do campo"
}if(this.AV15CatNroRepCampo>1&&this.AV32DicIndCampoRepetitivo=="NR"){this.AV18TemErro="S";this.Gx_msg="Este campo não é repetitivo"}};this.s162_client=function(){if((0==this.AV17SatNroRepSubcampo)){this.AV18TemErro="S";this.Gx_msg="Informe o número de repetição do subcampo"}if(this.AV17SatNroRepSubcampo>1&&this.AV33DisIndSubcampoRepetitivo=="NR"){this.AV18TemErro="S";this.Gx_msg="Este subcampo não é repetitivo"}};this.e33481_client=function(){this.clearMessages();this.AV60HstTipEntidade="A";gx.popup.openUrl(gx.http.formatLink("himh073.aspx",[this.AV60HstTipEntidade,this.AV5AtdNro]),["AV60HstTipEntidade","AV5AtdNro"]);
this.refreshOutputs([{av:"AV60HstTipEntidade",fld:"vHSTTIPENTIDADE"}])};this.e29481_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh017.aspx",[this.AV5AtdNro]),["AV5AtdNro"]);this.refreshOutputs([])};this.e28481_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh016.aspx",[this.AV5AtdNro]),["AV5AtdNro"]);this.refreshOutputs([])};this.e32481_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh174.aspx",[this.AV58VncCodOrigem]),["AV58VncCodOrigem"]);
this.refreshOutputs([])};this.e31481_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh008.aspx",[this.AV12DocTipMaterial]),[]);this.refreshOutputs([])};this.e30481_client=function(){this.clearMessages();this.AV71ScdCodEntidade=gx.text.trim(gx.num.str(this.AV5AtdNro,6,0));gx.popup.openUrl(gx.http.formatLink("himh024.aspx",["AT",this.AV71ScdCodEntidade]),["","AV71ScdCodEntidade"]);this.refreshOutputs([{av:"AV71ScdCodEntidade",fld:"vSCDCODENTIDADE"}])};this.e12482_client=function(){this.executeServerEvent("'APAGA CAMPO'",false)
};this.e13482_client=function(){this.executeServerEvent("'APAGA SUBCAMPO'",false)};this.e14482_client=function(){this.executeServerEvent("'APAGA AUTORIDADE'",false)};this.e15482_client=function(){this.executeServerEvent("ENTER",true)};this.e16482_client=function(){this.executeServerEvent("'NOVA'",false)};this.e11482_client=function(){this.executeServerEvent("'CAMPO 008'",false)};this.e27482_client=function(){this.executeServerEvent("'DOCUMENTOS'",true,arguments[0])};this.e17482_client=function(){this.executeServerEvent("'REVISAR'",false)
};this.e18482_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e19482_client=function(){this.executeServerEvent("'IR PARA'",false)};this.e20482_client=function(){this.executeServerEvent("'|<'",false)};this.e21482_client=function(){this.executeServerEvent("'<'",false)};this.e22482_client=function(){this.executeServerEvent("'>'",false)};this.e23482_client=function(){this.executeServerEvent("'>|'",false)};this.e34482_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])
};this.GXValidFnc=[];this.GXCtrlIds=[3,6,25,34,38,41,44,47,49,52,54,57,59,62,64,67,69,72,74,77,85,86,87,90,99,101,103,104];this.GXLastCtrlId=104;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",84,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"himh009",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Subfile1Container.addSingleLineEdit("Dicnroetiquetagrid",85,"vDICNROETIQUETAGRID","","","DicNroEtiquetaGrid","char",0,"px",3,3,"left",null,[],"Dicnroetiquetagrid","DicNroEtiquetaGrid",true,0,false,false);
this.Subfile1Container.addSingleLineEdit("Valindicador",86,"vVALINDICADOR","","","ValIndicador","char",0,"px",2,2,"left",null,[],"Valindicador","ValIndicador",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Valconteudo",87,"vVALCONTEUDO","","","ValConteudo","vchar",0,"px",36864,36864,"left",null,[],"Valconteudo","ValConteudo",true,250,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[6]={fld:"TABLE7",grid:0};this.GXValidFnc[25]={fld:"VINCULO",grid:0};
this.GXValidFnc[34]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vATDNRONAVEGAR",gxz:"ZV61AtdNroNavegar",gxold:"OV61AtdNroNavegar",gxvar:"AV61AtdNroNavegar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV61AtdNroNavegar=gx.num.intval(a)},v2z:function(a){gx.O.ZV61AtdNroNavegar=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vATDNRONAVEGAR",gx.O.AV61AtdNroNavegar,0)},c2v:function(){gx.O.AV61AtdNroNavegar=this.val()
},val:function(){return gx.fn.getIntegerValue("vATDNRONAVEGAR",".")},nac:function(){return false}};this.GXValidFnc[38]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={fld:"TABLE3",grid:0};this.GXValidFnc[44]={fld:"TABLE2",grid:0};this.GXValidFnc[47]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[49]={fld:"TABLE4",grid:0};this.GXValidFnc[52]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Validv_Atdnro,isvalid:null,rgrid:[],fld:"vATDNRO",gxz:"ZV5AtdNro",gxold:"OV5AtdNro",gxvar:"AV5AtdNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5AtdNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV5AtdNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vATDNRO",gx.O.AV5AtdNro,0)},c2v:function(){gx.O.AV5AtdNro=this.val()},val:function(){return gx.fn.getIntegerValue("vATDNRO",".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCREVISAR",gxz:"ZV64DscRevisar",gxold:"OV64DscRevisar",gxvar:"AV64DscRevisar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV64DscRevisar=a
},v2z:function(a){gx.O.ZV64DscRevisar=a},v2c:function(){gx.fn.setControlValue("vDSCREVISAR",gx.O.AV64DscRevisar,0)},c2v:function(){gx.O.AV64DscRevisar=this.val()},val:function(){return gx.fn.getControlValue("vDSCREVISAR")},nac:function(){return false}};this.GXValidFnc[57]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[59]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Dicnroetiqueta,isvalid:null,fld:"vDICNROETIQUETA",gxz:"ZV14DicNroEtiqueta",gxold:"OV14DicNroEtiqueta",gxvar:"AV14DicNroEtiqueta",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV14DicNroEtiqueta=a
},v2z:function(a){gx.O.ZV14DicNroEtiqueta=a},v2c:function(){gx.fn.setControlValue("vDICNROETIQUETA",gx.O.AV14DicNroEtiqueta,0)},c2v:function(){gx.O.AV14DicNroEtiqueta=this.val()},val:function(){return gx.fn.getControlValue("vDICNROETIQUETA")},nac:function(){return false}};this.GXValidFnc[62]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[64]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Discodsubcampo,isvalid:null,fld:"vDISCODSUBCAMPO",gxz:"ZV16DisCodSubcampo",gxold:"OV16DisCodSubcampo",gxvar:"AV16DisCodSubcampo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV16DisCodSubcampo=a
},v2z:function(a){gx.O.ZV16DisCodSubcampo=a},v2c:function(){gx.fn.setControlValue("vDISCODSUBCAMPO",gx.O.AV16DisCodSubcampo,0)},c2v:function(){gx.O.AV16DisCodSubcampo=this.val()},val:function(){return gx.fn.getControlValue("vDISCODSUBCAMPO")},nac:function(){return false}};this.GXValidFnc[67]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[69]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Validv_Catnrorepcampo,isvalid:null,rgrid:[],fld:"vCATNROREPCAMPO",gxz:"ZV15CatNroRepCampo",gxold:"OV15CatNroRepCampo",gxvar:"AV15CatNroRepCampo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV15CatNroRepCampo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV15CatNroRepCampo=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCATNROREPCAMPO",gx.O.AV15CatNroRepCampo,0)},c2v:function(){gx.O.AV15CatNroRepCampo=this.val()},val:function(){return gx.fn.getIntegerValue("vCATNROREPCAMPO",".")},nac:function(){return false}};this.GXValidFnc[72]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[74]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Validv_Satnrorepsubcampo,isvalid:null,rgrid:[],fld:"vSATNROREPSUBCAMPO",gxz:"ZV17SatNroRepSubcampo",gxold:"OV17SatNroRepSubcampo",gxvar:"AV17SatNroRepSubcampo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17SatNroRepSubcampo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV17SatNroRepSubcampo=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSATNROREPSUBCAMPO",gx.O.AV17SatNroRepSubcampo,0)},c2v:function(){gx.O.AV17SatNroRepSubcampo=this.val()},val:function(){return gx.fn.getIntegerValue("vSATNROREPSUBCAMPO",".")},nac:function(){return false}};this.GXValidFnc[77]={fld:"TABLE5",grid:0};this.GXValidFnc[85]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:84,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vDICNROETIQUETAGRID",gxz:"ZV49DicNroEtiquetaGrid",gxold:"OV49DicNroEtiquetaGrid",gxvar:"AV49DicNroEtiquetaGrid",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV49DicNroEtiquetaGrid=a
},v2z:function(a){gx.O.ZV49DicNroEtiquetaGrid=a},v2c:function(){gx.fn.setGridControlValue("vDICNROETIQUETAGRID",gx.fn.currentGridRowImpl(84),gx.O.AV49DicNroEtiquetaGrid,0)},c2v:function(){gx.O.AV49DicNroEtiquetaGrid=this.val()},val:function(){return gx.fn.getGridControlValue("vDICNROETIQUETAGRID",gx.fn.currentGridRowImpl(84))},nac:function(){return false}};this.GXValidFnc[86]={lvl:2,type:"char",len:2,dec:0,sign:false,ro:1,grid:84,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vVALINDICADOR",gxz:"ZV27ValIndicador",gxold:"OV27ValIndicador",gxvar:"AV27ValIndicador",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV27ValIndicador=a
},v2z:function(a){gx.O.ZV27ValIndicador=a},v2c:function(){gx.fn.setGridControlValue("vVALINDICADOR",gx.fn.currentGridRowImpl(84),gx.O.AV27ValIndicador,0)},c2v:function(){gx.O.AV27ValIndicador=this.val()},val:function(){return gx.fn.getGridControlValue("vVALINDICADOR",gx.fn.currentGridRowImpl(84))},nac:function(){return false}};this.GXValidFnc[87]={lvl:2,type:"vchar",len:36864,dec:250,sign:false,ro:1,grid:84,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vVALCONTEUDO",gxz:"ZV26ValConteudo",gxold:"OV26ValConteudo",gxvar:"AV26ValConteudo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV26ValConteudo=a
},v2z:function(a){gx.O.ZV26ValConteudo=a},v2c:function(){gx.fn.setGridControlValue("vVALCONTEUDO",gx.fn.currentGridRowImpl(84),gx.O.AV26ValConteudo,0)},c2v:function(){gx.O.AV26ValConteudo=this.val()},val:function(){return gx.fn.getGridControlValue("vVALCONTEUDO",gx.fn.currentGridRowImpl(84))},nac:function(){return false}};this.GXValidFnc[90]={fld:"TABLE6",grid:0};this.GXValidFnc[99]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCDOCUMENTOS",gxz:"ZV62DscDocumentos",gxold:"OV62DscDocumentos",gxvar:"AV62DscDocumentos",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV62DscDocumentos=a
},v2z:function(a){gx.O.ZV62DscDocumentos=a},v2c:function(){gx.fn.setControlValue("vDSCDOCUMENTOS",gx.O.AV62DscDocumentos,0)},c2v:function(){gx.O.AV62DscDocumentos=this.val()},val:function(){return gx.fn.getControlValue("vDSCDOCUMENTOS")},nac:function(){return false}};this.GXValidFnc[101]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCDICIONARIO",gxz:"ZV9DscDicionario",gxold:"OV9DscDicionario",gxvar:"AV9DscDicionario",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9DscDicionario=a
},v2z:function(a){gx.O.ZV9DscDicionario=a},v2c:function(){gx.fn.setControlValue("vDSCDICIONARIO",gx.O.AV9DscDicionario,0)},c2v:function(){gx.O.AV9DscDicionario=this.val()},val:function(){return gx.fn.getControlValue("vDSCDICIONARIO")},nac:function(){return false}};this.GXValidFnc[103]={fld:"PROMPT_DICNROETIQUETA",grid:0};this.GXValidFnc[104]={fld:"PROMPT_DISCODSUBCAMPO",grid:0};this.AV61AtdNroNavegar=0;this.ZV61AtdNroNavegar=0;this.OV61AtdNroNavegar=0;this.AV5AtdNro=0;this.ZV5AtdNro=0;this.OV5AtdNro=0;
this.AV64DscRevisar="";this.ZV64DscRevisar="";this.OV64DscRevisar="";this.AV14DicNroEtiqueta="";this.ZV14DicNroEtiqueta="";this.OV14DicNroEtiqueta="";this.AV16DisCodSubcampo="";this.ZV16DisCodSubcampo="";this.OV16DisCodSubcampo="";this.AV15CatNroRepCampo=0;this.ZV15CatNroRepCampo=0;this.OV15CatNroRepCampo=0;this.AV17SatNroRepSubcampo=0;this.ZV17SatNroRepSubcampo=0;this.OV17SatNroRepSubcampo=0;this.ZV49DicNroEtiquetaGrid="";this.OV49DicNroEtiquetaGrid="";this.ZV27ValIndicador="";this.OV27ValIndicador="";
this.ZV26ValConteudo="";this.OV26ValConteudo="";this.AV62DscDocumentos="";this.ZV62DscDocumentos="";this.OV62DscDocumentos="";this.AV9DscDicionario="";this.ZV9DscDicionario="";this.OV9DscDicionario="";this.AV70OrigemAut="";this.AV49DicNroEtiquetaGrid="";this.AV27ValIndicador="";this.AV26ValConteudo="";this.A756SatNroRepS=0;this.A757SatNroSeqS=0;this.A89CatNroRepC=0;this.A90CatNroSeqC=0;this.A63AtdNro=0;this.A92CatVal2Ind="";this.A91CatVal1Ind="";this.A209DisCodSubc="";this.A202DicNroSequ=0;this.A203DicTipMate="";
this.A214DisNomSubc="";this.A216DisNroSequ=0;this.A213DisIndSubc="";this.A211DisIndRecu="";this.A204DicValIndi="";this.A217DisTipEnti="";this.A200DicNroEtiq="";this.A198DicNomCamp="";this.A197DicIndCamp="";this.A754SatCampo1L="";this.A64AtdValCamp="";this.AV60HstTipEntidade="";this.AV58VncCodOrigem="";this.AV12DocTipMaterial="";this.AV71ScdCodEntidade="";this.AV32DicIndCampoRepetitivo="";this.Gx_msg="";this.AV18TemErro="";this.AV33DisIndSubcampoRepetitivo="";this.ServerEvents=["e12482_client","e13482_client","e14482_client","e15482_client","e16482_client","e11482_client","e27482_client","e17482_client","e18482_client","e19482_client","e20482_client","e21482_client","e22482_client","e23482_client","e34482_client"];
this.setPrompt("PROMPT_DICNROETIQUETA",[59]);this.setPrompt("PROMPT_DISCODSUBCAMPO",[64]);this.EnterCtrl=["BUTTON1"];this.VarControlMap.AV60HstTipEntidade={id:"vHSTTIPENTIDADE",grid:0,type:"char"};this.VarControlMap.AV58VncCodOrigem={id:"vVNCCODORIGEM",grid:0,type:"char"};this.VarControlMap.AV12DocTipMaterial={id:"vDOCTIPMATERIAL",grid:0,type:"char"};this.VarControlMap.AV71ScdCodEntidade={id:"vSCDCODENTIDADE",grid:0,type:"char"};this.VarControlMap.AV70OrigemAut={id:"vORIGEMAUT",grid:0,type:"char"};
this.VarControlMap.A200DicNroEtiq={id:"DICNROETIQ",grid:0,type:"char"};this.VarControlMap.A92CatVal2Ind={id:"CATVAL2IND",grid:0,type:"char"};this.VarControlMap.A91CatVal1Ind={id:"CATVAL1IND",grid:0,type:"char"};this.VarControlMap.A89CatNroRepC={id:"CATNROREPC",grid:0,type:"int"};this.VarControlMap.A90CatNroSeqC={id:"CATNROSEQC",grid:0,type:"int"};this.VarControlMap.A63AtdNro={id:"ATDNRO",grid:0,type:"int"};this.Subfile1Container.addRefreshingVar({rfrVar:"A200DicNroEtiq"});this.Subfile1Container.addRefreshingVar({rfrVar:"A92CatVal2Ind"});
this.Subfile1Container.addRefreshingVar({rfrVar:"A91CatVal1Ind"});this.Subfile1Container.addRefreshingVar({rfrVar:"A89CatNroRepC"});this.Subfile1Container.addRefreshingVar({rfrVar:"A90CatNroSeqC"});this.Subfile1Container.addRefreshingVar({rfrVar:"A63AtdNro"});this.SetStandaloneVars()}himh009.prototype=new gx.GxObject;gx.setParentObj(new himh009());