dbmsv2 init...1
This commit is contained in:
parent
eded582751
commit
3b24589968
@ -7,12 +7,12 @@ return [
|
|||||||
'serviceinfo_uid' => "서비스",
|
'serviceinfo_uid' => "서비스",
|
||||||
'title' => "청구항목",
|
'title' => "청구항목",
|
||||||
'amount' => "청구금액",
|
'amount' => "청구금액",
|
||||||
'billing_method' => "청구방법",
|
'billing' => "청구방법",
|
||||||
'billing_at' => "지급기한일",
|
'billing_at' => "지급기한일",
|
||||||
'pay_method' => "지급방법",
|
'pay' => "지급방법",
|
||||||
'status' => "상태",
|
'status' => "상태",
|
||||||
'updated_at' => "지불처리일",
|
'updated_at' => "지급일",
|
||||||
'created_at' => "청구일",
|
'created_at' => "생성일",
|
||||||
'deleted_at' => "삭제일",
|
'deleted_at' => "삭제일",
|
||||||
'countdown' => "납부기한",
|
'countdown' => "납부기한",
|
||||||
],
|
],
|
||||||
|
|||||||
@ -10,7 +10,7 @@ return [
|
|||||||
'type' => "형식",
|
'type' => "형식",
|
||||||
'location' => "위치",
|
'location' => "위치",
|
||||||
'billing_at' => "결제일",
|
'billing_at' => "결제일",
|
||||||
'amount' => "과금액",
|
'amount' => "월청구액",
|
||||||
'start_at' => "시작일",
|
'start_at' => "시작일",
|
||||||
'end_at' => "해지일",
|
'end_at' => "해지일",
|
||||||
'history' => "사용이력",
|
'history' => "사용이력",
|
||||||
|
|||||||
@ -10,8 +10,8 @@ return [
|
|||||||
'ip' => "IP",
|
'ip' => "IP",
|
||||||
'accountid' => "계정ID",
|
'accountid' => "계정ID",
|
||||||
'domain' => "도메인",
|
'domain' => "도메인",
|
||||||
'price' => "소비자금액",
|
'price' => "기본가",
|
||||||
'amount' => "서비스금액",
|
'amount' => "제공가",
|
||||||
'status' => "상태",
|
'status' => "상태",
|
||||||
'updated_at' => "수정일",
|
'updated_at' => "수정일",
|
||||||
'created_at' => "작성일",
|
'created_at' => "작성일",
|
||||||
|
|||||||
@ -7,8 +7,8 @@ return [
|
|||||||
'clientinfo_uid' => '고객정보',
|
'clientinfo_uid' => '고객정보',
|
||||||
'serverinfo_uid' => '서버정보',
|
'serverinfo_uid' => '서버정보',
|
||||||
'ip' => "IP",
|
'ip' => "IP",
|
||||||
'price' => "소비자금액",
|
'price' => "기본가",
|
||||||
'amount' => "서비스금액",
|
'amount' => "제공가",
|
||||||
'history' => "사용내역",
|
'history' => "사용내역",
|
||||||
'status' => "상태",
|
'status' => "상태",
|
||||||
'updated_at' => "수정일",
|
'updated_at' => "수정일",
|
||||||
|
|||||||
@ -5,6 +5,7 @@ return [
|
|||||||
'type' => "종류",
|
'type' => "종류",
|
||||||
'title' => "모델명",
|
'title' => "모델명",
|
||||||
'price' => "기본가",
|
'price' => "기본가",
|
||||||
|
'amount' => "제공가",
|
||||||
'status' => "상태",
|
'status' => "상태",
|
||||||
'updated_at' => "수정일",
|
'updated_at' => "수정일",
|
||||||
'created_at' => "작성일",
|
'created_at' => "작성일",
|
||||||
|
|||||||
@ -7,8 +7,8 @@ return [
|
|||||||
'code' => "장비번호",
|
'code' => "장비번호",
|
||||||
'type' => "장비벤더",
|
'type' => "장비벤더",
|
||||||
'title' => "모델명",
|
'title' => "모델명",
|
||||||
'price' => "기본금액",
|
'price' => "기본가",
|
||||||
'total_price' => "최종금액",
|
'amount' => "제공가",
|
||||||
'manufactur_at' => "입고일",
|
'manufactur_at' => "입고일",
|
||||||
'format_at' => "포맷보류일",
|
'format_at' => "포맷보류일",
|
||||||
'status' => "상태",
|
'status' => "상태",
|
||||||
|
|||||||
@ -21,7 +21,7 @@ class ServiceModel extends CustomerModel
|
|||||||
"site",
|
"site",
|
||||||
"type",
|
"type",
|
||||||
"location",
|
"location",
|
||||||
"billing_at",
|
"billing",
|
||||||
"amount",
|
"amount",
|
||||||
"start_at",
|
"start_at",
|
||||||
"end_at",
|
"end_at",
|
||||||
|
|||||||
@ -21,6 +21,7 @@ class CSModel extends EquipmentModel
|
|||||||
"accountid",
|
"accountid",
|
||||||
"domain",
|
"domain",
|
||||||
"price",
|
"price",
|
||||||
|
'amount',
|
||||||
"status",
|
"status",
|
||||||
];
|
];
|
||||||
public function __construct()
|
public function __construct()
|
||||||
@ -40,6 +41,9 @@ class CSModel extends EquipmentModel
|
|||||||
$rule = "required|trim|valid_ip[both]"; //ipv4 , ipv6 , both(ipv4,ipv6)
|
$rule = "required|trim|valid_ip[both]"; //ipv4 , ipv6 , both(ipv4,ipv6)
|
||||||
$rule .= in_array($action, ["create", "create_form"]) ? "|is_unique[" . $this->getTable() . "." . $field . "]" : "";
|
$rule .= in_array($action, ["create", "create_form"]) ? "|is_unique[" . $this->getTable() . "." . $field . "]" : "";
|
||||||
break;
|
break;
|
||||||
|
case "amount":
|
||||||
|
$rule = "required|numeric";
|
||||||
|
break;
|
||||||
case "accountid":
|
case "accountid":
|
||||||
case "domain":
|
case "domain":
|
||||||
$rule = "permit_empty|trim|string";
|
$rule = "permit_empty|trim|string";
|
||||||
|
|||||||
@ -20,6 +20,7 @@ class IPModel extends EquipmentModel
|
|||||||
"serverinfo_uid",
|
"serverinfo_uid",
|
||||||
"ip",
|
"ip",
|
||||||
"price",
|
"price",
|
||||||
|
"amount",
|
||||||
"status",
|
"status",
|
||||||
];
|
];
|
||||||
public function __construct()
|
public function __construct()
|
||||||
@ -34,6 +35,7 @@ class IPModel extends EquipmentModel
|
|||||||
switch ($field) {
|
switch ($field) {
|
||||||
case "lineinfo_uid":
|
case "lineinfo_uid":
|
||||||
case "price":
|
case "price":
|
||||||
|
case "amount":
|
||||||
$rule = "required|numeric";
|
$rule = "required|numeric";
|
||||||
break;
|
break;
|
||||||
case "old_clientinfo_uid":
|
case "old_clientinfo_uid":
|
||||||
|
|||||||
@ -20,7 +20,7 @@ class ServerModel extends EquipmentModel
|
|||||||
"type",
|
"type",
|
||||||
"title",
|
"title",
|
||||||
"price",
|
"price",
|
||||||
"total_price",
|
"amount",
|
||||||
"manufactur_at",
|
"manufactur_at",
|
||||||
"format_at",
|
"format_at",
|
||||||
"status",
|
"status",
|
||||||
@ -39,13 +39,14 @@ class ServerModel extends EquipmentModel
|
|||||||
case "serviceinfo_uid":
|
case "serviceinfo_uid":
|
||||||
$rule = "permit_empty|numeric";
|
$rule = "permit_empty|numeric";
|
||||||
break;
|
break;
|
||||||
|
case "price":
|
||||||
|
case "amount":
|
||||||
|
$rule = "required|numeric";
|
||||||
|
break;
|
||||||
case "type":
|
case "type":
|
||||||
case "status":
|
case "status":
|
||||||
$rule = "required|trim|string";
|
$rule = "required|trim|string";
|
||||||
break;
|
break;
|
||||||
case "total_price":
|
|
||||||
$rule = "permit_empty|numeric";
|
|
||||||
break;
|
|
||||||
case "manufactur_at":
|
case "manufactur_at":
|
||||||
$rule = "required|valid_date";
|
$rule = "required|valid_date";
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -22,6 +22,7 @@ class CSService extends EquipmentService
|
|||||||
"accountid",
|
"accountid",
|
||||||
"domain",
|
"domain",
|
||||||
"price",
|
"price",
|
||||||
|
"amount",
|
||||||
"status",
|
"status",
|
||||||
],
|
],
|
||||||
'filters' => [
|
'filters' => [
|
||||||
@ -43,6 +44,7 @@ class CSService extends EquipmentService
|
|||||||
'accountid',
|
'accountid',
|
||||||
'domain',
|
'domain',
|
||||||
'price',
|
'price',
|
||||||
|
"amount",
|
||||||
'status'
|
'status'
|
||||||
],
|
],
|
||||||
'filters' => [
|
'filters' => [
|
||||||
|
|||||||
@ -24,6 +24,7 @@ class IPService extends EquipmentService
|
|||||||
"serverinfo_uid",
|
"serverinfo_uid",
|
||||||
"ip",
|
"ip",
|
||||||
"price",
|
"price",
|
||||||
|
"amount",
|
||||||
"status",
|
"status",
|
||||||
],
|
],
|
||||||
'filters' => [
|
'filters' => [
|
||||||
@ -42,6 +43,7 @@ class IPService extends EquipmentService
|
|||||||
'lineinfo_uid',
|
'lineinfo_uid',
|
||||||
'ip',
|
'ip',
|
||||||
'price',
|
'price',
|
||||||
|
"amount",
|
||||||
'status',
|
'status',
|
||||||
'clientinfo_uid',
|
'clientinfo_uid',
|
||||||
'serverinfo_uid',
|
'serverinfo_uid',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user