Beispiel #1
0
 public void Fill(House hp)
 {
     this.m_HouseId = hp.Id;
     this.selectHvsType.SelectedFasetItem = hp.IsNullId((long) hp.HvsType) ? FasetItem.Null : hp.GetHvsType();
     this.selectGvsType.SelectedFasetItem = hp.IsNullId((long) hp.GvsType) ? FasetItem.Null : hp.GetGvsType();
     this.selectSewerType.SelectedFasetItem = hp.IsNullId((long) hp.SewerType) ? FasetItem.Null : hp.GetSewerType();
     this.selectStoveType.SelectedFasetItem = hp.IsNullId((long) hp.StoveType) ? FasetItem.Null : hp.GetStoveType();
     this.selectOverflowType.SelectedFasetItem = hp.IsNullId((long) hp.OverflowType) ? FasetItem.Null : hp.GetOverFlowType();
     this.selectHeatingType.SelectedFasetItem = hp.IsNullId((long) hp.HeatingType) ? FasetItem.Null : hp.GetHeatingType();
     this.selectUtilizationType.SelectedFasetItem = hp.IsNullId((long) hp.UtilizationType) ? FasetItem.Null : hp.GetUtilizationType();
     this.selectLocalBroadcastingType.SelectedFasetItem = hp.IsNullId((long) hp.LocalBroadcastingType) ? FasetItem.Null : hp.GetLocalBroadcastingType();
     this.selectTVEnquipmentType.SelectedFasetItem = hp.IsNullId((long) hp.Tvenquipmenttype) ? FasetItem.Null : hp.GetTvEnquipmentType();
     this.selectFireAlarmType.SelectedFasetItem = hp.IsNullId((long) hp.FireAlarmType) ? FasetItem.Null : hp.GetFireAlarmType();
 }
Beispiel #2
0
 public void Fill(House hp)
 {
     this.m_House = hp;
     HouseArea area = Mappers.HouseAreaMapper.FindByHouseIdMaxDate(this.m_House.Id);
     this.m_HouseId = hp.Id;
     this.selectType.SelectedFasetItem = hp.IsNullId((long) hp.Type) ? FasetItem.Null : hp.GetFasetItem();
     this.tbNote.set_Text(hp.Note);
     this.numFloor.set_Value((decimal) hp.Floor);
     this.numEntrance.set_Value((decimal) hp.Entrance);
     this.numLift.set_Value((decimal) hp.Lift);
     this.numPassLift.set_Value((decimal) hp.PassLift);
     this.numCargoLift.set_Value((decimal) hp.CargoLift);
     this.selectWallType.SelectedFasetItem = hp.IsNullId((long) hp.WallType) ? FasetItem.Null : hp.GetWallType();
     this.selectCanonicalTypeId.SelectedFasetItem = hp.IsNullId((long) hp.CanonicalTypeId) ? FasetItem.Null : hp.GetCanonicalType();
     this.txtYear.set_Text((hp.YearBegin == 0) ? ((string) "") : ((int) hp.YearBegin).ToString());
     this.txtSeries.set_Text((hp.Series == 0) ? ((string) "") : ((int) hp.Series).ToString());
     this.selectFormControl.SelectedFasetItem = hp.IsNullId((long) hp.FormControl) ? FasetItem.Null : hp.GetFormControl();
     this.selectOwnershipType.SelectedFasetItem = hp.IsNullId((long) hp.OwnershipType) ? FasetItem.Null : hp.GetOwnerShipType();
     this.selectRoofType.SelectedFasetItem = hp.IsNullId((long) hp.RoofType) ? FasetItem.Null : hp.GetRoofType();
     this.selectBoroughs.SelectedFasetItem = hp.IsNullId((long) hp.BoroughId) ? FasetItem.Null : hp.GetBorough();
     this.numPercentWear.set_Value((decimal) hp.PercentWear);
     this.numFlat.set_Value((decimal) hp.Flat);
     this.numOneRoom.set_Value((decimal) hp.OneRoom);
     this.numTwoRoom.set_Value((decimal) hp.TwoRoom);
     this.numThreeRoom.set_Value((decimal) hp.ThreeRoom);
     this.numFourRoom.set_Value((decimal) hp.FourRoom);
     this.numFiveRoom.set_Value((decimal) hp.FiveRoom);
     this.numFlatWithGarbageChute.set_Value((decimal) hp.FlatWithGarbageChute);
     this.txtYearPassport.set_Text(((int) hp.YearPassport).ToString());
     this.tbTotalSquare.set_Text(area.Total.ToString());
     this.tbLivingSquare.set_Text(area.Living.ToString());
     this.tbHeatingSquare.set_Text(area.Heating.ToString());
     this.tbTotalSquareMKD.set_Text(area.TotalMkd.ToString());
     this.tbFloorArea.set_Text(area.Floor.ToString());
     this.tbTotalSquareOI.set_Text(area.TotalOi.ToString());
     this.tbLivingSquareMKD.set_Text(area.LivingMkd.ToString());
     this.numTotalVolume.set_Value(0M);
     this.tbxSubProvider.set_Text(hp.SubProvider);
     this.tbxHouseChief.set_Text(hp.HouseChief);
     this.rbPrintYes.set_Checked((hp.PrintServices == 0) ? ((bool) false) : ((bool) true));
     this.rbPrintNo.set_Checked(!this.rbPrintYes.get_Checked());
     if (hp.OnDate != System.DateTime.MinValue)
     {
         this.dtbOnDate.Value = hp.OnDate;
     }
     this.selectFoundationType.SelectedFasetItem = hp.IsNullId((long) hp.FoundationType) ? FasetItem.Null : hp.GetFoundationType();
     this.selectOverlapType.SelectedFasetItem = hp.IsNullId((long) hp.OverlapType) ? FasetItem.Null : hp.GetOverlapType();
     this.cbDomKom.set_Checked(hp.DomKom);
     this.selectRaionSuda.SelectedFasetItem = hp.IsNullId((long) hp.Sud) ? FasetItem.Null : hp.GetSud();
     this.tbNumberSudUch.set_Text(hp.SudUc);
     this.tbDomKomTarif.set_Text(((double) hp.DomKomTarif).ToString());
     this.numMusorCount.set_Value((decimal) hp.MusorCount);
     this.tbPassportNum.set_Text(((int) hp.PassportNum).ToString());
     this.tbKapRemontYear.set_Text(((int) hp.KapRemontYear).ToString());
     this.selectTerritorialManagement.SelectedFasetItem = hp.IsNullId((long) hp.TerritorialManagement) ? FasetItem.Null : hp.GetTerritorialManagement();
 }