north 7 anos atrás
pai
commit
72ed139c83
1 arquivos alterados com 12 adições e 4 exclusões
  1. 12 4
      www/protected/controllers/HouseKeepingController.php

+ 12 - 4
www/protected/controllers/HouseKeepingController.php

@@ -11,10 +11,18 @@ class HouseKeepingController extends AdminController
 {
     public function actionIndex()
     {
-        //$tmp = HouseKeeping::model()->findAll();
-        //foreach ($tmp as $k => $v) {
-          //  $v->delete();
-        //}
+        $tmp = HouseKeeping::model()->findAll();
+        foreach ($tmp as $k => $v) {
+            $v->delete();
+        }
+        $tmp = JGEmploye::model()->findAll();
+        foreach ($tmp as $k => $v) {
+            $v->delete();
+        }
+        $tmp = JEmploye::model()->findAll();
+        foreach ($tmp as $k => $v) {
+            $v->delete();
+        }
         $status_option = CommonFn::getComboboxData(HouseKeeping::$status_option, 1, true, 100);
         $type_option = CommonFn::getComboboxData(HouseKeeping::$type_option, 1, true, 100);
         $cart_options = CommonFn::getComboboxData(HouseKeeping::$cart_options, 1, true, 100);