gx.evt.autoSkip=false;function tabt021(){this.ServerClass="Tabt021";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV9ValFatMult=gx.fn.getDecimalValue("vVALFATMULT",".",",");this.Gx_BScreen=gx.fn.getIntegerValue("vGXBSCREEN",".");this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Caecod=function(){gx.ajax.validSrvEvt("dyncall","Valid_Caecod",["gx.O.A79CaeCod","gx.num.urlDecimal(gx.O.AV9ValFatMult,'.',',')","gx.O.A84CaeNom","gx.O.A83CaeIndVesp","gx.O.A78CaeCampo1L","gx.O.A81CaeDesText","gx.O.A82CaeIndDevo",'gx.date.urlDate(gx.O.A80CaeDatdevo,"DMY")'],["A84CaeNom","A83CaeIndVesp","A78CaeCampo1L","A81CaeDesText","A82CaeIndDevo","A80CaeDatdevo","AV9ValFatMult","Gx_mode","Z79CaeCod","Z84CaeNom","Z83CaeIndVesp","Z78CaeCampo1L","Z81CaeDesText","Z82CaeIndDevo","Z80CaeDatdevo","ZV9ValFatMult",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Caenom=function(){try{var a=gx.util.balloon.getNew("CAENOM");this.AnyError=0;if((""==this.A84CaeNom)){try{a.setError("Descrição não pode ser nula");this.AnyError=1}catch(b){}}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Caeindvesp=function(){try{var a=gx.util.balloon.getNew("CAEINDVESP");this.AnyError=0;if(this.A83CaeIndVesp!="S"&&this.A83CaeIndVesp!="N"){try{a.setError("Indicador de véspera de feriado deve ser S ou N");this.AnyError=1
}catch(b){}}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Caecampo1l=function(){try{var a=gx.util.balloon.getNew("CAECAMPO1L");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e110o17_client=function(){this.executeServerEvent("ENTER",true)};this.e120o17_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:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Caecod,isvalid:null,rgrid:[],fld:"CAECOD",gxz:"Z79CaeCod",gxold:"O79CaeCod",gxvar:"A79CaeCod",ucs:[],op:[51,46,41,36,31,26],ip:[51,46,41,36,31,26,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A79CaeCod=gx.num.intval(a)},v2z:function(a){gx.O.Z79CaeCod=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("CAECOD",gx.O.A79CaeCod,0)},c2v:function(){gx.O.A79CaeCod=this.val()},val:function(){return gx.fn.getIntegerValue("CAECOD",".")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Caenom,isvalid:null,fld:"CAENOM",gxz:"Z84CaeNom",gxold:"O84CaeNom",gxvar:"A84CaeNom",ucs:[],op:[26],ip:[26],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A84CaeNom=a
},v2z:function(a){gx.O.Z84CaeNom=a},v2c:function(){gx.fn.setControlValue("CAENOM",gx.O.A84CaeNom,0)},c2v:function(){gx.O.A84CaeNom=this.val()},val:function(){return gx.fn.getControlValue("CAENOM")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Caeindvesp,isvalid:null,fld:"CAEINDVESP",gxz:"Z83CaeIndVesp",gxold:"O83CaeIndVesp",gxvar:"A83CaeIndVesp",ucs:[],op:[31],ip:[31],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A83CaeIndVesp=a
},v2z:function(a){gx.O.Z83CaeIndVesp=a},v2c:function(){gx.fn.setControlValue("CAEINDVESP",gx.O.A83CaeIndVesp,0)},c2v:function(){gx.O.A83CaeIndVesp=this.val()},val:function(){return gx.fn.getControlValue("CAEINDVESP")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Caecampo1l,isvalid:null,fld:"CAECAMPO1L",gxz:"Z78CaeCampo1L",gxold:"O78CaeCampo1L",gxvar:"A78CaeCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A78CaeCampo1L=a
},v2z:function(a){gx.O.Z78CaeCampo1L=a},v2c:function(){gx.fn.setControlValue("CAECAMPO1L",gx.O.A78CaeCampo1L,0)},c2v:function(){gx.O.A78CaeCampo1L=this.val()},val:function(){return gx.fn.getControlValue("CAECAMPO1L")},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:"CAEDESTEXT",gxz:"Z81CaeDesText",gxold:"O81CaeDesText",gxvar:"A81CaeDesText",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A81CaeDesText=a
},v2z:function(a){gx.O.Z81CaeDesText=a},v2c:function(){gx.fn.setControlValue("CAEDESTEXT",gx.O.A81CaeDesText,0)},c2v:function(){gx.O.A81CaeDesText=this.val()},val:function(){return gx.fn.getControlValue("CAEDESTEXT")},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:"CAEINDDEVO",gxz:"Z82CaeIndDevo",gxold:"O82CaeIndDevo",gxvar:"A82CaeIndDevo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A82CaeIndDevo=a
},v2z:function(a){gx.O.Z82CaeIndDevo=a},v2c:function(){gx.fn.setControlValue("CAEINDDEVO",gx.O.A82CaeIndDevo,0)},c2v:function(){gx.O.A82CaeIndDevo=this.val()},val:function(){return gx.fn.getControlValue("CAEINDDEVO")},nac:function(){return false}};this.GXValidFnc[49]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[51]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"CAEDATDEVO",gxz:"Z80CaeDatdevo",gxold:"O80CaeDatdevo",gxvar:"A80CaeDatdevo",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A80CaeDatdevo=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z80CaeDatdevo=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("CAEDATDEVO",gx.O.A80CaeDatdevo,0)},c2v:function(){gx.O.A80CaeDatdevo=this.val()},val:function(){return gx.fn.getControlValue("CAEDATDEVO")},nac:function(){return false}};this.A79CaeCod=0;this.Z79CaeCod=0;this.O79CaeCod=0;this.A84CaeNom="";this.Z84CaeNom="";this.O84CaeNom="";this.A83CaeIndVesp="";this.Z83CaeIndVesp="";this.O83CaeIndVesp="";this.A78CaeCampo1L="";this.Z78CaeCampo1L="";this.O78CaeCampo1L="";
this.A81CaeDesText="";this.Z81CaeDesText="";this.O81CaeDesText="";this.A82CaeIndDevo="";this.Z82CaeIndDevo="";this.O82CaeIndDevo="";this.A80CaeDatdevo=gx.date.nullDate();this.Z80CaeDatdevo=gx.date.nullDate();this.O80CaeDatdevo=gx.date.nullDate();this.AV9ValFatMult=0;this.Gx_BScreen=0;this.ServerEvents=["e110o17_client","e120o17_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.AV9ValFatMult={id:"vVALFATMULT",grid:0,type:"decimal"};this.VarControlMap.Gx_BScreen={id:"vGXBSCREEN",grid:0,type:"int"};
this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tabt021.prototype=new gx.GxObject;gx.setParentObj(new tabt021());