Exemplo n.º 1
0
 public function getssUser($sscode)
 {
     $uDenpyo = new Udenpyo();
     $tm08Sagyosya = $uDenpyo->getTm08Sagyosya(['M08_SS_CD' => $sscode]);
     $ssUser = [];
     if (count($tm08Sagyosya)) {
         foreach ($tm08Sagyosya as $tmp) {
             $ssUser[$tmp['M08_JYUG_CD']] = $tmp['M08_NAME_SEI'] . $tmp['M08_NAME_MEI'];
         }
     }
     return $ssUser;
 }
Exemplo n.º 2
0
 public function actionSs()
 {
     $ssCode = Yii::$app->request->post('ssCode');
     $uDenpyo = new Udenpyo();
     $tm08Sagyosya = $uDenpyo->getTm08Sagyosya(['M08_SS_CD' => $ssCode]);
     $ssUser['0'] = [];
     $ssUser['1'] = [];
     if (count($tm08Sagyosya)) {
         foreach ($tm08Sagyosya as $tmp) {
             $ssUser['0'][$tmp['M08_JYUG_CD']] = $tmp['M08_NAME_SEI'] . $tmp['M08_NAME_MEI'];
             $ssUser['1'][$tmp['M08_NAME_SEI'] . '[]' . $tmp['M08_NAME_MEI']] = $tmp['M08_NAME_SEI'] . $tmp['M08_NAME_MEI'];
         }
     }
     Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
     return $ssUser;
 }