text: /**@preserve  GeneXus Java 10_3_12-110051 on February 11, 2021 17:33:47.1
  *
  gx.evt.autoSkip=!1;gx.define("hatualizacaopreco",!1,function(){var n,t;this.ServerClass="hatualizacaopreco";this.PackageName="";this.setObjectType("web");this.setOnAjaxSessionTimeout("Warn");this.hasEnterEvent=!0;this.skipOnEnter=!1;this.addKeyListener("12","'FECHAR'");this.addKeyListener("5","REFRESH");this.addKeyListener("12","CANCEL");this.addKeyListener("1","HELP");this.SetStandaloneVars=function(){};this.Validv_Filialid=function(){try{var n=gx.util.balloon.getNew("vFILIALID");this.AnyError=0}catch(t){}try{return n==null?!0:n.show()}catch(t){}return!0};this.Validv_Pessoaid=function(){try{var n=gx.util.balloon.getNew("vPESSOAID");this.AnyError=0}catch(t){}try{return n==null?!0:n.show()}catch(t){}return!0};this.s112_client=function(){gx.fn.setCtrlProperty("vTPEXECUCAO","Enabled",0);gx.fn.setCtrlProperty("vFILIALID","Enabled",0);gx.fn.setCtrlProperty("vDTINICIAL","Enabled",0);gx.fn.setCtrlProperty("vDTFINAL","Enabled",0);gx.fn.setCtrlProperty("vPESSOAID","Enabled",0);gx.fn.setCtrlProperty("BUTTON1","Enabled",0);gx.fn.setCtrlProperty("BUTTON2","Enabled",0)};this.s125_client=function(){gx.fn.setCtrlProperty("vTPEXECUCAO","Enabled",1);gx.fn.setCtrlProperty("vFILIALID","Enabled",1);gx.fn.setCtrlProperty("vDTINICIAL","Enabled",1);gx.fn.setCtrlProperty("vDTFINAL","Enabled",1);gx.fn.setCtrlProperty("vPESSOAID","Enabled",1);gx.fn.setCtrlProperty("BUTTON1","Enabled",1);gx.fn.setCtrlProperty("BUTTON2","Enabled",1)};this.e112dc2_client=function(){this.executeServerEvent("'FECHAR'",!1,null,!1,!1)};this.e142dc2_client=function(){this.executeServerEvent("ENTER",!0,null,!1,!1)};this.e122dc2_client=function(){this.executeServerEvent("TIMER1.ELAPSED",!1,null,!0,!0)};this.e152dc2_client=function(){this.executeServerEvent("VFILIALID.ISVALID",!0,null,!1,!0)};this.e162dc2_client=function(){this.executeServerEvent("VPESSOAID.ISVALID",!0,null,!1,!0)};this.e182dc2_client=function(){this.executeServerEvent("CANCEL",!0,null,!1,!1)};this.GXValidFnc=[];n=this.GXValidFnc;this.GXCtrlIds=[2,5,8,11,13,16,18,19,22,24,27,29,31,34,36,37,46,49,51,52,55,57,58,61,63,72,75,76,77,78,79,80,81,82];this.GXLastCtrlId=82;this.TIMER1Container=gx.uc.getNew(this,64,13,"Timer","TIMER1Container","Timer1");t=this.TIMER1Container;t.setProp("Interval","Interval",1e4,"num");t.setDynProp("Enabled","Enabled",!0,"boolean");t.setProp("Visible","Visible",!0,"bool");t.setProp("Class","Class","","char");t.setC2ShowFunction(function(n){n.start()});t.addEventHandler("Elapsed",this.e122dc2_client);this.setUserControl(t);n[2]={fld:"TABLE3",grid:0};n[5]={fld:"TABLE6",grid:0};n[8]={fld:"TABLE1",grid:0};n[11]={fld:"TEXTBLOCK1",format:0,grid:0};n[13]={lvl:0,type:"char",len:1,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vTPEXECUCAO",gxz:"ZV60TpExecucao",gxold:"OV60TpExecucao",gxvar:"AV60TpExecucao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(n){gx.O.AV60TpExecucao=n},v2z:function(n){gx.O.ZV60TpExecucao=n},v2c:function(){gx.fn.setComboBoxValue("vTPEXECUCAO",gx.O.AV60TpExecucao)},c2v:function(){gx.O.AV60TpExecucao=this.val()},val:function(){return gx.fn.getControlValue("vTPEXECUCAO")},nac:gx.falseFn};n[16]={fld:"TEXTBLOCK2",format:0,grid:0};n[18]={lvl:0,type:"int",len:7,dec:0,sign:!1,pic:"ZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Validv_Filialid,isvalid:"e152dc2_client",rgrid:[],fld:"vFILIALID",gxz:"ZV21FilialId",gxold:"OV21FilialId",gxvar:"AV21FilialId",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV21FilialId=gx.num.intval(n)},v2z:function(n){gx.O.ZV21FilialId=gx.num.intval(n)},v2c:function(){gx.fn.setControlValue("vFILIALID",gx.O.AV21FilialId,0)},c2v:function(){gx.O.AV21FilialId=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("vFILIALID",".")},nac:gx.falseFn};n[19]={lvl:0,type:"svchar",len:25,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vFILIALNOMEREDUZIDO",gxz:"ZV66FilialNomeReduzido",gxold:"OV66FilialNomeReduzido",gxvar:"AV66FilialNomeReduzido",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV66FilialNomeReduzido=n},v2z:function(n){gx.O.ZV66FilialNomeReduzido=n},v2c:function(){gx.fn.setControlValue("vFILIALNOMEREDUZIDO",gx.O.AV66FilialNomeReduzido,0)},c2v:function(){gx.O.AV66FilialNomeReduzido=this.val()},val:function(){return gx.fn.getControlValue("vFILIALNOMEREDUZIDO")},nac:gx.falseFn};n[22]={fld:"TEXTBLOCK3",format:0,grid:0};n[24]={fld:"TABLE2",grid:0};n[27]={lvl:0,type:"date",len:10,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vDTINICIAL",gxz:"ZV62DtInicial",gxold:"OV62DtInicial",gxvar:"AV62DtInicial",dp:{f:0,st:!1,wn:!1,mf:!1,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV62DtInicial=gx.fn.toDatetimeValue(n)},v2z:function(n){gx.O.ZV62DtInicial=gx.fn.toDatetimeValue(n)},v2c:function(){gx.fn.setControlValue("vDTINICIAL",gx.O.AV62DtInicial,0);typeof this.dom_hdl=="function"&&this.dom_hdl.call(gx.O)},c2v:function(){gx.O.AV62DtInicial=gx.fn.toDatetimeValue(this.val())},val:function(){return gx.fn.getControlValue("vDTINICIAL")},nac:gx.falseFn};this.declareDomainHdlr(27,function(){});n[29]={fld:"TEXTBLOCK5",format:0,grid:0};n[31]={lvl:0,type:"date",len:10,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vDTFINAL",gxz:"ZV63DtFinal",gxold:"OV63DtFinal",gxvar:"AV63DtFinal",dp:{f:0,st:!1,wn:!1,mf:!1,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV63DtFinal=gx.fn.toDatetimeValue(n)},v2z:function(n){gx.O.ZV63DtFinal=gx.fn.toDatetimeValue(n)},v2c:function(){gx.fn.setControlValue("vDTFINAL",gx.O.AV63DtFinal,0);typeof this.dom_hdl=="function"&&this.dom_hdl.call(gx.O)},c2v:function(){gx.O.AV63DtFinal=gx.fn.toDatetimeValue(this.val())},val:function(){return gx.fn.getControlValue("vDTFINAL")},nac:gx.falseFn};this.declareDomainHdlr(31,function(){});n[34]={fld:"TEXTBLOCK4",format:0,grid:0};n[36]={lvl:0,type:"int",len:7,dec:0,sign:!1,pic:"ZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Validv_Pessoaid,isvalid:"e162dc2_client",rgrid:[],fld:"vPESSOAID",gxz:"ZV64PessoaId",gxold:"OV64PessoaId",gxvar:"AV64PessoaId",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV64PessoaId=gx.num.intval(n)},v2z:function(n){gx.O.ZV64PessoaId=gx.num.intval(n)},v2c:function(){gx.fn.setControlValue("vPESSOAID",gx.O.AV64PessoaId,0)},c2v:function(){gx.O.AV64PessoaId=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("vPESSOAID",".")},nac:gx.falseFn};n[37]={lvl:0,type:"svchar",len:60,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vPESSOAFANTASIA",gxz:"ZV65PessoaFantasia",gxold:"OV65PessoaFantasia",gxvar:"AV65PessoaFantasia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV65PessoaFantasia=n},v2z:function(n){gx.O.ZV65PessoaFantasia=n},v2c:function(){gx.fn.setControlValue("vPESSOAFANTASIA",gx.O.AV65PessoaFantasia,0)},c2v:function(){gx.O.AV65PessoaFantasia=this.val()},val:function(){return gx.fn.getControlValue("vPESSOAFANTASIA")},nac:gx.falseFn};n[46]={fld:"TAB3",grid:0};n[49]={fld:"IMAGE2",grid:0};n[51]={fld:"TXTAPLERRO1",format:0,grid:0};n[52]={fld:"TAB2",grid:0};n[55]={fld:"IMGERRO",grid:0};n[57]={fld:"TXTAPLERRO",format:0,grid:0};n[58]={fld:"TAB1",grid:0};n[61]={fld:"IMGPROC",grid:0};n[63]={fld:"TXTAPLICACAO",format:0,grid:0};n[72]={fld:"TABINVISIVEL",grid:0};n[75]={lvl:0,type:"int",len:6,dec:0,sign:!1,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vPROCESSOID",gxz:"ZV38ProcessoId",gxold:"OV38ProcessoId",gxvar:"AV38ProcessoId",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV38ProcessoId=gx.num.intval(n)},v2z:function(n){gx.O.ZV38ProcessoId=gx.num.intval(n)},v2c:function(){gx.fn.setControlValue("vPROCESSOID",gx.O.AV38ProcessoId,0)},c2v:function(){gx.O.AV38ProcessoId=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("vPROCESSOID",".")},nac:gx.falseFn};n[76]={lvl:0,type:"char",len:1,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vSIM",gxz:"ZV67Sim",gxold:"OV67Sim",gxvar:"AV67Sim",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV67Sim=n},v2z:function(n){gx.O.ZV67Sim=n},v2c:function(){gx.fn.setControlValue("vSIM",gx.O.AV67Sim,0)},c2v:function(){gx.O.AV67Sim=this.val()},val:function(){return gx.fn.getControlValue("vSIM")},nac:gx.falseFn};n[77]={lvl:0,type:"char",len:1,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vNAO",gxz:"ZV33Nao",gxold:"OV33Nao",gxvar:"AV33Nao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV33Nao=n},v2z:function(n){gx.O.ZV33Nao=n},v2c:function(){gx.fn.setControlValue("vNAO",gx.O.AV33Nao,0)},c2v:function(){gx.O.AV33Nao=this.val()},val:function(){return gx.fn.getControlValue("vNAO")},nac:gx.falseFn};n[78]={lvl:0,type:"svchar",len:100,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vNOMEABSOLUTO",gxz:"ZV35NomeAbsoluto",gxold:"OV35NomeAbsoluto",gxvar:"AV35NomeAbsoluto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV35NomeAbsoluto=n},v2z:function(n){gx.O.ZV35NomeAbsoluto=n},v2c:function(){gx.fn.setControlValue("vNOMEABSOLUTO",gx.O.AV35NomeAbsoluto,0)},c2v:function(){gx.O.AV35NomeAbsoluto=this.val()},val:function(){return gx.fn.getControlValue("vNOMEABSOLUTO")},nac:gx.falseFn};n[79]={lvl:0,type:"svchar",len:100,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vNOMERELATIVO",gxz:"ZV36NomeRelativo",gxold:"OV36NomeRelativo",gxvar:"AV36NomeRelativo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV36NomeRelativo=n},v2z:function(n){gx.O.ZV36NomeRelativo=n},v2c:function(){gx.fn.setControlValue("vNOMERELATIVO",gx.O.AV36NomeRelativo,0)},c2v:function(){gx.O.AV36NomeRelativo=this.val()},val:function(){return gx.fn.getControlValue("vNOMERELATIVO")},nac:gx.falseFn};n[80]={fld:"JS",format:2,grid:0};n[81]={fld:"PROMPT_FILIALID",grid:0};n[82]={fld:"PROMPT_SIM_NAO_NAO_PESSOAID",grid:0};this.AV60TpExecucao="";this.ZV60TpExecucao="";this.OV60TpExecucao="";this.AV21FilialId=0;this.ZV21FilialId=0;this.OV21FilialId=0;this.AV66FilialNomeReduzido="";this.ZV66FilialNomeReduzido="";this.OV66FilialNomeReduzido="";this.AV62DtInicial=gx.date.nullDate();this.ZV62DtInicial=gx.date.nullDate();this.OV62DtInicial=gx.date.nullDate();this.AV63DtFinal=gx.date.nullDate();this.ZV63DtFinal=gx.date.nullDate();this.OV63DtFinal=gx.date.nullDate();this.AV64PessoaId=0;this.ZV64PessoaId=0;this.OV64PessoaId=0;this.AV65PessoaFantasia="";this.ZV65PessoaFantasia="";this.OV65PessoaFantasia="";this.AV38ProcessoId=0;this.ZV38ProcessoId=0;this.OV38ProcessoId=0;this.AV67Sim="";this.ZV67Sim="";this.OV67Sim="";this.AV33Nao="";this.ZV33Nao="";this.OV33Nao="";this.AV35NomeAbsoluto="";this.ZV35NomeAbsoluto="";this.OV35NomeAbsoluto="";this.AV36NomeRelativo="";this.ZV36NomeRelativo="";this.OV36NomeRelativo="";this.AV60TpExecucao="";this.AV21FilialId=0;this.AV66FilialNomeReduzido="";this.AV62DtInicial=gx.date.nullDate();this.AV63DtFinal=gx.date.nullDate();this.AV64PessoaId=0;this.AV65PessoaFantasia="";this.AV38ProcessoId=0;this.AV67Sim="";this.AV33Nao="";this.AV35NomeAbsoluto="";this.AV36NomeRelativo="";this.A1546ProcessoDtTermino=gx.date.nullDate();this.A1544ProcessoId=0;this.A1543ProcessoRotina="";this.A1554ProcessoQtdeErros=0;this.A69PessoaId=0;this.A227EmpresaPessoasEmpresaId="";this.A1156FilialId=0;this.A1228FilialEmpresaId="";this.Events={e112dc2_client:["'FECHAR'",!0],e142dc2_client:["ENTER",!0],e122dc2_client:["TIMER1.ELAPSED",!0],e152dc2_client:["VFILIALID.ISVALID",!0],e162dc2_client:["VPESSOAID.ISVALID",!0],e182dc2_client:["CANCEL",!0]};this.EvtParms.REFRESH=[[],[]];this.EvtParms["'FECHAR'"]=[[],[]];this.EvtParms.ENTER=[[{av:"AV63DtFinal",fld:"vDTFINAL"},{av:"AV62DtInicial",fld:"vDTINICIAL"},{av:"AV60TpExecucao",fld:"vTPEXECUCAO"},{av:"AV21FilialId",fld:"vFILIALID"},{av:"A1228FilialEmpresaId",fld:"FILIALEMPRESAID"},{av:"AV20FilialEmpresaId",fld:"vFILIALEMPRESAID"},{av:"A1156FilialId",fld:"FILIALID"},{av:"AV64PessoaId",fld:"vPESSOAID"},{av:"A227EmpresaPessoasEmpresaId",fld:"EMPRESAPESSOASEMPRESAID"},{av:"AV6PessoaEmpresaId",fld:"vPESSOAEMPRESAID"},{av:"A69PessoaId",fld:"PESSOAID"},{av:"AV71QtdPagGeradas",fld:"vQTDPAGGERADAS"},{av:"AV52UsrCod",fld:"vUSRCOD"},{av:"AV15EmpresaLogadaId",fld:"vEMPRESALOGADAID"},{av:"AV68NomeEmpresa",fld:"vNOMEEMPRESA"},{av:"AV70ImagemEmp",fld:"vIMAGEMEMP"},{av:"AV69UsuarioNome",fld:"vUSUARIONOME"},{av:"AV17ErrDsc",fld:"vERRDSC"}],[{av:"AV49TpErro",fld:"vTPERRO"},{av:"AV63DtFinal",fld:"vDTFINAL"},{av:"AV76GXLvl75",fld:"vGXLVL75"},{av:"AV77GXLvl102",fld:"vGXLVL102"},{av:'gx.fn.getCtrlProperty("TAB1","Visible")',ctrl:"TAB1",prop:"Visible"},{av:'gx.fn.getCtrlProperty("TAB2","Visible")',ctrl:"TAB2",prop:"Visible"},{av:'gx.fn.getCtrlProperty("TAB3","Visible")',ctrl:"TAB3",prop:"Visible"},{av:"this.TIMER1Container.Enabled",ctrl:"TIMER1",prop:"Enabled"},{av:"AV38ProcessoId",fld:"vPROCESSOID"},{av:"AV11ApplicationFolder",fld:"vAPPLICATIONFOLDER"},{av:"AV36NomeRelativo",fld:"vNOMERELATIVO"},{av:"AV35NomeAbsoluto",fld:"vNOMEABSOLUTO"},{av:"AV17ErrDsc",fld:"vERRDSC"},{av:"AV64PessoaId",fld:"vPESSOAID"},{av:"AV62DtInicial",fld:"vDTINICIAL"},{av:"AV21FilialId",fld:"vFILIALID"},{av:"AV60TpExecucao",fld:"vTPEXECUCAO"},{av:"AV69UsuarioNome",fld:"vUSUARIONOME"},{av:"AV70ImagemEmp",fld:"vIMAGEMEMP"},{av:"AV68NomeEmpresa",fld:"vNOMEEMPRESA"},{av:"AV15EmpresaLogadaId",fld:"vEMPRESALOGADAID"},{av:"AV52UsrCod",fld:"vUSRCOD"},{av:"AV71QtdPagGeradas",fld:"vQTDPAGGERADAS"},{ctrl:"vTPEXECUCAO"},{av:'gx.fn.getCtrlProperty("vFILIALID","Enabled")',ctrl:"vFILIALID",prop:"Enabled"},{av:'gx.fn.getCtrlProperty("vDTINICIAL","Enabled")',ctrl:"vDTINICIAL",prop:"Enabled"},{av:'gx.fn.getCtrlProperty("vDTFINAL","Enabled")',ctrl:"vDTFINAL",prop:"Enabled"},{av:'gx.fn.getCtrlProperty("vPESSOAID","Enabled")',ctrl:"vPESSOAID",prop:"Enabled"},{ctrl:"BUTTON1",prop:"Enabled"},{ctrl:"BUTTON2",prop:"Enabled"}]];this.EvtParms["TIMER1.ELAPSED"]=[[{av:"A1543ProcessoRotina",fld:"PROCESSOROTINA"},{av:"A1544ProcessoId",fld:"PROCESSOID"},{av:"AV38ProcessoId",fld:"vPROCESSOID"},{av:"A1546ProcessoDtTermino",fld:"PROCESSODTTERMINO"},{av:"A1554ProcessoQtdeErros",fld:"PROCESSOQTDEERROS"},{av:"AV36NomeRelativo",fld:"vNOMERELATIVO"},{av:"AV75Pgmdesc",fld:"vPGMDESC"}],[{av:"AV78GXLvl133",fld:"vGXLVL133"},{av:"this.TIMER1Container.Enabled",ctrl:"TIMER1",prop:"Enabled"},{av:'gx.fn.getCtrlProperty("TAB1","Visible")',ctrl:"TAB1",prop:"Visible"},{av:'gx.fn.getCtrlProperty("TAB2","Visible")',ctrl:"TAB2",prop:"Visible"},{av:'gx.fn.getCtrlProperty("TAB3","Visible")',ctrl:"TAB3",prop:"Visible"},{av:"AV38ProcessoId",fld:"vPROCESSOID"},{ctrl:"vTPEXECUCAO"},{av:'gx.fn.getCtrlProperty("vFILIALID","Enabled")',ctrl:"vFILIALID",prop:"Enabled"},{av:'gx.fn.getCtrlProperty("vDTINICIAL","Enabled")',ctrl:"vDTINICIAL",prop:"Enabled"},{av:'gx.fn.getCtrlProperty("vDTFINAL","Enabled")',ctrl:"vDTFINAL",prop:"Enabled"},{av:'gx.fn.getCtrlProperty("vPESSOAID","Enabled")',ctrl:"vPESSOAID",prop:"Enabled"},{ctrl:"BUTTON1",prop:"Enabled"},{ctrl:"BUTTON2",prop:"Enabled"}]];this.EvtParms["VFILIALID.ISVALID"]=[[{av:"AV21FilialId",fld:"vFILIALID"}],[{av:"AV66FilialNomeReduzido",fld:"vFILIALNOMEREDUZIDO"}]];this.EvtParms["VPESSOAID.ISVALID"]=[[{av:"AV6PessoaEmpresaId",fld:"vPESSOAEMPRESAID"},{av:"AV64PessoaId",fld:"vPESSOAID"}],[{av:"AV65PessoaFantasia",fld:"vPESSOAFANTASIA"}]];this.setPrompt("PROMPT_FILIALID",[18]);this.setPrompt("PROMPT_SIM_NAO_NAO_PESSOAID",[76,77,77,36]);this.EnterCtrl=["BUTTON1"];this.InitStandaloneVars()});gx.setParentObj(new hatualizacaopreco)