gx.evt.autoSkip=false;function gx02o0(){this.ServerClass="Gx02O0";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pHstNroSequencia=gx.fn.getIntegerValue("vPHSTNROSEQUENCIA",".")};this.e13bt2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14bt1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,34,37,39,42,44,47,48,52,53,54,55,56,57,58,59,60,63];
this.GXLastCtrlId=63;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",51,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx02o0",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",52,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(476,53,"HSTNROSEQU","Nro histórico","","HstNroSequ","int",0,"px",10,10,"right",null,[],476,"HstNroSequ",true,0,false,false);
this.Grid1Container.addComboBox(477,54,"HSTTIPENTI","Tipo de entidade","HstTipEnti","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(470,55,"HSTCODENTI","Entidade","","HstCodEnti","int",0,"px",7,7,"right",null,[],470,"HstCodEnti",true,0,false,false);this.Grid1Container.addSingleLineEdit(472,56,"HSTCODUSUA","Usuário","","HstCodUsua","char",0,"px",6,6,"left",null,[],472,"HstCodUsua",true,0,false,false);this.Grid1Container.addSingleLineEdit(473,57,"HSTDATOCOR","Data da ocorrência","","HstDatOcor","date",0,"px",10,10,"right",null,[],473,"HstDatOcor",true,0,false,false);
this.Grid1Container.addSingleLineEdit(474,58,"HSTHOROCOR","Hora da ocorrência","","HstHorOcor","char",0,"px",8,8,"left",null,[],474,"HstHorOcor",true,0,false,false);this.Grid1Container.addSingleLineEdit(471,59,"HSTCODESTA","Código da estação","","HstCodEsta","char",0,"px",15,15,"left",null,[],471,"HstCodEsta",true,0,false,false);this.Grid1Container.addSingleLineEdit(475,60,"HSTINDEXPO","Exportado? (S/N)","","HstIndExpo","char",0,"px",1,1,"left",null,[],475,"HstIndExpo",true,0,false,false);this.setGrid(this.Grid1Container);
this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[8]={fld:"GROUP1",grid:0};this.GXValidFnc[9]={fld:"TABLE2",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCKHSTNROSEQUENCIA",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"int",len:10,dec:0,sign:false,pic:"ZZZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCHSTNROSEQUENCIA",gxz:"ZV6cHstNroSequencia",gxold:"OV6cHstNroSequencia",gxvar:"AV6cHstNroSequencia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cHstNroSequencia=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cHstNroSequencia=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCHSTNROSEQUENCIA",gx.O.AV6cHstNroSequencia,0)},c2v:function(){gx.O.AV6cHstNroSequencia=this.val()},val:function(){return gx.fn.getIntegerValue("vCHSTNROSEQUENCIA",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKHSTTIPENTIDADE",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCHSTTIPENTIDADE",gxz:"ZV7cHstTipEntidade",gxold:"OV7cHstTipEntidade",gxvar:"AV7cHstTipEntidade",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV7cHstTipEntidade=a
},v2z:function(a){gx.O.ZV7cHstTipEntidade=a},v2c:function(){gx.fn.setComboBoxValue("vCHSTTIPENTIDADE",gx.O.AV7cHstTipEntidade)},c2v:function(){gx.O.AV7cHstTipEntidade=this.val()},val:function(){return gx.fn.getControlValue("vCHSTTIPENTIDADE")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKHSTCODENTIDADE",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:"vCHSTCODENTIDADE",gxz:"ZV8cHstCodEntidade",gxold:"OV8cHstCodEntidade",gxvar:"AV8cHstCodEntidade",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cHstCodEntidade=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8cHstCodEntidade=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCHSTCODENTIDADE",gx.O.AV8cHstCodEntidade,0)},c2v:function(){gx.O.AV8cHstCodEntidade=this.val()},val:function(){return gx.fn.getIntegerValue("vCHSTCODENTIDADE",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKHSTCODUSUARIO",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:6,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCHSTCODUSUARIO",gxz:"ZV9cHstCodUsuario",gxold:"OV9cHstCodUsuario",gxvar:"AV9cHstCodUsuario",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cHstCodUsuario=a
},v2z:function(a){gx.O.ZV9cHstCodUsuario=a},v2c:function(){gx.fn.setControlValue("vCHSTCODUSUARIO",gx.O.AV9cHstCodUsuario,0)},c2v:function(){gx.O.AV9cHstCodUsuario=this.val()},val:function(){return gx.fn.getControlValue("vCHSTCODUSUARIO")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKHSTDATOCORRENCIA",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCHSTDATOCORRENCIA",gxz:"ZV10cHstDatOcorrencia",gxold:"OV10cHstDatOcorrencia",gxvar:"AV10cHstDatOcorrencia",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.AV10cHstDatOcorrencia=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV10cHstDatOcorrencia=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCHSTDATOCORRENCIA",gx.O.AV10cHstDatOcorrencia,0)},c2v:function(){gx.O.AV10cHstDatOcorrencia=this.val()},val:function(){return gx.fn.getControlValue("vCHSTDATOCORRENCIA")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKHSTHOROCORRENCIA",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"char",len:8,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCHSTHOROCORRENCIA",gxz:"ZV11cHstHorOcorrencia",gxold:"OV11cHstHorOcorrencia",gxvar:"AV11cHstHorOcorrencia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cHstHorOcorrencia=a
},v2z:function(a){gx.O.ZV11cHstHorOcorrencia=a},v2c:function(){gx.fn.setControlValue("vCHSTHOROCORRENCIA",gx.O.AV11cHstHorOcorrencia,0)},c2v:function(){gx.O.AV11cHstHorOcorrencia=this.val()},val:function(){return gx.fn.getControlValue("vCHSTHOROCORRENCIA")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKHSTCODESTACAO",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCHSTCODESTACAO",gxz:"ZV12cHstCodEstacao",gxold:"OV12cHstCodEstacao",gxvar:"AV12cHstCodEstacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12cHstCodEstacao=a
},v2z:function(a){gx.O.ZV12cHstCodEstacao=a},v2c:function(){gx.fn.setControlValue("vCHSTCODESTACAO",gx.O.AV12cHstCodEstacao,0)},c2v:function(){gx.O.AV12cHstCodEstacao=this.val()},val:function(){return gx.fn.getControlValue("vCHSTCODESTACAO")},nac:function(){return false}};this.GXValidFnc[47]={fld:"GROUP2",grid:0};this.GXValidFnc[48]={fld:"TABLE3",grid:0};this.GXValidFnc[52]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vLINKSELECTION",gxz:"ZV5LinkSelection",gxold:"OV5LinkSelection",gxvar:"AV5LinkSelection",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5LinkSelection=a
},v2z:function(a){gx.O.ZV5LinkSelection=a},v2c:function(){},c2v:function(){gx.O.AV5LinkSelection=this.val()},val:function(){return gx.fn.getGridControlValue("vLINKSELECTION",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"int",len:10,dec:0,sign:false,pic:"ZZZZZZZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"HSTNROSEQU",gxz:"Z476HstNroSequ",gxold:"O476HstNroSequ",gxvar:"A476HstNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A476HstNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z476HstNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("HSTNROSEQU",gx.fn.currentGridRowImpl(51),gx.O.A476HstNroSequ,0)},c2v:function(){gx.O.A476HstNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("HSTNROSEQU",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:51,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(51),gx.O.A477HstTipEnti)},c2v:function(){gx.O.A477HstTipEnti=this.val()},val:function(){return gx.fn.getGridControlValue("HSTTIPENTI",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:51,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(51),gx.O.A470HstCodEnti,0)},c2v:function(){gx.O.A470HstCodEnti=this.val()},val:function(){return gx.fn.getGridIntegerValue("HSTCODENTI",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"char",len:6,dec:0,sign:false,ro:1,grid:51,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(51),gx.O.A472HstCodUsua,0)},c2v:function(){gx.O.A472HstCodUsua=this.val()},val:function(){return gx.fn.getGridControlValue("HSTCODUSUA",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:51,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(51),gx.O.A473HstDatOcor,0)},c2v:function(){gx.O.A473HstDatOcor=this.val()},val:function(){return gx.fn.getGridControlValue("HSTDATOCOR",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"char",len:8,dec:0,sign:false,ro:1,grid:51,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(51),gx.O.A474HstHorOcor,0)},c2v:function(){gx.O.A474HstHorOcor=this.val()},val:function(){return gx.fn.getGridControlValue("HSTHOROCOR",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[59]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:1,grid:51,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(51),gx.O.A471HstCodEsta,0)},c2v:function(){gx.O.A471HstCodEsta=this.val()},val:function(){return gx.fn.getGridControlValue("HSTCODESTA",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[60]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"HSTINDEXPO",gxz:"Z475HstIndExpo",gxold:"O475HstIndExpo",gxvar:"A475HstIndExpo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A475HstIndExpo=a
},v2z:function(a){gx.O.Z475HstIndExpo=a},v2c:function(){gx.fn.setGridControlValue("HSTINDEXPO",gx.fn.currentGridRowImpl(51),gx.O.A475HstIndExpo,0)},c2v:function(){gx.O.A475HstIndExpo=this.val()},val:function(){return gx.fn.getGridControlValue("HSTINDEXPO",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[63]={fld:"TABLE4",grid:0};this.AV6cHstNroSequencia=0;this.ZV6cHstNroSequencia=0;this.OV6cHstNroSequencia=0;this.AV7cHstTipEntidade="";this.ZV7cHstTipEntidade="";this.OV7cHstTipEntidade="";
this.AV8cHstCodEntidade=0;this.ZV8cHstCodEntidade=0;this.OV8cHstCodEntidade=0;this.AV9cHstCodUsuario="";this.ZV9cHstCodUsuario="";this.OV9cHstCodUsuario="";this.AV10cHstDatOcorrencia=gx.date.nullDate();this.ZV10cHstDatOcorrencia=gx.date.nullDate();this.OV10cHstDatOcorrencia=gx.date.nullDate();this.AV11cHstHorOcorrencia="";this.ZV11cHstHorOcorrencia="";this.OV11cHstHorOcorrencia="";this.AV12cHstCodEstacao="";this.ZV12cHstCodEstacao="";this.OV12cHstCodEstacao="";this.ZV5LinkSelection="";this.OV5LinkSelection="";
this.Z476HstNroSequ=0;this.O476HstNroSequ=0;this.Z477HstTipEnti="";this.O477HstTipEnti="";this.Z470HstCodEnti=0;this.O470HstCodEnti=0;this.Z472HstCodUsua="";this.O472HstCodUsua="";this.Z473HstDatOcor=gx.date.nullDate();this.O473HstDatOcor=gx.date.nullDate();this.Z474HstHorOcor="";this.O474HstHorOcor="";this.Z471HstCodEsta="";this.O471HstCodEsta="";this.Z475HstIndExpo="";this.O475HstIndExpo="";this.AV13pHstNroSequencia=0;this.AV5LinkSelection="";this.A476HstNroSequ=0;this.A477HstTipEnti="";this.A470HstCodEnti=0;
this.A472HstCodUsua="";this.A473HstDatOcor=gx.date.nullDate();this.A474HstHorOcor="";this.A471HstCodEsta="";this.A475HstIndExpo="";this.ServerEvents=["e13bt2_client","e14bt1_client"];this.VarControlMap.AV13pHstNroSequencia={id:"vPHSTNROSEQUENCIA",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[29]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[34]);
this.Grid1Container.addRefreshingVar(this.GXValidFnc[39]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[44]);this.SetStandaloneVars()}gx02o0.prototype=new gx.GxObject;gx.setParentObj(new gx02o0());