Esempio n. 1
0
 private void fillNotLivingAndLandArea()
 {
     this.houseInfo = Mappers.UjfHouseInfoMapper.FindOrCreateByHouseId(this.house.Id);
     this.nudCommonNumber.set_Value((decimal) this.houseInfo.CommonNumber);
     this.nudMetalSchelterDoorNumber.set_Value((decimal) this.houseInfo.MetalSchelterDoorsNumber);
     this.nudBuildInNumber.set_Value((decimal) this.houseInfo.BuildInNumber);
     this.tbCommonAreaTotal.set_Text(this.houseInfo.CommonAreaTotal.ToString());
     this.textBoxClear(this.tbCommonAreaTotal);
     this.tbCommonAreaState.set_Text(this.houseInfo.CommonAreaStateOwnership.ToString());
     this.textBoxClear(this.tbCommonAreaState);
     this.tbCommonAreaPrivate.set_Text(this.houseInfo.CommonAreaPrivateOwnership.ToString());
     this.textBoxClear(this.tbCommonAreaPrivate);
     this.tbBuildInAreaTotal.set_Text(this.houseInfo.BuildInAreaTotal.ToString());
     this.textBoxClear(this.tbBuildInAreaTotal);
     this.tbBuildInAreaState.set_Text(this.houseInfo.BuildInAreaStateOwnership.ToString());
     this.textBoxClear(this.tbBuildInAreaState);
     this.tbBuildInAreaPrvate.set_Text(this.houseInfo.BuildInAreaPrivateOwnership.ToString());
     this.textBoxClear(this.tbBuildInAreaPrvate);
     this.tbCorridorArea.set_Text(this.houseInfo.CorridorArea.ToString());
     this.textBoxClear(this.tbCorridorArea);
     this.tbStairsArea.set_Text(this.houseInfo.StairsArea.ToString());
     this.textBoxClear(this.tbStairsArea);
     this.tbTechInventory.set_Text(this.houseInfo.TechInventory.ToString());
     this.textBoxClear(this.tbTechInventory);
     this.tbLandAreaSurvey.set_Text(this.houseInfo.LandAreaSurvey.ToString());
     this.textBoxClear(this.tbLandAreaSurvey);
     this.tbLandAreaTotal.set_Text(this.houseInfo.LandAreaTotal.ToString());
     this.textBoxClear(this.tbLandAreaTotal);
     this.tbLandAreaBuildUp.set_Text(this.houseInfo.LandAreaBuildUp.ToString());
     this.textBoxClear(this.tbLandAreaBuildUp);
     this.tbNonBuildUpGreenSpacesTotal.set_Text(this.houseInfo.NonBuildUpGreenSpacesTotal.ToString());
     this.textBoxClear(this.tbNonBuildUpGreenSpacesTotal);
     this.tbNonBuildUpGreenSpacesSquare.set_Text(this.houseInfo.NonBuildUpGreenSpacesSquare.ToString());
     this.textBoxClear(this.tbNonBuildUpGreenSpacesSquare);
     this.tbNonBuildUpGreenSpacesLineWithTrees.set_Text(this.houseInfo.NonBuildUpGreenSpacesLineWithTrees.ToString());
     this.textBoxClear(this.tbNonBuildUpGreenSpacesLineWithTrees);
     this.tbNonBuildUpGreenSpacesOther.set_Text(this.houseInfo.NonBuildUpGreenSpacesOther.ToString());
     this.textBoxClear(this.tbNonBuildUpGreenSpacesOther);
     this.tbNonBuildUpAsphaltlessClaningArea.set_Text(this.houseInfo.NonBuildUpAsphaltlessCleaningArea.ToString());
     this.textBoxClear(this.tbNonBuildUpAsphaltlessClaningArea);
     this.tbNonBuildUpTotal.set_Text(this.houseInfo.NonBuildUpTotal.ToString());
     this.textBoxClear(this.tbNonBuildUpTotal);
     this.tbNonBuildUpHardCoatingTotal.set_Text(this.houseInfo.NonBuildUpHardCoatingsTotal.ToString());
     this.textBoxClear(this.tbNonBuildUpHardCoatingTotal);
     this.tbNonBuildUpHardCoatingLanes.set_Text(this.houseInfo.NonBuildUpHardCoatingsLanes.ToString());
     this.textBoxClear(this.tbNonBuildUpHardCoatingLanes);
     this.tbNonBuildUpHardCoatingSidewalks.set_Text(this.houseInfo.NonBuildUpHardCoatingsSidewalks.ToString());
     this.textBoxClear(this.tbNonBuildUpHardCoatingSidewalks);
     this.tbNonBuildUpHardCoatingOther.set_Text(this.houseInfo.NonBuildUpHardCoatingsOther.ToString());
     this.textBoxClear(this.tbNonBuildUpHardCoatingOther);
     this.tbNonBuildUpSiteChildren.set_Text(this.houseInfo.NonBuildUpSiteChildren.ToString());
     this.textBoxClear(this.tbNonBuildUpSiteChildren);
     this.tbNonBuildUpSiteSport.set_Text(this.houseInfo.NonBuildUpSiteSport.ToString());
     this.textBoxClear(this.tbNonBuildUpSiteSport);
     this.tbNonBuildUpSiteOther.set_Text(this.houseInfo.NonBuildUpSiteOther.ToString());
     this.textBoxClear(this.tbNonBuildUpSiteOther);
     this.tbLandAreaInHouseArea.set_Text(this.houseInfo.LandAreaInHouseArea.ToString());
     this.textBoxClear(this.tbLandAreaInHouseArea);
     this.tbLandAreaUncoveredArea.set_Text(this.houseInfo.LandAreaUncoveredArea.ToString());
     this.textBoxClear(this.tbLandAreaUncoveredArea);
     this.tbLandAreaLawnsArea.set_Text(this.houseInfo.LandAreaLawnsArea.ToString());
     this.textBoxClear(this.tbLandAreaLawnsArea);
 }
