gx.evt.autoSkip=false;function himh240(){this.ServerClass="HImh240";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.e120k2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e150k2_client=function(){this.executeServerEvent("'EDITARPOPUP'",true,arguments[0])};this.e110k2_client=function(){this.executeServerEvent("'NOVO'",false)};this.e160k2_client=function(){this.executeServerEvent("'EXCLUIRPOPUP'",true,arguments[0])
};this.e170k1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,6,17,20,23,25,29,30,31,32];this.GXLastCtrlId=32;this.GridContainer=new gx.grid.grid(this,2,"WbpLvl2",28,"Grid","Grid","GridContainer",this.CmpContext,this.IsMasterPage,"himh240",[],false,1,false,true,18,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.GridContainer.addBitmap("&Imgeditar","vIMGEDITAR",29,0,"px",17,"px","e150k2_client","","");this.GridContainer.addSingleLineEdit(415,30,"FERDAT","Data","","FerDat","date",0,"px",10,10,"right",null,[],415,"FerDat",true,0,false,false);
this.GridContainer.addSingleLineEdit(416,31,"FERDESMOTI","Motivo","","FerDesMoti","char",0,"px",25,25,"left",null,[],416,"FerDesMoti",true,0,false,false);this.GridContainer.addBitmap("&Imgexcluir","vIMGEXCLUIR",32,0,"px",17,"px","e160k2_client","","");this.setGrid(this.GridContainer);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[6]={fld:"TABLE2",grid:0};this.GXValidFnc[17]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[20]={fld:"TABLE3",grid:0};this.GXValidFnc[23]={fld:"TEXTBLOCK1",format:0,grid:0};
this.GXValidFnc[25]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.GridContainer],fld:"vSCRANOFILTRO",gxz:"ZV26ScrAnoFiltro",gxold:"OV26ScrAnoFiltro",gxvar:"AV26ScrAnoFiltro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV26ScrAnoFiltro=gx.num.intval(a)},v2z:function(a){gx.O.ZV26ScrAnoFiltro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSCRANOFILTRO",gx.O.AV26ScrAnoFiltro,0)},c2v:function(){gx.O.AV26ScrAnoFiltro=this.val()
},val:function(){return gx.fn.getIntegerValue("vSCRANOFILTRO",".")},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:28,gxgrid:this.GridContainer,fnc:null,isvalid:null,fld:"vIMGEDITAR",gxz:"ZV28ImgEditar",gxold:"OV28ImgEditar",gxvar:"AV28ImgEditar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV28ImgEditar=a},v2z:function(a){gx.O.ZV28ImgEditar=a},v2c:function(){},c2v:function(){gx.O.AV28ImgEditar=this.val()},val:function(){return gx.fn.getGridControlValue("vIMGEDITAR",gx.fn.currentGridRowImpl(28))
},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:28,gxgrid:this.GridContainer,fnc:null,isvalid:null,fld:"FERDAT",gxz:"Z415FerDat",gxold:"O415FerDat",gxvar:"A415FerDat",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.A415FerDat=gx.fn.toDatetimeValue(a)},v2z:function(a){gx.O.Z415FerDat=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("FERDAT",gx.fn.currentGridRowImpl(28),gx.O.A415FerDat,0)
},c2v:function(){gx.O.A415FerDat=this.val()},val:function(){return gx.fn.getGridControlValue("FERDAT",gx.fn.currentGridRowImpl(28))},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"char",len:25,dec:0,sign:false,ro:1,grid:28,gxgrid:this.GridContainer,fnc:null,isvalid:null,fld:"FERDESMOTI",gxz:"Z416FerDesMoti",gxold:"O416FerDesMoti",gxvar:"A416FerDesMoti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A416FerDesMoti=a},v2z:function(a){gx.O.Z416FerDesMoti=a},v2c:function(){gx.fn.setGridControlValue("FERDESMOTI",gx.fn.currentGridRowImpl(28),gx.O.A416FerDesMoti,0)
},c2v:function(){gx.O.A416FerDesMoti=this.val()},val:function(){return gx.fn.getGridControlValue("FERDESMOTI",gx.fn.currentGridRowImpl(28))},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:28,gxgrid:this.GridContainer,fnc:null,isvalid:null,fld:"vIMGEXCLUIR",gxz:"ZV30ImgExcluir",gxold:"OV30ImgExcluir",gxvar:"AV30ImgExcluir",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV30ImgExcluir=a},v2z:function(a){gx.O.ZV30ImgExcluir=a},v2c:function(){},c2v:function(){gx.O.AV30ImgExcluir=this.val()
},val:function(){return gx.fn.getGridControlValue("vIMGEXCLUIR",gx.fn.currentGridRowImpl(28))},nac:function(){return false}};this.AV26ScrAnoFiltro=0;this.ZV26ScrAnoFiltro=0;this.OV26ScrAnoFiltro=0;this.ZV28ImgEditar="";this.OV28ImgEditar="";this.Z415FerDat=gx.date.nullDate();this.O415FerDat=gx.date.nullDate();this.Z416FerDesMoti="";this.O416FerDesMoti="";this.ZV30ImgExcluir="";this.OV30ImgExcluir="";this.AV28ImgEditar="";this.A415FerDat=gx.date.nullDate();this.A416FerDesMoti="";this.AV30ImgExcluir="";
this.ServerEvents=["e120k2_client","e150k2_client","e110k2_client","e160k2_client","e170k1_client"];this.GridContainer.addRefreshingVar(this.GXValidFnc[25]);this.SetStandaloneVars()}himh240.prototype=new gx.GxObject;gx.setParentObj(new himh240());