gx.evt.autoSkip=false;function gx0270(){this.ServerClass="Gx0270";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pStpCod=gx.fn.getIntegerValue("vPSTPCOD",".")};this.e139a2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e149a1_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,60];
this.GXLastCtrlId=60;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",51,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0270",[],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(840,53,"STPCOD","Codigo setup","","StpCod","int",0,"px",1,1,"right",null,[],840,"StpCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(828,54,"STPCAMPO01","Razao Social criptografada","Selecionar","StpCampo01","char",0,"px",50,50,"left",null,[],828,"StpCampo01",true,0,false,false);
this.Grid1Container.addSingleLineEdit(829,55,"STPCAMPO02","Digito de controle","","StpCampo02","int",0,"px",3,3,"right",null,[],829,"StpCampo02",true,0,false,false);this.Grid1Container.addSingleLineEdit(830,56,"STPCAMPO03","Numero CGC criptografado","","StpCampo03","char",0,"px",19,19,"left",null,[],830,"StpCampo03",true,0,false,false);this.Grid1Container.addSingleLineEdit(831,57,"STPCAMPO04","Indicador de violacao","","StpCampo04","char",0,"px",2,1,"left",null,[],831,"StpCampo04",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:"TEXTBLOCKSTPCOD",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:"vCSTPCOD",gxz:"ZV6cStpCod",gxold:"OV6cStpCod",gxvar:"AV6cStpCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cStpCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cStpCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCSTPCOD",gx.O.AV6cStpCod,0)},c2v:function(){gx.O.AV6cStpCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCSTPCOD",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKSTPCAMPO01RAZSOCIAL",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCSTPCAMPO01RAZSOCIAL",gxz:"ZV7cStpCampo01RazSocial",gxold:"OV7cStpCampo01RazSocial",gxvar:"AV7cStpCampo01RazSocial",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cStpCampo01RazSocial=a
},v2z:function(a){gx.O.ZV7cStpCampo01RazSocial=a},v2c:function(){gx.fn.setControlValue("vCSTPCAMPO01RAZSOCIAL",gx.O.AV7cStpCampo01RazSocial,0)},c2v:function(){gx.O.AV7cStpCampo01RazSocial=this.val()},val:function(){return gx.fn.getControlValue("vCSTPCAMPO01RAZSOCIAL")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKSTPCAMPO02DIGCONTROLE",format:0,grid:0};this.GXValidFnc[24]={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:"vCSTPCAMPO02DIGCONTROLE",gxz:"ZV8cStpCampo02DigControle",gxold:"OV8cStpCampo02DigControle",gxvar:"AV8cStpCampo02DigControle",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cStpCampo02DigControle=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8cStpCampo02DigControle=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCSTPCAMPO02DIGCONTROLE",gx.O.AV8cStpCampo02DigControle,0)},c2v:function(){gx.O.AV8cStpCampo02DigControle=this.val()},val:function(){return gx.fn.getIntegerValue("vCSTPCAMPO02DIGCONTROLE",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKSTPCAMPO03NUMCGC",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:19,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCSTPCAMPO03NUMCGC",gxz:"ZV9cStpCampo03NumCgc",gxold:"OV9cStpCampo03NumCgc",gxvar:"AV9cStpCampo03NumCgc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cStpCampo03NumCgc=a
},v2z:function(a){gx.O.ZV9cStpCampo03NumCgc=a},v2c:function(){gx.fn.setControlValue("vCSTPCAMPO03NUMCGC",gx.O.AV9cStpCampo03NumCgc,0)},c2v:function(){gx.O.AV9cStpCampo03NumCgc=this.val()},val:function(){return gx.fn.getControlValue("vCSTPCAMPO03NUMCGC")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKSTPCAMPO04INDVIOLACAO",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCSTPCAMPO04INDVIOLACAO",gxz:"ZV10cStpCampo04IndViolacao",gxold:"OV10cStpCampo04IndViolacao",gxvar:"AV10cStpCampo04IndViolacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cStpCampo04IndViolacao=a
},v2z:function(a){gx.O.ZV10cStpCampo04IndViolacao=a},v2c:function(){gx.fn.setControlValue("vCSTPCAMPO04INDVIOLACAO",gx.O.AV10cStpCampo04IndViolacao,0)},c2v:function(){gx.O.AV10cStpCampo04IndViolacao=this.val()},val:function(){return gx.fn.getControlValue("vCSTPCAMPO04INDVIOLACAO")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKSTPDATULTUPGRADE",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCSTPDATULTUPGRADE",gxz:"ZV11cStpDatUltUpgrade",gxold:"OV11cStpDatUltUpgrade",gxvar:"AV11cStpDatUltUpgrade",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.AV11cStpDatUltUpgrade=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV11cStpDatUltUpgrade=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCSTPDATULTUPGRADE",gx.O.AV11cStpDatUltUpgrade,0)},c2v:function(){gx.O.AV11cStpDatUltUpgrade=this.val()},val:function(){return gx.fn.getControlValue("vCSTPDATULTUPGRADE")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKSTPCAMPO05NUMSERIE",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"char",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCSTPCAMPO05NUMSERIE",gxz:"ZV12cStpCampo05NumSerie",gxold:"OV12cStpCampo05NumSerie",gxvar:"AV12cStpCampo05NumSerie",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12cStpCampo05NumSerie=a
},v2z:function(a){gx.O.ZV12cStpCampo05NumSerie=a},v2c:function(){gx.fn.setControlValue("vCSTPCAMPO05NUMSERIE",gx.O.AV12cStpCampo05NumSerie,0)},c2v:function(){gx.O.AV12cStpCampo05NumSerie=this.val()},val:function(){return gx.fn.getControlValue("vCSTPCAMPO05NUMSERIE")},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:"STPCOD",gxz:"Z840StpCod",gxold:"O840StpCod",gxvar:"A840StpCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A840StpCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z840StpCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("STPCOD",gx.fn.currentGridRowImpl(51),gx.O.A840StpCod,0)},c2v:function(){gx.O.A840StpCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("STPCOD",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"STPCAMPO01",gxz:"Z828StpCampo01",gxold:"O828StpCampo01",gxvar:"A828StpCampo01",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A828StpCampo01=a
},v2z:function(a){gx.O.Z828StpCampo01=a},v2c:function(){gx.fn.setGridControlValue("STPCAMPO01",gx.fn.currentGridRowImpl(51),gx.O.A828StpCampo01,0)},c2v:function(){gx.O.A828StpCampo01=this.val()},val:function(){return gx.fn.getGridControlValue("STPCAMPO01",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[55]={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:"STPCAMPO02",gxz:"Z829StpCampo02",gxold:"O829StpCampo02",gxvar:"A829StpCampo02",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A829StpCampo02=gx.num.intval(a)
},v2z:function(a){gx.O.Z829StpCampo02=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("STPCAMPO02",gx.fn.currentGridRowImpl(51),gx.O.A829StpCampo02,0)},c2v:function(){gx.O.A829StpCampo02=this.val()},val:function(){return gx.fn.getGridIntegerValue("STPCAMPO02",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"char",len:19,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"STPCAMPO03",gxz:"Z830StpCampo03",gxold:"O830StpCampo03",gxvar:"A830StpCampo03",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A830StpCampo03=a
},v2z:function(a){gx.O.Z830StpCampo03=a},v2c:function(){gx.fn.setGridControlValue("STPCAMPO03",gx.fn.currentGridRowImpl(51),gx.O.A830StpCampo03,0)},c2v:function(){gx.O.A830StpCampo03=this.val()},val:function(){return gx.fn.getGridControlValue("STPCAMPO03",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"STPCAMPO04",gxz:"Z831StpCampo04",gxold:"O831StpCampo04",gxvar:"A831StpCampo04",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A831StpCampo04=a
},v2z:function(a){gx.O.Z831StpCampo04=a},v2c:function(){gx.fn.setGridControlValue("STPCAMPO04",gx.fn.currentGridRowImpl(51),gx.O.A831StpCampo04,0)},c2v:function(){gx.O.A831StpCampo04=this.val()},val:function(){return gx.fn.getGridControlValue("STPCAMPO04",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[60]={fld:"TABLE4",grid:0};this.AV6cStpCod=0;this.ZV6cStpCod=0;this.OV6cStpCod=0;this.AV7cStpCampo01RazSocial="";this.ZV7cStpCampo01RazSocial="";this.OV7cStpCampo01RazSocial="";
this.AV8cStpCampo02DigControle=0;this.ZV8cStpCampo02DigControle=0;this.OV8cStpCampo02DigControle=0;this.AV9cStpCampo03NumCgc="";this.ZV9cStpCampo03NumCgc="";this.OV9cStpCampo03NumCgc="";this.AV10cStpCampo04IndViolacao="";this.ZV10cStpCampo04IndViolacao="";this.OV10cStpCampo04IndViolacao="";this.AV11cStpDatUltUpgrade=gx.date.nullDate();this.ZV11cStpDatUltUpgrade=gx.date.nullDate();this.OV11cStpDatUltUpgrade=gx.date.nullDate();this.AV12cStpCampo05NumSerie="";this.ZV12cStpCampo05NumSerie="";this.OV12cStpCampo05NumSerie="";
this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z840StpCod=0;this.O840StpCod=0;this.Z828StpCampo01="";this.O828StpCampo01="";this.Z829StpCampo02=0;this.O829StpCampo02=0;this.Z830StpCampo03="";this.O830StpCampo03="";this.Z831StpCampo04="";this.O831StpCampo04="";this.AV13pStpCod=0;this.A841StpDatUltU=gx.date.nullDate();this.A832StpCampo05="";this.AV5LinkSelection="";this.A840StpCod=0;this.A828StpCampo01="";this.A829StpCampo02=0;this.A830StpCampo03="";this.A831StpCampo04="";this.ServerEvents=["e139a2_client","e149a1_client"];
this.VarControlMap.AV13pStpCod={id:"vPSTPCOD",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()}gx0270.prototype=new gx.GxObject;
gx.setParentObj(new gx0270());