gx.evt.autoSkip=false;function tgst002(){this.ServerClass="Tgst002";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_BScreen=gx.fn.getIntegerValue("vGXBSCREEN",".");this.AV16DesSenha=gx.fn.getControlValue("vDESSENHA");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.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"],["A983UsuNom","A969UsuCodSexo","A980UsuIndPriv","A972UsuDesSenh","A977UsuIndEmpr","A981UsuIndRela","A976UsuIndBase","A978UsuIndFunc","A982UsuIndSoli","A984UsuTipAces","A973UsuInd2","A974UsuInd3","A975UsuInd4","A970UsuCodUnid","A967UsuCampo1L","A971UsuCodUsua","Gx_mode","Z968UsuCod","Z983UsuNom","Z969UsuCodSexo","Z980UsuIndPriv","Z972UsuDesSenh","Z977UsuIndEmpr","Z981UsuIndRela","Z976UsuIndBase","Z978UsuIndFunc","Z982UsuIndSoli","Z984UsuTipAces","Z973UsuInd2","Z974UsuInd3","Z975UsuInd4","Z970UsuCodUnid","Z967UsuCampo1L","Z971UsuCodUsua",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Usucodsexo=function(){try{var a=gx.util.balloon.getNew("USUCODSEXO");this.AnyError=0;if(!(this.A969UsuCodSexo=="M"||this.A969UsuCodSexo=="F")){try{a.setError("Campo Sexo 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_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_Usudessenh=function(){try{var a=gx.util.balloon.getNew("USUDESSENH");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Usuindempr=function(){try{var a=gx.util.balloon.getNew("USUINDEMPR");this.AnyError=0;if(!(this.A977UsuIndEmpr=="S"||this.A977UsuIndEmpr=="N")){try{a.setError("Campo Tem permissao p/ emprestimo 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_Usuindrela=function(){try{var a=gx.util.balloon.getNew("USUINDRELA");this.AnyError=0;if(!(this.A981UsuIndRela=="S"||this.A981UsuIndRela=="N")){try{a.setError("Campo Ind. permissao a relatórios 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_Usuindbase=function(){try{var a=gx.util.balloon.getNew("USUINDBASE");this.AnyError=0;
if(!(this.A976UsuIndBase=="S"||this.A976UsuIndBase=="N")){try{a.setError("Campo Ind. se pode atualizar a base 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_Usuindfunc=function(){try{var a=gx.util.balloon.getNew("USUINDFUNC");this.AnyError=0;if(!(this.A978UsuIndFunc=="S"||this.A978UsuIndFunc=="N")){try{a.setError("Campo Ind.  acesso a funções especia 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_Usucodunid=function(){try{var a=gx.util.balloon.getNew("USUCODUNID");this.AnyError=0;if((0==this.A970UsuCodUnid)){try{a.setError("Informe a unidade depositária ");this.AnyError=1}catch(b){}}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e112g86_client=function(){this.executeServerEvent("ENTER",true)};this.e122g86_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,24,26,29,31,34,36,39,41,44,46,49,51,54,56,59,61,64,66,69,71,74,76,79,81,84,86,89,91,94,96,99,101];
this.GXLastCtrlId=101;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:[101,96,91,86,81,76,71,66,61,56,51,46,41,36,31,26],ip:[101,96,91,86,81,76,71,66,61,56,51,46,41,36,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_Usucodsexo,isvalid:null,fld:"USUCODSEXO",gxz:"Z969UsuCodSexo",gxold:"O969UsuCodSexo",gxvar:"A969UsuCodSexo",ucs:[],op:[31],ip:[31],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A969UsuCodSexo=a
},v2z:function(a){gx.O.Z969UsuCodSexo=a},v2c:function(){gx.fn.setControlValue("USUCODSEXO",gx.O.A969UsuCodSexo,0)},c2v:function(){gx.O.A969UsuCodSexo=this.val()},val:function(){return gx.fn.getControlValue("USUCODSEXO")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={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:[36],ip:[36],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[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"char",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Usudessenh,isvalid:null,fld:"USUDESSENH",gxz:"Z972UsuDesSenh",gxold:"O972UsuDesSenh",gxvar:"A972UsuDesSenh",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A972UsuDesSenh=a
},v2z:function(a){gx.O.Z972UsuDesSenh=a},v2c:function(){gx.fn.setControlValue("USUDESSENH",gx.O.A972UsuDesSenh,0)},c2v:function(){gx.O.A972UsuDesSenh=this.val()},val:function(){return gx.fn.getControlValue("USUDESSENH")},nac:function(){return false}};this.GXValidFnc[44]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[46]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Usuindempr,isvalid:null,fld:"USUINDEMPR",gxz:"Z977UsuIndEmpr",gxold:"O977UsuIndEmpr",gxvar:"A977UsuIndEmpr",ucs:[],op:[46],ip:[46],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A977UsuIndEmpr=a
},v2z:function(a){gx.O.Z977UsuIndEmpr=a},v2c:function(){gx.fn.setControlValue("USUINDEMPR",gx.O.A977UsuIndEmpr,0)},c2v:function(){gx.O.A977UsuIndEmpr=this.val()},val:function(){return gx.fn.getControlValue("USUINDEMPR")},nac:function(){return false}};this.GXValidFnc[49]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[51]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Usuindrela,isvalid:null,fld:"USUINDRELA",gxz:"Z981UsuIndRela",gxold:"O981UsuIndRela",gxvar:"A981UsuIndRela",ucs:[],op:[51],ip:[51],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A981UsuIndRela=a
},v2z:function(a){gx.O.Z981UsuIndRela=a},v2c:function(){gx.fn.setControlValue("USUINDRELA",gx.O.A981UsuIndRela,0)},c2v:function(){gx.O.A981UsuIndRela=this.val()},val:function(){return gx.fn.getControlValue("USUINDRELA")},nac:function(){return false}};this.GXValidFnc[54]={fld:"TEXTBLOCK8",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_Usuindbase,isvalid:null,fld:"USUINDBASE",gxz:"Z976UsuIndBase",gxold:"O976UsuIndBase",gxvar:"A976UsuIndBase",ucs:[],op:[56],ip:[56],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A976UsuIndBase=a
},v2z:function(a){gx.O.Z976UsuIndBase=a},v2c:function(){gx.fn.setControlValue("USUINDBASE",gx.O.A976UsuIndBase,0)},c2v:function(){gx.O.A976UsuIndBase=this.val()},val:function(){return gx.fn.getControlValue("USUINDBASE")},nac:function(){return false}};this.GXValidFnc[59]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[61]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Usuindfunc,isvalid:null,fld:"USUINDFUNC",gxz:"Z978UsuIndFunc",gxold:"O978UsuIndFunc",gxvar:"A978UsuIndFunc",ucs:[],op:[61],ip:[61],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A978UsuIndFunc=a
},v2z:function(a){gx.O.Z978UsuIndFunc=a},v2c:function(){gx.fn.setControlValue("USUINDFUNC",gx.O.A978UsuIndFunc,0)},c2v:function(){gx.O.A978UsuIndFunc=this.val()},val:function(){return gx.fn.getControlValue("USUINDFUNC")},nac:function(){return false}};this.GXValidFnc[64]={fld:"TEXTBLOCK10",format:0,grid:0};this.GXValidFnc[66]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"USUINDSOLI",gxz:"Z982UsuIndSoli",gxold:"O982UsuIndSoli",gxvar:"A982UsuIndSoli",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A982UsuIndSoli=a
},v2z:function(a){gx.O.Z982UsuIndSoli=a},v2c:function(){gx.fn.setControlValue("USUINDSOLI",gx.O.A982UsuIndSoli,0)},c2v:function(){gx.O.A982UsuIndSoli=this.val()},val:function(){return gx.fn.getControlValue("USUINDSOLI")},nac:function(){return false}};this.GXValidFnc[69]={fld:"TEXTBLOCK11",format:0,grid:0};this.GXValidFnc[71]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,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[74]={fld:"TEXTBLOCK12",format:0,grid:0};this.GXValidFnc[76]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,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[79]={fld:"TEXTBLOCK13",format:0,grid:0};this.GXValidFnc[81]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"USUIND3",gxz:"Z974UsuInd3",gxold:"O974UsuInd3",gxvar:"A974UsuInd3",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A974UsuInd3=a
},v2z:function(a){gx.O.Z974UsuInd3=a},v2c:function(){gx.fn.setControlValue("USUIND3",gx.O.A974UsuInd3,0)},c2v:function(){gx.O.A974UsuInd3=this.val()},val:function(){return gx.fn.getControlValue("USUIND3")},nac:function(){return false}};this.GXValidFnc[84]={fld:"TEXTBLOCK14",format:0,grid:0};this.GXValidFnc[86]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"USUIND4",gxz:"Z975UsuInd4",gxold:"O975UsuInd4",gxvar:"A975UsuInd4",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A975UsuInd4=a
},v2z:function(a){gx.O.Z975UsuInd4=a},v2c:function(){gx.fn.setControlValue("USUIND4",gx.O.A975UsuInd4,0)},c2v:function(){gx.O.A975UsuInd4=this.val()},val:function(){return gx.fn.getControlValue("USUIND4")},nac:function(){return false}};this.GXValidFnc[89]={fld:"TEXTBLOCK15",format:0,grid:0};this.GXValidFnc[91]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Usucodunid,isvalid:null,rgrid:[],fld:"USUCODUNID",gxz:"Z970UsuCodUnid",gxold:"O970UsuCodUnid",gxvar:"A970UsuCodUnid",ucs:[],op:[91],ip:[91],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A970UsuCodUnid=gx.num.intval(a)
},v2z:function(a){gx.O.Z970UsuCodUnid=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("USUCODUNID",gx.O.A970UsuCodUnid,0)},c2v:function(){gx.O.A970UsuCodUnid=this.val()},val:function(){return gx.fn.getIntegerValue("USUCODUNID",".")},nac:function(){return false}};this.GXValidFnc[94]={fld:"TEXTBLOCK16",format:0,grid:0};this.GXValidFnc[96]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"USUCAMPO1L",gxz:"Z967UsuCampo1L",gxold:"O967UsuCampo1L",gxvar:"A967UsuCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A967UsuCampo1L=a
},v2z:function(a){gx.O.Z967UsuCampo1L=a},v2c:function(){gx.fn.setControlValue("USUCAMPO1L",gx.O.A967UsuCampo1L,0)},c2v:function(){gx.O.A967UsuCampo1L=this.val()},val:function(){return gx.fn.getControlValue("USUCAMPO1L")},nac:function(){return false}};this.GXValidFnc[99]={fld:"TEXTBLOCK17",format:0,grid:0};this.GXValidFnc[101]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"USUCODUSUA",gxz:"Z971UsuCodUsua",gxold:"O971UsuCodUsua",gxvar:"A971UsuCodUsua",ucs:[],op:[],ip:[],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.A968UsuCod="";this.Z968UsuCod="";this.O968UsuCod="";this.A983UsuNom="";this.Z983UsuNom="";this.O983UsuNom="";this.A969UsuCodSexo="";this.Z969UsuCodSexo="";this.O969UsuCodSexo="";this.A980UsuIndPriv="";this.Z980UsuIndPriv="";this.O980UsuIndPriv="";
this.A972UsuDesSenh="";this.Z972UsuDesSenh="";this.O972UsuDesSenh="";this.A977UsuIndEmpr="";this.Z977UsuIndEmpr="";this.O977UsuIndEmpr="";this.A981UsuIndRela="";this.Z981UsuIndRela="";this.O981UsuIndRela="";this.A976UsuIndBase="";this.Z976UsuIndBase="";this.O976UsuIndBase="";this.A978UsuIndFunc="";this.Z978UsuIndFunc="";this.O978UsuIndFunc="";this.A982UsuIndSoli="";this.Z982UsuIndSoli="";this.O982UsuIndSoli="";this.A984UsuTipAces="";this.Z984UsuTipAces="";this.O984UsuTipAces="";this.A973UsuInd2="";
this.Z973UsuInd2="";this.O973UsuInd2="";this.A974UsuInd3="";this.Z974UsuInd3="";this.O974UsuInd3="";this.A975UsuInd4="";this.Z975UsuInd4="";this.O975UsuInd4="";this.A970UsuCodUnid=0;this.Z970UsuCodUnid=0;this.O970UsuCodUnid=0;this.A967UsuCampo1L="";this.Z967UsuCampo1L="";this.O967UsuCampo1L="";this.A971UsuCodUsua="";this.Z971UsuCodUsua="";this.O971UsuCodUsua="";this.AV16DesSenha="";this.Gx_BScreen=0;this.ServerEvents=["e112g86_client","e122g86_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];
this.VarControlMap.Gx_BScreen={id:"vGXBSCREEN",grid:0,type:"int"};this.VarControlMap.AV16DesSenha={id:"vDESSENHA",grid:0,type:"char"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tgst002.prototype=new gx.GxObject;gx.setParentObj(new tgst002());