Esempio n. 2
0
 public void fill(long houseId)
 {
     this.houseInfo = Mappers.UjfHouseInfoMapper.FindOrCreateByHouseId(houseId);
     this.house = Mappers.HouseMapper.FindById(houseId);
     this.dbActualityDate.set_Text(this.houseInfo.ActualityDate.ToString());
     if (this.dbActualityDate.get_Text() == "01.01.0001")
     {
         this.dbActualityDate.Clear();
     }
     this.nudEntrance.set_Value((decimal) this.houseInfo.Entrance);
     this.nudFlat.set_Value((decimal) this.houseInfo.Flat);
     this.nudFloor.set_Value((decimal) this.houseInfo.Floor);
     this.nudYearBegin.set_Value((decimal) this.house.YearBegin);
     this.nudKapRemontYear.set_Value((decimal) this.house.KapRemontYear);
     this.nudLifeTime.set_Value((decimal) this.houseInfo.LifeTime);
     this.dtbLivingMKD.set_Text(this.houseInfo.LivingMkd.ToString());
     if (this.dtbLivingMKD.get_Text() == "0")
     {
         this.dtbLivingMKD.Clear();
     }
     this.dtbNotLivingMKD.set_Text(this.houseInfo.NotLivingMkd.ToString());
     if (this.dtbNotLivingMKD.get_Text() == "0")
     {
         this.dtbNotLivingMKD.Clear();
     }
     this.nudPercentWear.set_Value((decimal) this.house.PercentWear);
     this.tbProjectType.set_Text(this.houseInfo.ProjectType.ToString());
     this.nudSectionNumber.set_Value((decimal) this.houseInfo.SectionNumber);
     this.tbSeriesName.set_Text(this.houseInfo.SeriesName.ToString());
     this.dtbTotalMKD.set_Text(this.houseInfo.TotalMkd.ToString());
     if (this.dtbTotalMKD.get_Text() == "0")
     {
         this.dtbTotalMKD.Clear();
     }
     this.dtbTotalStructureVolume.set_Text(this.houseInfo.TotalStructureVolume.ToString());
     if (this.dtbTotalStructureVolume.get_Text() == "0")
     {
         this.dtbTotalStructureVolume.Clear();
     }
     this.nudYearPassport.set_Value((decimal) this.house.YearPassport);
     this.dtbBuildingAreaPublic.set_Text(this.houseInfo.BuildingAreaPublic.ToString());
     if (this.dtbBuildingAreaPublic.get_Text() == "0")
     {
         this.dtbBuildingAreaPublic.Clear();
     }
     this.dtbSiteArea.set_Text(this.houseInfo.SiteArea.ToString());
     if (this.dtbSiteArea.get_Text() == "0")
     {
         this.dtbSiteArea.Clear();
     }
     this.tbInventoryNumber.set_Text(this.houseInfo.InventoryNumber.ToString());
     this.tbCadastralNumber.set_Text(this.houseInfo.CadastralNumber.ToString());
     this.tbRegistryNumber.set_Text(this.houseInfo.RegistryNumber.ToString());
     this.cbIsLandMark.set_Checked(this.houseInfo.IsLandMark);
     this.sfdOwnerShipType.Faset = FasetsEnum.OwnershipTypes;
     this.sfdOwnerShipType.RefreshValuesWithNull();
     this.sfdOwnerShipType.SelectedFasetItem = FasetItem.FindById(this.house.OwnershipType);
     this.tbHouseChiefName.set_Text(this.houseInfo.HouseChiefName);
 }