text: /**@preserve  GeneXus Java 10_3_12-110051 on February 13, 2021 12:48:35.5
  *
  gx.evt.autoSkip=!1;gx.define("hregistrarentradaparcelaratcon",!1,function(){var n,t,i,r,u;this.ServerClass="hregistrarentradaparcelaratcon";this.PackageName="";this.setObjectType("web");this.setOnAjaxSessionTimeout("Warn");this.refreshAndEnter=!0;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.AV41ProdutoRateio=gx.fn.getControlValue("vPRODUTORATEIO");this.AV48SnExcluirLinha=gx.fn.getControlValue("vSNEXCLUIRLINHA");this.AV9CentroCustoDescricao=gx.fn.getControlValue("vCENTROCUSTODESCRICAO");this.AV33NaturezaDescricao=gx.fn.getControlValue("vNATUREZADESCRICAO");this.A153EmpresaCentroCustoEmpresaId=gx.fn.getControlValue("EMPRESACENTROCUSTOEMPRESAID");this.A51CentroCustoId=gx.fn.getControlValue("CENTROCUSTOID");this.AV12CentroCustoIdProd=gx.fn.getControlValue("vCENTROCUSTOIDPROD");this.A52CentroCustoDescricao=gx.fn.getControlValue("CENTROCUSTODESCRICAO");this.A171EmpresaNaturezaEmpresaId=gx.fn.getControlValue("EMPRESANATUREZAEMPRESAID");this.A172NaturezaId=gx.fn.getControlValue("NATUREZAID");this.AV36NaturezaIdProd=gx.fn.getControlValue("vNATUREZAIDPROD");this.A154NaturezaDescricao=gx.fn.getControlValue("NATUREZADESCRICAO");this.AV18EntradaEmpresaId=gx.fn.getControlValue("vENTRADAEMPRESAID");this.AV19EntradaId=gx.fn.getIntegerValue("vENTRADAID",".");this.AV53TipoRateioEmpresaId=gx.fn.getControlValue("vTIPORATEIOEMPRESAID");this.AV52TipoRateioId=gx.fn.getIntegerValue("vTIPORATEIOID",".");this.AV45SessaoRateio=gx.fn.getControlValue("vSESSAORATEIO")};this.Validv_Centrocustoempresaid=function(){try{var n=gx.util.balloon.getNew("vCENTROCUSTOEMPRESAID");this.AnyError=0}catch(t){}try{return n==null?!0:n.show()}catch(t){}return!0};this.Validv_Naturezaempresaid=function(){try{var n=gx.util.balloon.getNew("vNATUREZAEMPRESAID");this.AnyError=0}catch(t){}try{return n==null?!0:n.show()}catch(t){}return!0};this.e122a82_client=function(){this.executeServerEvent("ENTER",!0,null,!1,!1)};this.e112a82_client=function(){this.executeServerEvent("'FECHAR'",!1,null,!1,!1)};this.e132a82_client=function(){this.executeServerEvent("'INSERIR'",!0,null,!1,!1)};this.e172a82_client=function(){this.executeServerEvent("'EXCLUIR'",!0,arguments[0],!1,!1)};this.e182a82_client=function(){this.executeServerEvent("VNATUREZAIDGRID.ISVALID",!0,arguments[0],!1,!1)};this.e192a82_client=function(){this.executeServerEvent("VCENTROCUSTOIDGRID.ISVALID",!0,arguments[0],!1,!1)};this.e202a82_client=function(){this.executeServerEvent("CANCEL",!0,arguments[0],!1,!1)};this.GXValidFnc=[];n=this.GXValidFnc;this.GXCtrlIds=[2,5,8,11,13,14,17,19,20,23,25,26,28,31,33,36,38,41,43,45,48,50,52,55,57,60,62,65,67,72,75,77,79,80,81,82,83,84,85,86,87,88,89,90,96,97];this.GXLastCtrlId=97;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",78,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hregistrarentradaparcelaratcon",[],!1,1,!1,!0,0,!1,!1,!1,"CollRateioProduto.RateioProdutoItem",0,"px","Novo registro",!1,!1,!0,null,null,!1,"AV41ProdutoRateio",!1,[1,1,1,1]);t=this.Grid1Container;t.addSingleLineEdit("Centrocustoidgrid",79,"vCENTROCUSTOIDGRID","Centro de Custo","","CentroCustoIdGrid","svchar",95,"px",30,30,"left",null,[],"Centrocustoidgrid","CentroCustoIdGrid",!0,0,!1,!1,"Attribute",1,"");t.addBitmap("&Bmpprmcc","vBMPPRMCC",80,0,"px",17,"px",null,"","","Image","GridColumnImage");t.addSingleLineEdit("GXV129",81,"CTLCENTROCUSTOID","Código Centro Custo","","CentroCustoId","svchar",0,"px",30,30,"left",null,[],"GXV129","GXV129",!1,0,!1,!1,"Attribute",1,"");t.addSingleLineEdit("GXV12A",82,"CTLCENTROCUSTODESCRICAO","Descrição do Centro de Custo","","CentroCustoDescricao","svchar",180,"px",35,35,"left",null,[],"GXV12A","GXV12A",!0,0,!1,!1,"SemQuebraGrid",1,"");t.addSingleLineEdit("Naturezaidgrid",83,"vNATUREZAIDGRID","Natureza","","NaturezaIdGrid","svchar",80,"px",30,30,"left",null,[],"Naturezaidgrid","NaturezaIdGrid",!0,0,!1,!1,"Attribute",1,"");t.addBitmap("&Bmpprmnt","vBMPPRMNT",84,0,"px",17,"px",null,"","","Image","GridColumnImage");t.addSingleLineEdit("GXV12D",85,"CTLNATUREZAID","Código da Natureza","","NaturezaId","svchar",0,"px",30,30,"left",null,[],"GXV12D","GXV12D",!1,0,!1,!1,"Attribute",1,"");t.addSingleLineEdit("GXV12E",86,"CTLNATUREZADESCRICAO","Descrição da Natureza","","NaturezaDescricao","svchar",150,"px",35,35,"left",null,[],"GXV12E","GXV12E",!0,0,!1,!1,"SemQuebraGrid",1,"");t.addSingleLineEdit("GXV12F",87,"CTLVALORRATEIO","Valor","","ValorRateio","decimal",70,"px",22,22,"right",null,[],"GXV12F","GXV12F",!0,2,!1,!1,"Attribute",1,"");t.addCheckBox("GXV12G",88,"CTLSNEXCLUIR","","","SnExcluir","char","S","N",null,!1,!1,0,"px","");t.addBitmap("&Bmpexc","vBMPEXC",89,0,"px",17,"px","e172a82_client","","","Image","GridColumnImage");this.setGrid(t);this.HDMASKCENTROCUSTOContainer=gx.uc.getNew(this,100,13,"HDMask","HDMASKCENTROCUSTOContainer","Hdmaskcentrocusto");i=this.HDMASKCENTROCUSTOContainer;i.setDynProp("AttachControl","Attachcontrol","","str");i.setDynProp("Picture","Picture","","str");i.setProp("Default","Default","","str");i.setProp("Version","Version","2.01","str");i.setProp("Reverse","Reverse",!1,"bool");i.setProp("Signed","Signed",!1,"bool");i.setProp("UnmaskedChars","Unmaskedchars","[(),.:/ -]","str");i.setProp("UnmaskedValue","Unmaskedvalue",!1,"bool");i.setProp("FixedChars","Fixedchars","[(),.:/ -]","str");i.setProp("GetValue","Getvalue","","char");i.setProp("ControlType","Controltype","Grid","str");i.setProp("Visible","Visible",!0,"bool");i.setProp("Enabled","Enabled",!0,"boolean");i.setProp("Class","Class","","char");i.setC2ShowFunction(function(n){n.show()});this.setUserControl(i);this.HDMASKNATUREZAContainer=gx.uc.getNew(this,101,13,"HDMask","HDMASKNATUREZAContainer","Hdmasknatureza");r=this.HDMASKNATUREZAContainer;r.setDynProp("AttachControl","Attachcontrol","","str");r.setDynProp("Picture","Picture","","str");r.setProp("Default","Default","","str");r.setProp("Version","Version","2.01","str");r.setProp("Reverse","Reverse",!1,"bool");r.setProp("Signed","Signed",!1,"bool");r.setProp("UnmaskedChars","Unmaskedchars","[(),.:/ -]","str");r.setProp("UnmaskedValue","Unmaskedvalue",!1,"bool");r.setProp("FixedChars","Fixedchars","[(),.:/ -]","str");r.setProp("GetValue","Getvalue","","char");r.setProp("ControlType","Controltype","Grid","str");r.setProp("Visible","Visible",!0,"bool");r.setProp("Enabled","Enabled",!0,"boolean");r.setProp("Class","Class","","char");r.setC2ShowFunction(function(n){n.show()});this.setUserControl(r);this.HDMASKVALORContainer=gx.uc.getNew(this,102,13,"HDMask","HDMASKVALORContainer","Hdmaskvalor");u=this.HDMASKVALORContainer;u.setProp("AttachControl","Attachcontrol","","str");u.setProp("Picture","Picture","","str");u.setProp("Default","Default","","str");u.setProp("Version","Version","2.01","str");u.setProp("Reverse","Reverse",!0,"bool");u.setProp("Signed","Signed",!1,"bool");u.setProp("UnmaskedChars","Unmaskedchars","","str");u.setProp("UnmaskedValue","Unmaskedvalue",!1,"bool");u.setProp("FixedChars","Fixedchars","","str");u.setProp("GetValue","Getvalue","","char");u.setProp("ControlType","Controltype","Grid","str");u.setProp("Visible","Visible",!0,"bool");u.setProp("Enabled","Enabled",!0,"boolean");u.setProp("Class","Class","","char");u.setC2ShowFunction(function(n){n.show()});this.setUserControl(u);n[2]={fld:"TABLE11",grid:0};n[5]={fld:"TABLE12",grid:0};n[8]={fld:"TABLE8",grid:0};n[11]={fld:"TEXTBLOCK1",format:0,grid:0};n[13]={lvl:0,type:"int",len:7,dec:0,sign:!1,pic:"ZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vFILIALID",gxz:"ZV26FilialId",gxold:"OV26FilialId",gxvar:"AV26FilialId",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV26FilialId=gx.num.intval(n)},v2z:function(n){gx.O.ZV26FilialId=gx.num.intval(n)},v2c:function(){gx.fn.setControlValue("vFILIALID",gx.O.AV26FilialId,0)},c2v:function(){gx.O.AV26FilialId=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("vFILIALID",".")},nac:gx.falseFn};n[14]={lvl:0,type:"svchar",len:100,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vFILIALNOME",gxz:"ZV27FilialNome",gxold:"OV27FilialNome",gxvar:"AV27FilialNome",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV27FilialNome=n},v2z:function(n){gx.O.ZV27FilialNome=n},v2c:function(){gx.fn.setControlValue("vFILIALNOME",gx.O.AV27FilialNome,0)},c2v:function(){gx.O.AV27FilialNome=this.val()},val:function(){return gx.fn.getControlValue("vFILIALNOME")},nac:gx.falseFn};n[17]={fld:"TEXTBLOCK2",format:0,grid:0};n[19]={lvl:0,type:"int",len:7,dec:0,sign:!1,pic:"ZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vPESSOAID",gxz:"ZV38PessoaId",gxold:"OV38PessoaId",gxvar:"AV38PessoaId",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV38PessoaId=gx.num.intval(n)},v2z:function(n){gx.O.ZV38PessoaId=gx.num.intval(n)},v2c:function(){gx.fn.setControlValue("vPESSOAID",gx.O.AV38PessoaId,0)},c2v:function(){gx.O.AV38PessoaId=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("vPESSOAID",".")},nac:gx.falseFn};n[20]={lvl:0,type:"svchar",len:60,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vPESSOAFANTASIA",gxz:"ZV37PessoaFantasia",gxold:"OV37PessoaFantasia",gxvar:"AV37PessoaFantasia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV37PessoaFantasia=n},v2z:function(n){gx.O.ZV37PessoaFantasia=n},v2c:function(){gx.fn.setControlValue("vPESSOAFANTASIA",gx.O.AV37PessoaFantasia,0)},c2v:function(){gx.O.AV37PessoaFantasia=this.val()},val:function(){return gx.fn.getControlValue("vPESSOAFANTASIA")},nac:gx.falseFn};n[23]={fld:"TEXTBLOCK3",format:0,grid:0};n[25]={lvl:0,type:"int",len:4,dec:0,sign:!1,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vCFOPCODIGO",gxz:"ZV13CFOPCodigo",gxold:"OV13CFOPCodigo",gxvar:"AV13CFOPCodigo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV13CFOPCodigo=gx.num.intval(n)},v2z:function(n){gx.O.ZV13CFOPCodigo=gx.num.intval(n)},v2c:function(){gx.fn.setControlValue("vCFOPCODIGO",gx.O.AV13CFOPCodigo,0)},c2v:function(){gx.O.AV13CFOPCodigo=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("vCFOPCODIGO",".")},nac:gx.falseFn};n[26]={lvl:0,type:"svchar",len:340,dec:0,sign:!1,ro:0,multiline:!0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vCFOPDESCRICAO",gxz:"ZV14CFOPDescricao",gxold:"OV14CFOPDescricao",gxvar:"AV14CFOPDescricao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV14CFOPDescricao=n},v2z:function(n){gx.O.ZV14CFOPDescricao=n},v2c:function(){gx.fn.setControlValue("vCFOPDESCRICAO",gx.O.AV14CFOPDescricao,0)},c2v:function(){gx.O.AV14CFOPDescricao=this.val()},val:function(){return gx.fn.getControlValue("vCFOPDESCRICAO")},nac:gx.falseFn};n[28]={fld:"TABLE9",grid:0};n[31]={fld:"TEXTBLOCK4",format:0,grid:0};n[33]={lvl:0,type:"int",len:9,dec:0,sign:!1,pic:"ZZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vENTRADANUMERODOCUMENTO",gxz:"ZV20EntradaNumeroDocumento",gxold:"OV20EntradaNumeroDocumento",gxvar:"AV20EntradaNumeroDocumento",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV20EntradaNumeroDocumento=gx.num.intval(n)},v2z:function(n){gx.O.ZV20EntradaNumeroDocumento=gx.num.intval(n)},v2c:function(){gx.fn.setControlValue("vENTRADANUMERODOCUMENTO",gx.O.AV20EntradaNumeroDocumento,0)},c2v:function(){gx.O.AV20EntradaNumeroDocumento=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("vENTRADANUMERODOCUMENTO",".")},nac:gx.falseFn};n[36]={fld:"TEXTBLOCK5",format:0,grid:0};n[38]={fld:"TABLE14",grid:0};n[41]={lvl:0,type:"char",len:4,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vENTRADASERIE",gxz:"ZV21EntradaSerie",gxold:"OV21EntradaSerie",gxvar:"AV21EntradaSerie",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV21EntradaSerie=n},v2z:function(n){gx.O.ZV21EntradaSerie=n},v2c:function(){gx.fn.setControlValue("vENTRADASERIE",gx.O.AV21EntradaSerie,0)},c2v:function(){gx.O.AV21EntradaSerie=this.val()},val:function(){return gx.fn.getControlValue("vENTRADASERIE")},nac:gx.falseFn};n[43]={fld:"TEXTBLOCK14",format:0,grid:0};n[45]={lvl:0,type:"char",len:5,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vENTRADASUBSERIE",gxz:"ZV22EntradaSubSerie",gxold:"OV22EntradaSubSerie",gxvar:"AV22EntradaSubSerie",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV22EntradaSubSerie=n},v2z:function(n){gx.O.ZV22EntradaSubSerie=n},v2c:function(){gx.fn.setControlValue("vENTRADASUBSERIE",gx.O.AV22EntradaSubSerie,0)},c2v:function(){gx.O.AV22EntradaSubSerie=this.val()},val:function(){return gx.fn.getControlValue("vENTRADASUBSERIE")},nac:gx.falseFn};n[48]={fld:"TEXTBLOCK6",format:0,grid:0};n[50]={lvl:0,type:"date",len:10,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vENTRADADATAEMISSAO",gxz:"ZV17EntradaDataEmissao",gxold:"OV17EntradaDataEmissao",gxvar:"AV17EntradaDataEmissao",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.AV17EntradaDataEmissao=gx.fn.toDatetimeValue(n)},v2z:function(n){gx.O.ZV17EntradaDataEmissao=gx.fn.toDatetimeValue(n)},v2c:function(){gx.fn.setControlValue("vENTRADADATAEMISSAO",gx.O.AV17EntradaDataEmissao,0)},c2v:function(){gx.O.AV17EntradaDataEmissao=gx.fn.toDatetimeValue(this.val())},val:function(){return gx.fn.getControlValue("vENTRADADATAEMISSAO")},nac:gx.falseFn};n[52]={fld:"TABLE13",grid:0};n[55]={fld:"TEXTBLOCK7",format:0,grid:0};n[57]={lvl:0,type:"decimal",len:18,dec:2,sign:!1,pic:"ZZZ,ZZZ,ZZZ,ZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vENTRADAVALORNOTA",gxz:"ZV24EntradaValorNota",gxold:"OV24EntradaValorNota",gxvar:"AV24EntradaValorNota",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV24EntradaValorNota=gx.fn.toDecimalValue(n,",",".")},v2z:function(n){gx.O.ZV24EntradaValorNota=gx.fn.toDecimalValue(n,".",",")},v2c:function(){gx.fn.setDecimalValue("vENTRADAVALORNOTA",gx.O.AV24EntradaValorNota,2,",");typeof this.dom_hdl=="function"&&this.dom_hdl.call(gx.O)},c2v:function(){gx.O.AV24EntradaValorNota=this.val()},val:function(){return gx.fn.getDecimalValue("vENTRADAVALORNOTA",".",",")},nac:gx.falseFn};this.declareDomainHdlr(57,function(){});n[60]={fld:"TEXTBLOCK8",format:0,grid:0};n[62]={lvl:0,type:"decimal",len:18,dec:2,sign:!1,pic:"ZZZ,ZZZ,ZZZ,ZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vENTRADAVALORRATEIO",gxz:"ZV25EntradaValorRateio",gxold:"OV25EntradaValorRateio",gxvar:"AV25EntradaValorRateio",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV25EntradaValorRateio=gx.fn.toDecimalValue(n,",",".")},v2z:function(n){gx.O.ZV25EntradaValorRateio=gx.fn.toDecimalValue(n,".",",")},v2c:function(){gx.fn.setDecimalValue("vENTRADAVALORRATEIO",gx.O.AV25EntradaValorRateio,2,",");typeof this.dom_hdl=="function"&&this.dom_hdl.call(gx.O)},c2v:function(){gx.O.AV25EntradaValorRateio=this.val()},val:function(){return gx.fn.getDecimalValue("vENTRADAVALORRATEIO",".",",")},nac:gx.falseFn};this.declareDomainHdlr(62,function(){});n[65]={fld:"TEXTBLOCK9",format:0,grid:0};n[67]={lvl:0,type:"decimal",len:18,dec:2,sign:!0,pic:"ZZZ,ZZZ,ZZZ,ZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vENTRADAVALORDIFERENCA",gxz:"ZV23EntradaValorDiferenca",gxold:"OV23EntradaValorDiferenca",gxvar:"AV23EntradaValorDiferenca",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV23EntradaValorDiferenca=gx.fn.toDecimalValue(n,",",".")},v2z:function(n){gx.O.ZV23EntradaValorDiferenca=gx.fn.toDecimalValue(n,".",",")},v2c:function(){gx.fn.setDecimalValue("vENTRADAVALORDIFERENCA",gx.O.AV23EntradaValorDiferenca,2,",");typeof this.dom_hdl=="function"&&this.dom_hdl.call(gx.O)},c2v:function(){gx.O.AV23EntradaValorDiferenca=this.val()},val:function(){return gx.fn.getDecimalValue("vENTRADAVALORDIFERENCA",".",",")},nac:gx.falseFn};this.declareDomainHdlr(67,function(){});n[72]={fld:"TABLE7",grid:0};n[75]={fld:"IMGNOVO",grid:0};n[77]={fld:"DIV1",format:2,grid:0};n[79]={lvl:2,type:"svchar",len:30,dec:0,sign:!1,ro:0,isacc:0,grid:78,gxgrid:this.Grid1Container,fnc:null,isvalid:"e192a82_client",rgrid:[],fld:"vCENTROCUSTOIDGRID",gxz:"ZV11CentroCustoIdGrid",gxold:"OV11CentroCustoIdGrid",gxvar:"AV11CentroCustoIdGrid",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){gx.O.AV11CentroCustoIdGrid=n},v2z:function(n){gx.O.ZV11CentroCustoIdGrid=n},v2c:function(n){gx.fn.setGridControlValue("vCENTROCUSTOIDGRID",n||gx.fn.currentGridRowImpl(78),gx.O.AV11CentroCustoIdGrid,0)},c2v:function(){gx.O.AV11CentroCustoIdGrid=this.val()},val:function(n){return gx.fn.getGridControlValue("vCENTROCUSTOIDGRID",n||gx.fn.currentGridRowImpl(78))},nac:gx.falseFn};n[80]={lvl:2,type:"bits",len:1024,dec:0,sign:!1,ro:1,isacc:0,grid:78,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vBMPPRMCC",gxz:"ZV6BmpPrmCC",gxold:"OV6BmpPrmCC",gxvar:"AV6BmpPrmCC",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",v2v:function(n){gx.O.AV6BmpPrmCC=n},v2z:function(n){gx.O.ZV6BmpPrmCC=n},v2c:function(n){gx.fn.setGridMultimediaValue("vBMPPRMCC",n||gx.fn.currentGridRowImpl(78),gx.O.AV6BmpPrmCC,gx.O.AV66Bmpprmcc_GXI)},c2v:function(){gx.O.AV66Bmpprmcc_GXI=this.val_GXI();gx.O.AV6BmpPrmCC=this.val()},val:function(n){return gx.fn.getGridControlValue("vBMPPRMCC",n||gx.fn.currentGridRowImpl(78))},val_GXI:function(n){return gx.fn.getGridControlValue("vBMPPRMCC_GXI",n||gx.fn.currentGridRowImpl(78))},gxvar_GXI:"AV66Bmpprmcc_GXI",nac:gx.falseFn};n[81]={lvl:2,type:"svchar",len:30,dec:0,sign:!1,ro:0,isacc:0,grid:78,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CTLCENTROCUSTOID",gxz:"ZV60GXV129",gxold:"OV60GXV129",gxvar:"GXV129",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){gx.O.GXV129=n},v2z:function(n){gx.O.ZV60GXV129=n},v2c:function(n){gx.fn.setGridControlValue("CTLCENTROCUSTOID",n||gx.fn.currentGridRowImpl(78),gx.O.GXV129,0)},c2v:function(){gx.O.GXV129=this.val()},val:function(n){return gx.fn.getGridControlValue("CTLCENTROCUSTOID",n||gx.fn.currentGridRowImpl(78))},nac:gx.falseFn};n[82]={lvl:2,type:"svchar",len:35,dec:0,sign:!1,ro:0,isacc:0,grid:78,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CTLCENTROCUSTODESCRICAO",gxz:"ZV61GXV12A",gxold:"OV61GXV12A",gxvar:"GXV12A",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){gx.O.GXV12A=n},v2z:function(n){gx.O.ZV61GXV12A=n},v2c:function(n){gx.fn.setGridControlValue("CTLCENTROCUSTODESCRICAO",n||gx.fn.currentGridRowImpl(78),gx.O.GXV12A,0)},c2v:function(){gx.O.GXV12A=this.val()},val:function(n){return gx.fn.getGridControlValue("CTLCENTROCUSTODESCRICAO",n||gx.fn.currentGridRowImpl(78))},nac:gx.falseFn};n[83]={lvl:2,type:"svchar",len:30,dec:0,sign:!1,ro:0,isacc:0,grid:78,gxgrid:this.Grid1Container,fnc:null,isvalid:"e182a82_client",rgrid:[],fld:"vNATUREZAIDGRID",gxz:"ZV35NaturezaIdGrid",gxold:"OV35NaturezaIdGrid",gxvar:"AV35NaturezaIdGrid",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){gx.O.AV35NaturezaIdGrid=n},v2z:function(n){gx.O.ZV35NaturezaIdGrid=n},v2c:function(n){gx.fn.setGridControlValue("vNATUREZAIDGRID",n||gx.fn.currentGridRowImpl(78),gx.O.AV35NaturezaIdGrid,0)},c2v:function(){gx.O.AV35NaturezaIdGrid=this.val()},val:function(n){return gx.fn.getGridControlValue("vNATUREZAIDGRID",n||gx.fn.currentGridRowImpl(78))},nac:gx.falseFn};n[84]={lvl:2,type:"bits",len:1024,dec:0,sign:!1,ro:1,isacc:0,grid:78,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vBMPPRMNT",gxz:"ZV7BmpPrmNt",gxold:"OV7BmpPrmNt",gxvar:"AV7BmpPrmNt",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",v2v:function(n){gx.O.AV7BmpPrmNt=n},v2z:function(n){gx.O.ZV7BmpPrmNt=n},v2c:function(n){gx.fn.setGridMultimediaValue("vBMPPRMNT",n||gx.fn.currentGridRowImpl(78),gx.O.AV7BmpPrmNt,gx.O.AV67Bmpprmnt_GXI)},c2v:function(){gx.O.AV67Bmpprmnt_GXI=this.val_GXI();gx.O.AV7BmpPrmNt=this.val()},val:function(n){return gx.fn.getGridControlValue("vBMPPRMNT",n||gx.fn.currentGridRowImpl(78))},val_GXI:function(n){return gx.fn.getGridControlValue("vBMPPRMNT_GXI",n||gx.fn.currentGridRowImpl(78))},gxvar_GXI:"AV67Bmpprmnt_GXI",nac:gx.falseFn};n[85]={lvl:2,type:"svchar",len:30,dec:0,sign:!1,ro:0,isacc:0,grid:78,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CTLNATUREZAID",gxz:"ZV62GXV12D",gxold:"OV62GXV12D",gxvar:"GXV12D",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){gx.O.GXV12D=n},v2z:function(n){gx.O.ZV62GXV12D=n},v2c:function(n){gx.fn.setGridControlValue("CTLNATUREZAID",n||gx.fn.currentGridRowImpl(78),gx.O.GXV12D,0)},c2v:function(){gx.O.GXV12D=this.val()},val:function(n){return gx.fn.getGridControlValue("CTLNATUREZAID",n||gx.fn.currentGridRowImpl(78))},nac:gx.falseFn};n[86]={lvl:2,type:"svchar",len:35,dec:0,sign:!1,ro:0,isacc:0,grid:78,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CTLNATUREZADESCRICAO",gxz:"ZV63GXV12E",gxold:"OV63GXV12E",gxvar:"GXV12E",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){gx.O.GXV12E=n},v2z:function(n){gx.O.ZV63GXV12E=n},v2c:function(n){gx.fn.setGridControlValue("CTLNATUREZADESCRICAO",n||gx.fn.currentGridRowImpl(78),gx.O.GXV12E,0)},c2v:function(){gx.O.GXV12E=this.val()},val:function(n){return gx.fn.getGridControlValue("CTLNATUREZADESCRICAO",n||gx.fn.currentGridRowImpl(78))},nac:gx.falseFn};n[87]={lvl:2,type:"decimal",len:18,dec:2,sign:!1,pic:"ZZZ,ZZZ,ZZZ,ZZZ,ZZ9.99",ro:0,isacc:0,grid:78,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CTLVALORRATEIO",gxz:"ZV64GXV12F",gxold:"OV64GXV12F",gxvar:"GXV12F",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",v2v:function(n){gx.O.GXV12F=gx.fn.toDecimalValue(n,",",".")},v2z:function(n){gx.O.ZV64GXV12F=gx.fn.toDecimalValue(n,".",",")},v2c:function(n){gx.fn.setGridDecimalValue("CTLVALORRATEIO",n||gx.fn.currentGridRowImpl(78),gx.O.GXV12F,2,",")},c2v:function(){gx.O.GXV12F=this.val()},val:function(n){return gx.fn.getGridDecimalValue("CTLVALORRATEIO",n||gx.fn.currentGridRowImpl(78),".",",")},nac:gx.falseFn};n[88]={lvl:2,type:"char",len:1,dec:0,sign:!1,ro:0,isacc:0,grid:78,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CTLSNEXCLUIR",gxz:"ZV65GXV12G",gxold:"OV65GXV12G",gxvar:"GXV12G",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",inputType:"text",v2v:function(n){gx.O.GXV12G=n},v2z:function(n){gx.O.ZV65GXV12G=n},v2c:function(n){gx.fn.setGridCheckBoxValue("CTLSNEXCLUIR",n||gx.fn.currentGridRowImpl(78),gx.O.GXV12G,"S")},c2v:function(){gx.O.GXV12G=this.val()},val:function(n){return gx.fn.getGridControlValue("CTLSNEXCLUIR",n||gx.fn.currentGridRowImpl(78))},nac:gx.falseFn,values:["S","N"]};n[89]={lvl:2,type:"bits",len:1024,dec:0,sign:!1,ro:1,isacc:0,grid:78,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vBMPEXC",gxz:"ZV5BmpExc",gxold:"OV5BmpExc",gxvar:"AV5BmpExc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",v2v:function(n){gx.O.AV5BmpExc=n},v2z:function(n){gx.O.ZV5BmpExc=n},v2c:function(n){gx.fn.setGridMultimediaValue("vBMPEXC",n||gx.fn.currentGridRowImpl(78),gx.O.AV5BmpExc,gx.O.AV68Bmpexc_GXI)},c2v:function(){gx.O.AV68Bmpexc_GXI=this.val_GXI();gx.O.AV5BmpExc=this.val()},val:function(n){return gx.fn.getGridControlValue("vBMPEXC",n||gx.fn.currentGridRowImpl(78))},val_GXI:function(n){return gx.fn.getGridControlValue("vBMPEXC_GXI",n||gx.fn.currentGridRowImpl(78))},gxvar_GXI:"AV68Bmpexc_GXI",nac:gx.falseFn};n[90]={fld:"DIV2",format:2,grid:0};n[96]={lvl:0,type:"char",len:10,dec:0,sign:!1,pic:"@!",ro:0,grid:0,gxgrid:null,fnc:this.Validv_Centrocustoempresaid,isvalid:null,rgrid:[],fld:"vCENTROCUSTOEMPRESAID",gxz:"ZV10CentroCustoEmpresaId",gxold:"OV10CentroCustoEmpresaId",gxvar:"AV10CentroCustoEmpresaId",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV10CentroCustoEmpresaId=n},v2z:function(n){gx.O.ZV10CentroCustoEmpresaId=n},v2c:function(){gx.fn.setControlValue("vCENTROCUSTOEMPRESAID",gx.O.AV10CentroCustoEmpresaId,0)},c2v:function(){gx.O.AV10CentroCustoEmpresaId=this.val()},val:function(){return gx.fn.getControlValue("vCENTROCUSTOEMPRESAID")},nac:gx.falseFn};n[97]={lvl:0,type:"char",len:10,dec:0,sign:!1,pic:"@!",ro:0,grid:0,gxgrid:null,fnc:this.Validv_Naturezaempresaid,isvalid:null,rgrid:[],fld:"vNATUREZAEMPRESAID",gxz:"ZV34NaturezaEmpresaId",gxold:"OV34NaturezaEmpresaId",gxvar:"AV34NaturezaEmpresaId",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV34NaturezaEmpresaId=n},v2z:function(n){gx.O.ZV34NaturezaEmpresaId=n},v2c:function(){gx.fn.setControlValue("vNATUREZAEMPRESAID",gx.O.AV34NaturezaEmpresaId,0)},c2v:function(){gx.O.AV34NaturezaEmpresaId=this.val()},val:function(){return gx.fn.getControlValue("vNATUREZAEMPRESAID")},nac:gx.falseFn};this.AV26FilialId=0;this.ZV26FilialId=0;this.OV26FilialId=0;this.AV27FilialNome="";this.ZV27FilialNome="";this.OV27FilialNome="";this.AV38PessoaId=0;this.ZV38PessoaId=0;this.OV38PessoaId=0;this.AV37PessoaFantasia="";this.ZV37PessoaFantasia="";this.OV37PessoaFantasia="";this.AV13CFOPCodigo=0;this.ZV13CFOPCodigo=0;this.OV13CFOPCodigo=0;this.AV14CFOPDescricao="";this.ZV14CFOPDescricao="";this.OV14CFOPDescricao="";this.AV20EntradaNumeroDocumento=0;this.ZV20EntradaNumeroDocumento=0;this.OV20EntradaNumeroDocumento=0;this.AV21EntradaSerie="";this.ZV21EntradaSerie="";this.OV21EntradaSerie="";this.AV22EntradaSubSerie="";this.ZV22EntradaSubSerie="";this.OV22EntradaSubSerie="";this.AV17EntradaDataEmissao=gx.date.nullDate();this.ZV17EntradaDataEmissao=gx.date.nullDate();this.OV17EntradaDataEmissao=gx.date.nullDate();this.AV24EntradaValorNota=0;this.ZV24EntradaValorNota=0;this.OV24EntradaValorNota=0;this.AV25EntradaValorRateio=0;this.ZV25EntradaValorRateio=0;this.OV25EntradaValorRateio=0;this.AV23EntradaValorDiferenca=0;this.ZV23EntradaValorDiferenca=0;this.OV23EntradaValorDiferenca=0;this.ZV11CentroCustoIdGrid="";this.OV11CentroCustoIdGrid="";this.ZV6BmpPrmCC="";this.OV6BmpPrmCC="";this.ZV60GXV129="";this.OV60GXV129="";this.ZV61GXV12A="";this.OV61GXV12A="";this.ZV35NaturezaIdGrid="";this.OV35NaturezaIdGrid="";this.ZV7BmpPrmNt="";this.OV7BmpPrmNt="";this.ZV62GXV12D="";this.OV62GXV12D="";this.ZV63GXV12E="";this.OV63GXV12E="";this.ZV64GXV12F=0;this.OV64GXV12F=0;this.ZV65GXV12G="";this.OV65GXV12G="";this.ZV5BmpExc="";this.OV5BmpExc="";this.AV10CentroCustoEmpresaId="";this.ZV10CentroCustoEmpresaId="";this.OV10CentroCustoEmpresaId="";this.AV34NaturezaEmpresaId="";this.ZV34NaturezaEmpresaId="";this.OV34NaturezaEmpresaId="";this.AV26FilialId=0;this.AV27FilialNome="";this.AV38PessoaId=0;this.AV37PessoaFantasia="";this.AV13CFOPCodigo=0;this.AV14CFOPDescricao="";this.AV20EntradaNumeroDocumento=0;this.AV21EntradaSerie="";this.AV22EntradaSubSerie="";this.AV17EntradaDataEmissao=gx.date.nullDate();this.AV24EntradaValorNota=0;this.AV25EntradaValorRateio=0;this.AV23EntradaValorDiferenca=0;this.AV10CentroCustoEmpresaId="";this.AV34NaturezaEmpresaId="";this.AV18EntradaEmpresaId="";this.AV19EntradaId=0;this.AV53TipoRateioEmpresaId="";this.AV52TipoRateioId=0;this.AV45SessaoRateio="";this.AV11CentroCustoIdGrid="";this.AV6BmpPrmCC="";this.GXV129="";this.GXV12A="";this.AV35NaturezaIdGrid="";this.AV7BmpPrmNt="";this.GXV12D="";this.GXV12E="";this.GXV12F=0;this.GXV12G="";this.AV5BmpExc="";this.A172NaturezaId="";this.A171EmpresaNaturezaEmpresaId="";this.A154NaturezaDescricao="";this.A51CentroCustoId="";this.A153EmpresaCentroCustoEmpresaId="";this.A52CentroCustoDescricao="";this.A4638EntradaId=0;this.A4637EntradaEmpresaId="";this.A4660EntradaFilialId=0;this.A4661EntradaFilialNome="";this.A4643EntradaFornecedorId=0;this.A4644EntradaFornecedorFantasia="";this.A4650EntradaCFOPCodigo=0;this.A4651EntradaCFOPDescricao="";this.A4646EntradaNumeroDocumento=0;this.A4655EntradaDataEmissao=gx.date.nullDate();this.A4647EntradaSerie="";this.A4648EntradaSubSerie="";this.A10600EntradaValorFCPSTRet=0;this.A10599EntradaValorFCPST=0;this.A11303EntradaICMSDesEntraTotal="";this.A10530EntradaValorICMSDesonerado=0;this.A4737EntradaFreteEntraTotal="";this.A4705EntradaValorFrete=0;this.A4717EntradaValorIPI=0;this.A4707EntradaValorOutrasDespesas=0;this.A4706EntradaValorSeguro=0;this.A4716EntradaValorICMSST=0;this.A4703EntradaValorDesconto=0;this.A6542EntradaValorServico=0;this.A4701EntradaValorProdutos=0;this.A4709EntradaValorTotal=0;this.A4642EntradaFornecedorEmpId="";this.A4659EntradaFilialEmpId="";this.AV41ProdutoRateio=[];this.AV48SnExcluirLinha="";this.AV9CentroCustoDescricao="";this.AV33NaturezaDescricao="";this.AV12CentroCustoIdProd="";this.AV36NaturezaIdProd="";this.Events={e122a82_client:["ENTER",!0],e112a82_client:["'FECHAR'",!0],e132a82_client:["'INSERIR'",!0],e172a82_client:["'EXCLUIR'",!0],e182a82_client:["VNATUREZAIDGRID.ISVALID",!0],e192a82_client:["VCENTROCUSTOIDGRID.ISVALID",!0],e202a82_client:["CANCEL",!0]};this.EvtParms.REFRESH=[[{av:"GRID1_nFirstRecordOnPage"},{av:"GRID1_nEOF"},{av:"AV6BmpPrmCC",fld:"vBMPPRMCC",grid:78},{av:"AV7BmpPrmNt",fld:"vBMPPRMNT",grid:78},{av:"AV5BmpExc",fld:"vBMPEXC",grid:78},{av:"AV41ProdutoRateio",fld:"vPRODUTORATEIO",grid:78},{av:"AV24EntradaValorNota",fld:"vENTRADAVALORNOTA"},{av:"AV48SnExcluirLinha",fld:"vSNEXCLUIRLINHA"},{av:"AV11CentroCustoIdGrid",fld:"vCENTROCUSTOIDGRID",grid:78},{av:"AV9CentroCustoDescricao",fld:"vCENTROCUSTODESCRICAO"},{av:"AV35NaturezaIdGrid",fld:"vNATUREZAIDGRID",grid:78},{av:"AV33NaturezaDescricao",fld:"vNATUREZADESCRICAO"},{av:"A153EmpresaCentroCustoEmpresaId",fld:"EMPRESACENTROCUSTOEMPRESAID"},{av:"AV10CentroCustoEmpresaId",fld:"vCENTROCUSTOEMPRESAID"},{av:"A51CentroCustoId",fld:"CENTROCUSTOID"},{av:"AV12CentroCustoIdProd",fld:"vCENTROCUSTOIDPROD"},{av:"A52CentroCustoDescricao",fld:"CENTROCUSTODESCRICAO"},{av:"A171EmpresaNaturezaEmpresaId",fld:"EMPRESANATUREZAEMPRESAID"},{av:"AV34NaturezaEmpresaId",fld:"vNATUREZAEMPRESAID"},{av:"A172NaturezaId",fld:"NATUREZAID"},{av:"AV36NaturezaIdProd",fld:"vNATUREZAIDPROD"},{av:"A154NaturezaDescricao",fld:"NATUREZADESCRICAO"}],[{av:"AV51TemMascara",fld:"vTEMMASCARA"},{av:"this.HDMASKCENTROCUSTOContainer.AttachControl",ctrl:"HDMASKCENTROCUSTO",prop:"AttachControl"},{av:"AV32MascaraValores",fld:"vMASCARAVALORES"},{av:"this.HDMASKCENTROCUSTOContainer.Picture",ctrl:"HDMASKCENTROCUSTO",prop:"Picture"},{av:"this.HDMASKNATUREZAContainer.AttachControl",ctrl:"HDMASKNATUREZA",prop:"AttachControl"},{av:"this.HDMASKNATUREZAContainer.Picture",ctrl:"HDMASKNATUREZA",prop:"Picture"},{av:"AV25EntradaValorRateio",fld:"vENTRADAVALORRATEIO"},{av:"AV75GXV5",fld:"vGXV5"},{av:"AV42ProdutoRateioItem",fld:"vPRODUTORATEIOITEM"},{av:"AV23EntradaValorDiferenca",fld:"vENTRADAVALORDIFERENCA"},{av:'gx.fn.getCtrlProperty("vENTRADAVALORDIFERENCA","Class")',ctrl:"vENTRADAVALORDIFERENCA",prop:"Class"},{av:"AV15ContGrid",fld:"vCONTGRID"},{av:"AV16ContSdt",fld:"vCONTSDT"},{av:"AV77GXV6",fld:"vGXV6"},{av:"AV12CentroCustoIdProd",fld:"vCENTROCUSTOIDPROD"},{av:"AV36NaturezaIdProd",fld:"vNATUREZAIDPROD"},{av:"AV71GXLvl98",fld:"vGXLVL98"},{av:"AV9CentroCustoDescricao",fld:"vCENTROCUSTODESCRICAO"},{av:"AV72GXLvl109",fld:"vGXLVL109"},{av:"AV33NaturezaDescricao",fld:"vNATUREZADESCRICAO"}]];this.EvtParms.ENTER=[[{av:"AV41ProdutoRateio",fld:"vPRODUTORATEIO",grid:78},{av:"AV9CentroCustoDescricao",fld:"vCENTROCUSTODESCRICAO"},{av:"AV33NaturezaDescricao",fld:"vNATUREZADESCRICAO"},{av:"AV24EntradaValorNota",fld:"vENTRADAVALORNOTA"},{av:"AV10CentroCustoEmpresaId",fld:"vCENTROCUSTOEMPRESAID"},{av:"AV34NaturezaEmpresaId",fld:"vNATUREZAEMPRESAID"},{av:"AV43RateioConta",fld:"vRATEIOCONTA"},{av:"AV45SessaoRateio",fld:"vSESSAORATEIO",hsh:!0},{av:"AV48SnExcluirLinha",fld:"vSNEXCLUIRLINHA"},{av:"AV11CentroCustoIdGrid",fld:"vCENTROCUSTOIDGRID",grid:78},{av:"AV35NaturezaIdGrid",fld:"vNATUREZAIDGRID",grid:78},{av:"A153EmpresaCentroCustoEmpresaId",fld:"EMPRESACENTROCUSTOEMPRESAID"},{av:"A51CentroCustoId",fld:"CENTROCUSTOID"},{av:"AV12CentroCustoIdProd",fld:"vCENTROCUSTOIDPROD"},{av:"A52CentroCustoDescricao",fld:"CENTROCUSTODESCRICAO"},{av:"A171EmpresaNaturezaEmpresaId",fld:"EMPRESANATUREZAEMPRESAID"},{av:"A172NaturezaId",fld:"NATUREZAID"},{av:"AV36NaturezaIdProd",fld:"vNATUREZAIDPROD"},{av:"A154NaturezaDescricao",fld:"NATUREZADESCRICAO"},{av:"AV50SnOk",fld:"vSNOK"}],[{av:"AV47SnErro",fld:"vSNERRO"},{av:"AV25EntradaValorRateio",fld:"vENTRADAVALORRATEIO"},{av:"AV30Linha",fld:"vLINHA"},{av:"AV73GXV3",fld:"vGXV3"},{av:"AV42ProdutoRateioItem",fld:"vPRODUTORATEIOITEM"},{av:"AV12CentroCustoIdProd",fld:"vCENTROCUSTOIDPROD"},{av:"AV46SnCCusSin",fld:"vSNCCUSSIN"},{av:"AV36NaturezaIdProd",fld:"vNATUREZAIDPROD"},{av:"AV49SnNatSin",fld:"vSNNATSIN"},{av:"AV74GXV4",fld:"vGXV4"},{av:"AV44RateioContaItem",fld:"vRATEIOCONTAITEM"},{av:"AV43RateioConta",fld:"vRATEIOCONTA"},{av:"AV50SnOk",fld:"vSNOK"},{av:"AV15ContGrid",fld:"vCONTGRID"},{av:"AV16ContSdt",fld:"vCONTSDT"},{av:"AV77GXV6",fld:"vGXV6"},{av:"AV71GXLvl98",fld:"vGXLVL98"},{av:"AV9CentroCustoDescricao",fld:"vCENTROCUSTODESCRICAO"},{av:"AV72GXLvl109",fld:"vGXLVL109"},{av:"AV33NaturezaDescricao",fld:"vNATUREZADESCRICAO"}]];this.EvtParms["'FECHAR'"]=[[{av:"AV50SnOk",fld:"vSNOK"}],[{av:"AV50SnOk",fld:"vSNOK"}]];this.EvtParms["GRID1.LOAD"]=[[{av:"AV41ProdutoRateio",fld:"vPRODUTORATEIO",grid:78}],[{av:"AV11CentroCustoIdGrid",fld:"vCENTROCUSTOIDGRID"},{av:"AV35NaturezaIdGrid",fld:"vNATUREZAIDGRID"}]];this.EvtParms["'INSERIR'"]=[[{av:"AV41ProdutoRateio",fld:"vPRODUTORATEIO",grid:78},{av:"GRID1_nFirstRecordOnPage"},{av:"GRID1_nEOF"},{av:"AV6BmpPrmCC",fld:"vBMPPRMCC"},{av:"AV7BmpPrmNt",fld:"vBMPPRMNT"},{av:"AV5BmpExc",fld:"vBMPEXC"},{av:"AV24EntradaValorNota",fld:"vENTRADAVALORNOTA"},{av:"AV48SnExcluirLinha",fld:"vSNEXCLUIRLINHA"},{av:"AV11CentroCustoIdGrid",fld:"vCENTROCUSTOIDGRID"},{av:"AV9CentroCustoDescricao",fld:"vCENTROCUSTODESCRICAO"},{av:"AV35NaturezaIdGrid",fld:"vNATUREZAIDGRID"},{av:"AV33NaturezaDescricao",fld:"vNATUREZADESCRICAO"},{av:"A153EmpresaCentroCustoEmpresaId",fld:"EMPRESACENTROCUSTOEMPRESAID"},{av:"AV10CentroCustoEmpresaId",fld:"vCENTROCUSTOEMPRESAID"},{av:"A51CentroCustoId",fld:"CENTROCUSTOID"},{av:"AV12CentroCustoIdProd",fld:"vCENTROCUSTOIDPROD"},{av:"A52CentroCustoDescricao",fld:"CENTROCUSTODESCRICAO"},{av:"A171EmpresaNaturezaEmpresaId",fld:"EMPRESANATUREZAEMPRESAID"},{av:"AV34NaturezaEmpresaId",fld:"vNATUREZAEMPRESAID"},{av:"A172NaturezaId",fld:"NATUREZAID"},{av:"AV36NaturezaIdProd",fld:"vNATUREZAIDPROD"},{av:"A154NaturezaDescricao",fld:"NATUREZADESCRICAO"}],[{av:"AV42ProdutoRateioItem",fld:"vPRODUTORATEIOITEM"},{av:"AV41ProdutoRateio",fld:"vPRODUTORATEIO",grid:78}]];this.EvtParms["'EXCLUIR'"]=[[{av:"AV41ProdutoRateio",fld:"vPRODUTORATEIO",grid:78},{av:"AV48SnExcluirLinha",fld:"vSNEXCLUIRLINHA"},{av:"AV11CentroCustoIdGrid",fld:"vCENTROCUSTOIDGRID",grid:78},{av:"AV9CentroCustoDescricao",fld:"vCENTROCUSTODESCRICAO"},{av:"AV35NaturezaIdGrid",fld:"vNATUREZAIDGRID",grid:78},{av:"AV33NaturezaDescricao",fld:"vNATUREZADESCRICAO"},{av:"A153EmpresaCentroCustoEmpresaId",fld:"EMPRESACENTROCUSTOEMPRESAID"},{av:"AV10CentroCustoEmpresaId",fld:"vCENTROCUSTOEMPRESAID"},{av:"A51CentroCustoId",fld:"CENTROCUSTOID"},{av:"AV12CentroCustoIdProd",fld:"vCENTROCUSTOIDPROD"},{av:"A52CentroCustoDescricao",fld:"CENTROCUSTODESCRICAO"},{av:"A171EmpresaNaturezaEmpresaId",fld:"EMPRESANATUREZAEMPRESAID"},{av:"AV34NaturezaEmpresaId",fld:"vNATUREZAEMPRESAID"},{av:"A172NaturezaId",fld:"NATUREZAID"},{av:"AV36NaturezaIdProd",fld:"vNATUREZAIDPROD"},{av:"A154NaturezaDescricao",fld:"NATUREZADESCRICAO"},{av:"GRID1_nFirstRecordOnPage"},{av:"GRID1_nEOF"},{av:"AV6BmpPrmCC",fld:"vBMPPRMCC",grid:78},{av:"AV7BmpPrmNt",fld:"vBMPPRMNT",grid:78},{av:"AV5BmpExc",fld:"vBMPEXC",grid:78},{av:"AV24EntradaValorNota",fld:"vENTRADAVALORNOTA"}],[{av:"AV29Idx",fld:"vIDX"},{av:"AV48SnExcluirLinha",fld:"vSNEXCLUIRLINHA"},{av:"AV41ProdutoRateio",fld:"vPRODUTORATEIO",grid:78},{av:"AV15ContGrid",fld:"vCONTGRID"},{av:"AV16ContSdt",fld:"vCONTSDT"},{av:"AV77GXV6",fld:"vGXV6"},{av:"AV42ProdutoRateioItem",fld:"vPRODUTORATEIOITEM"},{av:"AV12CentroCustoIdProd",fld:"vCENTROCUSTOIDPROD"},{av:"AV36NaturezaIdProd",fld:"vNATUREZAIDPROD"},{av:"AV71GXLvl98",fld:"vGXLVL98"},{av:"AV9CentroCustoDescricao",fld:"vCENTROCUSTODESCRICAO"},{av:"AV72GXLvl109",fld:"vGXLVL109"},{av:"AV33NaturezaDescricao",fld:"vNATUREZADESCRICAO"}]];this.EvtParms["VNATUREZAIDGRID.ISVALID"]=[[{av:"AV34NaturezaEmpresaId",fld:"vNATUREZAEMPRESAID"},{av:"AV35NaturezaIdGrid",fld:"vNATUREZAIDGRID"},{av:"AV41ProdutoRateio",fld:"vPRODUTORATEIO",grid:78},{av:"GRID1_nFirstRecordOnPage"},{av:"GRID1_nEOF"},{av:"AV6BmpPrmCC",fld:"vBMPPRMCC"},{av:"AV7BmpPrmNt",fld:"vBMPPRMNT"},{av:"AV5BmpExc",fld:"vBMPEXC"},{av:"AV24EntradaValorNota",fld:"vENTRADAVALORNOTA"},{av:"AV48SnExcluirLinha",fld:"vSNEXCLUIRLINHA"},{av:"AV11CentroCustoIdGrid",fld:"vCENTROCUSTOIDGRID"},{av:"AV9CentroCustoDescricao",fld:"vCENTROCUSTODESCRICAO"},{av:"AV33NaturezaDescricao",fld:"vNATUREZADESCRICAO"},{av:"A153EmpresaCentroCustoEmpresaId",fld:"EMPRESACENTROCUSTOEMPRESAID"},{av:"AV10CentroCustoEmpresaId",fld:"vCENTROCUSTOEMPRESAID"},{av:"A51CentroCustoId",fld:"CENTROCUSTOID"},{av:"AV12CentroCustoIdProd",fld:"vCENTROCUSTOIDPROD"},{av:"A52CentroCustoDescricao",fld:"CENTROCUSTODESCRICAO"},{av:"A171EmpresaNaturezaEmpresaId",fld:"EMPRESANATUREZAEMPRESAID"},{av:"A172NaturezaId",fld:"NATUREZAID"},{av:"AV36NaturezaIdProd",fld:"vNATUREZAIDPROD"},{av:"A154NaturezaDescricao",fld:"NATUREZADESCRICAO"}],[{av:"AV41ProdutoRateio",fld:"vPRODUTORATEIO",grid:78}]];this.EvtParms["VCENTROCUSTOIDGRID.ISVALID"]=[[{av:"AV10CentroCustoEmpresaId",fld:"vCENTROCUSTOEMPRESAID"},{av:"AV11CentroCustoIdGrid",fld:"vCENTROCUSTOIDGRID"},{av:"AV41ProdutoRateio",fld:"vPRODUTORATEIO",grid:78},{av:"GRID1_nFirstRecordOnPage"},{av:"GRID1_nEOF"},{av:"AV6BmpPrmCC",fld:"vBMPPRMCC"},{av:"AV7BmpPrmNt",fld:"vBMPPRMNT"},{av:"AV5BmpExc",fld:"vBMPEXC"},{av:"AV24EntradaValorNota",fld:"vENTRADAVALORNOTA"},{av:"AV48SnExcluirLinha",fld:"vSNEXCLUIRLINHA"},{av:"AV9CentroCustoDescricao",fld:"vCENTROCUSTODESCRICAO"},{av:"AV35NaturezaIdGrid",fld:"vNATUREZAIDGRID"},{av:"AV33NaturezaDescricao",fld:"vNATUREZADESCRICAO"},{av:"A153EmpresaCentroCustoEmpresaId",fld:"EMPRESACENTROCUSTOEMPRESAID"},{av:"A51CentroCustoId",fld:"CENTROCUSTOID"},{av:"AV12CentroCustoIdProd",fld:"vCENTROCUSTOIDPROD"},{av:"A52CentroCustoDescricao",fld:"CENTROCUSTODESCRICAO"},{av:"A171EmpresaNaturezaEmpresaId",fld:"EMPRESANATUREZAEMPRESAID"},{av:"AV34NaturezaEmpresaId",fld:"vNATUREZAEMPRESAID"},{av:"A172NaturezaId",fld:"NATUREZAID"},{av:"AV36NaturezaIdProd",fld:"vNATUREZAIDPROD"},{av:"A154NaturezaDescricao",fld:"NATUREZADESCRICAO"}],[{av:"AV41ProdutoRateio",fld:"vPRODUTORATEIO",grid:78}]];this.setPrompt("&BMPPRMCC",[79]);this.setPrompt("&BMPPRMNT",[83]);this.EnterCtrl=["BTNCONFIRMAR"];this.setVCMap("A4701EntradaValorProdutos","ENTRADAVALORPRODUTOS",0,"decimal");this.setVCMap("A6542EntradaValorServico","ENTRADAVALORSERVICO",0,"decimal");this.setVCMap("A4703EntradaValorDesconto","ENTRADAVALORDESCONTO",0,"decimal");this.setVCMap("A4716EntradaValorICMSST","ENTRADAVALORICMSST",0,"decimal");this.setVCMap("A4706EntradaValorSeguro","ENTRADAVALORSEGURO",0,"decimal");this.setVCMap("A4707EntradaValorOutrasDespesas","ENTRADAVALOROUTRASDESPESAS",0,"decimal");this.setVCMap("A4717EntradaValorIPI","ENTRADAVALORIPI",0,"decimal");this.setVCMap("A4705EntradaValorFrete","ENTRADAVALORFRETE",0,"decimal");this.setVCMap("A4737EntradaFreteEntraTotal","ENTRADAFRETEENTRATOTAL",0,"char");this.setVCMap("A10530EntradaValorICMSDesonerado","ENTRADAVALORICMSDESONERADO",0,"decimal");this.setVCMap("A11303EntradaICMSDesEntraTotal","ENTRADAICMSDESENTRATOTAL",0,"char");this.setVCMap("A10599EntradaValorFCPST","ENTRADAVALORFCPST",0,"decimal");this.setVCMap("A10600EntradaValorFCPSTRet","ENTRADAVALORFCPSTRET",0,"decimal");this.setVCMap("A4709EntradaValorTotal","ENTRADAVALORTOTAL",0,"decimal");this.setVCMap("AV41ProdutoRateio","vPRODUTORATEIO",0,"CollRateioProduto.RateioProdutoItem");this.setVCMap("AV48SnExcluirLinha","vSNEXCLUIRLINHA",0,"char");this.setVCMap("AV9CentroCustoDescricao","vCENTROCUSTODESCRICAO",0,"svchar");this.setVCMap("AV33NaturezaDescricao","vNATUREZADESCRICAO",0,"svchar");this.setVCMap("A153EmpresaCentroCustoEmpresaId","EMPRESACENTROCUSTOEMPRESAID",0,"char");this.setVCMap("A51CentroCustoId","CENTROCUSTOID",0,"svchar");this.setVCMap("AV12CentroCustoIdProd","vCENTROCUSTOIDPROD",0,"svchar");this.setVCMap("A52CentroCustoDescricao","CENTROCUSTODESCRICAO",0,"svchar");this.setVCMap("A171EmpresaNaturezaEmpresaId","EMPRESANATUREZAEMPRESAID",0,"char");this.setVCMap("A172NaturezaId","NATUREZAID",0,"svchar");this.setVCMap("AV36NaturezaIdProd","vNATUREZAIDPROD",0,"svchar");this.setVCMap("A154NaturezaDescricao","NATUREZADESCRICAO",0,"svchar");this.setVCMap("AV18EntradaEmpresaId","vENTRADAEMPRESAID",0,"char");this.setVCMap("AV19EntradaId","vENTRADAID",0,"int");this.setVCMap("AV53TipoRateioEmpresaId","vTIPORATEIOEMPRESAID",0,"char");this.setVCMap("AV52TipoRateioId","vTIPORATEIOID",0,"int");this.setVCMap("AV45SessaoRateio","vSESSAORATEIO",0,"svchar");this.setVCMap("AV41ProdutoRateio","vPRODUTORATEIO",0,"CollRateioProduto.RateioProdutoItem");this.setVCMap("AV48SnExcluirLinha","vSNEXCLUIRLINHA",0,"char");this.setVCMap("AV9CentroCustoDescricao","vCENTROCUSTODESCRICAO",0,"svchar");this.setVCMap("AV33NaturezaDescricao","vNATUREZADESCRICAO",0,"svchar");this.setVCMap("A153EmpresaCentroCustoEmpresaId","EMPRESACENTROCUSTOEMPRESAID",0,"char");this.setVCMap("A51CentroCustoId","CENTROCUSTOID",0,"svchar");this.setVCMap("AV12CentroCustoIdProd","vCENTROCUSTOIDPROD",0,"svchar");this.setVCMap("A52CentroCustoDescricao","CENTROCUSTODESCRICAO",0,"svchar");this.setVCMap("A171EmpresaNaturezaEmpresaId","EMPRESANATUREZAEMPRESAID",0,"char");this.setVCMap("A172NaturezaId","NATUREZAID",0,"svchar");this.setVCMap("AV36NaturezaIdProd","vNATUREZAIDPROD",0,"svchar");this.setVCMap("A154NaturezaDescricao","NATUREZADESCRICAO",0,"svchar");t.addRefreshingVar({rfrVar:"AV6BmpPrmCC",rfrProp:"Value",gxAttId:"Bmpprmcc"});t.addRefreshingVar({rfrVar:"AV7BmpPrmNt",rfrProp:"Value",gxAttId:"Bmpprmnt"});t.addRefreshingVar({rfrVar:"AV5BmpExc",rfrProp:"Value",gxAttId:"Bmpexc"});t.addRefreshingVar({rfrVar:"AV41ProdutoRateio"});t.addRefreshingVar(this.GXValidFnc[57]);t.addRefreshingVar({rfrVar:"AV48SnExcluirLinha"});t.addRefreshingVar({rfrVar:"AV11CentroCustoIdGrid",rfrProp:"Value",gxAttId:"Centrocustoidgrid"});t.addRefreshingVar({rfrVar:"AV9CentroCustoDescricao"});t.addRefreshingVar({rfrVar:"AV35NaturezaIdGrid",rfrProp:"Value",gxAttId:"Naturezaidgrid"});t.addRefreshingVar({rfrVar:"AV33NaturezaDescricao"});t.addRefreshingVar({rfrVar:"A153EmpresaCentroCustoEmpresaId"});t.addRefreshingVar(this.GXValidFnc[96]);t.addRefreshingVar({rfrVar:"A51CentroCustoId"});t.addRefreshingVar({rfrVar:"AV12CentroCustoIdProd"});t.addRefreshingVar({rfrVar:"A52CentroCustoDescricao"});t.addRefreshingVar({rfrVar:"A171EmpresaNaturezaEmpresaId"});t.addRefreshingVar(this.GXValidFnc[97]);t.addRefreshingVar({rfrVar:"A172NaturezaId"});t.addRefreshingVar({rfrVar:"AV36NaturezaIdProd"});t.addRefreshingVar({rfrVar:"A154NaturezaDescricao"});this.addGridBCProperty("Produtorateio",["CentroCustoId"],this.GXValidFnc[81],"AV41ProdutoRateio");this.addGridBCProperty("Produtorateio",["CentroCustoDescricao"],this.GXValidFnc[82],"AV41ProdutoRateio");this.addGridBCProperty("Produtorateio",["NaturezaId"],this.GXValidFnc[85],"AV41ProdutoRateio");this.addGridBCProperty("Produtorateio",["NaturezaDescricao"],this.GXValidFnc[86],"AV41ProdutoRateio");this.addGridBCProperty("Produtorateio",["ValorRateio"],this.GXValidFnc[87],"AV41ProdutoRateio");this.addGridBCProperty("Produtorateio",["SnExcluir"],this.GXValidFnc[88],"AV41ProdutoRateio");this.InitStandaloneVars()});gx.setParentObj(new hregistrarentradaparcelaratcon)