gx.evt.autoSkip=false;function hgsh003(){this.ServerClass="HGsh003";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.Validv_Resnroseq=function(){try{var a=gx.util.balloon.getNew("vRESNROSEQ");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e113n2_client=function(){this.executeServerEvent("ENTER",true)};this.e123n2_client=function(){this.executeServerEvent("'LISTA'",false)};this.e133n2_client=function(){this.executeServerEvent("'VOLTAR'",false)
};this.e163n2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,14,19,20,21,22,23,24,25];this.GXLastCtrlId=25;this.Grid2Container=new gx.grid.grid(this,2,"WbpLvl2",18,"Grid2","Grid2","Grid2Container",this.CmpContext,this.IsMasterPage,"hgsh003",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid2Container.addSingleLineEdit("Dscacao",19,"vDSCACAO","Ação","","DscAcao","char",0,"px",8,8,"left",null,[],"Dscacao","DscAcao",true,0,false,false);
this.Grid2Container.addSingleLineEdit("Resnroseq",20,"vRESNROSEQ","Reserva","","ResNroSeq","int",0,"px",6,6,"right",null,[],"Resnroseq","ResNroSeq",true,0,false,false);this.Grid2Container.addSingleLineEdit("Resnrovolume",21,"vRESNROVOLUME","Item","","ResNroVolume","int",0,"px",6,6,"right",null,[],"Resnrovolume","ResNroVolume",true,0,false,false);this.Grid2Container.addSingleLineEdit("Resdatvalidade",22,"vRESDATVALIDADE","Validade","","ResDatValidade","date",0,"px",10,10,"right",null,[],"Resdatvalidade","ResDatValidade",true,0,false,false);
this.Grid2Container.addSingleLineEdit("Usbcod",23,"vUSBCOD","Usuário","","UsbCod","char",0,"px",14,14,"left",null,[],"Usbcod","UsbCod",true,0,false,false);this.Grid2Container.addSingleLineEdit("Usbnom",24,"vUSBNOM","Nome","","UsbNom","char",0,"px",50,50,"left",null,[],"Usbnom","UsbNom",true,0,false,false);this.Grid2Container.addSingleLineEdit("Iddocumento",25,"vIDDOCUMENTO","Documento","","IdDocumento","char",0,"px",55,55,"left",null,[],"Iddocumento","IdDocumento",true,0,false,false);this.setGrid(this.Grid2Container);
this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[14]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[19]={lvl:2,type:"char",len:8,dec:0,sign:false,ro:1,grid:18,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"vDSCACAO",gxz:"ZV26DscAcao",gxold:"OV26DscAcao",gxvar:"AV26DscAcao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV26DscAcao=a},v2z:function(a){gx.O.ZV26DscAcao=a},v2c:function(){gx.fn.setGridControlValue("vDSCACAO",gx.fn.currentGridRowImpl(18),gx.O.AV26DscAcao,0)
},c2v:function(){gx.O.AV26DscAcao=this.val()},val:function(){return gx.fn.getGridControlValue("vDSCACAO",gx.fn.currentGridRowImpl(18))},nac:function(){return false}};this.GXValidFnc[20]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:18,gxgrid:this.Grid2Container,fnc:this.Validv_Resnroseq,isvalid:null,rgrid:[],fld:"vRESNROSEQ",gxz:"ZV25ResNroSeq",gxold:"OV25ResNroSeq",gxvar:"AV25ResNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV25ResNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.ZV25ResNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vRESNROSEQ",gx.fn.currentGridRowImpl(18),gx.O.AV25ResNroSeq,0)},c2v:function(){gx.O.AV25ResNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("vRESNROSEQ",gx.fn.currentGridRowImpl(18),".")},nac:function(){return false}};this.GXValidFnc[21]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:18,gxgrid:this.Grid2Container,fnc:null,isvalid:null,rgrid:[],fld:"vRESNROVOLUME",gxz:"ZV24ResNroVolume",gxold:"OV24ResNroVolume",gxvar:"AV24ResNroVolume",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV24ResNroVolume=gx.num.intval(a)
},v2z:function(a){gx.O.ZV24ResNroVolume=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vRESNROVOLUME",gx.fn.currentGridRowImpl(18),gx.O.AV24ResNroVolume,0)},c2v:function(){gx.O.AV24ResNroVolume=this.val()},val:function(){return gx.fn.getGridIntegerValue("vRESNROVOLUME",gx.fn.currentGridRowImpl(18),".")},nac:function(){return false}};this.GXValidFnc[22]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:18,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"vRESDATVALIDADE",gxz:"ZV23ResDatValidade",gxold:"OV23ResDatValidade",gxvar:"AV23ResDatValidade",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.AV23ResDatValidade=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV23ResDatValidade=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("vRESDATVALIDADE",gx.fn.currentGridRowImpl(18),gx.O.AV23ResDatValidade,0)},c2v:function(){gx.O.AV23ResDatValidade=this.val()},val:function(){return gx.fn.getGridControlValue("vRESDATVALIDADE",gx.fn.currentGridRowImpl(18))},nac:function(){return false}};this.GXValidFnc[23]={lvl:2,type:"char",len:14,dec:0,sign:false,ro:1,grid:18,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"vUSBCOD",gxz:"ZV20UsbCod",gxold:"OV20UsbCod",gxvar:"AV20UsbCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV20UsbCod=a
},v2z:function(a){gx.O.ZV20UsbCod=a},v2c:function(){gx.fn.setGridControlValue("vUSBCOD",gx.fn.currentGridRowImpl(18),gx.O.AV20UsbCod,0)},c2v:function(){gx.O.AV20UsbCod=this.val()},val:function(){return gx.fn.getGridControlValue("vUSBCOD",gx.fn.currentGridRowImpl(18))},nac:function(){return false}};this.GXValidFnc[24]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:18,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"vUSBNOM",gxz:"ZV21UsbNom",gxold:"OV21UsbNom",gxvar:"AV21UsbNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV21UsbNom=a
},v2z:function(a){gx.O.ZV21UsbNom=a},v2c:function(){gx.fn.setGridControlValue("vUSBNOM",gx.fn.currentGridRowImpl(18),gx.O.AV21UsbNom,0)},c2v:function(){gx.O.AV21UsbNom=this.val()},val:function(){return gx.fn.getGridControlValue("vUSBNOM",gx.fn.currentGridRowImpl(18))},nac:function(){return false}};this.GXValidFnc[25]={lvl:2,type:"char",len:55,dec:0,sign:false,ro:1,grid:18,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"vIDDOCUMENTO",gxz:"ZV22IdDocumento",gxold:"OV22IdDocumento",gxvar:"AV22IdDocumento",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV22IdDocumento=a
},v2z:function(a){gx.O.ZV22IdDocumento=a},v2c:function(){gx.fn.setGridControlValue("vIDDOCUMENTO",gx.fn.currentGridRowImpl(18),gx.O.AV22IdDocumento,0)},c2v:function(){gx.O.AV22IdDocumento=this.val()},val:function(){return gx.fn.getGridControlValue("vIDDOCUMENTO",gx.fn.currentGridRowImpl(18))},nac:function(){return false}};this.ZV26DscAcao="";this.OV26DscAcao="";this.ZV25ResNroSeq=0;this.OV25ResNroSeq=0;this.ZV24ResNroVolume=0;this.OV24ResNroVolume=0;this.ZV23ResDatValidade=gx.date.nullDate();this.OV23ResDatValidade=gx.date.nullDate();
this.ZV20UsbCod="";this.OV20UsbCod="";this.ZV21UsbNom="";this.OV21UsbNom="";this.ZV22IdDocumento="";this.OV22IdDocumento="";this.AV26DscAcao="";this.AV25ResNroSeq=0;this.AV24ResNroVolume=0;this.AV23ResDatValidade=gx.date.nullDate();this.AV20UsbCod="";this.AV21UsbNom="";this.AV22IdDocumento="";this.A727ResNroSeq=0;this.A258DocNro=0;this.A724ResDatVali=gx.date.nullDate();this.A242DocDesL1Ti="";this.A729ResNroVolu=0;this.A787UsbCod="";this.A786UsbNom="";this.ServerEvents=["e113n2_client","e123n2_client","e133n2_client","e163n2_client"];
this.EnterCtrl=["OK"];this.VarControlMap.A786UsbNom={id:"USBNOM",grid:0,type:"char"};this.VarControlMap.A787UsbCod={id:"USBCOD",grid:0,type:"char"};this.VarControlMap.A729ResNroVolu={id:"RESNROVOLU",grid:0,type:"int"};this.VarControlMap.A242DocDesL1Ti={id:"DOCDESL1TI",grid:0,type:"char"};this.VarControlMap.A724ResDatVali={id:"RESDATVALI",grid:0,type:"date"};this.VarControlMap.A258DocNro={id:"DOCNRO",grid:0,type:"int"};this.VarControlMap.AV16QtdReservas={id:"vQTDRESERVAS",grid:0,type:"int"};this.Grid2Container.addRefreshingVar({rfrVar:"A786UsbNom"});
this.Grid2Container.addRefreshingVar({rfrVar:"A787UsbCod"});this.Grid2Container.addRefreshingVar({rfrVar:"A729ResNroVolu"});this.Grid2Container.addRefreshingVar({rfrVar:"A242DocDesL1Ti"});this.Grid2Container.addRefreshingVar({rfrVar:"A724ResDatVali"});this.Grid2Container.addRefreshingVar({rfrVar:"A258DocNro"});this.Grid2Container.addRefreshingVar({rfrVar:"AV16QtdReservas"});this.SetStandaloneVars()}hgsh003.prototype=new gx.GxObject;gx.setParentObj(new hgsh003());