gx.evt.autoSkip=false;function timt081(){this.ServerClass="TImt081";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A252DocNomApli=gx.fn.getControlValue("DOCNOMAPLI");this.Gx_BScreen=gx.fn.getIntegerValue("vGXBSCREEN",".");this.Gx_mode=gx.fn.getControlValue("vMODE");this.AV37DocNroRelacionado=gx.fn.getIntegerValue("vDOCNRORELACIONADO",".");this.A1081DviDscURL=gx.fn.getControlValue("DVIDSCURL");this.AV31Link=gx.fn.getControlValue("vLINK");
this.AV38TemErroRelacionamento=gx.fn.getControlValue("vTEMERRORELACIONAMENTO");this.AV39MsgRelacionamento=gx.fn.getControlValue("vMSGRELACIONAMENTO");this.A298DviCampo1L=gx.fn.getControlValue("DVICAMPO1L");this.A1082DviDscCami=gx.fn.getControlValue("DVIDSCCAMI");this.AV32Chamador=gx.fn.getControlValue("vCHAMADOR");this.AV33UndCod=gx.fn.getIntegerValue("vUNDCOD",".");this.AV34DoeNroSequencia=gx.fn.getIntegerValue("vDOENROSEQUENCIA",".");this.AV35DvoNroVolume=gx.fn.getIntegerValue("vDVONROVOLUME",".");
this.AV36DvoNroTomo=gx.fn.getIntegerValue("vDVONROTOMO",".")};this.Valid_Docnro=function(){gx.ajax.validSrvEvt("dyncall","Valid_Docnro",["gx.O.A301DviNroItem","gx.O.A258DocNro","gx.O.A252DocNomApli"],["A252DocNomApli","A301DviNroItem","Gx_mode","Z258DocNro","Z252DocNomApli","Z301DviNroItem","Grid",["BUTTON2","Enabled"],["BUTTON1","Enabled"]]);return true};this.Valid_Dvinroitem=function(){try{var a=gx.util.balloon.getNew("DVINROITEM");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()
}catch(b){}return true};this.Valid_Dvinrovinc=function(){try{if(gx.fn.currentGridRowImpl(34)===0){return true}var a=gx.util.balloon.getNew("DVINROVINC",gx.fn.currentGridRowImpl(34));this.AnyError=0;this.sMode53=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(53,34);this.standaloneModal4353();this.standaloneNotModal4353();if(gx.fn.gridDuplicateKey(35)){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.Valid_Dvinomarqu=function(){try{if(gx.fn.currentGridRowImpl(34)===0){return true}var a=gx.util.balloon.getNew("DVINOMARQU",gx.fn.currentGridRowImpl(34));this.AnyError=0;this.sMode53=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(53,34)}catch(b){}try{this.Gx_mode=this.sMode53;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Dvitiparqu=function(){try{if(gx.fn.currentGridRowImpl(34)===0){return true}var a=gx.util.balloon.getNew("DVITIPARQU",gx.fn.currentGridRowImpl(34));
this.AnyError=0;this.sMode53=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(53,34)}catch(b){}try{this.Gx_mode=this.sMode53;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Dvinrorepo=function(){this.sMode53=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(53,34);gx.ajax.validSrvEvt("dyncall","Valid_Dvinrorepo",["gx.O.A258DocNro","gx.O.A301DviNroItem","gx.O.A302DviNroVinc","gx.O.A303DviTipArqu","gx.O.A1080DviNroRepo","gx.O.A1081DviDscURL","gx.O.A300DviNomArqu","gx.O.AV31Link","gx.O.A1082DviDscCami"],["A1081DviDscURL","AV31Link",["AV30ImgAbrir","Link"],"A1082DviDscCami"]);
this.Gx_mode=this.sMode53;return true};this.standaloneModal4353=function(){try{if((this.Gx_mode=="INS")&&(""==this.A303DviTipArqu)&&this.Gx_BScreen==0){this.A303DviTipArqu="09"}}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.standaloneNotModal4353=function(){try{gx.fn.setCtrlProperty("DVINROITEM","Enabled",0)}catch(a){}try{gx.fn.setCtrlProperty("DVINROITEM","Enabled",0)}catch(a){}return true
};this.e12432_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e13435_client=function(){this.executeServerEvent("ENTER",true)};this.e14435_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,8,17,20,23,25,27,29,35,36,37,38,39,40];this.GXLastCtrlId=40;this.GridContainer=new gx.grid.grid(this,53,"Level1",34,"Grid","Grid","GridContainer",this.CmpContext,this.IsMasterPage,"timt081",[302],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.GridContainer.addSingleLineEdit(302,35,"DVINROVINC","Nro","","DviNroVinc","int",28,"px",3,3,"right",null,[],302,"DviNroVinc",true,0,false,false);this.GridContainer.addSingleLineEdit(300,36,"DVINOMARQU","Nome do arquivo","","DviNomArqu","char",410,"px",190,190,"left",null,[],300,"DviNomArqu",true,0,false,false);this.GridContainer.addSingleLineEdit(299,37,"DVIDESVINC","Descrição","","DviDesVinc","char",62,"px",10,10,"left",null,[],299,"DviDesVinc",true,0,false,false);this.GridContainer.addComboBox(303,38,"DVITIPARQU","Tipo de arquivo","DviTipArqu","char",null,0,true,false,0,"px");
this.GridContainer.addSingleLineEdit(1080,39,"DVINROREPO","Repositório","","DviNroRepo","int",72,"px",5,5,"right",null,[],1080,"DviNroRepo",true,0,false,false);this.GridContainer.addBitmap("prompt_1080","PROMPT_1080",44,0,"",0,"",null,"","");this.GridContainer.addBitmap("&Imgabrir","vIMGABRIR",40,36,"px",17,"px",null,"","");this.setGrid(this.GridContainer);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[8]={fld:"TABLE3",grid:0};this.GXValidFnc[17]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[20]={fld:"TABLE2",grid:0};
this.GXValidFnc[23]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[25]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Docnro,isvalid:null,rgrid:[this.GridContainer],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[],ip:[25],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[27]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Dvinroitem,isvalid:null,rgrid:[this.GridContainer],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.setControlValue("DVINROITEM",gx.O.A301DviNroItem,0)},c2v:function(){gx.O.A301DviNroItem=this.val()},val:function(){return gx.fn.getIntegerValue("DVINROITEM",".")},nac:function(){return false}};this.GXValidFnc[35]={lvl:53,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:34,gxgrid:this.GridContainer,fnc:this.Valid_Dvinrovinc,isvalid:null,rgrid:[],fld:"DVINROVINC",gxz:"Z302DviNroVinc",gxold:"O302DviNroVinc",gxvar:"A302DviNroVinc",ucs:[],op:[38],ip:[38],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(34),gx.O.A302DviNroVinc,0)},c2v:function(){gx.O.A302DviNroVinc=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVINROVINC",gx.fn.currentGridRowImpl(34),".")},nac:function(){return false}};this.GXValidFnc[36]={lvl:53,type:"char",len:190,dec:0,sign:false,ro:0,grid:34,gxgrid:this.GridContainer,fnc:this.Valid_Dvinomarqu,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(34),gx.O.A300DviNomArqu,0)},c2v:function(){gx.O.A300DviNomArqu=this.val()},val:function(){return gx.fn.getGridControlValue("DVINOMARQU",gx.fn.currentGridRowImpl(34))},nac:function(){return false}};this.GXValidFnc[37]={lvl:53,type:"char",len:10,dec:0,sign:false,ro:0,grid:34,gxgrid:this.GridContainer,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(34),gx.O.A299DviDesVinc,0)},c2v:function(){gx.O.A299DviDesVinc=this.val()},val:function(){return gx.fn.getGridControlValue("DVIDESVINC",gx.fn.currentGridRowImpl(34))},nac:function(){return false}};this.GXValidFnc[38]={lvl:53,type:"char",len:2,dec:0,sign:false,ro:0,grid:34,gxgrid:this.GridContainer,fnc:this.Valid_Dvitiparqu,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(34),gx.O.A303DviTipArqu)},c2v:function(){gx.O.A303DviTipArqu=this.val()},val:function(){return gx.fn.getGridControlValue("DVITIPARQU",gx.fn.currentGridRowImpl(34))},nac:function(){return false}};this.GXValidFnc[39]={lvl:53,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:34,gxgrid:this.GridContainer,fnc:this.Valid_Dvinrorepo,isvalid:null,rgrid:[],fld:"DVINROREPO",gxz:"Z1080DviNroRepo",gxold:"O1080DviNroRepo",gxvar:"A1080DviNroRepo",ucs:[],op:[],ip:[36,39,38,35,29,25],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(34),gx.O.A1080DviNroRepo,0)},c2v:function(){gx.O.A1080DviNroRepo=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVINROREPO",gx.fn.currentGridRowImpl(34),".")},nac:function(){return false}};this.GXValidFnc[40]={lvl:53,type:"bits",len:5,dec:0,sign:false,ro:1,grid:34,gxgrid:this.GridContainer,fnc:null,isvalid:null,fld:"vIMGABRIR",gxz:"ZV30ImgAbrir",gxold:"OV30ImgAbrir",gxvar:"AV30ImgAbrir",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV30ImgAbrir=a
},v2z:function(a){gx.O.ZV30ImgAbrir=a},v2c:function(){},c2v:function(){gx.O.AV30ImgAbrir=this.val()},val:function(){return gx.fn.getGridControlValue("vIMGABRIR",gx.fn.currentGridRowImpl(34))},nac:function(){return false}};this.A258DocNro=0;this.Z258DocNro=0;this.O258DocNro=0;this.A301DviNroItem=0;this.Z301DviNroItem=0;this.O301DviNroItem=0;this.Z302DviNroVinc=0;this.O302DviNroVinc=0;this.Z300DviNomArqu="";this.O300DviNomArqu="";this.Z299DviDesVinc="";this.O299DviDesVinc="";this.Z303DviTipArqu="";
this.O303DviTipArqu="";this.Z1080DviNroRepo=0;this.O1080DviNroRepo=0;this.ZV30ImgAbrir="";this.OV30ImgAbrir="";this.A302DviNroVinc=0;this.A303DviTipArqu="";this.AV37DocNroRelacionado=0;this.AV31Link="";this.A1081DviDscURL="";this.A1082DviDscCami="";this.A300DviNomArqu="";this.A299DviDesVinc="";this.A298DviCampo1L="";this.A1080DviNroRepo=0;this.AV38TemErroRelacionamento="";this.AV39MsgRelacionamento="";this.AV23UsuCodCorr="";this.AV32Chamador="";this.AV33UndCod=0;this.AV34DoeNroSequencia=0;this.AV35DvoNroVolume=0;
this.AV36DvoNroTomo=0;this.AV30ImgAbrir="";this.Gx_BScreen=0;this.A252DocNomApli="";this.ServerEvents=["e12432_client","e13435_client","e14435_client"];this.setPrompt("PROMPT_1080",[39]);this.EnterCtrl=["BUTTON1"];this.VarControlMap.A252DocNomApli={id:"DOCNOMAPLI",grid:0,type:"char"};this.VarControlMap.Gx_BScreen={id:"vGXBSCREEN",grid:0,type:"int"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.VarControlMap.AV37DocNroRelacionado={id:"vDOCNRORELACIONADO",grid:0,type:"int"};this.VarControlMap.A1081DviDscURL={id:"DVIDSCURL",grid:34,type:"char"};
this.VarControlMap.AV31Link={id:"vLINK",grid:0,type:"char"};this.VarControlMap.AV38TemErroRelacionamento={id:"vTEMERRORELACIONAMENTO",grid:0,type:"char"};this.VarControlMap.AV39MsgRelacionamento={id:"vMSGRELACIONAMENTO",grid:0,type:"char"};this.VarControlMap.A298DviCampo1L={id:"DVICAMPO1L",grid:34,type:"char"};this.VarControlMap.A1082DviDscCami={id:"DVIDSCCAMI",grid:34,type:"char"};this.VarControlMap.AV32Chamador={id:"vCHAMADOR",grid:0,type:"char"};this.VarControlMap.AV33UndCod={id:"vUNDCOD",grid:0,type:"int"};
this.VarControlMap.AV34DoeNroSequencia={id:"vDOENROSEQUENCIA",grid:0,type:"int"};this.VarControlMap.AV35DvoNroVolume={id:"vDVONROVOLUME",grid:0,type:"int"};this.VarControlMap.AV36DvoNroTomo={id:"vDVONROTOMO",grid:0,type:"int"};this.SetStandaloneVars()}timt081.prototype=new gx.GxObject;gx.setParentObj(new timt081());