gx.evt.autoSkip=false;function tgst010(){this.ServerClass="Tgst010";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Usucod=function(){gx.ajax.validSrvEvt("dyncall","Valid_Usucod",["gx.O.A968UsuCod","gx.O.A983UsuNom","gx.O.A980UsuIndPriv"],["A983UsuNom","A980UsuIndPriv","Gx_mode","Z968UsuCod","Z983UsuNom","Z980UsuIndPriv","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Usuindpriv=function(){try{var a=gx.util.balloon.getNew("USUINDPRIV");this.AnyError=0;if(!(this.A980UsuIndPriv=="S"||this.A980UsuIndPriv=="N")){try{a.setError("Campo Privilegiado? fora da faixa");this.AnyError=1}catch(b){}}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Prgcod=function(){this.sMode91=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(91,35);this.standaloneModal2L91();this.standaloneNotModal2L91();if(gx.fn.currentGridRowImpl(35)===0){return true
}var a=gx.util.balloon.getNew("PRGCOD",gx.fn.currentGridRowImpl(35));if(gx.fn.gridDuplicateKey(37)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1;return a.show()}gx.ajax.validSrvEvt("dyncall","Valid_Prgcod",["gx.O.A693PrgCod","gx.O.A695PrgDesLong","gx.O.A697PrgIndSegu"],["A695PrgDesLong","A697PrgIndSegu"]);this.Gx_mode=this.sMode91;return true};this.standaloneModal2L91=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("PRGCOD","Enabled",0)}else{gx.fn.setCtrlProperty("PRGCOD","Enabled",1)
}}catch(a){}return true};this.standaloneNotModal2L91=function(){return true};this.e112l86_client=function(){this.executeServerEvent("ENTER",true)};this.e122l86_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,24,26,29,31,36,37,38,39];this.GXLastCtrlId=39;this.Grid1Container=new gx.grid.grid(this,91,"Level1",35,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tgst010",[693],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("nRcdDeleted_91",36,"vNRCDDELETED_91","","","nRcdDeleted_91","int",0,"px",4,4,"right",null,[],"nRcdDeleted_91","nRcdDeleted_91",true,0,false,false);this.Grid1Container.addSingleLineEdit(693,37,"PRGCOD","Programa","","PrgCod","char",0,"px",8,8,"left",null,[],693,"PrgCod",true,0,false,false);this.Grid1Container.addBitmap("prompt_693","PROMPT_693",47,0,"",0,"",null,"","");this.Grid1Container.addSingleLineEdit(695,38,"PRGDESLONG","Descricao","","PrgDesLong","char",0,"px",34,34,"left",null,[],695,"PrgDesLong",true,0,false,false);
this.Grid1Container.addSingleLineEdit(697,39,"PRGINDSEGU","Tem seguranca?","","PrgIndSegu","char",0,"px",2,1,"left",null,[],697,"PrgIndSegu",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:6,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Usucod,isvalid:null,fld:"USUCOD",gxz:"Z968UsuCod",gxold:"O968UsuCod",gxvar:"A968UsuCod",ucs:[],op:[31,26],ip:[31,26,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A968UsuCod=a
},v2z:function(a){gx.O.Z968UsuCod=a},v2c:function(){gx.fn.setControlValue("USUCOD",gx.O.A968UsuCod,0)},c2v:function(){gx.O.A968UsuCod=this.val()},val:function(){return gx.fn.getControlValue("USUCOD")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"USUNOM",gxz:"Z983UsuNom",gxold:"O983UsuNom",gxvar:"A983UsuNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A983UsuNom=a
},v2z:function(a){gx.O.Z983UsuNom=a},v2c:function(){gx.fn.setControlValue("USUNOM",gx.O.A983UsuNom,0)},c2v:function(){gx.O.A983UsuNom=this.val()},val:function(){return gx.fn.getControlValue("USUNOM")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Usuindpriv,isvalid:null,fld:"USUINDPRIV",gxz:"Z980UsuIndPriv",gxold:"O980UsuIndPriv",gxvar:"A980UsuIndPriv",ucs:[],op:[31],ip:[31],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A980UsuIndPriv=a
},v2z:function(a){gx.O.Z980UsuIndPriv=a},v2c:function(){gx.fn.setComboBoxValue("USUINDPRIV",gx.O.A980UsuIndPriv)},c2v:function(){gx.O.A980UsuIndPriv=this.val()},val:function(){return gx.fn.getControlValue("USUINDPRIV")},nac:function(){return false}};this.GXValidFnc[36]={lvl:91,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:35,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_91",gxz:"ZnRcdDeleted_91",gxold:"OnRcdDeleted_91",gxvar:"nRcdDeleted_91",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_91=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_91=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_91",gx.fn.currentGridRowImpl(35),gx.O.nRcdDeleted_91,0)},c2v:function(){gx.O.nRcdDeleted_91=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_91",gx.fn.currentGridRowImpl(35),".")},nac:function(){return false}};this.GXValidFnc[37]={lvl:91,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,38],ip:[39,38,37],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[38]={lvl:91,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[39]={lvl:91,type:"char",len:1,dec:0,sign:false,ro:1,grid:35,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"PRGINDSEGU",gxz:"Z697PrgIndSegu",gxold:"O697PrgIndSegu",gxvar:"A697PrgIndSegu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A697PrgIndSegu=a
},v2z:function(a){gx.O.Z697PrgIndSegu=a},v2c:function(){gx.fn.setGridControlValue("PRGINDSEGU",gx.fn.currentGridRowImpl(35),gx.O.A697PrgIndSegu,0)},c2v:function(){gx.O.A697PrgIndSegu=this.val()},val:function(){return gx.fn.getGridControlValue("PRGINDSEGU",gx.fn.currentGridRowImpl(35))},nac:function(){return false}};this.A968UsuCod="";this.Z968UsuCod="";this.O968UsuCod="";this.A983UsuNom="";this.Z983UsuNom="";this.O983UsuNom="";this.A980UsuIndPriv="";this.Z980UsuIndPriv="";this.O980UsuIndPriv="";this.ZnRcdDeleted_91=0;
this.OnRcdDeleted_91=0;this.Z693PrgCod="";this.O693PrgCod="";this.Z695PrgDesLong="";this.O695PrgDesLong="";this.Z697PrgIndSegu="";this.O697PrgIndSegu="";this.A693PrgCod="";this.A695PrgDesLong="";this.A697PrgIndSegu="";this.ServerEvents=["e112l86_client","e122l86_client"];this.setPrompt("PROMPT_693",[37]);this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tgst010.prototype=new gx.GxObject;gx.setParentObj(new tgst010());