gx.evt.autoSkip=false;function listaselecaoreservas(){this.ServerClass="ListaSelecaoReservas";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A787UsbCod=gx.fn.getControlValue("USBCOD")};this.Valid_Docnro=function(){try{if(gx.fn.currentGridRowImpl(19)===0){return true}var a=gx.util.balloon.getNew("DOCNRO",gx.fn.currentGridRowImpl(19));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e14fw2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])
};this.e11fw2_client=function(){this.executeServerEvent("'DESATIVAR'",false)};this.e15fw1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,6,13,20,21,22,23,24,25,26,27];this.GXLastCtrlId=27;this.SubfileContainer=new gx.grid.grid(this,2,"WbpLvl2",19,"Subfile","Subfile","SubfileContainer",this.CmpContext,this.IsMasterPage,"listaselecaoreservas",[],false,1,true,true,10,true,false,false,"",0,"px","Novo registro",true,false,true,null,null,false,"");this.SubfileContainer.addCheckBox("Grdindselecionada",20,"vGRDINDSELECIONADA","","","GrdIndSelecionada","char","S","N",null,true,false,0,"px");
this.SubfileContainer.addSingleLineEdit(724,21,"RESDATVALI","Validade","","ResDatVali","date",0,"px",10,10,"right",null,[],724,"ResDatVali",true,0,false,false);this.SubfileContainer.addSingleLineEdit(727,22,"RESNROSEQ","Nro","","ResNroSeq","int",0,"px",6,6,"right",null,[],727,"ResNroSeq",true,0,false,false);this.SubfileContainer.addSingleLineEdit(729,23,"RESNROVOLU","Item","","ResNroVolu","int",0,"px",6,6,"right",null,[],729,"ResNroVolu",true,0,false,false);this.SubfileContainer.addSingleLineEdit("Docdestitulo",24,"vDOCDESTITULO","Título","","DocDesTitulo","char",0,"px",80,80,"left",null,[],"Docdestitulo","DocDesTitulo",true,0,false,false);
this.SubfileContainer.addSingleLineEdit(258,25,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",true,0,false,false);this.SubfileContainer.addSingleLineEdit(779,26,"SETCOD","Unid.","","SetCod","int",0,"px",6,6,"right",null,[],779,"SetCod",true,0,false,false);this.SubfileContainer.addComboBox(725,27,"RESINDAVIS","Aviso","ResIndAvis","char",null,0,true,false,0,"px");this.setGrid(this.SubfileContainer);this.GXValidFnc[3]={fld:"TABLE2",grid:0};this.GXValidFnc[6]={fld:"TABLE1",grid:0};
this.GXValidFnc[13]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[20]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:19,gxgrid:this.SubfileContainer,fnc:null,isvalid:null,fld:"vGRDINDSELECIONADA",gxz:"ZV31GrdIndSelecionada",gxold:"OV31GrdIndSelecionada",gxvar:"AV31GrdIndSelecionada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV31GrdIndSelecionada=a},v2z:function(a){gx.O.ZV31GrdIndSelecionada=a},v2c:function(){gx.fn.setGridCheckBoxValue("vGRDINDSELECIONADA",gx.fn.currentGridRowImpl(19),gx.O.AV31GrdIndSelecionada,"S")
},c2v:function(){gx.O.AV31GrdIndSelecionada=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vGRDINDSELECIONADA",gx.fn.currentGridRowImpl(19),"S","N")},nac:function(){return false}};this.GXValidFnc[21]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:19,gxgrid:this.SubfileContainer,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(19),gx.O.A724ResDatVali,0)},c2v:function(){gx.O.A724ResDatVali=this.val()},val:function(){return gx.fn.getGridControlValue("RESDATVALI",gx.fn.currentGridRowImpl(19))},nac:function(){return false}};this.GXValidFnc[22]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:19,gxgrid:this.SubfileContainer,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(19),gx.O.A727ResNroSeq,0)},c2v:function(){gx.O.A727ResNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("RESNROSEQ",gx.fn.currentGridRowImpl(19),".")},nac:function(){return false}};this.GXValidFnc[23]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:19,gxgrid:this.SubfileContainer,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(19),gx.O.A729ResNroVolu,0)},c2v:function(){gx.O.A729ResNroVolu=this.val()},val:function(){return gx.fn.getGridIntegerValue("RESNROVOLU",gx.fn.currentGridRowImpl(19),".")},nac:function(){return false}};this.GXValidFnc[24]={lvl:2,type:"char",len:80,dec:0,sign:false,ro:0,grid:19,gxgrid:this.SubfileContainer,fnc:null,isvalid:null,fld:"vDOCDESTITULO",gxz:"ZV17DocDesTitulo",gxold:"OV17DocDesTitulo",gxvar:"AV17DocDesTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17DocDesTitulo=a
},v2z:function(a){gx.O.ZV17DocDesTitulo=a},v2c:function(){gx.fn.setGridControlValue("vDOCDESTITULO",gx.fn.currentGridRowImpl(19),gx.O.AV17DocDesTitulo,0)},c2v:function(){gx.O.AV17DocDesTitulo=this.val()},val:function(){return gx.fn.getGridControlValue("vDOCDESTITULO",gx.fn.currentGridRowImpl(19))},nac:function(){return false}};this.GXValidFnc[25]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:19,gxgrid:this.SubfileContainer,fnc:this.Valid_Docnro,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(19),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(19),".")},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:19,gxgrid:this.SubfileContainer,fnc:null,isvalid:null,rgrid:[],fld:"SETCOD",gxz:"Z779SetCod",gxold:"O779SetCod",gxvar:"A779SetCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A779SetCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z779SetCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SETCOD",gx.fn.currentGridRowImpl(19),gx.O.A779SetCod,0)},c2v:function(){gx.O.A779SetCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("SETCOD",gx.fn.currentGridRowImpl(19),".")},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:19,gxgrid:this.SubfileContainer,fnc:null,isvalid:null,fld:"RESINDAVIS",gxz:"Z725ResIndAvis",gxold:"O725ResIndAvis",gxvar:"A725ResIndAvis",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A725ResIndAvis=a
},v2z:function(a){gx.O.Z725ResIndAvis=a},v2c:function(){gx.fn.setGridComboBoxValue("RESINDAVIS",gx.fn.currentGridRowImpl(19),gx.O.A725ResIndAvis)},c2v:function(){gx.O.A725ResIndAvis=this.val()},val:function(){return gx.fn.getGridControlValue("RESINDAVIS",gx.fn.currentGridRowImpl(19))},nac:function(){return false}};this.ZV31GrdIndSelecionada="";this.OV31GrdIndSelecionada="";this.Z724ResDatVali=gx.date.nullDate();this.O724ResDatVali=gx.date.nullDate();this.Z727ResNroSeq=0;this.O727ResNroSeq=0;this.Z729ResNroVolu=0;
this.O729ResNroVolu=0;this.ZV17DocDesTitulo="";this.OV17DocDesTitulo="";this.Z258DocNro=0;this.O258DocNro=0;this.Z779SetCod=0;this.O779SetCod=0;this.Z725ResIndAvis="";this.O725ResIndAvis="";this.A787UsbCod="";this.A726ResIndCanc="";this.A242DocDesL1Ti="";this.A728ResNroTomo=0;this.AV31GrdIndSelecionada="";this.A724ResDatVali=gx.date.nullDate();this.A727ResNroSeq=0;this.A729ResNroVolu=0;this.AV17DocDesTitulo="";this.A258DocNro=0;this.A779SetCod=0;this.A725ResIndAvis="";this.ServerEvents=["e14fw2_client","e11fw2_client","e15fw1_client"];
this.VarControlMap.A787UsbCod={id:"USBCOD",grid:0,type:"char"};this.VarControlMap.A787UsbCod={id:"USBCOD",grid:0,type:"char"};this.VarControlMap.A242DocDesL1Ti={id:"DOCDESL1TI",grid:0,type:"char"};this.SubfileContainer.addRefreshingVar({rfrVar:"A787UsbCod"});this.SubfileContainer.addRefreshingVar({rfrVar:"A242DocDesL1Ti"});this.SetStandaloneVars()}listaselecaoreservas.prototype=new gx.GxObject;gx.setParentObj(new listaselecaoreservas());