gx.evt.autoSkip=false;function himh081(){this.ServerClass="HImh081";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.Valid_Hstcodusua=function(){try{var a=gx.util.balloon.getNew("HSTCODUSUA");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e151a2_client=function(){this.executeServerEvent("'HOME'",true,arguments[0])};this.e111a2_client=function(){this.executeServerEvent("'VOLTAR'",false)
};this.e121a2_client=function(){this.executeServerEvent("ENTER",true)};this.e171a2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,12,15,18,20,22,24,27,29,32,34,36,38,40,43,44,45,46,47,48,49];this.GXLastCtrlId=49;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",42,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh081",[],false,1,true,true,20,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit(473,43,"HSTDATOCOR","Data","","HstDatOcor","date",0,"px",10,10,"right",null,[],473,"HstDatOcor",true,0,false,false);this.Grid1Container.addSingleLineEdit(474,44,"HSTHOROCOR","Hora","","HstHorOcor","char",0,"px",8,8,"left",null,[],474,"HstHorOcor",true,0,false,false);this.Grid1Container.addComboBox(477,45,"HSTTIPENTI","Tipo entidade","HstTipEnti","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(470,46,"HSTCODENTI","Entidade","","HstCodEnti","int",0,"px",7,7,"right",null,[],470,"HstCodEnti",true,0,false,false);
this.Grid1Container.addComboBox(478,47,"HSTTIPOCOR","Ocorrência","HstTipOcor","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(471,48,"HSTCODESTA","Estação","","HstCodEsta","char",0,"px",15,15,"left",null,[],471,"HstCodEsta",true,0,false,false);this.Grid1Container.addSingleLineEdit("Hdedesatualizacao",49,"vHDEDESATUALIZACAO","Descrição","","HdeDesAtualizacao","char",0,"px",250,250,"left",null,[],"Hdedesatualizacao","HdeDesAtualizacao",true,0,false,false);this.setGrid(this.Grid1Container);
this.GXValidFnc[3]={fld:"TABLE2",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[15]={fld:"TABLE3",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[20]={lvl:0,type:"char",len:6,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:this.Valid_Hstcodusua,isvalid:null,fld:"HSTCODUSUA",gxz:"Z472HstCodUsua",gxold:"O472HstCodUsua",gxvar:"A472HstCodUsua",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A472HstCodUsua=a},v2z:function(a){gx.O.Z472HstCodUsua=a
},v2c:function(){gx.fn.setControlValue("HSTCODUSUA",gx.O.A472HstCodUsua,0)},c2v:function(){gx.O.A472HstCodUsua=this.val()},val:function(){return gx.fn.getControlValue("HSTCODUSUA")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vHSTCODENTIDADE",gxz:"ZV13HstCodEntidade",gxold:"OV13HstCodEntidade",gxvar:"AV13HstCodEntidade",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV13HstCodEntidade=gx.num.intval(a)
},v2z:function(a){gx.O.ZV13HstCodEntidade=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vHSTCODENTIDADE",gx.O.AV13HstCodEntidade,0)},c2v:function(){gx.O.AV13HstCodEntidade=this.val()},val:function(){return gx.fn.getIntegerValue("vHSTCODENTIDADE",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[29]={fld:"TABLE1",grid:0};this.GXValidFnc[32]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDATLOGINI",gxz:"ZV8DatLogIni",gxold:"OV8DatLogIni",gxvar:"AV8DatLogIni",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.AV8DatLogIni=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV8DatLogIni=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vDATLOGINI",gx.O.AV8DatLogIni,0)},c2v:function(){gx.O.AV8DatLogIni=this.val()},val:function(){return gx.fn.getControlValue("vDATLOGINI")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDATLOGFIM",gxz:"ZV9DatLogFim",gxold:"OV9DatLogFim",gxvar:"AV9DatLogFim",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.AV9DatLogFim=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV9DatLogFim=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vDATLOGFIM",gx.O.AV9DatLogFim,0)},c2v:function(){gx.O.AV9DatLogFim=this.val()},val:function(){return gx.fn.getControlValue("vDATLOGFIM")},nac:function(){return false}};this.GXValidFnc[38]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[40]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vHSTTIPOCORRENCIASELE",gxz:"ZV10HstTipOcorrenciaSele",gxold:"OV10HstTipOcorrenciaSele",gxvar:"AV10HstTipOcorrenciaSele",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV10HstTipOcorrenciaSele=a
},v2z:function(a){gx.O.ZV10HstTipOcorrenciaSele=a},v2c:function(){gx.fn.setComboBoxValue("vHSTTIPOCORRENCIASELE",gx.O.AV10HstTipOcorrenciaSele)},c2v:function(){gx.O.AV10HstTipOcorrenciaSele=this.val()},val:function(){return gx.fn.getControlValue("vHSTTIPOCORRENCIASELE")},nac:function(){return false}};this.GXValidFnc[43]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:42,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"HSTDATOCOR",gxz:"Z473HstDatOcor",gxold:"O473HstDatOcor",gxvar:"A473HstDatOcor",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.A473HstDatOcor=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z473HstDatOcor=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("HSTDATOCOR",gx.fn.currentGridRowImpl(42),gx.O.A473HstDatOcor,0)},c2v:function(){gx.O.A473HstDatOcor=this.val()},val:function(){return gx.fn.getGridControlValue("HSTDATOCOR",gx.fn.currentGridRowImpl(42))},nac:function(){return false}};this.GXValidFnc[44]={lvl:2,type:"char",len:8,dec:0,sign:false,ro:1,grid:42,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"HSTHOROCOR",gxz:"Z474HstHorOcor",gxold:"O474HstHorOcor",gxvar:"A474HstHorOcor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A474HstHorOcor=a
},v2z:function(a){gx.O.Z474HstHorOcor=a},v2c:function(){gx.fn.setGridControlValue("HSTHOROCOR",gx.fn.currentGridRowImpl(42),gx.O.A474HstHorOcor,0)},c2v:function(){gx.O.A474HstHorOcor=this.val()},val:function(){return gx.fn.getGridControlValue("HSTHOROCOR",gx.fn.currentGridRowImpl(42))},nac:function(){return false}};this.GXValidFnc[45]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:42,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"HSTTIPENTI",gxz:"Z477HstTipEnti",gxold:"O477HstTipEnti",gxvar:"A477HstTipEnti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A477HstTipEnti=a
},v2z:function(a){gx.O.Z477HstTipEnti=a},v2c:function(){gx.fn.setGridComboBoxValue("HSTTIPENTI",gx.fn.currentGridRowImpl(42),gx.O.A477HstTipEnti)},c2v:function(){gx.O.A477HstTipEnti=this.val()},val:function(){return gx.fn.getGridControlValue("HSTTIPENTI",gx.fn.currentGridRowImpl(42))},nac:function(){return false}};this.GXValidFnc[46]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:42,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"HSTCODENTI",gxz:"Z470HstCodEnti",gxold:"O470HstCodEnti",gxvar:"A470HstCodEnti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A470HstCodEnti=gx.num.intval(a)
},v2z:function(a){gx.O.Z470HstCodEnti=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("HSTCODENTI",gx.fn.currentGridRowImpl(42),gx.O.A470HstCodEnti,0)},c2v:function(){gx.O.A470HstCodEnti=this.val()},val:function(){return gx.fn.getGridIntegerValue("HSTCODENTI",gx.fn.currentGridRowImpl(42),".")},nac:function(){return false}};this.GXValidFnc[47]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:42,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"HSTTIPOCOR",gxz:"Z478HstTipOcor",gxold:"O478HstTipOcor",gxvar:"A478HstTipOcor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A478HstTipOcor=a
},v2z:function(a){gx.O.Z478HstTipOcor=a},v2c:function(){gx.fn.setGridComboBoxValue("HSTTIPOCOR",gx.fn.currentGridRowImpl(42),gx.O.A478HstTipOcor)},c2v:function(){gx.O.A478HstTipOcor=this.val()},val:function(){return gx.fn.getGridControlValue("HSTTIPOCOR",gx.fn.currentGridRowImpl(42))},nac:function(){return false}};this.GXValidFnc[48]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:1,grid:42,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"HSTCODESTA",gxz:"Z471HstCodEsta",gxold:"O471HstCodEsta",gxvar:"A471HstCodEsta",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A471HstCodEsta=a
},v2z:function(a){gx.O.Z471HstCodEsta=a},v2c:function(){gx.fn.setGridControlValue("HSTCODESTA",gx.fn.currentGridRowImpl(42),gx.O.A471HstCodEsta,0)},c2v:function(){gx.O.A471HstCodEsta=this.val()},val:function(){return gx.fn.getGridControlValue("HSTCODESTA",gx.fn.currentGridRowImpl(42))},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:1,grid:42,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vHDEDESATUALIZACAO",gxz:"ZV7HdeDesAtualizacao",gxold:"OV7HdeDesAtualizacao",gxvar:"AV7HdeDesAtualizacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7HdeDesAtualizacao=a
},v2z:function(a){gx.O.ZV7HdeDesAtualizacao=a},v2c:function(){gx.fn.setGridControlValue("vHDEDESATUALIZACAO",gx.fn.currentGridRowImpl(42),gx.O.AV7HdeDesAtualizacao,0)},c2v:function(){gx.O.AV7HdeDesAtualizacao=this.val()},val:function(){return gx.fn.getGridControlValue("vHDEDESATUALIZACAO",gx.fn.currentGridRowImpl(42))},nac:function(){return false}};this.A472HstCodUsua="";this.Z472HstCodUsua="";this.O472HstCodUsua="";this.AV13HstCodEntidade=0;this.ZV13HstCodEntidade=0;this.OV13HstCodEntidade=0;this.AV8DatLogIni=gx.date.nullDate();
this.ZV8DatLogIni=gx.date.nullDate();this.OV8DatLogIni=gx.date.nullDate();this.AV9DatLogFim=gx.date.nullDate();this.ZV9DatLogFim=gx.date.nullDate();this.OV9DatLogFim=gx.date.nullDate();this.AV10HstTipOcorrenciaSele="";this.ZV10HstTipOcorrenciaSele="";this.OV10HstTipOcorrenciaSele="";this.Z473HstDatOcor=gx.date.nullDate();this.O473HstDatOcor=gx.date.nullDate();this.Z474HstHorOcor="";this.O474HstHorOcor="";this.Z477HstTipEnti="";this.O477HstTipEnti="";this.Z470HstCodEnti=0;this.O470HstCodEnti=0;this.Z478HstTipOcor="";
this.O478HstTipOcor="";this.Z471HstCodEsta="";this.O471HstCodEsta="";this.ZV7HdeDesAtualizacao="";this.OV7HdeDesAtualizacao="";this.A476HstNroSequ=0;this.A473HstDatOcor=gx.date.nullDate();this.A474HstHorOcor="";this.A477HstTipEnti="";this.A470HstCodEnti=0;this.A478HstTipOcor="";this.A471HstCodEsta="";this.AV7HdeDesAtualizacao="";this.A468HdeDesAtua="";this.ServerEvents=["e151a2_client","e111a2_client","e121a2_client","e171a2_client"];this.EnterCtrl=["BUTTON1"];this.VarControlMap.A468HdeDesAtua={id:"HDEDESATUA",grid:0,type:"char"};
this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[32]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[36]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[40]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[20]);this.Grid1Container.addRefreshingVar({rfrVar:"A468HdeDesAtua"});this.SetStandaloneVars()}himh081.prototype=new gx.GxObject;gx.setParentObj(new himh081());