gx.evt.autoSkip=false;function gx01h2(){this.ServerClass="Gx01H2";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV10pDocNro=gx.fn.getIntegerValue("vPDOCNRO",".");this.AV11pDviNroItem=gx.fn.getIntegerValue("vPDVINROITEM",".");this.AV12pDviNroVinculo=gx.fn.getIntegerValue("vPDVINROVINCULO",".")};this.e13902_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14901_client=function(){this.executeServerEvent("CANCEL",true)
};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,34,37,38,42,43,44,45,46,47,48,49,52];this.GXLastCtrlId=52;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",41,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx01h2",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",42,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(302,43,"DVINROVINC","Nro vínculo","","DviNroVinc","int",0,"px",3,3,"right",null,[],302,"DviNroVinc",true,0,false,false);
this.Grid1Container.addComboBox(303,44,"DVITIPARQU","Tipo de arquivo","DviTipArqu","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(299,45,"DVIDESVINC","Descrição","","DviDesVinc","char",0,"px",10,10,"left",null,[],299,"DviDesVinc",true,0,false,false);this.Grid1Container.addSingleLineEdit(298,46,"DVICAMPO1L","Campo livre","","DviCampo1L","char",0,"px",20,20,"left",null,[],298,"DviCampo1L",true,0,false,false);this.Grid1Container.addSingleLineEdit(1080,47,"DVINROREPO","Repositório digital","","DviNroRepo","int",0,"px",5,5,"right",null,[],1080,"DviNroRepo",true,0,false,false);
this.Grid1Container.addSingleLineEdit(258,48,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",false,0,false,false);this.Grid1Container.addSingleLineEdit(301,49,"DVINROITEM","Nro item","","DviNroItem","int",0,"px",6,6,"right",null,[],301,"DviNroItem",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:"TEXTBLOCKDVINROVINCULO",format:0,grid:0};
this.GXValidFnc[14]={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:"vCDVINROVINCULO",gxz:"ZV6cDviNroVinculo",gxold:"OV6cDviNroVinculo",gxvar:"AV6cDviNroVinculo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cDviNroVinculo=gx.num.intval(a)},v2z:function(a){gx.O.ZV6cDviNroVinculo=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDVINROVINCULO",gx.O.AV6cDviNroVinculo,0)},c2v:function(){gx.O.AV6cDviNroVinculo=this.val()
},val:function(){return gx.fn.getIntegerValue("vCDVINROVINCULO",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKDVITIPARQUIVO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:2,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDVITIPARQUIVO",gxz:"ZV7cDviTipArquivo",gxold:"OV7cDviTipArquivo",gxvar:"AV7cDviTipArquivo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV7cDviTipArquivo=a},v2z:function(a){gx.O.ZV7cDviTipArquivo=a
},v2c:function(){gx.fn.setComboBoxValue("vCDVITIPARQUIVO",gx.O.AV7cDviTipArquivo)},c2v:function(){gx.O.AV7cDviTipArquivo=this.val()},val:function(){return gx.fn.getControlValue("vCDVITIPARQUIVO")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKDVIDESVINCULO",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDVIDESVINCULO",gxz:"ZV8cDviDesVinculo",gxold:"OV8cDviDesVinculo",gxvar:"AV8cDviDesVinculo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cDviDesVinculo=a
},v2z:function(a){gx.O.ZV8cDviDesVinculo=a},v2c:function(){gx.fn.setControlValue("vCDVIDESVINCULO",gx.O.AV8cDviDesVinculo,0)},c2v:function(){gx.O.AV8cDviDesVinculo=this.val()},val:function(){return gx.fn.getControlValue("vCDVIDESVINCULO")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKDVICAMPO1LIVRE",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDVICAMPO1LIVRE",gxz:"ZV9cDviCampo1Livre",gxold:"OV9cDviCampo1Livre",gxvar:"AV9cDviCampo1Livre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cDviCampo1Livre=a
},v2z:function(a){gx.O.ZV9cDviCampo1Livre=a},v2c:function(){gx.fn.setControlValue("vCDVICAMPO1LIVRE",gx.O.AV9cDviCampo1Livre,0)},c2v:function(){gx.O.AV9cDviCampo1Livre=this.val()},val:function(){return gx.fn.getControlValue("vCDVICAMPO1LIVRE")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKDVINROREPOSITORIODIGITAL",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCDVINROREPOSITORIODIGITAL",gxz:"ZV13cDviNroRepositorioDigital",gxold:"OV13cDviNroRepositorioDigital",gxvar:"AV13cDviNroRepositorioDigital",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV13cDviNroRepositorioDigital=gx.num.intval(a)
},v2z:function(a){gx.O.ZV13cDviNroRepositorioDigital=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDVINROREPOSITORIODIGITAL",gx.O.AV13cDviNroRepositorioDigital,0)},c2v:function(){gx.O.AV13cDviNroRepositorioDigital=this.val()},val:function(){return gx.fn.getIntegerValue("vCDVINROREPOSITORIODIGITAL",".")},nac:function(){return false}};this.GXValidFnc[37]={fld:"GROUP2",grid:0};this.GXValidFnc[38]={fld:"TABLE3",grid:0};this.GXValidFnc[42]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:41,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(41))},nac:function(){return false}};this.GXValidFnc[43]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DVINROVINC",gxz:"Z302DviNroVinc",gxold:"O302DviNroVinc",gxvar:"A302DviNroVinc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A302DviNroVinc=gx.num.intval(a)
},v2z:function(a){gx.O.Z302DviNroVinc=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DVINROVINC",gx.fn.currentGridRowImpl(41),gx.O.A302DviNroVinc,0)},c2v:function(){gx.O.A302DviNroVinc=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVINROVINC",gx.fn.currentGridRowImpl(41),".")},nac:function(){return false}};this.GXValidFnc[44]={lvl:2,type:"char",len:2,dec:0,sign:false,ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DVITIPARQU",gxz:"Z303DviTipArqu",gxold:"O303DviTipArqu",gxvar:"A303DviTipArqu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A303DviTipArqu=a
},v2z:function(a){gx.O.Z303DviTipArqu=a},v2c:function(){gx.fn.setGridComboBoxValue("DVITIPARQU",gx.fn.currentGridRowImpl(41),gx.O.A303DviTipArqu)},c2v:function(){gx.O.A303DviTipArqu=this.val()},val:function(){return gx.fn.getGridControlValue("DVITIPARQU",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[45]={lvl:2,type:"char",len:10,dec:0,sign:false,ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DVIDESVINC",gxz:"Z299DviDesVinc",gxold:"O299DviDesVinc",gxvar:"A299DviDesVinc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A299DviDesVinc=a
},v2z:function(a){gx.O.Z299DviDesVinc=a},v2c:function(){gx.fn.setGridControlValue("DVIDESVINC",gx.fn.currentGridRowImpl(41),gx.O.A299DviDesVinc,0)},c2v:function(){gx.O.A299DviDesVinc=this.val()},val:function(){return gx.fn.getGridControlValue("DVIDESVINC",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[46]={lvl:2,type:"char",len:20,dec:0,sign:false,ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DVICAMPO1L",gxz:"Z298DviCampo1L",gxold:"O298DviCampo1L",gxvar:"A298DviCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A298DviCampo1L=a
},v2z:function(a){gx.O.Z298DviCampo1L=a},v2c:function(){gx.fn.setGridControlValue("DVICAMPO1L",gx.fn.currentGridRowImpl(41),gx.O.A298DviCampo1L,0)},c2v:function(){gx.O.A298DviCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("DVICAMPO1L",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[47]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DVINROREPO",gxz:"Z1080DviNroRepo",gxold:"O1080DviNroRepo",gxvar:"A1080DviNroRepo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1080DviNroRepo=gx.num.intval(a)
},v2z:function(a){gx.O.Z1080DviNroRepo=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DVINROREPO",gx.fn.currentGridRowImpl(41),gx.O.A1080DviNroRepo,0)},c2v:function(){gx.O.A1080DviNroRepo=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVINROREPO",gx.fn.currentGridRowImpl(41),".")},nac:function(){return false}};this.GXValidFnc[48]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:41,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(41),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(41),".")},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DVINROITEM",gxz:"Z301DviNroItem",gxold:"O301DviNroItem",gxvar:"A301DviNroItem",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A301DviNroItem=gx.num.intval(a)
},v2z:function(a){gx.O.Z301DviNroItem=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DVINROITEM",gx.fn.currentGridRowImpl(41),gx.O.A301DviNroItem,0)},c2v:function(){gx.O.A301DviNroItem=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVINROITEM",gx.fn.currentGridRowImpl(41),".")},nac:function(){return false}};this.GXValidFnc[52]={fld:"TABLE4",grid:0};this.AV6cDviNroVinculo=0;this.ZV6cDviNroVinculo=0;this.OV6cDviNroVinculo=0;this.AV7cDviTipArquivo="";this.ZV7cDviTipArquivo="";
this.OV7cDviTipArquivo="";this.AV8cDviDesVinculo="";this.ZV8cDviDesVinculo="";this.OV8cDviDesVinculo="";this.AV9cDviCampo1Livre="";this.ZV9cDviCampo1Livre="";this.OV9cDviCampo1Livre="";this.AV13cDviNroRepositorioDigital=0;this.ZV13cDviNroRepositorioDigital=0;this.OV13cDviNroRepositorioDigital=0;this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z302DviNroVinc=0;this.O302DviNroVinc=0;this.Z303DviTipArqu="";this.O303DviTipArqu="";this.Z299DviDesVinc="";this.O299DviDesVinc="";this.Z298DviCampo1L="";
this.O298DviCampo1L="";this.Z1080DviNroRepo=0;this.O1080DviNroRepo=0;this.Z258DocNro=0;this.O258DocNro=0;this.Z301DviNroItem=0;this.O301DviNroItem=0;this.AV10pDocNro=0;this.AV11pDviNroItem=0;this.AV12pDviNroVinculo=0;this.AV5LinkSelection="";this.A302DviNroVinc=0;this.A303DviTipArqu="";this.A299DviDesVinc="";this.A298DviCampo1L="";this.A1080DviNroRepo=0;this.A258DocNro=0;this.A301DviNroItem=0;this.ServerEvents=["e13902_client","e14901_client"];this.VarControlMap.AV10pDocNro={id:"vPDOCNRO",grid:0,type:"int"};
this.VarControlMap.AV11pDviNroItem={id:"vPDVINROITEM",grid:0,type:"int"};this.VarControlMap.AV12pDviNroVinculo={id:"vPDVINROVINCULO",grid:0,type:"int"};this.VarControlMap.AV10pDocNro={id:"vPDOCNRO",grid:0,type:"int"};this.VarControlMap.AV11pDviNroItem={id:"vPDVINROITEM",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({rfrVar:"AV10pDocNro"});this.Grid1Container.addRefreshingVar({rfrVar:"AV11pDviNroItem"});this.SetStandaloneVars()}gx01h2.prototype=new gx.GxObject;gx.setParentObj(new gx01h2());