Beispiel #1
0
 private void InitialStatistics()
 {
     Count = Project.NaturalBuildings.Count;
     JZWGD = Math.Round(Project.NaturalBuildings.Sum(t => ToolArith.StringToDouble(t.JZWGD)));
     ZDMJ  = Math.Round(Project.NaturalBuildings.Sum(t => ToolArith.StringToDouble(t.ZZDMJ)));
     YDMJ  = Math.Round(Project.NaturalBuildings.Sum(t => ToolArith.StringToDouble(t.ZYDMJ)));
     if (MappingType == EMappingType.PredictiveMapping)
     {
         YCJZMJ = Math.Round(Project.NaturalBuildings.Sum(t => ToolArith.StringToDouble(t.YCJZMJ)));
     }
     if (MappingType == EMappingType.SurveyingMapping)
     {
         SCJZMJ = Math.Round(Project.NaturalBuildings.Sum(t => ToolArith.StringToDouble(t.SCJZMJ)));
     }
 }
        private void InitialStatistics()
        {
            Count = Project.Households.Count;

            if (MappingType == EMappingType.PredictiveMapping)
            {
                YCJZMJ     = Math.Round(Project.Households.Sum(t => ToolArith.StringToDouble(t.YCJZMJ)));
                YCTNJZMJ   = Math.Round(Project.Households.Sum(t => ToolArith.StringToDouble(t.YCTNJZMJ)));
                YCFTJZMJ   = Math.Round(Project.Households.Sum(t => ToolArith.StringToDouble(t.YCFTJZMJ)));
                YCDXBFJZMJ = Math.Round(Project.Households.Sum(t => ToolArith.StringToDouble(t.YCDXBFJZMJ)));
                YCQTJZMJ   = Math.Round(Project.Households.Sum(t => ToolArith.StringToDouble(t.YCQTJZMJ)));
            }
            if (MappingType == EMappingType.SurveyingMapping)
            {
                SCJZMJ     = Math.Round(Project.Households.Sum(t => ToolArith.StringToDouble(t.SCJZMJ)));
                SCTNJZMJ   = Math.Round(Project.Households.Sum(t => ToolArith.StringToDouble(t.SCTNJZMJ)));
                SCFTJZMJ   = Math.Round(Project.Households.Sum(t => ToolArith.StringToDouble(t.SCFTJZMJ)));
                SCDXBFJZMJ = Math.Round(Project.Households.Sum(t => ToolArith.StringToDouble(t.SCDXBFJZMJ)));
                SCQTJZMJ   = Math.Round(Project.Households.Sum(t => ToolArith.StringToDouble(t.SCQTJZMJ)));
            }
        }