gx.evt.autoSkip=false;function gx03y0(){this.ServerClass="Gx03Y0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV12pDocNro=gx.fn.getIntegerValue("vPDOCNRO",".");this.AV13pDvoNroVolume=gx.fn.getIntegerValue("vPDVONROVOLUME",".");this.AV14pDarNroSequencia=gx.fn.getIntegerValue("vPDARNROSEQUENCIA",".");this.AV15pDenTipEntidade=gx.fn.getControlValue("vPDENTIPENTIDADE");this.AV16pDenNroSeqEntidade=gx.fn.getIntegerValue("vPDENNROSEQENTIDADE",".")
};this.e13cv2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14cv1_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,43,47,48,49,50,51,52,53,56];this.GXLastCtrlId=56;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",46,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx03y0",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",47,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(258,48,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",true,0,false,false);this.Grid1Container.addSingleLineEdit(317,49,"DVONROVOLU","Número do item","","DvoNroVolu","int",0,"px",6,6,"right",null,[],317,"DvoNroVolu",true,0,false,false);this.Grid1Container.addSingleLineEdit(173,50,"DARNROSEQU","Artigo","","DarNroSequ","int",0,"px",3,3,"right",null,[],173,"DarNroSequ",true,0,false,false);
this.Grid1Container.addComboBox(191,51,"DENTIPENTI","Tipo entidade","DenTipEnti","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(194,52,"DENNROSEQE","Nro sequência","","DenNroSeqE","int",0,"px",3,3,"right",null,[],194,"DenNroSeqE",true,0,false,false);this.Grid1Container.addSingleLineEdit(189,53,"DENCODENTI","Código entidade","Selecionar","DenCodEnti","int",0,"px",7,7,"right",null,[],189,"DenCodEnti",true,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:"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:"TEXTBLOCKDVONROVOLUME",format:0,grid:0};this.GXValidFnc[19]={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:"ZV7cDvoNroVolume",gxold:"OV7cDvoNroVolume",gxvar:"AV7cDvoNroVolume",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cDvoNroVolume=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7cDvoNroVolume=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDVONROVOLUME",gx.O.AV7cDvoNroVolume,0)},c2v:function(){gx.O.AV7cDvoNroVolume=this.val()},val:function(){return gx.fn.getIntegerValue("vCDVONROVOLUME",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKDARNROSEQUENCIA",format:0,grid:0};this.GXValidFnc[24]={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:"vCDARNROSEQUENCIA",gxz:"ZV8cDarNroSequencia",gxold:"OV8cDarNroSequencia",gxvar:"AV8cDarNroSequencia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cDarNroSequencia=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8cDarNroSequencia=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDARNROSEQUENCIA",gx.O.AV8cDarNroSequencia,0)},c2v:function(){gx.O.AV8cDarNroSequencia=this.val()},val:function(){return gx.fn.getIntegerValue("vCDARNROSEQUENCIA",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKDENTIPENTIDADE",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:2,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDENTIPENTIDADE",gxz:"ZV9cDenTipEntidade",gxold:"OV9cDenTipEntidade",gxvar:"AV9cDenTipEntidade",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV9cDenTipEntidade=a
},v2z:function(a){gx.O.ZV9cDenTipEntidade=a},v2c:function(){gx.fn.setComboBoxValue("vCDENTIPENTIDADE",gx.O.AV9cDenTipEntidade)},c2v:function(){gx.O.AV9cDenTipEntidade=this.val()},val:function(){return gx.fn.getControlValue("vCDENTIPENTIDADE")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKDENNROSEQENTIDADE",format:0,grid:0};this.GXValidFnc[34]={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:"vCDENNROSEQENTIDADE",gxz:"ZV10cDenNroSeqEntidade",gxold:"OV10cDenNroSeqEntidade",gxvar:"AV10cDenNroSeqEntidade",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cDenNroSeqEntidade=gx.num.intval(a)
},v2z:function(a){gx.O.ZV10cDenNroSeqEntidade=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDENNROSEQENTIDADE",gx.O.AV10cDenNroSeqEntidade,0)},c2v:function(){gx.O.AV10cDenNroSeqEntidade=this.val()},val:function(){return gx.fn.getIntegerValue("vCDENNROSEQENTIDADE",".")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKDENCODENTIDADE",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCDENCODENTIDADE",gxz:"ZV11cDenCodEntidade",gxold:"OV11cDenCodEntidade",gxvar:"AV11cDenCodEntidade",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cDenCodEntidade=gx.num.intval(a)
},v2z:function(a){gx.O.ZV11cDenCodEntidade=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDENCODENTIDADE",gx.O.AV11cDenCodEntidade,0)},c2v:function(){gx.O.AV11cDenCodEntidade=this.val()},val:function(){return gx.fn.getIntegerValue("vCDENCODENTIDADE",".")},nac:function(){return false}};this.GXValidFnc[42]={fld:"GROUP2",grid:0};this.GXValidFnc[43]={fld:"TABLE3",grid:0};this.GXValidFnc[47]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:46,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(46))},nac:function(){return false}};this.GXValidFnc[48]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:46,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(46),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:46,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(46),gx.O.A317DvoNroVolu,0)},c2v:function(){gx.O.A317DvoNroVolu=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVONROVOLU",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[50]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DARNROSEQU",gxz:"Z173DarNroSequ",gxold:"O173DarNroSequ",gxvar:"A173DarNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A173DarNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z173DarNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DARNROSEQU",gx.fn.currentGridRowImpl(46),gx.O.A173DarNroSequ,0)},c2v:function(){gx.O.A173DarNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("DARNROSEQU",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[51]={lvl:2,type:"char",len:2,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DENTIPENTI",gxz:"Z191DenTipEnti",gxold:"O191DenTipEnti",gxvar:"A191DenTipEnti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A191DenTipEnti=a
},v2z:function(a){gx.O.Z191DenTipEnti=a},v2c:function(){gx.fn.setGridComboBoxValue("DENTIPENTI",gx.fn.currentGridRowImpl(46),gx.O.A191DenTipEnti)},c2v:function(){gx.O.A191DenTipEnti=this.val()},val:function(){return gx.fn.getGridControlValue("DENTIPENTI",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[52]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DENNROSEQE",gxz:"Z194DenNroSeqE",gxold:"O194DenNroSeqE",gxvar:"A194DenNroSeqE",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A194DenNroSeqE=gx.num.intval(a)
},v2z:function(a){gx.O.Z194DenNroSeqE=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DENNROSEQE",gx.fn.currentGridRowImpl(46),gx.O.A194DenNroSeqE,0)},c2v:function(){gx.O.A194DenNroSeqE=this.val()},val:function(){return gx.fn.getGridIntegerValue("DENNROSEQE",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DENCODENTI",gxz:"Z189DenCodEnti",gxold:"O189DenCodEnti",gxvar:"A189DenCodEnti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A189DenCodEnti=gx.num.intval(a)
},v2z:function(a){gx.O.Z189DenCodEnti=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DENCODENTI",gx.fn.currentGridRowImpl(46),gx.O.A189DenCodEnti,0)},c2v:function(){gx.O.A189DenCodEnti=this.val()},val:function(){return gx.fn.getGridIntegerValue("DENCODENTI",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[56]={fld:"TABLE4",grid:0};this.AV6cDocNro=0;this.ZV6cDocNro=0;this.OV6cDocNro=0;this.AV7cDvoNroVolume=0;this.ZV7cDvoNroVolume=0;this.OV7cDvoNroVolume=0;
this.AV8cDarNroSequencia=0;this.ZV8cDarNroSequencia=0;this.OV8cDarNroSequencia=0;this.AV9cDenTipEntidade="";this.ZV9cDenTipEntidade="";this.OV9cDenTipEntidade="";this.AV10cDenNroSeqEntidade=0;this.ZV10cDenNroSeqEntidade=0;this.OV10cDenNroSeqEntidade=0;this.AV11cDenCodEntidade=0;this.ZV11cDenCodEntidade=0;this.OV11cDenCodEntidade=0;this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z258DocNro=0;this.O258DocNro=0;this.Z317DvoNroVolu=0;this.O317DvoNroVolu=0;this.Z173DarNroSequ=0;this.O173DarNroSequ=0;
this.Z191DenTipEnti="";this.O191DenTipEnti="";this.Z194DenNroSeqE=0;this.O194DenNroSeqE=0;this.Z189DenCodEnti=0;this.O189DenCodEnti=0;this.AV12pDocNro=0;this.AV13pDvoNroVolume=0;this.AV14pDarNroSequencia=0;this.AV15pDenTipEntidade="";this.AV16pDenNroSeqEntidade=0;this.AV5LinkSelection="";this.A258DocNro=0;this.A317DvoNroVolu=0;this.A173DarNroSequ=0;this.A191DenTipEnti="";this.A194DenNroSeqE=0;this.A189DenCodEnti=0;this.ServerEvents=["e13cv2_client","e14cv1_client"];this.VarControlMap.AV12pDocNro={id:"vPDOCNRO",grid:0,type:"int"};
this.VarControlMap.AV13pDvoNroVolume={id:"vPDVONROVOLUME",grid:0,type:"int"};this.VarControlMap.AV14pDarNroSequencia={id:"vPDARNROSEQUENCIA",grid:0,type:"int"};this.VarControlMap.AV15pDenTipEntidade={id:"vPDENTIPENTIDADE",grid:0,type:"char"};this.VarControlMap.AV16pDenNroSeqEntidade={id:"vPDENNROSEQENTIDADE",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.SetStandaloneVars()}gx03y0.prototype=new gx.GxObject;gx.setParentObj(new gx03y0());