gx.evt.autoSkip=false;function gx0165(){this.ServerClass="Gx0165";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV8pDocNro=gx.fn.getIntegerValue("vPDOCNRO",".");this.AV9pUndCod=gx.fn.getIntegerValue("vPUNDCOD",".");this.AV10pDoeNroSequencia=gx.fn.getIntegerValue("vPDOENROSEQUENCIA",".");this.AV11pDvoNroVolume=gx.fn.getIntegerValue("vPDVONROVOLUME",".");this.AV12pDvoNroTomo=gx.fn.getIntegerValue("vPDVONROTOMO",".");
this.AV13pDcvNroLinha=gx.fn.getIntegerValue("vPDCVNROLINHA",".")};this.e13b62_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14b61_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,23,27,28,29,30,31,32,33,34,37];this.GXLastCtrlId=37;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",26,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0165",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",27,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(188,28,"DCVNROLINH","Nr. linha","","DcvNroLinh","int",0,"px",2,2,"right",null,[],188,"DcvNroLinh",true,0,false,false);this.Grid1Container.addSingleLineEdit(187,29,"DCVDESVOLU","Descrição","Selecionar","DcvDesVolu","char",0,"px",60,60,"left",null,[],187,"DcvDesVolu",true,0,false,false);this.Grid1Container.addSingleLineEdit(258,30,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",false,0,false,false);
this.Grid1Container.addSingleLineEdit(922,31,"UNDCOD","Unidade depositária","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",false,0,false,false);this.Grid1Container.addSingleLineEdit(281,32,"DOENROSEQU","Nro seqüência exemplar","","DoeNroSequ","int",0,"px",4,4,"right",null,[],281,"DoeNroSequ",false,0,false,false);this.Grid1Container.addSingleLineEdit(317,33,"DVONROVOLU","Número do item","","DvoNroVolu","int",0,"px",6,6,"right",null,[],317,"DvoNroVolu",false,0,false,false);this.Grid1Container.addSingleLineEdit(316,34,"DVONROTOMO","Número do tomo","","DvoNroTomo","int",0,"px",2,2,"right",null,[],316,"DvoNroTomo",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:"TEXTBLOCKDCVNROLINHA",format:0,grid:0};this.GXValidFnc[14]={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:"vCDCVNROLINHA",gxz:"ZV6cDcvNroLinha",gxold:"OV6cDcvNroLinha",gxvar:"AV6cDcvNroLinha",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cDcvNroLinha=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cDcvNroLinha=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDCVNROLINHA",gx.O.AV6cDcvNroLinha,0)},c2v:function(){gx.O.AV6cDcvNroLinha=this.val()},val:function(){return gx.fn.getIntegerValue("vCDCVNROLINHA",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKDCVDESVOLUME",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:60,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDCVDESVOLUME",gxz:"ZV7cDcvDesVolume",gxold:"OV7cDcvDesVolume",gxvar:"AV7cDcvDesVolume",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cDcvDesVolume=a
},v2z:function(a){gx.O.ZV7cDcvDesVolume=a},v2c:function(){gx.fn.setControlValue("vCDCVDESVOLUME",gx.O.AV7cDcvDesVolume,0)},c2v:function(){gx.O.AV7cDcvDesVolume=this.val()},val:function(){return gx.fn.getControlValue("vCDCVDESVOLUME")},nac:function(){return false}};this.GXValidFnc[22]={fld:"GROUP2",grid:0};this.GXValidFnc[23]={fld:"TABLE3",grid:0};this.GXValidFnc[27]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:26,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(26))},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DCVNROLINH",gxz:"Z188DcvNroLinh",gxold:"O188DcvNroLinh",gxvar:"A188DcvNroLinh",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A188DcvNroLinh=gx.num.intval(a)
},v2z:function(a){gx.O.Z188DcvNroLinh=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DCVNROLINH",gx.fn.currentGridRowImpl(26),gx.O.A188DcvNroLinh,0)},c2v:function(){gx.O.A188DcvNroLinh=this.val()},val:function(){return gx.fn.getGridIntegerValue("DCVNROLINH",gx.fn.currentGridRowImpl(26),".")},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"char",len:60,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DCVDESVOLU",gxz:"Z187DcvDesVolu",gxold:"O187DcvDesVolu",gxvar:"A187DcvDesVolu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A187DcvDesVolu=a
},v2z:function(a){gx.O.Z187DcvDesVolu=a},v2c:function(){gx.fn.setGridControlValue("DCVDESVOLU",gx.fn.currentGridRowImpl(26),gx.O.A187DcvDesVolu,0)},c2v:function(){gx.O.A187DcvDesVolu=this.val()},val:function(){return gx.fn.getGridControlValue("DCVDESVOLU",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:26,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(26),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(26),".")},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:26,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(26),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(26),".")},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:26,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(26),gx.O.A281DoeNroSequ,0)},c2v:function(){gx.O.A281DoeNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOENROSEQU",gx.fn.currentGridRowImpl(26),".")},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:26,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(26),gx.O.A317DvoNroVolu,0)},c2v:function(){gx.O.A317DvoNroVolu=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVONROVOLU",gx.fn.currentGridRowImpl(26),".")},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:26,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(26),gx.O.A316DvoNroTomo,0)},c2v:function(){gx.O.A316DvoNroTomo=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVONROTOMO",gx.fn.currentGridRowImpl(26),".")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TABLE4",grid:0};this.AV6cDcvNroLinha=0;this.ZV6cDcvNroLinha=0;this.OV6cDcvNroLinha=0;this.AV7cDcvDesVolume="";this.ZV7cDcvDesVolume="";this.OV7cDcvDesVolume="";
this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z188DcvNroLinh=0;this.O188DcvNroLinh=0;this.Z187DcvDesVolu="";this.O187DcvDesVolu="";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.AV8pDocNro=0;this.AV9pUndCod=0;this.AV10pDoeNroSequencia=0;this.AV11pDvoNroVolume=0;this.AV12pDvoNroTomo=0;this.AV13pDcvNroLinha=0;this.AV5LinkSelection="";
this.A188DcvNroLinh=0;this.A187DcvDesVolu="";this.A258DocNro=0;this.A922UndCod=0;this.A281DoeNroSequ=0;this.A317DvoNroVolu=0;this.A316DvoNroTomo=0;this.ServerEvents=["e13b62_client","e14b61_client"];this.VarControlMap.AV8pDocNro={id:"vPDOCNRO",grid:0,type:"int"};this.VarControlMap.AV9pUndCod={id:"vPUNDCOD",grid:0,type:"int"};this.VarControlMap.AV10pDoeNroSequencia={id:"vPDOENROSEQUENCIA",grid:0,type:"int"};this.VarControlMap.AV11pDvoNroVolume={id:"vPDVONROVOLUME",grid:0,type:"int"};this.VarControlMap.AV12pDvoNroTomo={id:"vPDVONROTOMO",grid:0,type:"int"};
this.VarControlMap.AV13pDcvNroLinha={id:"vPDCVNROLINHA",grid:0,type:"int"};this.VarControlMap.AV8pDocNro={id:"vPDOCNRO",grid:0,type:"int"};this.VarControlMap.AV9pUndCod={id:"vPUNDCOD",grid:0,type:"int"};this.VarControlMap.AV10pDoeNroSequencia={id:"vPDOENROSEQUENCIA",grid:0,type:"int"};this.VarControlMap.AV11pDvoNroVolume={id:"vPDVONROVOLUME",grid:0,type:"int"};this.VarControlMap.AV12pDvoNroTomo={id:"vPDVONROTOMO",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);
this.Grid1Container.addRefreshingVar({rfrVar:"AV8pDocNro"});this.Grid1Container.addRefreshingVar({rfrVar:"AV9pUndCod"});this.Grid1Container.addRefreshingVar({rfrVar:"AV10pDoeNroSequencia"});this.Grid1Container.addRefreshingVar({rfrVar:"AV11pDvoNroVolume"});this.Grid1Container.addRefreshingVar({rfrVar:"AV12pDvoNroTomo"});this.SetStandaloneVars()}gx0165.prototype=new gx.GxObject;gx.setParentObj(new gx0165());