gx.evt.autoSkip=false;function tgst014(){this.ServerClass="Tgst014";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_BScreen=gx.fn.getIntegerValue("vGXBSCREEN",".");this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Modcod=function(){gx.ajax.validSrvEvt("dyncall","Valid_Modcod",["gx.O.A542ModCod"],[]);return true};this.Valid_Rotcod=function(){gx.ajax.validSrvEvt("dyncall","Valid_Rotcod",["gx.O.A542ModCod","gx.O.A747RotCod","gx.O.A748RotDes"],["A748RotDes","Gx_mode","Z542ModCod","Z747RotCod","Z748RotDes","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Mronroseqp=function(){try{if(gx.fn.currentGridRowImpl(35)===0){return true}var a=gx.util.balloon.getNew("MRONROSEQP",gx.fn.currentGridRowImpl(35));this.AnyError=0;this.sMode93=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(93,35);this.standaloneModal2O93();this.standaloneNotModal2O93();if(gx.fn.gridDuplicateKey(37)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode93;if(a==null){return true}return a.show()
}catch(b){}return true};this.Valid_Prgcod=function(){this.sMode93=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(93,35);gx.ajax.validSrvEvt("dyncall","Valid_Prgcod",["gx.O.A693PrgCod","gx.O.A695PrgDesLong"],["A695PrgDesLong"]);this.Gx_mode=this.sMode93;return true};this.Valid_Mroinddisp=function(){try{if(gx.fn.currentGridRowImpl(35)===0){return true}var a=gx.util.balloon.getNew("MROINDDISP",gx.fn.currentGridRowImpl(35));this.AnyError=0;this.sMode93=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(93,35);
if(!(this.A544MroIndDisp=="S"||this.A544MroIndDisp=="N")){try{a.setError("Campo Disponivel? fora da faixa");this.AnyError=1}catch(b){}}}catch(b){}try{this.Gx_mode=this.sMode93;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal2O93=function(){try{if((this.Gx_mode=="INS")&&(""==this.A544MroIndDisp)&&this.Gx_BScreen==0){this.A544MroIndDisp="S"}}catch(a){}try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("MRONROSEQP","Enabled",0)}else{gx.fn.setCtrlProperty("MRONROSEQP","Enabled",1)
}}catch(a){}return true};this.standaloneNotModal2O93=function(){return true};this.e112o88_client=function(){this.executeServerEvent("ENTER",true)};this.e122o88_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,23,25,29,31,36,37,38,39,40,48];this.GXLastCtrlId=48;this.Grid1Container=new gx.grid.grid(this,93,"Level1",35,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tgst014",[545],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("nRcdDeleted_93",36,"vNRCDDELETED_93","","","nRcdDeleted_93","int",0,"px",4,4,"right",null,[],"nRcdDeleted_93","nRcdDeleted_93",true,0,false,false);this.Grid1Container.addSingleLineEdit(545,37,"MRONROSEQP","Sequencia","","MroNroSeqP","int",0,"px",2,2,"right",null,[],545,"MroNroSeqP",true,0,false,false);this.Grid1Container.addSingleLineEdit(693,38,"PRGCOD","Programa","","PrgCod","char",0,"px",8,8,"left",null,[],693,"PrgCod",true,0,false,false);this.Grid1Container.addBitmap("prompt_693","PROMPT_693",49,0,"",0,"",null,"","");
this.Grid1Container.addSingleLineEdit(695,39,"PRGDESLONG","Descricao","","PrgDesLong","char",0,"px",34,34,"left",null,[],695,"PrgDesLong",true,0,false,false);this.Grid1Container.addSingleLineEdit(544,40,"MROINDDISP","Disponivel?","","MroIndDisp","char",0,"px",2,1,"left",null,[],544,"MroIndDisp",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:[],ip:[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[23]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[25]={lvl:0,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Rotcod,isvalid:null,rgrid:[this.Grid1Container],fld:"ROTCOD",gxz:"Z747RotCod",gxold:"O747RotCod",gxvar:"A747RotCod",ucs:[],op:[31],ip:[31,25,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.setControlValue("ROTCOD",gx.O.A747RotCod,0)},c2v:function(){gx.O.A747RotCod=this.val()},val:function(){return gx.fn.getIntegerValue("ROTCOD",".")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"char",len:32,dec:0,sign:false,ro:0,grid:0,gxgrid:null,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.setControlValue("ROTDES",gx.O.A748RotDes,0)},c2v:function(){gx.O.A748RotDes=this.val()},val:function(){return gx.fn.getControlValue("ROTDES")},nac:function(){return false}};this.GXValidFnc[36]={lvl:93,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:35,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_93",gxz:"ZnRcdDeleted_93",gxold:"OnRcdDeleted_93",gxvar:"nRcdDeleted_93",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_93=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_93=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_93",gx.fn.currentGridRowImpl(35),gx.O.nRcdDeleted_93,0)},c2v:function(){gx.O.nRcdDeleted_93=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_93",gx.fn.currentGridRowImpl(35),".")},nac:function(){return false}};this.GXValidFnc[37]={lvl:93,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:35,gxgrid:this.Grid1Container,fnc:this.Valid_Mronroseqp,isvalid:null,rgrid:[],fld:"MRONROSEQP",gxz:"Z545MroNroSeqP",gxold:"O545MroNroSeqP",gxvar:"A545MroNroSeqP",ucs:[],op:[40],ip:[40],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A545MroNroSeqP=gx.num.intval(a)
},v2z:function(a){gx.O.Z545MroNroSeqP=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("MRONROSEQP",gx.fn.currentGridRowImpl(35),gx.O.A545MroNroSeqP,0)},c2v:function(){gx.O.A545MroNroSeqP=this.val()},val:function(){return gx.fn.getGridIntegerValue("MRONROSEQP",gx.fn.currentGridRowImpl(35),".")},nac:function(){return false}};this.GXValidFnc[38]={lvl:93,type:"char",len:8,dec:0,sign:false,ro:0,grid:35,gxgrid:this.Grid1Container,fnc:this.Valid_Prgcod,isvalid:null,fld:"PRGCOD",gxz:"Z693PrgCod",gxold:"O693PrgCod",gxvar:"A693PrgCod",ucs:[],op:[39],ip:[39,38],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A693PrgCod=a
},v2z:function(a){gx.O.Z693PrgCod=a},v2c:function(){gx.fn.setGridControlValue("PRGCOD",gx.fn.currentGridRowImpl(35),gx.O.A693PrgCod,0)},c2v:function(){gx.O.A693PrgCod=this.val()},val:function(){return gx.fn.getGridControlValue("PRGCOD",gx.fn.currentGridRowImpl(35))},nac:function(){return false}};this.GXValidFnc[39]={lvl:93,type:"char",len:34,dec:0,sign:false,ro:1,grid:35,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"PRGDESLONG",gxz:"Z695PrgDesLong",gxold:"O695PrgDesLong",gxvar:"A695PrgDesLong",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A695PrgDesLong=a
},v2z:function(a){gx.O.Z695PrgDesLong=a},v2c:function(){gx.fn.setGridControlValue("PRGDESLONG",gx.fn.currentGridRowImpl(35),gx.O.A695PrgDesLong,0)},c2v:function(){gx.O.A695PrgDesLong=this.val()},val:function(){return gx.fn.getGridControlValue("PRGDESLONG",gx.fn.currentGridRowImpl(35))},nac:function(){return false}};this.GXValidFnc[40]={lvl:93,type:"char",len:1,dec:0,sign:false,ro:0,grid:35,gxgrid:this.Grid1Container,fnc:this.Valid_Mroinddisp,isvalid:null,fld:"MROINDDISP",gxz:"Z544MroIndDisp",gxold:"O544MroIndDisp",gxvar:"A544MroIndDisp",ucs:[],op:[40],ip:[40],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A544MroIndDisp=a
},v2z:function(a){gx.O.Z544MroIndDisp=a},v2c:function(){gx.fn.setGridControlValue("MROINDDISP",gx.fn.currentGridRowImpl(35),gx.O.A544MroIndDisp,0)},c2v:function(){gx.O.A544MroIndDisp=this.val()},val:function(){return gx.fn.getGridControlValue("MROINDDISP",gx.fn.currentGridRowImpl(35))},nac:function(){return false}};this.GXValidFnc[48]={fld:"PROMPT_542",grid:88};this.A542ModCod="";this.Z542ModCod="";this.O542ModCod="";this.A747RotCod=0;this.Z747RotCod=0;this.O747RotCod=0;this.A748RotDes="";this.Z748RotDes="";
this.O748RotDes="";this.ZnRcdDeleted_93=0;this.OnRcdDeleted_93=0;this.Z545MroNroSeqP=0;this.O545MroNroSeqP=0;this.Z693PrgCod="";this.O693PrgCod="";this.Z695PrgDesLong="";this.O695PrgDesLong="";this.Z544MroIndDisp="";this.O544MroIndDisp="";this.A545MroNroSeqP=0;this.A544MroIndDisp="";this.A693PrgCod="";this.A695PrgDesLong="";this.Gx_BScreen=0;this.ServerEvents=["e112o88_client","e122o88_client"];this.setPrompt("PROMPT_542",[20]);this.setPrompt("PROMPT_693",[38]);this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];
this.VarControlMap.Gx_BScreen={id:"vGXBSCREEN",grid:0,type:"int"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tgst014.prototype=new gx.GxObject;gx.setParentObj(new tgst014());