fix: 6500件制限、画面のダイアログにも表示。

This commit is contained in:
shimoda.m@nds-tyo.co.jp 2023-08-24 16:02:58 +09:00
parent 143fda6e26
commit d1ec77ce08
3 changed files with 11 additions and 6 deletions

View File

@ -19,6 +19,7 @@ class BioViewModel(BaseModel):
phm_models: list[PharmacyProductMasterModel]
bio_data: Optional[list[BisDisplayModel]] = None
form_data: BioModel = None
excel_max_lines: int = str(environment.BIO_EXCEL_RESULT_MAX_COUNT)
def display_wholesaler_names(self):
display_names = [

View File

@ -1,4 +1,4 @@
{% with
{% with
icon_data = {
'info': {
'alert': 'alert-primary',
@ -18,10 +18,14 @@
<button type="button" id="{{modal_id}}_close" onclick="{{modal_close_event}}" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<img src="{{icon_data[icon_key]['icon_src']}}" loading="lazy" style="width: 50px;">
{% autoescape False %}
{{message}}
{% endautoescape %}
<div style="display: inline-block;">
<img src="{{icon_data[icon_key]['icon_src']}}" loading="lazy" style="width: 50px;">
</div>
<div style="display: inline-block;">
{% autoescape False %}
{{message}}
{% endautoescape %}
</div>
</div>
<div class="modal-footer">
{% for button in buttons%}

View File

@ -381,7 +381,7 @@
{% with
modal_id='modal_xlsx',
modal_title='確認',
message='生物由来卸販売データ一覧をExcel出力しますか',
message='生物由来卸販売データ一覧をExcel出力しますか<br>※出力件数が' + bio.excel_max_lines + '件に制限されます。全件出力したい場合はCSVで出力してください。',
icon_key='info',
modal_close_event='',
buttons = [