示例#1
0
 public function actionChangetheStatus()
 {
     if ($this->_isPost()) {
         foreach ($_POST['ids'] as $_msg) {
             if (!$this->_modelWorkOrder->ChangeStatus($_msg, $_POST['status'])) {
                 $error .= "{id:" . $_msg . "}";
             }
         }
         if (empty($error)) {
             $this->_utilMsg->showMsg($error, -1);
         } else {
             $this->_utilMsg->showMsg('操作成功', 1);
         }
     }
 }