gx.evt.autoSkip=false;function himh006(){this.ServerClass="HImh006";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV55DisTipValidacao=gx.fn.getControlValue("vDISTIPVALIDACAO");this.AV5DocNro=gx.fn.getIntegerValue("vDOCNRO",".");this.AV52UndCodAux=gx.fn.getIntegerValue("vUNDCODAUX",".");this.AV51DoeNroSequenciaAux=gx.fn.getIntegerValue("vDOENROSEQUENCIAAUX",".");this.AV6CedNroItem=gx.fn.getIntegerValue("vCEDNROITEM",".");this.AV7CedNroArtigo=gx.fn.getIntegerValue("vCEDNROARTIGO",".");
this.AV14DocTipMaterial=gx.fn.getControlValue("vDOCTIPMATERIAL");this.AV23DicNroSequencia=gx.fn.getIntegerValue("vDICNROSEQUENCIA",".");this.AV20CedNroRepCampo=gx.fn.getIntegerValue("vCEDNROREPCAMPO",".");this.AV30DisNroSequenciaSubcampo=gx.fn.getIntegerValue("vDISNROSEQUENCIASUBCAMPO",".");this.AV24ScdNroAgrupamento=gx.fn.getIntegerValue("vSCDNROAGRUPAMENTO",".");this.AV22ScdNroRepSubcampo=gx.fn.getIntegerValue("vSCDNROREPSUBCAMPO",".");this.AV28ScdTipEntidade=gx.fn.getControlValue("vSCDTIPENTIDADE");
this.AV27ScdCodEntidade=gx.fn.getControlValue("vSCDCODENTIDADE");this.AV44ValIndicadorParm=gx.fn.getControlValue("vVALINDICADORPARM");this.AV35IndJaExisteSubcampo=gx.fn.getControlValue("vINDJAEXISTESUBCAMPO");this.AV45DisIndRecuperar=gx.fn.getControlValue("vDISINDRECUPERAR")};this.e15411_client=function(){this.clearMessages();if(this.AV55DisTipValidacao=="a"){gx.popup.openUrl(gx.http.formatLink("hzcodaut",[this.AV18ValConteudo]),["AV18ValConteudo"])}else{if(this.AV55DisTipValidacao=="b"){gx.popup.openUrl(gx.http.formatLink("hlclassificacoes",[this.AV18ValConteudo]),["AV18ValConteudo"])
}else{this.addMessage("Recurso não ativo para este subcampo")}}this.refreshOutputs([])};this.e12412_client=function(){this.executeServerEvent("ENTER",true)};this.e13412_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e16412_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,6,9,12,14,16,19,21,23,28,31,34,36,39,42,44];this.GXLastCtrlId=44;this.GXValidFnc[3]={fld:"TABLE2",grid:0};this.GXValidFnc[6]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[9]={fld:"TABLE3",grid:0};
this.GXValidFnc[12]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDICNROETIQUETA",gxz:"ZV19DicNroEtiqueta",gxold:"OV19DicNroEtiqueta",gxvar:"AV19DicNroEtiqueta",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV19DicNroEtiqueta=a},v2z:function(a){gx.O.ZV19DicNroEtiqueta=a},v2c:function(){gx.fn.setControlValue("vDICNROETIQUETA",gx.O.AV19DicNroEtiqueta,0)},c2v:function(){gx.O.AV19DicNroEtiqueta=this.val()
},val:function(){return gx.fn.getControlValue("vDICNROETIQUETA")},nac:function(){return false}};this.GXValidFnc[16]={lvl:0,type:"char",len:70,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDICNOMCAMPO",gxz:"ZV25DicNomCampo",gxold:"OV25DicNomCampo",gxvar:"AV25DicNomCampo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV25DicNomCampo=a},v2z:function(a){gx.O.ZV25DicNomCampo=a},v2c:function(){gx.fn.setControlValue("vDICNOMCAMPO",gx.O.AV25DicNomCampo,0)},c2v:function(){gx.O.AV25DicNomCampo=this.val()
},val:function(){return gx.fn.getControlValue("vDICNOMCAMPO")},nac:function(){return false}};this.GXValidFnc[19]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[21]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDISCODSUBCAMPO",gxz:"ZV21DisCodSubcampo",gxold:"OV21DisCodSubcampo",gxvar:"AV21DisCodSubcampo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV21DisCodSubcampo=a},v2z:function(a){gx.O.ZV21DisCodSubcampo=a},v2c:function(){gx.fn.setControlValue("vDISCODSUBCAMPO",gx.O.AV21DisCodSubcampo,0)
},c2v:function(){gx.O.AV21DisCodSubcampo=this.val()},val:function(){return gx.fn.getControlValue("vDISCODSUBCAMPO")},nac:function(){return false}};this.GXValidFnc[23]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDISNOMSUBCAMPO",gxz:"ZV26DisNomSubCampo",gxold:"OV26DisNomSubCampo",gxvar:"AV26DisNomSubCampo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV26DisNomSubCampo=a},v2z:function(a){gx.O.ZV26DisNomSubCampo=a},v2c:function(){gx.fn.setControlValue("vDISNOMSUBCAMPO",gx.O.AV26DisNomSubCampo,0)
},c2v:function(){gx.O.AV26DisNomSubCampo=this.val()},val:function(){return gx.fn.getControlValue("vDISNOMSUBCAMPO")},nac:function(){return false}};this.GXValidFnc[28]={lvl:0,type:"svchar",len:30720,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vINSDSCINSTRUCAO",gxz:"ZV54InsDscInstrucao",gxold:"OV54InsDscInstrucao",gxvar:"AV54InsDscInstrucao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV54InsDscInstrucao=a},v2z:function(a){gx.O.ZV54InsDscInstrucao=a},v2c:function(){gx.fn.setControlValue("vINSDSCINSTRUCAO",gx.O.AV54InsDscInstrucao,0)
},c2v:function(){gx.O.AV54InsDscInstrucao=this.val()},val:function(){return gx.fn.getControlValue("vINSDSCINSTRUCAO")},nac:function(){return false}};this.GXValidFnc[31]={fld:"TABLE4",grid:0};this.GXValidFnc[34]={lvl:0,type:"vchar",len:36864,dec:250,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vVALCONTEUDO",gxz:"ZV18ValConteudo",gxold:"OV18ValConteudo",gxvar:"AV18ValConteudo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV18ValConteudo=a},v2z:function(a){gx.O.ZV18ValConteudo=a
},v2c:function(){gx.fn.setControlValue("vVALCONTEUDO",gx.O.AV18ValConteudo,0)},c2v:function(){gx.O.AV18ValConteudo=this.val()},val:function(){return gx.fn.getControlValue("vVALCONTEUDO")},nac:function(){return false}};this.GXValidFnc[36]={fld:"PROMPT",grid:0};this.GXValidFnc[39]={fld:"TABLE1",grid:0};this.GXValidFnc[42]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"char",len:2,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vVALINDICADOR",gxz:"ZV17ValIndicador",gxold:"OV17ValIndicador",gxvar:"AV17ValIndicador",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17ValIndicador=a
},v2z:function(a){gx.O.ZV17ValIndicador=a},v2c:function(){gx.fn.setControlValue("vVALINDICADOR",gx.O.AV17ValIndicador,0)},c2v:function(){gx.O.AV17ValIndicador=this.val()},val:function(){return gx.fn.getControlValue("vVALINDICADOR")},nac:function(){return false}};this.AV19DicNroEtiqueta="";this.ZV19DicNroEtiqueta="";this.OV19DicNroEtiqueta="";this.AV25DicNomCampo="";this.ZV25DicNomCampo="";this.OV25DicNomCampo="";this.AV21DisCodSubcampo="";this.ZV21DisCodSubcampo="";this.OV21DisCodSubcampo="";this.AV26DisNomSubCampo="";
this.ZV26DisNomSubCampo="";this.OV26DisNomSubCampo="";this.AV54InsDscInstrucao="";this.ZV54InsDscInstrucao="";this.OV54InsDscInstrucao="";this.AV18ValConteudo="";this.ZV18ValConteudo="";this.OV18ValConteudo="";this.AV17ValIndicador="";this.ZV17ValIndicador="";this.OV17ValIndicador="";this.AV5DocNro=0;this.AV52UndCodAux=0;this.AV51DoeNroSequenciaAux=0;this.AV6CedNroItem=0;this.AV7CedNroArtigo=0;this.AV14DocTipMaterial="";this.AV23DicNroSequencia=0;this.AV20CedNroRepCampo=0;this.AV30DisNroSequenciaSubcampo=0;
this.AV24ScdNroAgrupamento=0;this.AV22ScdNroRepSubcampo=0;this.AV28ScdTipEntidade="";this.AV27ScdCodEntidade="";this.AV44ValIndicadorParm="";this.AV35IndJaExisteSubcampo="";this.AV45DisIndRecuperar="";this.A286DoiValOpca="";this.A285DoiNroIndi=0;this.A202DicNroSequ=0;this.A203DicTipMate="";this.A284DoiDesSign="";this.AV55DisTipValidacao="";this.ServerEvents=["e12412_client","e13412_client","e16412_client"];this.EnterCtrl=["BUTTON1"];this.VarControlMap.AV55DisTipValidacao={id:"vDISTIPVALIDACAO",grid:0,type:"char"};
this.VarControlMap.AV5DocNro={id:"vDOCNRO",grid:0,type:"int"};this.VarControlMap.AV52UndCodAux={id:"vUNDCODAUX",grid:0,type:"int"};this.VarControlMap.AV51DoeNroSequenciaAux={id:"vDOENROSEQUENCIAAUX",grid:0,type:"int"};this.VarControlMap.AV6CedNroItem={id:"vCEDNROITEM",grid:0,type:"int"};this.VarControlMap.AV7CedNroArtigo={id:"vCEDNROARTIGO",grid:0,type:"int"};this.VarControlMap.AV14DocTipMaterial={id:"vDOCTIPMATERIAL",grid:0,type:"char"};this.VarControlMap.AV23DicNroSequencia={id:"vDICNROSEQUENCIA",grid:0,type:"int"};
this.VarControlMap.AV20CedNroRepCampo={id:"vCEDNROREPCAMPO",grid:0,type:"int"};this.VarControlMap.AV30DisNroSequenciaSubcampo={id:"vDISNROSEQUENCIASUBCAMPO",grid:0,type:"int"};this.VarControlMap.AV24ScdNroAgrupamento={id:"vSCDNROAGRUPAMENTO",grid:0,type:"int"};this.VarControlMap.AV22ScdNroRepSubcampo={id:"vSCDNROREPSUBCAMPO",grid:0,type:"int"};this.VarControlMap.AV28ScdTipEntidade={id:"vSCDTIPENTIDADE",grid:0,type:"char"};this.VarControlMap.AV27ScdCodEntidade={id:"vSCDCODENTIDADE",grid:0,type:"char"};
this.VarControlMap.AV44ValIndicadorParm={id:"vVALINDICADORPARM",grid:0,type:"char"};this.VarControlMap.AV35IndJaExisteSubcampo={id:"vINDJAEXISTESUBCAMPO",grid:0,type:"char"};this.VarControlMap.AV45DisIndRecuperar={id:"vDISINDRECUPERAR",grid:0,type:"char"};this.SetStandaloneVars()}himh006.prototype=new gx.GxObject;gx.setParentObj(new himh006());