/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:27:53.42
*/
gx.evt.autoSkip=!1;gx.define("tpet024",!1,function(){this.ServerClass="tpet024";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=!0;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){};this.Valid_Npucod=function(){return this.validSrvEvt("valid_Npucod",0).then(function(n){return n}.closure(this))};this.e115g155_client=function(){return this.clearMessages(),this.refreshOutputs([]),gx.$.Deferred().resolve()};this.e125g155_client=function(){return this.executeServerEvent("ENTER",!0,null,!1,!1)};this.e135g155_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,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:"e145g155_client",std:"FIRST"};n[6]={id:6,fld:"BTN_PREVIOUS",grid:0,evt:"e155g155_client",std:"PREVIOUS"};n[7]={id:7,fld:"BTN_NEXT",grid:0,evt:"e165g155_client",std:"NEXT"};n[8]={id:8,fld:"BTN_LAST",grid:0,evt:"e175g155_client",std:"LAST"};n[9]={id:9,fld:"BTN_SELECT",grid:0,evt:"e185g155_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:3,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Npucod,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"NPUCOD",gxz:"Z268NpuCod",gxold:"O268NpuCod",gxvar:"A268NpuCod",ucs:[],op:[20,31,26],ip:[31,26,20],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A268NpuCod=n)},v2z:function(n){n!==undefined&&(gx.O.Z268NpuCod=n)},v2c:function(){gx.fn.setControlValue("NPUCOD",gx.O.A268NpuCod,0)},c2v:function(){this.val()!==undefined&&(gx.O.A268NpuCod=this.val())},val:function(){return gx.fn.getControlValue("NPUCOD")},nac:gx.falseFn};n[21]={id:21,fld:"BTN_GET",grid:0,evt:"e195g155_client",std:"GET"};n[24]={id:24,fld:"TEXTBLOCK2",format:0,grid:0};n[26]={id:26,lvl:0,type:"char",len:25,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"NPUDESNIVE",gxz:"Z711NpuDesNive",gxold:"O711NpuDesNive",gxvar:"A711NpuDesNive",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A711NpuDesNive=n)},v2z:function(n){n!==undefined&&(gx.O.Z711NpuDesNive=n)},v2c:function(){gx.fn.setControlValue("NPUDESNIVE",gx.O.A711NpuDesNive,0)},c2v:function(){this.val()!==undefined&&(gx.O.A711NpuDesNive=this.val())},val:function(){return gx.fn.getControlValue("NPUDESNIVE")},nac:gx.falseFn};n[29]={id:29,fld:"TEXTBLOCK3",format:0,grid:0};n[31]={id:31,lvl:0,type:"char",len:30,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"NPUCAMPO1L",gxz:"Z710NpuCampo1L",gxold:"O710NpuCampo1L",gxvar:"A710NpuCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A710NpuCampo1L=n)},v2z:function(n){n!==undefined&&(gx.O.Z710NpuCampo1L=n)},v2c:function(){gx.fn.setControlValue("NPUCAMPO1L",gx.O.A710NpuCampo1L,0)},c2v:function(){this.val()!==undefined&&(gx.O.A710NpuCampo1L=this.val())},val:function(){return gx.fn.getControlValue("NPUCAMPO1L")},nac:gx.falseFn};n[34]={id:34,fld:"BTN_ENTER",grid:0,evt:"e125g155_client",std:"ENTER"};n[35]={id:35,fld:"BTN_CHECK",grid:0,evt:"e205g155_client",std:"CHECK"};n[36]={id:36,fld:"BTN_CANCEL",grid:0,evt:"e135g155_client"};n[37]={id:37,fld:"BTN_DELETE",grid:0,evt:"e215g155_client",std:"DELETE"};n[38]={id:38,fld:"BTN_HELP",grid:0,evt:"e225g155_client"};this.A268NpuCod="";this.Z268NpuCod="";this.O268NpuCod="";this.A711NpuDesNive="";this.Z711NpuDesNive="";this.O711NpuDesNive="";this.A710NpuCampo1L="";this.Z710NpuCampo1L="";this.O710NpuCampo1L="";this.A268NpuCod="";this.A711NpuDesNive="";this.A710NpuCampo1L="";this.Events={e125g155_client:["ENTER",!0],e135g155_client:["CANCEL",!0],e115g155_client:["'LISTA'",!1]};this.EvtParms.ENTER=[[{postForm:!0}],[]];this.EvtParms.REFRESH=[[],[]];this.EvtParms["'LISTA'"]=[[],[]];this.EvtParms.VALID_NPUCOD=[[{av:"A268NpuCod",fld:"NPUCOD",pic:""},{av:"Gx_mode",fld:"vMODE",pic:"@!"}],[{av:"A711NpuDesNive",fld:"NPUDESNIVE",pic:""},{av:"A710NpuCampo1L",fld:"NPUCAMPO1L",pic:""},{av:"Gx_mode",fld:"vMODE",pic:"@!"},{av:"Z268NpuCod"},{av:"Z711NpuDesNive"},{av:"Z710NpuCampo1L"},{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 tpet024)