private void GetData(bool withRegions) { using (var t = Doc.TransactionManager.StartTransaction()) { // Выбор блоков SelectSection select = new SelectSection(Doc); var selIds = select.Select(withRegions); if (selIds.Count == 0) { throw new Exception("Не найдены блоки блок-секций"); } else { Doc.Editor.WriteMessage("\nВыбрано {0} блоков блок-секций.", selIds.Count); } Estimate = select.Estimate; // Обработка выбранных блоков List <IArea> classes; Sections = Parse(selIds, out classes, Doc.Editor); Classes = classes; // Подсчет площадей и типов блок-секций DataSection = new DataSection(this); DataSection.Calc(); t.Commit(); } }
public override double GetParkingPlace(DataSection data) { return(data.TotalAreaApart / ParkingPlace); }
public virtual double GetParkingPlace(DataSection data) { // Для москвы return(data.Population * 0.001 * ParkingPlacePer1000); }
public virtual double CalcPopulation(DataSection data) { return(Math.Floor(data.TotalAreaApart / LiveAreaPerHuman)); // Всего площадь квартир/28 }
public override double CalcPopulation(DataSection data) { return(Math.Floor(data.KP_GNS_Total / LiveAreaPerHuman)); }