gx.evt.autoSkip=false;function timt005(){this.ServerClass="TImt005";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A519LpuNomSemA=gx.fn.getControlValue("LPUNOMSEMA");this.A517LpuDesComp=gx.fn.getControlValue("LPUDESCOMP");this.A515LpuCampo1L=gx.fn.getControlValue("LPUCAMPO1L");this.Gx_mode=gx.fn.getControlValue("vMODE");this.AV26ScdCodEntidade=gx.fn.getControlValue("vSCDCODENTIDADE");this.AV25Origem=gx.fn.getControlValue("vORIGEM")};this.Valid_Lpucod=function(){gx.ajax.validSrvEvt("dyncall","valid_Lpucod",["gx.O.A516LpuCod","gx.O.A519LpuNomSemA","gx.O.A518LpuNom","gx.O.A517LpuDesComp","gx.O.A515LpuCampo1L"],["A519LpuNomSemA","A518LpuNom","A517LpuDesComp","A515LpuCampo1L","Gx_mode","Z516LpuCod","Z519LpuNomSemA","Z518LpuNom","Z517LpuDesComp","Z515LpuCampo1L",["BTN_ENTER2","Enabled"]]);
return true};this.Valid_Lpunom=function(){try{var a=gx.util.balloon.getNew("LPUNOM");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e113137_client=function(){this.clearMessages();this.AV26ScdCodEntidade=gx.text.trim(gx.num.str(this.A516LpuCod,5,0));gx.popup.openUrl(gx.http.formatLink("himh024",["LP",this.AV26ScdCodEntidade]),["","AV26ScdCodEntidade"]);this.refreshOutputs([{av:"AV26ScdCodEntidade",fld:"vSCDCODENTIDADE"}])};this.e13312_client=function(){this.executeServerEvent("'GET PENSA-B'",false)
};this.e14312_client=function(){this.executeServerEvent("'NOVO'",false)};this.e15312_client=function(){this.executeServerEvent("'APAGA LOCAL DE PUBLICAçãO'",false)};this.e16312_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e173137_client=function(){this.executeServerEvent("ENTER",true)};this.e183137_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,16,19,22,24,27,31,34,36];this.GXLastCtrlId=36;this.GXValidFnc[3]={fld:"TABLE4",grid:0};
this.GXValidFnc[16]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[19]={fld:"TABLE1",grid:0};this.GXValidFnc[22]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[24]={fld:"TABLE2",grid:0};this.GXValidFnc[27]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Lpucod,isvalid:null,rgrid:[],fld:"LPUCOD",gxz:"Z516LpuCod",gxold:"O516LpuCod",gxvar:"A516LpuCod",ucs:[],op:[36],ip:[36,27],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A516LpuCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z516LpuCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("LPUCOD",gx.O.A516LpuCod,0)},c2v:function(){gx.O.A516LpuCod=this.val()},val:function(){return gx.fn.getIntegerValue("LPUCOD",".")},nac:function(){return false}};this.GXValidFnc[31]={fld:"DOCUMENTOS",format:0,grid:0};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Lpunom,isvalid:null,fld:"LPUNOM",gxz:"Z518LpuNom",gxold:"O518LpuNom",gxvar:"A518LpuNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A518LpuNom=a
},v2z:function(a){gx.O.Z518LpuNom=a},v2c:function(){gx.fn.setControlValue("LPUNOM",gx.O.A518LpuNom,0)},c2v:function(){gx.O.A518LpuNom=this.val()},val:function(){return gx.fn.getControlValue("LPUNOM")},nac:function(){return false}};this.A516LpuCod=0;this.Z516LpuCod=0;this.O516LpuCod=0;this.A518LpuNom="";this.Z518LpuNom="";this.O518LpuNom="";this.AV18UsuCodCorr="";this.AV25Origem="";this.A519LpuNomSemA="";this.A517LpuDesComp="";this.A515LpuCampo1L="";this.AV26ScdCodEntidade="";this.ServerEvents=["e13312_client","e14312_client","e15312_client","e16312_client","e173137_client","e183137_client"];
this.EnterCtrl=["BTN_ENTER2"];this.VarControlMap.A519LpuNomSemA={id:"LPUNOMSEMA",grid:0,type:"char"};this.VarControlMap.A517LpuDesComp={id:"LPUDESCOMP",grid:0,type:"char"};this.VarControlMap.A515LpuCampo1L={id:"LPUCAMPO1L",grid:0,type:"char"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.VarControlMap.AV26ScdCodEntidade={id:"vSCDCODENTIDADE",grid:0,type:"char"};this.VarControlMap.AV25Origem={id:"vORIGEM",grid:0,type:"char"};this.SetStandaloneVars()}timt005.prototype=new gx.GxObject;
gx.setParentObj(new timt005());