gx.evt.autoSkip=false;function himh100(){this.ServerClass="HImh100";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_msg=gx.fn.getControlValue("vMSG");this.AV29TemErro=gx.fn.getControlValue("vTEMERRO")};this.Validv_Dictipde=function(){try{var a=gx.util.balloon.getNew("vDICTIPDE");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Validv_Dictipmaterialeliminar=function(){try{var a=gx.util.balloon.getNew("vDICTIPMATERIALELIMINAR");
this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e255q1_client=function(){this.clearMessages();this.AV29TemErro="N";if(this.AV29TemErro=="N"){if((""==this.AV12DicTipMaterial)){this.Gx_msg="Informe o código do dicionário";this.AV29TemErro="S"}}if(this.AV29TemErro=="N"){gx.popup.openUrl(gx.http.formatLink("himh008",[this.AV12DicTipMaterial]),[])}else{this.addMessage(this.Gx_msg)}this.refreshOutputs([{av:"Gx_msg",fld:"vMSG"},{av:"AV29TemErro",fld:"vTEMERRO"}])
};this.e125q2_client=function(){this.executeServerEvent("'REPLICAR DICIONARIO'",false)};this.e135q2_client=function(){this.executeServerEvent("'ELIMINAR DICIONáRIO'",false)};this.e145q2_client=function(){this.executeServerEvent("'CRIAR DICIONáRIOS DO SISTEMA'",false)};this.e155q2_client=function(){this.executeServerEvent("'ATIVAR AUTORIDADES'",false)};this.e165q2_client=function(){this.executeServerEvent("'MIGRAR FORMATO'",false)};this.e175q2_client=function(){this.executeServerEvent("'FORMATAR AUTORIDADES'",false)
};this.e185q2_client=function(){this.executeServerEvent("'CRIAR FORMATO DE APRESENTAçãO'",false)};this.e195q2_client=function(){this.executeServerEvent("ENTER",true)};this.e205q2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e225q2_client=function(){this.executeServerEvent("'ABRIR FORMATO APRESENTACAO'",false)};this.e235q2_client=function(){this.executeServerEvent("'OPERAçõES COM SUBCAPOS'",false)};this.e265q2_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];
this.GXCtrlIds=[3,12,14,19,25,27,32,69,70,71];this.GXLastCtrlId=71;this.GXValidFnc[3]={fld:"TABLE2",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[14]={fld:"TABLE1",grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDICTIPMATERIAL",gxz:"ZV12DicTipMaterial",gxold:"OV12DicTipMaterial",gxvar:"AV12DicTipMaterial",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12DicTipMaterial=a},v2z:function(a){gx.O.ZV12DicTipMaterial=a
},v2c:function(){gx.fn.setControlValue("vDICTIPMATERIAL",gx.O.AV12DicTipMaterial,0)},c2v:function(){gx.O.AV12DicTipMaterial=this.val()},val:function(){return gx.fn.getControlValue("vDICTIPMATERIAL")},nac:function(){return false}};this.GXValidFnc[25]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Dictipde,isvalid:null,fld:"vDICTIPDE",gxz:"ZV39DicTipDe",gxold:"OV39DicTipDe",gxvar:"AV39DicTipDe",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV39DicTipDe=a
},v2z:function(a){gx.O.ZV39DicTipDe=a},v2c:function(){gx.fn.setControlValue("vDICTIPDE",gx.O.AV39DicTipDe,0)},c2v:function(){gx.O.AV39DicTipDe=this.val()},val:function(){return gx.fn.getControlValue("vDICTIPDE")},nac:function(){return false}};this.GXValidFnc[27]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDICTIPPARA",gxz:"ZV41DicTipPara",gxold:"OV41DicTipPara",gxvar:"AV41DicTipPara",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV41DicTipPara=a
},v2z:function(a){gx.O.ZV41DicTipPara=a},v2c:function(){gx.fn.setControlValue("vDICTIPPARA",gx.O.AV41DicTipPara,0)},c2v:function(){gx.O.AV41DicTipPara=this.val()},val:function(){return gx.fn.getControlValue("vDICTIPPARA")},nac:function(){return false}};this.GXValidFnc[32]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Dictipmaterialeliminar,isvalid:null,fld:"vDICTIPMATERIALELIMINAR",gxz:"ZV42DicTipMaterialEliminar",gxold:"OV42DicTipMaterialEliminar",gxvar:"AV42DicTipMaterialEliminar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV42DicTipMaterialEliminar=a
},v2z:function(a){gx.O.ZV42DicTipMaterialEliminar=a},v2c:function(){gx.fn.setControlValue("vDICTIPMATERIALELIMINAR",gx.O.AV42DicTipMaterialEliminar,0)},c2v:function(){gx.O.AV42DicTipMaterialEliminar=this.val()},val:function(){return gx.fn.getControlValue("vDICTIPMATERIALELIMINAR")},nac:function(){return false}};this.GXValidFnc[69]={fld:"PROMPT_DICTIPMATERIAL",grid:0};this.GXValidFnc[70]={fld:"PROMPT_DICTIPDE",grid:0};this.GXValidFnc[71]={fld:"PROMPT_DICTIPMATERIALELIMINAR",grid:0};this.AV12DicTipMaterial="";
this.ZV12DicTipMaterial="";this.OV12DicTipMaterial="";this.AV39DicTipDe="";this.ZV39DicTipDe="";this.OV39DicTipDe="";this.AV41DicTipPara="";this.ZV41DicTipPara="";this.OV41DicTipPara="";this.AV42DicTipMaterialEliminar="";this.ZV42DicTipMaterialEliminar="";this.OV42DicTipMaterialEliminar="";this.A203DicTipMate="";this.A196DicIndAtiv="";this.Gx_msg="";this.AV29TemErro="";this.ServerEvents=["e125q2_client","e135q2_client","e145q2_client","e155q2_client","e165q2_client","e175q2_client","e185q2_client","e195q2_client","e205q2_client","e225q2_client","e235q2_client","e265q2_client"];
this.setPrompt("PROMPT_DICTIPMATERIAL",[19]);this.setPrompt("PROMPT_DICTIPDE",[25]);this.setPrompt("PROMPT_DICTIPMATERIALELIMINAR",[32]);this.EnterCtrl=["OK"];this.VarControlMap.Gx_msg={id:"vMSG",grid:0,type:"char"};this.VarControlMap.AV29TemErro={id:"vTEMERRO",grid:0,type:"char"};this.SetStandaloneVars()}himh100.prototype=new gx.GxObject;gx.setParentObj(new himh100());