public function getLastCalcForPeriodById($periodId)
 {
     $result = null;
     $where = ECalculation::ATTR_PERIOD_ID . '=' . (int) $periodId;
     $limit = 1;
     $order = [ECalculation::ATTR_ID . ' ASC'];
     $rs = $this->_repoCalc->get($where, $order, $limit);
     if (is_array($rs) && count($rs)) {
         $data = reset($rs);
         $result = new ECalculation($data);
     }
     return $result;
 }