public void Fill(ApartmentOwner apartmentOwner)
 {
     if ((apartmentOwner != null) && (apartmentOwner != this.m_apartmentOwner))
     {
         if (apartmentOwner == ApartmentOwner.Null)
         {
             this.Clear();
         }
         this.m_apartmentOwner = apartmentOwner;
         this.bsApartmentOwnershipLegalization.set_DataSource(Mappers.ApartmentOwnershipLegalizationMapper.FindByApartmentOwnerId(this.m_apartmentOwner.Id));
         this.bsApartmentOwnershipLegalization.set_Sort("fromDate desc");
     }
 }
 public void Fill(long apartmentId, System.DateTime fromdata)
 {
     if (this.apartmentType == ApartmentType.Null)
     {
         this.DataSource = new ApartmentOwner();
         this.DataSource.FromDate = fromdata;
         this.DataSource.ApartmentId = apartmentId;
         this.DataSource.Num = 1;
         this.DataSource.Denom = 1;
         this.apartmentType = new ApartmentType();
         this.apartmentType.ApartmentId = apartmentId;
         this.apartmentType.FasetId = 0x37;
         this.selectTypeOwnerFasetName.Faset = (FasetsEnum) this.apartmentType.FasetId;
         this.selectTypeOwnerFasetName.RefreshValuesWithNull();
         if (this.apartmentType.FasetItemId != 0)
         {
             this.selectTypeOwnerFasetName.SelectedFasetItem = this.apartmentType.GetFasetItem();
         }
         else
         {
             this.selectTypeOwnerFasetName.SelectedFasetItem = FasetItem.Null;
         }
     }
 }
Example #3
0
 public static decimal GetNumDenomByApartmentIdByDateDoc(long apartmentId, System.DateTime dateDoc, ApartmentOwner apartmentOwner)
 {
     return Mappers.ApartmentOwnerMapper.GetNumDenomByApartmentIdByDateDoc(apartmentId, dateDoc, apartmentOwner);
 }
Example #4
0
 private void tsbAddApartmentOwner_Click(object sender, System.EventArgs e)
 {
     ApartmentOwner apartOwner = new ApartmentOwner {
         FromDate = this.dtpSplitDate.Value
     };
     ApartmentOwnerAddChangeForm form = new ApartmentOwnerAddChangeForm(apartOwner, false, 1);
     form.ShowDialog(this);
     if (form.DialogResult == System.Windows.Forms.DialogResult.Yes)
     {
         this.bsNewApartmentOwners.Add(form.ApartmentOwner);
     }
 }
 private void ApplyCurrentApartmentOwner()
 {
     ApartmentOwner owner = this.bsApartmentOwners.get_Current() as ApartmentOwner;
     if ((owner != null) && (owner != ApartmentOwner.Null))
     {
         this.selectedApartmentOwner = owner;
         base.set_DialogResult(System.Windows.Forms.DialogResult.OK);
         base.Close();
     }
 }
 public void Clear()
 {
     this.m_apartmentOwner = ApartmentOwner.Null;
 }