/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:24:1.82
*/
gx.evt.autoSkip=!1;gx.define("tgst013",!1,function(){this.ServerClass="tgst013";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=!0;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){};this.Valid_G02trncod=function(){return this.validCliEvt("Valid_G02trncod",0,function(){try{var n=gx.util.balloon.getNew("G02TRNCOD");this.AnyError=0}catch(t){}try{return n==null?!0:n.show()}catch(t){}return!0})};this.Valid_G02coddocu=function(){return this.validSrvEvt("valid_G02coddocu",0).then(function(n){return n}.closure(this))};this.e112e86_client=function(){return this.clearMessages(),this.refreshOutputs([]),gx.$.Deferred().resolve()};this.e122e86_client=function(){return this.executeServerEvent("ENTER",!0,null,!1,!1)};this.e132e86_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,23,25,26,29,31,34,35,36,37,38];this.GXLastCtrlId=38;n[2]={id:2,fld:"TABLE1",grid:0};n[5]={id:5,fld:"BTN_FIRST",grid:0,evt:"e142e86_client",std:"FIRST"};n[6]={id:6,fld:"BTN_PREVIOUS",grid:0,evt:"e152e86_client",std:"PREVIOUS"};n[7]={id:7,fld:"BTN_NEXT",grid:0,evt:"e162e86_client",std:"NEXT"};n[8]={id:8,fld:"BTN_LAST",grid:0,evt:"e172e86_client",std:"LAST"};n[9]={id:9,fld:"BTN_SELECT",grid:0,evt:"e182e86_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:"char",len:16,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:this.Valid_G02trncod,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"G02TRNCOD",gxz:"Z169G02TrnCod",gxold:"O169G02TrnCod",gxvar:"A169G02TrnCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A169G02TrnCod=n)},v2z:function(n){n!==undefined&&(gx.O.Z169G02TrnCod=n)},v2c:function(){gx.fn.setControlValue("G02TRNCOD",gx.O.A169G02TrnCod,0)},c2v:function(){this.val()!==undefined&&(gx.O.A169G02TrnCod=this.val())},val:function(){return gx.fn.getControlValue("G02TRNCOD")},nac:gx.falseFn};n[23]={id:23,fld:"TEXTBLOCK2",format:0,grid:0};n[25]={id:25,lvl:0,type:"int",len:7,dec:0,sign:!1,pic:"ZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_G02coddocu,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"G02CODDOCU",gxz:"Z170G02CodDocu",gxold:"O170G02CodDocu",gxvar:"A170G02CodDocu",ucs:[],op:[31],ip:[31,25,20],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A170G02CodDocu=gx.num.intval(n))},v2z:function(n){n!==undefined&&(gx.O.Z170G02CodDocu=gx.num.intval(n))},v2c:function(){gx.fn.setControlValue("G02CODDOCU",gx.O.A170G02CodDocu,0)},c2v:function(){this.val()!==undefined&&(gx.O.A170G02CodDocu=gx.num.intval(this.val()))},val:function(){return gx.fn.getIntegerValue("G02CODDOCU",".")},nac:gx.falseFn};n[26]={id:26,fld:"BTN_GET",grid:0,evt:"e192e86_client",std:"GET"};n[29]={id:29,fld:"TEXTBLOCK3",format:0,grid:0};n[31]={id:31,lvl:0,type:"char",len:20,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"G02VALCONT",gxz:"Z655G02ValCont",gxold:"O655G02ValCont",gxvar:"A655G02ValCont",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A655G02ValCont=n)},v2z:function(n){n!==undefined&&(gx.O.Z655G02ValCont=n)},v2c:function(){gx.fn.setControlValue("G02VALCONT",gx.O.A655G02ValCont,0)},c2v:function(){this.val()!==undefined&&(gx.O.A655G02ValCont=this.val())},val:function(){return gx.fn.getControlValue("G02VALCONT")},nac:gx.falseFn};n[34]={id:34,fld:"BTN_ENTER",grid:0,evt:"e122e86_client",std:"ENTER"};n[35]={id:35,fld:"BTN_CHECK",grid:0,evt:"e202e86_client",std:"CHECK"};n[36]={id:36,fld:"BTN_CANCEL",grid:0,evt:"e132e86_client"};n[37]={id:37,fld:"BTN_DELETE",grid:0,evt:"e212e86_client",std:"DELETE"};n[38]={id:38,fld:"BTN_HELP",grid:0,evt:"e222e86_client"};this.A169G02TrnCod="";this.Z169G02TrnCod="";this.O169G02TrnCod="";this.A170G02CodDocu=0;this.Z170G02CodDocu=0;this.O170G02CodDocu=0;this.A655G02ValCont="";this.Z655G02ValCont="";this.O655G02ValCont="";this.A169G02TrnCod="";this.A170G02CodDocu=0;this.A655G02ValCont="";this.Events={e122e86_client:["ENTER",!0],e132e86_client:["CANCEL",!0],e112e86_client:["'LISTA'",!1]};this.EvtParms.ENTER=[[{postForm:!0}],[]];this.EvtParms.REFRESH=[[],[]];this.EvtParms["'LISTA'"]=[[],[]];this.EvtParms.VALID_G02TRNCOD=[[],[]];this.EvtParms.VALID_G02CODDOCU=[[{av:"A169G02TrnCod",fld:"G02TRNCOD",pic:""},{av:"A170G02CodDocu",fld:"G02CODDOCU",pic:"ZZZZZZ9"},{av:"Gx_mode",fld:"vMODE",pic:"@!"}],[{av:"A655G02ValCont",fld:"G02VALCONT",pic:""},{av:"Gx_mode",fld:"vMODE",pic:"@!"},{av:"Z169G02TrnCod"},{av:"Z170G02CodDocu"},{av:"Z655G02ValCont"},{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 tgst013)