|
@@ -11,10 +11,18 @@ class HouseKeepingController extends AdminController
|
|
{
|
|
{
|
|
public function actionIndex()
|
|
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);
|
|
$status_option = CommonFn::getComboboxData(HouseKeeping::$status_option, 1, true, 100);
|
|
$type_option = CommonFn::getComboboxData(HouseKeeping::$type_option, 1, true, 100);
|
|
$type_option = CommonFn::getComboboxData(HouseKeeping::$type_option, 1, true, 100);
|
|
$cart_options = CommonFn::getComboboxData(HouseKeeping::$cart_options, 1, true, 100);
|
|
$cart_options = CommonFn::getComboboxData(HouseKeeping::$cart_options, 1, true, 100);
|