| @@ -20,6 +20,9 @@ use Illuminate\Support\Collection; | |||||
| * @property Collection<int, Entry> entryList | * @property Collection<int, Entry> entryList | ||||
| * @property Collection<int, Result> resultList | * @property Collection<int, Result> resultList | ||||
| * @property string selectionMessage | * @property string selectionMessage | ||||
| * @property string searchCandidateListRecordNo | |||||
| * @property string searchEntryListRecordNo | |||||
| * @property string searchResultListEntryRecordNo | |||||
| */ | */ | ||||
| class SeasonTicketContractSelection extends KintoneModel | class SeasonTicketContractSelection extends KintoneModel | ||||
| { | { | ||||
| @@ -84,6 +87,9 @@ class SeasonTicketContractSelection extends KintoneModel | |||||
| self::FIELD_ENTRY_LIST => FieldType::SUBTABLE, | self::FIELD_ENTRY_LIST => FieldType::SUBTABLE, | ||||
| self::FIELD_RESULT_LIST => FieldType::SUBTABLE, | self::FIELD_RESULT_LIST => FieldType::SUBTABLE, | ||||
| self::FIELD_SELECTION_MESSAGE => FieldType::MULTI_LINE_TEXT, | self::FIELD_SELECTION_MESSAGE => FieldType::MULTI_LINE_TEXT, | ||||
| self::FIELD_SEARCH_CANDIDATE_LIST_RECORD_NO => FieldType::SINGLE_LINE_TEXT, | |||||
| self::FIELD_SEARCH_ENTRY_LIST_RECORD_NO => FieldType::SINGLE_LINE_TEXT, | |||||
| self::FIELD_SEARCH_RESULT_LIST_ENTRY_RECORD_NO => FieldType::SINGLE_LINE_TEXT, | |||||
| ]; | ]; | ||||
| protected const SUB_TABLES = [ | protected const SUB_TABLES = [ | ||||
| @@ -86,6 +86,15 @@ class SeasonTicketContractSelectionManager | |||||
| $this->selection->status = SelectionStatus::TARGET_SELECTING; | $this->selection->status = SelectionStatus::TARGET_SELECTING; | ||||
| // 検索用文字列の作成 | |||||
| $search = collect(); | |||||
| foreach ($this->selection->candidateList as $ele) { | |||||
| $search->push(sprintf("c%dc", $ele->entryRecordNo)); | |||||
| } | |||||
| $this->selection->searchCandidateListRecordNo = $search->implode(","); | |||||
| return $this; | return $this; | ||||
| } | } | ||||
| @@ -119,6 +128,13 @@ class SeasonTicketContractSelectionManager | |||||
| $this->selection->selectionMessage = $messages->implode("\r\n"); | $this->selection->selectionMessage = $messages->implode("\r\n"); | ||||
| // 検索用文字列の作成 | |||||
| $search = collect(); | |||||
| foreach ($this->selection->resultList as $ele) { | |||||
| $search->push(sprintf("r%dr", $ele->entryRecordNo)); | |||||
| } | |||||
| $this->selection->searchResultListEntryRecordNo = $search->implode(","); | |||||
| return $this; | return $this; | ||||
| } | } | ||||
| @@ -154,6 +170,14 @@ class SeasonTicketContractSelectionManager | |||||
| $this->selection->entryList = $list; | $this->selection->entryList = $list; | ||||
| // 検索用文字列の作成 | |||||
| $search = collect(); | |||||
| foreach ($this->selection->entryList as $ele) { | |||||
| $search->push(sprintf("e%de", $ele->entryRecordNo)); | |||||
| } | |||||
| $this->selection->searchEntryListRecordNo = $search->implode(","); | |||||
| return $this; | return $this; | ||||
| } | } | ||||
| @@ -3,6 +3,9 @@ | |||||
| @section('contents') | @section('contents') | ||||
| 駐車場名:{{ $parking_name }} | 駐車場名:{{ $parking_name }} | ||||
| 下記URLより申込手続きを行ってください。 | 下記URLより申込手続きを行ってください。 | ||||
| {{ $url }} | {{ $url }} | ||||
| 申込とキャンセルする場合は下記URLより承ります。 | |||||
| {{ $cancel_url }} | |||||
| @endsection | @endsection | ||||