コード例 #1
0
 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);
 }
コード例 #2
0
 public function exStop($request, $response)
 {
     /*{{{*/
     $projectCustomerId = $request->projectCustomerId;
     $projectCustomer = DAL::get()->find('projectcustomer', $projectCustomerId);
     $this->myProjectOperator->checkAuthOrQuit('startorstop');
     $remark = $request->remark;
     ProjectCustomerClient::getInstance()->exStopProjectCustomer($projectCustomerId, $remark, $this->myProjectOperator->id);
     $preMsg = "已异常出组";
     $response->setRedirect("/projectcustomermgr/one?projectCustomerId=" . $projectCustomerId . "&preMsg=" . $preMsg);
 }