소스 검색

2.0.0 no.2 up

likeku 8 년 전
부모
커밋
fbcaf2fb9a
2개의 변경된 파일17개의 추가작업 그리고 7개의 파일을 삭제
  1. 9 0
      protected/class/measureauditact.php
  2. 8 7
      protected/controller/RProjectController.php

+ 9 - 0
protected/class/measureauditact.php

@@ -216,6 +216,15 @@ class MeasureauditAct
         return $this->__measureaudit->update(array('where' => 'maid=?', 'param' => array($maid)));
     }
 
+    public function updateMastatus2($maid)
+    {
+        $this->__measureaudit->mastatus = 'checking';
+        $this->__measureaudit->auditcontent = '';
+        $this->__measureaudit->onlineaudit = 0;
+//        $this->__measureaudit->audittime = '';
+        return $this->__measureaudit->update(array('where' => 'maid=?', 'param' => array($maid)));
+    }
+
     // for api
     public function updateAuditorMPID($mpid, $tenderid, $phaseno, $times = 0)
     {

+ 8 - 7
protected/controller/RProjectController.php

@@ -853,18 +853,19 @@ class RProjectController extends DooController
             die();
         }
         if($_POST['act'] == 'back') {
-            $this->measureauditact->setUncheck($auditArray['maid']);
+            $measureauditact = new MeasureauditAct();
+            $measureauditact->setUncheck($auditArray['maid']);
             $this->numofperact->updateAuditStatus($lastRowArray['pmid'], $lastRowArray['numpname'], 'checking', $maxTimes['times']);
 
             //获取并改变上一个审批人为审批中状态
             $lastmeasureauditact = $this->measureauditact->getMyAuditStatus($lastRowArray['pmid'], $lastRowArray['numpname'], $maxTimes['times'], $_POST['last']);
-            $this->measureauditact->updateMastatus($lastmeasureauditact['maid']);
+            $this->measureauditact->updateMastatus2($lastmeasureauditact['maid']);
             // SMS Start
-            $TenderArray = $this->actmeasure->getRowByPmid($lastRowArray['pmid']);
-            $userProArray = $this->profile->getProWithUid($_POST['last']);
-            if (isset($userProArray) && ($userProArray['mobile'])) {// // XXXX(标段名),陈特,已审批通过。请您继续审批。
-                $retval = $this->__auditNotice($userProArray['mobile'], Doo::conf()->SMS_TIPS_PRE . '您好,' . $TenderArray["pmname"] . Doo::conf()->SMS_TIPS["AUDIT_NOTICE_AUDITOR4"]);
-            }
+//            $TenderArray = $this->actmeasure->getRowByPmid($lastRowArray['pmid']);
+//            $userProArray = $this->profile->getProWithUid($_POST['last']);
+//            if (isset($userProArray) && ($userProArray['mobile'])) {// // XXXX(标段名),陈特,已审批通过。请您继续审批。
+//                $retval = $this->__auditNotice($userProArray['mobile'], Doo::conf()->SMS_TIPS_PRE . '您好,' . $TenderArray["pmname"] . Doo::conf()->SMS_TIPS["AUDIT_NOTICE_AUDITOR4"]);
+//            }
             // SMS End
             echo json_encode(array('status' => 1), JSON_UNESCAPED_UNICODE);
             die();