gx.evt.autoSkip=false;function tgst007(){this.ServerClass="Tgst007";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Prgcod=function(){gx.ajax.validSrvEvt("dyncall","valid_Prgcod",["gx.O.A693PrgCod","gx.O.A695PrgDesLong","gx.O.A694PrgDesAbre","gx.O.A697PrgIndSegu","gx.O.A696PrgDesVers"],["A695PrgDesLong","A694PrgDesAbre","A697PrgIndSegu","A696PrgDesVers","Gx_mode","Z693PrgCod","Z695PrgDesLong","Z694PrgDesAbre","Z697PrgIndSegu","Z696PrgDesVers",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Prgindsegu=function(){try{var a=gx.util.balloon.getNew("PRGINDSEGU");this.AnyError=0;if(!(this.A697PrgIndSegu=="S"||this.A697PrgIndSegu=="N")){try{a.setError("Campo Tem seguranca? fora da faixa");this.AnyError=1}catch(b){}}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e112i87_client=function(){this.executeServerEvent("ENTER",true)};this.e122i87_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,24,26,29,31,34,36,39,41];
this.GXLastCtrlId=41;this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[15]={fld:"TABLE2",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[20]={lvl:0,type:"char",len:8,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Prgcod,isvalid:null,fld:"PRGCOD",gxz:"Z693PrgCod",gxold:"O693PrgCod",gxvar:"A693PrgCod",ucs:[],op:[41,36,31,26],ip:[41,36,31,26,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A693PrgCod=a},v2z:function(a){gx.O.Z693PrgCod=a},v2c:function(){gx.fn.setControlValue("PRGCOD",gx.O.A693PrgCod,0)
},c2v:function(){gx.O.A693PrgCod=this.val()},val:function(){return gx.fn.getControlValue("PRGCOD")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:34,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PRGDESLONG",gxz:"Z695PrgDesLong",gxold:"O695PrgDesLong",gxvar:"A695PrgDesLong",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A695PrgDesLong=a},v2z:function(a){gx.O.Z695PrgDesLong=a},v2c:function(){gx.fn.setControlValue("PRGDESLONG",gx.O.A695PrgDesLong,0)
},c2v:function(){gx.O.A695PrgDesLong=this.val()},val:function(){return gx.fn.getControlValue("PRGDESLONG")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PRGDESABRE",gxz:"Z694PrgDesAbre",gxold:"O694PrgDesAbre",gxvar:"A694PrgDesAbre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A694PrgDesAbre=a},v2z:function(a){gx.O.Z694PrgDesAbre=a
},v2c:function(){gx.fn.setControlValue("PRGDESABRE",gx.O.A694PrgDesAbre,0)},c2v:function(){gx.O.A694PrgDesAbre=this.val()},val:function(){return gx.fn.getControlValue("PRGDESABRE")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Prgindsegu,isvalid:null,fld:"PRGINDSEGU",gxz:"Z697PrgIndSegu",gxold:"O697PrgIndSegu",gxvar:"A697PrgIndSegu",ucs:[],op:[36],ip:[36],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A697PrgIndSegu=a
},v2z:function(a){gx.O.Z697PrgIndSegu=a},v2c:function(){gx.fn.setControlValue("PRGINDSEGU",gx.O.A697PrgIndSegu,0)},c2v:function(){gx.O.A697PrgIndSegu=this.val()},val:function(){return gx.fn.getControlValue("PRGINDSEGU")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"char",len:4,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PRGDESVERS",gxz:"Z696PrgDesVers",gxold:"O696PrgDesVers",gxvar:"A696PrgDesVers",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A696PrgDesVers=a
},v2z:function(a){gx.O.Z696PrgDesVers=a},v2c:function(){gx.fn.setControlValue("PRGDESVERS",gx.O.A696PrgDesVers,0)},c2v:function(){gx.O.A696PrgDesVers=this.val()},val:function(){return gx.fn.getControlValue("PRGDESVERS")},nac:function(){return false}};this.A693PrgCod="";this.Z693PrgCod="";this.O693PrgCod="";this.A695PrgDesLong="";this.Z695PrgDesLong="";this.O695PrgDesLong="";this.A694PrgDesAbre="";this.Z694PrgDesAbre="";this.O694PrgDesAbre="";this.A697PrgIndSegu="";this.Z697PrgIndSegu="";this.O697PrgIndSegu="";
this.A696PrgDesVers="";this.Z696PrgDesVers="";this.O696PrgDesVers="";this.ServerEvents=["e112i87_client","e122i87_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tgst007.prototype=new gx.GxObject;gx.setParentObj(new tgst007());