RProjectController.php 22 KB

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