diff --git a/app/Config/Constants.php b/app/Config/Constants.php
index 3022aef..bc4a2a1 100644
--- a/app/Config/Constants.php
+++ b/app/Config/Constants.php
@@ -362,14 +362,16 @@ define('LAYOUTS', [
//List의 Page당 갯수
define('DEFAULT_LIST_PERPAGE', $_ENV['LIST_PERPAGE'] ?? $_SERVER['LIST_PERPAGE'] ?? 20);
-//신규서비스 Interval
-define('SERVICE_NEW_INTERVAL', $_ENV['SERVICE_NEW_INTERVAL'] ?? $_SERVER['SERVICE_NEW_INTERVAL'] ?? 7);
-
//서버 PartType
define("SERVER", [
"PARTTYPES" => ['CPU', 'RAM', 'DISK'],
]);
+define("SERVICE", [
+ "NEW_INTERVAL" => $_ENV['SERVICE_NEW_INTERVAL'] ?? $_SERVER['SERVICE_NEW_INTERVAL'] ?? 7,
+ "PARTTYPES" => ['CPU', 'RAM', 'DISK', 'DB', 'OS', 'SOFTWARE'],
+]);
+
//결제관련
define("PAYMENT", [
'BILLING' => [
@@ -382,16 +384,3 @@ define("PAYMENT", [
'POINT' => 'point'
]
]);
-
-//서버아이템 정의
-define("SERVER_LINK_ITEMS", [
- 'CPU' => "CPU정보",
- 'RAM' => "RAM정보",
- 'DISK' => "DISK정보",
- 'OS' => "OS정보",
- 'SOFTWARE' => "기타SW정보",
- 'IP' => "IP정보",
- 'CS' => "CS정보",
-]);
-
-//Test
diff --git a/app/Controllers/Admin/Customer/ServiceController.php b/app/Controllers/Admin/Customer/ServiceController.php
index cbb246b..36a1583 100644
--- a/app/Controllers/Admin/Customer/ServiceController.php
+++ b/app/Controllers/Admin/Customer/ServiceController.php
@@ -7,6 +7,7 @@ use App\Helpers\Customer\ServiceHelper;
use App\Services\Customer\PaymentService;
use App\Services\Customer\ServiceService;
+use CodeIgniter\HTTP\RedirectResponse;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use Psr\Log\LoggerInterface;
@@ -45,6 +46,29 @@ class ServiceController extends CustomerController
return $this->_paymentService;
}
//Index,FieldForm관련
+ protected function getResultSuccess(string $message = MESSAGES["SUCCESS"], ?string $actionTemplate = null): RedirectResponse|string
+ {
+ switch ($this->getAction()) {
+ // case 'create_form':
+ // case 'modify_form':
+ case 'view':
+ case 'index':
+ $this->control = $this->getControlDatas();
+ $this->getHelper()->setViewDatas($this->getViewDatas());
+ $actionTemplate = $this->request->getVar('ActionTemplate') ?? $actionTemplate ?? 'service';
+ if ($actionTemplate) {
+ $view_file = $this->view_path . $actionTemplate . DIRECTORY_SEPARATOR . $this->getAction();
+ } else {
+ $view_file = $this->view_path . $this->getAction();
+ }
+ $result = view($view_file, ['viewDatas' => $this->getViewDatas()]);
+ break;
+ default:
+ $result = parent::getResultSuccess($message, $actionTemplate);
+ break;
+ }
+ return $result;
+ }
//생성관련
protected function create_process(array $formDatas): ServiceEntity
{
diff --git a/app/Controllers/Admin/Equipment/ServerController.php b/app/Controllers/Admin/Equipment/ServerController.php
index b8cf78e..30c0fae 100644
--- a/app/Controllers/Admin/Equipment/ServerController.php
+++ b/app/Controllers/Admin/Equipment/ServerController.php
@@ -20,7 +20,7 @@ class ServerController extends EquipmentController
$this->class_path .= $this->getService()->getClassName();
$this->uri_path .= strtolower($this->getService()->getClassName('/')) . '/';
// $this->view_path .= strtolower($this->getService()->getClassName()) . DIRECTORY_SEPARATOR;
- $this->serverinfopartinfo_cnt_options = array_combine(range(1, 10), range(1, 10));
+ $this->partinfo_cnt_options = array_combine(range(1, 10), range(1, 10));
}
public function getService(): ServerService
{
diff --git a/app/Controllers/Admin/Equipment/ServerPartController.php b/app/Controllers/Admin/Equipment/ServerPartController.php
index d3a48f8..b540e33 100644
--- a/app/Controllers/Admin/Equipment/ServerPartController.php
+++ b/app/Controllers/Admin/Equipment/ServerPartController.php
@@ -20,7 +20,7 @@ class ServerPartController extends EquipmentController
$this->class_path .= $this->getService()->getClassName();
$this->uri_path .= strtolower($this->getService()->getClassName('/')) . '/';
// $this->view_path .= strtolower($this->getService()->getClassName()) . DIRECTORY_SEPARATOR;
- $this->serverinfopartinfo_cnt_options = array_combine(range(1, 10), range(1, 10));
+ $this->partinfo_cnt_options = array_combine(range(1, 10), range(1, 10));
}
public function getService(): ServerPartService
{
diff --git a/app/Controllers/Admin/Home.php b/app/Controllers/Admin/Home.php
index 7b3123d..fb25394 100644
--- a/app/Controllers/Admin/Home.php
+++ b/app/Controllers/Admin/Home.php
@@ -72,7 +72,7 @@ class Home extends AdminController
//Total 서버 현황
$this->totalCounts = $this->getService()->getTotalCountsByType();
//interval을 기준으로 최근 신규 서비스정보 가져오기
- $this->interval = intval($this->request->getVar('interval') ?? SERVICE_NEW_INTERVAL);
+ $this->interval = intval($this->request->getVar('interval') ?? SERVICE['NEW_INTERVAL']);
$this->newServiceEntities = $this->getService()->getEntitiesByNewService($this->interval);
$this->newServiceCount = count($this->newServiceEntities);
//서비스별 미납 Count
diff --git a/app/Helpers/Customer/ServiceHelper.php b/app/Helpers/Customer/ServiceHelper.php
index cf5f738..1e49484 100644
--- a/app/Helpers/Customer/ServiceHelper.php
+++ b/app/Helpers/Customer/ServiceHelper.php
@@ -11,6 +11,25 @@ class ServiceHelper extends CustomerHelper
parent::__construct();
$this->setTitleField(field: ServiceModel::TITLE);
}
+ private function getServerPartForm(string $field, mixed $value, array $viewDatas, array $extras, string $partType): string
+ {
+ //Type별로 부품연결정보가 있는지 확인
+ $serverpartEntity = null;
+ if (array_key_exists('entity', $viewDatas)) {
+ $serverpartEntity = $viewDatas['entity']->getServerPartEntity($partType);
+ }
+ $form = "";
+ //수정시 Type별 사용할 hidden partinfo_uid
+ if ($serverpartEntity !== null) {
+ $form .= form_hidden("partinfo_uid_{$partType}", $serverpartEntity->getPK());
+ }
+ //기존 입력화면에서 return 된것인지?
+ if ($value === null && $serverpartEntity !== null) {
+ $value = $serverpartEntity->getPartInfoUID();
+ }
+ $form .= $this->form_dropdown_custom($field, $value, $viewDatas, $extras);
+ return $form;
+ }
public function getFieldForm(string $field, mixed $value, array $viewDatas, array $extras = []): string
{
switch ($field) {
@@ -54,12 +73,69 @@ class ServiceHelper extends CustomerHelper
}
$form .= $this->form_dropdown_custom($field, $value, $viewDatas, $extras);
break;
+ case 'partinfo_uid_CPU':
+ $form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'CPU');
+ break;
+ case 'partinfo_uid_CPU_cnt':
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
+ break;
+ case 'partinfo_uid_RAM':
+ $form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'RAM',);
+ break;
+ case 'partinfo_uid_RAM_cnt':
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
+ break;
+ case 'partinfo_uid_DISK':
+ $form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'DISK');
+ break;
+ case 'partinfo_uid_DISK_cnt':
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
+ break;
+ case 'partinfo_uid_DISK_extra':
+ $form = $this->form_dropdown_custom($field, $value, $viewDatas, $extras);
+ break;
+ case 'partinfo_uid_OS':
+ $form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'OS');
+ break;
+ case 'partinfo_uid_OS_cnt':
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
+ break;
+ case 'partinfo_uid_DB':
+ $form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'DB');
+ break;
+ case 'partinfo_uid_DB_cnt':
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
+ break;
+ case 'partinfo_uid_SOFTWARE':
+ $form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'SOFTWARE');
+ break;
+ case 'partinfo_uid_SOFTWARE_cnt':
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
+ break;
+ // case 'ipinfo_uid':
+ // case 'csinfo_uid':
+ // $extras['class'] = array_key_exists('class', $extras) ? $extras['class'] . ' select-field' : 'select-field';
+ // $form = $this->form_dropdown_custom($field, $value, $viewDatas, $extras);
+ // break;
default:
$form = parent::getFieldForm($field, $value, $viewDatas, $extras);
break;
}
return $form;
}
+ private function getServerPartView(string $field, mixed $value, array $viewDatas, array $extras, string $partType): string
+ {
+ $serverPartEntity = $viewDatas['entity']->getServerEntity()->getServerPartEntity($partType);
+ if ($serverPartEntity !== null) {
+ $value .= sprintf(
+ "
%s%s %s
",
+ $serverPartEntity->getTitle(),
+ $serverPartEntity->getCnt() >= 1 ? "*" . $serverPartEntity->getCnt() . "개" : "",
+ $serverPartEntity->getExtra() ?? ""
+ );
+ }
+ return $value;
+ }
public function getFieldView(string $field, mixed $value, array $viewDatas, array $extras = []): string|null
{
switch ($field) {
@@ -77,28 +153,25 @@ class ServiceHelper extends CustomerHelper
// ]
// );
// break;
- case "LINE":
- case "IP":
- case "SERVER":
- case "CPU":
- case "RAM":
- case "STORAGE":
- case "SOFTWARE":
- case "DEFENCE":
- case "DOMAIN":
- $temps = [""];
- foreach ($viewDatas['entity']->getItemEntities($field) as $itemEntity) {
- // dd($viewDatas['control']['field_optons'][$field]);
- $temps[] = sprintf(
- "- %s %s %s
",
- $itemEntity->getView_Price(),
- $viewDatas['control']['field_optons'][$field][$itemEntity->getItemUid()]->getTitle(),
- $itemEntity->getView_BillingCycle(),
- $itemEntity->getView_Sale()
- );
+ case 'CPU':
+ case 'RAM':
+ case 'DISK':
+ case 'OS':
+ case 'DB':
+ case 'SOFTWARE':
+ $value = $this->getServerPartView($field, $value, $viewDatas, $extras, $field);
+ break;
+ case 'ipinfo_uid':
+ $value = "";
+ foreach ($viewDatas['entity']->getServerEntity()->getIPEntities() as $ipEntity) {
+ $value .= sprintf("%s%s %s
", $ipEntity->getTitle(), $ipEntity->getAmount());
+ }
+ break;
+ case 'csinfo_uid':
+ $value = "";
+ foreach ($viewDatas['entity']->getServerEntity()->getCSEntities() as $csEntity) {
+ $value .= sprintf("%s%s %s
", $csEntity->getTitle(), $csEntity->getAmount());
}
- $temps[] = "
";
- $value = implode("", $temps);
break;
case 'billing_at':
if (array_key_exists('unPaids', $viewDatas)) {
diff --git a/app/Helpers/Equipment/ServerHelper.php b/app/Helpers/Equipment/ServerHelper.php
index 2febc51..98b52f9 100644
--- a/app/Helpers/Equipment/ServerHelper.php
+++ b/app/Helpers/Equipment/ServerHelper.php
@@ -46,19 +46,19 @@ class ServerHelper extends EquipmentHelper
$form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'CPU');
break;
case 'partinfo_uid_CPU_cnt':
- $form = form_dropdown($field, $viewDatas['serverinfopartinfo_cnt_options'], $value, $extras) . "개";
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
break;
case 'partinfo_uid_RAM':
$form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'RAM',);
break;
case 'partinfo_uid_RAM_cnt':
- $form = form_dropdown($field, $viewDatas['serverinfopartinfo_cnt_options'], $value, $extras) . "개";
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
break;
case 'partinfo_uid_DISK':
$form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'DISK');
break;
case 'partinfo_uid_DISK_cnt':
- $form = form_dropdown($field, $viewDatas['serverinfopartinfo_cnt_options'], $value, $extras) . "개";
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
break;
case 'partinfo_uid_DISK_extra':
$form = $this->form_dropdown_custom($field, $value, $viewDatas, $extras);
@@ -67,19 +67,19 @@ class ServerHelper extends EquipmentHelper
$form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'OS');
break;
case 'partinfo_uid_OS_cnt':
- $form = form_dropdown($field, $viewDatas['serverinfopartinfo_cnt_options'], $value, $extras) . "개";
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
break;
case 'partinfo_uid_DB':
$form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'DB');
break;
case 'partinfo_uid_DB_cnt':
- $form = form_dropdown($field, $viewDatas['serverinfopartinfo_cnt_options'], $value, $extras) . "개";
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
break;
case 'partinfo_uid_SOFTWARE':
$form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'SOFTWARE');
break;
case 'partinfo_uid_SOFTWARE_cnt':
- $form = form_dropdown($field, $viewDatas['serverinfopartinfo_cnt_options'], $value, $extras) . "개";
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
break;
case 'ipinfo_uid':
case 'csinfo_uid':
diff --git a/app/Helpers/Equipment/ServerPartHelper.php b/app/Helpers/Equipment/ServerPartHelper.php
index 58185f1..c5aacb4 100644
--- a/app/Helpers/Equipment/ServerPartHelper.php
+++ b/app/Helpers/Equipment/ServerPartHelper.php
@@ -46,19 +46,19 @@ class ServerPartHelper extends EquipmentHelper
$form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'CPU');
break;
case 'partinfo_uid_CPU_cnt':
- $form = form_dropdown($field, $viewDatas['serverinfopartinfo_cnt_options'], $value, $extras) . "개";
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
break;
case 'partinfo_uid_RAM':
$form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'RAM',);
break;
case 'partinfo_uid_RAM_cnt':
- $form = form_dropdown($field, $viewDatas['serverinfopartinfo_cnt_options'], $value, $extras) . "개";
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
break;
case 'partinfo_uid_DISK':
$form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'DISK');
break;
case 'partinfo_uid_DISK_cnt':
- $form = form_dropdown($field, $viewDatas['serverinfopartinfo_cnt_options'], $value, $extras) . "개";
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
break;
case 'partinfo_uid_DISK_extra':
$form = $this->form_dropdown_custom($field, $value, $viewDatas, $extras);
@@ -67,19 +67,19 @@ class ServerPartHelper extends EquipmentHelper
$form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'OS');
break;
case 'partinfo_uid_OS_cnt':
- $form = form_dropdown($field, $viewDatas['serverinfopartinfo_cnt_options'], $value, $extras) . "개";
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
break;
case 'partinfo_uid_DB':
$form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'DB');
break;
case 'partinfo_uid_DB_cnt':
- $form = form_dropdown($field, $viewDatas['serverinfopartinfo_cnt_options'], $value, $extras) . "개";
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
break;
case 'partinfo_uid_SOFTWARE':
$form = $this->getServerPartForm($field, $value, $viewDatas, $extras, 'SOFTWARE');
break;
case 'partinfo_uid_SOFTWARE_cnt':
- $form = form_dropdown($field, $viewDatas['serverinfopartinfo_cnt_options'], $value, $extras) . "개";
+ $form = form_dropdown($field, $viewDatas['partinfo_cnt_options'], $value, $extras) . "개";
break;
case 'ipinfo_uid':
case 'csinfo_uid':
diff --git a/app/Services/Customer/ServiceService.php b/app/Services/Customer/ServiceService.php
index f3dd5bd..3a7e11a 100644
--- a/app/Services/Customer/ServiceService.php
+++ b/app/Services/Customer/ServiceService.php
@@ -2,15 +2,17 @@
namespace App\Services\Customer;
-use App\Traits\IPTrait;
-use App\Services\Equipment\IPService;
-use App\Services\Equipment\CSService;
-use App\Models\Customer\ServiceModel;
use App\Entities\Customer\ServiceEntity;
+use App\Models\Customer\ServiceModel;
+use App\Services\Equipment\CSService;
+use App\Services\Equipment\IPService;
+use App\Services\Equipment\ServerPartService;
+use App\Traits\IPTrait;
class ServiceService extends CustomerService
{
use IPTrait;
+ private ?ServerPartService $_serverPartService = null;
private ?IPService $_ipService = null;
private ?CSService $_csService = null;
public function __construct()
@@ -109,6 +111,13 @@ class ServiceService extends CustomerService
}
return $entity;
}
+ final public function getServerPartService(): ServerPartService
+ {
+ if (!$this->_serverPartService) {
+ $this->_serverPartService = new ServerPartService();
+ }
+ return $this->_serverPartService;
+ }
final public function getIPService(): IPService
{
if (!$this->_ipService) {
@@ -127,6 +136,24 @@ class ServiceService extends CustomerService
public function getFormOption(string $field, array $options = []): array
{
switch ($field) {
+ case 'partinfo_uid_CPU':
+ $options = $this->getServerPartService()->getFormOption('partinfo_uid_CPU');
+ break;
+ case 'partinfo_uid_RAM':
+ $options = $this->getServerPartService()->getFormOption('partinfo_uid_RAM');
+ break;
+ case 'partinfo_uid_DISK':
+ $options = $this->getServerPartService()->getFormOption('partinfo_uid_DISK');
+ break;
+ case 'partinfo_uid_OS':
+ $options = $this->getServerPartService()->getFormOption('partinfo_uid_OS');
+ break;
+ case 'partinfo_uid_DB':
+ $options = $this->getServerPartService()->getFormOption('partinfo_uid_DB');
+ break;
+ case 'partinfo_uid_SOFTWARE':
+ $options = $this->getServerPartService()->getFormOption('partinfo_uid_SOFTWARE');
+ break;
case 'ipinfo_uid': //수정때문에 전체가 필요
$options = $this->getIPService()->getEntities();
break;
diff --git a/app/Services/Equipment/ServerService.php b/app/Services/Equipment/ServerService.php
index 19cd239..44fdf14 100644
--- a/app/Services/Equipment/ServerService.php
+++ b/app/Services/Equipment/ServerService.php
@@ -35,12 +35,6 @@ class ServerService extends EquipmentService
"partinfo_uid_DISK",
"partinfo_uid_DISK_cnt",
"partinfo_uid_DISK_extra",
- "partinfo_uid_OS",
- "partinfo_uid_OS_cnt",
- "partinfo_uid_SOFTWARE",
- "partinfo_uid_SOFTWARE_cnt",
- "ipinfo_uid",
- "csinfo_uid",
];
}
public function getFormFilters(): array
@@ -54,10 +48,6 @@ class ServerService extends EquipmentService
"partinfo_uid_RAM",
"partinfo_uid_DISK",
"partinfo_uid_DISK_extra",
- "partinfo_uid_OS",
- "partinfo_uid_SOFTWARE",
- "ipinfo_uid",
- "csinfo_uid",
"status"
];
}
diff --git a/app/Views/admin/server/index.php b/app/Views/admin/server/index.php
index 38b204d..cd8fa09 100644
--- a/app/Views/admin/server/index.php
+++ b/app/Views/admin/server/index.php
@@ -22,26 +22,54 @@
| 번호 |
-
- = $viewDatas['helper']->getListLabel($field, lang("{$viewDatas['class_path']}.label.{$field}"), $viewDatas) ?> |
-
- 추가정보 |
+
+ = $viewDatas['helper']->getListLabel('clientinfo_uid', lang("{$viewDatas['class_path']}.label.clientinfo_uid"), $viewDatas) ?>/
+ = $viewDatas['helper']->getListLabel('serviceinfo_uid', lang("{$viewDatas['class_path']}.label.serviceinfo_uid"), $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getListLabel('type', lang("{$viewDatas['class_path']}.label.type"), $viewDatas) ?>/
+ = $viewDatas['helper']->getListLabel('title', lang("{$viewDatas['class_path']}.label.title"), $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getListLabel('price', lang("{$viewDatas['class_path']}.label.price"), $viewDatas) ?>/
+ = $viewDatas['helper']->getListLabel('amount', lang("{$viewDatas['class_path']}.label.amount"), $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getListLabel('manufactur_at', lang("{$viewDatas['class_path']}.label.manufactur_at"), $viewDatas) ?>/
+ = $viewDatas['helper']->getListLabel('format_at', lang("{$viewDatas['class_path']}.label.format_at"), $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getListLabel('status', lang("{$viewDatas['class_path']}.label.status"), $viewDatas) ?>
+ |
+ 부품정보 |
작업 |
- getStatus() === $viewDatas['entity']::DEFAULT_STATUS ? "" : 'class="table-danger"' ?>>
+
getStatus() === $entity::DEFAULT_STATUS ? "" : 'class="table-danger"' ?>>
| = $viewDatas['helper']->getListButton('modify', '', $viewDatas) ?> |
-
- = $viewDatas['helper']->getFieldView($field, $entity->$field, $viewDatas) ?> |
-
+
+ = $viewDatas['helper']->getFieldView('clientinfo_uid', $entity->getClientInfoUID(), $viewDatas) ?>
+ = $viewDatas['helper']->getFieldView('serviceinfo_uid', $entity->getServiceInfoUID(), $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getFieldView('type', $entity->type, $viewDatas) ?>
+ = $viewDatas['helper']->getFieldView('title', $entity->getTitle(), $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getFieldView('price', $entity->price, $viewDatas) ?>
+ = $viewDatas['helper']->getFieldView('amount', $entity->amount, $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getFieldView('manufactur_at', $entity->manufactur_at, $viewDatas) ?>
+ = $viewDatas['helper']->getFieldView('format_at', $entity->format_at, $viewDatas) ?>
+ |
+ = $viewDatas['helper']->getFieldView('status', $entity->status, $viewDatas) ?> |
-
- = $viewDatas['helper']->getFieldView($partType, "", $viewDatas) ?>
-
+ = $viewDatas['helper']->getFieldView($partType, "", $viewDatas) ?>
= $viewDatas['helper']->getFieldView("ipinfo_uid", "", $viewDatas) ?>
= $viewDatas['helper']->getFieldView("csinfo_uid", "", $viewDatas) ?>
|
diff --git a/app/Views/admin/server/indexv2.php b/app/Views/admin/server/index_org.php
similarity index 94%
rename from app/Views/admin/server/indexv2.php
rename to app/Views/admin/server/index_org.php
index 38b204d..6c89666 100644
--- a/app/Views/admin/server/indexv2.php
+++ b/app/Views/admin/server/index_org.php
@@ -25,7 +25,7 @@
= $viewDatas['helper']->getListLabel($field, lang("{$viewDatas['class_path']}.label.{$field}"), $viewDatas) ?> |
- 추가정보 |
+ 부품정보 |
작업 |
@@ -39,9 +39,7 @@
= $viewDatas['helper']->getFieldView($field, $entity->$field, $viewDatas) ?> |
-
- = $viewDatas['helper']->getFieldView($partType, "", $viewDatas) ?>
-
+ = $viewDatas['helper']->getFieldView($partType, "", $viewDatas) ?>
= $viewDatas['helper']->getFieldView("ipinfo_uid", "", $viewDatas) ?>
= $viewDatas['helper']->getFieldView("csinfo_uid", "", $viewDatas) ?>
|
diff --git a/app/Views/admin/service/create_form.php b/app/Views/admin/service/create_form.php
new file mode 100644
index 0000000..d389f27
--- /dev/null
+++ b/app/Views/admin/service/create_form.php
@@ -0,0 +1,50 @@
+= $this->extend(LAYOUTS[$viewDatas['layout']]['path']) ?>
+= $this->section('content') ?>
+alert($error) ?>
+
+
= $this->include("templates/{$viewDatas['layout']}/form_content_top"); ?>
+ = form_open(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
+
+
= $this->include("templates/{$viewDatas['layout']}/form_content_bottom"); ?>
+
+= $this->endSection() ?>
\ No newline at end of file
diff --git a/app/Views/admin/service/index.php b/app/Views/admin/service/index.php
new file mode 100644
index 0000000..81ad31b
--- /dev/null
+++ b/app/Views/admin/service/index.php
@@ -0,0 +1,107 @@
+= $this->extend(LAYOUTS[$viewDatas['layout']]['path']) ?>
+= $this->section('content') ?>
+alert($error) ?>
+= $this->include(LAYOUTS[$viewDatas['layout']]['path'] . '/top'); ?>
+
+
+
+ |
+
+ = $this->include(LAYOUTS[$viewDatas['layout']]['path'] . '/left_menu'); ?>
+
+ |
+
+
+
+
+
+
+ = $this->include("templates/{$viewDatas['layout']}/index_content_top"); ?>
+ = form_open(current_url(), ['id' => 'batchjob_form', 'method' => "post"]) ?>
+
+
+
+ | 번호 |
+
+ = $viewDatas['helper']->getListLabel('site', lang("{$viewDatas['class_path']}.label.site"), $viewDatas) ?>/
+ = $viewDatas['helper']->getListLabel('location', lang("{$viewDatas['class_path']}.label.location"), $viewDatas) ?>/
+ = $viewDatas['helper']->getListLabel('switchinfo_uid', lang("{$viewDatas['class_path']}.label.switchinfo_uid"), $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getListLabel('clientinfo_uid', lang("{$viewDatas['class_path']}.label.clientinfo_uid"), $viewDatas) ?>/
+ = $viewDatas['helper']->getListLabel('type', lang("{$viewDatas['class_path']}.label.type"), $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getListLabel('serverinfo_uid', lang("{$viewDatas['class_path']}.label.serverinfo_uid"), $viewDatas) ?>/
+ = $viewDatas['helper']->getListLabel('start_at', lang("{$viewDatas['class_path']}.label.start_at"), $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getListLabel('amount', lang("{$viewDatas['class_path']}.label.amount"), $viewDatas) ?>/
+ = $viewDatas['helper']->getListLabel('billing_at', lang("{$viewDatas['class_path']}.label.billing_at"), $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getListLabel('status', lang("{$viewDatas['class_path']}.label.status"), $viewDatas) ?>/
+ = $viewDatas['helper']->getListLabel('updated_at', lang("{$viewDatas['class_path']}.label.updated_at"), $viewDatas) ?>
+ |
+ 부품정보 |
+ = $viewDatas['helper']->getListLabel('user_uid', lang("{$viewDatas['class_path']}.label.user_uid"), $viewDatas) ?> |
+ 작업 |
+
+
+
+
+
+ getStatus() === $entity::DEFAULT_STATUS ? "" : 'class="table-danger"' ?>>
+
+ | = $viewDatas['helper']->getListButton('modify', '', $viewDatas) ?> |
+
+ = $viewDatas['helper']->getFieldView('site', $entity->site, $viewDatas) ?>
+ = $viewDatas['helper']->getFieldView('location', $entity->location, $viewDatas) ?>
+ = $viewDatas['helper']->getFieldView('switchinfo_uid', $entity->switchinfo_uid, $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getFieldView('clientinfo_uid', $entity->getClientInfoUID(), $viewDatas) ?>
+ = $viewDatas['helper']->getFieldView('type', $entity->type, $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getFieldView('serverinfo_uid', $entity->getServerEntity()->getTitle(), $viewDatas) ?>
+ = $viewDatas['helper']->getFieldView('start_at', $entity->start_at, $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getFieldView('amount', $entity->amount, $viewDatas) ?>
+ = $viewDatas['helper']->getFieldView('billing_at', $entity->billing_at, $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getFieldView('status', $entity->status, $viewDatas) ?>
+ = $viewDatas['helper']->getFieldView('updated_at', $entity->updated_at, $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getFieldView($partType, "", $viewDatas) ?>
+ = $viewDatas['helper']->getFieldView("ipinfo_uid", "", $viewDatas) ?>
+ = $viewDatas['helper']->getFieldView("csinfo_uid", "", $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getFieldView('user_uid', $entity->user_uid, $viewDatas) ?>
+ |
+
+ = $viewDatas['helper']->getListButton('view', '', $viewDatas) ?>
+ = $viewDatas['helper']->getListButton('history', '', $viewDatas) ?>
+ = $viewDatas['helper']->getListButton('delete', '', $viewDatas) ?>
+ |
+
+
+
+
+
+ = $this->include("templates/{$viewDatas['layout']}/index_content_bottom"); ?>
+ = form_close() ?>
+
+
+
+
+ |
+
+
+
+= $this->include(LAYOUTS[$viewDatas['layout']]['path'] . '/bottom'); ?>
+= $this->endSection() ?>
\ No newline at end of file
diff --git a/app/Views/admin/service/index_org.php b/app/Views/admin/service/index_org.php
new file mode 100644
index 0000000..ef660bb
--- /dev/null
+++ b/app/Views/admin/service/index_org.php
@@ -0,0 +1,61 @@
+= $this->extend(LAYOUTS[$viewDatas['layout']]['path']) ?>
+= $this->section('content') ?>
+alert($error) ?>
+= $this->include(LAYOUTS[$viewDatas['layout']]['path'] . '/top'); ?>
+
+
+
+ |
+
+ = $this->include(LAYOUTS[$viewDatas['layout']]['path'] . '/left_menu'); ?>
+
+ |
+
+
+
+
+
+
+ = $this->include("templates/{$viewDatas['layout']}/index_content_top"); ?>
+ = form_open(current_url(), ['id' => 'batchjob_form', 'method' => "post"]) ?>
+
+
+
+ | 번호 |
+
+ = $viewDatas['helper']->getListLabel($field, lang("{$viewDatas['class_path']}.label.{$field}"), $viewDatas) ?> |
+
+ 작업 |
+
+
+
+
+
+ getStatus() === $viewDatas['entity']::DEFAULT_STATUS ? "" : 'class="table-danger"' ?>>
+
+ | = $viewDatas['helper']->getListButton('modify', '', $viewDatas) ?> |
+
+ = $viewDatas['helper']->getFieldView($field, $entity->$field, $viewDatas) ?> |
+
+
+ = $viewDatas['helper']->getListButton('view', '', $viewDatas) ?>
+ = $viewDatas['helper']->getListButton('history', '', $viewDatas) ?>
+ = $viewDatas['helper']->getListButton('delete', '', $viewDatas) ?>
+ |
+
+
+
+
+
+ = $this->include("templates/{$viewDatas['layout']}/index_content_bottom"); ?>
+ = form_close() ?>
+
+
+
+
+ |
+
+
+
+= $this->include(LAYOUTS[$viewDatas['layout']]['path'] . '/bottom'); ?>
+= $this->endSection() ?>
\ No newline at end of file
diff --git a/app/Views/admin/service/modify_form.php b/app/Views/admin/service/modify_form.php
new file mode 100644
index 0000000..d596707
--- /dev/null
+++ b/app/Views/admin/service/modify_form.php
@@ -0,0 +1,50 @@
+= $this->extend(LAYOUTS[$viewDatas['layout']]['path']) ?>
+= $this->section('content') ?>
+alert($error) ?>
+
+
= $this->include("templates/{$viewDatas['layout']}/form_content_top"); ?>
+ = form_open(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
+
+
= $this->include("templates/{$viewDatas['layout']}/form_content_bottom"); ?>
+
+= $this->endSection() ?>
\ No newline at end of file
diff --git a/app/Views/admin/service/view.php b/app/Views/admin/service/view.php
new file mode 100644
index 0000000..f13fd43
--- /dev/null
+++ b/app/Views/admin/service/view.php
@@ -0,0 +1,50 @@
+= $this->extend(LAYOUTS[$viewDatas['layout']]['path']) ?>
+= $this->section('content') ?>
+alert($error) ?>
+
+
= $this->include("templates/{$viewDatas['layout']}/form_content_top"); ?>
+ = form_open(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
+
+
= $this->include("templates/{$viewDatas['layout']}/form_content_bottom"); ?>
+
+= $this->endSection() ?>
\ No newline at end of file