-
-
+
+
- render('_search', ['model' => $searchModel]);
+
+
+ render('_search', ['model' => $searchModel]);
?>
-
+
- = GridView::widget([
+ = GridView::widget([
'dataProvider' => $dataProvider,
- 'tableOptions' => ['class' => 'table align-middle truncate m-0'],
+ 'tableOptions' => ['class' => 'table truncate align-middle'],
+ 'layout' => "{summary}
{pager}
",
//'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
@@ -46,8 +46,6 @@ $this->params['breadcrumbs'][] = $this->title;
//['class' => 'yii\grid\ActionColumn'],
],
]); ?>
-
-
\ No newline at end of file
diff --git a/frontend/themes/nikom/views/layouts/_menu.php b/frontend/themes/nikom/views/layouts/_menu.php
index 9978cfc8..6bed1dbd 100644
--- a/frontend/themes/nikom/views/layouts/_menu.php
+++ b/frontend/themes/nikom/views/layouts/_menu.php
@@ -1,9 +1,11 @@
user->can('pathologist')) {
//['label' => 'Case Necropsy
' . $count_new_necropsy . '', 'url' => ['/pathologist/task/necropsy-new']],
//['label' => 'My Necropsy Case', 'url' => ['/pathologist/task/necropsy-all']],
['label' => '
My Finish Case', 'url' => ['/pathologist/task/my-finish-task']],
- ['label' => '
ขอให้แก้ไขผลตรวจ', 'url' => ['/pathologist/task/my-approve-task']],
+ ['label' => '
ขอให้แก้ไขผลตรวจ' .
+ '
' .
+ ApproveStatus::find()->where(['status_id' => 15, 'approve_status' => 2, 'pathologist_id' => Yii::$app->user->getId()])->count() .
+ '', 'url' => ['/pathologist/task/my-approve-task']],
+ //['label' => '
ขอให้แก้ไขผลตรวจ', 'url' => ['/pathologist/task/my-approve-task']],
//['label' => 'ขอให้แก้ไขผลตรวจ
' . ApproveStatus::find()->filterWhere(['status_id' => 15])->andFilterWhere(['approve_status' => 2, 'pathologist_id' => Yii::$app->user->getId()])->count() . '', 'url' => ['/pathologist/task/my-approve-task']],
//['label' => 'ค้นหาผลการตรวจเดิม', 'url' => ['/report/case/old']],
- ['label' => '
รายการสั่งเติมเนื้อ', 'url' => ['/pathologist/surgical-add/index']],
- ['label' => '
รายการสั่ง Recut', 'url' => ['/pathologist/surgical-recut/index']],
- ['label' => '
Send Report to HIS', 'url' => ['/register/send-report-his/index']],
+ //['label' => '
รายการสั่งเติมเนื้อ', 'url' => ['/pathologist/surgical-add/index']],
+ //['label' => '
รายการสั่ง Recut', 'url' => ['/pathologist/surgical-recut/index']],
+ //['label' => '
Send Report to HIS', 'url' => ['/register/send-report-his/index']],
+ ],
+ ];
+
+ $count_consult_pathologist_surgical = SurgicalConsult::find()->where(['status' => 2, 'pathologist2_id' => Yii::$app->user->getId(), 'diagnosis_by' => 2])->count();
+ $count_consult_pathologist_non_gyn = CytoNonGynConsult::find()->where(['status' => 2, 'pathologist2_id' => Yii::$app->user->getId(), 'diagnosis_by' => 2])->count();
+ $count_consult_pathologist_pap = CytoPapConsult::find()->where(['status' => 2, 'pathologist2_id' => Yii::$app->user->getId(), 'diagnosis_by' => 2])->count();
+ //$count_consult_pathologist_dish = DishConsult::find()->where(['status' => 2, 'pathologist2_id' => Yii::$app->user->getId(), 'diagnosis_by' => 2])->count();
+ //$count_consult_pathologist_frozen = FrozenConsult::find()->where(['status' => 2, 'pathologist2_id' => Yii::$app->user->getId(), 'diagnosis_by' => 2])->count();
+ //$count_consult_pathologist_fish = FishConsult::find()->where(['status' => 2, 'pathologist2_id' => Yii::$app->user->getId(), 'diagnosis_by' => 2])->count();
+ //$count_consult_pathologist_flow = FlowConsult::find()->where(['status' => 2, 'pathologist2_id' => Yii::$app->user->getId(), 'diagnosis_by' => 2])->count();
+ // $count_consult_pathologist_autopsy = AutopsyConsult::find()->where(['status' => 2, 'pathologist2_id' => Yii::$app->user->getId(), 'diagnosis_by' => 2])->count();
+ //$count_consult_pathologist_molecular = MolecularConsult::find()->where(['status' => 2, 'pathologist2_id' => Yii::$app->user->getId(), 'diagnosis_by' => 2])->count();
+ //$count_consult_pathologist_necropsy = NecropsyConsult::find()->where(['status' => 2, 'pathologist2_id' => Yii::$app->user->getId(), 'diagnosis_by' => 2])->count();
+
+ //$menu[] = ['label' => '
Consult Case', 'url' => '#', 'options' => ['class' => 'sidebar-list'], 'template' => '', 'items' => [
+ /*$menu[] = [
+ 'label' => '
Consult Case' . '
' . ($count_consult_pathologist_surgical + $count_consult_pathologist_non_gyn + $count_consult_pathologist_pap + $count_consult_pathologist_frozen + $count_consult_pathologist_dish + + $count_consult_pathologist_autopsy + $count_consult_pathologist_molecular + $count_consult_pathologist_necropsy) . '', 'url' => '#', 'options' => ['class' => 'sidebar-list'], 'template' => '', 'items' => [
+ ['label' => 'Surgical Consult
' . $count_consult_pathologist_surgical . '', 'url' => ['/pathologist/surgical-consult/index']],
+ ['label' => 'Non-Gyn Consult
' . $count_consult_pathologist_non_gyn . '', 'url' => ['/pathologist/non-gyn-consult/index']],
+ ['label' => 'Gyn Consult
' . $count_consult_pathologist_pap . '', 'url' => ['/pathologist/pap-consult/index']],
+ //['label' => 'DISH Consult
' . $count_consult_pathologist_dish . '', 'url' => ['/pathologist/dish-consult/index']],
+ //['label' => 'Frozen Consult
' . $count_consult_pathologist_frozen . '', 'url' => ['/pathologist/frozen-consult/index']],
+ //['label' => 'FISH Consult
' . $count_consult_pathologist_fish . '', 'url' => ['/pathologist/fish-consult/index']],
+ //['label' => 'Flow Consult
' . $count_consult_pathologist_flow . '', 'url' => ['/pathologist/flow-consult/index']],
+ ['label' => 'Autopsy Consult
' . $count_consult_pathologist_autopsy . '', 'url' => ['/pathologist/autopsy-consult/index']],
+ //['label' => 'Molecular Consult
' . $count_consult_pathologist_molecular . '', 'url' => ['/pathologist/molecular-consult/index']],
+ //['label' => 'Necropsy Consult
' . $count_consult_pathologist_necropsy . '', 'url' => ['/pathologist/necropsy-consult/index']],
+ ], 'submenuTemplate' => ''
+ ];*/
+
+ $menuItems[] = [
+ //'label' => '
' . '
' . ($count_consult_pathologist_surgical + $count_consult_pathologist_non_gyn + $count_consult_pathologist_pap + $count_consult_pathologist_autopsy) . '',
+ 'label' => '