gx.evt.autoSkip=false;function gx0280(){this.ServerClass="Gx0280";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pPtpCod=gx.fn.getIntegerValue("vPPTPCOD",".")};this.e13bp2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14bp1_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,57];
this.GXLastCtrlId=57;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",51,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0280",[],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(715,53,"PTPCOD","Codigo setup","","PtpCod","int",0,"px",1,1,"right",null,[],715,"PtpCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(702,54,"PTPCAMPO01","Razao Social criptografada","Selecionar","PtpCampo01","char",0,"px",100,100,"left",null,[],702,"PtpCampo01",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:"TEXTBLOCKPTPCOD",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:"vCPTPCOD",gxz:"ZV6cPtpCod",gxold:"OV6cPtpCod",gxvar:"AV6cPtpCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cPtpCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cPtpCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCPTPCOD",gx.O.AV6cPtpCod,0)},c2v:function(){gx.O.AV6cPtpCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCPTPCOD",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKPTPCAMPO02DIGCONTROLE",format:0,grid:0};this.GXValidFnc[19]={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:"vCPTPCAMPO02DIGCONTROLE",gxz:"ZV7cPtpCampo02DigControle",gxold:"OV7cPtpCampo02DigControle",gxvar:"AV7cPtpCampo02DigControle",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cPtpCampo02DigControle=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7cPtpCampo02DigControle=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCPTPCAMPO02DIGCONTROLE",gx.O.AV7cPtpCampo02DigControle,0)},c2v:function(){gx.O.AV7cPtpCampo02DigControle=this.val()},val:function(){return gx.fn.getIntegerValue("vCPTPCAMPO02DIGCONTROLE",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKPTPCAMPO04INDVIOLACAO",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCPTPCAMPO04INDVIOLACAO",gxz:"ZV8cPtpCampo04IndViolacao",gxold:"OV8cPtpCampo04IndViolacao",gxvar:"AV8cPtpCampo04IndViolacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cPtpCampo04IndViolacao=a
},v2z:function(a){gx.O.ZV8cPtpCampo04IndViolacao=a},v2c:function(){gx.fn.setControlValue("vCPTPCAMPO04INDVIOLACAO",gx.O.AV8cPtpCampo04IndViolacao,0)},c2v:function(){gx.O.AV8cPtpCampo04IndViolacao=this.val()},val:function(){return gx.fn.getControlValue("vCPTPCAMPO04INDVIOLACAO")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKPTPCAMPO05NUMSERIE",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCPTPCAMPO05NUMSERIE",gxz:"ZV9cPtpCampo05NumSerie",gxold:"OV9cPtpCampo05NumSerie",gxvar:"AV9cPtpCampo05NumSerie",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cPtpCampo05NumSerie=a
},v2z:function(a){gx.O.ZV9cPtpCampo05NumSerie=a},v2c:function(){gx.fn.setControlValue("vCPTPCAMPO05NUMSERIE",gx.O.AV9cPtpCampo05NumSerie,0)},c2v:function(){gx.O.AV9cPtpCampo05NumSerie=this.val()},val:function(){return gx.fn.getControlValue("vCPTPCAMPO05NUMSERIE")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKPTPCAMPO06QTDDOCLIBERADO",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:7,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCPTPCAMPO06QTDDOCLIBERADO",gxz:"ZV10cPtpCampo06QtdDocLiberado",gxold:"OV10cPtpCampo06QtdDocLiberado",gxvar:"AV10cPtpCampo06QtdDocLiberado",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cPtpCampo06QtdDocLiberado=a
},v2z:function(a){gx.O.ZV10cPtpCampo06QtdDocLiberado=a},v2c:function(){gx.fn.setControlValue("vCPTPCAMPO06QTDDOCLIBERADO",gx.O.AV10cPtpCampo06QtdDocLiberado,0)},c2v:function(){gx.O.AV10cPtpCampo06QtdDocLiberado=this.val()},val:function(){return gx.fn.getControlValue("vCPTPCAMPO06QTDDOCLIBERADO")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKPTPCAMPO07CONTROLEQTDLIBER",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"char",len:7,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCPTPCAMPO07CONTROLEQTDLIBER",gxz:"ZV11cPtpCampo07ControleQtdLiber",gxold:"OV11cPtpCampo07ControleQtdLiber",gxvar:"AV11cPtpCampo07ControleQtdLiber",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cPtpCampo07ControleQtdLiber=a
},v2z:function(a){gx.O.ZV11cPtpCampo07ControleQtdLiber=a},v2c:function(){gx.fn.setControlValue("vCPTPCAMPO07CONTROLEQTDLIBER",gx.O.AV11cPtpCampo07ControleQtdLiber,0)},c2v:function(){gx.O.AV11cPtpCampo07ControleQtdLiber=this.val()},val:function(){return gx.fn.getControlValue("vCPTPCAMPO07CONTROLEQTDLIBER")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKPTPCAMPO08DATULTUPGRADE",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCPTPCAMPO08DATULTUPGRADE",gxz:"ZV12cPtpCampo08DatUltUpgrade",gxold:"OV12cPtpCampo08DatUltUpgrade",gxvar:"AV12cPtpCampo08DatUltUpgrade",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12cPtpCampo08DatUltUpgrade=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV12cPtpCampo08DatUltUpgrade=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCPTPCAMPO08DATULTUPGRADE",gx.O.AV12cPtpCampo08DatUltUpgrade,0)},c2v:function(){gx.O.AV12cPtpCampo08DatUltUpgrade=this.val()},val:function(){return gx.fn.getControlValue("vCPTPCAMPO08DATULTUPGRADE")},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:"PTPCOD",gxz:"Z715PtpCod",gxold:"O715PtpCod",gxvar:"A715PtpCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A715PtpCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z715PtpCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("PTPCOD",gx.fn.currentGridRowImpl(51),gx.O.A715PtpCod,0)},c2v:function(){gx.O.A715PtpCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("PTPCOD",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"PTPCAMPO01",gxz:"Z702PtpCampo01",gxold:"O702PtpCampo01",gxvar:"A702PtpCampo01",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A702PtpCampo01=a
},v2z:function(a){gx.O.Z702PtpCampo01=a},v2c:function(){gx.fn.setGridControlValue("PTPCAMPO01",gx.fn.currentGridRowImpl(51),gx.O.A702PtpCampo01,0)},c2v:function(){gx.O.A702PtpCampo01=this.val()},val:function(){return gx.fn.getGridControlValue("PTPCAMPO01",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[57]={fld:"TABLE4",grid:0};this.AV6cPtpCod=0;this.ZV6cPtpCod=0;this.OV6cPtpCod=0;this.AV7cPtpCampo02DigControle=0;this.ZV7cPtpCampo02DigControle=0;this.OV7cPtpCampo02DigControle=0;
this.AV8cPtpCampo04IndViolacao="";this.ZV8cPtpCampo04IndViolacao="";this.OV8cPtpCampo04IndViolacao="";this.AV9cPtpCampo05NumSerie="";this.ZV9cPtpCampo05NumSerie="";this.OV9cPtpCampo05NumSerie="";this.AV10cPtpCampo06QtdDocLiberado="";this.ZV10cPtpCampo06QtdDocLiberado="";this.OV10cPtpCampo06QtdDocLiberado="";this.AV11cPtpCampo07ControleQtdLiber="";this.ZV11cPtpCampo07ControleQtdLiber="";this.OV11cPtpCampo07ControleQtdLiber="";this.AV12cPtpCampo08DatUltUpgrade=gx.date.nullDate();this.ZV12cPtpCampo08DatUltUpgrade=gx.date.nullDate();
this.OV12cPtpCampo08DatUltUpgrade=gx.date.nullDate();this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z715PtpCod=0;this.O715PtpCod=0;this.Z702PtpCampo01="";this.O702PtpCampo01="";this.AV13pPtpCod=0;this.A703PtpCampo02=0;this.A705PtpCampo04="";this.A706PtpCampo05="";this.A707PtpCampo06="";this.A708PtpCampo07="";this.A709PtpCampo08=gx.date.nullDate();this.AV5LinkSelection="";this.A715PtpCod=0;this.A702PtpCampo01="";this.ServerEvents=["e13bp2_client","e14bp1_client"];this.VarControlMap.AV13pPtpCod={id:"vPPTPCOD",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()}gx0280.prototype=new gx.GxObject;gx.setParentObj(new gx0280());