gx.evt.autoSkip=false;function gx0180(){this.ServerClass="Gx0180";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pMgvNroSequencia=gx.fn.getIntegerValue("vPMGVNROSEQUENCIA",".")};this.e13b72_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14b71_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,44,47,48,52,53,54,55,56,57,58,59,62];
this.GXLastCtrlId=62;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",51,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0180",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",52,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(538,53,"MGVNROSEQU","Movimentação guarda-volume","","MgvNroSequ","int",0,"px",10,10,"right",null,[],538,"MgvNroSequ",true,0,false,false);
this.Grid1Container.addSingleLineEdit(534,54,"MGVDATRETI","Data retirada","Selecionar","MgvDatReti","date",0,"px",10,10,"right",null,[],534,"MgvDatReti",true,0,false,false);this.Grid1Container.addSingleLineEdit(536,55,"MGVHORRETI","Hora retirada","","MgvHorReti","char",0,"px",8,8,"left",null,[],536,"MgvHorReti",true,0,false,false);this.Grid1Container.addSingleLineEdit(463,56,"GVLNRO","Número guarda-volume","","GvlNro","int",0,"px",5,5,"right",null,[],463,"GvlNro",true,0,false,false);this.Grid1Container.addSingleLineEdit(787,57,"USBCOD","Código do leitor","","UsbCod","char",0,"px",14,14,"left",null,[],787,"UsbCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(533,58,"MGVDATDEVO","Data devolução","","MgvDatDevo","date",0,"px",10,10,"right",null,[],533,"MgvDatDevo",true,0,false,false);this.Grid1Container.addSingleLineEdit(535,59,"MGVHORDEVO","Hora devolução","","MgvHorDevo","char",0,"px",8,8,"left",null,[],535,"MgvHorDevo",true,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:"TEXTBLOCKMGVNROSEQUENCIA",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:"vCMGVNROSEQUENCIA",gxz:"ZV6cMgvNroSequencia",gxold:"OV6cMgvNroSequencia",gxvar:"AV6cMgvNroSequencia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cMgvNroSequencia=gx.num.intval(a)},v2z:function(a){gx.O.ZV6cMgvNroSequencia=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCMGVNROSEQUENCIA",gx.O.AV6cMgvNroSequencia,0)
},c2v:function(){gx.O.AV6cMgvNroSequencia=this.val()},val:function(){return gx.fn.getIntegerValue("vCMGVNROSEQUENCIA",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKMGVDATRETIRADA",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:"vCMGVDATRETIRADA",gxz:"ZV7cMgvDatRetirada",gxold:"OV7cMgvDatRetirada",gxvar:"AV7cMgvDatRetirada",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.AV7cMgvDatRetirada=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV7cMgvDatRetirada=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCMGVDATRETIRADA",gx.O.AV7cMgvDatRetirada,0)},c2v:function(){gx.O.AV7cMgvDatRetirada=this.val()},val:function(){return gx.fn.getControlValue("vCMGVDATRETIRADA")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKMGVHORRETIRADA",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:8,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCMGVHORRETIRADA",gxz:"ZV8cMgvHorRetirada",gxold:"OV8cMgvHorRetirada",gxvar:"AV8cMgvHorRetirada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cMgvHorRetirada=a
},v2z:function(a){gx.O.ZV8cMgvHorRetirada=a},v2c:function(){gx.fn.setControlValue("vCMGVHORRETIRADA",gx.O.AV8cMgvHorRetirada,0)},c2v:function(){gx.O.AV8cMgvHorRetirada=this.val()},val:function(){return gx.fn.getControlValue("vCMGVHORRETIRADA")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKGVLNRO",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:[this.Grid1Container],fld:"vCGVLNRO",gxz:"ZV9cGvlNro",gxold:"OV9cGvlNro",gxvar:"AV9cGvlNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cGvlNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV9cGvlNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCGVLNRO",gx.O.AV9cGvlNro,0)},c2v:function(){gx.O.AV9cGvlNro=this.val()},val:function(){return gx.fn.getIntegerValue("vCGVLNRO",".")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKUSBCOD",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCUSBCOD",gxz:"ZV10cUsbCod",gxold:"OV10cUsbCod",gxvar:"AV10cUsbCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cUsbCod=a
},v2z:function(a){gx.O.ZV10cUsbCod=a},v2c:function(){gx.fn.setControlValue("vCUSBCOD",gx.O.AV10cUsbCod,0)},c2v:function(){gx.O.AV10cUsbCod=this.val()},val:function(){return gx.fn.getControlValue("vCUSBCOD")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKMGVDATDEVOLUCAO",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCMGVDATDEVOLUCAO",gxz:"ZV11cMgvDatDevolucao",gxold:"OV11cMgvDatDevolucao",gxvar:"AV11cMgvDatDevolucao",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.AV11cMgvDatDevolucao=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV11cMgvDatDevolucao=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCMGVDATDEVOLUCAO",gx.O.AV11cMgvDatDevolucao,0)},c2v:function(){gx.O.AV11cMgvDatDevolucao=this.val()},val:function(){return gx.fn.getControlValue("vCMGVDATDEVOLUCAO")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKMGVHORDEVOLUCAO",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"char",len:8,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCMGVHORDEVOLUCAO",gxz:"ZV12cMgvHorDevolucao",gxold:"OV12cMgvHorDevolucao",gxvar:"AV12cMgvHorDevolucao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12cMgvHorDevolucao=a
},v2z:function(a){gx.O.ZV12cMgvHorDevolucao=a},v2c:function(){gx.fn.setControlValue("vCMGVHORDEVOLUCAO",gx.O.AV12cMgvHorDevolucao,0)},c2v:function(){gx.O.AV12cMgvHorDevolucao=this.val()},val:function(){return gx.fn.getControlValue("vCMGVHORDEVOLUCAO")},nac:function(){return false}};this.GXValidFnc[47]={fld:"GROUP2",grid:0};this.GXValidFnc[48]={fld:"TABLE3",grid:0};this.GXValidFnc[52]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:51,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(51))},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"int",len:10,dec:0,sign:false,pic:"ZZZZZZZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"MGVNROSEQU",gxz:"Z538MgvNroSequ",gxold:"O538MgvNroSequ",gxvar:"A538MgvNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A538MgvNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z538MgvNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("MGVNROSEQU",gx.fn.currentGridRowImpl(51),gx.O.A538MgvNroSequ,0)},c2v:function(){gx.O.A538MgvNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("MGVNROSEQU",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"MGVDATRETI",gxz:"Z534MgvDatReti",gxold:"O534MgvDatReti",gxvar:"A534MgvDatReti",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.A534MgvDatReti=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z534MgvDatReti=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("MGVDATRETI",gx.fn.currentGridRowImpl(51),gx.O.A534MgvDatReti,0)},c2v:function(){gx.O.A534MgvDatReti=this.val()},val:function(){return gx.fn.getGridControlValue("MGVDATRETI",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"char",len:8,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"MGVHORRETI",gxz:"Z536MgvHorReti",gxold:"O536MgvHorReti",gxvar:"A536MgvHorReti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A536MgvHorReti=a
},v2z:function(a){gx.O.Z536MgvHorReti=a},v2c:function(){gx.fn.setGridControlValue("MGVHORRETI",gx.fn.currentGridRowImpl(51),gx.O.A536MgvHorReti,0)},c2v:function(){gx.O.A536MgvHorReti=this.val()},val:function(){return gx.fn.getGridControlValue("MGVHORRETI",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"GVLNRO",gxz:"Z463GvlNro",gxold:"O463GvlNro",gxvar:"A463GvlNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A463GvlNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z463GvlNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("GVLNRO",gx.fn.currentGridRowImpl(51),gx.O.A463GvlNro,0)},c2v:function(){gx.O.A463GvlNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("GVLNRO",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"char",len:14,dec:0,sign:false,ro:1,grid:51,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(51),gx.O.A787UsbCod,0)},c2v:function(){gx.O.A787UsbCod=this.val()},val:function(){return gx.fn.getGridControlValue("USBCOD",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"MGVDATDEVO",gxz:"Z533MgvDatDevo",gxold:"O533MgvDatDevo",gxvar:"A533MgvDatDevo",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.A533MgvDatDevo=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z533MgvDatDevo=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("MGVDATDEVO",gx.fn.currentGridRowImpl(51),gx.O.A533MgvDatDevo,0)},c2v:function(){gx.O.A533MgvDatDevo=this.val()},val:function(){return gx.fn.getGridControlValue("MGVDATDEVO",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[59]={lvl:2,type:"char",len:8,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"MGVHORDEVO",gxz:"Z535MgvHorDevo",gxold:"O535MgvHorDevo",gxvar:"A535MgvHorDevo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A535MgvHorDevo=a
},v2z:function(a){gx.O.Z535MgvHorDevo=a},v2c:function(){gx.fn.setGridControlValue("MGVHORDEVO",gx.fn.currentGridRowImpl(51),gx.O.A535MgvHorDevo,0)},c2v:function(){gx.O.A535MgvHorDevo=this.val()},val:function(){return gx.fn.getGridControlValue("MGVHORDEVO",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[62]={fld:"TABLE4",grid:0};this.AV6cMgvNroSequencia=0;this.ZV6cMgvNroSequencia=0;this.OV6cMgvNroSequencia=0;this.AV7cMgvDatRetirada=gx.date.nullDate();this.ZV7cMgvDatRetirada=gx.date.nullDate();
this.OV7cMgvDatRetirada=gx.date.nullDate();this.AV8cMgvHorRetirada="";this.ZV8cMgvHorRetirada="";this.OV8cMgvHorRetirada="";this.AV9cGvlNro=0;this.ZV9cGvlNro=0;this.OV9cGvlNro=0;this.AV10cUsbCod="";this.ZV10cUsbCod="";this.OV10cUsbCod="";this.AV11cMgvDatDevolucao=gx.date.nullDate();this.ZV11cMgvDatDevolucao=gx.date.nullDate();this.OV11cMgvDatDevolucao=gx.date.nullDate();this.AV12cMgvHorDevolucao="";this.ZV12cMgvHorDevolucao="";this.OV12cMgvHorDevolucao="";this.ZV5LinkSelection="";this.OV5LinkSelection="";
this.Z538MgvNroSequ=0;this.O538MgvNroSequ=0;this.Z534MgvDatReti=gx.date.nullDate();this.O534MgvDatReti=gx.date.nullDate();this.Z536MgvHorReti="";this.O536MgvHorReti="";this.Z463GvlNro=0;this.O463GvlNro=0;this.Z787UsbCod="";this.O787UsbCod="";this.Z533MgvDatDevo=gx.date.nullDate();this.O533MgvDatDevo=gx.date.nullDate();this.Z535MgvHorDevo="";this.O535MgvHorDevo="";this.AV13pMgvNroSequencia=0;this.AV5LinkSelection="";this.A538MgvNroSequ=0;this.A534MgvDatReti=gx.date.nullDate();this.A536MgvHorReti="";
this.A463GvlNro=0;this.A787UsbCod="";this.A533MgvDatDevo=gx.date.nullDate();this.A535MgvHorDevo="";this.ServerEvents=["e13b72_client","e14b71_client"];this.VarControlMap.AV13pMgvNroSequencia={id:"vPMGVNROSEQUENCIA",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(this.GXValidFnc[44]);this.SetStandaloneVars()}gx0180.prototype=new gx.GxObject;gx.setParentObj(new gx0180());