gx.evt.autoSkip=false;function gx01z0(){this.ServerClass="Gx01Z0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV10pTrsCodOperacao=gx.fn.getControlValue("vPTRSCODOPERACAO");this.AV11pTrsNroDocumento=gx.fn.getIntegerValue("vPTRSNRODOCUMENTO",".");this.AV12pTrsNroSeqReserva=gx.fn.getIntegerValue("vPTRSNROSEQRESERVA",".")};this.e13bm2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14bm1_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,"gx01z0",[],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(912,38,"TRSCODOPER","Código da operação AAAAMMDDHHMMSS","","TrsCodOper","char",0,"px",14,14,"left",null,[],912,"TrsCodOper",true,0,false,false);
this.Grid1Container.addSingleLineEdit(913,39,"TRSNRODOCU","Nro documento","","TrsNroDocu","int",0,"px",7,7,"right",null,[],913,"TrsNroDocu",true,0,false,false);this.Grid1Container.addSingleLineEdit(914,40,"TRSNROSEQR","Nro seq. reserva","","TrsNroSeqR","int",0,"px",6,6,"right",null,[],914,"TrsNroSeqR",true,0,false,false);this.Grid1Container.addComboBox(915,41,"TRSTIPACAO","Ação","TrsTipAcao","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:"TEXTBLOCKTRSCODOPERACAO",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTRSCODOPERACAO",gxz:"ZV6cTrsCodOperacao",gxold:"OV6cTrsCodOperacao",gxvar:"AV6cTrsCodOperacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cTrsCodOperacao=a},v2z:function(a){gx.O.ZV6cTrsCodOperacao=a},v2c:function(){gx.fn.setControlValue("vCTRSCODOPERACAO",gx.O.AV6cTrsCodOperacao,0)
},c2v:function(){gx.O.AV6cTrsCodOperacao=this.val()},val:function(){return gx.fn.getControlValue("vCTRSCODOPERACAO")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKTRSNRODOCUMENTO",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:"vCTRSNRODOCUMENTO",gxz:"ZV7cTrsNroDocumento",gxold:"OV7cTrsNroDocumento",gxvar:"AV7cTrsNroDocumento",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cTrsNroDocumento=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7cTrsNroDocumento=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCTRSNRODOCUMENTO",gx.O.AV7cTrsNroDocumento,0)},c2v:function(){gx.O.AV7cTrsNroDocumento=this.val()},val:function(){return gx.fn.getIntegerValue("vCTRSNRODOCUMENTO",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKTRSNROSEQRESERVA",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:"vCTRSNROSEQRESERVA",gxz:"ZV8cTrsNroSeqReserva",gxold:"OV8cTrsNroSeqReserva",gxvar:"AV8cTrsNroSeqReserva",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cTrsNroSeqReserva=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8cTrsNroSeqReserva=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCTRSNROSEQRESERVA",gx.O.AV8cTrsNroSeqReserva,0)},c2v:function(){gx.O.AV8cTrsNroSeqReserva=this.val()},val:function(){return gx.fn.getIntegerValue("vCTRSNROSEQRESERVA",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKTRSTIPACAO",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:"vCTRSTIPACAO",gxz:"ZV9cTrsTipAcao",gxold:"OV9cTrsTipAcao",gxvar:"AV9cTrsTipAcao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV9cTrsTipAcao=a
},v2z:function(a){gx.O.ZV9cTrsTipAcao=a},v2c:function(){gx.fn.setComboBoxValue("vCTRSTIPACAO",gx.O.AV9cTrsTipAcao)},c2v:function(){gx.O.AV9cTrsTipAcao=this.val()},val:function(){return gx.fn.getControlValue("vCTRSTIPACAO")},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:"char",len:14,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TRSCODOPER",gxz:"Z912TrsCodOper",gxold:"O912TrsCodOper",gxvar:"A912TrsCodOper",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A912TrsCodOper=a
},v2z:function(a){gx.O.Z912TrsCodOper=a},v2c:function(){gx.fn.setGridControlValue("TRSCODOPER",gx.fn.currentGridRowImpl(36),gx.O.A912TrsCodOper,0)},c2v:function(){gx.O.A912TrsCodOper=this.val()},val:function(){return gx.fn.getGridControlValue("TRSCODOPER",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:"TRSNRODOCU",gxz:"Z913TrsNroDocu",gxold:"O913TrsNroDocu",gxvar:"A913TrsNroDocu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A913TrsNroDocu=gx.num.intval(a)
},v2z:function(a){gx.O.Z913TrsNroDocu=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("TRSNRODOCU",gx.fn.currentGridRowImpl(36),gx.O.A913TrsNroDocu,0)},c2v:function(){gx.O.A913TrsNroDocu=this.val()},val:function(){return gx.fn.getGridIntegerValue("TRSNRODOCU",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:"TRSNROSEQR",gxz:"Z914TrsNroSeqR",gxold:"O914TrsNroSeqR",gxvar:"A914TrsNroSeqR",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A914TrsNroSeqR=gx.num.intval(a)
},v2z:function(a){gx.O.Z914TrsNroSeqR=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("TRSNROSEQR",gx.fn.currentGridRowImpl(36),gx.O.A914TrsNroSeqR,0)},c2v:function(){gx.O.A914TrsNroSeqR=this.val()},val:function(){return gx.fn.getGridIntegerValue("TRSNROSEQR",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:"TRSTIPACAO",gxz:"Z915TrsTipAcao",gxold:"O915TrsTipAcao",gxvar:"A915TrsTipAcao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A915TrsTipAcao=a
},v2z:function(a){gx.O.Z915TrsTipAcao=a},v2c:function(){gx.fn.setGridComboBoxValue("TRSTIPACAO",gx.fn.currentGridRowImpl(36),gx.O.A915TrsTipAcao)},c2v:function(){gx.O.A915TrsTipAcao=this.val()},val:function(){return gx.fn.getGridControlValue("TRSTIPACAO",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[44]={fld:"TABLE4",grid:0};this.AV6cTrsCodOperacao="";this.ZV6cTrsCodOperacao="";this.OV6cTrsCodOperacao="";this.AV7cTrsNroDocumento=0;this.ZV7cTrsNroDocumento=0;this.OV7cTrsNroDocumento=0;
this.AV8cTrsNroSeqReserva=0;this.ZV8cTrsNroSeqReserva=0;this.OV8cTrsNroSeqReserva=0;this.AV9cTrsTipAcao="";this.ZV9cTrsTipAcao="";this.OV9cTrsTipAcao="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z912TrsCodOper="";this.O912TrsCodOper="";this.Z913TrsNroDocu=0;this.O913TrsNroDocu=0;this.Z914TrsNroSeqR=0;this.O914TrsNroSeqR=0;this.Z915TrsTipAcao="";this.O915TrsTipAcao="";this.AV10pTrsCodOperacao="";this.AV11pTrsNroDocumento=0;this.AV12pTrsNroSeqReserva=0;this.AV5LinkSelection="";this.A912TrsCodOper="";
this.A913TrsNroDocu=0;this.A914TrsNroSeqR=0;this.A915TrsTipAcao="";this.ServerEvents=["e13bm2_client","e14bm1_client"];this.VarControlMap.AV10pTrsCodOperacao={id:"vPTRSCODOPERACAO",grid:0,type:"char"};this.VarControlMap.AV11pTrsNroDocumento={id:"vPTRSNRODOCUMENTO",grid:0,type:"int"};this.VarControlMap.AV12pTrsNroSeqReserva={id:"vPTRSNROSEQRESERVA",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()}gx01z0.prototype=new gx.GxObject;gx.setParentObj(new gx01z0());