From a754755e66cbf9a07637eaccd16bde92f3768705 Mon Sep 17 00:00:00 2001 From: "gary_chen\\gary_chen" Date: Mon, 30 Oct 2023 17:19:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AE=9C=E8=98=AD=E5=B7=A5?= =?UTF-8?q?=E5=8B=99=E7=B5=84=E9=95=B7=20=E5=A4=A7=E6=97=A5=E7=A8=8B(?= =?UTF-8?q?=E5=AF=A6=E9=9A=9B=E5=AE=89=E8=A3=9D=E5=8F=8A=E8=A9=A6=E8=BB=8A?= =?UTF-8?q?=E6=97=A5=E7=A8=8B)=E6=AC=8A=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/wipwhole-index-function.php | 11 +++++++++-- wms/wipwhole-renovate-index-function.php | 7 +++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/wms/wipwhole-index-function.php b/wms/wipwhole-index-function.php index b54b8951..a6d3d873 100644 --- a/wms/wipwhole-index-function.php +++ b/wms/wipwhole-index-function.php @@ -1038,6 +1038,8 @@ function getSaveEstimateInstallData($user_department_id, $role_id) return true; if ($user_department_id == '312' && $role_id == '3') return true; + if ($user_department_id == '541' && $role_id == '1') + return true; return false; } @@ -1045,6 +1047,8 @@ function saveInstallData($user_department_id, $role_id) { if ($user_department_id == '521' && $role_id == '9') return true; + if ($user_department_id == '541' && $role_id == '1') + return true; if ($user_department_id == '542' && in_array($role_id, ['5', '6'])) return true; if ($user_department_id == '544' && $role_id == '3') @@ -1053,13 +1057,16 @@ function saveInstallData($user_department_id, $role_id) return true; if ($user_department_id == '545' && $role_id == '6') return true; + if ($user_department_id == '545' && $role_id == '6') + return true; if ($user_department_id == '220') return true; return false; } -function getWipwholeChangePlanningCustomerDetailsStatus($link,$id){ +function getWipwholeChangePlanningCustomerDetailsStatus($link, $id) +{ $sql = " SELECT custom_name, @@ -1072,4 +1079,4 @@ function getWipwholeChangePlanningCustomerDetailsStatus($link,$id){ LIMIT 1 "; return mysqli_query($link, $sql); -} \ No newline at end of file +} diff --git a/wms/wipwhole-renovate-index-function.php b/wms/wipwhole-renovate-index-function.php index f3eebf79..86ca72c0 100644 --- a/wms/wipwhole-renovate-index-function.php +++ b/wms/wipwhole-renovate-index-function.php @@ -1001,6 +1001,8 @@ function getWipwholeChangeButtonStatus($user_department_id) function getSaveInstallDataButtonStatus($user_department_id, $role_id) { + if ($user_department_id == '541' && $role_id == '1') + return true; if ($user_department_id == '521' && $role_id == '9') return true; if ($user_department_id == '542' && in_array($role_id, ['5', '6'])) @@ -1016,7 +1018,8 @@ function getSaveInstallDataButtonStatus($user_department_id, $role_id) return false; } -function getWipwholeChangePlanningCustomerDetailsStatus($link,$id){ +function getWipwholeChangePlanningCustomerDetailsStatus($link, $id) +{ $sql = " SELECT custom_name, @@ -1029,4 +1032,4 @@ function getWipwholeChangePlanningCustomerDetailsStatus($link,$id){ LIMIT 1 "; return mysqli_query($link, $sql); -} \ No newline at end of file +}