Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the PropertyAvailabilityModel class.
 /// </summary>
 /// <param name="houseCount">The number of units physically existing
 /// excluding the ones which are out of inventory</param>
 /// <param name="occupancy">The percent value indicating the
 /// occupancy</param>
 /// <param name="physicalCount">The number of units physically existing
 /// on the property</param>
 /// <param name="sellableCount">The number of units available for
 /// selling. This is the house count excluding the out of order and the
 /// already sold units</param>
 /// <param name="soldCount">The number of sold units including units
 /// picked up from blocks</param>
 public PropertyAvailabilityModel(BlockUnitsModel block, int houseCount, MaintenanceModel maintenance, double occupancy, int physicalCount, int sellableCount, int soldCount)
 {
     Block         = block;
     HouseCount    = houseCount;
     Maintenance   = maintenance;
     Occupancy     = occupancy;
     PhysicalCount = physicalCount;
     SellableCount = sellableCount;
     SoldCount     = soldCount;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the UnitGroupAvailabilityItemModel
 /// class.
 /// </summary>
 /// <param name="availableCount">The number of units still available.
 /// This is the house count excluding the out of order units minus
 /// the already sold units.</param>
 /// <param name="houseCount">The number of units physically existing
 /// excluding the ones which are out of inventory</param>
 /// <param name="occupancy">The percent value indicating the
 /// occupancy</param>
 /// <param name="physicalCount">The number of units physically existing
 /// on the property</param>
 /// <param name="sellableCount">The number of units available for
 /// selling. This is the minimum of the sellable units on property
 /// level
 /// and the available units of this unit group. If there are only 3
 /// units available on the property level
 /// but 5 units available for this unit group, the sellable count will
 /// be 3. This situation can occur if
 /// another category or the whole house is overbooked.</param>
 /// <param name="soldCount">The number of sold units including units
 /// picked up from blocks</param>
 /// <param name="unitGroup">The unit group</param>
 public UnitGroupAvailabilityItemModel(int availableCount, BlockUnitsModel block, int houseCount, MaintenanceModel maintenance, double occupancy, int physicalCount, int sellableCount, int soldCount, EmbeddedUnitGroupModel unitGroup)
 {
     AvailableCount = availableCount;
     Block          = block;
     HouseCount     = houseCount;
     Maintenance    = maintenance;
     Occupancy      = occupancy;
     PhysicalCount  = physicalCount;
     SellableCount  = sellableCount;
     SoldCount      = soldCount;
     UnitGroup      = unitGroup;
     CustomInit();
 }