dbms_init...1
This commit is contained in:
parent
022ef52533
commit
0ade1f86ea
@ -47,29 +47,7 @@ class ServicePaymentHelper extends CustomerHelper
|
||||
{
|
||||
switch ($action) {
|
||||
case 'modify':
|
||||
$checkbox = '';
|
||||
//상태가 미지급이 경우만 checkbox를 표시
|
||||
if ($viewDatas['entity']->getStatus() === DEFAULTS['STATUS']) {
|
||||
$oldBatchJobUids = old("batchjob_uids", null);
|
||||
$oldBatchJobUids = is_array($oldBatchJobUids) ? $oldBatchJobUids : [$oldBatchJobUids];
|
||||
$checkbox = form_checkbox([
|
||||
"id" => "checkbox_uid_{$viewDatas['entity']->getPK()}",
|
||||
"name" => "batchjob_uids[]",
|
||||
"value" => $viewDatas['entity']->getPK(),
|
||||
"class" => "batchjobuids_checkboxs",
|
||||
"checked" => in_array($viewDatas['entity']->getPK(), $oldBatchJobUids)
|
||||
]);
|
||||
}
|
||||
$action = $checkbox . form_label(
|
||||
$viewDatas['cnt'],
|
||||
$action,
|
||||
[
|
||||
"data-src" => current_url() . '/' . $action . '/' . $viewDatas['entity']->getPK() . '?' . $this->getRequest()->getUri()->getQuery(),
|
||||
"data-bs-toggle" => "modal",
|
||||
"data-bs-target" => "#index_action_form",
|
||||
...$extras
|
||||
]
|
||||
);
|
||||
$action = $viewDatas['entity']->getPK();
|
||||
break;
|
||||
case 'invoice':
|
||||
$action = form_submit($action . "_submit", '청구서 발행', [
|
||||
|
||||
@ -93,29 +93,3 @@ class ServiceItemService extends CustomerService
|
||||
return parent::delete($entity);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// public function create(array $formDatas, mixed $entity = null): ServiceEntity
|
||||
// {
|
||||
// //code의 경우 서비스중으로 설정작업
|
||||
// $this->getCodeService()->setStatus($formDatas['code'], CodeEntity::STATUS_OCCUPIED);
|
||||
// return parent::create($formDatas, $entity);
|
||||
// }
|
||||
// public function modify(mixed $entity, array $formDatas): ServiceEntity
|
||||
// {
|
||||
// //code가 기존과 다를경우 //toggle,batchjob의 경우 $formDatas에 code가 없을수도 있음
|
||||
// if (array_key_exists('code', $formDatas) && $formDatas['code'] !== $entity->getCode()) {
|
||||
// //code의 경우 기존code는 사용가능으로 설정작업
|
||||
// $this->getCodeService()->setStatus($entity->getCode(), CodeEntity::STATUS_AVAILABLE);
|
||||
// //coded의 경우 변경된 code는 서비스중으로 설정작업
|
||||
// $this->getCodeService()->setStatus($formDatas['code'], CodeEntity::STATUS_OCCUPIED);
|
||||
// }
|
||||
// return parent::modify($entity, $formDatas);
|
||||
// }
|
||||
// final public function delete(mixed $entity): bool
|
||||
// {
|
||||
// //code의 경우 기존code는 사용가능으로 설정작업
|
||||
// $this->getCodeService()->setStatus($entity->getCode(), CodeEntity::STATUS_AVAILABLE);
|
||||
// return parent::delete($entity);
|
||||
// }
|
||||
Loading…
Reference in New Issue
Block a user