gx.evt.autoSkip=false;function himh146(){this.ServerClass="HImh146";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};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.e164e2_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh147",[this.AV37AtdNro]),[]);this.refreshOutputs([])};this.e134e2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])
};this.e154e2_client=function(){this.executeServerEvent("'VOLTAR'",true,arguments[0])};this.e174e2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,6,8,11,13,16,18,20,24,25,26,29];this.GXLastCtrlId=29;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",23,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"himh146",[],false,1,true,true,12,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Subfile1Container.addSingleLineEdit("Atdnro",24,"vATDNRO","Autoridade","","AtdNro","int",0,"px",6,6,"right",null,[],"Atdnro","AtdNro",false,0,false,false);this.Subfile1Container.addSingleLineEdit("Atddesidentificacao",25,"vATDDESIDENTIFICACAO","","","AtdDesIdentificacao","char",410,"px",200,200,"left","e164e2_client",[],"Atddesidentificacao","AtdDesIdentificacao",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Dsctermosremissivos",26,"vDSCTERMOSREMISSIVOS","","","DscTermosRemissivos","char",410,"px",999,999,"left",null,[],"Dsctermosremissivos","DscTermosRemissivos",true,0,false,false);
this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE2",grid:0};this.GXValidFnc[6]={fld:"TIPPESQUISA",format:0,grid:0};this.GXValidFnc[8]={lvl:0,type:"char",len:8,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"TIPPESQUISA",gxz:"ZV43TipPesquisa",gxold:"OV43TipPesquisa",gxvar:"AV43TipPesquisa",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"radio",v2v:function(a){gx.O.AV43TipPesquisa=a},v2z:function(a){gx.O.ZV43TipPesquisa=a},v2c:function(){gx.fn.setRadioValue("TIPPESQUISA",gx.O.AV43TipPesquisa)
},c2v:function(){gx.O.AV43TipPesquisa=this.val()},val:function(){return gx.fn.getControlValue("TIPPESQUISA")},nac:function(){return false}};this.GXValidFnc[11]={fld:"EXPRESSAO",format:0,grid:0};this.GXValidFnc[13]={fld:"TABLE3",grid:0};this.GXValidFnc[16]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCEXPRESSAO",gxz:"ZV21DscExpressao",gxold:"OV21DscExpressao",gxvar:"AV21DscExpressao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV21DscExpressao=a
},v2z:function(a){gx.O.ZV21DscExpressao=a},v2c:function(){gx.fn.setControlValue("vDSCEXPRESSAO",gx.O.AV21DscExpressao,0)},c2v:function(){gx.O.AV21DscExpressao=this.val()},val:function(){return gx.fn.getControlValue("vDSCEXPRESSAO")},nac:function(){return false}};this.GXValidFnc[18]={fld:"INFORMACAO",format:0,grid:0};this.GXValidFnc[20]={fld:"BUSCAR",grid:0};this.GXValidFnc[24]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:23,gxgrid:this.Subfile1Container,fnc:this.Validv_Atdnro,isvalid:null,rgrid:[],fld:"vATDNRO",gxz:"ZV37AtdNro",gxold:"OV37AtdNro",gxvar:"AV37AtdNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV37AtdNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV37AtdNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vATDNRO",gx.fn.currentGridRowImpl(23),gx.O.AV37AtdNro,0)},c2v:function(){gx.O.AV37AtdNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("vATDNRO",gx.fn.currentGridRowImpl(23),".")},nac:function(){return false}};this.GXValidFnc[25]={lvl:2,type:"char",len:200,dec:0,sign:false,ro:0,grid:23,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vATDDESIDENTIFICACAO",gxz:"ZV34AtdDesIdentificacao",gxold:"OV34AtdDesIdentificacao",gxvar:"AV34AtdDesIdentificacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV34AtdDesIdentificacao=a
},v2z:function(a){gx.O.ZV34AtdDesIdentificacao=a},v2c:function(){gx.fn.setGridControlValue("vATDDESIDENTIFICACAO",gx.fn.currentGridRowImpl(23),gx.O.AV34AtdDesIdentificacao,0)},c2v:function(){gx.O.AV34AtdDesIdentificacao=this.val()},val:function(){return gx.fn.getGridControlValue("vATDDESIDENTIFICACAO",gx.fn.currentGridRowImpl(23))},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"char",len:999,dec:0,sign:false,ro:0,grid:23,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vDSCTERMOSREMISSIVOS",gxz:"ZV42DscTermosRemissivos",gxold:"OV42DscTermosRemissivos",gxvar:"AV42DscTermosRemissivos",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV42DscTermosRemissivos=a
},v2z:function(a){gx.O.ZV42DscTermosRemissivos=a},v2c:function(){gx.fn.setGridControlValue("vDSCTERMOSREMISSIVOS",gx.fn.currentGridRowImpl(23),gx.O.AV42DscTermosRemissivos,0)},c2v:function(){gx.O.AV42DscTermosRemissivos=this.val()},val:function(){return gx.fn.getGridControlValue("vDSCTERMOSREMISSIVOS",gx.fn.currentGridRowImpl(23))},nac:function(){return false}};this.GXValidFnc[29]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCQTDTERMOSRECUPERADOS",gxz:"ZV48DscQtdTermosRecuperados",gxold:"OV48DscQtdTermosRecuperados",gxvar:"AV48DscQtdTermosRecuperados",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV48DscQtdTermosRecuperados=a
},v2z:function(a){gx.O.ZV48DscQtdTermosRecuperados=a},v2c:function(){gx.fn.setControlValue("vDSCQTDTERMOSRECUPERADOS",gx.O.AV48DscQtdTermosRecuperados,0)},c2v:function(){gx.O.AV48DscQtdTermosRecuperados=this.val()},val:function(){return gx.fn.getControlValue("vDSCQTDTERMOSRECUPERADOS")},nac:function(){return false}};this.AV43TipPesquisa="";this.ZV43TipPesquisa="";this.OV43TipPesquisa="";this.AV21DscExpressao="";this.ZV21DscExpressao="";this.OV21DscExpressao="";this.ZV37AtdNro=0;this.OV37AtdNro=0;
this.ZV34AtdDesIdentificacao="";this.OV34AtdDesIdentificacao="";this.ZV42DscTermosRemissivos="";this.OV42DscTermosRemissivos="";this.AV48DscQtdTermosRecuperados="";this.ZV48DscQtdTermosRecuperados="";this.OV48DscQtdTermosRecuperados="";this.AV37AtdNro=0;this.AV34AtdDesIdentificacao="";this.AV42DscTermosRemissivos="";this.A65AtdValOrde="";this.A61AtdDesIden="";this.A63AtdNro=0;this.A559ParCod=0;this.A609ParTipForm="";this.A583ParIndLogi="";this.ServerEvents=["e134e2_client","e154e2_client","e174e2_client"];
this.VarControlMap.A63AtdNro={id:"ATDNRO",grid:0,type:"int"};this.VarControlMap.A61AtdDesIden={id:"ATDDESIDEN",grid:0,type:"char"};this.VarControlMap.AV33QtdTermosLidos={id:"vQTDTERMOSLIDOS",grid:0,type:"int"};this.VarControlMap.AV49CodIdiomaLeitor={id:"vCODIDIOMALEITOR",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar({rfrVar:"A63AtdNro"});this.Subfile1Container.addRefreshingVar({rfrVar:"A61AtdDesIden"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV33QtdTermosLidos"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV49CodIdiomaLeitor"});
this.SetStandaloneVars()}himh146.prototype=new gx.GxObject;gx.setParentObj(new himh146());