gx.evt.autoSkip=false;function gx0153(){this.ServerClass="Gx0153";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV10pDocNro=gx.fn.getIntegerValue("vPDOCNRO",".");this.AV11pUndCod=gx.fn.getIntegerValue("vPUNDCOD",".");this.AV12pDoeNroSequencia=gx.fn.getIntegerValue("vPDOENROSEQUENCIA",".");this.AV13pDvoNroVolume=gx.fn.getIntegerValue("vPDVONROVOLUME",".");this.AV14pDvoNroTomo=gx.fn.getIntegerValue("vPDVONROTOMO",".")
};this.e13d22_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14d21_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,33,37,38,39,40,41,42,43,44,45,46,47,50];this.GXLastCtrlId=50;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",36,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0153",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",37,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(317,38,"DVONROVOLU","Número do item","","DvoNroVolu","int",0,"px",6,6,"right",null,[],317,"DvoNroVolu",true,0,false,false);this.Grid1Container.addSingleLineEdit(316,39,"DVONROTOMO","Número do tomo","Selecionar","DvoNroTomo","int",0,"px",2,2,"right",null,[],316,"DvoNroTomo",true,0,false,false);this.Grid1Container.addSingleLineEdit(315,40,"DVONROTOMB","Número tombo","","DvoNroTomb","int",0,"px",9,9,"right",null,[],315,"DvoNroTomb",true,0,false,false);
this.Grid1Container.addSingleLineEdit(306,41,"DVODATBAIX","Data da baixa","","DvoDatbaix","date",0,"px",10,10,"right",null,[],306,"DvoDatbaix",true,0,false,false);this.Grid1Container.addSingleLineEdit(309,42,"DVODESMOTI","Motivo baixa / Período fascíc","","DvoDesMoti","char",0,"px",25,25,"left",null,[],309,"DvoDesMoti",true,0,false,false);this.Grid1Container.addSingleLineEdit(318,43,"DVOQTDRENO","Quantidade de renovações","","DvoQtdReno","int",0,"px",2,2,"right",null,[],318,"DvoQtdReno",true,0,false,false);
this.Grid1Container.addComboBox(319,44,"DVOTIPFASC","Tipo de fascículo","DvoTipFasc","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(258,45,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",false,0,false,false);this.Grid1Container.addSingleLineEdit(922,46,"UNDCOD","Unidade depositária","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",false,0,false,false);this.Grid1Container.addSingleLineEdit(281,47,"DOENROSEQU","Nro seqüência exemplar","","DoeNroSequ","int",0,"px",4,4,"right",null,[],281,"DoeNroSequ",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:"TEXTBLOCKDVONROVOLUME",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:"vCDVONROVOLUME",gxz:"ZV6cDvoNroVolume",gxold:"OV6cDvoNroVolume",gxvar:"AV6cDvoNroVolume",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cDvoNroVolume=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cDvoNroVolume=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDVONROVOLUME",gx.O.AV6cDvoNroVolume,0)},c2v:function(){gx.O.AV6cDvoNroVolume=this.val()},val:function(){return gx.fn.getIntegerValue("vCDVONROVOLUME",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKDVONROTOMO",format:0,grid:0};this.GXValidFnc[19]={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:"vCDVONROTOMO",gxz:"ZV7cDvoNroTomo",gxold:"OV7cDvoNroTomo",gxvar:"AV7cDvoNroTomo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cDvoNroTomo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7cDvoNroTomo=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDVONROTOMO",gx.O.AV7cDvoNroTomo,0)},c2v:function(){gx.O.AV7cDvoNroTomo=this.val()},val:function(){return gx.fn.getIntegerValue("vCDVONROTOMO",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKDVONROTOMBO",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCDVONROTOMBO",gxz:"ZV8cDvoNroTombo",gxold:"OV8cDvoNroTombo",gxvar:"AV8cDvoNroTombo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cDvoNroTombo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8cDvoNroTombo=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDVONROTOMBO",gx.O.AV8cDvoNroTombo,0)},c2v:function(){gx.O.AV8cDvoNroTombo=this.val()},val:function(){return gx.fn.getIntegerValue("vCDVONROTOMBO",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKDVODATBAIXA",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDVODATBAIXA",gxz:"ZV9cDvoDatbaixa",gxold:"OV9cDvoDatbaixa",gxvar:"AV9cDvoDatbaixa",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.AV9cDvoDatbaixa=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV9cDvoDatbaixa=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCDVODATBAIXA",gx.O.AV9cDvoDatbaixa,0)},c2v:function(){gx.O.AV9cDvoDatbaixa=this.val()},val:function(){return gx.fn.getControlValue("vCDVODATBAIXA")},nac:function(){return false}};this.GXValidFnc[32]={fld:"GROUP2",grid:0};this.GXValidFnc[33]={fld:"TABLE3",grid:0};this.GXValidFnc[37]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:36,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(36))},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DVONROVOLU",gxz:"Z317DvoNroVolu",gxold:"O317DvoNroVolu",gxvar:"A317DvoNroVolu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A317DvoNroVolu=gx.num.intval(a)
},v2z:function(a){gx.O.Z317DvoNroVolu=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DVONROVOLU",gx.fn.currentGridRowImpl(36),gx.O.A317DvoNroVolu,0)},c2v:function(){gx.O.A317DvoNroVolu=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVONROVOLU",gx.fn.currentGridRowImpl(36),".")},nac:function(){return false}};this.GXValidFnc[39]={lvl:2,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DVONROTOMO",gxz:"Z316DvoNroTomo",gxold:"O316DvoNroTomo",gxvar:"A316DvoNroTomo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A316DvoNroTomo=gx.num.intval(a)
},v2z:function(a){gx.O.Z316DvoNroTomo=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DVONROTOMO",gx.fn.currentGridRowImpl(36),gx.O.A316DvoNroTomo,0)},c2v:function(){gx.O.A316DvoNroTomo=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVONROTOMO",gx.fn.currentGridRowImpl(36),".")},nac:function(){return false}};this.GXValidFnc[40]={lvl:2,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZZZZ9",ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DVONROTOMB",gxz:"Z315DvoNroTomb",gxold:"O315DvoNroTomb",gxvar:"A315DvoNroTomb",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A315DvoNroTomb=gx.num.intval(a)
},v2z:function(a){gx.O.Z315DvoNroTomb=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DVONROTOMB",gx.fn.currentGridRowImpl(36),gx.O.A315DvoNroTomb,0)},c2v:function(){gx.O.A315DvoNroTomb=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVONROTOMB",gx.fn.currentGridRowImpl(36),".")},nac:function(){return false}};this.GXValidFnc[41]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DVODATBAIX",gxz:"Z306DvoDatbaix",gxold:"O306DvoDatbaix",gxvar:"A306DvoDatbaix",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.A306DvoDatbaix=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z306DvoDatbaix=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("DVODATBAIX",gx.fn.currentGridRowImpl(36),gx.O.A306DvoDatbaix,0)},c2v:function(){gx.O.A306DvoDatbaix=this.val()},val:function(){return gx.fn.getGridControlValue("DVODATBAIX",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[42]={lvl:2,type:"char",len:25,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DVODESMOTI",gxz:"Z309DvoDesMoti",gxold:"O309DvoDesMoti",gxvar:"A309DvoDesMoti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A309DvoDesMoti=a
},v2z:function(a){gx.O.Z309DvoDesMoti=a},v2c:function(){gx.fn.setGridControlValue("DVODESMOTI",gx.fn.currentGridRowImpl(36),gx.O.A309DvoDesMoti,0)},c2v:function(){gx.O.A309DvoDesMoti=this.val()},val:function(){return gx.fn.getGridControlValue("DVODESMOTI",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[43]={lvl:2,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DVOQTDRENO",gxz:"Z318DvoQtdReno",gxold:"O318DvoQtdReno",gxvar:"A318DvoQtdReno",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A318DvoQtdReno=gx.num.intval(a)
},v2z:function(a){gx.O.Z318DvoQtdReno=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DVOQTDRENO",gx.fn.currentGridRowImpl(36),gx.O.A318DvoQtdReno,0)},c2v:function(){gx.O.A318DvoQtdReno=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVOQTDRENO",gx.fn.currentGridRowImpl(36),".")},nac:function(){return false}};this.GXValidFnc[44]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DVOTIPFASC",gxz:"Z319DvoTipFasc",gxold:"O319DvoTipFasc",gxvar:"A319DvoTipFasc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A319DvoTipFasc=a
},v2z:function(a){gx.O.Z319DvoTipFasc=a},v2c:function(){gx.fn.setGridComboBoxValue("DVOTIPFASC",gx.fn.currentGridRowImpl(36),gx.O.A319DvoTipFasc)},c2v:function(){gx.O.A319DvoTipFasc=this.val()},val:function(){return gx.fn.getGridControlValue("DVOTIPFASC",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[45]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:36,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(36),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(36),".")},nac:function(){return false}};this.GXValidFnc[46]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A922UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z922UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("UNDCOD",gx.fn.currentGridRowImpl(36),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(36),".")},nac:function(){return false}};this.GXValidFnc[47]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DOENROSEQU",gxz:"Z281DoeNroSequ",gxold:"O281DoeNroSequ",gxvar:"A281DoeNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A281DoeNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z281DoeNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DOENROSEQU",gx.fn.currentGridRowImpl(36),gx.O.A281DoeNroSequ,0)},c2v:function(){gx.O.A281DoeNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOENROSEQU",gx.fn.currentGridRowImpl(36),".")},nac:function(){return false}};this.GXValidFnc[50]={fld:"TABLE4",grid:0};this.AV6cDvoNroVolume=0;this.ZV6cDvoNroVolume=0;this.OV6cDvoNroVolume=0;this.AV7cDvoNroTomo=0;this.ZV7cDvoNroTomo=0;this.OV7cDvoNroTomo=0;
this.AV8cDvoNroTombo=0;this.ZV8cDvoNroTombo=0;this.OV8cDvoNroTombo=0;this.AV9cDvoDatbaixa=gx.date.nullDate();this.ZV9cDvoDatbaixa=gx.date.nullDate();this.OV9cDvoDatbaixa=gx.date.nullDate();this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z317DvoNroVolu=0;this.O317DvoNroVolu=0;this.Z316DvoNroTomo=0;this.O316DvoNroTomo=0;this.Z315DvoNroTomb=0;this.O315DvoNroTomb=0;this.Z306DvoDatbaix=gx.date.nullDate();this.O306DvoDatbaix=gx.date.nullDate();this.Z309DvoDesMoti="";this.O309DvoDesMoti="";this.Z318DvoQtdReno=0;
this.O318DvoQtdReno=0;this.Z319DvoTipFasc="";this.O319DvoTipFasc="";this.Z258DocNro=0;this.O258DocNro=0;this.Z922UndCod=0;this.O922UndCod=0;this.Z281DoeNroSequ=0;this.O281DoeNroSequ=0;this.AV10pDocNro=0;this.AV11pUndCod=0;this.AV12pDoeNroSequencia=0;this.AV13pDvoNroVolume=0;this.AV14pDvoNroTomo=0;this.AV5LinkSelection="";this.A317DvoNroVolu=0;this.A316DvoNroTomo=0;this.A315DvoNroTomb=0;this.A306DvoDatbaix=gx.date.nullDate();this.A309DvoDesMoti="";this.A318DvoQtdReno=0;this.A319DvoTipFasc="";this.A258DocNro=0;
this.A922UndCod=0;this.A281DoeNroSequ=0;this.ServerEvents=["e13d22_client","e14d21_client"];this.VarControlMap.AV10pDocNro={id:"vPDOCNRO",grid:0,type:"int"};this.VarControlMap.AV11pUndCod={id:"vPUNDCOD",grid:0,type:"int"};this.VarControlMap.AV12pDoeNroSequencia={id:"vPDOENROSEQUENCIA",grid:0,type:"int"};this.VarControlMap.AV13pDvoNroVolume={id:"vPDVONROVOLUME",grid:0,type:"int"};this.VarControlMap.AV14pDvoNroTomo={id:"vPDVONROTOMO",grid:0,type:"int"};this.VarControlMap.AV10pDocNro={id:"vPDOCNRO",grid:0,type:"int"};
this.VarControlMap.AV11pUndCod={id:"vPUNDCOD",grid:0,type:"int"};this.VarControlMap.AV12pDoeNroSequencia={id:"vPDOENROSEQUENCIA",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({rfrVar:"AV10pDocNro"});this.Grid1Container.addRefreshingVar({rfrVar:"AV11pUndCod"});
this.Grid1Container.addRefreshingVar({rfrVar:"AV12pDoeNroSequencia"});this.SetStandaloneVars()}gx0153.prototype=new gx.GxObject;gx.setParentObj(new gx0153());