gx.evt.autoSkip=false;function himh013(){this.ServerClass="HImh013";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV32ScdCodEntidade=gx.fn.getControlValue("vSCDCODENTIDADE");this.AV26DicTipMaterial=gx.fn.getControlValue("vDICTIPMATERIAL")};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.e262r1_client=function(){this.clearMessages();
gx.popup.openUrl(gx.http.formatLink("himh015",["AT"]),[""]);this.refreshOutputs([])};this.e272r2_client=function(){this.clearMessages();this.AV32ScdCodEntidade=gx.text.trim(gx.num.str(this.AV8AtdNro,6,0));gx.popup.openUrl(gx.http.formatLink("himh024",["AT",this.AV32ScdCodEntidade]),["","AV32ScdCodEntidade"]);this.refreshOutputs([{av:"AV32ScdCodEntidade",fld:"vSCDCODENTIDADE"}])};this.e242r1_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("hmaw021",["AUTORIDADE"]),[""]);
this.refreshOutputs([])};this.e252r1_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh039",[0,"CADASTRO"]),["",""]);this.refreshOutputs([])};this.e222r1_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh164",[]),[]);this.refreshOutputs([])};this.e232r1_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh008",[this.AV26DicTipMaterial]),[]);this.refreshOutputs([])};this.e182r2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])
};this.e192r2_client=function(){this.executeServerEvent("'EDITAR'",true,arguments[0])};this.e122r2_client=function(){this.executeServerEvent("'NOVA'",false)};this.e132r2_client=function(){this.executeServerEvent("'AUTORIDADE'",false)};this.e142r2_client=function(){this.executeServerEvent("'LISTAR'",false)};this.e152r2_client=function(){this.executeServerEvent("'REVISAR'",false)};this.e162r2_client=function(){this.executeServerEvent("'SEM USO'",false)};this.e172r2_client=function(){this.executeServerEvent("'VOLTAR'",false)
};this.e282r2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,26,28,31,33,37,39,45,47,50,52,54,57,58,59,60,61,62];this.GXLastCtrlId=62;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",56,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"himh013",[],false,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Subfile1Container.addBitmap("&Imgeditar","vIMGEDITAR",57,0,"px",17,"px","e192r2_client","","");
this.Subfile1Container.addSingleLineEdit("Titulo",58,"vTITULO","Título","","Titulo","char",0,"px",100,100,"left",null,[],"Titulo","Titulo",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Valcampos",59,"vVALCAMPOS","Campos","","ValCampos","vchar",0,"px",20480,20480,"left",null,[],"Valcampos","ValCampos",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Atdcodcampo",60,"vATDCODCAMPO","Código","","AtdCodCampo","char",0,"px",3,3,"left",null,[],"Atdcodcampo","AtdCodCampo",true,0,false,false);
this.Subfile1Container.addSingleLineEdit("Atdnro",61,"vATDNRO","Número","","AtdNro","int",0,"px",6,6,"right",null,[],"Atdnro","AtdNro",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Grdlinkparadocumentos",62,"vGRDLINKPARADOCUMENTOS","","Exibir os documentos relacionados a esta autoridade","GrdLinkParaDocumentos","char",0,"px",15,15,"left","e272r2_client",[],"Grdlinkparadocumentos","GrdLinkParaDocumentos",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};
this.GXValidFnc[26]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[28]={fld:"TABLE2",grid:0};this.GXValidFnc[31]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[33]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCODCAMPO",gxz:"ZV10CodCampo",gxold:"OV10CodCampo",gxvar:"AV10CodCampo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10CodCampo=a},v2z:function(a){gx.O.ZV10CodCampo=a},v2c:function(){gx.fn.setControlValue("vCODCAMPO",gx.O.AV10CodCampo,0)
},c2v:function(){gx.O.AV10CodCampo=this.val()},val:function(){return gx.fn.getControlValue("vCODCAMPO")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"char",len:65,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vEXPRESSAO",gxz:"ZV6Expressao",gxold:"OV6Expressao",gxvar:"AV6Expressao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6Expressao=a},v2z:function(a){gx.O.ZV6Expressao=a},v2c:function(){gx.fn.setControlValue("vEXPRESSAO",gx.O.AV6Expressao,0)
},c2v:function(){gx.O.AV6Expressao=this.val()},val:function(){return gx.fn.getControlValue("vEXPRESSAO")},nac:function(){return false}};this.GXValidFnc[45]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[47]={fld:"TABLE3",grid:0};this.GXValidFnc[50]={fld:"ANALISE_CODIGOS",format:0,grid:0};this.GXValidFnc[52]={fld:"VER_DICIONARIO",format:0,grid:0};this.GXValidFnc[54]={fld:"VERTHESAURUS",format:0,grid:0};this.GXValidFnc[57]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:56,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vIMGEDITAR",gxz:"ZV28ImgEditar",gxold:"OV28ImgEditar",gxvar:"AV28ImgEditar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV28ImgEditar=a
},v2z:function(a){gx.O.ZV28ImgEditar=a},v2c:function(){},c2v:function(){gx.O.AV28ImgEditar=this.val()},val:function(){return gx.fn.getGridControlValue("vIMGEDITAR",gx.fn.currentGridRowImpl(56))},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:1,grid:56,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vTITULO",gxz:"ZV18Titulo",gxold:"OV18Titulo",gxvar:"AV18Titulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV18Titulo=a
},v2z:function(a){gx.O.ZV18Titulo=a},v2c:function(){gx.fn.setGridControlValue("vTITULO",gx.fn.currentGridRowImpl(56),gx.O.AV18Titulo,0)},c2v:function(){gx.O.AV18Titulo=this.val()},val:function(){return gx.fn.getGridControlValue("vTITULO",gx.fn.currentGridRowImpl(56))},nac:function(){return false}};this.GXValidFnc[59]={lvl:2,type:"vchar",len:20480,dec:0,sign:false,ro:1,grid:56,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vVALCAMPOS",gxz:"ZV11ValCampos",gxold:"OV11ValCampos",gxvar:"AV11ValCampos",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11ValCampos=a
},v2z:function(a){gx.O.ZV11ValCampos=a},v2c:function(){gx.fn.setGridControlValue("vVALCAMPOS",gx.fn.currentGridRowImpl(56),gx.O.AV11ValCampos,0)},c2v:function(){gx.O.AV11ValCampos=this.val()},val:function(){return gx.fn.getGridControlValue("vVALCAMPOS",gx.fn.currentGridRowImpl(56))},nac:function(){return false}};this.GXValidFnc[60]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:56,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vATDCODCAMPO",gxz:"ZV19AtdCodCampo",gxold:"OV19AtdCodCampo",gxvar:"AV19AtdCodCampo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV19AtdCodCampo=a
},v2z:function(a){gx.O.ZV19AtdCodCampo=a},v2c:function(){gx.fn.setGridControlValue("vATDCODCAMPO",gx.fn.currentGridRowImpl(56),gx.O.AV19AtdCodCampo,0)},c2v:function(){gx.O.AV19AtdCodCampo=this.val()},val:function(){return gx.fn.getGridControlValue("vATDCODCAMPO",gx.fn.currentGridRowImpl(56))},nac:function(){return false}};this.GXValidFnc[61]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:56,gxgrid:this.Subfile1Container,fnc:this.Validv_Atdnro,isvalid:null,rgrid:[],fld:"vATDNRO",gxz:"ZV8AtdNro",gxold:"OV8AtdNro",gxvar:"AV8AtdNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8AtdNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8AtdNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vATDNRO",gx.fn.currentGridRowImpl(56),gx.O.AV8AtdNro,0)},c2v:function(){gx.O.AV8AtdNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("vATDNRO",gx.fn.currentGridRowImpl(56),".")},nac:function(){return false}};this.GXValidFnc[62]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:0,grid:56,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vGRDLINKPARADOCUMENTOS",gxz:"ZV31GrdLinkParaDocumentos",gxold:"OV31GrdLinkParaDocumentos",gxvar:"AV31GrdLinkParaDocumentos",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV31GrdLinkParaDocumentos=a
},v2z:function(a){gx.O.ZV31GrdLinkParaDocumentos=a},v2c:function(){gx.fn.setGridControlValue("vGRDLINKPARADOCUMENTOS",gx.fn.currentGridRowImpl(56),gx.O.AV31GrdLinkParaDocumentos,0)},c2v:function(){gx.O.AV31GrdLinkParaDocumentos=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDLINKPARADOCUMENTOS",gx.fn.currentGridRowImpl(56))},nac:function(){return false}};this.AV10CodCampo="";this.ZV10CodCampo="";this.OV10CodCampo="";this.AV6Expressao="";this.ZV6Expressao="";this.OV6Expressao="";this.ZV28ImgEditar="";
this.OV28ImgEditar="";this.ZV18Titulo="";this.OV18Titulo="";this.ZV11ValCampos="";this.OV11ValCampos="";this.ZV19AtdCodCampo="";this.OV19AtdCodCampo="";this.ZV8AtdNro=0;this.OV8AtdNro=0;this.ZV31GrdLinkParaDocumentos="";this.OV31GrdLinkParaDocumentos="";this.AV28ImgEditar="";this.AV18Titulo="";this.AV11ValCampos="";this.AV19AtdCodCampo="";this.AV8AtdNro=0;this.AV31GrdLinkParaDocumentos="";this.A63AtdNro=0;this.A61AtdDesIden="";this.A60AtdCodCamp="";this.A90CatNroSeqC=0;this.A91CatVal1Ind="";this.A89CatNroRepC=0;
this.A202DicNroSequ=0;this.A203DicTipMate="";this.A200DicNroEtiq="";this.AV32ScdCodEntidade="";this.AV26DicTipMaterial="";this.ServerEvents=["e182r2_client","e192r2_client","e122r2_client","e132r2_client","e142r2_client","e152r2_client","e162r2_client","e172r2_client","e282r2_client"];this.VarControlMap.AV32ScdCodEntidade={id:"vSCDCODENTIDADE",grid:0,type:"char"};this.VarControlMap.AV26DicTipMaterial={id:"vDICTIPMATERIAL",grid:0,type:"char"};this.VarControlMap.A200DicNroEtiq={id:"DICNROETIQ",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.VarControlMap.A60AtdCodCamp={id:"ATDCODCAMP",grid:0,type:"char"};this.VarControlMap.A61AtdDesIden={id:"ATDDESIDEN",grid:0,type:"char"};this.VarControlMap.AV15QtdAutoridadeRecup={id:"vQTDAUTORIDADERECUP",grid:0,type:"int"};this.Subfile1Container.addRefreshingVar({rfrVar:"A200DicNroEtiq"});
this.Subfile1Container.addRefreshingVar({rfrVar:"A91CatVal1Ind"});this.Subfile1Container.addRefreshingVar({rfrVar:"A89CatNroRepC"});this.Subfile1Container.addRefreshingVar({rfrVar:"A90CatNroSeqC"});this.Subfile1Container.addRefreshingVar({rfrVar:"A63AtdNro"});this.Subfile1Container.addRefreshingVar({rfrVar:"A60AtdCodCamp"});this.Subfile1Container.addRefreshingVar({rfrVar:"A61AtdDesIden"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV15QtdAutoridadeRecup"});this.SetStandaloneVars()}himh013.prototype=new gx.GxObject;
gx.setParentObj(new himh013());