/**@preserve  GeneXus Java 10_3_12-110051 on February 11, 2021 17:44:20.8
*
gx.evt.autoSkip=!1;gx.define("hfcpuf",!1,function(){var n,t;this.ServerClass="hfcpuf";this.PackageName="";this.setObjectType("web");this.setOnAjaxSessionTimeout("Warn");this.hasEnterEvent=!1;this.skipOnEnter=!1;this.addKeyListener("7","'ANTERIOR'");this.addKeyListener("8","'PROXIMO'");this.addKeyListener("3","'NOVO'");this.addKeyListener("12","'FECHAR'");this.addKeyListener("5","'PROCURAR'");this.addKeyListener("5","REFRESH");this.addKeyListener("12","CANCEL");this.addKeyListener("1","HELP");this.SetStandaloneVars=function(){this.AV57SnRecuperaFiltro=gx.fn.getControlValue("vSNRECUPERAFILTRO");this.AV64Pgmname=gx.fn.getControlValue("vPGMNAME")};this.Validv_Ufdestino=function(){try{var n=gx.util.balloon.getNew("vUFDESTINO");if(this.AnyError=0,!(this.AV29UfDestino==""||this.AV29UfDestino=="AC"||this.AV29UfDestino=="AL"||this.AV29UfDestino=="AP"||this.AV29UfDestino=="AM"||this.AV29UfDestino=="BA"||this.AV29UfDestino=="CE"||this.AV29UfDestino=="DF"||this.AV29UfDestino=="ES"||this.AV29UfDestino=="GO"||this.AV29UfDestino=="MA"||this.AV29UfDestino=="MT"||this.AV29UfDestino=="MS"||this.AV29UfDestino=="MG"||this.AV29UfDestino=="PA"||this.AV29UfDestino=="PB"||this.AV29UfDestino=="PR"||this.AV29UfDestino=="PE"||this.AV29UfDestino=="PI"||this.AV29UfDestino=="RJ"||this.AV29UfDestino=="RN"||this.AV29UfDestino=="RS"||this.AV29UfDestino=="RO"||this.AV29UfDestino=="RR"||this.AV29UfDestino=="SC"||this.AV29UfDestino=="SP"||this.AV29UfDestino=="SE"||this.AV29UfDestino=="TO"||this.AV29UfDestino=="EX"||""==this.AV29UfDestino))try{n.setError("Campo UfDestino fora do intervalo");this.AnyError=gx.num.trunc(1,0)}catch(t){}}catch(t){}try{return n==null?!0:n.show()}catch(t){}return!0};this.Valid_Fcpufncmcodigo=function(){try{if(gx.fn.currentGridRowImpl(47)===0)return!0;var n=gx.util.balloon.getNew("FCPUFNCMCODIGO",gx.fn.currentGridRowImpl(47));this.AnyError=0;this.StandaloneModal();this.StandaloneNotModal()}catch(t){}try{return n==null?!0:n.show()}catch(t){}return!0};this.e112872_client=function(){this.executeServerEvent("'ANTERIOR'",!0,null,!1,!1)};this.e122872_client=function(){this.executeServerEvent("'PROXIMO'",!0,null,!1,!1)};this.e162872_client=function(){this.executeServerEvent("VPAGINA.CLICK",!0,null,!1,!0)};this.e132872_client=function(){this.executeServerEvent("'NOVO'",!0,null,!1,!1)};this.e142872_client=function(){this.executeServerEvent("'FECHAR'",!1,null,!1,!1)};this.e152872_client=function(){this.executeServerEvent("'PROCURAR'",!1,null,!1,!1)};this.e222872_client=function(){this.executeServerEvent("'ALTERAR'",!0,arguments[0],!1,!1)};this.e232872_client=function(){this.executeServerEvent("'EXCLUIR'",!0,arguments[0],!1,!1)};this.e242872_client=function(){this.executeServerEvent("'CONSULTAR'",!0,arguments[0],!1,!1)};this.e252872_client=function(){this.executeServerEvent("'ATUALIZAPAGINA'",!0,arguments[0],!1,!1)};this.e172872_client=function(){this.executeServerEvent("VNCMCODIGO.ISVALID",!0,null,!1,!0)};this.e262872_client=function(){this.executeServerEvent("ENTER",!0,arguments[0],!1,!1)};this.e272872_client=function(){this.executeServerEvent("CANCEL",!0,arguments[0],!1,!1)};this.GXValidFnc=[];n=this.GXValidFnc;this.GXCtrlIds=[2,5,8,11,13,16,18,19,24,27,30,32,34,36,38,41,43,44,48,49,50,51,52,53,54,55,56,57,64,65,66,67];this.GXLastCtrlId=67;this.GridContainer=new gx.grid.grid(this,2,"WbpLvl2",47,"Grid","Grid","GridContainer",this.CmpContext,this.IsMasterPage,"hfcpuf",[],!1,1,!1,!0,0,!1,!1,!1,"",0,"px","Novo registro",!0,!1,!1,null,null,!1,"",!1,[1,1,1,1]);t=this.GridContainer;t.addSingleLineEdit(10668,48,"FCPUFSEQUENCIA","","","FCPUFSequencia","int",0,"px",6,6,"right",null,[],10668,"FCPUFSequencia",!0,0,!1,!1,"Attribute",1,"");t.addComboBox(10686,49,"FCPUFCODIGO","","FCPUFCodigo","char",null,0,!0,!1,0,"px","");t.addSingleLineEdit(10669,50,"FCPUFNCMCODIGO","","","FCPUFNCMCodigo","int",0,"px",8,8,"right",null,[],10669,"FCPUFNCMCodigo",!0,0,!1,!1,"Attribute",1,"");t.addSingleLineEdit("Ncmdescricaogrid",51,"vNCMDESCRICAOGRID","","","NCMDescricaoGrid","svchar",0,"px",150,80,"left",null,[],"Ncmdescricaogrid","NCMDescricaoGrid",!0,0,!1,!1,"Attribute",1,"");t.addSingleLineEdit(10688,52,"FCPUFPERCENTUAL","","","FCPUFPercentual","decimal",0,"px",8,8,"right",null,[],10688,"FCPUFPercentual",!0,4,!1,!1,"Attribute",1,"");t.addSingleLineEdit(10685,53,"FCPUFNCMDESCRICAO","Descrição NCM","","FCPUFNCMDescricao","svchar",0,"px",150,80,"left",null,[],10685,"FCPUFNCMDescricao",!1,0,!1,!1,"Attribute",1,"");t.addSingleLineEdit(10667,54,"FCPUFEMPRESAID","FCPUFEmpresa Id","","FCPUFEmpresaId","char",0,"px",10,10,"left",null,[],10667,"FCPUFEmpresaId",!1,0,!1,!1,"Attribute",1,"");t.addBitmap("&Bmpalt","vBMPALT",55,0,"px",17,"px","e222872_client","","Alterar","Image","GridColumnImage");t.addBitmap("&Bmpexc","vBMPEXC",56,0,"px",17,"px","e232872_client","","Excluir","Image","GridColumnImage");t.addBitmap("&Bmpcon","vBMPCON",57,0,"px",17,"px","e242872_client","","Consultar","Image","GridColumnImage");this.setGrid(t);n[2]={fld:"TABLE2",grid:0};n[5]={fld:"TABLE8",grid:0};n[8]={fld:"TABLE9",grid:0};n[11]={fld:"TXTTITAPL2",format:0,grid:0};n[13]={lvl:0,type:"char",len:2,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Ufdestino,isvalid:null,rgrid:[this.GridContainer],fld:"vUFDESTINO",gxz:"ZV29UfDestino",gxold:"OV29UfDestino",gxvar:"AV29UfDestino",ucs:[],op:[13],ip:[13],nacdep:[],ctrltype:"combo",v2v:function(n){gx.O.AV29UfDestino=n},v2z:function(n){gx.O.ZV29UfDestino=n},v2c:function(){gx.fn.setComboBoxValue("vUFDESTINO",gx.O.AV29UfDestino)},c2v:function(){gx.O.AV29UfDestino=this.val()},val:function(){return gx.fn.getControlValue("vUFDESTINO")},nac:gx.falseFn};n[16]={fld:"TXTTITAPL3",format:0,grid:0};n[18]={lvl:0,type:"int",len:8,dec:0,sign:!1,pic:"ZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:"e172872_client",rgrid:[this.GridContainer],fld:"vNCMCODIGO",gxz:"ZV58NCMCodigo",gxold:"OV58NCMCodigo",gxvar:"AV58NCMCodigo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV58NCMCodigo=gx.num.intval(n)},v2z:function(n){gx.O.ZV58NCMCodigo=gx.num.intval(n)},v2c:function(){gx.fn.setControlValue("vNCMCODIGO",gx.O.AV58NCMCodigo,0)},c2v:function(){gx.O.AV58NCMCodigo=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("vNCMCODIGO",".")},nac:gx.falseFn};n[19]={lvl:0,type:"svchar",len:150,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vNCMDESCRICAO",gxz:"ZV59NCMDescricao",gxold:"OV59NCMDescricao",gxvar:"AV59NCMDescricao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV59NCMDescricao=n},v2z:function(n){gx.O.ZV59NCMDescricao=n},v2c:function(){gx.fn.setControlValue("vNCMDESCRICAO",gx.O.AV59NCMDescricao,0)},c2v:function(){gx.O.AV59NCMDescricao=this.val()},val:function(){return gx.fn.getControlValue("vNCMDESCRICAO")},nac:gx.falseFn};n[24]={fld:"TABLE4",grid:0};n[27]={fld:"TABLE6",grid:0};n[30]={fld:"IMAGE2",grid:0};n[32]={fld:"BTNANTERIOR",grid:0};n[34]={fld:"BTNPROXIMO",grid:0};n[36]={fld:"BTNHELP",grid:0};n[38]={fld:"TABLE5",grid:0};n[41]={fld:"TEXTBLOCK1",format:0,grid:0};n[43]={lvl:0,type:"int",len:4,dec:0,sign:!1,pic:"Z9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vPAGINA",gxz:"ZV5Pagina",gxold:"OV5Pagina",gxvar:"AV5Pagina",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(n){gx.O.AV5Pagina=gx.num.intval(n)},v2z:function(n){gx.O.ZV5Pagina=gx.num.intval(n)},v2c:function(){gx.fn.setComboBoxValue("vPAGINA",gx.O.AV5Pagina)},c2v:function(){gx.O.AV5Pagina=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("vPAGINA",".")},nac:gx.falseFn};n[44]={lvl:0,type:"int",len:4,dec:0,sign:!1,pic:"Z9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vPAGINAAUX",gxz:"ZV6PaginaAux",gxold:"OV6PaginaAux",gxvar:"AV6PaginaAux",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV6PaginaAux=gx.num.intval(n)},v2z:function(n){gx.O.ZV6PaginaAux=gx.num.intval(n)},v2c:function(){gx.fn.setControlValue("vPAGINAAUX",gx.O.AV6PaginaAux,0)},c2v:function(){gx.O.AV6PaginaAux=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("vPAGINAAUX",".")},nac:gx.falseFn};n[48]={lvl:2,type:"int",len:6,dec:0,sign:!1,pic:"ZZZZZ9",ro:1,isacc:0,grid:47,gxgrid:this.GridContainer,fnc:null,isvalid:null,rgrid:[],fld:"FCPUFSEQUENCIA",gxz:"Z10668FCPUFSequencia",gxold:"O10668FCPUFSequencia",gxvar:"A10668FCPUFSequencia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",v2v:function(n){gx.O.A10668FCPUFSequencia=gx.num.intval(n)},v2z:function(n){gx.O.Z10668FCPUFSequencia=gx.num.intval(n)},v2c:function(n){gx.fn.setGridControlValue("FCPUFSEQUENCIA",n||gx.fn.currentGridRowImpl(47),gx.O.A10668FCPUFSequencia,0)},c2v:function(){gx.O.A10668FCPUFSequencia=gx.num.intval(this.val())},val:function(n){return gx.fn.getGridIntegerValue("FCPUFSEQUENCIA",n||gx.fn.currentGridRowImpl(47),".")},nac:gx.falseFn};n[49]={lvl:2,type:"char",len:2,dec:0,sign:!1,pic:"@!",ro:1,isacc:0,grid:47,gxgrid:this.GridContainer,fnc:null,isvalid:null,rgrid:[],fld:"FCPUFCODIGO",gxz:"Z10686FCPUFCodigo",gxold:"O10686FCPUFCodigo",gxvar:"A10686FCPUFCodigo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",inputType:"text",v2v:function(n){gx.O.A10686FCPUFCodigo=n},v2z:function(n){gx.O.Z10686FCPUFCodigo=n},v2c:function(n){gx.fn.setGridComboBoxValue("FCPUFCODIGO",n||gx.fn.currentGridRowImpl(47),gx.O.A10686FCPUFCodigo);typeof this.dom_hdl=="function"&&this.dom_hdl.call(gx.O)},c2v:function(){gx.O.A10686FCPUFCodigo=this.val()},val:function(n){return gx.fn.getGridControlValue("FCPUFCODIGO",n||gx.fn.currentGridRowImpl(47))},nac:gx.falseFn};n[50]={lvl:2,type:"int",len:8,dec:0,sign:!1,pic:"ZZZZZZZ9",ro:1,isacc:0,grid:47,gxgrid:this.GridContainer,fnc:this.Valid_Fcpufncmcodigo,isvalid:null,rgrid:[],fld:"FCPUFNCMCODIGO",gxz:"Z10669FCPUFNCMCodigo",gxold:"O10669FCPUFNCMCodigo",gxvar:"A10669FCPUFNCMCodigo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",v2v:function(n){gx.O.A10669FCPUFNCMCodigo=gx.num.intval(n)},v2z:function(n){gx.O.Z10669FCPUFNCMCodigo=gx.num.intval(n)},v2c:function(n){gx.fn.setGridControlValue("FCPUFNCMCODIGO",n||gx.fn.currentGridRowImpl(47),gx.O.A10669FCPUFNCMCodigo,0)},c2v:function(){gx.O.A10669FCPUFNCMCodigo=gx.num.intval(this.val())},val:function(n){return gx.fn.getGridIntegerValue("FCPUFNCMCODIGO",n||gx.fn.currentGridRowImpl(47),".")},nac:gx.falseFn};n[51]={lvl:2,type:"svchar",len:150,dec:0,sign:!1,ro:0,isacc:0,grid:47,gxgrid:this.GridContainer,fnc:null,isvalid:null,rgrid:[],fld:"vNCMDESCRICAOGRID",gxz:"ZV61NCMDescricaoGrid",gxold:"OV61NCMDescricaoGrid",gxvar:"AV61NCMDescricaoGrid",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){gx.O.AV61NCMDescricaoGrid=n},v2z:function(n){gx.O.ZV61NCMDescricaoGrid=n},v2c:function(n){gx.fn.setGridControlValue("vNCMDESCRICAOGRID",n||gx.fn.currentGridRowImpl(47),gx.O.AV61NCMDescricaoGrid,0)},c2v:function(){gx.O.AV61NCMDescricaoGrid=this.val()},val:function(n){return gx.fn.getGridControlValue("vNCMDESCRICAOGRID",n||gx.fn.currentGridRowImpl(47))},nac:gx.falseFn};n[52]={lvl:2,type:"decimal",len:8,dec:4,sign:!1,pic:"ZZ9.9999",ro:1,isacc:0,grid:47,gxgrid:this.GridContainer,fnc:null,isvalid:null,rgrid:[],fld:"FCPUFPERCENTUAL",gxz:"Z10688FCPUFPercentual",gxold:"O10688FCPUFPercentual",gxvar:"A10688FCPUFPercentual",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",v2v:function(n){gx.O.A10688FCPUFPercentual=gx.fn.toDecimalValue(n,",",".")},v2z:function(n){gx.O.Z10688FCPUFPercentual=gx.fn.toDecimalValue(n,".",",")},v2c:function(n){gx.fn.setGridDecimalValue("FCPUFPERCENTUAL",n||gx.fn.currentGridRowImpl(47),gx.O.A10688FCPUFPercentual,4,",")},c2v:function(){gx.O.A10688FCPUFPercentual=this.val()},val:function(n){return gx.fn.getGridDecimalValue("FCPUFPERCENTUAL",n||gx.fn.currentGridRowImpl(47),".",",")},nac:gx.falseFn};n[53]={lvl:2,type:"svchar",len:150,dec:0,sign:!1,ro:1,isacc:0,grid:47,gxgrid:this.GridContainer,fnc:null,isvalid:null,rgrid:[],fld:"FCPUFNCMDESCRICAO",gxz:"Z10685FCPUFNCMDescricao",gxold:"O10685FCPUFNCMDescricao",gxvar:"A10685FCPUFNCMDescricao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){gx.O.A10685FCPUFNCMDescricao=n},v2z:function(n){gx.O.Z10685FCPUFNCMDescricao=n},v2c:function(n){gx.fn.setGridControlValue("FCPUFNCMDESCRICAO",n||gx.fn.currentGridRowImpl(47),gx.O.A10685FCPUFNCMDescricao,0)},c2v:function(){gx.O.A10685FCPUFNCMDescricao=this.val()},val:function(n){return gx.fn.getGridControlValue("FCPUFNCMDESCRICAO",n||gx.fn.currentGridRowImpl(47))},nac:gx.falseFn};n[54]={lvl:2,type:"char",len:10,dec:0,sign:!1,pic:"@!",ro:1,isacc:0,grid:47,gxgrid:this.GridContainer,fnc:null,isvalid:null,rgrid:[],fld:"FCPUFEMPRESAID",gxz:"Z10667FCPUFEmpresaId",gxold:"O10667FCPUFEmpresaId",gxvar:"A10667FCPUFEmpresaId",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){gx.O.A10667FCPUFEmpresaId=n},v2z:function(n){gx.O.Z10667FCPUFEmpresaId=n},v2c:function(n){gx.fn.setGridControlValue("FCPUFEMPRESAID",n||gx.fn.currentGridRowImpl(47),gx.O.A10667FCPUFEmpresaId,0);typeof this.dom_hdl=="function"&&this.dom_hdl.call(gx.O)},c2v:function(){gx.O.A10667FCPUFEmpresaId=this.val()},val:function(n){return gx.fn.getGridControlValue("FCPUFEMPRESAID",n||gx.fn.currentGridRowImpl(47))},nac:gx.falseFn};n[55]={lvl:2,type:"bits",len:1024,dec:0,sign:!1,ro:1,isacc:0,grid:47,gxgrid:this.GridContainer,fnc:null,isvalid:null,rgrid:[],fld:"vBMPALT",gxz:"ZV7bmpAlt",gxold:"OV7bmpAlt",gxvar:"AV7bmpAlt",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",v2v:function(n){gx.O.AV7bmpAlt=n},v2z:function(n){gx.O.ZV7bmpAlt=n},v2c:function(n){gx.fn.setGridMultimediaValue("vBMPALT",n||gx.fn.currentGridRowImpl(47),gx.O.AV7bmpAlt,gx.O.AV66Bmpalt_GXI)},c2v:function(){gx.O.AV66Bmpalt_GXI=this.val_GXI();gx.O.AV7bmpAlt=this.val()},val:function(n){return gx.fn.getGridControlValue("vBMPALT",n||gx.fn.currentGridRowImpl(47))},val_GXI:function(n){return gx.fn.getGridControlValue("vBMPALT_GXI",n||gx.fn.currentGridRowImpl(47))},gxvar_GXI:"AV66Bmpalt_GXI",nac:gx.falseFn};n[56]={lvl:2,type:"bits",len:1024,dec:0,sign:!1,ro:1,isacc:0,grid:47,gxgrid:this.GridContainer,fnc:null,isvalid:null,rgrid:[],fld:"vBMPEXC",gxz:"ZV8bmpExc",gxold:"OV8bmpExc",gxvar:"AV8bmpExc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",v2v:function(n){gx.O.AV8bmpExc=n},v2z:function(n){gx.O.ZV8bmpExc=n},v2c:function(n){gx.fn.setGridMultimediaValue("vBMPEXC",n||gx.fn.currentGridRowImpl(47),gx.O.AV8bmpExc,gx.O.AV67Bmpexc_GXI)},c2v:function(){gx.O.AV67Bmpexc_GXI=this.val_GXI();gx.O.AV8bmpExc=this.val()},val:function(n){return gx.fn.getGridControlValue("vBMPEXC",n||gx.fn.currentGridRowImpl(47))},val_GXI:function(n){return gx.fn.getGridControlValue("vBMPEXC_GXI",n||gx.fn.currentGridRowImpl(47))},gxvar_GXI:"AV67Bmpexc_GXI",nac:gx.falseFn};n[57]={lvl:2,type:"bits",len:1024,dec:0,sign:!1,ro:1,isacc:0,grid:47,gxgrid:this.GridContainer,fnc:null,isvalid:null,rgrid:[],fld:"vBMPCON",gxz:"ZV16bmpCon",gxold:"OV16bmpCon",gxvar:"AV16bmpCon",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",v2v:function(n){gx.O.AV16bmpCon=n},v2z:function(n){gx.O.ZV16bmpCon=n},v2c:function(n){gx.fn.setGridMultimediaValue("vBMPCON",n||gx.fn.currentGridRowImpl(47),gx.O.AV16bmpCon,gx.O.AV68Bmpcon_GXI)},c2v:function(){gx.O.AV68Bmpcon_GXI=this.val_GXI();gx.O.AV16bmpCon=this.val()},val:function(n){return gx.fn.getGridControlValue("vBMPCON",n||gx.fn.currentGridRowImpl(47))},val_GXI:function(n){return gx.fn.getGridControlValue("vBMPCON_GXI",n||gx.fn.currentGridRowImpl(47))},gxvar_GXI:"AV68Bmpcon_GXI",nac:gx.falseFn};n[64]={lvl:0,type:"int",len:4,dec:0,sign:!1,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.GridContainer],fld:"vORDEREDBY",gxz:"ZV11OrderedBy",gxold:"OV11OrderedBy",gxvar:"AV11OrderedBy",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV11OrderedBy=gx.num.intval(n)},v2z:function(n){gx.O.ZV11OrderedBy=gx.num.intval(n)},v2c:function(){gx.fn.setControlValue("vORDEREDBY",gx.O.AV11OrderedBy,0)},c2v:function(){gx.O.AV11OrderedBy=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("vORDEREDBY",".")},nac:gx.falseFn};n[65]={lvl:0,type:"char",len:10,dec:0,sign:!1,pic:"@!",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.GridContainer],fld:"vEMPRESAPADRAO",gxz:"ZV17EmpresaPadrao",gxold:"OV17EmpresaPadrao",gxvar:"AV17EmpresaPadrao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV17EmpresaPadrao=n},v2z:function(n){gx.O.ZV17EmpresaPadrao=n},v2c:function(){gx.fn.setControlValue("vEMPRESAPADRAO",gx.O.AV17EmpresaPadrao,0)},c2v:function(){gx.O.AV17EmpresaPadrao=this.val()},val:function(){return gx.fn.getControlValue("vEMPRESAPADRAO")},nac:gx.falseFn};n[66]={lvl:0,type:"int",len:8,dec:0,sign:!1,pic:"ZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vNCMCODIGOIN",gxz:"ZV60NCMCodigoIN",gxold:"OV60NCMCodigoIN",gxvar:"AV60NCMCodigoIN",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){gx.O.AV60NCMCodigoIN=gx.num.intval(n)},v2z:function(n){gx.O.ZV60NCMCodigoIN=gx.num.intval(n)},v2c:function(){gx.fn.setControlValue("vNCMCODIGOIN",gx.O.AV60NCMCodigoIN,0)},c2v:function(){gx.O.AV60NCMCodigoIN=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("vNCMCODIGOIN",".")},nac:gx.falseFn};n[67]={fld:"PROMPT_NCMCODIGO",grid:0};this.AV29UfDestino="";this.ZV29UfDestino="";this.OV29UfDestino="";this.AV58NCMCodigo=0;this.ZV58NCMCodigo=0;this.OV58NCMCodigo=0;this.AV59NCMDescricao="";this.ZV59NCMDescricao="";this.OV59NCMDescricao="";this.AV5Pagina=0;this.ZV5Pagina=0;this.OV5Pagina=0;this.AV6PaginaAux=0;this.ZV6PaginaAux=0;this.OV6PaginaAux=0;this.Z10668FCPUFSequencia=0;this.O10668FCPUFSequencia=0;this.Z10686FCPUFCodigo="";this.O10686FCPUFCodigo="";this.Z10669FCPUFNCMCodigo=0;this.O10669FCPUFNCMCodigo=0;this.ZV61NCMDescricaoGrid="";this.OV61NCMDescricaoGrid="";this.Z10688FCPUFPercentual=0;this.O10688FCPUFPercentual=0;this.Z10685FCPUFNCMDescricao="";this.O10685FCPUFNCMDescricao="";this.Z10667FCPUFEmpresaId="";this.O10667FCPUFEmpresaId="";this.ZV7bmpAlt="";this.OV7bmpAlt="";this.ZV8bmpExc="";this.OV8bmpExc="";this.ZV16bmpCon="";this.OV16bmpCon="";this.AV11OrderedBy=0;this.ZV11OrderedBy=0;this.OV11OrderedBy=0;this.AV17EmpresaPadrao="";this.ZV17EmpresaPadrao="";this.OV17EmpresaPadrao="";this.AV60NCMCodigoIN=0;this.ZV60NCMCodigoIN=0;this.OV60NCMCodigoIN=0;this.AV29UfDestino="";this.AV58NCMCodigo=0;this.AV59NCMDescricao="";this.AV5Pagina=0;this.AV6PaginaAux=0;this.AV11OrderedBy=0;this.AV17EmpresaPadrao="";this.AV60NCMCodigoIN=0;this.A10668FCPUFSequencia=0;this.A10686FCPUFCodigo="";this.A10669FCPUFNCMCodigo=0;this.AV61NCMDescricaoGrid="";this.A10688FCPUFPercentual=0;this.A10685FCPUFNCMDescricao="";this.A10667FCPUFEmpresaId="";this.AV7bmpAlt="";this.AV8bmpExc="";this.AV16bmpCon="";this.AV57SnRecuperaFiltro="";this.AV64Pgmname="";this.Events={e112872_client:["'ANTERIOR'",!0],e122872_client:["'PROXIMO'",!0],e162872_client:["VPAGINA.CLICK",!0],e132872_client:["'NOVO'",!0],e142872_client:["'FECHAR'",!0],e152872_client:["'PROCURAR'",!0],e222872_client:["'ALTERAR'",!0],e232872_client:["'EXCLUIR'",!0],e242872_client:["'CONSULTAR'",!0],e252872_client:["'ATUALIZAPAGINA'",!0],e172872_client:["VNCMCODIGO.ISVALID",!0],e262872_client:["ENTER",!0],e272872_client:["CANCEL",!0]};this.EvtParms.REFRESH=[[{av:"GRID_nFirstRecordOnPage"},{av:"GRID_nEOF"},{av:"subGrid_Rows"},{av:"AV29UfDestino",fld:"vUFDESTINO"},{av:"AV58NCMCodigo",fld:"vNCMCODIGO"},{av:"AV11OrderedBy",fld:"vORDEREDBY"},{av:"AV17EmpresaPadrao",fld:"vEMPRESAPADRAO"},{av:"AV7bmpAlt",fld:"vBMPALT"},{av:'gx.fn.getCtrlProperty("vBMPALT","Tooltiptext")',ctrl:"vBMPALT",prop:"Tooltiptext"},{av:"AV8bmpExc",fld:"vBMPEXC"},{av:'gx.fn.getCtrlProperty("vBMPEXC","Tooltiptext")',ctrl:"vBMPEXC",prop:"Tooltiptext"},{av:"AV16bmpCon",fld:"vBMPCON"},{av:'gx.fn.getCtrlProperty("vBMPCON","Tooltiptext")',ctrl:"vBMPCON",prop:"Tooltiptext"},{av:"AV57SnRecuperaFiltro",fld:"vSNRECUPERAFILTRO",hsh:!0},{av:"AV64Pgmname",fld:"vPGMNAME"},{av:"A10685FCPUFNCMDescricao",fld:"FCPUFNCMDESCRICAO"}],[]];this.EvtParms["GRID.LOAD"]=[[{av:"A10685FCPUFNCMDescricao",fld:"FCPUFNCMDESCRICAO"}],[{av:"AV61NCMDescricaoGrid",fld:"vNCMDESCRICAOGRID"}]];this.EvtParms["GRID.REFRESH"]=[[{av:"GRID_nFirstRecordOnPage"},{av:"GRID_nEOF"},{av:"subGrid_Rows"},{av:"AV29UfDestino",fld:"vUFDESTINO"},{av:"AV58NCMCodigo",fld:"vNCMCODIGO"},{av:"AV11OrderedBy",fld:"vORDEREDBY"},{av:"AV17EmpresaPadrao",fld:"vEMPRESAPADRAO"},{av:"AV7bmpAlt",fld:"vBMPALT"},{av:'gx.fn.getCtrlProperty("vBMPALT","Tooltiptext")',ctrl:"vBMPALT",prop:"Tooltiptext"},{av:"AV8bmpExc",fld:"vBMPEXC"},{av:'gx.fn.getCtrlProperty("vBMPEXC","Tooltiptext")',ctrl:"vBMPEXC",prop:"Tooltiptext"},{av:"AV16bmpCon",fld:"vBMPCON"},{av:'gx.fn.getCtrlProperty("vBMPCON","Tooltiptext")',ctrl:"vBMPCON",prop:"Tooltiptext"},{av:"AV57SnRecuperaFiltro",fld:"vSNRECUPERAFILTRO",hsh:!0},{av:"AV64Pgmname",fld:"vPGMNAME"},{av:"A10685FCPUFNCMDescricao",fld:"FCPUFNCMDESCRICAO"}],[{ctrl:"FCPUFSEQUENCIA",prop:"Titleformat"},{av:'gx.fn.getCtrlProperty("FCPUFSEQUENCIA","Title")',ctrl:"FCPUFSEQUENCIA",prop:"Title"},{av:"AV12Imagem",fld:"vIMAGEM"},{ctrl:"FCPUFCODIGO"},{ctrl:"FCPUFNCMCODIGO",prop:"Titleformat"},{av:'gx.fn.getCtrlProperty("FCPUFNCMCODIGO","Title")',ctrl:"FCPUFNCMCODIGO",prop:"Title"},{ctrl:"vNCMDESCRICAOGRID",prop:"Titleformat"},{av:'gx.fn.getCtrlProperty("vNCMDESCRICAOGRID","Title")',ctrl:"vNCMDESCRICAOGRID",prop:"Title"},{ctrl:"FCPUFPERCENTUAL",prop:"Titleformat"},{av:'gx.fn.getCtrlProperty("FCPUFPERCENTUAL","Title")',ctrl:"FCPUFPERCENTUAL",prop:"Title"},{av:"AV6PaginaAux",fld:"vPAGINAAUX"},{av:"AV5Pagina",fld:"vPAGINA"},{av:"AV10NumPagina",fld:"vNUMPAGINA"},{av:"AV57SnRecuperaFiltro",fld:"vSNRECUPERAFILTRO",hsh:!0},{av:'gx.fn.getCtrlProperty("BTNANTERIOR","Enabled")',ctrl:"BTNANTERIOR",prop:"Enabled"},{av:'gx.fn.getCtrlProperty("BTNPROXIMO","Enabled")',ctrl:"BTNPROXIMO",prop:"Enabled"},{av:"AV23filtros",fld:"vFILTROS"},{av:"AV11OrderedBy",fld:"vORDEREDBY"},{av:"AV29UfDestino",fld:"vUFDESTINO"},{av:"AV58NCMCodigo",fld:"vNCMCODIGO"},{av:"AV59NCMDescricao",fld:"vNCMDESCRICAO"}]];this.EvtParms["'ANTERIOR'"]=[[{av:"GRID_nFirstRecordOnPage"},{av:"GRID_nEOF"},{av:"subGrid_Rows"},{av:"AV29UfDestino",fld:"vUFDESTINO"},{av:"AV58NCMCodigo",fld:"vNCMCODIGO"},{av:"AV11OrderedBy",fld:"vORDEREDBY"},{av:"AV17EmpresaPadrao",fld:"vEMPRESAPADRAO"},{av:"AV7bmpAlt",fld:"vBMPALT"},{av:'gx.fn.getCtrlProperty("vBMPALT","Tooltiptext")',ctrl:"vBMPALT",prop:"Tooltiptext"},{av:"AV8bmpExc",fld:"vBMPEXC"},{av:'gx.fn.getCtrlProperty("vBMPEXC","Tooltiptext")',ctrl:"vBMPEXC",prop:"Tooltiptext"},{av:"AV16bmpCon",fld:"vBMPCON"},{av:'gx.fn.getCtrlProperty("vBMPCON","Tooltiptext")',ctrl:"vBMPCON",prop:"Tooltiptext"},{av:"AV57SnRecuperaFiltro",fld:"vSNRECUPERAFILTRO",hsh:!0},{av:"AV64Pgmname",fld:"vPGMNAME"},{av:"A10685FCPUFNCMDescricao",fld:"FCPUFNCMDESCRICAO"},{av:"AV5Pagina",fld:"vPAGINA"},{av:"AV59NCMDescricao",fld:"vNCMDESCRICAO"}],[{av:"AV5Pagina",fld:"vPAGINA"},{av:"AV23filtros",fld:"vFILTROS"}]];this.EvtParms["'PROXIMO'"]=[[{av:"GRID_nFirstRecordOnPage"},{av:"GRID_nEOF"},{av:"subGrid_Rows"},{av:"AV29UfDestino",fld:"vUFDESTINO"},{av:"AV58NCMCodigo",fld:"vNCMCODIGO"},{av:"AV11OrderedBy",fld:"vORDEREDBY"},{av:"AV17EmpresaPadrao",fld:"vEMPRESAPADRAO"},{av:"AV7bmpAlt",fld:"vBMPALT"},{av:'gx.fn.getCtrlProperty("vBMPALT","Tooltiptext")',ctrl:"vBMPALT",prop:"Tooltiptext"},{av:"AV8bmpExc",fld:"vBMPEXC"},{av:'gx.fn.getCtrlProperty("vBMPEXC","Tooltiptext")',ctrl:"vBMPEXC",prop:"Tooltiptext"},{av:"AV16bmpCon",fld:"vBMPCON"},{av:'gx.fn.getCtrlProperty("vBMPCON","Tooltiptext")',ctrl:"vBMPCON",prop:"Tooltiptext"},{av:"AV57SnRecuperaFiltro",fld:"vSNRECUPERAFILTRO",hsh:!0},{av:"AV64Pgmname",fld:"vPGMNAME"},{av:"A10685FCPUFNCMDescricao",fld:"FCPUFNCMDESCRICAO"},{av:"AV5Pagina",fld:"vPAGINA"},{av:"AV6PaginaAux",fld:"vPAGINAAUX"},{av:"AV59NCMDescricao",fld:"vNCMDESCRICAO"}],[{av:"AV5Pagina",fld:"vPAGINA"},{av:"AV23filtros",fld:"vFILTROS"}]];this.EvtParms["VPAGINA.CLICK"]=[[{av:"GRID_nFirstRecordOnPage"},{av:"GRID_nEOF"},{av:"subGrid_Rows"},{av:"AV29UfDestino",fld:"vUFDESTINO"},{av:"AV58NCMCodigo",fld:"vNCMCODIGO"},{av:"AV11OrderedBy",fld:"vORDEREDBY"},{av:"AV17EmpresaPadrao",fld:"vEMPRESAPADRAO"},{av:"AV7bmpAlt",fld:"vBMPALT"},{av:'gx.fn.getCtrlProperty("vBMPALT","Tooltiptext")',ctrl:"vBMPALT",prop:"Tooltiptext"},{av:"AV8bmpExc",fld:"vBMPEXC"},{av:'gx.fn.getCtrlProperty("vBMPEXC","Tooltiptext")',ctrl:"vBMPEXC",prop:"Tooltiptext"},{av:"AV16bmpCon",fld:"vBMPCON"},{av:'gx.fn.getCtrlProperty("vBMPCON","Tooltiptext")',ctrl:"vBMPCON",prop:"Tooltiptext"},{av:"AV57SnRecuperaFiltro",fld:"vSNRECUPERAFILTRO",hsh:!0},{av:"AV64Pgmname",fld:"vPGMNAME"},{av:"A10685FCPUFNCMDescricao",fld:"FCPUFNCMDESCRICAO"},{av:"AV5Pagina",fld:"vPAGINA"},{av:"AV59NCMDescricao",fld:"vNCMDESCRICAO"}],[{av:"AV23filtros",fld:"vFILTROS"}]];this.EvtParms["'NOVO'"]=[[{av:"AV5Pagina",fld:"vPAGINA"},{av:"AV11OrderedBy",fld:"vORDEREDBY"},{av:"AV29UfDestino",fld:"vUFDESTINO"},{av:"AV58NCMCodigo",fld:"vNCMCODIGO"},{av:"AV59NCMDescricao",fld:"vNCMDESCRICAO"},{av:"AV64Pgmname",fld:"vPGMNAME"}],[{av:"AV23filtros",fld:"vFILTROS"}]];this.EvtParms["'FECHAR'"]=[[{av:"AV64Pgmname",fld:"vPGMNAME"}],[]];this.EvtParms["'PROCURAR'"]=[[{av:"GRID_nFirstRecordOnPage"},{av:"GRID_nEOF"},{av:"subGrid_Rows"},{av:"AV29UfDestino",fld:"vUFDESTINO"},{av:"AV58NCMCodigo",fld:"vNCMCODIGO"},{av:"AV11OrderedBy",fld:"vORDEREDBY"},{av:"AV17EmpresaPadrao",fld:"vEMPRESAPADRAO"},{av:"AV7bmpAlt",fld:"vBMPALT"},{av:'gx.fn.getCtrlProperty("vBMPALT","Tooltiptext")',ctrl:"vBMPALT",prop:"Tooltiptext"},{av:"AV8bmpExc",fld:"vBMPEXC"},{av:'gx.fn.getCtrlProperty("vBMPEXC","Tooltiptext")',ctrl:"vBMPEXC",prop:"Tooltiptext"},{av:"AV16bmpCon",fld:"vBMPCON"},{av:'gx.fn.getCtrlProperty("vBMPCON","Tooltiptext")',ctrl:"vBMPCON",prop:"Tooltiptext"},{av:"AV57SnRecuperaFiltro",fld:"vSNRECUPERAFILTRO",hsh:!0},{av:"AV64Pgmname",fld:"vPGMNAME"},{av:"A10685FCPUFNCMDescricao",fld:"FCPUFNCMDESCRICAO"},{av:"AV5Pagina",fld:"vPAGINA"},{av:"AV59NCMDescricao",fld:"vNCMDESCRICAO"}],[{av:"AV5Pagina",fld:"vPAGINA"},{av:"AV11OrderedBy",fld:"vORDEREDBY"},{av:"AV23filtros",fld:"vFILTROS"}]];this.EvtParms["'ALTERAR'"]=[[{av:"A10668FCPUFSequencia",fld:"FCPUFSEQUENCIA"},{av:"AV5Pagina",fld:"vPAGINA"},{av:"AV11OrderedBy",fld:"vORDEREDBY"},{av:"AV29UfDestino",fld:"vUFDESTINO"},{av:"AV58NCMCodigo",fld:"vNCMCODIGO"},{av:"AV59NCMDescricao",fld:"vNCMDESCRICAO"},{av:"AV64Pgmname",fld:"vPGMNAME"}],[{av:"A10668FCPUFSequencia",fld:"FCPUFSEQUENCIA"},{av:"AV23filtros",fld:"vFILTROS"}]];this.EvtParms["'EXCLUIR'"]=[[{av:"A10668FCPUFSequencia",fld:"FCPUFSEQUENCIA"},{av:"AV5Pagina",fld:"vPAGINA"},{av:"AV11OrderedBy",fld:"vORDEREDBY"},{av:"AV29UfDestino",fld:"vUFDESTINO"},{av:"AV58NCMCodigo",fld:"vNCMCODIGO"},{av:"AV59NCMDescricao",fld:"vNCMDESCRICAO"},{av:"AV64Pgmname",fld:"vPGMNAME"}],[{av:"A10668FCPUFSequencia",fld:"FCPUFSEQUENCIA"},{av:"AV23filtros",fld:"vFILTROS"}]];this.EvtParms["'CONSULTAR'"]=[[{av:"A10668FCPUFSequencia",fld:"FCPUFSEQUENCIA"},{av:"AV5Pagina",fld:"vPAGINA"},{av:"AV11OrderedBy",fld:"vORDEREDBY"},{av:"AV29UfDestino",fld:"vUFDESTINO"},{av:"AV58NCMCodigo",fld:"vNCMCODIGO"},{av:"AV59NCMDescricao",fld:"vNCMDESCRICAO"},{av:"AV64Pgmname",fld:"vPGMNAME"}],[{av:"A10668FCPUFSequencia",fld:"FCPUFSEQUENCIA"},{av:"AV23filtros",fld:"vFILTROS"}]];this.EvtParms["'ATUALIZAPAGINA'"]=[[{av:"GRID_nFirstRecordOnPage"},{av:"GRID_nEOF"},{av:"subGrid_Rows"},{av:"AV29UfDestino",fld:"vUFDESTINO"},{av:"AV58NCMCodigo",fld:"vNCMCODIGO"},{av:"AV11OrderedBy",fld:"vORDEREDBY"},{av:"AV17EmpresaPadrao",fld:"vEMPRESAPADRAO"},{av:"AV7bmpAlt",fld:"vBMPALT"},{av:'gx.fn.getCtrlProperty("vBMPALT","Tooltiptext")',ctrl:"vBMPALT",prop:"Tooltiptext"},{av:"AV8bmpExc",fld:"vBMPEXC"},{av:'gx.fn.getCtrlProperty("vBMPEXC","Tooltiptext")',ctrl:"vBMPEXC",prop:"Tooltiptext"},{av:"AV16bmpCon",fld:"vBMPCON"},{av:'gx.fn.getCtrlProperty("vBMPCON","Tooltiptext")',ctrl:"vBMPCON",prop:"Tooltiptext"},{av:"AV57SnRecuperaFiltro",fld:"vSNRECUPERAFILTRO",hsh:!0},{av:"AV64Pgmname",fld:"vPGMNAME"},{av:"A10685FCPUFNCMDescricao",fld:"FCPUFNCMDESCRICAO"}],[]];this.EvtParms["VNCMCODIGO.ISVALID"]=[[{av:"AV58NCMCodigo",fld:"vNCMCODIGO"}],[{av:"AV59NCMDescricao",fld:"vNCMDESCRICAO"}]];this.setPrompt("PROMPT_NCMCODIGO",[18]);this.setVCMap("AV57SnRecuperaFiltro","vSNRECUPERAFILTRO",0,"char");this.setVCMap("AV64Pgmname","vPGMNAME",0,"char");this.setVCMap("AV57SnRecuperaFiltro","vSNRECUPERAFILTRO",0,"char");this.setVCMap("AV64Pgmname","vPGMNAME",0,"char");t.addRefreshingVar(this.GXValidFnc[13]);t.addRefreshingVar(this.GXValidFnc[18]);t.addRefreshingVar(this.GXValidFnc[64]);t.addRefreshingVar(this.GXValidFnc[65]);t.addRefreshingVar({rfrVar:"AV7bmpAlt",rfrProp:"Value",gxAttId:"Bmpalt"});t.addRefreshingVar({rfrVar:"AV7bmpAlt",rfrProp:"Tooltiptext",gxAttId:"Bmpalt"});t.addRefreshingVar({rfrVar:"AV8bmpExc",rfrProp:"Value",gxAttId:"Bmpexc"});t.addRefreshingVar({rfrVar:"AV8bmpExc",rfrProp:"Tooltiptext",gxAttId:"Bmpexc"});t.addRefreshingVar({rfrVar:"AV16bmpCon",rfrProp:"Value",gxAttId:"Bmpcon"});t.addRefreshingVar({rfrVar:"AV16bmpCon",rfrProp:"Tooltiptext",gxAttId:"Bmpcon"});t.addRefreshingVar({rfrVar:"AV57SnRecuperaFiltro"});t.addRefreshingVar({rfrVar:"AV64Pgmname"});t.addRefreshingVar({rfrVar:"A10685FCPUFNCMDescricao",rfrProp:"Value",gxAttId:"10685"});this.InitStandaloneVars()});gx.setParentObj(new hfcpuf)