Merge branch 'master' of github.com:easysoft/zentaopms

This commit is contained in:
wangyidong
2017-03-22 14:12:51 +08:00
4 changed files with 81 additions and 10 deletions
+23 -7
View File
@@ -727,7 +727,7 @@ class testcase extends control
$this->view->cases = $cases;
$this->display();
}
}
/**
* Review case.
@@ -806,6 +806,21 @@ class testcase extends control
}
}
/**
* Batch delete cases.
*
* @param int $productID
* @access public
* @return void
*/
public function batchDelete($productID = 0)
{
$caseIDList = $this->post->caseIDList ? $this->post->caseIDList : die(js::locate($this->session->caseList));
foreach($caseIDList as $caseID) $this->testcase->delete(TABLE_CASE, $caseID);
die(js::locate($this->session->caseList));
}
/**
* Batch change the module of case.
*
@@ -833,18 +848,19 @@ class testcase extends control
}
/**
* Batch delete cases.
* Batch review case.
*
* @param int $productID
* @param string $result
* @access public
* @return void
*/
public function batchDelete($productID = 0)
public function batchCaseTypeChange($result)
{
$caseIDList = $this->post->caseIDList ? $this->post->caseIDList : die(js::locate($this->session->caseList));
$caseIdList = $this->post->caseIDList ? $this->post->caseIDList : die(js::locate($this->session->caseList, 'parent'));
$this->testcase->batchCaseTypeChange($caseIdList, $result);
foreach($caseIDList as $caseID) $this->testcase->delete(TABLE_CASE, $caseID);
die(js::locate($this->session->caseList));
if(dao::isError()) die(js::error(dao::getError()));
die(js::locate($this->session->caseList, 'parent'));
}
/**