dbmsv4 init...3
This commit is contained in:
parent
d00fed0074
commit
5f03d7c045
@ -6,7 +6,7 @@ class CHASSISCell extends EquipmentCell
|
|||||||
{
|
{
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct(service('part_chassisservice'));
|
parent::__construct(service('equipment_chassisservice'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function stock(array $params): string
|
public function stock(array $params): string
|
||||||
|
|||||||
@ -12,7 +12,7 @@ class CHASSISController extends EquipmentController
|
|||||||
{
|
{
|
||||||
parent::initController($request, $response, $logger);
|
parent::initController($request, $response, $logger);
|
||||||
if ($this->service === null) {
|
if ($this->service === null) {
|
||||||
$this->service = service('part_chassisservice');
|
$this->service = service('equipment_chassisservice');
|
||||||
}
|
}
|
||||||
$this->addActionPaths('chassis');
|
$this->addActionPaths('chassis');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,6 +13,7 @@ class CHASSISForm extends EquipmentForm
|
|||||||
$fields = [
|
$fields = [
|
||||||
"title",
|
"title",
|
||||||
"price",
|
"price",
|
||||||
|
"used",
|
||||||
"stock",
|
"stock",
|
||||||
];
|
];
|
||||||
$filters = [
|
$filters = [
|
||||||
@ -50,6 +51,8 @@ class CHASSISForm extends EquipmentForm
|
|||||||
{
|
{
|
||||||
switch ($field) {
|
switch ($field) {
|
||||||
case "used":
|
case "used":
|
||||||
|
case "price":
|
||||||
|
case "stock":
|
||||||
$formRules[$field] = "required|numeric";
|
$formRules[$field] = "required|numeric";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
@ -146,7 +146,7 @@ class ServerForm extends EquipmentForm
|
|||||||
'text' => lang("{$this->getAttribute('class_path')}.label.{$field}") . " 선택"
|
'text' => lang("{$this->getAttribute('class_path')}.label.{$field}") . " 선택"
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
foreach ($this->getFormOption_process(service('part_chassisservice'), $action, $field, $formDatas) as $tempEntity) {
|
foreach ($this->getFormOption_process(service('equipment_chassisservice'), $action, $field, $formDatas) as $tempEntity) {
|
||||||
$tempOptions[$tempEntity->getPK()] = [
|
$tempOptions[$tempEntity->getPK()] = [
|
||||||
'value' => $tempEntity->getPK(),
|
'value' => $tempEntity->getPK(),
|
||||||
'text' => $tempEntity->getTitle(),
|
'text' => $tempEntity->getTitle(),
|
||||||
|
|||||||
@ -20,6 +20,7 @@ class ServerModel extends EquipmentModel
|
|||||||
"serviceinfo_uid",
|
"serviceinfo_uid",
|
||||||
"code",
|
"code",
|
||||||
"type",
|
"type",
|
||||||
|
"chassisinfo_uid",
|
||||||
"switchinfo_uid",
|
"switchinfo_uid",
|
||||||
"ip",
|
"ip",
|
||||||
"os",
|
"os",
|
||||||
|
|||||||
@ -193,7 +193,7 @@ class ServerPartService extends EquipmentService
|
|||||||
//검색어조건절처리
|
//검색어조건절처리
|
||||||
|
|
||||||
//서버추가시 기본파트 자동추가용
|
//서버추가시 기본파트 자동추가용
|
||||||
public function defaultServerPart(ServerEntity $serverEntity): void
|
public function attachToServer(ServerEntity $serverEntity): void
|
||||||
{
|
{
|
||||||
//*서버의 Title 대소문자구분 필요->서버의 Title로 구분해서 기본부품 추가
|
//*서버의 Title 대소문자구분 필요->서버의 Title로 구분해서 기본부품 추가
|
||||||
foreach (SERVERPART['SERVER_PARTTYPES'] as $parttype) {
|
foreach (SERVERPART['SERVER_PARTTYPES'] as $parttype) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user