gx.evt.autoSkip=false;function gx0150(){this.ServerClass="Gx0150";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pDocNro=gx.fn.getIntegerValue("vPDOCNRO",".");this.AV14pUndCod=gx.fn.getIntegerValue("vPUNDCOD",".");this.AV15pDoeNroSequencia=gx.fn.getIntegerValue("vPDOENROSEQUENCIA",".");this.AV16pDvoNroVolume=gx.fn.getIntegerValue("vPDVONROVOLUME",".");this.AV17pDvoNroTomo=gx.fn.getIntegerValue("vPDVONROTOMO",".")
};this.e13cx2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14cx1_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,60,63];this.GXLastCtrlId=63;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",51,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0150",[],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(258,53,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",true,0,false,false);this.Grid1Container.addSingleLineEdit(922,54,"UNDCOD","Unidade depositária","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(281,55,"DOENROSEQU","Nro seqüência exemplar","","DoeNroSequ","int",0,"px",4,4,"right",null,[],281,"DoeNroSequ",true,0,false,false);
this.Grid1Container.addSingleLineEdit(317,56,"DVONROVOLU","Número do item","","DvoNroVolu","int",0,"px",6,6,"right",null,[],317,"DvoNroVolu",true,0,false,false);this.Grid1Container.addSingleLineEdit(316,57,"DVONROTOMO","Número do tomo","Selecionar","DvoNroTomo","int",0,"px",2,2,"right",null,[],316,"DvoNroTomo",true,0,false,false);this.Grid1Container.addSingleLineEdit(315,58,"DVONROTOMB","Número tombo","","DvoNroTomb","int",0,"px",9,9,"right",null,[],315,"DvoNroTomb",true,0,false,false);this.Grid1Container.addSingleLineEdit(306,59,"DVODATBAIX","Data da baixa","","DvoDatbaix","date",0,"px",10,10,"right",null,[],306,"DvoDatbaix",true,0,false,false);
this.Grid1Container.addComboBox(319,60,"DVOTIPFASC","Tipo de fascículo","DvoTipFasc","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:"TEXTBLOCKDOCNRO",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:"vCDOCNRO",gxz:"ZV6cDocNro",gxold:"OV6cDocNro",gxvar:"AV6cDocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cDocNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cDocNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDOCNRO",gx.O.AV6cDocNro,0)},c2v:function(){gx.O.AV6cDocNro=this.val()},val:function(){return gx.fn.getIntegerValue("vCDOCNRO",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKUNDCOD",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCUNDCOD",gxz:"ZV7cUndCod",gxold:"OV7cUndCod",gxvar:"AV7cUndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cUndCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7cUndCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCUNDCOD",gx.O.AV7cUndCod,0)},c2v:function(){gx.O.AV7cUndCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCUNDCOD",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKDOENROSEQUENCIA",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCDOENROSEQUENCIA",gxz:"ZV8cDoeNroSequencia",gxold:"OV8cDoeNroSequencia",gxvar:"AV8cDoeNroSequencia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cDoeNroSequencia=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8cDoeNroSequencia=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDOENROSEQUENCIA",gx.O.AV8cDoeNroSequencia,0)},c2v:function(){gx.O.AV8cDoeNroSequencia=this.val()},val:function(){return gx.fn.getIntegerValue("vCDOENROSEQUENCIA",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKDVONROVOLUME",format:0,grid:0};this.GXValidFnc[29]={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:"ZV9cDvoNroVolume",gxold:"OV9cDvoNroVolume",gxvar:"AV9cDvoNroVolume",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cDvoNroVolume=gx.num.intval(a)
},v2z:function(a){gx.O.ZV9cDvoNroVolume=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDVONROVOLUME",gx.O.AV9cDvoNroVolume,0)},c2v:function(){gx.O.AV9cDvoNroVolume=this.val()},val:function(){return gx.fn.getIntegerValue("vCDVONROVOLUME",".")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKDVONROTOMO",format:0,grid:0};this.GXValidFnc[34]={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:"ZV10cDvoNroTomo",gxold:"OV10cDvoNroTomo",gxvar:"AV10cDvoNroTomo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cDvoNroTomo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV10cDvoNroTomo=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDVONROTOMO",gx.O.AV10cDvoNroTomo,0)},c2v:function(){gx.O.AV10cDvoNroTomo=this.val()},val:function(){return gx.fn.getIntegerValue("vCDVONROTOMO",".")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKDVONROTOMBO",format:0,grid:0};this.GXValidFnc[39]={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:"ZV11cDvoNroTombo",gxold:"OV11cDvoNroTombo",gxvar:"AV11cDvoNroTombo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cDvoNroTombo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV11cDvoNroTombo=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDVONROTOMBO",gx.O.AV11cDvoNroTombo,0)},c2v:function(){gx.O.AV11cDvoNroTombo=this.val()},val:function(){return gx.fn.getIntegerValue("vCDVONROTOMBO",".")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKDVODATBAIXA",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDVODATBAIXA",gxz:"ZV12cDvoDatbaixa",gxold:"OV12cDvoDatbaixa",gxvar:"AV12cDvoDatbaixa",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.AV12cDvoDatbaixa=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV12cDvoDatbaixa=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCDVODATBAIXA",gx.O.AV12cDvoDatbaixa,0)},c2v:function(){gx.O.AV12cDvoDatbaixa=this.val()},val:function(){return gx.fn.getControlValue("vCDVODATBAIXA")},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:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:51,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(51),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:51,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(51),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:51,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(51),gx.O.A281DoeNroSequ,0)},c2v:function(){gx.O.A281DoeNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOENROSEQU",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:51,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(51),gx.O.A317DvoNroVolu,0)},c2v:function(){gx.O.A317DvoNroVolu=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVONROVOLU",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:51,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(51),gx.O.A316DvoNroTomo,0)},c2v:function(){gx.O.A316DvoNroTomo=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVONROTOMO",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZZZZ9",ro:1,grid:51,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(51),gx.O.A315DvoNroTomb,0)},c2v:function(){gx.O.A315DvoNroTomb=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVONROTOMB",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[59]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:51,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(51),gx.O.A306DvoDatbaix,0)},c2v:function(){gx.O.A306DvoDatbaix=this.val()},val:function(){return gx.fn.getGridControlValue("DVODATBAIX",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[60]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:51,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(51),gx.O.A319DvoTipFasc)},c2v:function(){gx.O.A319DvoTipFasc=this.val()},val:function(){return gx.fn.getGridControlValue("DVOTIPFASC",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[63]={fld:"TABLE4",grid:0};this.AV6cDocNro=0;this.ZV6cDocNro=0;this.OV6cDocNro=0;this.AV7cUndCod=0;this.ZV7cUndCod=0;this.OV7cUndCod=0;this.AV8cDoeNroSequencia=0;this.ZV8cDoeNroSequencia=0;
this.OV8cDoeNroSequencia=0;this.AV9cDvoNroVolume=0;this.ZV9cDvoNroVolume=0;this.OV9cDvoNroVolume=0;this.AV10cDvoNroTomo=0;this.ZV10cDvoNroTomo=0;this.OV10cDvoNroTomo=0;this.AV11cDvoNroTombo=0;this.ZV11cDvoNroTombo=0;this.OV11cDvoNroTombo=0;this.AV12cDvoDatbaixa=gx.date.nullDate();this.ZV12cDvoDatbaixa=gx.date.nullDate();this.OV12cDvoDatbaixa=gx.date.nullDate();this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z258DocNro=0;this.O258DocNro=0;this.Z922UndCod=0;this.O922UndCod=0;this.Z281DoeNroSequ=0;
this.O281DoeNroSequ=0;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.Z319DvoTipFasc="";this.O319DvoTipFasc="";this.AV13pDocNro=0;this.AV14pUndCod=0;this.AV15pDoeNroSequencia=0;this.AV16pDvoNroVolume=0;this.AV17pDvoNroTomo=0;this.AV5LinkSelection="";this.A258DocNro=0;this.A922UndCod=0;this.A281DoeNroSequ=0;this.A317DvoNroVolu=0;this.A316DvoNroTomo=0;
this.A315DvoNroTomb=0;this.A306DvoDatbaix=gx.date.nullDate();this.A319DvoTipFasc="";this.ServerEvents=["e13cx2_client","e14cx1_client"];this.VarControlMap.AV13pDocNro={id:"vPDOCNRO",grid:0,type:"int"};this.VarControlMap.AV14pUndCod={id:"vPUNDCOD",grid:0,type:"int"};this.VarControlMap.AV15pDoeNroSequencia={id:"vPDOENROSEQUENCIA",grid:0,type:"int"};this.VarControlMap.AV16pDvoNroVolume={id:"vPDVONROVOLUME",grid:0,type:"int"};this.VarControlMap.AV17pDvoNroTomo={id:"vPDVONROTOMO",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()}gx0150.prototype=new gx.GxObject;gx.setParentObj(new gx0150());