public virtual void reloadVariables()
 {
     foreach (string str in BoqItemTable.VIEWABLE_FIELDS)
     {
         object @object = getFieldValue(this.assemblyTable, str);
         if (@object == null && !this.lineItemFields.Contains(str))
         {
             BigDecimalFixed bigDecimalFixed = new BigDecimalFixed(0);
             DateTime        date            = DateTime.Now;
             bool?           @bool           = false;
             Type            clazz           = getReturnType(this.boqItemTable, str);
             if (clazz != null)
             {
                 if (clazz.Equals(typeof(decimal)))
                 {
                     this.decimalVariableMap[BoqItemFormulaEvaluator.variableFromField(str)] = bigDecimalFixed;
                 }
                 else if (clazz.Equals(typeof(string)))
                 {
                     this.textVariableMap[BoqItemFormulaEvaluator.variableFromField(str)] = "";
                 }
                 else if (clazz.Equals(typeof(DateTime)))
                 {
                     this.dateVariableMap[BoqItemFormulaEvaluator.variableFromField(str)] = date;
                 }
                 else if (clazz.Equals(typeof(Boolean)))
                 {
                     this.booleanVariableMap[BoqItemFormulaEvaluator.variableFromField(str)] = @bool.Value;
                 }
             }
         }
         else if (@object is Number)
         {
             if (@object is decimal)
             {
                 this.decimalVariableMap[variableFromField(str)] = (decimal)@object;
             }
             else
             {
                 this.decimalVariableMap[variableFromField(str)] = new BigDecimalFixed(@object.ToString());
             }
         }
         else if (@object is string)
         {
             this.textVariableMap[variableFromField(str)] = (string)@object;
         }
         else if (@object is DateTime)
         {
             this.dateVariableMap[variableFromField(str)] = (DateTime)@object;
         }
         else if (@object is bool?)
         {
             this.booleanVariableMap[variableFromField(str)] = (bool?)@object;
         }
         else if (@object == null)
         {
             this.textVariableMap[variableFromField(str)] = "";
         }
     }
     this.localVariableMap = LocalVariablesDatabaseUtil.getLocalVariables(this.assemblyTable.Vars);
 }
 private string variableFromField(string paramString)
 {
     return(BoqItemFormulaEvaluator.variableFromField(paramString));
 }