gx.evt.autoSkip=false;function gx00t1(){this.ServerClass="Gx00T1";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV10pDocNro=gx.fn.getIntegerValue("vPDOCNRO",".");this.AV11pDavNroSeq=gx.fn.getIntegerValue("vPDAVNROSEQ",".")};this.e13b32_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14b31_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,44];
this.GXLastCtrlId=44;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",36,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx00t1",[],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(180,38,"DAVNROSEQ","Sequência","","DavNroSeq","int",0,"px",4,4,"right",null,[],180,"DavNroSeq",true,0,false,false);
this.Grid1Container.addSingleLineEdit(179,39,"DAVNOMARQU","Nome do arquivo","Selecionar","DavNomArqu","char",0,"px",100,100,"left",null,[],179,"DavNomArqu",true,0,false,false);this.Grid1Container.addComboBox(181,40,"DAVTIPARQU","Tipo de arquivo","DavTipArqu","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(258,41,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",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:"TEXTBLOCKDAVNROSEQ",format:0,grid:0};this.GXValidFnc[14]={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:"vCDAVNROSEQ",gxz:"ZV6cDavNroSeq",gxold:"OV6cDavNroSeq",gxvar:"AV6cDavNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cDavNroSeq=gx.num.intval(a)},v2z:function(a){gx.O.ZV6cDavNroSeq=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("vCDAVNROSEQ",gx.O.AV6cDavNroSeq,0)},c2v:function(){gx.O.AV6cDavNroSeq=this.val()},val:function(){return gx.fn.getIntegerValue("vCDAVNROSEQ",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKDAVNOMARQUIVO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDAVNOMARQUIVO",gxz:"ZV7cDavNomArquivo",gxold:"OV7cDavNomArquivo",gxvar:"AV7cDavNomArquivo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cDavNomArquivo=a
},v2z:function(a){gx.O.ZV7cDavNomArquivo=a},v2c:function(){gx.fn.setControlValue("vCDAVNOMARQUIVO",gx.O.AV7cDavNomArquivo,0)},c2v:function(){gx.O.AV7cDavNomArquivo=this.val()},val:function(){return gx.fn.getControlValue("vCDAVNOMARQUIVO")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKDAVTIPARQUIVO",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:2,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDAVTIPARQUIVO",gxz:"ZV8cDavTipArquivo",gxold:"OV8cDavTipArquivo",gxvar:"AV8cDavTipArquivo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV8cDavTipArquivo=a
},v2z:function(a){gx.O.ZV8cDavTipArquivo=a},v2c:function(){gx.fn.setComboBoxValue("vCDAVTIPARQUIVO",gx.O.AV8cDavTipArquivo)},c2v:function(){gx.O.AV8cDavTipArquivo=this.val()},val:function(){return gx.fn.getControlValue("vCDAVTIPARQUIVO")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKDAVCAMPO1LIVRE",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:"vCDAVCAMPO1LIVRE",gxz:"ZV9cDavCampo1Livre",gxold:"OV9cDavCampo1Livre",gxvar:"AV9cDavCampo1Livre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cDavCampo1Livre=a
},v2z:function(a){gx.O.ZV9cDavCampo1Livre=a},v2c:function(){gx.fn.setControlValue("vCDAVCAMPO1LIVRE",gx.O.AV9cDavCampo1Livre,0)},c2v:function(){gx.O.AV9cDavCampo1Livre=this.val()},val:function(){return gx.fn.getControlValue("vCDAVCAMPO1LIVRE")},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:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DAVNROSEQ",gxz:"Z180DavNroSeq",gxold:"O180DavNroSeq",gxvar:"A180DavNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A180DavNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.Z180DavNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DAVNROSEQ",gx.fn.currentGridRowImpl(36),gx.O.A180DavNroSeq,0)},c2v:function(){gx.O.A180DavNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("DAVNROSEQ",gx.fn.currentGridRowImpl(36),".")},nac:function(){return false}};this.GXValidFnc[39]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DAVNOMARQU",gxz:"Z179DavNomArqu",gxold:"O179DavNomArqu",gxvar:"A179DavNomArqu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A179DavNomArqu=a
},v2z:function(a){gx.O.Z179DavNomArqu=a},v2c:function(){gx.fn.setGridControlValue("DAVNOMARQU",gx.fn.currentGridRowImpl(36),gx.O.A179DavNomArqu,0)},c2v:function(){gx.O.A179DavNomArqu=this.val()},val:function(){return gx.fn.getGridControlValue("DAVNOMARQU",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[40]={lvl:2,type:"char",len:2,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DAVTIPARQU",gxz:"Z181DavTipArqu",gxold:"O181DavTipArqu",gxvar:"A181DavTipArqu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A181DavTipArqu=a
},v2z:function(a){gx.O.Z181DavTipArqu=a},v2c:function(){gx.fn.setGridComboBoxValue("DAVTIPARQU",gx.fn.currentGridRowImpl(36),gx.O.A181DavTipArqu)},c2v:function(){gx.O.A181DavTipArqu=this.val()},val:function(){return gx.fn.getGridControlValue("DAVTIPARQU",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[41]={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[44]={fld:"TABLE4",grid:0};this.AV6cDavNroSeq=0;this.ZV6cDavNroSeq=0;this.OV6cDavNroSeq=0;this.AV7cDavNomArquivo="";this.ZV7cDavNomArquivo="";this.OV7cDavNomArquivo="";this.AV8cDavTipArquivo="";
this.ZV8cDavTipArquivo="";this.OV8cDavTipArquivo="";this.AV9cDavCampo1Livre="";this.ZV9cDavCampo1Livre="";this.OV9cDavCampo1Livre="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z180DavNroSeq=0;this.O180DavNroSeq=0;this.Z179DavNomArqu="";this.O179DavNomArqu="";this.Z181DavTipArqu="";this.O181DavTipArqu="";this.Z258DocNro=0;this.O258DocNro=0;this.AV10pDocNro=0;this.AV11pDavNroSeq=0;this.A178DavCampo1L="";this.AV5LinkSelection="";this.A180DavNroSeq=0;this.A179DavNomArqu="";this.A181DavTipArqu="";
this.A258DocNro=0;this.ServerEvents=["e13b32_client","e14b31_client"];this.VarControlMap.AV10pDocNro={id:"vPDOCNRO",grid:0,type:"int"};this.VarControlMap.AV11pDavNroSeq={id:"vPDAVNROSEQ",grid:0,type:"int"};this.VarControlMap.AV10pDocNro={id:"vPDOCNRO",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.SetStandaloneVars()}gx00t1.prototype=new gx.GxObject;gx.setParentObj(new gx00t1());