Exemplo n.º 1
0
 public function actionDelete()
 {
     if ($this->M_timeinfo->removeByIds($_POST['serial'])) {
         $this->M_chninfo->removeByConditions("dev_no='{$_POST['serial']}'");
         $this->_G->show(2003, "time", "Index");
     } else {
         $this->_G->show(2013, "time", "Index");
     }
 }
Exemplo n.º 2
0
 public function actionDelete()
 {
     if ($this->M_devinfo->removeByIds($_POST['serial'])) {
         $this->M_chninfo->removeByConditions("dev_no='{$_POST['serial']}'");
         $this->_G->customshow("删除成功", "socket", "Index", 3, 1);
     } else {
         $this->_G->customshow("删除失败", "socket", "Index", 3, 0);
     }
 }