gx.evt.autoSkip=false;function hmih056(){this.ServerClass="HMih056";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV135NroArtigo=gx.fn.getIntegerValue("vNROARTIGO",".");this.AV79DvoNroVolume=gx.fn.getIntegerValue("vDVONROVOLUME",".");this.AV5DocNro=gx.fn.getIntegerValue("vDOCNRO",".");this.AV138IndModeloApresentacao=gx.fn.getControlValue("vINDMODELOAPRESENTACAO");this.AV76TidIndModoPublicacao=gx.fn.getControlValue("vTIDINDMODOPUBLICACAO");
this.AV71IndOrigem=gx.fn.getControlValue("vINDORIGEM");this.AV47ParTipForm=gx.fn.getControlValue("vPARTIPFORM");this.AV86UndCodAux=gx.fn.getIntegerValue("vUNDCODAUX",".");this.AV81PrgChamador=gx.fn.getControlValue("vPRGCHAMADOR")};this.e18751_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("hmih005",["USUARIO","RESERVAR",this.AV5DocNro,this.AV79DvoNroVolume,this.AV135NroArtigo]),["","","AV5DocNro","AV79DvoNroVolume","AV135NroArtigo"]);this.refreshOutputs([])};this.e19751_client=function(){this.clearMessages();
this.AV81PrgChamador="hmih056";this.AV86UndCodAux=0;gx.popup.openUrl(gx.http.formatLink("hmih016",[this.AV5DocNro,this.AV79DvoNroVolume,this.AV135NroArtigo,this.AV47ParTipForm,this.AV71IndOrigem,this.AV76TidIndModoPublicacao,this.AV81PrgChamador,this.AV86UndCodAux,this.AV138IndModeloApresentacao]),["AV5DocNro","AV79DvoNroVolume","AV135NroArtigo","AV47ParTipForm","AV71IndOrigem","AV76TidIndModoPublicacao","AV81PrgChamador","AV86UndCodAux","AV138IndModeloApresentacao"]);this.refreshOutputs([{av:"AV86UndCodAux",fld:"vUNDCODAUX"},{av:"AV81PrgChamador",fld:"vPRGCHAMADOR"}])
};this.e20751_client=function(){this.clearMessages();if(this.AV76TidIndModoPublicacao=="S"){}else{this.addMessage("Função disponível somente para documentos com publicação seriada")}this.refreshOutputs([])};this.e14752_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e11752_client=function(){this.executeServerEvent("'DETALHES'",false)};this.e12752_client=function(){this.executeServerEvent("'REFERENCIA'",false)};this.e21752_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])
};this.GXValidFnc=[];this.GXCtrlIds=[3,16,19,23,27,28,29,32,33];this.GXLastCtrlId=33;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",26,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hmih056",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit(988,27,"VNCNOMARQU","","","VncNomArqu","char",0,"px",100,100,"left",null,[],988,"VncNomArqu",true,0,false,false);this.Grid1Container.addSingleLineEdit(985,28,"VNCCODEXTE","","","VncCodExte","char",0,"px",10,10,"left",null,[],985,"VncCodExte",true,0,false,false);
this.Grid1Container.addBlob(990,29,"VNCVALCONT","","VncValCont","bitstr",1,60,0,"px","px",true,false);this.setGrid(this.Grid1Container);this.Grid2Container=new gx.grid.grid(this,3,"WbpLvl3",31,"Grid2","Grid2","Grid2Container",this.CmpContext,this.IsMasterPage,"hmih056",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid2Container.addSingleLineEdit("Rotulocampo",32,"vROTULOCAMPO","","","RotuloCampo","char",130,"px",20,20,"left",null,[],"Rotulocampo","RotuloCampo",true,0,false,false);
this.Grid2Container.addSingleLineEdit("Linha",33,"vLINHA","","","Linha","vchar",410,"px",204800,204800,"left",null,[],"Linha","Linha",true,250,false,false);this.setGrid(this.Grid2Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[16]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[19]={fld:"TABLE2",grid:0};this.GXValidFnc[23]={lvl:0,type:"char",len:112,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCTEXTOFOLKSONOMIA",gxz:"ZV146DscTextoFolksonomia",gxold:"OV146DscTextoFolksonomia",gxvar:"AV146DscTextoFolksonomia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV146DscTextoFolksonomia=a
},v2z:function(a){gx.O.ZV146DscTextoFolksonomia=a},v2c:function(){gx.fn.setControlValue("vDSCTEXTOFOLKSONOMIA",gx.O.AV146DscTextoFolksonomia,0)},c2v:function(){gx.O.AV146DscTextoFolksonomia=this.val()},val:function(){return gx.fn.getControlValue("vDSCTEXTOFOLKSONOMIA")},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"VNCNOMARQU",gxz:"Z988VncNomArqu",gxold:"O988VncNomArqu",gxvar:"A988VncNomArqu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A988VncNomArqu=a
},v2z:function(a){gx.O.Z988VncNomArqu=a},v2c:function(){gx.fn.setGridControlValue("VNCNOMARQU",gx.fn.currentGridRowImpl(26),gx.O.A988VncNomArqu,0)},c2v:function(){gx.O.A988VncNomArqu=this.val()},val:function(){return gx.fn.getGridControlValue("VNCNOMARQU",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"char",len:10,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"VNCCODEXTE",gxz:"Z985VncCodExte",gxold:"O985VncCodExte",gxvar:"A985VncCodExte",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A985VncCodExte=a
},v2z:function(a){gx.O.Z985VncCodExte=a},v2c:function(){gx.fn.setGridControlValue("VNCCODEXTE",gx.fn.currentGridRowImpl(26),gx.O.A985VncCodExte,0)},c2v:function(){gx.O.A985VncCodExte=this.val()},val:function(){return gx.fn.getGridControlValue("VNCCODEXTE",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"bitstr",len:1024,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"VNCVALCONT",gxz:"Z990VncValCont",gxold:"O990VncValCont",gxvar:"A990VncValCont",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A990VncValCont=a
},v2z:function(a){gx.O.Z990VncValCont=a},v2c:function(){},c2v:function(){gx.O.A990VncValCont=this.val()},val:function(){return gx.fn.getGridControlValue("VNCVALCONT",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[32]={lvl:3,type:"char",len:20,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"vROTULOCAMPO",gxz:"ZV139RotuloCampo",gxold:"OV139RotuloCampo",gxvar:"AV139RotuloCampo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV139RotuloCampo=a
},v2z:function(a){gx.O.ZV139RotuloCampo=a},v2c:function(){gx.fn.setGridControlValue("vROTULOCAMPO",gx.fn.currentGridRowImpl(31),gx.O.AV139RotuloCampo,0)},c2v:function(){gx.O.AV139RotuloCampo=this.val()},val:function(){return gx.fn.getGridControlValue("vROTULOCAMPO",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[33]={lvl:3,type:"vchar",len:204800,dec:250,sign:false,ro:1,grid:31,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"vLINHA",gxz:"ZV7Linha",gxold:"OV7Linha",gxvar:"AV7Linha",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7Linha=a
},v2z:function(a){gx.O.ZV7Linha=a},v2c:function(){gx.fn.setGridControlValue("vLINHA",gx.fn.currentGridRowImpl(31),gx.O.AV7Linha,1)},c2v:function(){gx.O.AV7Linha=this.val()},val:function(){return gx.fn.getGridControlValue("vLINHA",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.AV146DscTextoFolksonomia="";this.ZV146DscTextoFolksonomia="";this.OV146DscTextoFolksonomia="";this.Z988VncNomArqu="";this.O988VncNomArqu="";this.Z985VncCodExte="";this.O985VncCodExte="";this.Z990VncValCont="";
this.O990VncValCont="";this.ZV139RotuloCampo="";this.OV139RotuloCampo="";this.ZV7Linha="";this.OV7Linha="";this.AV5DocNro=0;this.AV79DvoNroVolume=0;this.AV135NroArtigo=0;this.AV47ParTipForm="";this.AV71IndOrigem="";this.AV76TidIndModoPublicacao="";this.AV138IndModeloApresentacao="";this.A987VncIndRese="";this.A989VncNro=0;this.A986VncCodOrig="";this.A988VncNomArqu="";this.A985VncCodExte="";this.A990VncValCont="";this.A559ParCod=0;this.A558ParCampo1L="";this.AV139RotuloCampo="";this.AV7Linha="";this.A122CfgCod="";
this.A127CfgValCont="";this.A306DvoDatbaix=gx.date.nullDate();this.A317DvoNroVolu=0;this.A258DocNro=0;this.A512LocNom="";this.A925UndNomComp="";this.A281DoeNroSequ=0;this.A316DvoNroTomo=0;this.A922UndCod=0;this.A509LocCod=0;this.A301DviNroItem=0;this.A300DviNomArqu="";this.A303DviTipArqu="";this.A299DviDesVinc="";this.A302DviNroVinc=0;this.A1081DviDscURL="";this.A114CedNroRepC=0;this.A112CedNroArti=0;this.A113CedNroItem=0;this.A115CedNroSeqC=0;this.A116CedVal1Ind="";this.A767ScdNroSeqS=0;this.A768ScdTipEnti="";
this.A764ScdCodEnti="";this.A766ScdNroRepS=0;this.A765ScdNroAgru=0;this.A202DicNroSequ=0;this.A216DisNroSequ=0;this.A203DicTipMate="";this.A217DisTipEnti="";this.A209DisCodSubc="";this.A200DicNroEtiq="";this.A199DicNomRotu="";this.A225DitNroVolu="";this.A223DitNroEdic="";this.A220DitAnoEdic="";this.A227DitValExte="";this.A224DitNroTomo="";this.A226DitTipFasc="";this.A251DocIndRote="";this.A865TidCodDici="";this.A643PerDesLong="";this.A863TidCod="";this.A652PerNro=0;this.A171CvdNro=0;this.A172CvdValCont="";
this.AV86UndCodAux=0;this.AV81PrgChamador="";this.ServerEvents=["e14752_client","e11752_client","e12752_client","e21752_client"];this.VarControlMap.AV135NroArtigo={id:"vNROARTIGO",grid:0,type:"int"};this.VarControlMap.AV79DvoNroVolume={id:"vDVONROVOLUME",grid:0,type:"int"};this.VarControlMap.AV5DocNro={id:"vDOCNRO",grid:0,type:"int"};this.VarControlMap.AV138IndModeloApresentacao={id:"vINDMODELOAPRESENTACAO",grid:0,type:"char"};this.VarControlMap.AV76TidIndModoPublicacao={id:"vTIDINDMODOPUBLICACAO",grid:0,type:"char"};
this.VarControlMap.AV71IndOrigem={id:"vINDORIGEM",grid:0,type:"char"};this.VarControlMap.AV47ParTipForm={id:"vPARTIPFORM",grid:0,type:"char"};this.VarControlMap.AV86UndCodAux={id:"vUNDCODAUX",grid:0,type:"int"};this.VarControlMap.AV81PrgChamador={id:"vPRGCHAMADOR",grid:0,type:"char"};this.VarControlMap.AV137VncCodOrigem={id:"vVNCCODORIGEM",grid:0,type:"char"};this.Grid1Container.addRefreshingVar({rfrVar:"AV137VncCodOrigem"});this.Grid2Container.addRefreshingVar({rfrVar:"AV82IndEstatAtivada"});this.Grid2Container.addRefreshingVar({rfrVar:"A316DvoNroTomo"});
this.Grid2Container.addRefreshingVar({rfrVar:"A512LocNom"});this.Grid2Container.addRefreshingVar({rfrVar:"A925UndNomComp"});this.Grid2Container.addRefreshingVar({rfrVar:"A281DoeNroSequ"});this.Grid2Container.addRefreshingVar({rfrVar:"A306DvoDatbaix"});this.Grid2Container.addRefreshingVar({rfrVar:"A317DvoNroVolu"});this.Grid2Container.addRefreshingVar({rfrVar:"A299DviDesVinc"});this.Grid2Container.addRefreshingVar({rfrVar:"A1081DviDscURL"});this.Grid2Container.addRefreshingVar({rfrVar:"A303DviTipArqu"});
this.Grid2Container.addRefreshingVar({rfrVar:"AV59LinkAnexo"});this.Grid2Container.addRefreshingVar({rfrVar:"A300DviNomArqu"});this.Grid2Container.addRefreshingVar({rfrVar:"A302DviNroVinc"});this.Grid2Container.addRefreshingVar({rfrVar:"A301DviNroItem"});this.Grid2Container.addRefreshingVar({rfrVar:"AV144CvdValConteudo"});this.Grid2Container.addRefreshingVar({rfrVar:"A764ScdCodEnti"});this.Grid2Container.addRefreshingVar({rfrVar:"A209DisCodSubc"});this.Grid2Container.addRefreshingVar({rfrVar:"A217DisTipEnti"});
this.Grid2Container.addRefreshingVar({rfrVar:"A768ScdTipEnti"});this.Grid2Container.addRefreshingVar({rfrVar:"A766ScdNroRepS"});this.Grid2Container.addRefreshingVar({rfrVar:"A767ScdNroSeqS"});this.Grid2Container.addRefreshingVar({rfrVar:"A765ScdNroAgru"});this.Grid2Container.addRefreshingVar({rfrVar:"A199DicNomRotu"});this.Grid2Container.addRefreshingVar({rfrVar:"A200DicNroEtiq"});this.Grid2Container.addRefreshingVar({rfrVar:"A116CedVal1Ind"});this.Grid2Container.addRefreshingVar({rfrVar:"A114CedNroRepC"});
this.Grid2Container.addRefreshingVar({rfrVar:"A115CedNroSeqC"});this.Grid2Container.addRefreshingVar({rfrVar:"A112CedNroArti"});this.Grid2Container.addRefreshingVar({rfrVar:"A113CedNroItem"});this.Grid2Container.addRefreshingVar({rfrVar:"A226DitTipFasc"});this.Grid2Container.addRefreshingVar({rfrVar:"AV161IdItem"});this.Grid2Container.addRefreshingVar({rfrVar:"AV76TidIndModoPublicacao"});this.Grid2Container.addRefreshingVar({rfrVar:"A223DitNroEdic"});this.Grid2Container.addRefreshingVar({rfrVar:"A220DitAnoEdic"});
this.Grid2Container.addRefreshingVar({rfrVar:"A227DitValExte"});this.Grid2Container.addRefreshingVar({rfrVar:"A224DitNroTomo"});this.Grid2Container.addRefreshingVar({rfrVar:"A225DitNroVolu"});this.Grid2Container.addRefreshingVar({rfrVar:"A258DocNro"});this.Grid2Container.addRefreshingVar({rfrVar:"A643PerDesLong"});this.Grid2Container.addRefreshingVar({rfrVar:"A865TidCodDici"});this.Grid2Container.addRefreshingVar({rfrVar:"A251DocIndRote"});this.Grid2Container.addRefreshingVar({rfrVar:"AV127IndMostrou5xx"});
this.Grid2Container.addRefreshingVar({rfrVar:"AV128IndMostrou6xx"});this.Grid2Container.addRefreshingVar({rfrVar:"AV122EtiqAnt"});this.Grid2Container.addRefreshingVar({rfrVar:"AV133TxtAux250b"});this.Grid2Container.addRefreshingVar({rfrVar:"AV129CfgLInguagemWeb"});this.Grid2Container.addRefreshingVar({rfrVar:"A172CvdValCont"});this.Grid2Container.addRefreshingVar({rfrVar:"AV126TextoLongoAux"});this.Grid2Container.addRefreshingVar({rfrVar:"AV110TextoLongo"});this.Grid2Container.addRefreshingVar({rfrVar:"AV8TextoCheio"});
this.Grid2Container.addRefreshingVar({rfrVar:"AV107TextoAux"});this.Grid2Container.addRefreshingVar({rfrVar:"AV135NroArtigo"});this.Grid2Container.addRefreshingVar({rfrVar:"AV79DvoNroVolume"});this.Grid2Container.addRefreshingVar({rfrVar:"AV5DocNro"});this.Grid2Container.addRefreshingVar({rfrVar:"AV138IndModeloApresentacao"});this.Grid2Container.addRefreshingVar({rfrVar:"AV47ParTipForm"});this.Grid2Container.addRefreshingVar({rfrVar:"AV102DoeCodProprietario"});this.Grid2Container.addRefreshingVar({rfrVar:"AV103TpaCod"});
this.Grid2Container.addRefreshingVar({rfrVar:"AV25CfgValCont"});this.SetStandaloneVars()}hmih056.prototype=new gx.GxObject;gx.setParentObj(new hmih056());