/*
               File: WbToEst
        Description: Wb To Estado
             Author: GeneXus C# Generator version 9_0_7-910
       Generated on: 11/26/2009 16:25:20.15
       Program type: Callable routine
          Main DBMS: sqlserver
*/
{gxsetDateFormat( "DMY" );
gxsetTimeFormat( 24 );
gxsetFirstYearCentury( 40 );
this.gxDecPoint =  "," ;
this.gxThSep =  "." ;}
 bGXAutoskip = false;
this.hwbtoestSetStandaloneVars=function()
{
   A1952TotAn = GXgetIntegerValue("TOTANO")
   A1953TotMe = GXgetIntegerValue("TOTMES")
}
this.hwbtoestwbtoest=function()
{
}
this.hwbtoestinit=function()
{
}
hwbtoestGXValidFnc = new Array();
this.hwbtoestGXLastCtrlId =43;
hwbtoestGXValidFnc[4]={lvl:0,grid:0,fnc:null,fld:"_TOTUEGERAL",gxvar:"AV5TotUeGe",op:[],ip:[],nacdep:[],v2v:function(Value){AV5TotUeGe=gxint(Value)},v2c:function(){GXsetControlValue("_TOTUEGERAL",AV5TotUeGe,0)},c2v:function(){AV5TotUeGe=GXgetIntegerValue("_TOTUEGERAL")}};
hwbtoestGXValidFnc[5]={lvl:0,grid:0,fnc:null,fld:"_MES",gxvar:"AV13Mes",op:[],ip:[],nacdep:[],v2v:function(Value){AV13Mes=Value},v2c:function(){GXsetControlValue("_MES",AV13Mes,0)},c2v:function(){AV13Mes=GXgetControlValue("_MES")}};
hwbtoestGXValidFnc[6]={lvl:0,grid:0,fnc:null,fld:"_TOTANO",gxvar:"AV10TotAno",op:[],ip:[],nacdep:[],v2v:function(Value){AV10TotAno=gxint(Value)},v2c:function(){GXsetControlValue("_TOTANO",AV10TotAno,0)},c2v:function(){AV10TotAno=GXgetIntegerValue("_TOTANO")}};
hwbtoestGXValidFnc[7]={lvl:0,grid:0,fnc:null,fld:"_TOTUEEST",gxvar:"AV6TotUeEs",op:[],ip:[],nacdep:[],v2v:function(Value){AV6TotUeEs=gxint(Value)},v2c:function(){GXsetControlValue("_TOTUEEST",AV6TotUeEs,0)},c2v:function(){AV6TotUeEs=GXgetIntegerValue("_TOTUEEST")}};
hwbtoestGXValidFnc[8]={lvl:0,grid:0,fnc:null,fld:"_TOTCEJA",gxvar:"AV69TotCej",op:[],ip:[],nacdep:[],v2v:function(Value){AV69TotCej=gxint(Value)},v2c:function(){GXsetControlValue("_TOTCEJA",AV69TotCej,0)},c2v:function(){AV69TotCej=GXgetIntegerValue("_TOTCEJA")}};
hwbtoestGXValidFnc[9]={lvl:0,grid:0,fnc:null,fld:"_TOTCASA",gxvar:"AV71TotCas",op:[],ip:[],nacdep:[],v2v:function(Value){AV71TotCas=gxint(Value)},v2c:function(){GXsetControlValue("_TOTCASA",AV71TotCas,0)},c2v:function(){AV71TotCas=GXgetIntegerValue("_TOTCASA")}};
hwbtoestGXValidFnc[10]={lvl:0,grid:0,fnc:null,fld:"_TOTNAES",gxvar:"AV72TotNae",op:[],ip:[],nacdep:[],v2v:function(Value){AV72TotNae=gxint(Value)},v2c:function(){GXsetControlValue("_TOTNAES",AV72TotNae,0)},c2v:function(){AV72TotNae=GXgetIntegerValue("_TOTNAES")}};
hwbtoestGXValidFnc[11]={lvl:0,grid:0,fnc:null,fld:"_TOTUD",gxvar:"AV59TotUd",op:[],ip:[],nacdep:[],v2v:function(Value){AV59TotUd=gxint(Value)},v2c:function(){GXsetControlValue("_TOTUD",AV59TotUd,0)},c2v:function(){AV59TotUd=GXgetIntegerValue("_TOTUD")}};
hwbtoestGXValidFnc[12]={lvl:0,grid:0,fnc:null,fld:"_TOTEPROF",gxvar:"AV70TotEpr",op:[],ip:[],nacdep:[],v2v:function(Value){AV70TotEpr=gxint(Value)},v2c:function(){GXsetControlValue("_TOTEPROF",AV70TotEpr,0)},c2v:function(){AV70TotEpr=GXgetIntegerValue("_TOTEPROF")}};
hwbtoestGXValidFnc[13]={lvl:0,grid:0,fnc:null,fld:"_TOTNEP",gxvar:"AV73TotNEP",op:[],ip:[],nacdep:[],v2v:function(Value){AV73TotNEP=gxint(Value)},v2c:function(){GXsetControlValue("_TOTNEP",AV73TotNEP,0)},c2v:function(){AV73TotNEP=GXgetIntegerValue("_TOTNEP")}};
hwbtoestGXValidFnc[14]={lvl:0,grid:0,fnc:null,fld:"_TOTUEMUN",gxvar:"AV8TotUeMu",op:[],ip:[],nacdep:[],v2v:function(Value){AV8TotUeMu=gxint(Value)},v2c:function(){GXsetControlValue("_TOTUEMUN",AV8TotUeMu,0)},c2v:function(){AV8TotUeMu=GXgetIntegerValue("_TOTUEMUN")}};
hwbtoestGXValidFnc[15]={lvl:0,grid:0,fnc:null,fld:"_TOTUEPAR",gxvar:"AV9TotUePa",op:[],ip:[],nacdep:[],v2v:function(Value){AV9TotUePa=gxint(Value)},v2c:function(){GXsetControlValue("_TOTUEPAR",AV9TotUePa,0)},c2v:function(){AV9TotUePa=GXgetIntegerValue("_TOTUEPAR")}};
hwbtoestGXValidFnc[16]={lvl:0,grid:0,fnc:null,fld:"_TOTUEFED",gxvar:"AV7TotUeFe",op:[],ip:[],nacdep:[],v2v:function(Value){AV7TotUeFe=gxint(Value)},v2c:function(){GXsetControlValue("_TOTUEFED",AV7TotUeFe,0)},c2v:function(){AV7TotUeFe=GXgetIntegerValue("_TOTUEFED")}};
hwbtoestGXValidFnc[17]={lvl:0,grid:0,fnc:null,fld:"_TOTALUNOS",gxvar:"AV68TotAlu",op:[],ip:[],nacdep:[],v2v:function(Value){AV68TotAlu=gxint(Value)},v2c:function(){GXsetControlValue("_TOTALUNOS",AV68TotAlu,0)},c2v:function(){AV68TotAlu=GXgetIntegerValue("_TOTALUNOS")}};
hwbtoestGXValidFnc[18]={lvl:0,grid:0,fnc:null,fld:"_TOTAL1A4",gxvar:"AV61TotAl1",op:[],ip:[],nacdep:[],v2v:function(Value){AV61TotAl1=gxint(Value)},v2c:function(){GXsetControlValue("_TOTAL1A4",AV61TotAl1,0)},c2v:function(){AV61TotAl1=GXgetIntegerValue("_TOTAL1A4")}};
hwbtoestGXValidFnc[19]={lvl:0,grid:0,fnc:null,fld:"_TOTAL5A8",gxvar:"AV62TotAl5",op:[],ip:[],nacdep:[],v2v:function(Value){AV62TotAl5=gxint(Value)},v2c:function(){GXsetControlValue("_TOTAL5A8",AV62TotAl5,0)},c2v:function(){AV62TotAl5=GXgetIntegerValue("_TOTAL5A8")}};
hwbtoestGXValidFnc[20]={lvl:0,grid:0,fnc:null,fld:"_TOTALMED",gxvar:"AV63TotAlM",op:[],ip:[],nacdep:[],v2v:function(Value){AV63TotAlM=gxint(Value)},v2c:function(){GXsetControlValue("_TOTALMED",AV63TotAlM,0)},c2v:function(){AV63TotAlM=GXgetIntegerValue("_TOTALMED")}};
hwbtoestGXValidFnc[21]={lvl:0,grid:0,fnc:null,fld:"_TOTALEDINF",gxvar:"AV60TotAlE",op:[],ip:[],nacdep:[],v2v:function(Value){AV60TotAlE=gxint(Value)},v2c:function(){GXsetControlValue("_TOTALEDINF",AV60TotAlE,0)},c2v:function(){AV60TotAlE=GXgetIntegerValue("_TOTALEDINF")}};
hwbtoestGXValidFnc[22]={lvl:0,grid:0,fnc:null,fld:"_TOTALCEJA",gxvar:"AV64TotAlC",op:[],ip:[],nacdep:[],v2v:function(Value){AV64TotAlC=gxint(Value)},v2c:function(){GXsetControlValue("_TOTALCEJA",AV64TotAlC,0)},c2v:function(){AV64TotAlC=GXgetIntegerValue("_TOTALCEJA")}};
hwbtoestGXValidFnc[23]={lvl:0,grid:0,fnc:null,fld:"_TOTALPROF",gxvar:"AV65TotAlP",op:[],ip:[],nacdep:[],v2v:function(Value){AV65TotAlP=gxint(Value)},v2c:function(){GXsetControlValue("_TOTALPROF",AV65TotAlP,0)},c2v:function(){AV65TotAlP=GXgetIntegerValue("_TOTALPROF")}};
hwbtoestGXValidFnc[24]={lvl:0,grid:0,fnc:null,fld:"_TOTALPROJ",gxvar:"AV66TotAlP",op:[],ip:[],nacdep:[],v2v:function(Value){AV66TotAlP=gxint(Value)},v2c:function(){GXsetControlValue("_TOTALPROJ",AV66TotAlP,0)},c2v:function(){AV66TotAlP=GXgetIntegerValue("_TOTALPROJ")}};
hwbtoestGXValidFnc[25]={lvl:0,grid:0,fnc:null,fld:"_TOTALMAG",gxvar:"AV67TotAlM",op:[],ip:[],nacdep:[],v2v:function(Value){AV67TotAlM=gxint(Value)},v2c:function(){GXsetControlValue("_TOTALMAG",AV67TotAlM,0)},c2v:function(){AV67TotAlM=GXgetIntegerValue("_TOTALMAG")}};
hwbtoestGXValidFnc[26]={lvl:0,grid:0,fnc:null,fld:"_TOTSERVIDORES",gxvar:"AV52TotSer",op:[],ip:[],nacdep:[],v2v:function(Value){AV52TotSer=gxint(Value)},v2c:function(){GXsetControlValue("_TOTSERVIDORES",AV52TotSer,0)},c2v:function(){AV52TotSer=GXgetIntegerValue("_TOTSERVIDORES")}};
hwbtoestGXValidFnc[27]={lvl:0,grid:0,fnc:null,fld:"_TOTADMMAG",gxvar:"AV27TotAdm",op:[],ip:[],nacdep:[],v2v:function(Value){AV27TotAdm=gxint(Value)},v2c:function(){GXsetControlValue("_TOTADMMAG",AV27TotAdm,0)},c2v:function(){AV27TotAdm=GXgetIntegerValue("_TOTADMMAG")}};
hwbtoestGXValidFnc[28]={lvl:0,grid:0,fnc:null,fld:"_TOTESP896",gxvar:"AV32TotEsp",op:[],ip:[],nacdep:[],v2v:function(Value){AV32TotEsp=gxint(Value)},v2c:function(){GXsetControlValue("_TOTESP896",AV32TotEsp,0)},c2v:function(){AV32TotEsp=GXgetIntegerValue("_TOTESP896")}};
hwbtoestGXValidFnc[29]={lvl:0,grid:0,fnc:null,fld:"_TOTESP897",gxvar:"AV33TotEsp",op:[],ip:[],nacdep:[],v2v:function(Value){AV33TotEsp=gxint(Value)},v2c:function(){GXsetControlValue("_TOTESP897",AV33TotEsp,0)},c2v:function(){AV33TotEsp=GXgetIntegerValue("_TOTESP897")}};
hwbtoestGXValidFnc[30]={lvl:0,grid:0,fnc:null,fld:"_TOTESP898",gxvar:"AV34TotEsp",op:[],ip:[],nacdep:[],v2v:function(Value){AV34TotEsp=gxint(Value)},v2c:function(){GXsetControlValue("_TOTESP898",AV34TotEsp,0)},c2v:function(){AV34TotEsp=GXgetIntegerValue("_TOTESP898")}};
hwbtoestGXValidFnc[31]={lvl:0,grid:0,fnc:null,fld:"_TOTASSTECPED",gxvar:"AV30TotAss",op:[],ip:[],nacdep:[],v2v:function(Value){AV30TotAss=gxint(Value)},v2c:function(){GXsetControlValue("_TOTASSTECPED",AV30TotAss,0)},c2v:function(){AV30TotAss=GXgetIntegerValue("_TOTASSTECPED")}};
hwbtoestGXValidFnc[32]={lvl:0,grid:0,fnc:null,fld:"_TOTASSEDU",gxvar:"AV29TotAss",op:[],ip:[],nacdep:[],v2v:function(Value){AV29TotAss=gxint(Value)},v2c:function(){GXsetControlValue("_TOTASSEDU",AV29TotAss,0)},c2v:function(){AV29TotAss=GXgetIntegerValue("_TOTASSEDU")}};
hwbtoestGXValidFnc[33]={lvl:0,grid:0,fnc:null,fld:"_TOTADMMAGOUT",gxvar:"AV28TotAdm",op:[],ip:[],nacdep:[],v2v:function(Value){AV28TotAdm=gxint(Value)},v2c:function(){GXsetControlValue("_TOTADMMAGOUT",AV28TotAdm,0)},c2v:function(){AV28TotAdm=GXgetIntegerValue("_TOTADMMAGOUT")}};
hwbtoestGXValidFnc[34]={lvl:0,grid:0,fnc:null,fld:"_TOTADM",gxvar:"AV25TotAdm",op:[],ip:[],nacdep:[],v2v:function(Value){AV25TotAdm=gxint(Value)},v2c:function(){GXsetControlValue("_TOTADM",AV25TotAdm,0)},c2v:function(){AV25TotAdm=GXgetIntegerValue("_TOTADM")}};
hwbtoestGXValidFnc[35]={lvl:0,grid:0,fnc:null,fld:"_TOTPROFESSORES",gxvar:"AV53TotPro",op:[],ip:[],nacdep:[],v2v:function(Value){AV53TotPro=gxint(Value)},v2c:function(){GXsetControlValue("_TOTPROFESSORES",AV53TotPro,0)},c2v:function(){AV53TotPro=GXgetIntegerValue("_TOTPROFESSORES")}};
hwbtoestGXValidFnc[36]={lvl:0,grid:0,fnc:null,fld:"_TOTPROFEFETIVO",gxvar:"AV14TotPro",op:[],ip:[],nacdep:[],v2v:function(Value){AV14TotPro=gxint(Value)},v2c:function(){GXsetControlValue("_TOTPROFEFETIVO",AV14TotPro,0)},c2v:function(){AV14TotPro=GXgetIntegerValue("_TOTPROFEFETIVO")}};
hwbtoestGXValidFnc[37]={lvl:0,grid:0,fnc:null,fld:"_TOTPROFACT",gxvar:"AV15TotPro",op:[],ip:[],nacdep:[],v2v:function(Value){AV15TotPro=gxint(Value)},v2c:function(){GXsetControlValue("_TOTPROFACT",AV15TotPro,0)},c2v:function(){AV15TotPro=GXgetIntegerValue("_TOTPROFACT")}};
hwbtoestGXValidFnc[38]={lvl:0,grid:0,fnc:null,fld:"_TOTOUTSITUACOES",gxvar:"AV56TotOut",op:[],ip:[],nacdep:[],v2v:function(Value){AV56TotOut=gxint(Value)},v2c:function(){GXsetControlValue("_TOTOUTSITUACOES",AV56TotOut,0)},c2v:function(){AV56TotOut=GXgetIntegerValue("_TOTOUTSITUACOES")}};
hwbtoestGXValidFnc[39]={lvl:0,grid:0,fnc:null,fld:"_TOTEXEFUN",gxvar:"AV36TotExe",op:[],ip:[],nacdep:[],v2v:function(Value){AV36TotExe=gxint(Value)},v2c:function(){GXsetControlValue("_TOTEXEFUN",AV36TotExe,0)},c2v:function(){AV36TotExe=GXgetIntegerValue("_TOTEXEFUN")}};
hwbtoestGXValidFnc[40]={lvl:0,grid:0,fnc:null,fld:"_TOTCOMISSIONADO",gxvar:"AV31TotCom",op:[],ip:[],nacdep:[],v2v:function(Value){AV31TotCom=gxint(Value)},v2c:function(){GXsetControlValue("_TOTCOMISSIONADO",AV31TotCom,0)},c2v:function(){AV31TotCom=GXgetIntegerValue("_TOTCOMISSIONADO")}};
hwbtoestGXValidFnc[41]={lvl:0,grid:0,fnc:null,fld:"_TOTTERC",gxvar:"AV51TotTer",op:[],ip:[],nacdep:[],v2v:function(Value){AV51TotTer=gxint(Value)},v2c:function(){GXsetControlValue("_TOTTERC",AV51TotTer,0)},c2v:function(){AV51TotTer=GXgetIntegerValue("_TOTTERC")}};
hwbtoestGXValidFnc[42]={lvl:0,grid:0,fnc:null,fld:"_TOTPERMUT",gxvar:"AV39TotPer",op:[],ip:[],nacdep:[],v2v:function(Value){AV39TotPer=gxint(Value)},v2c:function(){GXsetControlValue("_TOTPERMUT",AV39TotPer,0)},c2v:function(){AV39TotPer=GXgetIntegerValue("_TOTPERMUT")}};
hwbtoestGXValidFnc[43]={lvl:0,grid:0,fnc:null,fld:"_TOTOUTPRO",gxvar:"AV38TotOut",op:[],ip:[],nacdep:[],v2v:function(Value){AV38TotOut=gxint(Value)},v2c:function(){GXsetControlValue("_TOTOUTPRO",AV38TotOut,0)},c2v:function(){AV38TotOut=GXgetIntegerValue("_TOTOUTPRO")}};
this.AV5TotUeGe=0;
this.AV13Mes=0;
this.AV10TotAno=0;
this.AV6TotUeEs=0;
this.AV69TotCej=0;
this.AV71TotCas=0;
this.AV72TotNae=0;
this.AV59TotUd=0;
this.AV70TotEpr=0;
this.AV73TotNEP=0;
this.AV8TotUeMu=0;
this.AV9TotUePa=0;
this.AV7TotUeFe=0;
this.AV68TotAlu=0;
this.AV61TotAl1=0;
this.AV62TotAl5=0;
this.AV63TotAlM=0;
this.AV60TotAlE=0;
this.AV64TotAlC=0;
this.AV65TotAlP=0;
this.AV66TotAlP=0;
this.AV67TotAlM=0;
this.AV52TotSer=0;
this.AV27TotAdm=0;
this.AV32TotEsp=0;
this.AV33TotEsp=0;
this.AV34TotEsp=0;
this.AV30TotAss=0;
this.AV29TotAss=0;
this.AV28TotAdm=0;
this.AV25TotAdm=0;
this.AV53TotPro=0;
this.AV14TotPro=0;
this.AV15TotPro=0;
this.AV56TotOut=0;
this.AV36TotExe=0;
this.AV31TotCom=0;
this.AV51TotTer=0;
this.AV39TotPer=0;
this.AV38TotOut=0;
hwbtoestSetStandaloneVars( ) ;
