/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:23:49.56
*/
gx.evt.autoSkip=!1;gx.define("tcpt002",!1,function(){this.ServerClass="tcpt002";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=!0;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){};this.Valid_Setcod=function(){return this.validSrvEvt("valid_Setcod",0).then(function(n){return n}.closure(this))};this.e112375_client=function(){return this.executeServerEvent("ENTER",!0,null,!1,!1)};this.e122375_client=function(){return this.executeServerEvent("CANCEL",!0,null,!1,!1)};this.GXValidFnc=[];var n=this.GXValidFnc;this.GXCtrlIds=[2,5,6,7,8,9,15,18,20,21,24,26,29,30,31,32,33];this.GXLastCtrlId=33;n[2]={id:2,fld:"TABLE1",grid:0};n[5]={id:5,fld:"BTN_FIRST",grid:0,evt:"e132375_client",std:"FIRST"};n[6]={id:6,fld:"BTN_PREVIOUS",grid:0,evt:"e142375_client",std:"PREVIOUS"};n[7]={id:7,fld:"BTN_NEXT",grid:0,evt:"e152375_client",std:"NEXT"};n[8]={id:8,fld:"BTN_LAST",grid:0,evt:"e162375_client",std:"LAST"};n[9]={id:9,fld:"BTN_SELECT",grid:0,evt:"e172375_client",std:"SELECT"};n[15]={id:15,fld:"TABLE2",grid:0};n[18]={id:18,fld:"TEXTBLOCK1",format:0,grid:0};n[20]={id:20,lvl:0,type:"int",len:6,dec:0,sign:!1,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Setcod,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"SETCOD",gxz:"Z53SetCod",gxold:"O53SetCod",gxvar:"A53SetCod",ucs:[],op:[26],ip:[26,20],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A53SetCod=gx.num.intval(n))},v2z:function(n){n!==undefined&&(gx.O.Z53SetCod=gx.num.intval(n))},v2c:function(){gx.fn.setControlValue("SETCOD",gx.O.A53SetCod,0)},c2v:function(){this.val()!==undefined&&(gx.O.A53SetCod=gx.num.intval(this.val()))},val:function(){return gx.fn.getIntegerValue("SETCOD",".")},nac:gx.falseFn};n[21]={id:21,fld:"BTN_GET",grid:0,evt:"e182375_client",std:"GET"};n[24]={id:24,fld:"TEXTBLOCK2",format:0,grid:0};n[26]={id:26,lvl:0,type:"char",len:30,dec:0,sign:!1,pic:"@!",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"SETDES",gxz:"Z157SetDes",gxold:"O157SetDes",gxvar:"A157SetDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A157SetDes=n)},v2z:function(n){n!==undefined&&(gx.O.Z157SetDes=n)},v2c:function(){gx.fn.setControlValue("SETDES",gx.O.A157SetDes,0)},c2v:function(){this.val()!==undefined&&(gx.O.A157SetDes=this.val())},val:function(){return gx.fn.getControlValue("SETDES")},nac:gx.falseFn};n[29]={id:29,fld:"BTN_ENTER",grid:0,evt:"e112375_client",std:"ENTER"};n[30]={id:30,fld:"BTN_CHECK",grid:0,evt:"e192375_client",std:"CHECK"};n[31]={id:31,fld:"BTN_CANCEL",grid:0,evt:"e122375_client"};n[32]={id:32,fld:"BTN_DELETE",grid:0,evt:"e202375_client",std:"DELETE"};n[33]={id:33,fld:"BTN_HELP",grid:0,evt:"e212375_client"};this.A53SetCod=0;this.Z53SetCod=0;this.O53SetCod=0;this.A157SetDes="";this.Z157SetDes="";this.O157SetDes="";this.A53SetCod=0;this.A157SetDes="";this.Events={e112375_client:["ENTER",!0],e122375_client:["CANCEL",!0]};this.EvtParms.ENTER=[[{postForm:!0}],[]];this.EvtParms.REFRESH=[[],[]];this.EvtParms.VALID_SETCOD=[[{av:"A53SetCod",fld:"SETCOD",pic:"ZZZZZ9"},{av:"Gx_mode",fld:"vMODE",pic:"@!"}],[{av:"A157SetDes",fld:"SETDES",pic:"@!"},{av:"Gx_mode",fld:"vMODE",pic:"@!"},{av:"Z53SetCod"},{av:"Z157SetDes"},{ctrl:"BTN_GET",prop:"Enabled"},{ctrl:"BTN_DELETE",prop:"Enabled"},{ctrl:"BTN_ENTER",prop:"Enabled"},{ctrl:"BTN_CHECK",prop:"Enabled"}]];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.Initialize()});gx.setParentObj(new tcpt002)