gx.evt.autoSkip=false;function hteste2(){this.ServerClass="HTeste2";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_msg=gx.fn.getControlValue("vMSG")};this.e188h1_client=function(){this.clearMessages();this.addMessage("Entrei no evento Imprimir");this.Gx_msg="Dados: Nro="+gx.num.str(this.AV15GrdNumeroUm,4,0)+". Descricao="+this.AV16GrdDescricaoUm;this.addMessage(this.Gx_msg);this.refreshOutputs([{av:"Gx_msg",fld:"vMSG"}])
};this.e178h1_client=function(){this.clearMessages();this.addMessage("teste");this.refreshOutputs([])};this.e198h2_client=function(){this.clearMessages();this.refreshOutputs([])};this.e118h2_client=function(){this.executeServerEvent("ENTER",true)};this.e128h2_client=function(){this.executeServerEvent("'LOTE'",false)};this.e138h2_client=function(){this.executeServerEvent("'INSERE CHAR'",false)};this.e208h2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,6,13,16,19,21,24,27,29,31,33,39,40];
this.GXLastCtrlId=40;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",38,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hteste2",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("Grddescricaoum",39,"vGRDDESCRICAOUM","","","GrdDescricaoUm","char",0,"px",30,30,"left",null,[],"Grddescricaoum","GrdDescricaoUm",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdnumeroum",40,"vGRDNUMEROUM","","","GrdNumeroUm","int",0,"px",4,4,"right",null,[],"Grdnumeroum","GrdNumeroUm",true,0,false,false);
this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[6]={fld:"TABLE1",grid:0};this.GXValidFnc[13]={fld:"TESTE",format:0,grid:0};this.GXValidFnc[16]={fld:"TABLE2",grid:0};this.GXValidFnc[19]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[21]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRVALEPXRESSAO",gxz:"ZV29ScrValEpxressao",gxold:"OV29ScrValEpxressao",gxvar:"AV29ScrValEpxressao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV29ScrValEpxressao=a
},v2z:function(a){gx.O.ZV29ScrValEpxressao=a},v2c:function(){gx.fn.setControlValue("vSCRVALEPXRESSAO",gx.O.AV29ScrValEpxressao,0)},c2v:function(){gx.O.AV29ScrValEpxressao=this.val()},val:function(){return gx.fn.getControlValue("vSCRVALEPXRESSAO")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TABLE4",grid:0};this.GXValidFnc[27]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vSCRQTDLEITORESPORLOTE",gxz:"ZV21ScrQtdLeitoresPorLote",gxold:"OV21ScrQtdLeitoresPorLote",gxvar:"AV21ScrQtdLeitoresPorLote",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV21ScrQtdLeitoresPorLote=gx.num.intval(a)
},v2z:function(a){gx.O.ZV21ScrQtdLeitoresPorLote=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSCRQTDLEITORESPORLOTE",gx.O.AV21ScrQtdLeitoresPorLote,0)},c2v:function(){gx.O.AV21ScrQtdLeitoresPorLote=this.val()},val:function(){return gx.fn.getIntegerValue("vSCRQTDLEITORESPORLOTE",".")},nac:function(){return false}};this.GXValidFnc[31]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[33]={lvl:0,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vSCRNROLOTE",gxz:"ZV22ScrNroLote",gxold:"OV22ScrNroLote",gxvar:"AV22ScrNroLote",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV22ScrNroLote=gx.num.intval(a)
},v2z:function(a){gx.O.ZV22ScrNroLote=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSCRNROLOTE",gx.O.AV22ScrNroLote,0)},c2v:function(){gx.O.AV22ScrNroLote=this.val()},val:function(){return gx.fn.getIntegerValue("vSCRNROLOTE",".")},nac:function(){return false}};this.GXValidFnc[39]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:38,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDESCRICAOUM",gxz:"ZV16GrdDescricaoUm",gxold:"OV16GrdDescricaoUm",gxvar:"AV16GrdDescricaoUm",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV16GrdDescricaoUm=a
},v2z:function(a){gx.O.ZV16GrdDescricaoUm=a},v2c:function(){gx.fn.setGridControlValue("vGRDDESCRICAOUM",gx.fn.currentGridRowImpl(38),gx.O.AV16GrdDescricaoUm,0)},c2v:function(){gx.O.AV16GrdDescricaoUm=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDESCRICAOUM",gx.fn.currentGridRowImpl(38))},nac:function(){return false}};this.GXValidFnc[40]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:38,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNUMEROUM",gxz:"ZV15GrdNumeroUm",gxold:"OV15GrdNumeroUm",gxvar:"AV15GrdNumeroUm",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV15GrdNumeroUm=gx.num.intval(a)
},v2z:function(a){gx.O.ZV15GrdNumeroUm=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNUMEROUM",gx.fn.currentGridRowImpl(38),gx.O.AV15GrdNumeroUm,0)},c2v:function(){gx.O.AV15GrdNumeroUm=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNUMEROUM",gx.fn.currentGridRowImpl(38),".")},nac:function(){return false}};this.AV29ScrValEpxressao="";this.ZV29ScrValEpxressao="";this.OV29ScrValEpxressao="";this.AV21ScrQtdLeitoresPorLote=0;this.ZV21ScrQtdLeitoresPorLote=0;this.OV21ScrQtdLeitoresPorLote=0;
this.AV22ScrNroLote=0;this.ZV22ScrNroLote=0;this.OV22ScrNroLote=0;this.ZV16GrdDescricaoUm="";this.OV16GrdDescricaoUm="";this.ZV15GrdNumeroUm=0;this.OV15GrdNumeroUm=0;this.AV16GrdDescricaoUm="";this.AV15GrdNumeroUm=0;this.Gx_msg="";this.ServerEvents=["e118h2_client","e128h2_client","e138h2_client","e208h2_client"];this.EnterCtrl=["BUTTON1"];this.VarControlMap.Gx_msg={id:"vMSG",grid:0,type:"char"};this.SetStandaloneVars()}hteste2.prototype=new gx.GxObject;gx.setParentObj(new hteste2());