gx.evt.autoSkip=false;function timt030(){this.ServerClass="TImt030";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_BScreen=gx.fn.getIntegerValue("vGXBSCREEN",".");this.A969UsuCodSexo=gx.fn.getControlValue("USUCODSEXO");this.A970UsuCodUnid=gx.fn.getIntegerValue("USUCODUNID",".");this.A982UsuIndSoli=gx.fn.getControlValue("USUINDSOLI");this.AV34HdeDesAtualizacao=gx.fn.getControlValue("vHDEDESATUALIZACAO");this.AV33HstCodEstacao=gx.fn.getControlValue("vHSTCODESTACAO");
this.AV17UsuCodCorr=gx.fn.getControlValue("vUSUCODCORR");this.AV31HstCodEntidade=gx.fn.getIntegerValue("vHSTCODENTIDADE",".");this.AV30HstTipEntidade=gx.fn.getControlValue("vHSTTIPENTIDADE");this.A972UsuDesSenh=gx.fn.getControlValue("USUDESSENH");this.A977UsuIndEmpr=gx.fn.getControlValue("USUINDEMPR");this.A981UsuIndRela=gx.fn.getControlValue("USUINDRELA");this.A976UsuIndBase=gx.fn.getControlValue("USUINDBASE");this.A978UsuIndFunc=gx.fn.getControlValue("USUINDFUNC");this.A974UsuInd3=gx.fn.getControlValue("USUIND3");
this.A975UsuInd4=gx.fn.getControlValue("USUIND4");this.A967UsuCampo1L=gx.fn.getControlValue("USUCAMPO1L");this.AV27OrigemLista=gx.fn.getControlValue("vORIGEMLISTA");this.Gx_mode=gx.fn.getControlValue("vMODE");this.AV28TgeCodTabela=gx.fn.getControlValue("vTGECODTABELA")};this.Valid_Usucod=function(){gx.ajax.validSrvEvt("dyncall","valid_Usucod",["gx.O.AV27OrigemLista","gx.O.A968UsuCod","gx.O.A983UsuNom","gx.O.A969UsuCodSexo","gx.O.A980UsuIndPriv","gx.O.A972UsuDesSenh","gx.O.A977UsuIndEmpr","gx.O.A981UsuIndRela","gx.O.A976UsuIndBase","gx.O.A978UsuIndFunc","gx.O.A982UsuIndSoli","gx.O.A984UsuTipAces","gx.O.A973UsuInd2","gx.O.A974UsuInd3","gx.O.A975UsuInd4","gx.O.A970UsuCodUnid","gx.O.A967UsuCampo1L","gx.O.A971UsuCodUsua","gx.O.A979UsuIndGera"],["A983UsuNom","A969UsuCodSexo","A980UsuIndPriv","A972UsuDesSenh","A977UsuIndEmpr","A981UsuIndRela","A976UsuIndBase","A978UsuIndFunc","A982UsuIndSoli","A984UsuTipAces","A973UsuInd2","A974UsuInd3","A975UsuInd4","A970UsuCodUnid","A967UsuCampo1L","A971UsuCodUsua","A979UsuIndGera","A1097UsuNomLeit","Gx_mode","Z968UsuCod","Z983UsuNom","Z969UsuCodSexo","Z980UsuIndPriv","Z972UsuDesSenh","Z977UsuIndEmpr","Z981UsuIndRela","Z976UsuIndBase","Z978UsuIndFunc","Z982UsuIndSoli","Z984UsuTipAces","Z973UsuInd2","Z974UsuInd3","Z975UsuInd4","Z970UsuCodUnid","Z967UsuCampo1L","Z971UsuCodUsua","Z979UsuIndGera","Z1097UsuNomLeit",["BUTTON1","Enabled"]]);
return true};this.Valid_Usunom=function(){try{var a=gx.util.balloon.getNew("USUNOM");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}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_Usuind2=function(){try{var a=gx.util.balloon.getNew("USUIND2");
this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Usutipaces=function(){try{var a=gx.util.balloon.getNew("USUTIPACES");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Usuindgera=function(){try{var a=gx.util.balloon.getNew("USUINDGERA");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Usucodusua=function(){gx.ajax.validSrvEvt("dyncall","valid_Usucodusua",["gx.O.A971UsuCodUsua","gx.O.A1097UsuNomLeit"],["A1097UsuNomLeit"]);
return true};this.e113s86_client=function(){this.clearMessages();this.AV28TgeCodTabela="OPERADOR:"+this.A968UsuCod;gx.popup.openUrl(gx.http.formatLink("himh104",[this.AV28TgeCodTabela]),["AV28TgeCodTabela"]);this.refreshOutputs([{av:"AV28TgeCodTabela",fld:"vTGECODTABELA"}])};this.e153s86_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh081",[this.A968UsuCod]),["A968UsuCod"]);this.refreshOutputs([])};this.e143s86_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("timt084",[this.A968UsuCod]),["A968UsuCod"]);
this.refreshOutputs([])};this.e123s86_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("timt102",[this.A968UsuCod,"1"]),[]);this.refreshOutputs([])};this.e133s86_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("timt102",[this.A968UsuCod,"2"]),[]);this.refreshOutputs([])};this.e173s2_client=function(){this.executeServerEvent("'GET PENSA-B'",false)};this.e183s2_client=function(){this.executeServerEvent("'ELIMINAR USUáRIO'",false)};this.e193s2_client=function(){this.executeServerEvent("'PERMISSõES'",false)
};this.e203s2_client=function(){this.executeServerEvent("'CARREGAR DIREITOS USUáRIO'",false)};this.e213s2_client=function(){this.executeServerEvent("'LOCAIS VINCULADOS'",false)};this.e223s2_client=function(){this.executeServerEvent("'LIMPA SENHA'",false)};this.e233s2_client=function(){this.executeServerEvent("'COPIAR PERFIL'",false)};this.e243s2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e253s86_client=function(){this.executeServerEvent("ENTER",true)};this.e263s86_client=function(){this.executeServerEvent("CANCEL",true)
};this.GXValidFnc=[];this.GXCtrlIds=[3,20,22,25,27,30,34,39,42,44,48,50,54,56,60,62,66,68,72,74,77,79,82,95];this.GXLastCtrlId=95;this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[20]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[22]={fld:"TABLE2",grid:0};this.GXValidFnc[25]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[27]={fld:"TABLE3",grid:0};this.GXValidFnc[30]={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:[68,77,56,62,50,44],ip:[68,77,56,62,50,44,30],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[34]={fld:"TABLE4",grid:0};this.GXValidFnc[39]={lvl:0,type:"char",len:6,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vUSUCODDE",gxz:"ZV22UsuCodDe",gxold:"OV22UsuCodDe",gxvar:"AV22UsuCodDe",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV22UsuCodDe=a
},v2z:function(a){gx.O.ZV22UsuCodDe=a},v2c:function(){gx.fn.setControlValue("vUSUCODDE",gx.O.AV22UsuCodDe,0)},c2v:function(){gx.O.AV22UsuCodDe=this.val()},val:function(){return gx.fn.getControlValue("vUSUCODDE")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Usunom,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[48]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[50]={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:[50],ip:[50],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[54]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[56]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Usuind2,isvalid:null,fld:"USUIND2",gxz:"Z973UsuInd2",gxold:"O973UsuInd2",gxvar:"A973UsuInd2",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A973UsuInd2=a
},v2z:function(a){gx.O.Z973UsuInd2=a},v2c:function(){gx.fn.setComboBoxValue("USUIND2",gx.O.A973UsuInd2)},c2v:function(){gx.O.A973UsuInd2=this.val()},val:function(){return gx.fn.getControlValue("USUIND2")},nac:function(){return false}};this.GXValidFnc[60]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[62]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Usutipaces,isvalid:null,fld:"USUTIPACES",gxz:"Z984UsuTipAces",gxold:"O984UsuTipAces",gxvar:"A984UsuTipAces",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A984UsuTipAces=a
},v2z:function(a){gx.O.Z984UsuTipAces=a},v2c:function(){gx.fn.setComboBoxValue("USUTIPACES",gx.O.A984UsuTipAces)},c2v:function(){gx.O.A984UsuTipAces=this.val()},val:function(){return gx.fn.getControlValue("USUTIPACES")},nac:function(){return false}};this.GXValidFnc[66]={fld:"TEXTBLOCK10",format:0,grid:0};this.GXValidFnc[68]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Usuindgera,isvalid:null,fld:"USUINDGERA",gxz:"Z979UsuIndGera",gxold:"O979UsuIndGera",gxvar:"A979UsuIndGera",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.A979UsuIndGera=a
},v2z:function(a){gx.O.Z979UsuIndGera=a},v2c:function(){gx.fn.setCheckBoxValue("USUINDGERA",gx.O.A979UsuIndGera,"S")},c2v:function(){gx.O.A979UsuIndGera=this.val()},val:function(){return gx.fn.getCheckBoxValue("USUINDGERA","S","N")},nac:function(){return false}};this.GXValidFnc[72]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[74]={fld:"TABLE6",grid:0};this.GXValidFnc[77]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Usucodusua,isvalid:null,fld:"USUCODUSUA",gxz:"Z971UsuCodUsua",gxold:"O971UsuCodUsua",gxvar:"A971UsuCodUsua",ucs:[],op:[79],ip:[79,77],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A971UsuCodUsua=a
},v2z:function(a){gx.O.Z971UsuCodUsua=a},v2c:function(){gx.fn.setControlValue("USUCODUSUA",gx.O.A971UsuCodUsua,0)},c2v:function(){gx.O.A971UsuCodUsua=this.val()},val:function(){return gx.fn.getControlValue("USUCODUSUA")},nac:function(){return false}};this.GXValidFnc[79]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"USUNOMLEIT",gxz:"Z1097UsuNomLeit",gxold:"O1097UsuNomLeit",gxvar:"A1097UsuNomLeit",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1097UsuNomLeit=a
},v2z:function(a){gx.O.Z1097UsuNomLeit=a},v2c:function(){gx.fn.setControlValue("USUNOMLEIT",gx.O.A1097UsuNomLeit,0)},c2v:function(){gx.O.A1097UsuNomLeit=this.val()},val:function(){return gx.fn.getControlValue("USUNOMLEIT")},nac:function(){return false}};this.GXValidFnc[82]={fld:"TABLE5",grid:0};this.GXValidFnc[95]={fld:"PROMPT_971",grid:86};this.A968UsuCod="";this.Z968UsuCod="";this.O968UsuCod="";this.AV22UsuCodDe="";this.ZV22UsuCodDe="";this.OV22UsuCodDe="";this.A983UsuNom="";this.Z983UsuNom="";
this.O983UsuNom="";this.A980UsuIndPriv="";this.Z980UsuIndPriv="";this.O980UsuIndPriv="";this.A973UsuInd2="";this.Z973UsuInd2="";this.O973UsuInd2="";this.A984UsuTipAces="";this.Z984UsuTipAces="";this.O984UsuTipAces="";this.A979UsuIndGera="";this.Z979UsuIndGera="";this.O979UsuIndGera="";this.A971UsuCodUsua="";this.Z971UsuCodUsua="";this.O971UsuCodUsua="";this.A1097UsuNomLeit="";this.Z1097UsuNomLeit="";this.O1097UsuNomLeit="";this.AV17UsuCodCorr="";this.AV27OrigemLista="";this.AV30HstTipEntidade="";
this.AV31HstCodEntidade=0;this.AV32IpStation="";this.AV33HstCodEstacao="";this.AV34HdeDesAtualizacao="";this.Gx_BScreen=0;this.A969UsuCodSexo="";this.A972UsuDesSenh="";this.A977UsuIndEmpr="";this.A981UsuIndRela="";this.A976UsuIndBase="";this.A978UsuIndFunc="";this.A982UsuIndSoli="";this.A974UsuInd3="";this.A975UsuInd4="";this.A970UsuCodUnid=0;this.A967UsuCampo1L="";this.AV28TgeCodTabela="";this.ServerEvents=["e173s2_client","e183s2_client","e193s2_client","e203s2_client","e213s2_client","e223s2_client","e233s2_client","e243s2_client","e253s86_client","e263s86_client"];
this.setPrompt("PROMPT_971",[77]);this.EnterCtrl=["BUTTON1"];this.VarControlMap.Gx_BScreen={id:"vGXBSCREEN",grid:0,type:"int"};this.VarControlMap.A969UsuCodSexo={id:"USUCODSEXO",grid:0,type:"char"};this.VarControlMap.A970UsuCodUnid={id:"USUCODUNID",grid:0,type:"int"};this.VarControlMap.A982UsuIndSoli={id:"USUINDSOLI",grid:0,type:"char"};this.VarControlMap.AV34HdeDesAtualizacao={id:"vHDEDESATUALIZACAO",grid:0,type:"char"};this.VarControlMap.AV33HstCodEstacao={id:"vHSTCODESTACAO",grid:0,type:"char"};
this.VarControlMap.AV17UsuCodCorr={id:"vUSUCODCORR",grid:0,type:"char"};this.VarControlMap.AV31HstCodEntidade={id:"vHSTCODENTIDADE",grid:0,type:"int"};this.VarControlMap.AV30HstTipEntidade={id:"vHSTTIPENTIDADE",grid:0,type:"char"};this.VarControlMap.A972UsuDesSenh={id:"USUDESSENH",grid:0,type:"char"};this.VarControlMap.A977UsuIndEmpr={id:"USUINDEMPR",grid:0,type:"char"};this.VarControlMap.A981UsuIndRela={id:"USUINDRELA",grid:0,type:"char"};this.VarControlMap.A976UsuIndBase={id:"USUINDBASE",grid:0,type:"char"};
this.VarControlMap.A978UsuIndFunc={id:"USUINDFUNC",grid:0,type:"char"};this.VarControlMap.A974UsuInd3={id:"USUIND3",grid:0,type:"char"};this.VarControlMap.A975UsuInd4={id:"USUIND4",grid:0,type:"char"};this.VarControlMap.A967UsuCampo1L={id:"USUCAMPO1L",grid:0,type:"char"};this.VarControlMap.AV27OrigemLista={id:"vORIGEMLISTA",grid:0,type:"char"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.VarControlMap.AV28TgeCodTabela={id:"vTGECODTABELA",grid:0,type:"char"};this.SetStandaloneVars()
}timt030.prototype=new gx.GxObject;gx.setParentObj(new timt030());