gx.evt.autoSkip=false;function tabt068(){this.ServerClass="TAbt068";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.addKeyListener("9",'"SELECIONA ARQUIVO"');this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Docnro=function(){try{var a=gx.util.balloon.getNew("DOCNRO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Undcod=function(){try{var a=gx.util.balloon.getNew("UNDCOD");
this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Doenrosequ=function(){try{var a=gx.util.balloon.getNew("DOENROSEQU");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Dvonrovolu=function(){try{var a=gx.util.balloon.getNew("DVONROVOLU");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Dvonrotomo=function(){gx.ajax.validSrvEvt("dyncall","valid_Dvonrotomo",["gx.O.A258DocNro","gx.O.A922UndCod","gx.O.A281DoeNroSequ","gx.O.A317DvoNroVolu","gx.O.A316DvoNroTomo"],["Gx_mode","Z258DocNro","Z922UndCod","Z281DoeNroSequ","Z317DvoNroVolu","Z316DvoNroTomo","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Favnroseq=function(){try{if(gx.fn.currentGridRowImpl(37)===0){return true}var a=gx.util.balloon.getNew("FAVNROSEQ",gx.fn.currentGridRowImpl(37));this.AnyError=0;this.sMode50=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(50,37);this.standaloneModal1P50();this.standaloneNotModal1P50();if(gx.fn.gridDuplicateKey(39)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode50;if(a==null){return true}return a.show()}catch(b){}return true
};this.Valid_Favnomarqu=function(){try{if(gx.fn.currentGridRowImpl(37)===0){return true}var a=gx.util.balloon.getNew("FAVNOMARQU",gx.fn.currentGridRowImpl(37));this.AnyError=0;this.sMode50=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(50,37);if((""==this.A412FavNomArqu)){try{a.setError("Informe o nome do arquivo");this.AnyError=1}catch(b){}}}catch(b){}try{this.Gx_mode=this.sMode50;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal1P50=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("FAVNROSEQ","Enabled",0)
}else{gx.fn.setCtrlProperty("FAVNROSEQ","Enabled",1)}}catch(a){}return true};this.standaloneNotModal1P50=function(){return true};this.e151p41_client=function(){this.clearMessages();this.addMessage("Deprecated ");this.refreshOutputs([])};this.e161p41_client=function(){this.clearMessages();this.refreshOutputs([])};this.e121p2_client=function(){this.executeServerEvent("'NOVA IMAGEM'",true)};this.e131p2_client=function(){this.executeServerEvent("'SUBSTITUIR IMAGEM'",true)};this.e141p2_client=function(){this.executeServerEvent("'ABRIR ARQUIVO'",true)
};this.e171p41_client=function(){this.executeServerEvent("ENTER",true)};this.e181p41_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,16,20,24,28,32,38,39,40,41,42];this.GXLastCtrlId=42;this.Grid1Container=new gx.grid.grid(this,50,"Level1",37,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tabt068",[413],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("nRcdDeleted_50",38,"vNRCDDELETED_50","Remove Line","","nRcdDeleted_50","int",0,"px",4,4,"right",null,[],"nRcdDeleted_50","nRcdDeleted_50",true,0,false,false);
this.Grid1Container.addSingleLineEdit(413,39,"FAVNROSEQ","Sequencia","","FavNroSeq","int",0,"px",3,3,"right",null,[],413,"FavNroSeq",true,0,false,false);this.Grid1Container.addSingleLineEdit(412,40,"FAVNOMARQU","Arquivo","","FavNomArqu","char",0,"px",100,100,"left",null,[],412,"FavNomArqu",true,0,false,false);this.Grid1Container.addComboBox(414,41,"FAVTIPARQU","Tipo arquivo","FavTipArqu","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(411,42,"FAVCAMPO1L","Campo livre","","FavCampo1L","char",0,"px",10,10,"left",null,[],411,"FavCampo1L",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:[],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.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[20]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Undcod,isvalid:null,rgrid:[this.Grid1Container],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A922UndCod=gx.num.intval(a)},v2z:function(a){gx.O.Z922UndCod=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("UNDCOD",gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getIntegerValue("UNDCOD",".")},nac:function(){return false}};this.GXValidFnc[24]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Doenrosequ,isvalid:null,rgrid:[this.Grid1Container],fld:"DOENROSEQU",gxz:"Z281DoeNroSequ",gxold:"O281DoeNroSequ",gxvar:"A281DoeNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A281DoeNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z281DoeNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("DOENROSEQU",gx.O.A281DoeNroSequ,0)},c2v:function(){gx.O.A281DoeNroSequ=this.val()},val:function(){return gx.fn.getIntegerValue("DOENROSEQU",".")},nac:function(){return false}};this.GXValidFnc[28]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Dvonrovolu,isvalid:null,rgrid:[this.Grid1Container],fld:"DVONROVOLU",gxz:"Z317DvoNroVolu",gxold:"O317DvoNroVolu",gxvar:"A317DvoNroVolu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A317DvoNroVolu=gx.num.intval(a)
},v2z:function(a){gx.O.Z317DvoNroVolu=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("DVONROVOLU",gx.O.A317DvoNroVolu,0)},c2v:function(){gx.O.A317DvoNroVolu=this.val()},val:function(){return gx.fn.getIntegerValue("DVONROVOLU",".")},nac:function(){return false}};this.GXValidFnc[32]={lvl:0,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Dvonrotomo,isvalid:null,rgrid:[this.Grid1Container],fld:"DVONROTOMO",gxz:"Z316DvoNroTomo",gxold:"O316DvoNroTomo",gxvar:"A316DvoNroTomo",ucs:[],op:[],ip:[32,28,24,20,16],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A316DvoNroTomo=gx.num.intval(a)
},v2z:function(a){gx.O.Z316DvoNroTomo=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("DVONROTOMO",gx.O.A316DvoNroTomo,0)},c2v:function(){gx.O.A316DvoNroTomo=this.val()},val:function(){return gx.fn.getIntegerValue("DVONROTOMO",".")},nac:function(){return false}};this.GXValidFnc[38]={lvl:50,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:37,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_50",gxz:"ZnRcdDeleted_50",gxold:"OnRcdDeleted_50",gxvar:"nRcdDeleted_50",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_50=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_50=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_50",gx.fn.currentGridRowImpl(37),gx.O.nRcdDeleted_50,0)},c2v:function(){gx.O.nRcdDeleted_50=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_50",gx.fn.currentGridRowImpl(37),".")},nac:function(){return false}};this.GXValidFnc[39]={lvl:50,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:37,gxgrid:this.Grid1Container,fnc:this.Valid_Favnroseq,isvalid:null,rgrid:[],fld:"FAVNROSEQ",gxz:"Z413FavNroSeq",gxold:"O413FavNroSeq",gxvar:"A413FavNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A413FavNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.Z413FavNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("FAVNROSEQ",gx.fn.currentGridRowImpl(37),gx.O.A413FavNroSeq,0)},c2v:function(){gx.O.A413FavNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("FAVNROSEQ",gx.fn.currentGridRowImpl(37),".")},nac:function(){return false}};this.GXValidFnc[40]={lvl:50,type:"char",len:100,dec:0,sign:false,ro:0,grid:37,gxgrid:this.Grid1Container,fnc:this.Valid_Favnomarqu,isvalid:null,fld:"FAVNOMARQU",gxz:"Z412FavNomArqu",gxold:"O412FavNomArqu",gxvar:"A412FavNomArqu",ucs:[],op:[40],ip:[40],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A412FavNomArqu=a
},v2z:function(a){gx.O.Z412FavNomArqu=a},v2c:function(){gx.fn.setGridControlValue("FAVNOMARQU",gx.fn.currentGridRowImpl(37),gx.O.A412FavNomArqu,0)},c2v:function(){gx.O.A412FavNomArqu=this.val()},val:function(){return gx.fn.getGridControlValue("FAVNOMARQU",gx.fn.currentGridRowImpl(37))},nac:function(){return false}};this.GXValidFnc[41]={lvl:50,type:"char",len:2,dec:0,sign:false,ro:0,grid:37,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"FAVTIPARQU",gxz:"Z414FavTipArqu",gxold:"O414FavTipArqu",gxvar:"A414FavTipArqu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A414FavTipArqu=a
},v2z:function(a){gx.O.Z414FavTipArqu=a},v2c:function(){gx.fn.setGridComboBoxValue("FAVTIPARQU",gx.fn.currentGridRowImpl(37),gx.O.A414FavTipArqu)},c2v:function(){gx.O.A414FavTipArqu=this.val()},val:function(){return gx.fn.getGridControlValue("FAVTIPARQU",gx.fn.currentGridRowImpl(37))},nac:function(){return false}};this.GXValidFnc[42]={lvl:50,type:"char",len:10,dec:0,sign:false,ro:0,grid:37,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"FAVCAMPO1L",gxz:"Z411FavCampo1L",gxold:"O411FavCampo1L",gxvar:"A411FavCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A411FavCampo1L=a
},v2z:function(a){gx.O.Z411FavCampo1L=a},v2c:function(){gx.fn.setGridControlValue("FAVCAMPO1L",gx.fn.currentGridRowImpl(37),gx.O.A411FavCampo1L,0)},c2v:function(){gx.O.A411FavCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("FAVCAMPO1L",gx.fn.currentGridRowImpl(37))},nac:function(){return false}};this.A258DocNro=0;this.Z258DocNro=0;this.O258DocNro=0;this.A922UndCod=0;this.Z922UndCod=0;this.O922UndCod=0;this.A281DoeNroSequ=0;this.Z281DoeNroSequ=0;this.O281DoeNroSequ=0;this.A317DvoNroVolu=0;
this.Z317DvoNroVolu=0;this.O317DvoNroVolu=0;this.A316DvoNroTomo=0;this.Z316DvoNroTomo=0;this.O316DvoNroTomo=0;this.ZnRcdDeleted_50=0;this.OnRcdDeleted_50=0;this.Z413FavNroSeq=0;this.O413FavNroSeq=0;this.Z412FavNomArqu="";this.O412FavNomArqu="";this.Z414FavTipArqu="";this.O414FavTipArqu="";this.Z411FavCampo1L="";this.O411FavCampo1L="";this.A413FavNroSeq=0;this.A412FavNomArqu="";this.A414FavTipArqu="";this.A411FavCampo1L="";this.AV38CfgValCont="";this.AV37PathVinculo="";this.ServerEvents=["e121p2_client","e131p2_client","e141p2_client","e171p41_client","e181p41_client"];
this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tabt068.prototype=new gx.GxObject;gx.setParentObj(new tabt068());