RProjectController.php 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. <?php
  2. Doo::loadClass('auth');
  3. Doo::loadClass('attfile');
  4. Doo::loadClass('profile');
  5. Doo::loadClass('project');
  6. Doo::loadClass('contractact');
  7. Doo::loadClass('actmeasure');
  8. Doo::loadClass('measureauditact');
  9. Doo::loadClass('numofperact');
  10. /**
  11. * MainController
  12. * Feel free to delete the methods and replace them with your own code.
  13. *
  14. * @author darkredz
  15. */
  16. class RProjectController extends DooController
  17. {
  18. private $data, $auth, $attfile, $profile, $project, $contractact, $actmeasure, $measureauditact, $numofperact, $statusArray = array('uncheck' => '未审批', 'checking' => '审批中', 'checked' => '已审批', 'checkno' => '未通过');
  19. public function __construct()
  20. {
  21. $this->auth = new Auth();
  22. $this->attfile = new attFile();
  23. $this->profile = new Profile();
  24. $this->project = new Project();
  25. $this->contractact = new Contractact();
  26. $this->actmeasure = new actMeasure();
  27. $this->measureauditact = new MeasureauditAct();
  28. $this->numofperact = new NumofperAct();
  29. $this->data['rootUrl'] = Doo::conf()->APP_URL;
  30. $this->data['currChannle'] = 'r';
  31. $this->data['user'] = $this->profile->getProWithUid($this->auth->getUid());
  32. $mpidArray = $this->measureauditact->getAuditProject2($this->auth->getUid());
  33. if (isset($mpidArray[0]['pid'])) {
  34. $this->data['numofchecking'] = 0;
  35. foreach ($mpidArray as $key => $value) {
  36. // 审批操作按照时间排序多标段
  37. $this->data['numofchecking'] += $this->measureauditact->getCountMyChecking($value['pid'], $this->auth->getUid());
  38. }
  39. }
  40. if ($this->data['numofchecking'] == 0) {
  41. $this->data['numofchecking'] = null;
  42. }
  43. }
  44. public function beforeRun($resource, $action)
  45. {
  46. // $uGroups = $this->profile->getProWithUid($this->auth->getUid());
  47. // $falg = Doo::acl()->isAllowed($uGroups['groups'], $resource, $action);
  48. // if (!$falg)
  49. // return Doo::acl()->defaultFailedRoute;
  50. if ($this->auth->getUid()) {
  51. $uGroups = $this->profile->getProWithUid($this->auth->getUid());
  52. $falg = Doo::acl()->isAllowed($uGroups['groups'], $resource, $action);
  53. if (!$falg)
  54. return Doo::acl()->defaultFailedRoute;
  55. } else {
  56. return Doo::acl()->defaultFailedRoute;
  57. }
  58. }
  59. public function index()
  60. {
  61. $mpidArray = $this->measureauditact->getAuditProject2($this->auth->getUid());
  62. if (isset($mpidArray[0]['pid'])) {
  63. foreach ($mpidArray as $key => $value) {
  64. // 审批操作按照时间排序多标段
  65. $numOfChecking = $this->measureauditact->getCountMyChecking($value['pid'], $this->auth->getUid());
  66. // end
  67. $this->data['proArray'][$key] = $this->project->getRowByPid($value['pid']);
  68. $this->data['proArray'][$key]['numofchecking'] = $numOfChecking;
  69. $this->data['proArray'][$key]['contracttotal'] = $this->actmeasure->getTotalWithPid($value['pid']);
  70. $this->data['proArray'][$key]['changTotal'] = $this->numofperact->getChangTotal($value['pid']);
  71. // $this->data['proArray'][$key]['contracttotal'] += $this->data['proArray'][$key]['changTotal'];
  72. $this->data['proArray'][$key]['currdone'] = $this->numofperact->getCurrDoneNow($value['pid']);
  73. if (($this->data['proArray'][$key]['contracttotal'] > 0) && ($this->data['proArray'][$key]['currdone'] > 0)) {
  74. $this->data['proArray'][$key]['pcurrdone'] = round(($this->data['proArray'][$key]['currdone'] / $this->data['proArray'][$key]['contracttotal']) * 100) . '%';
  75. } else {
  76. $this->data['proArray'][$key]['pcurrdone'] = '0%';
  77. }
  78. $this->data['proArray'][$key]['bcontracttotal'] = number_format($this->data['proArray'][$key]['contracttotal'], 2, '.', ',');
  79. $this->data['proArray'][$key]['bchangTotal'] = number_format($this->data['proArray'][$key]['changTotal'], 2, '.', ',');
  80. }
  81. } else {
  82. $this->data['proArray'] = array();
  83. }
  84. $this->render('r-project', $this->data);
  85. }
  86. public function proOverview()
  87. {
  88. // $this->data['pros'] = $this->project->getAll();
  89. // if (isset($_POST['pname']) && $_POST['pname']) {
  90. // $this->project->insertProject($_POST['pname']);
  91. // return Doo::conf()->APP_URL . 'project/index';
  92. // }
  93. $this->data['pid'] = $this->params['pid'];
  94. $this->render('w-project-detail', $this->data);
  95. }
  96. public function proSection()
  97. {
  98. $mpidArray = $this->measureauditact->getAuditProject2($this->auth->getUid());
  99. foreach ($mpidArray as $k1 => $v1) {
  100. if ($v1['pid'] != $this->params['pid'])
  101. $this->data['allproArray'][] = $this->project->getRowByPid($v1['pid']);
  102. }
  103. $this->data['currproArray'] = $this->project->getRowByPid($this->params['pid']);
  104. $this->data['conArray'] = $this->contractact->getRowByPid($this->params['pid']);
  105. $auditArray = $this->measureauditact->getUserPmid($this->auth->getUid());
  106. foreach ($auditArray as $key => $value) {
  107. $pmidArray[] = $value['pmid'];
  108. }
  109. foreach ($this->data['conArray'] as $key => $value) {
  110. $html = null;
  111. $hetongTotal = $dispstopnowtotal = $dispnowtotal = $countNum = 0;
  112. $nstopnowtotal = $ncurrdone = $nnowtotal = number_format(0, 2, '.', ',');
  113. $pstopnowtotal = '0%';
  114. $pcurrdone = '0%';
  115. $ncurrdone = number_format(0, 2, '.', ',');
  116. $pnowtotal = '0%';
  117. $dispcurrdone = '0%';
  118. // $numStatusArray['currstatus'] = 'uncheck';
  119. $StidArray = $this->actmeasure->getAllbyStid($value['stid']);
  120. $currdoneInt = $this->numofperact->getCurrdoneSTID($value['stid'])['totalplus'];
  121. if (isset($StidArray))
  122. foreach ($StidArray as $k => $v) {
  123. if (in_array($v['pmid'], $pmidArray)) {
  124. $snTotal = $this->numofperact->getStopNowTotal($v['pmid']); //根据标段ID获取最新一期(包括不通过)
  125. $currcomTotal = $this->numofperact->getCurrdoneNew($v['pmid']); //截止目前
  126. $ncurrdone = number_format($currcomTotal['currtotal'], 2, '.', ',');
  127. $nstopnowtotal = number_format($snTotal['sntotal'], 2, '.', ',');
  128. if ($v['contracttotal'] > 0) {
  129. $nnowtotal = number_format($v['contracttotal'] - $currcomTotal['currtotal'] - $snTotal['sntotal'], 2, '.', ',');
  130. $pstopnowtotal = round(($snTotal['sntotal'] / $v['contracttotal']) * 100);
  131. $pcurrdone = round(($currcomTotal['currtotal'] / $v['contracttotal']) * 100);
  132. }
  133. $dispcurrdone = $pcurrdone . '%';
  134. $dispstopnowtotal = $pstopnowtotal . '%';
  135. $pnowtotal = 100 - $pcurrdone - $pstopnowtotal;
  136. $dispnowtotal = $pnowtotal . '%';
  137. $countNum = $this->numofperact->getLastNew2($v['pmid'])['numpname'];
  138. if (!isset($countNum)) {
  139. $countNum = 0;
  140. }
  141. $numStatusArray = $this->numofperact->getLastStatus3($this->params['pid'], $v['pmid']);
  142. if (!isset($numStatusArray['currstatus'])) {
  143. $numStatusArray['currstatus'] = 'uncheck';
  144. }
  145. $datatmp = $this->measureauditact->getMyAuditStatus2($numStatusArray['pmid'], $numStatusArray['numpname'], $numStatusArray['times'], $this->auth->getUid());
  146. if ($datatmp && ($datatmp['mastatus'] == 'checking')) {
  147. $buttonhtml = '<a class="btn btn-warning btn-small" href="/rproject/' . $this->params['pid'] . '/section/' . $v['pmid'] . '/report/' . $numStatusArray['mpid'] . '">开始审批</a>';
  148. } else {
  149. $buttonhtml = '(<span class="colOrange">' . $this->statusArray[$numStatusArray['currstatus']] . '</span>)';
  150. }
  151. $html .= '<tr>
  152. <td><a href="/rproject/' . $this->params['pid'] . '/section/' . $v['pmid'] . '/detail">' . $v['pmname'] . '</a></td>
  153. <td class="">第 ' . $countNum . ' 期 ' . $buttonhtml . '</td>
  154. <td class="taR">¥' . number_format($v['contracttotal'], 2, '.', ',') . '</td>
  155. <td>
  156. <div class="progress">
  157. <div class="bar bar-success" style="width: ' . $dispstopnowtotal . ';" data-placement="bottom" data-toggle="tooltip" data-original-title="截止上期完成:¥' . $nstopnowtotal . '">' . $dispstopnowtotal . '</div>
  158. <div class="bar" style="width:' . $dispcurrdone . ';" data-placement="bottom" data-toggle="tooltip" data-original-title="本期完成:¥' . $ncurrdone . '">' . $dispcurrdone . '</div>
  159. <div class="bar bar-gary" style="width:' . $dispnowtotal . ';" data-placement="bottom" data-toggle="tooltip" data-original-title="未完成:¥' . $nnowtotal . '">' . $dispnowtotal . '</div>
  160. </div>
  161. </td>
  162. </tr>';
  163. $hetongTotal += $v['contracttotal'];
  164. }
  165. }
  166. $this->data['conArray'][$key]['htmlstr'] = $html;
  167. $this->data['conArray'][$key]['hetongTotal'] = number_format($hetongTotal, 2, '.', ',');
  168. $this->data['conArray'][$key]['phetongTotal'] = 0;
  169. $this->data['conArray'][$key]['nhetongTotal'] = 0;
  170. $this->data['conArray'][$key]['phetongTotal2'] = 0;
  171. $this->data['conArray'][$key]['ncurrdoneInt'] = 0;
  172. $this->data['conArray'][$key]['phetongTotal'] = round(($currdoneInt / $hetongTotal) * 100) . '%';
  173. $this->data['conArray'][$key]['nhetongTotal'] = number_format($currdoneInt, 2, '.', ',');
  174. $this->data['conArray'][$key]['phetongTotal2'] = round((($hetongTotal - $currdoneInt) / $hetongTotal) * 100) . '%';
  175. $this->data['conArray'][$key]['ncurrdoneInt'] = number_format($hetongTotal - $currdoneInt, 2, '.', ',');
  176. }
  177. $this->render('r-project-section', $this->data, TRUE);
  178. }
  179. function proSectionMeasure()
  180. {
  181. $mpidArray = $this->measureauditact->getAuditProject($this->auth->getUid());
  182. foreach ($mpidArray as $k1 => $v1) {
  183. if ($v1['pid'] != $this->params['pid'])
  184. $this->data['allproArray'][] = $this->project->getRowByPid($v1['pid']);
  185. }
  186. $this->data['currproArray'] = $this->project->getRowByPid($this->params['pid']);
  187. $this->data['pid'] = $this->params['pid'];
  188. $this->data['mpid'] = $this->params['mpid'];
  189. $this->data['mastatus'] = $this->measureauditact->getStatusByMpid($this->params['mpid'])['mastatus'];
  190. if (isset($_POST['submit'])) {
  191. if ($_POST['submit'] == 'ok') {
  192. $this->measureauditact->setStatusTrue($this->params['mpid']);
  193. return Doo::conf()->APP_URL . 'rproject/' . $this->params['pid'] . '/section/' . $this->params['mpid'] . '/measure';
  194. }
  195. if ($_POST['submit'] == 'no') {
  196. $this->measureauditact->setStatusFalse($this->params['mpid']);
  197. return Doo::conf()->APP_URL . 'rproject/' . $this->params['pid'] . '/section/' . $this->params['mpid'] . '/measure';
  198. }
  199. }
  200. // $jsonpath = pathinfo($this->attfile->getMaxRow()['filepath']);
  201. // $extPathdir = Doo::conf()->SITE_PATH . $jsonpath['dirname'] . '/' . $jsonpath['filename'];
  202. // if ($handle = opendir($extPathdir)) {
  203. // while (false !== ($file = readdir($handle))) {
  204. // $filename = pathinfo($file);
  205. // if ($filename['extension'] == 'json')
  206. // $proArray = json_decode(file_get_contents($extPathdir . '/' . $file));
  207. // }
  208. // closedir($handle);
  209. // }
  210. // $this->data['proArray'] = $proArray;
  211. $this->render('r-project-section-measure', $this->data, TRUE);
  212. }
  213. Function fNumber($number)
  214. {
  215. if ($number == '')
  216. Return "-";
  217. $nlen = strlen($number);
  218. while ($nlen > 3) {
  219. $fNumber = "," . substr($number, $nlen - 3, 3);
  220. $number = substr($number, 0, -3);
  221. $nlen = strlen($number);
  222. }
  223. if ($nlen <= 3) {
  224. $fNumber = $number . $fNumber;
  225. }
  226. Return $fNumber;
  227. }
  228. public function welcome()
  229. {
  230. // if (!$this->auth->isLoggedIn())
  231. // return Doo::conf()->APP_URL;
  232. if ($this->profile->getProWithUid($_SESSION['uid'])['userid'])
  233. return Doo::conf()->APP_URL . 'project/list';
  234. if (isset($_POST['welform'])) {
  235. $profileUserArray = $_POST;
  236. $profileUserArray['userid'] = $_SESSION['uid'];
  237. $this->profile->insertProfile($profileUserArray); // 无自增字段返回0
  238. return Doo::conf()->APP_URL . 'project/list';
  239. }
  240. $this->render('welcome', $this->data);
  241. }
  242. public function prolist()
  243. {
  244. // if (!$this->auth->isLoggedIn())
  245. // return Doo::conf()->APP_URL;
  246. // $proArray = new stdClass();
  247. // $jsonpath = pathinfo($this->attfile->getMaxRow()['filepath']);
  248. // $extPathdir = Doo::conf()->SITE_PATH . $jsonpath['dirname'] . '/' . $jsonpath['filename'];
  249. // if ($handle = opendir($extPathdir)) {
  250. // while (false !== ($file = readdir($handle))) {
  251. // $filename = pathinfo($file);
  252. // if ($filename['extension'] == 'json')
  253. // $proArray = json_decode(file_get_contents($extPathdir . '/' . $file));
  254. // }
  255. // closedir($handle);
  256. // }
  257. // $this->data['proArray'] = null;
  258. $this->render('s-project', $this->data);
  259. }
  260. public function proDetail()
  261. {
  262. $numStatusArray = $this->numofperact->getLastRow($this->params['pid'], $this->params['pmid']);
  263. // 项目名称
  264. $mpidArray = $this->measureauditact->getAuditProject2($this->auth->getUid());
  265. foreach ($mpidArray as $k1 => $v1) {
  266. if ($v1['pid'] != $this->params['pid'])
  267. $this->data['allproArray'][] = $this->project->getRowByPid($v1['pid']);
  268. }
  269. $this->data['currproArray'] = $this->project->getRowByPid($this->params['pid']);
  270. $this->data['MeasureArray'] = $this->numofperact->getGroupByLastOne($this->params['pmid']);
  271. $measureArray = $this->actmeasure->getRowByPmid($this->params['pmid']);
  272. foreach ($this->data['MeasureArray'] as $key => $value) {
  273. if ($measureArray['contracttotal'] > ($value['currdone'] > 0)) {
  274. $this->data['MeasureArray'][$key]['lessTotal'] = round(($value['currdone'] / $measureArray['contracttotal']) * 100);
  275. } else {
  276. $this->data['MeasureArray'][$key]['lessTotal'] = 0;
  277. }
  278. }
  279. $this->data['pmid'] = $this->params['pmid'];
  280. $this->data['pid'] = $this->params['pid'];
  281. $this->data['mpid'] = $numStatusArray['mpid'];
  282. $this->render('r-project-section-detail', $this->data, TRUE);
  283. }
  284. public function proReport()
  285. {
  286. // 面包屑导航
  287. // 期数列表
  288. $tmpArray = $this->numofperact->getGroupByLastOne2($this->params['pmid']);
  289. foreach ($tmpArray as $k => $v) {
  290. $intTime = $this->numofperact->getMaxTimes($v['pmid'], $v['numpname'])['times'];
  291. $nfArray[] = $this->numofperact->getRow($v['pmid'], $v['numpname'], $intTime);
  292. }
  293. foreach ($nfArray as $k => $v) {
  294. if ($v['mpid'] == $this->params['mpid']) {
  295. $this->data['mpid'] = $v['mpid'];
  296. $this->data['MeasureArray2'][] = $v;
  297. $this->data['currnum'] = $v['numpname'];
  298. } else {
  299. $this->data['numArray'][] = $v;
  300. }
  301. }
  302. $measureArray = $this->actmeasure->getRowByPmid($this->params['pmid']);
  303. foreach ($this->data['MeasureArray2'] as $key => $value) {
  304. if ($value['mpid'] == $this->params['mpid']) {
  305. $this->data['MeasureArray2'][$key]['currstatus'] = $this->statusArray[$value['currstatus']];
  306. if ($measureArray['contracttotal'] > ($value['currdone'] > 0)) {
  307. $this->data['MeasureArray2'][$key]['lessTotal'] = round(($value['currdone'] / $measureArray['contracttotal']) * 100);
  308. } else {
  309. $this->data['MeasureArray2'][$key]['lessTotal'] = 0;
  310. }
  311. }
  312. }
  313. //
  314. $lastRowArray = $this->numofperact->getLastNew2($this->params['pmid']);
  315. $maxTimes = $this->numofperact->getMaxTimes($lastRowArray['pmid'], $lastRowArray['numpname']);
  316. // $auditUserArray = $this->measureauditact->getAllAudit($lastRowArray['pmid'], $lastRowArray['numpname'], $maxTimes['times']);
  317. $maxtimez = $this->measureauditact->getRowGroupByTimes($this->params['mpid']);
  318. $auditUserArray = $this->measureauditact->getRowByMpidTimes($this->params['mpid'], $maxtimez['times']);
  319. $auditArray = $this->measureauditact->getLastNewRowInfo($lastRowArray['pmid'], $lastRowArray['numpname'], $this->auth->getUid());
  320. if (isset($_POST['act'])) {
  321. $auditStatusArray = array('checkno', 'checked');
  322. $myAuditStatus = $this->measureauditact->getMyAuditStatus($lastRowArray['pmid'], $lastRowArray['numpname'], $maxTimes['times'], $this->auth->getUid());
  323. if (in_array($myAuditStatus['mastatus'], $auditStatusArray)) {
  324. echo json_encode(array('status' => 1), JSON_UNESCAPED_UNICODE);
  325. die();
  326. }
  327. }
  328. if ($_POST['act'] == 'p') {
  329. if ($this->measureauditact->setMyAuditPass($auditArray['maid'], $_POST['content'], 1, $this->auth->getUid())) {
  330. $countAudit = count($auditUserArray);
  331. $this->attfile->updateHash($lastRowArray['pmid'], $lastRowArray['numpname'], $maxTimes['times']);
  332. if ($auditArray['last'] == 1) {
  333. $this->numofperact->updateAuditStatus($lastRowArray['pmid'], $lastRowArray['numpname'], 'checked', $maxTimes['times']);
  334. echo json_encode(array('status' => 1), JSON_UNESCAPED_UNICODE);
  335. die();
  336. } else {
  337. if (($countAudit == 2) && ($auditUserArray[1]['last'] == 1) && ($auditUserArray[0]['maid'] == $auditArray['maid'])) {
  338. $this->measureauditact->updateMastatus($auditUserArray[1]['maid']);
  339. $this->numofperact->updateAuditStatus($lastRowArray['pmid'], $lastRowArray['numpname'], 'checking', $maxTimes['times']);
  340. echo json_encode(array('status' => 1), JSON_UNESCAPED_UNICODE);
  341. die();
  342. }
  343. if (($countAudit > 2)) {
  344. foreach ($auditUserArray as $k => $v) {
  345. if ($v['maid'] == $auditArray['maid']) {
  346. if ($k == ($countAudit - 1)) {//如果是最后一个
  347. $this->measureauditact->updateMastatus($auditUserArray[0]['maid']);
  348. } else {
  349. $this->measureauditact->updateMastatus($auditUserArray[$k + 1]['maid']);
  350. }
  351. $this->numofperact->updateAuditStatus($lastRowArray['pmid'], $lastRowArray['numpname'], 'checking', $maxTimes['times']);
  352. echo json_encode(array('status' => 1), JSON_UNESCAPED_UNICODE);
  353. die();
  354. }
  355. }
  356. }
  357. }
  358. }
  359. }
  360. if ($_POST['act'] == 'np') {
  361. $this->measureauditact->setCheckno($auditArray['maid'], $_POST['content'], 1);
  362. $this->numofperact->updateAuditStatus($lastRowArray['pmid'], $lastRowArray['numpname'], 'checkno', $maxTimes['times']);
  363. $this->attfile->updateHash($lastRowArray['pmid'], $lastRowArray['numpname'], $maxTimes['times']);
  364. echo json_encode(array('status' => 1), JSON_UNESCAPED_UNICODE);
  365. die();
  366. }
  367. $this->data['pmid'] = $lastRowArray['pmid'];
  368. $this->data['numpname'] = $lastRowArray['numpname'];
  369. $this->data['times'] = $lastRowArray['times'];
  370. $this->data['pid'] = $this->params['pid'];
  371. foreach ($auditUserArray as $key => $value) {
  372. $strAvatar = $this->auth->getAvatar($value['auditoruid']);
  373. $i = $key + 1;
  374. if ($value['auditoruid'] == $this->auth->getUid()) {
  375. $this->data['mastatus'] = $value['mastatus'];
  376. $this->data['maid'] = $value['maid'];
  377. }
  378. if ($value['mastatus'] == 'uncheck') {
  379. $statuStr = '';
  380. $statucolorStr = '';
  381. $statushtml = '<li title="" class=""><img src="' . $strAvatar . '"></li>';
  382. }
  383. if ($value['mastatus'] == 'checking') {
  384. $statuStr = '<h4 class="colOrange">审批中</h4>';
  385. $statucolorStr = 'colOrange';
  386. $statushtml = '<li title="审批中" class="wait"><span data-icon="k" aria-hidden="true"></span> <img src="' . $strAvatar . '"></li>';
  387. }
  388. if ($value['mastatus'] == 'checked') {
  389. $statuStr = '<h4 class="colGreen">审批完成(' . date('Y-m-d', $value['audittime']) . ')</h4>';
  390. $statucolorStr = 'colGreen';
  391. $statushtml = '<li title="审批通过" class="pass"><span data-icon="d" aria-hidden="true"></span><img src="' . $strAvatar . '"></li>';
  392. }
  393. if ($value['mastatus'] == 'checkno') {
  394. $statuStr = '<h4 class="colRed">审批不通过(' . date('Y-m-d', $value['audittime']) . ')</h4>';
  395. $statucolorStr = 'colRed';
  396. $statushtml = '<li title="审批不通过" class="notpass"><span data-icon="e" aria-hidden="true"></span><img src="' . $strAvatar . '"></li>';
  397. }
  398. $auditUserArray[$key]['statuStr'] = $statuStr;
  399. $auditUserArray[$key]['statucolorStr'] = $statucolorStr;
  400. $auditUserArray[$key]['statushtml'] = $statushtml;
  401. $auditUserArray[$key]['k'] = $i;
  402. $auditUserArray[$key]['name'] = $this->profile->getProWithUid($value['auditoruid'])['name'];
  403. }
  404. $this->data['auditArray'] = $auditUserArray;
  405. $this->data['pmid'] = $this->params['pmid'];
  406. $this->data['pid'] = $this->params['pid'];
  407. $this->data['mpid'] = $this->params['mpid'];
  408. $this->render('r-project-section-report', $this->data, TRUE);
  409. }
  410. }
  411. ?>