gx.evt.autoSkip=false;function tabt041(){this.ServerClass="TAbt041";this.PackageName="GeneXus.Programs";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_Davnroseq=function(){try{if(gx.fn.currentGridRowImpl(25)===0){return true
}var a=gx.util.balloon.getNew("DAVNROSEQ",gx.fn.currentGridRowImpl(25));this.AnyError=0;this.sMode29=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(29,25);this.standaloneModal1129();this.standaloneNotModal1129();if(gx.fn.gridDuplicateKey(27)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode29;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Davnomarqu=function(){try{if(gx.fn.currentGridRowImpl(25)===0){return true
}var a=gx.util.balloon.getNew("DAVNOMARQU",gx.fn.currentGridRowImpl(25));this.AnyError=0;this.sMode29=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(29,25);if((""==this.A179DavNomArqu)){try{a.setError("Informe o nome do arquivo");this.AnyError=1}catch(b){}}}catch(b){}try{this.Gx_mode=this.sMode29;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal1129=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("DAVNROSEQ","Enabled",0)}else{gx.fn.setCtrlProperty("DAVNROSEQ","Enabled",1)
}}catch(a){}return true};this.standaloneNotModal1129=function(){return true};this.e11115_client=function(){this.executeServerEvent("ENTER",true)};this.e12115_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,16,21,26,27,28,29,30];this.GXLastCtrlId=30;this.Grid1Container=new gx.grid.grid(this,29,"Level1",25,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tabt041",[180],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("nRcdDeleted_29",26,"vNRCDDELETED_29","Remove Line","","nRcdDeleted_29","int",0,"px",4,4,"right",null,[],"nRcdDeleted_29","nRcdDeleted_29",true,0,false,false);this.Grid1Container.addSingleLineEdit(180,27,"DAVNROSEQ","Sequência","","DavNroSeq","int",0,"px",4,4,"right",null,[],180,"DavNroSeq",true,0,false,false);this.Grid1Container.addSingleLineEdit(179,28,"DAVNOMARQU","Nome do arquivo","","DavNomArqu","char",0,"px",100,100,"left",null,[],179,"DavNomArqu",true,0,false,false);
this.Grid1Container.addComboBox(181,29,"DAVTIPARQU","Tipo de arquivo","DavTipArqu","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(178,30,"DAVCAMPO1L","Campo livre","","DavCampo1L","char",0,"px",20,20,"left",null,[],178,"DavCampo1L",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[16]={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.Grid1Container],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[21],ip:[21,16],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[21]={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[26]={lvl:29,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_29",gxz:"ZnRcdDeleted_29",gxold:"OnRcdDeleted_29",gxvar:"nRcdDeleted_29",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_29=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_29=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_29",gx.fn.currentGridRowImpl(25),gx.O.nRcdDeleted_29,0)},c2v:function(){gx.O.nRcdDeleted_29=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_29",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[27]={lvl:29,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:25,gxgrid:this.Grid1Container,fnc:this.Valid_Davnroseq,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(25),gx.O.A180DavNroSeq,0)},c2v:function(){gx.O.A180DavNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("DAVNROSEQ",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[28]={lvl:29,type:"char",len:100,dec:0,sign:false,ro:0,grid:25,gxgrid:this.Grid1Container,fnc:this.Valid_Davnomarqu,isvalid:null,fld:"DAVNOMARQU",gxz:"Z179DavNomArqu",gxold:"O179DavNomArqu",gxvar:"A179DavNomArqu",ucs:[],op:[28],ip:[28],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(25),gx.O.A179DavNomArqu,0)},c2v:function(){gx.O.A179DavNomArqu=this.val()},val:function(){return gx.fn.getGridControlValue("DAVNOMARQU",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[29]={lvl:29,type:"char",len:2,dec:0,sign:false,ro:0,grid:25,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(25),gx.O.A181DavTipArqu)},c2v:function(){gx.O.A181DavTipArqu=this.val()},val:function(){return gx.fn.getGridControlValue("DAVTIPARQU",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[30]={lvl:29,type:"char",len:20,dec:0,sign:false,ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DAVCAMPO1L",gxz:"Z178DavCampo1L",gxold:"O178DavCampo1L",gxvar:"A178DavCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A178DavCampo1L=a
},v2z:function(a){gx.O.Z178DavCampo1L=a},v2c:function(){gx.fn.setGridControlValue("DAVCAMPO1L",gx.fn.currentGridRowImpl(25),gx.O.A178DavCampo1L,0)},c2v:function(){gx.O.A178DavCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("DAVCAMPO1L",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.A258DocNro=0;this.Z258DocNro=0;this.O258DocNro=0;this.A252DocNomApli="";this.Z252DocNomApli="";this.O252DocNomApli="";this.ZnRcdDeleted_29=0;this.OnRcdDeleted_29=0;this.Z180DavNroSeq=0;
this.O180DavNroSeq=0;this.Z179DavNomArqu="";this.O179DavNomArqu="";this.Z181DavTipArqu="";this.O181DavTipArqu="";this.Z178DavCampo1L="";this.O178DavCampo1L="";this.A180DavNroSeq=0;this.A179DavNomArqu="";this.A181DavTipArqu="";this.A178DavCampo1L="";this.ServerEvents=["e11115_client","e12115_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tabt041.prototype=new gx.GxObject;gx.setParentObj(new tabt041());