Ejemplo n.º 1
0
 public function actionIndex()
 {
     $OPD = new ChargeOpd();
     $IPD = new ChargeIpd();
     $HOSPCODE = \Yii::$app->request->post('HOSPCODE');
     $PID = \Yii::$app->request->post('PID');
     $SEQ = \Yii::$app->request->post('SEQ');
     $data['opd'] = $OPD->get_charg_opd($HOSPCODE, $PID, $SEQ);
     $data['ipd'] = $IPD->get_charg_ipd($HOSPCODE, $PID, $SEQ);
     return $this->renderPartial('view', $data);
 }
Ejemplo n.º 2
0
 public function actionIndex()
 {
     $HOSPCODE = \Yii::$app->request->post('HOSPCODE');
     $PID = \Yii::$app->request->post('PID');
     $SEQ = \Yii::$app->request->post('SEQ');
     $result = ChargeOpd::find()->where(['HOSPCODE' => $HOSPCODE, 'PID' => $PID, 'SEQ' => $SEQ])->all();
     return $this->renderPartial('index', ['result' => $result]);
 }