gx.evt.autoSkip=false;function tpet016(){this.ServerClass="Tpet016";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.addKeyListener("2",'"LISTA"');this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Prdcod=function(){gx.ajax.validSrvEvt("dyncall","valid_Prdcod",["gx.O.A683PrdCod","gx.O.A684PrdDes","gx.O.A689PrdNroSequ","gx.O.A685PrdDes1Liv","gx.O.A686PrdDes2Liv","gx.O.A687PrdDes3Liv","gx.O.A688PrdDes4Liv"],["A684PrdDes","A689PrdNroSequ","A685PrdDes1Liv","A686PrdDes2Liv","A687PrdDes3Liv","A688PrdDes4Liv","Gx_mode","Z683PrdCod","Z684PrdDes","Z689PrdNroSequ","Z685PrdDes1Liv","Z686PrdDes2Liv","Z687PrdDes3Liv","Z688PrdDes4Liv",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.e115e148_client=function(){this.clearMessages();this.refreshOutputs([])};this.e125e148_client=function(){this.executeServerEvent("ENTER",true)};this.e135e148_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,24,26,29,31,34,36,39,41,44,46,49,51];this.GXLastCtrlId=51;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:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Prdcod,isvalid:null,fld:"PRDCOD",gxz:"Z683PrdCod",gxold:"O683PrdCod",gxvar:"A683PrdCod",ucs:[],op:[51,46,41,36,31,26],ip:[51,46,41,36,31,26,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A683PrdCod=a
},v2z:function(a){gx.O.Z683PrdCod=a},v2c:function(){gx.fn.setControlValue("PRDCOD",gx.O.A683PrdCod,0)},c2v:function(){gx.O.A683PrdCod=this.val()},val:function(){return gx.fn.getControlValue("PRDCOD")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PRDDES",gxz:"Z684PrdDes",gxold:"O684PrdDes",gxvar:"A684PrdDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A684PrdDes=a
},v2z:function(a){gx.O.Z684PrdDes=a},v2c:function(){gx.fn.setControlValue("PRDDES",gx.O.A684PrdDes,0)},c2v:function(){gx.O.A684PrdDes=this.val()},val:function(){return gx.fn.getControlValue("PRDDES")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"PRDNROSEQU",gxz:"Z689PrdNroSequ",gxold:"O689PrdNroSequ",gxvar:"A689PrdNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A689PrdNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z689PrdNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("PRDNROSEQU",gx.O.A689PrdNroSequ,0)},c2v:function(){gx.O.A689PrdNroSequ=this.val()},val:function(){return gx.fn.getIntegerValue("PRDNROSEQU",".")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"char",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PRDDES1LIV",gxz:"Z685PrdDes1Liv",gxold:"O685PrdDes1Liv",gxvar:"A685PrdDes1Liv",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A685PrdDes1Liv=a
},v2z:function(a){gx.O.Z685PrdDes1Liv=a},v2c:function(){gx.fn.setControlValue("PRDDES1LIV",gx.O.A685PrdDes1Liv,0)},c2v:function(){gx.O.A685PrdDes1Liv=this.val()},val:function(){return gx.fn.getControlValue("PRDDES1LIV")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"char",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PRDDES2LIV",gxz:"Z686PrdDes2Liv",gxold:"O686PrdDes2Liv",gxvar:"A686PrdDes2Liv",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A686PrdDes2Liv=a
},v2z:function(a){gx.O.Z686PrdDes2Liv=a},v2c:function(){gx.fn.setControlValue("PRDDES2LIV",gx.O.A686PrdDes2Liv,0)},c2v:function(){gx.O.A686PrdDes2Liv=this.val()},val:function(){return gx.fn.getControlValue("PRDDES2LIV")},nac:function(){return false}};this.GXValidFnc[44]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[46]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PRDDES3LIV",gxz:"Z687PrdDes3Liv",gxold:"O687PrdDes3Liv",gxvar:"A687PrdDes3Liv",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A687PrdDes3Liv=a
},v2z:function(a){gx.O.Z687PrdDes3Liv=a},v2c:function(){gx.fn.setControlValue("PRDDES3LIV",gx.O.A687PrdDes3Liv,0)},c2v:function(){gx.O.A687PrdDes3Liv=this.val()},val:function(){return gx.fn.getControlValue("PRDDES3LIV")},nac:function(){return false}};this.GXValidFnc[49]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[51]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PRDDES4LIV",gxz:"Z688PrdDes4Liv",gxold:"O688PrdDes4Liv",gxvar:"A688PrdDes4Liv",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A688PrdDes4Liv=a
},v2z:function(a){gx.O.Z688PrdDes4Liv=a},v2c:function(){gx.fn.setControlValue("PRDDES4LIV",gx.O.A688PrdDes4Liv,0)},c2v:function(){gx.O.A688PrdDes4Liv=this.val()},val:function(){return gx.fn.getControlValue("PRDDES4LIV")},nac:function(){return false}};this.A683PrdCod="";this.Z683PrdCod="";this.O683PrdCod="";this.A684PrdDes="";this.Z684PrdDes="";this.O684PrdDes="";this.A689PrdNroSequ=0;this.Z689PrdNroSequ=0;this.O689PrdNroSequ=0;this.A685PrdDes1Liv="";this.Z685PrdDes1Liv="";this.O685PrdDes1Liv="";this.A686PrdDes2Liv="";
this.Z686PrdDes2Liv="";this.O686PrdDes2Liv="";this.A687PrdDes3Liv="";this.Z687PrdDes3Liv="";this.O687PrdDes3Liv="";this.A688PrdDes4Liv="";this.Z688PrdDes4Liv="";this.O688PrdDes4Liv="";this.ServerEvents=["e125e148_client","e135e148_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tpet016.prototype=new gx.GxObject;gx.setParentObj(new tpet016());