예제 #1
0
 public function actionRabotaOrg()
 {
     Yii::$app->response->format = Response::FORMAT_JSON;
     $parents = Yii::$app->request->post('depdrop_parents');
     $vedomstvo_id = $parents[0];
     $ao_id = $parents[1];
     $params['valueColumn'] = 'nazvanie';
     return Organizaciya::findByVedomstvoAndAdres($vedomstvo_id, $ao_id)->commonOnly()->formattedAll(EntityQuery::DEP_DROP_AJAX, $params);
 }
예제 #2
0
 public function actionRabotaOrg()
 {
     //Yii::$app->response->format = Response::FORMAT_JSON;
     $parents = Yii::$app->request->post('depdrop_parents');
     $vedomstvo_id = $parents[0];
     $ao_id = $parents[1];
     $oid = Yii::$app->request->get('oid');
     $params['valueColumn'] = 'nazvanie';
     $params['selected'] = $oid;
     echo json_encode(Organizaciya::findByVedomstvoAndAdres($vedomstvo_id, $ao_id)->commonOnly()->formattedAll(EntityQuery::DEP_DROP_AJAX, $params));
     die;
 }