gx.evt.autoSkip=false;function gx0030(){this.ServerClass="Gx0030";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pParCod=gx.fn.getIntegerValue("vPPARCOD",".")};this.e139t2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e149t1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,34,37,39,42,44,47,48,52,53,54,55,56,57,58,59,62];
this.GXLastCtrlId=62;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",51,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0030",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",52,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(559,53,"PARCOD","ParCod","","ParCod","int",0,"px",1,1,"right",null,[],559,"ParCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(605,54,"PARQTDPERI","Carta seleção unidade","","ParQtdPeri","int",0,"px",4,4,"right",null,[],605,"ParQtdPeri",true,0,false,false);
this.Grid1Container.addSingleLineEdit(599,55,"PARQTDEDIT","Qtd de editoras","","ParQtdEdit","int",0,"px",5,5,"right",null,[],599,"ParQtdEdit",true,0,false,false);this.Grid1Container.addSingleLineEdit(603,56,"PARQTDLOCA","Qtd localizações","","ParQtdLoca","int",0,"px",3,3,"right",null,[],603,"ParQtdLoca",true,0,false,false);this.Grid1Container.addSingleLineEdit(598,57,"PARQTDDOCU","Qtd documentos","","ParQtdDocu","int",0,"px",6,6,"right",null,[],598,"ParQtdDocu",true,0,false,false);this.Grid1Container.addSingleLineEdit(604,58,"PARQTDPALA","Qtd Palavras-chave","","ParQtdPala","int",0,"px",6,6,"right",null,[],604,"ParQtdPala",true,0,false,false);
this.Grid1Container.addSingleLineEdit(607,59,"PARQTDUSUA","Nro maior penalidade","","ParQtdUsua","int",0,"px",10,10,"right",null,[],607,"ParQtdUsua",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[8]={fld:"GROUP1",grid:0};this.GXValidFnc[9]={fld:"TABLE2",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCKPARCOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"int",len:1,dec:0,sign:false,pic:"9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCPARCOD",gxz:"ZV6cParCod",gxold:"OV6cParCod",gxvar:"AV6cParCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cParCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cParCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCPARCOD",gx.O.AV6cParCod,0)},c2v:function(){gx.O.AV6cParCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCPARCOD",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKPARQTDPERIODICOS",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCPARQTDPERIODICOS",gxz:"ZV7cParQtdPeriodicos",gxold:"OV7cParQtdPeriodicos",gxvar:"AV7cParQtdPeriodicos",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cParQtdPeriodicos=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7cParQtdPeriodicos=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCPARQTDPERIODICOS",gx.O.AV7cParQtdPeriodicos,0)},c2v:function(){gx.O.AV7cParQtdPeriodicos=this.val()},val:function(){return gx.fn.getIntegerValue("vCPARQTDPERIODICOS",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKPARQTDEDITORAS",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCPARQTDEDITORAS",gxz:"ZV8cParQtdEditoras",gxold:"OV8cParQtdEditoras",gxvar:"AV8cParQtdEditoras",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cParQtdEditoras=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8cParQtdEditoras=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCPARQTDEDITORAS",gx.O.AV8cParQtdEditoras,0)},c2v:function(){gx.O.AV8cParQtdEditoras=this.val()},val:function(){return gx.fn.getIntegerValue("vCPARQTDEDITORAS",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKPARQTDLOCALIZACOES",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCPARQTDLOCALIZACOES",gxz:"ZV9cParQtdLocalizacoes",gxold:"OV9cParQtdLocalizacoes",gxvar:"AV9cParQtdLocalizacoes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cParQtdLocalizacoes=gx.num.intval(a)
},v2z:function(a){gx.O.ZV9cParQtdLocalizacoes=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCPARQTDLOCALIZACOES",gx.O.AV9cParQtdLocalizacoes,0)},c2v:function(){gx.O.AV9cParQtdLocalizacoes=this.val()},val:function(){return gx.fn.getIntegerValue("vCPARQTDLOCALIZACOES",".")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKPARQTDDOCUMENTOS",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCPARQTDDOCUMENTOS",gxz:"ZV10cParQtdDocumentos",gxold:"OV10cParQtdDocumentos",gxvar:"AV10cParQtdDocumentos",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cParQtdDocumentos=gx.num.intval(a)
},v2z:function(a){gx.O.ZV10cParQtdDocumentos=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCPARQTDDOCUMENTOS",gx.O.AV10cParQtdDocumentos,0)},c2v:function(){gx.O.AV10cParQtdDocumentos=this.val()},val:function(){return gx.fn.getIntegerValue("vCPARQTDDOCUMENTOS",".")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKPARQTDPALAVRASCHAVE",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCPARQTDPALAVRASCHAVE",gxz:"ZV11cParQtdPalavrasChave",gxold:"OV11cParQtdPalavrasChave",gxvar:"AV11cParQtdPalavrasChave",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cParQtdPalavrasChave=gx.num.intval(a)
},v2z:function(a){gx.O.ZV11cParQtdPalavrasChave=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCPARQTDPALAVRASCHAVE",gx.O.AV11cParQtdPalavrasChave,0)},c2v:function(){gx.O.AV11cParQtdPalavrasChave=this.val()},val:function(){return gx.fn.getIntegerValue("vCPARQTDPALAVRASCHAVE",".")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKPARQTDREMISSIVAS",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCPARQTDREMISSIVAS",gxz:"ZV12cParQtdRemissivas",gxold:"OV12cParQtdRemissivas",gxvar:"AV12cParQtdRemissivas",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12cParQtdRemissivas=gx.num.intval(a)
},v2z:function(a){gx.O.ZV12cParQtdRemissivas=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCPARQTDREMISSIVAS",gx.O.AV12cParQtdRemissivas,0)},c2v:function(){gx.O.AV12cParQtdRemissivas=this.val()},val:function(){return gx.fn.getIntegerValue("vCPARQTDREMISSIVAS",".")},nac:function(){return false}};this.GXValidFnc[47]={fld:"GROUP2",grid:0};this.GXValidFnc[48]={fld:"TABLE3",grid:0};this.GXValidFnc[52]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vLINKSELECTION",gxz:"ZV5LinkSelection",gxold:"OV5LinkSelection",gxvar:"AV5LinkSelection",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5LinkSelection=a
},v2z:function(a){gx.O.ZV5LinkSelection=a},v2c:function(){},c2v:function(){gx.O.AV5LinkSelection=this.val()},val:function(){return gx.fn.getGridControlValue("vLINKSELECTION",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"int",len:1,dec:0,sign:false,pic:"9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"PARCOD",gxz:"Z559ParCod",gxold:"O559ParCod",gxvar:"A559ParCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A559ParCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z559ParCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("PARCOD",gx.fn.currentGridRowImpl(51),gx.O.A559ParCod,0)},c2v:function(){gx.O.A559ParCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("PARCOD",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"PARQTDPERI",gxz:"Z605ParQtdPeri",gxold:"O605ParQtdPeri",gxvar:"A605ParQtdPeri",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A605ParQtdPeri=gx.num.intval(a)
},v2z:function(a){gx.O.Z605ParQtdPeri=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("PARQTDPERI",gx.fn.currentGridRowImpl(51),gx.O.A605ParQtdPeri,0)},c2v:function(){gx.O.A605ParQtdPeri=this.val()},val:function(){return gx.fn.getGridIntegerValue("PARQTDPERI",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"PARQTDEDIT",gxz:"Z599ParQtdEdit",gxold:"O599ParQtdEdit",gxvar:"A599ParQtdEdit",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A599ParQtdEdit=gx.num.intval(a)
},v2z:function(a){gx.O.Z599ParQtdEdit=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("PARQTDEDIT",gx.fn.currentGridRowImpl(51),gx.O.A599ParQtdEdit,0)},c2v:function(){gx.O.A599ParQtdEdit=this.val()},val:function(){return gx.fn.getGridIntegerValue("PARQTDEDIT",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"PARQTDLOCA",gxz:"Z603ParQtdLoca",gxold:"O603ParQtdLoca",gxvar:"A603ParQtdLoca",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A603ParQtdLoca=gx.num.intval(a)
},v2z:function(a){gx.O.Z603ParQtdLoca=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("PARQTDLOCA",gx.fn.currentGridRowImpl(51),gx.O.A603ParQtdLoca,0)},c2v:function(){gx.O.A603ParQtdLoca=this.val()},val:function(){return gx.fn.getGridIntegerValue("PARQTDLOCA",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"PARQTDDOCU",gxz:"Z598ParQtdDocu",gxold:"O598ParQtdDocu",gxvar:"A598ParQtdDocu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A598ParQtdDocu=gx.num.intval(a)
},v2z:function(a){gx.O.Z598ParQtdDocu=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("PARQTDDOCU",gx.fn.currentGridRowImpl(51),gx.O.A598ParQtdDocu,0)},c2v:function(){gx.O.A598ParQtdDocu=this.val()},val:function(){return gx.fn.getGridIntegerValue("PARQTDDOCU",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"PARQTDPALA",gxz:"Z604ParQtdPala",gxold:"O604ParQtdPala",gxvar:"A604ParQtdPala",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A604ParQtdPala=gx.num.intval(a)
},v2z:function(a){gx.O.Z604ParQtdPala=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("PARQTDPALA",gx.fn.currentGridRowImpl(51),gx.O.A604ParQtdPala,0)},c2v:function(){gx.O.A604ParQtdPala=this.val()},val:function(){return gx.fn.getGridIntegerValue("PARQTDPALA",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[59]={lvl:2,type:"int",len:10,dec:0,sign:false,pic:"ZZZZZZZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"PARQTDUSUA",gxz:"Z607ParQtdUsua",gxold:"O607ParQtdUsua",gxvar:"A607ParQtdUsua",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A607ParQtdUsua=gx.num.intval(a)
},v2z:function(a){gx.O.Z607ParQtdUsua=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("PARQTDUSUA",gx.fn.currentGridRowImpl(51),gx.O.A607ParQtdUsua,0)},c2v:function(){gx.O.A607ParQtdUsua=this.val()},val:function(){return gx.fn.getGridIntegerValue("PARQTDUSUA",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[62]={fld:"TABLE4",grid:0};this.AV6cParCod=0;this.ZV6cParCod=0;this.OV6cParCod=0;this.AV7cParQtdPeriodicos=0;this.ZV7cParQtdPeriodicos=0;this.OV7cParQtdPeriodicos=0;
this.AV8cParQtdEditoras=0;this.ZV8cParQtdEditoras=0;this.OV8cParQtdEditoras=0;this.AV9cParQtdLocalizacoes=0;this.ZV9cParQtdLocalizacoes=0;this.OV9cParQtdLocalizacoes=0;this.AV10cParQtdDocumentos=0;this.ZV10cParQtdDocumentos=0;this.OV10cParQtdDocumentos=0;this.AV11cParQtdPalavrasChave=0;this.ZV11cParQtdPalavrasChave=0;this.OV11cParQtdPalavrasChave=0;this.AV12cParQtdRemissivas=0;this.ZV12cParQtdRemissivas=0;this.OV12cParQtdRemissivas=0;this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z559ParCod=0;
this.O559ParCod=0;this.Z605ParQtdPeri=0;this.O605ParQtdPeri=0;this.Z599ParQtdEdit=0;this.O599ParQtdEdit=0;this.Z603ParQtdLoca=0;this.O603ParQtdLoca=0;this.Z598ParQtdDocu=0;this.O598ParQtdDocu=0;this.Z604ParQtdPala=0;this.O604ParQtdPala=0;this.Z607ParQtdUsua=0;this.O607ParQtdUsua=0;this.AV13pParCod=0;this.A606ParQtdRemi=0;this.AV5LinkSelection="";this.A559ParCod=0;this.A605ParQtdPeri=0;this.A599ParQtdEdit=0;this.A603ParQtdLoca=0;this.A598ParQtdDocu=0;this.A604ParQtdPala=0;this.A607ParQtdUsua=0;this.ServerEvents=["e139t2_client","e149t1_client"];
this.VarControlMap.AV13pParCod={id:"vPPARCOD",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[29]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[34]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[39]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[44]);this.SetStandaloneVars()}gx0030.prototype=new gx.GxObject;
gx.setParentObj(new gx0030());