From 22f72d859de826d16d59e6f3628529ce1e286615 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Wed, 25 Sep 2024 15:12:20 +0300 Subject: [PATCH] =?utf8?q?[ERP-195]=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?utf8?q?=D0=B5=D0=BD=20=D1=80=D0=B0=D0=B1=D0=BE=D1=87=D0=B8=D0=B9=20?= =?utf8?q?=D0=B3=D1=80=D0=B0=D1=84=D0=B8=D0=BA=20=D0=B2=20=D0=BA=D0=B0?= =?utf8?q?=D0=B1=D0=B8=D0=BD=D0=B5=D1=82=D0=B0=D1=85=20=D0=B0=D0=B4=D0=BC?= =?utf8?q?=D0=B8=D0=BD=D0=B8=D1=81=D1=82=D1=80=D0=B0=D1=82=D0=BE=D1=80?= =?utf8?q?=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/records/Admin.php | 7 +++++++ erp24/views/cabinet202310/_personal_info.php | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/erp24/records/Admin.php b/erp24/records/Admin.php index 658c06c7..b6e81838 100755 --- a/erp24/records/Admin.php +++ b/erp24/records/Admin.php @@ -36,6 +36,12 @@ class Admin extends ActiveRecord implements IdentityInterface public $phone; + const WORK_RATE = [ + 1 => '5/2', + 2 => '2/2', + 3 => '3/3', + ]; + const SHIFT_HOUR_COUNT_ADMINISTRATOR = 8; const SHIFT_HOUR_COUNT_FLORIST = 12; const WORK_STATUS_IS_WORK = 1; @@ -443,6 +449,7 @@ class Admin extends ActiveRecord implements IdentityInterface 'store_arr_guid', 'store_arr', 'store_id', + 'work_rate' ]) ->indexBy('id') ->with('store') diff --git a/erp24/views/cabinet202310/_personal_info.php b/erp24/views/cabinet202310/_personal_info.php index 2d3d4744..6d701840 100755 --- a/erp24/views/cabinet202310/_personal_info.php +++ b/erp24/views/cabinet202310/_personal_info.php @@ -3,6 +3,9 @@ use yii_app\helpers\HtmlHelper; +use yii_app\records\Admin; +use yii_app\records\AdminGroup; + /* @var $daysSearchForm DaysSearchForm */ /* @var $employeeSelect array */ @@ -38,6 +41,12 @@ if (!empty($employeeSelect["group_id"]) && array_key_exists($employeeSelect["gro } ?> + График работ : " . (Admin::WORK_RATE[$employeeSelect["work_rate"]] ?? '5/2'); +} +?> + Должность : ".$employeePosition[$employeeSelect["d_id"]]; -- 2.39.5