gx.evt.autoSkip=false;function himh169(){this.ServerClass="HImh169";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=false;this.addKeyListener("6","e11e52_client");this.SetStandaloneVars=function(){};this.e11e52_client=function(){this.executeServerEvent("'INSERIR'",false)};this.e13e52_client=function(){this.executeServerEvent("'EDITARPOPUP'",true,arguments[0])};this.e12e52_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e16e52_client=function(){this.executeServerEvent("'EXCLUIRPOPUP'",true,arguments[0])
};this.e17e52_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e18e52_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,12,15,18,20,22,26,27,28,29];this.GXLastCtrlId=29;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",25,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh169",[],false,1,false,true,18,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Imgeditar","vIMGEDITAR",26,0,"px",17,"px","e13e52_client","","");
this.Grid1Container.addSingleLineEdit("Grddatferiado",27,"vGRDDATFERIADO","Data","","GrdDatFeriado","date",0,"px",10,10,"right",null,[],"Grddatferiado","GrdDatFeriado",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grddscferiado",28,"vGRDDSCFERIADO","Descrição","","GrdDscFeriado","char",0,"px",50,50,"left",null,[],"Grddscferiado","GrdDscFeriado",true,0,false,false);this.Grid1Container.addBitmap("&Imgexcluir","vIMGEXCLUIR",29,0,"px",17,"px","e16e52_client","","");this.setGrid(this.Grid1Container);
this.GXValidFnc[3]={fld:"TABLE2",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[15]={fld:"TABLE1",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:1,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vUNDCOD",gxz:"ZV28UndCod",gxold:"OV28UndCod",gxvar:"AV28UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV28UndCod=gx.num.intval(a)},v2z:function(a){gx.O.ZV28UndCod=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("vUNDCOD",gx.O.AV28UndCod,0)},c2v:function(){gx.O.AV28UndCod=this.val()},val:function(){return gx.fn.getIntegerValue("vUNDCOD",".")},nac:function(){return false}};this.GXValidFnc[22]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vUNDNOMCOMPLETO",gxz:"ZV40UndNomCompleto",gxold:"OV40UndNomCompleto",gxvar:"AV40UndNomCompleto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV40UndNomCompleto=a},v2z:function(a){gx.O.ZV40UndNomCompleto=a
},v2c:function(){gx.fn.setControlValue("vUNDNOMCOMPLETO",gx.O.AV40UndNomCompleto,0)},c2v:function(){gx.O.AV40UndNomCompleto=this.val()},val:function(){return gx.fn.getControlValue("vUNDNOMCOMPLETO")},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"bits",len:5,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vIMGEDITAR",gxz:"ZV16ImgEditar",gxold:"OV16ImgEditar",gxvar:"AV16ImgEditar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV16ImgEditar=a
},v2z:function(a){gx.O.ZV16ImgEditar=a},v2c:function(){},c2v:function(){gx.O.AV16ImgEditar=this.val()},val:function(){return gx.fn.getGridControlValue("vIMGEDITAR",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDATFERIADO",gxz:"ZV32GrdDatFeriado",gxold:"OV32GrdDatFeriado",gxvar:"AV32GrdDatFeriado",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.AV32GrdDatFeriado=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV32GrdDatFeriado=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("vGRDDATFERIADO",gx.fn.currentGridRowImpl(25),gx.O.AV32GrdDatFeriado,0)},c2v:function(){gx.O.AV32GrdDatFeriado=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDATFERIADO",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDSCFERIADO",gxz:"ZV34GrdDscFeriado",gxold:"OV34GrdDscFeriado",gxvar:"AV34GrdDscFeriado",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV34GrdDscFeriado=a
},v2z:function(a){gx.O.ZV34GrdDscFeriado=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCFERIADO",gx.fn.currentGridRowImpl(25),gx.O.AV34GrdDscFeriado,0)},c2v:function(){gx.O.AV34GrdDscFeriado=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCFERIADO",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"bits",len:5,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vIMGEXCLUIR",gxz:"ZV17ImgExcluir",gxold:"OV17ImgExcluir",gxvar:"AV17ImgExcluir",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17ImgExcluir=a
},v2z:function(a){gx.O.ZV17ImgExcluir=a},v2c:function(){},c2v:function(){gx.O.AV17ImgExcluir=this.val()},val:function(){return gx.fn.getGridControlValue("vIMGEXCLUIR",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.AV28UndCod=0;this.ZV28UndCod=0;this.OV28UndCod=0;this.AV40UndNomCompleto="";this.ZV40UndNomCompleto="";this.OV40UndNomCompleto="";this.ZV16ImgEditar="";this.OV16ImgEditar="";this.ZV32GrdDatFeriado=gx.date.nullDate();this.OV32GrdDatFeriado=gx.date.nullDate();this.ZV34GrdDscFeriado="";
this.OV34GrdDscFeriado="";this.ZV17ImgExcluir="";this.OV17ImgExcluir="";this.AV16ImgEditar="";this.AV32GrdDatFeriado=gx.date.nullDate();this.AV34GrdDscFeriado="";this.AV17ImgExcluir="";this.A858TgeCodChav="";this.A859TgeCodTabe="";this.A860TgeValCont="";this.ServerEvents=["e11e52_client","e13e52_client","e12e52_client","e16e52_client","e17e52_client","e18e52_client"];this.VarControlMap.A858TgeCodChav={id:"TGECODCHAV",grid:0,type:"char"};this.VarControlMap.A860TgeValCont={id:"TGEVALCONT",grid:0,type:"char"};
this.Grid1Container.addRefreshingVar({rfrVar:"A858TgeCodChav"});this.Grid1Container.addRefreshingVar({rfrVar:"A860TgeValCont"});this.Grid1Container.addRefreshingVar(this.GXValidFnc[20]);this.SetStandaloneVars()}himh169.prototype=new gx.GxObject;gx.setParentObj(new himh169());