private void InitalizeNaturalBuildingValue(NaturalBuilding NaturalBuilding, int rowIndex)
        {
            int columnIndex = 1;

            InitalizeRangeInformation(rowIndex, columnIndex, NaturalBuilding.BSM);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, NaturalBuilding.YSDM);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, NaturalBuilding.BDCDYH);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, NaturalBuilding.ZDDM);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, NaturalBuilding.ZRZH);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, NaturalBuilding.XMMC);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, NaturalBuilding.JZWMC);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolDate.GetSlashDate(NaturalBuilding.JGRQ));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, NaturalBuilding.JZWGD);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(NaturalBuilding.ZZDMJ, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(NaturalBuilding.ZYDMJ, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(NaturalBuilding.YCJZMJ, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(NaturalBuilding.SCJZMJ, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, NaturalBuilding.ZCS);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, NaturalBuilding.DSCS);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, NaturalBuilding.DXCS);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, NaturalBuilding.DXSD);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, DictionaryUtil.GetStringByKeyAndDic(NaturalBuilding.GHYT, "房屋用途"));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, DictionaryUtil.GetStringByKeyAndDic(NaturalBuilding.FWJG, "房屋结构"));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, NaturalBuilding.ZTS);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, NaturalBuilding.JZWJBYT);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, NaturalBuilding.BZ);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, DictionaryUtil.GetStringByKeyAndDic(NaturalBuilding.ZT, "不动产单元状态"));
        }
示例#2
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)));
            }
        }
        private void InitalizeHouselValue(Household Household, int rowIndex)
        {
            int columnIndex = 1;

            InitalizeRangeInformation(rowIndex, columnIndex, Household.HBSM);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.YXTBS);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.BDCDYH);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.FWBM);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.YSDM);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.ZRZH);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.LJZH);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.DYH);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.ZCS);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.CH);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.FH);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.ZL);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, DictionaryUtil.GetStringByKeyAndDic(Household.MJDW, "面积单位"));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.SZC);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.QSC);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.ZZC);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.HH);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.SHBW);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, DictionaryUtil.GetStringByKeyAndDic(Household.HX, "户型"));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, DictionaryUtil.GetStringByKeyAndDic(Household.HXJG, "户型结构"));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, DictionaryUtil.GetStringByKeyAndDic(Household.GHYT, "房屋用途"));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, DictionaryUtil.GetStringByKeyAndDic(Household.FWYT1, "房屋用途"));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, DictionaryUtil.GetStringByKeyAndDic(Household.FWYT2, "房屋用途"));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, DictionaryUtil.GetStringByKeyAndDic(Household.FWYT3, "房屋用途"));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(Household.YCJZMJ, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(Household.YCTNJZMJ, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(Household.YCFTJZMJ, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(Household.YCDXBFJZMJ, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(Household.YCQTJZMJ, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(Household.YCFTXS, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(Household.SCJZMJ, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(Household.SCTNJZMJ, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(Household.SCFTJZMJ, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(Household.SCDXBFJZMJ, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(Household.SCQTJZMJ, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(Household.SCFTXS, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(Household.GYTDMJ, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(Household.FTTDMJ, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolArith.SetNumbericFormat(Household.DYTDMJ, 2));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, DictionaryUtil.GetStringByKeyAndDic(Household.FWLX, "房屋类型"));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, DictionaryUtil.GetStringByKeyAndDic(Household.FWJG, "房屋结构"));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, DictionaryUtil.GetStringByKeyAndDic(Household.FWXZ, "房屋性质"));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.FDCJYJG);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, ToolDate.GetSlashDate(Household.JGSJ));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, DictionaryUtil.GetStringByKeyAndDic(Household.FWCB, "房屋产别"));
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.CQLY);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.QTGSD);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.QTGSN);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.QTGSX);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.QTGSB);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.TDSYQR);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, Household.FCFHT);
            columnIndex++;
            InitalizeRangeInformation(rowIndex, columnIndex, DictionaryUtil.GetStringByKeyAndDic(Household.ZT, "不动产单元状态"));
        }