Beispiel #1
0
 public function run()
 {
     $module = $this->getController()->getModule()->getId();
     $timeRoute = $this->getTimeRoute($module);
     $data = array("module" => $module, "timeRoute" => $timeRoute, "lang" => Ibos::getLangSources(array("diary.default")), "time" => StatCommonUtil::getCommonTimeScope());
     $this->render(self::VIEW, $data);
 }
Beispiel #2
0
 public function run()
 {
     $this->checkReviewAccess();
     $uid = $this->getUid();
     $time = StatCommonUtil::getCommonTimeScope();
     $list = Diary::model()->fetchAddTimeByUid($uid, $time["start"], $time["end"]);
     $data = array("delay" => $this->getDelay($list), "nums" => $this->getDiaryNums($list));
     $this->render(self::VIEW, $data);
 }
Beispiel #3
0
 public function run()
 {
     $time = StatCommonUtil::getCommonTimeScope();
     if ($this->inPersonal()) {
         $this->renderPersonal($time);
     } else {
         $this->checkReviewAccess();
         $this->renderReview($time);
     }
 }
Beispiel #4
0
 public function run()
 {
     $factory = new ICChartFactory();
     $properties = array("uid" => $this->getUid(), "timeScope" => StatCommonUtil::getCommonTimeScope());
     $timeCounter = $this->createComponent("ICDiarySubmitTimeCounter", $properties);
     $scoreCounter = $this->createComponent("ICDiaryScoreTimeCounter", $properties);
     $stampCounter = $this->createComponent("ICDiaryStampCounter", $properties);
     $data = array("statAssetUrl" => Ibos::app()->assetManager->getAssetsUrl("statistics"), "time" => $factory->createChart($timeCounter, "ICDiaryLineChart"), "score" => $factory->createChart($scoreCounter, "ICDiaryLineChart"), "stamp" => $factory->createChart($stampCounter, "ICDiaryBarChart"));
     $this->render(self::VIEW, $data);
 }
Beispiel #5
0
 public function run()
 {
     $factory = new ICChartFactory();
     $properties = array("timeScope" => StatCommonUtil::getCommonTimeScope(), "type" => $this->getType(), "timestr" => $this->getTimestr());
     $flowCounter = $this->createComponent("ICRecruitTalentFlowCounter", $properties);
     $sexRatioCounter = $this->createComponent("ICRecruitSexCounter", $properties);
     $ageCounter = $this->createComponent("ICRecruitAgeCounter", $properties);
     $degreeCounter = $this->createComponent("ICRecruitDegreeCounter", $properties);
     $workYearsCounter = $this->createComponent("ICRecruitWorkYearsCounter", $properties);
     $data = array("statAssetUrl" => Ibos::app()->assetManager->getAssetsUrl("statistics"), "talentFlow" => $factory->createChart($flowCounter, "ICRecruitLineChart"), "sexRatio" => $factory->createChart($sexRatioCounter, "ICRecruitPieChart"), "age" => $factory->createChart($ageCounter, "ICRecruitPieChart"), "degree" => $factory->createChart($degreeCounter, "ICRecruitPieChart"), "workYears" => $factory->createChart($workYearsCounter, "ICRecruitPieChart"));
     $this->render(self::VIEW, $data);
 }
Beispiel #6
0
 public function run()
 {
     $module = $this->getController()->getModule()->getId();
     $timeRoute = $this->getTimeRoute($module);
     $type = $this->getType();
     $timestr = $this->getTimestr();
     if (empty($type)) {
         $type = "day";
     }
     if (empty($timestr)) {
         $timestr = "thisweek";
     }
     $data = array("module" => $module, "timeRoute" => $timeRoute, "lang" => Ibos::getLangSources(array("recruit.default")), "time" => StatCommonUtil::getCommonTimeScope(), "type" => $type, "timestr" => $timestr);
     $this->render(self::VIEW, $data);
 }
 public function run()
 {
     $time = StatCommonUtil::getCommonTimeScope();
     $this->renderOverview($time);
 }