public function chart($request, $response)
 {
     /*{{{*/
     $orgDatas = array();
     $response->orgDatas = $orgDatas = ProjectCustomerClient::getInstance()->chartData();
     //年度入组曲线数据
     $yearRuzuData = array();
     $response->yearRuzuData = $yearRuzuData = ProjectCustomerClient::getInstance()->yearRuzuData(2014);
     $response->yearRuzuCntStr = ProjectConst::genHighChartStrfromArray($yearRuzuData);
     //前一月份
     $moth = $request->preMonth;
     if ($moth == -1) {
         $month = date("n") - 1;
     } else {
         $month = date("n");
     }
     $response->month = $month;
     $response->monthRuzuData = $monthRuzuData = ProjectCustomerClient::getInstance()->monthRuzuData(2014, $month);
     $response->monthRuzuCntStr = ProjectConst::genHighChartStrfromArray($monthRuzuData);
 }
Esempio n. 2
0
                           },
                           enableMouseTracking: false
                       }
                   },
                       series: [{
                        name : '全部',
                            data : <?php 
echo $yearRuzuCntStr;
?>
                       }]
       });
   }/*}}}*/

<?  
   $currentMonth = date("n");
   $monthDaysStr = ProjectConst::genMonthDayNumStrsHighChart($currentMonth, 2014);  //   当前月份包含天数
?>

    // 本月入组曲线图
   {/*{{{*/
       chart = new Highcharts.Chart({
           chart: {
               renderTo: 'ruzuchartdivmonth',
           },
           title: {
               text:  '本月入组统计(<?php 
echo $month;
?>
月)'
           },
           subtitle: {
<td> <?= $a->projectInterviewTpl->title ?></td>
<td>
<?php
if($a->dotime < '2014-01-01')
{
    echo "尚未访视";
}else
{
    echo $a->dotime;
}
?>
</td>
<?php
$a3 = $a->projectInterviewTpl->getContrastProjectInterview($a->followupCustomer->id, 3); 
?>
<td> <?= ProjectConst::getAuditDesc($a3->auditStatus)?></td>
<td>
<?php
$_hasMaster = 0;
$a1 = $a->projectInterviewTpl->getContrastProjectInterview($a->followupCustomer->id, 1); 
$_hasA1 = $a1->hasAllProjectAnswerSheet();
?>
<a href='/projectanswersheetmgr/listofprojectinterview?projectInterviewId=<?=$a1->id?>' > 对比访视1 </a>
</td>
<td>
<?php
$a2 = $a->projectInterviewTpl->getContrastProjectInterview($a->followupCustomer->id, 2); 
$_hasA2 = $a2->hasAllProjectAnswerSheet();
if ($_hasA1 && $_hasA2)
{
    $_hasMaster = 1;