gx.evt.autoSkip=false;function gx00g1(){this.ServerClass="Gx00G1";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV12pDocNro=gx.fn.getIntegerValue("vPDOCNRO",".");this.AV13pResNroSeq=gx.fn.getIntegerValue("vPRESNROSEQ",".")};this.e13aj2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14aj1_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,43,47,48,49,50,51,52,53,54,55,58];
this.GXLastCtrlId=58;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",46,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx00g1",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",47,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(727,48,"RESNROSEQ","Número da Reserva","","ResNroSeq","int",0,"px",6,6,"right",null,[],727,"ResNroSeq",true,0,false,false);
this.Grid1Container.addSingleLineEdit(723,49,"RESDATSOLI","Data da solicitação da reserva","Selecionar","ResDatSoli","date",0,"px",10,10,"right",null,[],723,"ResDatSoli",true,0,false,false);this.Grid1Container.addSingleLineEdit(724,50,"RESDATVALI","Data validade","","ResDatVali","date",0,"px",10,10,"right",null,[],724,"ResDatVali",true,0,false,false);this.Grid1Container.addSingleLineEdit(729,51,"RESNROVOLU","Nro do volume da reserva","","ResNroVolu","int",0,"px",6,6,"right",null,[],729,"ResNroVolu",true,0,false,false);
this.Grid1Container.addSingleLineEdit(728,52,"RESNROTOMO","Número do tomo","","ResNroTomo","int",0,"px",2,2,"right",null,[],728,"ResNroTomo",true,0,false,false);this.Grid1Container.addSingleLineEdit(787,53,"USBCOD","Código do leitor","","UsbCod","char",0,"px",14,14,"left",null,[],787,"UsbCod",true,0,false,false);this.Grid1Container.addComboBox(726,54,"RESINDCANC","Status","ResIndCanc","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(258,55,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",false,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:"TEXTBLOCKRESNROSEQ",format:0,grid:0};this.GXValidFnc[14]={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:"vCRESNROSEQ",gxz:"ZV6cResNroSeq",gxold:"OV6cResNroSeq",gxvar:"AV6cResNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cResNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cResNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCRESNROSEQ",gx.O.AV6cResNroSeq,0)},c2v:function(){gx.O.AV6cResNroSeq=this.val()},val:function(){return gx.fn.getIntegerValue("vCRESNROSEQ",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKRESDATSOLICITACAO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCRESDATSOLICITACAO",gxz:"ZV7cResDatSolicitacao",gxold:"OV7cResDatSolicitacao",gxvar:"AV7cResDatSolicitacao",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.AV7cResDatSolicitacao=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV7cResDatSolicitacao=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCRESDATSOLICITACAO",gx.O.AV7cResDatSolicitacao,0)},c2v:function(){gx.O.AV7cResDatSolicitacao=this.val()},val:function(){return gx.fn.getControlValue("vCRESDATSOLICITACAO")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKRESDATVALIDADE",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCRESDATVALIDADE",gxz:"ZV8cResDatValidade",gxold:"OV8cResDatValidade",gxvar:"AV8cResDatValidade",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.AV8cResDatValidade=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV8cResDatValidade=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCRESDATVALIDADE",gx.O.AV8cResDatValidade,0)},c2v:function(){gx.O.AV8cResDatValidade=this.val()},val:function(){return gx.fn.getControlValue("vCRESDATVALIDADE")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKRESNROVOLUME",format:0,grid:0};this.GXValidFnc[29]={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:"vCRESNROVOLUME",gxz:"ZV9cResNroVolume",gxold:"OV9cResNroVolume",gxvar:"AV9cResNroVolume",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cResNroVolume=gx.num.intval(a)
},v2z:function(a){gx.O.ZV9cResNroVolume=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCRESNROVOLUME",gx.O.AV9cResNroVolume,0)},c2v:function(){gx.O.AV9cResNroVolume=this.val()},val:function(){return gx.fn.getIntegerValue("vCRESNROVOLUME",".")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKRESNROTOMO",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCRESNROTOMO",gxz:"ZV10cResNroTomo",gxold:"OV10cResNroTomo",gxvar:"AV10cResNroTomo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cResNroTomo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV10cResNroTomo=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCRESNROTOMO",gx.O.AV10cResNroTomo,0)},c2v:function(){gx.O.AV10cResNroTomo=this.val()},val:function(){return gx.fn.getIntegerValue("vCRESNROTOMO",".")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKUSBCOD",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCUSBCOD",gxz:"ZV11cUsbCod",gxold:"OV11cUsbCod",gxvar:"AV11cUsbCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cUsbCod=a
},v2z:function(a){gx.O.ZV11cUsbCod=a},v2c:function(){gx.fn.setControlValue("vCUSBCOD",gx.O.AV11cUsbCod,0)},c2v:function(){gx.O.AV11cUsbCod=this.val()},val:function(){return gx.fn.getControlValue("vCUSBCOD")},nac:function(){return false}};this.GXValidFnc[42]={fld:"GROUP2",grid:0};this.GXValidFnc[43]={fld:"TABLE3",grid:0};this.GXValidFnc[47]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:46,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(46))},nac:function(){return false}};this.GXValidFnc[48]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"RESNROSEQ",gxz:"Z727ResNroSeq",gxold:"O727ResNroSeq",gxvar:"A727ResNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A727ResNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.Z727ResNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("RESNROSEQ",gx.fn.currentGridRowImpl(46),gx.O.A727ResNroSeq,0)},c2v:function(){gx.O.A727ResNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("RESNROSEQ",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"RESDATSOLI",gxz:"Z723ResDatSoli",gxold:"O723ResDatSoli",gxvar:"A723ResDatSoli",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.A723ResDatSoli=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z723ResDatSoli=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("RESDATSOLI",gx.fn.currentGridRowImpl(46),gx.O.A723ResDatSoli,0)},c2v:function(){gx.O.A723ResDatSoli=this.val()},val:function(){return gx.fn.getGridControlValue("RESDATSOLI",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[50]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"RESDATVALI",gxz:"Z724ResDatVali",gxold:"O724ResDatVali",gxvar:"A724ResDatVali",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.A724ResDatVali=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z724ResDatVali=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("RESDATVALI",gx.fn.currentGridRowImpl(46),gx.O.A724ResDatVali,0)},c2v:function(){gx.O.A724ResDatVali=this.val()},val:function(){return gx.fn.getGridControlValue("RESDATVALI",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[51]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"RESNROVOLU",gxz:"Z729ResNroVolu",gxold:"O729ResNroVolu",gxvar:"A729ResNroVolu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A729ResNroVolu=gx.num.intval(a)
},v2z:function(a){gx.O.Z729ResNroVolu=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("RESNROVOLU",gx.fn.currentGridRowImpl(46),gx.O.A729ResNroVolu,0)},c2v:function(){gx.O.A729ResNroVolu=this.val()},val:function(){return gx.fn.getGridIntegerValue("RESNROVOLU",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[52]={lvl:2,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"RESNROTOMO",gxz:"Z728ResNroTomo",gxold:"O728ResNroTomo",gxvar:"A728ResNroTomo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A728ResNroTomo=gx.num.intval(a)
},v2z:function(a){gx.O.Z728ResNroTomo=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("RESNROTOMO",gx.fn.currentGridRowImpl(46),gx.O.A728ResNroTomo,0)},c2v:function(){gx.O.A728ResNroTomo=this.val()},val:function(){return gx.fn.getGridIntegerValue("RESNROTOMO",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"char",len:14,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"USBCOD",gxz:"Z787UsbCod",gxold:"O787UsbCod",gxvar:"A787UsbCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A787UsbCod=a
},v2z:function(a){gx.O.Z787UsbCod=a},v2c:function(){gx.fn.setGridControlValue("USBCOD",gx.fn.currentGridRowImpl(46),gx.O.A787UsbCod,0)},c2v:function(){gx.O.A787UsbCod=this.val()},val:function(){return gx.fn.getGridControlValue("USBCOD",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"RESINDCANC",gxz:"Z726ResIndCanc",gxold:"O726ResIndCanc",gxvar:"A726ResIndCanc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A726ResIndCanc=a
},v2z:function(a){gx.O.Z726ResIndCanc=a},v2c:function(){gx.fn.setGridComboBoxValue("RESINDCANC",gx.fn.currentGridRowImpl(46),gx.O.A726ResIndCanc)},c2v:function(){gx.O.A726ResIndCanc=this.val()},val:function(){return gx.fn.getGridControlValue("RESINDCANC",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A258DocNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z258DocNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DOCNRO",gx.fn.currentGridRowImpl(46),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[58]={fld:"TABLE4",grid:0};this.AV6cResNroSeq=0;this.ZV6cResNroSeq=0;this.OV6cResNroSeq=0;this.AV7cResDatSolicitacao=gx.date.nullDate();this.ZV7cResDatSolicitacao=gx.date.nullDate();
this.OV7cResDatSolicitacao=gx.date.nullDate();this.AV8cResDatValidade=gx.date.nullDate();this.ZV8cResDatValidade=gx.date.nullDate();this.OV8cResDatValidade=gx.date.nullDate();this.AV9cResNroVolume=0;this.ZV9cResNroVolume=0;this.OV9cResNroVolume=0;this.AV10cResNroTomo=0;this.ZV10cResNroTomo=0;this.OV10cResNroTomo=0;this.AV11cUsbCod="";this.ZV11cUsbCod="";this.OV11cUsbCod="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z727ResNroSeq=0;this.O727ResNroSeq=0;this.Z723ResDatSoli=gx.date.nullDate();
this.O723ResDatSoli=gx.date.nullDate();this.Z724ResDatVali=gx.date.nullDate();this.O724ResDatVali=gx.date.nullDate();this.Z729ResNroVolu=0;this.O729ResNroVolu=0;this.Z728ResNroTomo=0;this.O728ResNroTomo=0;this.Z787UsbCod="";this.O787UsbCod="";this.Z726ResIndCanc="";this.O726ResIndCanc="";this.Z258DocNro=0;this.O258DocNro=0;this.AV12pDocNro=0;this.AV13pResNroSeq=0;this.AV5LinkSelection="";this.A727ResNroSeq=0;this.A723ResDatSoli=gx.date.nullDate();this.A724ResDatVali=gx.date.nullDate();this.A729ResNroVolu=0;
this.A728ResNroTomo=0;this.A787UsbCod="";this.A726ResIndCanc="";this.A258DocNro=0;this.ServerEvents=["e13aj2_client","e14aj1_client"];this.VarControlMap.AV12pDocNro={id:"vPDOCNRO",grid:0,type:"int"};this.VarControlMap.AV13pResNroSeq={id:"vPRESNROSEQ",grid:0,type:"int"};this.VarControlMap.AV12pDocNro={id:"vPDOCNRO",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({rfrVar:"AV12pDocNro"});this.SetStandaloneVars()}gx00g1.prototype=new gx.GxObject;gx.setParentObj(new gx00g1());