gx.evt.autoSkip=false;function gx01v0(){this.ServerClass="Gx01V0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV10pTarDatOperacao=gx.fn.getDateValue("vPTARDATOPERACAO");this.AV11pTarNroDocumento=gx.fn.getIntegerValue("vPTARNRODOCUMENTO",".");this.AV12pTarNroSeqReserva=gx.fn.getIntegerValue("vPTARNROSEQRESERVA",".")};this.e13bi2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14bi1_client=function(){this.executeServerEvent("CANCEL",true)
};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,33,37,38,39,40,41,44];this.GXLastCtrlId=44;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",36,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx01v0",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",37,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(850,38,"TARDATOPER","Data da operacao","","TarDatOper","date",0,"px",8,8,"right",null,[],850,"TarDatOper",true,0,false,false);
this.Grid1Container.addSingleLineEdit(851,39,"TARNRODOCU","Nro documento","","TarNroDocu","int",0,"px",7,7,"right",null,[],851,"TarNroDocu",true,0,false,false);this.Grid1Container.addSingleLineEdit(852,40,"TARNROSEQR","Nro. seq. reservas","","TarNroSeqR","int",0,"px",6,6,"right",null,[],852,"TarNroSeqR",true,0,false,false);this.Grid1Container.addComboBox(853,41,"TARTIPACAO","Ação","TarTipAcao","char",null,0,true,false,0,"px");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:"TEXTBLOCKTARDATOPERACAO",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"date",len:8,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTARDATOPERACAO",gxz:"ZV6cTarDatOperacao",gxold:"OV6cTarDatOperacao",gxvar:"AV6cTarDatOperacao",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/99",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cTarDatOperacao=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV6cTarDatOperacao=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCTARDATOPERACAO",gx.O.AV6cTarDatOperacao,0)},c2v:function(){gx.O.AV6cTarDatOperacao=this.val()},val:function(){return gx.fn.getControlValue("vCTARDATOPERACAO")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKTARNRODOCUMENTO",format:0,grid:0};this.GXValidFnc[19]={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:"vCTARNRODOCUMENTO",gxz:"ZV7cTarNroDocumento",gxold:"OV7cTarNroDocumento",gxvar:"AV7cTarNroDocumento",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cTarNroDocumento=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7cTarNroDocumento=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCTARNRODOCUMENTO",gx.O.AV7cTarNroDocumento,0)},c2v:function(){gx.O.AV7cTarNroDocumento=this.val()},val:function(){return gx.fn.getIntegerValue("vCTARNRODOCUMENTO",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKTARNROSEQRESERVA",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCTARNROSEQRESERVA",gxz:"ZV8cTarNroSeqReserva",gxold:"OV8cTarNroSeqReserva",gxvar:"AV8cTarNroSeqReserva",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cTarNroSeqReserva=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8cTarNroSeqReserva=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCTARNROSEQRESERVA",gx.O.AV8cTarNroSeqReserva,0)},c2v:function(){gx.O.AV8cTarNroSeqReserva=this.val()},val:function(){return gx.fn.getIntegerValue("vCTARNROSEQRESERVA",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKTARTIPACAO",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTARTIPACAO",gxz:"ZV9cTarTipAcao",gxold:"OV9cTarTipAcao",gxvar:"AV9cTarTipAcao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV9cTarTipAcao=a
},v2z:function(a){gx.O.ZV9cTarTipAcao=a},v2c:function(){gx.fn.setComboBoxValue("vCTARTIPACAO",gx.O.AV9cTarTipAcao)},c2v:function(){gx.O.AV9cTarTipAcao=this.val()},val:function(){return gx.fn.getControlValue("vCTARTIPACAO")},nac:function(){return false}};this.GXValidFnc[32]={fld:"GROUP2",grid:0};this.GXValidFnc[33]={fld:"TABLE3",grid:0};this.GXValidFnc[37]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:36,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(36))},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"date",len:8,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TARDATOPER",gxz:"Z850TarDatOper",gxold:"O850TarDatOper",gxvar:"A850TarDatOper",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/99",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A850TarDatOper=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z850TarDatOper=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("TARDATOPER",gx.fn.currentGridRowImpl(36),gx.O.A850TarDatOper,0)},c2v:function(){gx.O.A850TarDatOper=this.val()},val:function(){return gx.fn.getGridControlValue("TARDATOPER",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[39]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"TARNRODOCU",gxz:"Z851TarNroDocu",gxold:"O851TarNroDocu",gxvar:"A851TarNroDocu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A851TarNroDocu=gx.num.intval(a)
},v2z:function(a){gx.O.Z851TarNroDocu=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("TARNRODOCU",gx.fn.currentGridRowImpl(36),gx.O.A851TarNroDocu,0)},c2v:function(){gx.O.A851TarNroDocu=this.val()},val:function(){return gx.fn.getGridIntegerValue("TARNRODOCU",gx.fn.currentGridRowImpl(36),".")},nac:function(){return false}};this.GXValidFnc[40]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"TARNROSEQR",gxz:"Z852TarNroSeqR",gxold:"O852TarNroSeqR",gxvar:"A852TarNroSeqR",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A852TarNroSeqR=gx.num.intval(a)
},v2z:function(a){gx.O.Z852TarNroSeqR=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("TARNROSEQR",gx.fn.currentGridRowImpl(36),gx.O.A852TarNroSeqR,0)},c2v:function(){gx.O.A852TarNroSeqR=this.val()},val:function(){return gx.fn.getGridIntegerValue("TARNROSEQR",gx.fn.currentGridRowImpl(36),".")},nac:function(){return false}};this.GXValidFnc[41]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TARTIPACAO",gxz:"Z853TarTipAcao",gxold:"O853TarTipAcao",gxvar:"A853TarTipAcao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A853TarTipAcao=a
},v2z:function(a){gx.O.Z853TarTipAcao=a},v2c:function(){gx.fn.setGridComboBoxValue("TARTIPACAO",gx.fn.currentGridRowImpl(36),gx.O.A853TarTipAcao)},c2v:function(){gx.O.A853TarTipAcao=this.val()},val:function(){return gx.fn.getGridControlValue("TARTIPACAO",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[44]={fld:"TABLE4",grid:0};this.AV6cTarDatOperacao=gx.date.nullDate();this.ZV6cTarDatOperacao=gx.date.nullDate();this.OV6cTarDatOperacao=gx.date.nullDate();this.AV7cTarNroDocumento=0;
this.ZV7cTarNroDocumento=0;this.OV7cTarNroDocumento=0;this.AV8cTarNroSeqReserva=0;this.ZV8cTarNroSeqReserva=0;this.OV8cTarNroSeqReserva=0;this.AV9cTarTipAcao="";this.ZV9cTarTipAcao="";this.OV9cTarTipAcao="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z850TarDatOper=gx.date.nullDate();this.O850TarDatOper=gx.date.nullDate();this.Z851TarNroDocu=0;this.O851TarNroDocu=0;this.Z852TarNroSeqR=0;this.O852TarNroSeqR=0;this.Z853TarTipAcao="";this.O853TarTipAcao="";this.AV10pTarDatOperacao=gx.date.nullDate();
this.AV11pTarNroDocumento=0;this.AV12pTarNroSeqReserva=0;this.AV5LinkSelection="";this.A850TarDatOper=gx.date.nullDate();this.A851TarNroDocu=0;this.A852TarNroSeqR=0;this.A853TarTipAcao="";this.ServerEvents=["e13bi2_client","e14bi1_client"];this.VarControlMap.AV10pTarDatOperacao={id:"vPTARDATOPERACAO",grid:0,type:"date"};this.VarControlMap.AV11pTarNroDocumento={id:"vPTARNRODOCUMENTO",grid:0,type:"int"};this.VarControlMap.AV12pTarNroSeqReserva={id:"vPTARNROSEQRESERVA",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.SetStandaloneVars()}gx01v0.prototype=new gx.GxObject;gx.setParentObj(new gx01v0());