|
@@ -14,6 +14,7 @@ Doo::loadClass('numofperact');
|
|
Doo::loadClass('measureauditact');
|
|
Doo::loadClass('measureauditact');
|
|
Doo::loadClass('itemfile');
|
|
Doo::loadClass('itemfile');
|
|
Doo::loadModel('users');
|
|
Doo::loadModel('users');
|
|
|
|
+Doo::loadClass('itemmeasurenum');
|
|
|
|
|
|
/**
|
|
/**
|
|
* MainController
|
|
* MainController
|
|
@@ -24,7 +25,7 @@ Doo::loadModel('users');
|
|
class ClientController extends DooController
|
|
class ClientController extends DooController
|
|
{
|
|
{
|
|
|
|
|
|
- private $data, $client, $auth, $att, $file, $zip, $actmeasure, $contractact, $project, $profile, $numofperact, $measureauditact, $attfile, $users, $itemfile;
|
|
|
|
|
|
+ private $data, $client, $auth, $att, $file, $zip, $actmeasure, $contractact, $project, $profile, $numofperact, $measureauditact, $attfile, $users, $itemfile, $itemMeasureNum;
|
|
private $statusArray = array('uncheck' => '1', 'checking' => '2', 'checked' => '3', 'checkno' => '4');
|
|
private $statusArray = array('uncheck' => '1', 'checking' => '2', 'checked' => '3', 'checkno' => '4');
|
|
private $fileTypeArray = array('台帐附件');
|
|
private $fileTypeArray = array('台帐附件');
|
|
|
|
|
|
@@ -44,6 +45,7 @@ class ClientController extends DooController
|
|
$this->measureauditact = new MeasureauditAct();
|
|
$this->measureauditact = new MeasureauditAct();
|
|
$this->users = new Users();
|
|
$this->users = new Users();
|
|
$this->itemfile = new ItemFile();
|
|
$this->itemfile = new ItemFile();
|
|
|
|
+ $this->itemMeasureNum = new ItemMeasureNumpofper();
|
|
}
|
|
}
|
|
|
|
|
|
public function ClientSignin()
|
|
public function ClientSignin()
|
|
@@ -1084,8 +1086,13 @@ class ClientController extends DooController
|
|
$memoStr = iconv('GBK', 'UTF-8', $_POST['Memo']);
|
|
$memoStr = iconv('GBK', 'UTF-8', $_POST['Memo']);
|
|
$fnArray = explode('.', $fileArray['filename']);
|
|
$fnArray = explode('.', $fileArray['filename']);
|
|
$filenameStr = iconv('GBK', 'UTF-8', $fnArray[0]);
|
|
$filenameStr = iconv('GBK', 'UTF-8', $fnArray[0]);
|
|
- $postArray = array('mpid' => $this->params['tenderid'], 'ownerid' => $this->params['uid'], 'itemid' => $_POST['itemid'], 'filename' => $filenameStr, 'filesize' => $fileArray['filesize'], 'fileext' => $fileArray['fileext'], 'filepath' => $fileArray['filepath'], 'categoryid' => array_search($_POST['Category'], $this->fileTypeArray), 'tips' => $memoStr);
|
|
|
|
- if ($this->itemfile->insertItemFileRecord($postArray) > 1) {
|
|
|
|
|
|
+// $postArray = array('mpid' => $this->params['tenderid'], 'ownerid' => $this->params['uid'], 'itemid' => $_POST['itemid'], 'filename' => $filenameStr, 'filesize' => $fileArray['filesize'], 'fileext' => $fileArray['fileext'], 'filepath' => $fileArray['filepath'], 'categoryid' => array_search($_POST['Category'], $this->fileTypeArray), 'tips' => $memoStr);
|
|
|
|
+ $postArray = array('ownerid' => $this->params['uid'], 'filename' => $filenameStr, 'filesize' => $fileArray['filesize'], 'fileext' => $fileArray['fileext'], 'filepath' => $fileArray['filepath']);
|
|
|
|
+ $iaid = $this->itemfile->insertItemFileRecord($postArray);
|
|
|
|
+ if ($iaid > 1) {
|
|
|
|
+ $pidArray = $this->numofperact->getRowByMpid($this->params['tenderid']);
|
|
|
|
+ $itemMeasureNumArray = array('iaid' => $iaid, 'pid' => $pidArray['pid'], 'mpid' => $this->params['tenderid'], 'ownerid' => $this->params['uid'], 'itemid' => $_POST['itemid'], 'tips' => $memoStr);
|
|
|
|
+ $this->itemMeasureNum->insert($itemMeasureNumArray);
|
|
$extPath = pathinfo($fileArray['filepath']);
|
|
$extPath = pathinfo($fileArray['filepath']);
|
|
$itemArray = array('onlineFileName' => $extPath['filename'] . '.' . $extPath['extension']);
|
|
$itemArray = array('onlineFileName' => $extPath['filename'] . '.' . $extPath['extension']);
|
|
$status = array('status' => TRUE, 'msg' => '', 'iteminfo' => $itemArray);
|
|
$status = array('status' => TRUE, 'msg' => '', 'iteminfo' => $itemArray);
|
|
@@ -1140,6 +1147,24 @@ class ClientController extends DooController
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * 删除清单附件
|
|
|
|
+ */
|
|
|
|
+ public function delItemFile()
|
|
|
|
+ {
|
|
|
|
+ if (isset($this->params['fileid']) && isset($_POST['FileName']) && isset($_POST['Memo'])) {
|
|
|
|
+ if ($this->itemfile->updateItemFields($this->params['fileid'], $_POST['FileName'], $_POST['Memo']) > 0) {
|
|
|
|
+ echo json_encode(array('status' => 'TRUE', 'msg' => ''), JSON_UNESCAPED_UNICODE);
|
|
|
|
+ die();
|
|
|
|
+ } else {
|
|
|
|
+ echo json_encode(array('status' => 'FALSE', 'msg' => '附件更新接口参数错误'), JSON_UNESCAPED_UNICODE);
|
|
|
|
+ die();
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ $this->msg(0, '附件更新接口参数错误');
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
* 查询指定项目的指定期的全部审批意见。
|
|
* 查询指定项目的指定期的全部审批意见。
|
|
* 标段ID,期号
|
|
* 标段ID,期号
|
|
*/
|
|
*/
|