gx.evt.autoSkip=false;function tabt040(){this.ServerClass="TAbt040";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_mode","Z258DocNro","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);return true};this.Valid_Edinro=function(){this.sMode28=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(28,21);
this.standaloneModal0D28();this.standaloneNotModal0D28();if(gx.fn.currentGridRowImpl(21)===0){return true}var a=gx.util.balloon.getNew("EDINRO",gx.fn.currentGridRowImpl(21));if(gx.fn.gridDuplicateKey(23)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1;return a.show()}gx.ajax.validSrvEvt("dyncall","valid_Edinro",["gx.O.A334EdiNro","gx.O.A332EdiNomComp"],["A332EdiNomComp"]);this.Gx_mode=this.sMode28;return true};this.standaloneModal0D28=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("EDINRO","Enabled",0)
}else{gx.fn.setCtrlProperty("EDINRO","Enabled",1)}}catch(a){}return true};this.standaloneNotModal0D28=function(){return true};this.e110d5_client=function(){this.executeServerEvent("ENTER",true)};this.e120d5_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,16,22,23,24];this.GXLastCtrlId=24;this.Grid1Container=new gx.grid.grid(this,28,"Level1",21,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tabt040",[334],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("nRcdDeleted_28",22,"vNRCDDELETED_28","Remove Line","","nRcdDeleted_28","int",0,"px",4,4,"right",null,[],"nRcdDeleted_28","nRcdDeleted_28",true,0,false,false);this.Grid1Container.addSingleLineEdit(334,23,"EDINRO","Editora","","EdiNro","int",0,"px",5,5,"right",null,[],334,"EdiNro",true,0,false,false);this.Grid1Container.addBitmap("prompt_334","PROMPT_334",32,0,"",0,"",null,"","");this.Grid1Container.addSingleLineEdit(332,24,"EDINOMCOMP","Nome","","EdiNomComp","char",0,"px",100,100,"left",null,[],332,"EdiNomComp",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:[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[22]={lvl:28,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:21,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_28",gxz:"ZnRcdDeleted_28",gxold:"OnRcdDeleted_28",gxvar:"nRcdDeleted_28",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_28=gx.num.intval(a)},v2z:function(a){gx.O.ZnRcdDeleted_28=gx.num.intval(a)
},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_28",gx.fn.currentGridRowImpl(21),gx.O.nRcdDeleted_28,0)},c2v:function(){gx.O.nRcdDeleted_28=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_28",gx.fn.currentGridRowImpl(21),".")},nac:function(){return false}};this.GXValidFnc[23]={lvl:28,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:21,gxgrid:this.Grid1Container,fnc:this.Valid_Edinro,isvalid:null,rgrid:[],fld:"EDINRO",gxz:"Z334EdiNro",gxold:"O334EdiNro",gxvar:"A334EdiNro",ucs:[],op:[24],ip:[24,23],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A334EdiNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z334EdiNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("EDINRO",gx.fn.currentGridRowImpl(21),gx.O.A334EdiNro,0)},c2v:function(){gx.O.A334EdiNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("EDINRO",gx.fn.currentGridRowImpl(21),".")},nac:function(){return false}};this.GXValidFnc[24]={lvl:28,type:"char",len:100,dec:0,sign:false,ro:1,grid:21,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EDINOMCOMP",gxz:"Z332EdiNomComp",gxold:"O332EdiNomComp",gxvar:"A332EdiNomComp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A332EdiNomComp=a
},v2z:function(a){gx.O.Z332EdiNomComp=a},v2c:function(){gx.fn.setGridControlValue("EDINOMCOMP",gx.fn.currentGridRowImpl(21),gx.O.A332EdiNomComp,0)},c2v:function(){gx.O.A332EdiNomComp=this.val()},val:function(){return gx.fn.getGridControlValue("EDINOMCOMP",gx.fn.currentGridRowImpl(21))},nac:function(){return false}};this.A258DocNro=0;this.Z258DocNro=0;this.O258DocNro=0;this.ZnRcdDeleted_28=0;this.OnRcdDeleted_28=0;this.Z334EdiNro=0;this.O334EdiNro=0;this.Z332EdiNomComp="";this.O332EdiNomComp="";this.A334EdiNro=0;
this.A332EdiNomComp="";this.ServerEvents=["e110d5_client","e120d5_client"];this.setPrompt("PROMPT_334",[23]);this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tabt040.prototype=new gx.GxObject;gx.setParentObj(new tabt040());