/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:28:17.81
*/
gx.evt.autoSkip=!1;gx.define("timt039",!1,function(){this.ServerClass="timt039";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=!0;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){};this.Valid_Curcod=function(){return this.validSrvEvt("valid_Curcod",0).then(function(n){return n}.closure(this))};this.Valid_Curnom=function(){return this.validCliEvt("Valid_Curnom",0,function(){try{var n=gx.util.balloon.getNew("CURNOM");this.AnyError=0}catch(t){}try{return n==null?!0:n.show()}catch(t){}return!0})};this.e115q57_client=function(){return this.clearMessages(),this.A108CurCod>0&&this.popupOpenUrl(gx.http.formatLink("timt010",[this.A108CurCod]),[]),this.refreshOutputs([]),gx.$.Deferred().resolve()};this.e135q2_client=function(){return this.executeServerEvent("DELETE",!0,null,!1,!1)};this.e145q57_client=function(){return this.executeServerEvent("ENTER",!0,null,!1,!1)};this.e155q57_client=function(){return this.executeServerEvent("CANCEL",!0,null,!1,!1)};this.GXValidFnc=[];var n=this.GXValidFnc;this.GXCtrlIds=[2,3,4,5,6,9,12,14,16,18,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45];this.GXLastCtrlId=45;n[2]={id:2,fld:"",grid:0};n[3]={id:3,fld:"MAINTABLE",grid:0};n[4]={id:4,fld:"",grid:0};n[5]={id:5,fld:"",grid:0};n[6]={id:6,fld:"CABECALHOAPLICACAO",grid:0};n[9]={id:9,fld:"CABECALHOAPLICACAO_TABLE1",grid:0};n[12]={id:12,fld:"CABECALHOAPLICACAO_VOLTAR",grid:0,evt:"e155q57_client"};n[14]={id:14,fld:"CABECALHOAPLICACAO_HELP",grid:0,evt:"e165q57_client"};n[16]={id:16,fld:"CABECALHOAPLICACAO_REFRESH",grid:0,evt:"e175q57_client",std:"GET"};n[18]={id:18,fld:"CABECALHOAPLICACAO_TEXTBLOCK1",format:0,grid:0};n[21]={id:21,fld:"",grid:0};n[22]={id:22,fld:"",grid:0};n[23]={id:23,fld:"",grid:0};n[24]={id:24,fld:"",grid:0};n[25]={id:25,fld:"BUTTON9",grid:0,evt:"e145q57_client",std:"ENTER"};n[26]={id:26,fld:"",grid:0};n[27]={id:27,fld:"BUTTON8",grid:0,evt:"e115q57_client"};n[28]={id:28,fld:"",grid:0};n[29]={id:29,fld:"BUTTON7",grid:0,evt:"e135q2_client",std:"DELETE"};n[30]={id:30,fld:"",grid:0};n[31]={id:31,fld:"",grid:0};n[32]={id:32,fld:"TABLE3",grid:0};n[33]={id:33,fld:"",grid:0};n[34]={id:34,fld:"",grid:0};n[35]={id:35,fld:"TABLE2",grid:0};n[36]={id:36,fld:"",grid:0};n[37]={id:37,fld:"",grid:0};n[38]={id:38,fld:"",grid:0};n[39]={id:39,fld:"",grid:0};n[40]={id:40,lvl:0,type:"int",len:5,dec:0,sign:!1,pic:"ZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Curcod,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"CURCOD",gxz:"Z108CurCod",gxold:"O108CurCod",gxvar:"A108CurCod",ucs:[],op:[45],ip:[45,40],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A108CurCod=gx.num.intval(n))},v2z:function(n){n!==undefined&&(gx.O.Z108CurCod=gx.num.intval(n))},v2c:function(){gx.fn.setControlValue("CURCOD",gx.O.A108CurCod,0)},c2v:function(){this.val()!==undefined&&(gx.O.A108CurCod=gx.num.intval(this.val()))},val:function(){return gx.fn.getIntegerValue("CURCOD",".")},nac:gx.falseFn};n[41]={id:41,fld:"",grid:0};n[42]={id:42,fld:"",grid:0};n[43]={id:43,fld:"",grid:0};n[44]={id:44,fld:"",grid:0};n[45]={id:45,lvl:0,type:"char",len:100,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Curnom,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"CURNOM",gxz:"Z125CurNom",gxold:"O125CurNom",gxvar:"A125CurNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A125CurNom=n)},v2z:function(n){n!==undefined&&(gx.O.Z125CurNom=n)},v2c:function(){gx.fn.setControlValue("CURNOM",gx.O.A125CurNom,0)},c2v:function(){this.val()!==undefined&&(gx.O.A125CurNom=this.val())},val:function(){return gx.fn.getControlValue("CURNOM")},nac:gx.falseFn};this.A108CurCod=0;this.Z108CurCod=0;this.O108CurCod=0;this.A125CurNom="";this.Z125CurNom="";this.O125CurNom="";this.AV9UsuCod="";this.A108CurCod=0;this.A125CurNom="";this.Events={e135q2_client:["DELETE",!0],e145q57_client:["ENTER",!0],e155q57_client:["CANCEL",!0],e115q57_client:["'DISCIPLINAS'",!1]};this.EvtParms.ENTER=[[{postForm:!0},{av:"A108CurCod",fld:"CURCOD",pic:"ZZZZ9"}],[]];this.EvtParms.REFRESH=[[],[]];this.EvtParms.START=[[],[{av:"AV9UsuCod",fld:"vUSUCOD",pic:"@!"}]];this.EvtParms["'DISCIPLINAS'"]=[[{av:"A108CurCod",fld:"CURCOD",pic:"ZZZZ9"}],[]];this.EvtParms.DELETE=[[],[]];this.EvtParms.VALID_CURCOD=[[{av:"A108CurCod",fld:"CURCOD",pic:"ZZZZ9"},{av:"Gx_mode",fld:"vMODE",pic:"@!"}],[{av:"A125CurNom",fld:"CURNOM",pic:""},{av:"Gx_mode",fld:"vMODE",pic:"@!"},{av:"Z108CurCod"},{av:"Z125CurNom"},{ctrl:"CABECALHOAPLICACAO_REFRESH",prop:"Enabled"},{ctrl:"BUTTON7",prop:"Enabled"},{ctrl:"BUTTON9",prop:"Enabled"}]];this.EvtParms.VALID_CURNOM=[[],[]];this.EnterCtrl=["BUTTON9"];this.Initialize()});gx.setParentObj(new timt039)