public function run() { $factory = new ICChartFactory(); $properties = array("uid" => $this->getUid(), "typeid" => $this->getTypeid(), "timeScope" => $this->getTimeScope()); $scoreCounter = $this->createComponent("ICReportScoreTimeCounter", $properties); $stampCounter = $this->createComponent("ICReportStampCounter", $properties); $data = array("statAssetUrl" => Ibos::app()->assetManager->getAssetsUrl("statistics"), "score" => $factory->createChart($scoreCounter, "ICReportLineChart"), "stamp" => $factory->createChart($stampCounter, "ICReportBarChart")); $this->render(self::VIEW, $data); }
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); }