gx.evt.autoSkip=false;function tgst009(){this.ServerClass="Tgst009";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Modcod=function(){gx.ajax.validSrvEvt("dyncall","valid_Modcod",["gx.O.A542ModCod","gx.O.A543ModNom"],["A543ModNom","Gx_mode","Z542ModCod","Z543ModNom","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);return true};this.Valid_Mnunroseqr=function(){try{if(gx.fn.currentGridRowImpl(30)===0){return true
}var a=gx.util.balloon.getNew("MNUNROSEQR",gx.fn.currentGridRowImpl(30));this.AnyError=0;this.sMode90=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(90,30);this.standaloneModal2K90();this.standaloneNotModal2K90();if(gx.fn.gridDuplicateKey(32)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode90;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Rotcod=function(){this.sMode90=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(90,30);
gx.ajax.validSrvEvt("dyncall","valid_Rotcod",["gx.O.A542ModCod","gx.O.A747RotCod","gx.O.A748RotDes"],["A748RotDes"]);this.Gx_mode=this.sMode90;return true};this.standaloneModal2K90=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("MNUNROSEQR","Enabled",0)}else{gx.fn.setCtrlProperty("MNUNROSEQR","Enabled",1)}}catch(a){}return true};this.standaloneNotModal2K90=function(){try{gx.fn.setCtrlProperty("ROTDES","Enabled",0)}catch(a){}return true};this.e112k89_client=function(){this.executeServerEvent("ENTER",true)
};this.e122k89_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,24,26,31,32,33,34];this.GXLastCtrlId=34;this.Grid1Container=new gx.grid.grid(this,90,"Level1",30,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tgst009",[541],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("nRcdDeleted_90",31,"vNRCDDELETED_90","","","nRcdDeleted_90","int",0,"px",4,4,"right",null,[],"nRcdDeleted_90","nRcdDeleted_90",true,0,false,false);
this.Grid1Container.addSingleLineEdit(541,32,"MNUNROSEQR","Sequencia","","MnuNroSeqR","int",0,"px",2,2,"right",null,[],541,"MnuNroSeqR",true,0,false,false);this.Grid1Container.addSingleLineEdit(747,33,"ROTCOD","Rotina","","RotCod","int",0,"px",2,2,"right",null,[],747,"RotCod",true,0,false,false);this.Grid1Container.addBitmap("prompt_747","PROMPT_747",42,0,"",0,"",null,"","");this.Grid1Container.addSingleLineEdit(748,34,"ROTDES","Descricao","","RotDes","char",0,"px",32,32,"left",null,[],748,"RotDes",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:"char",len:2,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Modcod,isvalid:null,fld:"MODCOD",gxz:"Z542ModCod",gxold:"O542ModCod",gxvar:"A542ModCod",ucs:[],op:[26],ip:[26,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A542ModCod=a},v2z:function(a){gx.O.Z542ModCod=a},v2c:function(){gx.fn.setControlValue("MODCOD",gx.O.A542ModCod,0)
},c2v:function(){gx.O.A542ModCod=this.val()},val:function(){return gx.fn.getControlValue("MODCOD")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:25,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"MODNOM",gxz:"Z543ModNom",gxold:"O543ModNom",gxvar:"A543ModNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A543ModNom=a},v2z:function(a){gx.O.Z543ModNom=a},v2c:function(){gx.fn.setControlValue("MODNOM",gx.O.A543ModNom,0)
},c2v:function(){gx.O.A543ModNom=this.val()},val:function(){return gx.fn.getControlValue("MODNOM")},nac:function(){return false}};this.GXValidFnc[31]={lvl:90,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_90",gxz:"ZnRcdDeleted_90",gxold:"OnRcdDeleted_90",gxvar:"nRcdDeleted_90",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_90=gx.num.intval(a)},v2z:function(a){gx.O.ZnRcdDeleted_90=gx.num.intval(a)
},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_90",gx.fn.currentGridRowImpl(30),gx.O.nRcdDeleted_90,0)},c2v:function(){gx.O.nRcdDeleted_90=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_90",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[32]={lvl:90,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:30,gxgrid:this.Grid1Container,fnc:this.Valid_Mnunroseqr,isvalid:null,rgrid:[],fld:"MNUNROSEQR",gxz:"Z541MnuNroSeqR",gxold:"O541MnuNroSeqR",gxvar:"A541MnuNroSeqR",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A541MnuNroSeqR=gx.num.intval(a)
},v2z:function(a){gx.O.Z541MnuNroSeqR=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("MNUNROSEQR",gx.fn.currentGridRowImpl(30),gx.O.A541MnuNroSeqR,0)},c2v:function(){gx.O.A541MnuNroSeqR=this.val()},val:function(){return gx.fn.getGridIntegerValue("MNUNROSEQR",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[33]={lvl:90,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:30,gxgrid:this.Grid1Container,fnc:this.Valid_Rotcod,isvalid:null,rgrid:[],fld:"ROTCOD",gxz:"Z747RotCod",gxold:"O747RotCod",gxvar:"A747RotCod",ucs:[],op:[34],ip:[34,33,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A747RotCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z747RotCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("ROTCOD",gx.fn.currentGridRowImpl(30),gx.O.A747RotCod,0)},c2v:function(){gx.O.A747RotCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("ROTCOD",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[34]={lvl:90,type:"char",len:32,dec:0,sign:false,ro:1,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"ROTDES",gxz:"Z748RotDes",gxold:"O748RotDes",gxvar:"A748RotDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A748RotDes=a
},v2z:function(a){gx.O.Z748RotDes=a},v2c:function(){gx.fn.setGridControlValue("ROTDES",gx.fn.currentGridRowImpl(30),gx.O.A748RotDes,0)},c2v:function(){gx.O.A748RotDes=this.val()},val:function(){return gx.fn.getGridControlValue("ROTDES",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.A542ModCod="";this.Z542ModCod="";this.O542ModCod="";this.A543ModNom="";this.Z543ModNom="";this.O543ModNom="";this.ZnRcdDeleted_90=0;this.OnRcdDeleted_90=0;this.Z541MnuNroSeqR=0;this.O541MnuNroSeqR=0;
this.Z747RotCod=0;this.O747RotCod=0;this.Z748RotDes="";this.O748RotDes="";this.A541MnuNroSeqR=0;this.A747RotCod=0;this.A748RotDes="";this.ServerEvents=["e112k89_client","e122k89_client"];this.setPrompt("PROMPT_747",[33]);this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tgst009.prototype=new gx.GxObject;gx.setParentObj(new tgst009());