|
@@ -13,7 +13,7 @@ class HouseKeepingController extends JBaseController
|
|
|
public function actionList()
|
|
|
{
|
|
|
|
|
|
- $id = intval(Yii::app()->request->getParam('id'));
|
|
|
+ $id = (Yii::app()->request->getParam('id'));
|
|
|
$store_id = intval(Yii::app()->request->getParam('store_id'));
|
|
|
|
|
|
|
|
@@ -33,7 +33,18 @@ class HouseKeepingController extends JBaseController
|
|
|
echo CommonFn::composeDatagridData($parsedRows, $total);
|
|
|
|
|
|
}
|
|
|
+ public function actionGetUser()
|
|
|
+ {
|
|
|
+ $id = (Yii::app()->request->getParam('user_id'));
|
|
|
+ $c= new EMongoCriteria();
|
|
|
+ $c->user_id('==',$id);
|
|
|
+ $tmp = JEmploye::model()->find($c);
|
|
|
+ $data = array();
|
|
|
+ $data['user_id'] = $tmp->user_id;
|
|
|
+ $data['store_id'] = $tmp->owned_stores;
|
|
|
|
|
|
+ echo json_encode($data);
|
|
|
+ }
|
|
|
public function actionGetStore()
|
|
|
{
|
|
|
$c= new EMongoCriteria();
|