gx.evt.autoSkip=false;function timt037(){this.ServerClass="TImt037";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A99CdpCampo1L=gx.fn.getControlValue("CDPCAMPO1L");this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Cdpcod=function(){gx.ajax.validSrvEvt("dyncall","valid_Cdpcod",["gx.O.A100CdpCod","gx.O.A101CdpDes","gx.O.A99CdpCampo1L"],["A101CdpDes","A99CdpCampo1L","Gx_mode","Z100CdpCod","Z101CdpDes","Z99CdpCampo1L",["BUTTON6","Enabled"],["BUTTON1","Enabled"]]);
return true};this.Valid_Cdpdes=function(){try{var a=gx.util.balloon.getNew("CDPDES");this.AnyError=0;if((""==this.A101CdpDes)){try{a.setError("Informe a descrição da condição de pagamento");this.AnyError=1}catch(b){}}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e12402_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e134075_client=function(){this.executeServerEvent("ENTER",true)};this.e144075_client=function(){this.executeServerEvent("CANCEL",true)
};this.GXValidFnc=[];this.GXCtrlIds=[3,19,23,26,28,32,34];this.GXLastCtrlId=34;this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[19]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[23]={fld:"TABLE2",grid:0};this.GXValidFnc[26]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[28]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Cdpcod,isvalid:null,rgrid:[],fld:"CDPCOD",gxz:"Z100CdpCod",gxold:"O100CdpCod",gxvar:"A100CdpCod",ucs:[],op:[28,34],ip:[34,28],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A100CdpCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z100CdpCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("CDPCOD",gx.O.A100CdpCod,0)},c2v:function(){gx.O.A100CdpCod=this.val()},val:function(){return gx.fn.getIntegerValue("CDPCOD",".")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Cdpdes,isvalid:null,fld:"CDPDES",gxz:"Z101CdpDes",gxold:"O101CdpDes",gxvar:"A101CdpDes",ucs:[],op:[34],ip:[34],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A101CdpDes=a
},v2z:function(a){gx.O.Z101CdpDes=a},v2c:function(){gx.fn.setControlValue("CDPDES",gx.O.A101CdpDes,0)},c2v:function(){gx.O.A101CdpDes=this.val()},val:function(){return gx.fn.getControlValue("CDPDES")},nac:function(){return false}};this.A100CdpCod=0;this.Z100CdpCod=0;this.O100CdpCod=0;this.A101CdpDes="";this.Z101CdpDes="";this.O101CdpDes="";this.AV7UsuCodCorr="";this.AV8IndLiber="";this.Gx_msg="";this.A99CdpCampo1L="";this.ServerEvents=["e12402_client","e134075_client","e144075_client"];this.EnterCtrl=["BUTTON1"];
this.VarControlMap.A99CdpCampo1L={id:"CDPCAMPO1L",grid:0,type:"char"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}timt037.prototype=new gx.GxObject;gx.setParentObj(new timt037());