gx.evt.autoSkip=false;function gx00e0(){this.ServerClass="Gx00E0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV12pEptNroSequencia=gx.fn.getIntegerValue("vPEPTNROSEQUENCIA",".")};this.e13d82_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14d81_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,56];
this.GXLastCtrlId=56;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",46,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx00e0",[],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(364,48,"EPTNROSEQU","Sequencia","","EptNroSequ","int",0,"px",10,10,"right",null,[],364,"EptNroSequ",true,0,false,false);
this.Grid1Container.addSingleLineEdit(362,49,"EPTDATRETI","Retirada","Selecionar","EptDatReti","dtime",0,"px",16,10,"right",null,[],362,"EptDatReti",true,5,false,false);this.Grid1Container.addSingleLineEdit(787,50,"USBCOD","Código do leitor","","UsbCod","char",0,"px",14,14,"left",null,[],787,"UsbCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(361,51,"EPTCODUSUA","Usuário responsável","","EptCodUsua","char",0,"px",6,6,"left",null,[],361,"EptCodUsua",true,0,false,false);this.Grid1Container.addSingleLineEdit(363,52,"EPTHORRETI","Hora da retirada","","EptHorReti","char",0,"px",8,8,"left",null,[],363,"EptHorReti",true,0,false,false);
this.Grid1Container.addComboBox(365,53,"EPTTIPEMPR","Tipo de empréstimo","EptTipEmpr","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:"TEXTBLOCKEPTNROSEQUENCIA",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:"vCEPTNROSEQUENCIA",gxz:"ZV6cEptNroSequencia",gxold:"OV6cEptNroSequencia",gxvar:"AV6cEptNroSequencia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cEptNroSequencia=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cEptNroSequencia=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCEPTNROSEQUENCIA",gx.O.AV6cEptNroSequencia,0)},c2v:function(){gx.O.AV6cEptNroSequencia=this.val()},val:function(){return gx.fn.getIntegerValue("vCEPTNROSEQUENCIA",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKEPTDATRETIRADA",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"dtime",len:10,dec:5,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCEPTDATRETIRADA",gxz:"ZV7cEptDatRetirada",gxold:"OV7cEptDatRetirada",gxvar:"AV7cEptDatRetirada",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/9999 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cEptDatRetirada=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV7cEptDatRetirada=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCEPTDATRETIRADA",gx.O.AV7cEptDatRetirada,0)},c2v:function(){gx.O.AV7cEptDatRetirada=this.val()},val:function(){return gx.fn.getControlValue("vCEPTDATRETIRADA")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKUSBCOD",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCUSBCOD",gxz:"ZV8cUsbCod",gxold:"OV8cUsbCod",gxvar:"AV8cUsbCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cUsbCod=a
},v2z:function(a){gx.O.ZV8cUsbCod=a},v2c:function(){gx.fn.setControlValue("vCUSBCOD",gx.O.AV8cUsbCod,0)},c2v:function(){gx.O.AV8cUsbCod=this.val()},val:function(){return gx.fn.getControlValue("vCUSBCOD")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKEPTCODUSUARIORESPONSAVEL",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:"vCEPTCODUSUARIORESPONSAVEL",gxz:"ZV9cEptCodUsuarioResponsavel",gxold:"OV9cEptCodUsuarioResponsavel",gxvar:"AV9cEptCodUsuarioResponsavel",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cEptCodUsuarioResponsavel=a
},v2z:function(a){gx.O.ZV9cEptCodUsuarioResponsavel=a},v2c:function(){gx.fn.setControlValue("vCEPTCODUSUARIORESPONSAVEL",gx.O.AV9cEptCodUsuarioResponsavel,0)},c2v:function(){gx.O.AV9cEptCodUsuarioResponsavel=this.val()},val:function(){return gx.fn.getControlValue("vCEPTCODUSUARIORESPONSAVEL")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKEPTHORRETIRADA",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:8,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCEPTHORRETIRADA",gxz:"ZV10cEptHorRetirada",gxold:"OV10cEptHorRetirada",gxvar:"AV10cEptHorRetirada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cEptHorRetirada=a
},v2z:function(a){gx.O.ZV10cEptHorRetirada=a},v2c:function(){gx.fn.setControlValue("vCEPTHORRETIRADA",gx.O.AV10cEptHorRetirada,0)},c2v:function(){gx.O.AV10cEptHorRetirada=this.val()},val:function(){return gx.fn.getControlValue("vCEPTHORRETIRADA")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKEPTTIPEMPRESTIMO",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCEPTTIPEMPRESTIMO",gxz:"ZV11cEptTipEmprestimo",gxold:"OV11cEptTipEmprestimo",gxvar:"AV11cEptTipEmprestimo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV11cEptTipEmprestimo=a
},v2z:function(a){gx.O.ZV11cEptTipEmprestimo=a},v2c:function(){gx.fn.setComboBoxValue("vCEPTTIPEMPRESTIMO",gx.O.AV11cEptTipEmprestimo)},c2v:function(){gx.O.AV11cEptTipEmprestimo=this.val()},val:function(){return gx.fn.getControlValue("vCEPTTIPEMPRESTIMO")},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:10,dec:0,sign:false,pic:"ZZZZZZZZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"EPTNROSEQU",gxz:"Z364EptNroSequ",gxold:"O364EptNroSequ",gxvar:"A364EptNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A364EptNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z364EptNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("EPTNROSEQU",gx.fn.currentGridRowImpl(46),gx.O.A364EptNroSequ,0)},c2v:function(){gx.O.A364EptNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("EPTNROSEQU",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"dtime",len:10,dec:5,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EPTDATRETI",gxz:"Z362EptDatReti",gxold:"O362EptDatReti",gxvar:"A362EptDatReti",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/9999 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A362EptDatReti=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z362EptDatReti=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("EPTDATRETI",gx.fn.currentGridRowImpl(46),gx.O.A362EptDatReti,0)},c2v:function(){gx.O.A362EptDatReti=this.val()},val:function(){return gx.fn.getGridControlValue("EPTDATRETI",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[50]={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[51]={lvl:2,type:"char",len:6,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EPTCODUSUA",gxz:"Z361EptCodUsua",gxold:"O361EptCodUsua",gxvar:"A361EptCodUsua",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A361EptCodUsua=a
},v2z:function(a){gx.O.Z361EptCodUsua=a},v2c:function(){gx.fn.setGridControlValue("EPTCODUSUA",gx.fn.currentGridRowImpl(46),gx.O.A361EptCodUsua,0)},c2v:function(){gx.O.A361EptCodUsua=this.val()},val:function(){return gx.fn.getGridControlValue("EPTCODUSUA",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[52]={lvl:2,type:"char",len:8,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EPTHORRETI",gxz:"Z363EptHorReti",gxold:"O363EptHorReti",gxvar:"A363EptHorReti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A363EptHorReti=a
},v2z:function(a){gx.O.Z363EptHorReti=a},v2c:function(){gx.fn.setGridControlValue("EPTHORRETI",gx.fn.currentGridRowImpl(46),gx.O.A363EptHorReti,0)},c2v:function(){gx.O.A363EptHorReti=this.val()},val:function(){return gx.fn.getGridControlValue("EPTHORRETI",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EPTTIPEMPR",gxz:"Z365EptTipEmpr",gxold:"O365EptTipEmpr",gxvar:"A365EptTipEmpr",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A365EptTipEmpr=a
},v2z:function(a){gx.O.Z365EptTipEmpr=a},v2c:function(){gx.fn.setGridComboBoxValue("EPTTIPEMPR",gx.fn.currentGridRowImpl(46),gx.O.A365EptTipEmpr)},c2v:function(){gx.O.A365EptTipEmpr=this.val()},val:function(){return gx.fn.getGridControlValue("EPTTIPEMPR",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[56]={fld:"TABLE4",grid:0};this.AV6cEptNroSequencia=0;this.ZV6cEptNroSequencia=0;this.OV6cEptNroSequencia=0;this.AV7cEptDatRetirada=gx.date.nullDate();this.ZV7cEptDatRetirada=gx.date.nullDate();
this.OV7cEptDatRetirada=gx.date.nullDate();this.AV8cUsbCod="";this.ZV8cUsbCod="";this.OV8cUsbCod="";this.AV9cEptCodUsuarioResponsavel="";this.ZV9cEptCodUsuarioResponsavel="";this.OV9cEptCodUsuarioResponsavel="";this.AV10cEptHorRetirada="";this.ZV10cEptHorRetirada="";this.OV10cEptHorRetirada="";this.AV11cEptTipEmprestimo="";this.ZV11cEptTipEmprestimo="";this.OV11cEptTipEmprestimo="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z364EptNroSequ=0;this.O364EptNroSequ=0;this.Z362EptDatReti=gx.date.nullDate();
this.O362EptDatReti=gx.date.nullDate();this.Z787UsbCod="";this.O787UsbCod="";this.Z361EptCodUsua="";this.O361EptCodUsua="";this.Z363EptHorReti="";this.O363EptHorReti="";this.Z365EptTipEmpr="";this.O365EptTipEmpr="";this.AV12pEptNroSequencia=0;this.AV5LinkSelection="";this.A364EptNroSequ=0;this.A362EptDatReti=gx.date.nullDate();this.A787UsbCod="";this.A361EptCodUsua="";this.A363EptHorReti="";this.A365EptTipEmpr="";this.ServerEvents=["e13d82_client","e14d81_client"];this.VarControlMap.AV12pEptNroSequencia={id:"vPEPTNROSEQUENCIA",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.SetStandaloneVars()}gx00e0.prototype=new gx.GxObject;gx.setParentObj(new gx00e0());