Ejemplo n.º 1
0
 /**
  *
  * @return boolean
  */
 public function isFinalRatingVisible()
 {
     /* TODO: Control Circle */
     if ($this->getReview()->getEmployeeNumber() == $this->getReviewerId()) {
         $parameters['id'] = $this->getReviewId();
         $review = $this->getPerformanceReviewService()->searchReview($parameters);
         if (ReviewStatusFactory::getInstance()->getStatus($review->getStatusId())->isFinalRatingVisible()) {
             return true;
         } else {
             return false;
         }
     } else {
         return false;
     }
 }
</label></td> <td></td> <td id="reviewColoumnId" ><label class="labelValue"><?php 
echo set_datepicker_date_format($form->getReview()->getWorkPeriodStart()) . " To " . set_datepicker_date_format($form->getReview()->getWorkPeriodEnd());
?>
</label></td></tr>
                    <tr class="trReviewHeight"><td class="tableColoumnWidth" ><label class="labelName"><?php 
echo __("Review Due Date");
?>
</label></td><td></td>  <td><label class="labelValue"><?php 
echo set_datepicker_date_format($form->getReview()->getDueDate());
?>
</label></td></tr>
                    <tr class="trReviewHeight"><td class="tableColoumnWidth" ><label class="labelName"><?php 
echo __("Status");
?>
</label></td> <td></td> <td><label class="labelValue"><?php 
echo __(ReviewStatusFactory::getInstance()->getStatus($form->getReview()->getStatusId())->getName());
?>
</label></td></tr>
                </table>


            </div>

            <div class="reviewersreviewInfo" >
                <div class="smallerHeader"><center><h1><?php 
echo __("Individual Evaluation Status");
?>
</h1></center></div>

                <div class="evaluation">
                    <table id="induvidualEvaluate" >
 /**
  *
  * @return boolean 
  */
 public function isEvaluationsCompleateEnabled()
 {
     /* TODO: Control Circle */
     $parameters['id'] = $this->getReviewId();
     $review = $this->getPerformanceReviewService()->searchReview($parameters);
     if (ReviewStatusFactory::getInstance()->getStatus($review->getStatusId())->isEvaluationsCompleateEnabled()) {
         return true;
     } else {
         return false;
     }
 }