gx.evt.autoSkip=false;function timt031(){this.ServerClass="TImt031";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE");this.A966UspTipAces=gx.fn.getControlValue("USPTIPACES");this.A207DirIndSegu=gx.fn.getControlValue("DIRINDSEGU")};this.Valid_Usucod=function(){gx.ajax.validSrvEvt("dyncall","Valid_Usucod",["gx.O.A968UsuCod","gx.O.A983UsuNom"],["A983UsuNom","Gx_mode","Z968UsuCod","Z983UsuNom","Grid1",["BUTTON1","Enabled"]]);
return true};this.Valid_Dircod=function(){this.sMode99=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(99,33);this.standaloneModal3T99();this.standaloneNotModal3T99();if(gx.fn.currentGridRowImpl(33)===0){return true}var a=gx.util.balloon.getNew("DIRCOD",gx.fn.currentGridRowImpl(33));if(gx.fn.gridDuplicateKey(34)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1;return a.show()}gx.ajax.validSrvEvt("dyncall","Valid_Dircod",["gx.O.A205DirCod","gx.O.A206DirDes","gx.O.A207DirIndSegu"],["A206DirDes","A207DirIndSegu"]);
this.Gx_mode=this.sMode99;return true};this.standaloneModal3T99=function(){return true};this.standaloneNotModal3T99=function(){try{gx.fn.setCtrlProperty("DIRCOD","Enabled",0)}catch(a){}return true};this.e123t2_client=function(){this.executeServerEvent("'MARCA TODOS'",false)};this.e133t2_client=function(){this.executeServerEvent("'DESMARCA TODOS'",false)};this.e143t2_client=function(){this.executeServerEvent("'COPIAR PERFIL'",false)};this.e153t2_client=function(){this.executeServerEvent("'VOLTAR'",false)
};this.e163t86_client=function(){this.executeServerEvent("ENTER",true)};this.e173t86_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[4,15,21,23,26,28,29,34,35,36];this.GXLastCtrlId=36;this.Grid1Container=new gx.grid.grid(this,99,"Level1",33,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"timt031",[205],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit(205,34,"DIRCOD","Direito","","DirCod","char",0,"px",7,7,"left",null,[],205,"DirCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(206,35,"DIRDES","Descrição","","DirDes","char",0,"px",40,40,"left",null,[],206,"DirDes",true,0,false,false);this.Grid1Container.addCheckBox(965,36,"USPINDACES","Acessa","","UspIndAces","char","S","N",null,true,false,0,"px");this.setGrid(this.Grid1Container);this.GXValidFnc[4]={fld:"TABLE1",grid:0};this.GXValidFnc[15]={lvl:0,type:"char",len:6,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vUSUCODDE",gxz:"ZV10UsuCodDe",gxold:"OV10UsuCodDe",gxvar:"AV10UsuCodDe",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10UsuCodDe=a
},v2z:function(a){gx.O.ZV10UsuCodDe=a},v2c:function(){gx.fn.setControlValue("vUSUCODDE",gx.O.AV10UsuCodDe,0)},c2v:function(){gx.O.AV10UsuCodDe=this.val()},val:function(){return gx.fn.getControlValue("vUSUCODDE")},nac:function(){return false}};this.GXValidFnc[21]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[23]={fld:"TABLE2",grid:0};this.GXValidFnc[26]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[28]={lvl:0,type:"char",len:6,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:this.Valid_Usucod,isvalid:null,fld:"USUCOD",gxz:"Z968UsuCod",gxold:"O968UsuCod",gxvar:"A968UsuCod",ucs:[],op:[29],ip:[29,28],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[29]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:1,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[34]={lvl:99,type:"char",len:7,dec:0,sign:false,ro:1,grid:33,gxgrid:this.Grid1Container,fnc:this.Valid_Dircod,isvalid:null,fld:"DIRCOD",gxz:"Z205DirCod",gxold:"O205DirCod",gxvar:"A205DirCod",ucs:[],op:[35],ip:[35,34],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A205DirCod=a},v2z:function(a){gx.O.Z205DirCod=a
},v2c:function(){gx.fn.setGridControlValue("DIRCOD",gx.fn.currentGridRowImpl(33),gx.O.A205DirCod,0)},c2v:function(){gx.O.A205DirCod=this.val()},val:function(){return gx.fn.getGridControlValue("DIRCOD",gx.fn.currentGridRowImpl(33))},nac:function(){return false}};this.GXValidFnc[35]={lvl:99,type:"char",len:40,dec:0,sign:false,ro:1,grid:33,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DIRDES",gxz:"Z206DirDes",gxold:"O206DirDes",gxvar:"A206DirDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A206DirDes=a
},v2z:function(a){gx.O.Z206DirDes=a},v2c:function(){gx.fn.setGridControlValue("DIRDES",gx.fn.currentGridRowImpl(33),gx.O.A206DirDes,0)},c2v:function(){gx.O.A206DirDes=this.val()},val:function(){return gx.fn.getGridControlValue("DIRDES",gx.fn.currentGridRowImpl(33))},nac:function(){return false}};this.GXValidFnc[36]={lvl:99,type:"char",len:1,dec:0,sign:false,ro:0,grid:33,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"USPINDACES",gxz:"Z965UspIndAces",gxold:"O965UspIndAces",gxvar:"A965UspIndAces",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.A965UspIndAces=a
},v2z:function(a){gx.O.Z965UspIndAces=a},v2c:function(){gx.fn.setGridCheckBoxValue("USPINDACES",gx.fn.currentGridRowImpl(33),gx.O.A965UspIndAces,"S")},c2v:function(){gx.O.A965UspIndAces=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("USPINDACES",gx.fn.currentGridRowImpl(33),"S","N")},nac:function(){return false}};this.AV10UsuCodDe="";this.ZV10UsuCodDe="";this.OV10UsuCodDe="";this.A968UsuCod="";this.Z968UsuCod="";this.O968UsuCod="";this.A983UsuNom="";this.Z983UsuNom="";this.O983UsuNom="";
this.Z205DirCod="";this.O205DirCod="";this.Z206DirDes="";this.O206DirDes="";this.Z965UspIndAces="";this.O965UspIndAces="";this.A205DirCod="";this.A206DirDes="";this.A207DirIndSegu="";this.A965UspIndAces="";this.A966UspTipAces="";this.AV11UsuCodCorr="";this.ServerEvents=["e123t2_client","e133t2_client","e143t2_client","e153t2_client","e163t86_client","e173t86_client"];this.EnterCtrl=["BUTTON1"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.VarControlMap.A966UspTipAces={id:"USPTIPACES",grid:33,type:"char"};
this.VarControlMap.A207DirIndSegu={id:"DIRINDSEGU",grid:33,type:"char"};this.SetStandaloneVars()}timt031.prototype=new gx.GxObject;gx.setParentObj(new timt031());