diff --git a/frontend/modules/histo/controllers/HeController.php b/frontend/modules/histo/controllers/HeController.php
index 140a6bee..2d8d1084 100644
--- a/frontend/modules/histo/controllers/HeController.php
+++ b/frontend/modules/histo/controllers/HeController.php
@@ -57,6 +57,7 @@ class HeController extends Controller
Yii::$app->session->setFlash('error', 'ไม่พบ Block ที่ต้องการ');
return $this->redirect(['embed']);
}
+
if (empty($case_block[1])) {
Yii::$app->session->setFlash('error', 'กรุณาระบุ Block No.');
return $this->redirect(['embed']);
diff --git a/frontend/modules/register/views/case/history-surgical.php b/frontend/modules/register/views/case/history-surgical.php
index 58512e8e..9e19bdb4 100644
--- a/frontend/modules/register/views/case/history-surgical.php
+++ b/frontend/modules/register/views/case/history-surgical.php
@@ -1,6 +1,5 @@
CaseSurgical::find()
//->andFilterWhere(['given_name' => Html::encode($case->given_name)])
->andFilterWhere(['h_n' => Html::encode($case->h_n)])
- ->andFilterWhere(['<>', 'id_case', Html::encode($case->id_case)])
+ //->andFilterWhere(['<>', 'id_case', Html::encode($case->id_case)])
+ ->orderBy(['register_at' => SORT_DESC])
]),
'columns' => [
['class' => 'yii\grid\SerialColumn'],
@@ -91,7 +91,6 @@ use yii\helpers\Html;
$rt .= '';
} //surgical count
}
-
return $rt;
}
],
diff --git a/frontend/modules/report/views/case/view.php b/frontend/modules/report/views/case/view.php
index abfdbc44..c6968144 100644
--- a/frontend/modules/report/views/case/view.php
+++ b/frontend/modules/report/views/case/view.php
@@ -52,19 +52,16 @@ $this->params['breadcrumbs'][] = $this->title;
release_at)) { ?>
ตรวจสอบผลแล้วยังไม่ Release
-
report_type == 'outlab') { ?>
getReport() as $file => $val) { ?>
= Html::a(Html::img(Yii::getAlias('@web') . '/img/icon/pdf-red.png', ['width' => 30]), Yii::getAlias('@web') . '/' . $case->uploadReportFolder . '/' . $val, ['target' => '_blank', 'class' => 'text-success']); ?>
-
report_type == 'consult-outlab') { ?>
getConsultReport() as $file => $val) { ?>
= Html::a(Html::img(Yii::getAlias('@web') . '/img/icon/pdf-red.png', ['width' => 30]), Yii::getAlias('@web') . '/' . $case->uploadConsultReportFolder . '/' . $val, ['target' => '_blank', 'class' => 'text-success']); ?>
-
user->can('system')) { ?>
report_type != 'outlab') && ($case->report_type != 'consult-outlab')) { ?>
= Html::a(Html::img(Yii::getAlias('@web') . '/img/icon/pdf-red.png', ['width' => 30]), ['surgical-pdf', 'id_case' => $model->id_case, 'report_type' => $case->report_type, 'id' => $case->id, 'mode' => 'final', 'file' => false], ['target' => '_blank', 'class' => 'text-success']) ?>
@@ -73,9 +70,7 @@ $this->params['breadcrumbs'][] = $this->title;
= Html::a(Html::img(Yii::getAlias('@web') . '/img/icon/pdf-red.png', ['width' => 30]), ['surgical-pdf', 'id_case' => $model->id_case, 'report_type' => $case->report_type, 'id' => $case->id, 'mode' => 'final', 'watermark' => 1, 'file' => false], ['target' => '_blank', 'class' => 'text-success']) ?>
= Html::a(Html::img(Yii::getAlias('@web') . '/img/icon/pdf-green.png', ['width' => 30]), ['surgical-pdf', 'id_case' => $model->id_case, 'report_type' => $case->report_type, 'id' => $case->id, 'mode' => 'final', 'file' => false, 'watermark' => false], ['target' => '_blank', 'class' => 'text-success']) ?>
-
-
รอตรวจสอบผล
@@ -83,7 +78,6 @@ $this->params['breadcrumbs'][] = $this->title;
-
pathology->getCaseType($model->id_case) == 'non-gyn') { ?>
Request File
@@ -137,9 +131,7 @@ $this->params['breadcrumbs'][] = $this->title;
= Html::a(Html::img(Yii::getAlias('@web') . '/img/icon/pdf-red.png', ['width' => 30]), ['non-gyn-pdf', 'id_case' => $model->id_case, 'report_type' => $case->report_type, 'id' => $case->id, 'mode' => 'final', 'watermark' => 1, 'file' => false], ['target' => '_blank', 'class' => 'text-success']) ?>
= Html::a(Html::img(Yii::getAlias('@web') . '/img/icon/pdf-green.png', ['width' => 30]), ['non-gyn-pdf', 'id_case' => $model->id_case, 'report_type' => $case->report_type, 'id' => $case->id, 'mode' => 'final', 'file' => false, 'watermark' => false], ['target' => '_blank', 'class' => 'text-success']) ?>
-
-
รอตรวจสอบผล
@@ -148,7 +140,6 @@ $this->params['breadcrumbs'][] = $this->title;
-
pathology->getCaseType($model->id_case) == 'pap') { ?>
Request File
@@ -344,12 +335,10 @@ $this->params['breadcrumbs'][] = $this->title;
= Html::a(Html::img(Yii::getAlias('@web') . '/img/icon/pdf-green.png', ['width' => 30]), ['dish-pdf', 'id_case' => $model->id_case, 'report_type' => $case->report_type, 'id' => $case->id, 'mode' => 'final', 'file' => false, 'watermark' => false], ['target' => '_blank', 'class' => 'text-success']) ?>
-
รอตรวจสอบผล
-
@@ -419,7 +408,6 @@ $this->params['breadcrumbs'][] = $this->title;
-
pathology->getCaseType($model->id_case) == 'flow') { ?>