gx.evt.autoSkip=false;function tabt072(){this.ServerClass="TAbt072";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Docnro=function(){gx.ajax.validSrvEvt("dyncall","valid_Docnro",["gx.O.A258DocNro","gx.O.A252DocNomApli"],["A252DocNomApli","Gx_mode","Z258DocNro","Z252DocNomApli","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);return true};this.Valid_Dvinroitem=function(){try{if(gx.fn.currentGridRowImpl(30)===0){return true
}var a=gx.util.balloon.getNew("DVINROITEM",gx.fn.currentGridRowImpl(30));this.AnyError=0;this.sMode53=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(53,30);this.standaloneModal0A53();this.standaloneNotModal0A53()}catch(b){}try{this.Gx_mode=this.sMode53;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Dvinrovinc=function(){try{if(gx.fn.currentGridRowImpl(30)===0){return true}var a=gx.util.balloon.getNew("DVINROVINC",gx.fn.currentGridRowImpl(30));this.AnyError=0;this.sMode53=this.Gx_mode;
this.Gx_mode=gx.fn.getGridRowMode(53,30);if(gx.fn.gridDuplicateKey(33)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode53;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal0A53=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("DVINROITEM","Enabled",0)}else{gx.fn.setCtrlProperty("DVINROITEM","Enabled",1)}}catch(a){}try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("DVINROVINC","Enabled",0)
}else{gx.fn.setCtrlProperty("DVINROVINC","Enabled",1)}}catch(a){}return true};this.standaloneNotModal0A53=function(){return true};this.e110a5_client=function(){this.executeServerEvent("ENTER",true)};this.e120a5_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,24,26,31,32,33,34,35,36,37];this.GXLastCtrlId=37;this.Grid1Container=new gx.grid.grid(this,53,"Level1",30,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tabt072",[301,302],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("nRcdDeleted_53",31,"vNRCDDELETED_53","","","nRcdDeleted_53","int",0,"px",4,4,"right",null,[],"nRcdDeleted_53","nRcdDeleted_53",true,0,false,false);this.Grid1Container.addSingleLineEdit(301,32,"DVINROITEM","Nro item","","DviNroItem","int",0,"px",6,6,"right",null,[],301,"DviNroItem",true,0,false,false);this.Grid1Container.addSingleLineEdit(302,33,"DVINROVINC","Nro vínculo","","DviNroVinc","int",0,"px",3,3,"right",null,[],302,"DviNroVinc",true,0,false,false);this.Grid1Container.addSingleLineEdit(300,34,"DVINOMARQU","Nome do arquivo","","DviNomArqu","char",0,"px",190,190,"left",null,[],300,"DviNomArqu",true,0,false,false);
this.Grid1Container.addComboBox(303,35,"DVITIPARQU","Tipo de arquivo","DviTipArqu","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(299,36,"DVIDESVINC","Descrição","","DviDesVinc","char",0,"px",10,10,"left",null,[],299,"DviDesVinc",true,0,false,false);this.Grid1Container.addSingleLineEdit(298,37,"DVICAMPO1L","Campo livre","","DviCampo1L","char",0,"px",20,20,"left",null,[],298,"DviCampo1L",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};
this.GXValidFnc[15]={fld:"TABLE2",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[20]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Docnro,isvalid:null,rgrid:[this.Grid1Container],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[26],ip:[26,20],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.setControlValue("DOCNRO",gx.O.A258DocNro,0)
},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getIntegerValue("DOCNRO",".")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:80,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"DOCNOMAPLI",gxz:"Z252DocNomApli",gxold:"O252DocNomApli",gxvar:"A252DocNomApli",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A252DocNomApli=a},v2z:function(a){gx.O.Z252DocNomApli=a
},v2c:function(){gx.fn.setControlValue("DOCNOMAPLI",gx.O.A252DocNomApli,0)},c2v:function(){gx.O.A252DocNomApli=this.val()},val:function(){return gx.fn.getControlValue("DOCNOMAPLI")},nac:function(){return false}};this.GXValidFnc[31]={lvl:53,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_53",gxz:"ZnRcdDeleted_53",gxold:"OnRcdDeleted_53",gxvar:"nRcdDeleted_53",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_53=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_53=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_53",gx.fn.currentGridRowImpl(30),gx.O.nRcdDeleted_53,0)},c2v:function(){gx.O.nRcdDeleted_53=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_53",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[32]={lvl:53,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:30,gxgrid:this.Grid1Container,fnc:this.Valid_Dvinroitem,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(30),gx.O.A301DviNroItem,0)},c2v:function(){gx.O.A301DviNroItem=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVINROITEM",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[33]={lvl:53,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:30,gxgrid:this.Grid1Container,fnc:this.Valid_Dvinrovinc,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(30),gx.O.A302DviNroVinc,0)},c2v:function(){gx.O.A302DviNroVinc=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVINROVINC",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[34]={lvl:53,type:"char",len:190,dec:0,sign:false,ro:0,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DVINOMARQU",gxz:"Z300DviNomArqu",gxold:"O300DviNomArqu",gxvar:"A300DviNomArqu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A300DviNomArqu=a
},v2z:function(a){gx.O.Z300DviNomArqu=a},v2c:function(){gx.fn.setGridControlValue("DVINOMARQU",gx.fn.currentGridRowImpl(30),gx.O.A300DviNomArqu,0)},c2v:function(){gx.O.A300DviNomArqu=this.val()},val:function(){return gx.fn.getGridControlValue("DVINOMARQU",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.GXValidFnc[35]={lvl:53,type:"char",len:2,dec:0,sign:false,ro:0,grid:30,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(30),gx.O.A303DviTipArqu)},c2v:function(){gx.O.A303DviTipArqu=this.val()},val:function(){return gx.fn.getGridControlValue("DVITIPARQU",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.GXValidFnc[36]={lvl:53,type:"char",len:10,dec:0,sign:false,ro:0,grid:30,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(30),gx.O.A299DviDesVinc,0)},c2v:function(){gx.O.A299DviDesVinc=this.val()},val:function(){return gx.fn.getGridControlValue("DVIDESVINC",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.GXValidFnc[37]={lvl:53,type:"char",len:20,dec:0,sign:false,ro:0,grid:30,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(30),gx.O.A298DviCampo1L,0)},c2v:function(){gx.O.A298DviCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("DVICAMPO1L",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.A258DocNro=0;this.Z258DocNro=0;this.O258DocNro=0;this.A252DocNomApli="";this.Z252DocNomApli="";this.O252DocNomApli="";this.ZnRcdDeleted_53=0;this.OnRcdDeleted_53=0;this.Z301DviNroItem=0;
this.O301DviNroItem=0;this.Z302DviNroVinc=0;this.O302DviNroVinc=0;this.Z300DviNomArqu="";this.O300DviNomArqu="";this.Z303DviTipArqu="";this.O303DviTipArqu="";this.Z299DviDesVinc="";this.O299DviDesVinc="";this.Z298DviCampo1L="";this.O298DviCampo1L="";this.A301DviNroItem=0;this.A302DviNroVinc=0;this.A300DviNomArqu="";this.A303DviTipArqu="";this.A299DviDesVinc="";this.A298DviCampo1L="";this.ServerEvents=["e110a5_client","e120a5_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};
this.SetStandaloneVars()}tabt072.prototype=new gx.GxObject;gx.setParentObj(new tabt072());