gx.evt.autoSkip=false;function himh073(){this.ServerClass="HImh073";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A477HstTipEnti=gx.fn.getControlValue("HSTTIPENTI")};this.Valid_Hstcodenti=function(){try{var a=gx.util.balloon.getNew("HSTCODENTI");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e11142_client=function(){this.executeServerEvent("ENTER",true)};this.e12142_client=function(){this.executeServerEvent("'VOLTAR'",false)
};this.e15142_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,12,15,18,21,23,27,28,29,30,31,32];this.GXLastCtrlId=32;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",26,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh073",[],false,1,true,true,18,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit(473,27,"HSTDATOCOR","Data","","HstDatOcor","date",0,"px",10,10,"right",null,[],473,"HstDatOcor",true,0,false,false);
this.Grid1Container.addSingleLineEdit(474,28,"HSTHOROCOR","Hora","","HstHorOcor","char",0,"px",8,8,"left",null,[],474,"HstHorOcor",true,0,false,false);this.Grid1Container.addSingleLineEdit(472,29,"HSTCODUSUA","Operador","","HstCodUsua","char",0,"px",6,6,"left",null,[],472,"HstCodUsua",true,0,false,false);this.Grid1Container.addComboBox(478,30,"HSTTIPOCOR","Tipo","HstTipOcor","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(471,31,"HSTCODESTA","Estação","","HstCodEsta","char",0,"px",15,15,"left",null,[],471,"HstCodEsta",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Hdedesatualizacao",32,"vHDEDESATUALIZACAO","Descrição","","HdeDesAtualizacao","vchar",0,"px",500,500,"left",null,[],"Hdedesatualizacao","HdeDesAtualizacao",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[15]={fld:"TABLE2",grid:0};this.GXValidFnc[18]={fld:"TABLE3",grid:0};this.GXValidFnc[21]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[23]={lvl:0,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Hstcodenti,isvalid:null,rgrid:[this.Grid1Container],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.setControlValue("HSTCODENTI",gx.O.A470HstCodEnti,0)},c2v:function(){gx.O.A470HstCodEnti=this.val()},val:function(){return gx.fn.getIntegerValue("HSTCODENTI",".")},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:26,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(26),gx.O.A473HstDatOcor,0)},c2v:function(){gx.O.A473HstDatOcor=this.val()},val:function(){return gx.fn.getGridControlValue("HSTDATOCOR",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"char",len:8,dec:0,sign:false,ro:1,grid:26,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(26),gx.O.A474HstHorOcor,0)},c2v:function(){gx.O.A474HstHorOcor=this.val()},val:function(){return gx.fn.getGridControlValue("HSTHOROCOR",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"char",len:6,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,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.setGridControlValue("HSTCODUSUA",gx.fn.currentGridRowImpl(26),gx.O.A472HstCodUsua,0)},c2v:function(){gx.O.A472HstCodUsua=this.val()},val:function(){return gx.fn.getGridControlValue("HSTCODUSUA",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:26,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(26),gx.O.A478HstTipOcor)},c2v:function(){gx.O.A478HstTipOcor=this.val()},val:function(){return gx.fn.getGridControlValue("HSTTIPOCOR",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:1,grid:26,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(26),gx.O.A471HstCodEsta,0)},c2v:function(){gx.O.A471HstCodEsta=this.val()},val:function(){return gx.fn.getGridControlValue("HSTCODESTA",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"vchar",len:500,dec:0,sign:false,ro:1,grid:26,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(26),gx.O.AV7HdeDesAtualizacao,0)},c2v:function(){gx.O.AV7HdeDesAtualizacao=this.val()},val:function(){return gx.fn.getGridControlValue("vHDEDESATUALIZACAO",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.A470HstCodEnti=0;this.Z470HstCodEnti=0;this.O470HstCodEnti=0;this.Z473HstDatOcor=gx.date.nullDate();this.O473HstDatOcor=gx.date.nullDate();this.Z474HstHorOcor="";
this.O474HstHorOcor="";this.Z472HstCodUsua="";this.O472HstCodUsua="";this.Z478HstTipOcor="";this.O478HstTipOcor="";this.Z471HstCodEsta="";this.O471HstCodEsta="";this.ZV7HdeDesAtualizacao="";this.OV7HdeDesAtualizacao="";this.A477HstTipEnti="";this.A476HstNroSequ=0;this.A473HstDatOcor=gx.date.nullDate();this.A474HstHorOcor="";this.A472HstCodUsua="";this.A478HstTipOcor="";this.A471HstCodEsta="";this.AV7HdeDesAtualizacao="";this.A468HdeDesAtua="";this.ServerEvents=["e11142_client","e12142_client","e15142_client"];
this.EnterCtrl=["BUTTON1"];this.VarControlMap.A477HstTipEnti={id:"HSTTIPENTI",grid:0,type:"char"};this.VarControlMap.A477HstTipEnti={id:"HSTTIPENTI",grid:0,type:"char"};this.VarControlMap.A468HdeDesAtua={id:"HDEDESATUA",grid:0,type:"char"};this.Grid1Container.addRefreshingVar({rfrVar:"A477HstTipEnti"});this.Grid1Container.addRefreshingVar(this.GXValidFnc[23]);this.Grid1Container.addRefreshingVar({rfrVar:"A468HdeDesAtua"});this.SetStandaloneVars()}himh073.prototype=new gx.GxObject;gx.setParentObj(new himh073());