dbms_init...1

This commit is contained in:
최준흠 2025-05-22 17:02:17 +09:00
parent 977d07a1ba
commit c080d30e92
4 changed files with 8 additions and 5 deletions

View File

@ -54,6 +54,7 @@ abstract class EquipmentController extends AdminController
} }
$options[$field] = $temps; $options[$field] = $temps;
// dd($options); // dd($options);
break;
case 'lineinfo_uid': case 'lineinfo_uid':
$temps = []; $temps = [];
foreach ($this->getLineService()->getEntities() as $entity) { foreach ($this->getLineService()->getEntities() as $entity) {
@ -61,6 +62,7 @@ abstract class EquipmentController extends AdminController
} }
$options[$field] = $temps; $options[$field] = $temps;
// dd($options); // dd($options);
break;
default: default:
$options = parent::getFormFieldOption($field, $options); $options = parent::getFormFieldOption($field, $options);
break; break;

View File

@ -54,7 +54,6 @@ class MyLogController extends AdminController
$temps[$entity->getPK()] = $entity->getTitle(); $temps[$entity->getPK()] = $entity->getTitle();
} }
$options[$field] = $temps; $options[$field] = $temps;
// dd($options);
break; break;
default: default:
$options = parent::getFormFieldOption($field, $options); $options = parent::getFormFieldOption($field, $options);

View File

@ -111,7 +111,7 @@ abstract class CommonController extends BaseController
{ {
switch ($field) { switch ($field) {
default: default:
$options = lang($this->getService()->getClassPath() . '.' . strtoupper($field)); $options[$field] = lang($this->getService()->getClassPath() . '.' . strtoupper($field));
break; break;
} }
if (!is_array($options)) { if (!is_array($options)) {
@ -125,7 +125,10 @@ abstract class CommonController extends BaseController
if (is_array($field)) { if (is_array($field)) {
throw new \Exception(__FUNCTION__ . "에서 field array 입니다.\n" . var_export($field, true)); throw new \Exception(__FUNCTION__ . "에서 field array 입니다.\n" . var_export($field, true));
} }
$options[$field] = $this->getFormFieldOption($field, $options); if (!array_key_exists($field, $options)) {
$options[$field] = [];
}
$options = $this->getFormFieldOption($field, $options);
} }
// dd($options); // dd($options);
return $options; return $options;
@ -170,7 +173,6 @@ abstract class CommonController extends BaseController
case 'modify_form': case 'modify_form':
case 'index': case 'index':
case 'view': case 'view':
// dd($this->getViewDatas());
$this->getHelper()->setViewDatas($this->getViewDatas()); $this->getHelper()->setViewDatas($this->getViewDatas());
$result = view($this->view_path . $action, ['viewDatas' => $this->getViewDatas()]); $result = view($this->view_path . $action, ['viewDatas' => $this->getViewDatas()]);
break; break;

View File

@ -1,6 +1,6 @@
<?= $this->extend(LAYOUTS[$viewDatas['layout']]['path']) ?> <?= $this->extend(LAYOUTS[$viewDatas['layout']]['path']) ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<?php if ($error = session('error')): ?><?= $viewDatas['helper']->alert($error) ?><?php endif ?> <?php if ($error = session('error')): ?><div style="border:1px solid red;"><?= $error ?></div><?php endif ?>
<!-- Layout Right Start --> <!-- Layout Right Start -->
<div id="container" class="layout_content"> <div id="container" class="layout_content">
<link href="/css/<?= $viewDatas['layout'] ?>/index.css" media="screen" rel="stylesheet" type="text/css" /> <link href="/css/<?= $viewDatas['layout'] ?>/index.css" media="screen" rel="stylesheet" type="text/css" />