From 194e5216fae0b61e9ebc9224529519917b76a89a Mon Sep 17 00:00:00 2001 From: "choi.jh" Date: Mon, 20 Oct 2025 10:25:29 +0900 Subject: [PATCH] dbmsv3 init...1 --- app/Cells/SearchCell.php | 31 +++++++++++++++++++++++++++++++ app/Views/admin/client/detail.php | 14 ++++++++++++++ app/Views/cells/search/client.php | 4 ++++ app/Views/layouts/admin/top.php | 15 ++++++++++----- 4 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 app/Cells/SearchCell.php create mode 100644 app/Views/cells/search/client.php diff --git a/app/Cells/SearchCell.php b/app/Cells/SearchCell.php new file mode 100644 index 0000000..1591190 --- /dev/null +++ b/app/Cells/SearchCell.php @@ -0,0 +1,31 @@ + "고객명 선택"]; + foreach ($this->getService()->getEntities() as $entity) { + $options[$entity->getPK()] = $entity->getTitle(); + } + $template = array_key_exists('template', $params) ? $params['template'] : __FUNCTION__; + return view('cells/search/' . $template, [ + 'searchCellDatas' => [ + 'service' => $this->getService(), + 'options' => $options, + 'selected' => null, + ] + ]); + } +} diff --git a/app/Views/admin/client/detail.php b/app/Views/admin/client/detail.php index e56b9ad..d3d28e0 100644 --- a/app/Views/admin/client/detail.php +++ b/app/Views/admin/client/detail.php @@ -33,6 +33,20 @@
getTitle() ?>
[청구서발행]
+
+ '/admin/customer/service/create?clientinfo_uid=' . $viewDatas['entity']->getPK(), + "data-bs-toggle" => "modal", + "data-bs-target" => "#modal_action_form", + "class" => "btn btn-sm btn-primary form-label-sm", + ] + ); + ?> +
도코 치바 diff --git a/app/Views/cells/search/client.php b/app/Views/cells/search/client.php new file mode 100644 index 0000000..04d8a8c --- /dev/null +++ b/app/Views/cells/search/client.php @@ -0,0 +1,4 @@ + 'form-select w-auto d-inline-block select-field', + 'onchange' => "if(this.value) window.location.href='/admin/customer/client/detail/' + this.value;" +]) ?> \ No newline at end of file diff --git a/app/Views/layouts/admin/top.php b/app/Views/layouts/admin/top.php index 54e0a8f..d8e08c9 100644 --- a/app/Views/layouts/admin/top.php +++ b/app/Views/layouts/admin/top.php @@ -2,13 +2,13 @@