/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:23:44.84
*/
gx.evt.autoSkip=!1;gx.define("taqt003",!1,function(){this.ServerClass="taqt003";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=!0;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){};this.Valid_Cdpcod=function(){return this.validSrvEvt("valid_Cdpcod",0).then(function(n){return n}.closure(this))};this.Valid_Cdpdes=function(){return this.validCliEvt("Valid_Cdpdes",0,function(){try{var n=gx.util.balloon.getNew("CDPDES");if(this.AnyError=0,""==this.A406CdpDes)try{n.setError("Informe a descrição da condição de pagamento");this.AnyError=gx.num.trunc(1,0)}catch(t){}}catch(t){}try{return n==null?!0:n.show()}catch(t){}return!0})};this.e111y71_client=function(){return this.executeServerEvent("ENTER",!0,null,!1,!1)};this.e121y71_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:"e131y71_client",std:"FIRST"};n[6]={id:6,fld:"BTN_PREVIOUS",grid:0,evt:"e141y71_client",std:"PREVIOUS"};n[7]={id:7,fld:"BTN_NEXT",grid:0,evt:"e151y71_client",std:"NEXT"};n[8]={id:8,fld:"BTN_LAST",grid:0,evt:"e161y71_client",std:"LAST"};n[9]={id:9,fld:"BTN_SELECT",grid:0,evt:"e171y71_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:3,dec:0,sign:!1,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Cdpcod,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"CDPCOD",gxz:"Z149CdpCod",gxold:"O149CdpCod",gxvar:"A149CdpCod",ucs:[],op:[20,31,26],ip:[31,26,20],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A149CdpCod=gx.num.intval(n))},v2z:function(n){n!==undefined&&(gx.O.Z149CdpCod=gx.num.intval(n))},v2c:function(){gx.fn.setControlValue("CDPCOD",gx.O.A149CdpCod,0)},c2v:function(){this.val()!==undefined&&(gx.O.A149CdpCod=gx.num.intval(this.val()))},val:function(){return gx.fn.getIntegerValue("CDPCOD",".")},nac:gx.falseFn};n[21]={id:21,fld:"BTN_GET",grid:0,evt:"e181y71_client",std:"GET"};n[24]={id:24,fld:"TEXTBLOCK2",format:0,grid:0};n[26]={id:26,lvl:0,type:"char",len:40,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Cdpdes,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"CDPDES",gxz:"Z406CdpDes",gxold:"O406CdpDes",gxvar:"A406CdpDes",ucs:[],op:[26],ip:[26],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A406CdpDes=n)},v2z:function(n){n!==undefined&&(gx.O.Z406CdpDes=n)},v2c:function(){gx.fn.setControlValue("CDPDES",gx.O.A406CdpDes,0)},c2v:function(){this.val()!==undefined&&(gx.O.A406CdpDes=this.val())},val:function(){return gx.fn.getControlValue("CDPDES")},nac:gx.falseFn};n[29]={id:29,fld:"TEXTBLOCK3",format:0,grid:0};n[31]={id:31,lvl:0,type:"char",len:60,dec:0,sign:!1,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"CDPCAMPO1L",gxz:"Z405CdpCampo1L",gxold:"O405CdpCampo1L",gxvar:"A405CdpCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.A405CdpCampo1L=n)},v2z:function(n){n!==undefined&&(gx.O.Z405CdpCampo1L=n)},v2c:function(){gx.fn.setControlValue("CDPCAMPO1L",gx.O.A405CdpCampo1L,0)},c2v:function(){this.val()!==undefined&&(gx.O.A405CdpCampo1L=this.val())},val:function(){return gx.fn.getControlValue("CDPCAMPO1L")},nac:gx.falseFn};n[34]={id:34,fld:"BTN_ENTER",grid:0,evt:"e111y71_client",std:"ENTER"};n[35]={id:35,fld:"BTN_CHECK",grid:0,evt:"e191y71_client",std:"CHECK"};n[36]={id:36,fld:"BTN_CANCEL",grid:0,evt:"e121y71_client"};n[37]={id:37,fld:"BTN_DELETE",grid:0,evt:"e201y71_client",std:"DELETE"};n[38]={id:38,fld:"BTN_HELP",grid:0,evt:"e211y71_client"};this.A149CdpCod=0;this.Z149CdpCod=0;this.O149CdpCod=0;this.A406CdpDes="";this.Z406CdpDes="";this.O406CdpDes="";this.A405CdpCampo1L="";this.Z405CdpCampo1L="";this.O405CdpCampo1L="";this.A149CdpCod=0;this.A406CdpDes="";this.A405CdpCampo1L="";this.Events={e111y71_client:["ENTER",!0],e121y71_client:["CANCEL",!0]};this.EvtParms.ENTER=[[{postForm:!0}],[]];this.EvtParms.REFRESH=[[],[]];this.EvtParms.VALID_CDPCOD=[[{av:"A149CdpCod",fld:"CDPCOD",pic:"ZZ9"},{av:"Gx_mode",fld:"vMODE",pic:"@!"}],[{av:"A406CdpDes",fld:"CDPDES",pic:""},{av:"A405CdpCampo1L",fld:"CDPCAMPO1L",pic:""},{av:"Gx_mode",fld:"vMODE",pic:"@!"},{av:"Z149CdpCod"},{av:"Z406CdpDes"},{av:"Z405CdpCampo1L"},{ctrl:"BTN_GET",prop:"Enabled"},{ctrl:"BTN_DELETE",prop:"Enabled"},{ctrl:"BTN_ENTER",prop:"Enabled"},{ctrl:"BTN_CHECK",prop:"Enabled"}]];this.EvtParms.VALID_CDPDES=[[{av:"A406CdpDes",fld:"CDPDES",pic:""}],[{av:"A406CdpDes",fld:"CDPDES",pic:""}]];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.Initialize()});gx.setParentObj(new taqt003)