* Adjust code style.

This commit is contained in:
Yagami
2020-08-31 09:04:25 +08:00
parent 85847ef426
commit 2b0dfd8168
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -395,7 +395,7 @@ class custom extends control
$this->lang->custom->menu = new stdclass();
$this->lang->navGroup->custom = 'system';
if(strtolower($this->server->request_method) == "post")
if($_POST)
{
$data = fixer::input('post')->get();
$this->loadModel('setting')->setItem('system.custom.planStatus', $data->planStatus);
+2 -2
View File
@@ -1,4 +1,4 @@
<?php
$config->durationestimation = new stdclass;
$config->durationestimation->index = new stdclass;
$config->durationestimation = new stdclass();
$config->durationestimation->index = new stdclass();
$config->durationestimation->index->requiredFields = 'scale,productivity,scale,duration,unitLaborCost,totalLaborCost';
+4 -2
View File
@@ -1,13 +1,13 @@
<?php
/**
* The control file of durationestimation of ChanzhiEPS.
* The control file of durationestimation of ZentaoPMS.
*
* @copyright Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv11.html)
* @author Xiying Guan <guanxiying@xirangit.com>
* @package durationestimation
* @version $Id$
* @link http://www.chanzhi.org
* @link http://www.zentao.net
*/
class durationestimation extends control
{
@@ -51,7 +51,9 @@ class durationestimation extends control
$total = 0;
foreach($this->post->workload as $value) $total += $value;
if($total != 100) $this->send(array('result' => 'fail', 'message' => $this->lang->durationestimation->workloadError));
$this->durationestimation->save($programID);
if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError()));
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inlink('index', "currentProgram={$programID}")));
}