gx.evt.autoSkip=false;function hztpdoc(){this.ServerClass="HZTpdoc";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV19IndOrigemRecebida=gx.fn.getControlValue("vINDORIGEMRECEBIDA");this.AV18IndOrigem=gx.fn.getControlValue("vINDORIGEM");this.AV20TidCod=gx.fn.getControlValue("vTIDCOD")};this.Valid_Tidcod=function(){try{if(gx.fn.currentGridRowImpl(26)===0){return true}var a=gx.util.balloon.getNew("TIDCOD",gx.fn.currentGridRowImpl(26));this.AnyError=0;
this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Tiddes=function(){try{if(gx.fn.currentGridRowImpl(26)===0){return true}var a=gx.util.balloon.getNew("TIDDES",gx.fn.currentGridRowImpl(26));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e171f1_client=function(){this.clearMessages();if(this.AV19IndOrigemRecebida=="M"){gx.popup.openUrl(gx.http.formatLink("himh177",[]),[])
}else{this.addMessage("Função disponível somente quando inicia pelo menu principal")}this.refreshOutputs([])};this.e181f2_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh086",[this.A863TidCod]),["A863TidCod"]);this.refreshOutputs([])};this.e151f2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e111f2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e121f2_client=function(){this.executeServerEvent("'NOVO'",false)};this.e191f2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])
};this.GXValidFnc=[];this.GXCtrlIds=[3,14,18,20,23,25,27,28,29,30,31,32,33,34,35,36,37,38];this.GXLastCtrlId=38;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",26,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hztpdoc",[],false,1,true,true,12,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Subfile1Container.addBitmap("&Imgeditar","vIMGEDITAR",27,0,"px",17,"px",null,"","");this.Subfile1Container.addSingleLineEdit("Grdcodtipodocumento",28,"vGRDCODTIPODOCUMENTO","Código","","GrdCodTipoDocumento","char",0,"px",3,3,"left",null,[],"Grdcodtipodocumento","GrdCodTipoDocumento",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(863,29,"TIDCOD","Código","","TidCod","char",0,"px",3,3,"left",null,[],863,"TidCod",true,0,false,false);this.Subfile1Container.addSingleLineEdit(868,30,"TIDDES","Descrição","","TidDes","char",0,"px",50,50,"left",null,[],868,"TidDes",true,0,false,false);this.Subfile1Container.addSingleLineEdit(865,31,"TIDCODDICI","Dicionário","","TidCodDici","char",0,"px",3,3,"left",null,[],865,"TidCodDici",true,0,false,false);this.Subfile1Container.addComboBox(871,32,"TIDINDMODO","Modo de publicação","TidIndModo","char",null,0,true,false,0,"px");
this.Subfile1Container.addSingleLineEdit(870,33,"TIDINDFORM","Ref.","","TidIndForm","char",0,"px",3,3,"left",null,[],870,"TidIndForm",true,0,false,false);this.Subfile1Container.addComboBox(1058,34,"TIDTIPACER","Tipo de acervo","TidTipAcer","char",null,0,true,false,0,"px");this.Subfile1Container.addSingleLineEdit(879,35,"TIDVALDIAA","Valor dia atraso","","TidValDiaA","decimal",0,"px",14,12,"right",null,[],879,"TidValDiaA",true,2,false,false);this.Subfile1Container.addSingleLineEdit(880,36,"TIDVALHORA","Valor hora atraso","","TidValHora","decimal",0,"px",13,11,"right",null,[],880,"TidValHora",true,2,false,false);
this.Subfile1Container.addSingleLineEdit(1066,37,"TIDNRODOCU","Padrão","","TidNroDocu","int",52,"px",7,7,"right",null,[],1066,"TidNroDocu",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Vallinketiquetas",38,"vVALLINKETIQUETAS","","","ValLinkEtiquetas","char",0,"px",9,9,"left","e181f2_client",[],"Vallinketiquetas","ValLinkEtiquetas",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[14]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vTIDCODPARM",gxz:"ZV15TidCodParm",gxold:"OV15TidCodParm",gxvar:"AV15TidCodParm",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV15TidCodParm=a
},v2z:function(a){gx.O.ZV15TidCodParm=a},v2c:function(){gx.fn.setControlValue("vTIDCODPARM",gx.O.AV15TidCodParm,0)},c2v:function(){gx.O.AV15TidCodParm=this.val()},val:function(){return gx.fn.getControlValue("vTIDCODPARM")},nac:function(){return false}};this.GXValidFnc[18]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[20]={fld:"TABLE2",grid:0};this.GXValidFnc[23]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[25]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vNOMECONTENDO",gxz:"ZV23NomeContendo",gxold:"OV23NomeContendo",gxvar:"AV23NomeContendo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV23NomeContendo=a
},v2z:function(a){gx.O.ZV23NomeContendo=a},v2c:function(){gx.fn.setControlValue("vNOMECONTENDO",gx.O.AV23NomeContendo,0)},c2v:function(){gx.O.AV23NomeContendo=this.val()},val:function(){return gx.fn.getControlValue("vNOMECONTENDO")},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"bits",len:5,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vIMGEDITAR",gxz:"ZV21ImgEditar",gxold:"OV21ImgEditar",gxvar:"AV21ImgEditar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV21ImgEditar=a
},v2z:function(a){gx.O.ZV21ImgEditar=a},v2c:function(){},c2v:function(){gx.O.AV21ImgEditar=this.val()},val:function(){return gx.fn.getGridControlValue("vIMGEDITAR",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:0,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vGRDCODTIPODOCUMENTO",gxz:"ZV25GrdCodTipoDocumento",gxold:"OV25GrdCodTipoDocumento",gxvar:"AV25GrdCodTipoDocumento",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV25GrdCodTipoDocumento=a
},v2z:function(a){gx.O.ZV25GrdCodTipoDocumento=a},v2c:function(){gx.fn.setGridControlValue("vGRDCODTIPODOCUMENTO",gx.fn.currentGridRowImpl(26),gx.O.AV25GrdCodTipoDocumento,0)},c2v:function(){gx.O.AV25GrdCodTipoDocumento=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDCODTIPODOCUMENTO",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:this.Valid_Tidcod,isvalid:null,fld:"TIDCOD",gxz:"Z863TidCod",gxold:"O863TidCod",gxvar:"A863TidCod",ucs:[],op:[],ip:[29,30],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A863TidCod=a
},v2z:function(a){gx.O.Z863TidCod=a},v2c:function(){gx.fn.setGridControlValue("TIDCOD",gx.fn.currentGridRowImpl(26),gx.O.A863TidCod,0)},c2v:function(){gx.O.A863TidCod=this.val()},val:function(){return gx.fn.getGridControlValue("TIDCOD",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:this.Valid_Tiddes,isvalid:null,fld:"TIDDES",gxz:"Z868TidDes",gxold:"O868TidDes",gxvar:"A868TidDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A868TidDes=a
},v2z:function(a){gx.O.Z868TidDes=a},v2c:function(){gx.fn.setGridControlValue("TIDDES",gx.fn.currentGridRowImpl(26),gx.O.A868TidDes,0)},c2v:function(){gx.O.A868TidDes=this.val()},val:function(){return gx.fn.getGridControlValue("TIDDES",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"TIDCODDICI",gxz:"Z865TidCodDici",gxold:"O865TidCodDici",gxvar:"A865TidCodDici",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A865TidCodDici=a
},v2z:function(a){gx.O.Z865TidCodDici=a},v2c:function(){gx.fn.setGridControlValue("TIDCODDICI",gx.fn.currentGridRowImpl(26),gx.O.A865TidCodDici,0)},c2v:function(){gx.O.A865TidCodDici=this.val()},val:function(){return gx.fn.getGridControlValue("TIDCODDICI",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"TIDINDMODO",gxz:"Z871TidIndModo",gxold:"O871TidIndModo",gxvar:"A871TidIndModo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A871TidIndModo=a
},v2z:function(a){gx.O.Z871TidIndModo=a},v2c:function(){gx.fn.setGridComboBoxValue("TIDINDMODO",gx.fn.currentGridRowImpl(26),gx.O.A871TidIndModo)},c2v:function(){gx.O.A871TidIndModo=this.val()},val:function(){return gx.fn.getGridControlValue("TIDINDMODO",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"TIDINDFORM",gxz:"Z870TidIndForm",gxold:"O870TidIndForm",gxvar:"A870TidIndForm",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A870TidIndForm=a
},v2z:function(a){gx.O.Z870TidIndForm=a},v2c:function(){gx.fn.setGridControlValue("TIDINDFORM",gx.fn.currentGridRowImpl(26),gx.O.A870TidIndForm,0)},c2v:function(){gx.O.A870TidIndForm=this.val()},val:function(){return gx.fn.getGridControlValue("TIDINDFORM",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"TIDTIPACER",gxz:"Z1058TidTipAcer",gxold:"O1058TidTipAcer",gxvar:"A1058TidTipAcer",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A1058TidTipAcer=a
},v2z:function(a){gx.O.Z1058TidTipAcer=a},v2c:function(){gx.fn.setGridComboBoxValue("TIDTIPACER",gx.fn.currentGridRowImpl(26),gx.O.A1058TidTipAcer)},c2v:function(){gx.O.A1058TidTipAcer=this.val()},val:function(){return gx.fn.getGridControlValue("TIDTIPACER",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"decimal",len:12,dec:2,sign:false,pic:"ZZZ,ZZZ,ZZ9.99",ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"TIDVALDIAA",gxz:"Z879TidValDiaA",gxold:"O879TidValDiaA",gxvar:"A879TidValDiaA",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A879TidValDiaA=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z879TidValDiaA=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("TIDVALDIAA",gx.fn.currentGridRowImpl(26),gx.O.A879TidValDiaA,2,",")},c2v:function(){gx.O.A879TidValDiaA=this.val()},val:function(){return gx.fn.getGridDecimalValue("TIDVALDIAA",gx.fn.currentGridRowImpl(26),".",",")},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"TIDVALHORA",gxz:"Z880TidValHora",gxold:"O880TidValHora",gxvar:"A880TidValHora",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A880TidValHora=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z880TidValHora=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("TIDVALHORA",gx.fn.currentGridRowImpl(26),gx.O.A880TidValHora,2,",")},c2v:function(){gx.O.A880TidValHora=this.val()},val:function(){return gx.fn.getGridDecimalValue("TIDVALHORA",gx.fn.currentGridRowImpl(26),".",",")},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"TIDNRODOCU",gxz:"Z1066TidNroDocu",gxold:"O1066TidNroDocu",gxvar:"A1066TidNroDocu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1066TidNroDocu=gx.num.intval(a)
},v2z:function(a){gx.O.Z1066TidNroDocu=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("TIDNRODOCU",gx.fn.currentGridRowImpl(26),gx.O.A1066TidNroDocu,0)},c2v:function(){gx.O.A1066TidNroDocu=this.val()},val:function(){return gx.fn.getGridIntegerValue("TIDNRODOCU",gx.fn.currentGridRowImpl(26),".")},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"char",len:9,dec:0,sign:false,ro:0,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vVALLINKETIQUETAS",gxz:"ZV24ValLinkEtiquetas",gxold:"OV24ValLinkEtiquetas",gxvar:"AV24ValLinkEtiquetas",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV24ValLinkEtiquetas=a
},v2z:function(a){gx.O.ZV24ValLinkEtiquetas=a},v2c:function(){gx.fn.setGridControlValue("vVALLINKETIQUETAS",gx.fn.currentGridRowImpl(26),gx.O.AV24ValLinkEtiquetas,0)},c2v:function(){gx.O.AV24ValLinkEtiquetas=this.val()},val:function(){return gx.fn.getGridControlValue("vVALLINKETIQUETAS",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.AV15TidCodParm="";this.ZV15TidCodParm="";this.OV15TidCodParm="";this.AV23NomeContendo="";this.ZV23NomeContendo="";this.OV23NomeContendo="";this.ZV21ImgEditar="";
this.OV21ImgEditar="";this.ZV25GrdCodTipoDocumento="";this.OV25GrdCodTipoDocumento="";this.Z863TidCod="";this.O863TidCod="";this.Z868TidDes="";this.O868TidDes="";this.Z865TidCodDici="";this.O865TidCodDici="";this.Z871TidIndModo="";this.O871TidIndModo="";this.Z870TidIndForm="";this.O870TidIndForm="";this.Z1058TidTipAcer="";this.O1058TidTipAcer="";this.Z879TidValDiaA=0;this.O879TidValDiaA=0;this.Z880TidValHora=0;this.O880TidValHora=0;this.Z1066TidNroDocu=0;this.O1066TidNroDocu=0;this.ZV24ValLinkEtiquetas="";
this.OV24ValLinkEtiquetas="";this.AV18IndOrigem="";this.AV20TidCod="";this.AV21ImgEditar="";this.AV25GrdCodTipoDocumento="";this.A863TidCod="";this.A868TidDes="";this.A865TidCodDici="";this.A871TidIndModo="";this.A870TidIndForm="";this.A1058TidTipAcer="";this.A879TidValDiaA=0;this.A880TidValHora=0;this.A1066TidNroDocu=0;this.AV24ValLinkEtiquetas="";this.AV19IndOrigemRecebida="";this.ServerEvents=["e151f2_client","e111f2_client","e121f2_client","e191f2_client"];this.VarControlMap.AV19IndOrigemRecebida={id:"vINDORIGEMRECEBIDA",grid:0,type:"char"};
this.VarControlMap.AV18IndOrigem={id:"vINDORIGEM",grid:0,type:"char"};this.VarControlMap.AV20TidCod={id:"vTIDCOD",grid:0,type:"char"};this.VarControlMap.AV22CharDB={id:"vCHARDB",grid:0,type:"char"};this.VarControlMap.AV19IndOrigemRecebida={id:"vINDORIGEMRECEBIDA",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[25]);this.Subfile1Container.addRefreshingVar({rfrVar:"AV22CharDB"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV21ImgEditar",rfrProp:"Visible"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV25GrdCodTipoDocumento",rfrProp:"Visible"});
this.Subfile1Container.addRefreshingVar({rfrVar:"A863TidCod",rfrProp:"Visible"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV24ValLinkEtiquetas",rfrProp:"Value"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV19IndOrigemRecebida"});this.SetStandaloneVars()}hztpdoc.prototype=new gx.GxObject;gx.setParentObj(new hztpdoc());