delFlg_ctrl 苦肉の策
This commit is contained in:
parent
ce883d8ad7
commit
5359486197
@ -28,7 +28,7 @@ class UltmarcInstModel(BaseModel):
|
||||
ctrl_postal_number: str = Form(None),
|
||||
ctrl_inst_phone_number: str = Form(None),
|
||||
ctrl_prefc_cd: str = Form(None),
|
||||
ctrl_delFlg: str = Form(None),
|
||||
delFlg_ctrl: str = Form(None),
|
||||
ctrl_inst_addr: str = Form(None)
|
||||
):
|
||||
return cls(
|
||||
@ -39,7 +39,7 @@ class UltmarcInstModel(BaseModel):
|
||||
postal_number=ctrl_postal_number,
|
||||
inst_phone_number=ctrl_inst_phone_number,
|
||||
prefc_cd=ctrl_prefc_cd,
|
||||
delFlg=ctrl_delFlg,
|
||||
delFlg=delFlg_ctrl,
|
||||
inst_addr=ctrl_inst_addr
|
||||
)
|
||||
|
||||
|
||||
@ -34,6 +34,8 @@ class UltmarcDoctorRepository(BaseRepository):
|
||||
LEFT JOIN src05.com_alma ON com_dr.alma_cd = com_alma.alma_cd
|
||||
WHERE
|
||||
{where_clause}
|
||||
AND (length(com_inst.abolish_ymd) = 0 OR com_inst.abolish_ymd IS NULL)
|
||||
AND (length(com_dr.abolish_ymd) = 0 OR com_dr.abolish_ymd IS NULL)
|
||||
GROUP BY com_dr.dcf_pcf_dr_cd, com_inst.dcf_dsf_inst_cd, com_blng_sec.blng_sec_cd
|
||||
ORDER BY
|
||||
com_dr.dcf_pcf_dr_cd,
|
||||
@ -127,13 +129,6 @@ class UltmarcDoctorRepository(BaseRepository):
|
||||
parameter.grad_y = f'%{parameter.grad_y}%'
|
||||
where_clauses.append(SQLCondition('grad_y', condition.LIKE, 'grad_y'))
|
||||
|
||||
# 検索条件が入力されていない場合
|
||||
# if not where_clauses:
|
||||
# where_clauses.append(SQLCondition(
|
||||
# '', '', '(LENGTH(com_inst.abolish_ymd) = 0 OR com_inst.abolish_ymd IS NULL)', literal=True))
|
||||
# where_clauses.append(SQLCondition(
|
||||
# '', '', '(LENGTH(com_dr.abolish_ymd) = 0 OR com_dr.abolish_ymd IS NULL)', literal=True))
|
||||
|
||||
where_clauses_str = ' AND '.join([condition.apply() for condition in where_clauses])
|
||||
|
||||
return where_clauses_str
|
||||
|
||||
@ -176,12 +176,12 @@
|
||||
</table>
|
||||
{% if bio.is_form_submitted() and bio.is_data_overflow_max_length() %}
|
||||
<div class="resultAreaMsg">
|
||||
検索結果が最大件数を超えました。検索条件を見直しして下さい。
|
||||
検索件数が500件を超えています 検索項目を見直してください
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if bio.is_form_submitted() and bio.is_data_empty() %}
|
||||
<div class="resultAreaMsg">
|
||||
対象のデータが存在しません。
|
||||
対象のデータが存在しません
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
@ -7,8 +7,6 @@
|
||||
<link rel="stylesheet" href="/static/css/ultStyle.css">
|
||||
|
||||
<script type="text/javascript">
|
||||
controlCount = 11; // 検索フォームの入力ボックスの数 アルトマーク課題管理表No.2の修正
|
||||
|
||||
window.onload = function(){
|
||||
// 見出し固定初期化
|
||||
FixedMidashi.create();
|
||||
|
||||
@ -7,8 +7,6 @@
|
||||
<link rel="stylesheet" href="/static/css/ultStyle.css">
|
||||
|
||||
<script type="text/javascript">
|
||||
controlCount = 8; // 検索フォームの入力ボックスの数 アルトマーク課題管理表No.2の修正
|
||||
|
||||
window.onload = function(){
|
||||
// 見出し固定初期化
|
||||
FixedMidashi.create();
|
||||
@ -49,7 +47,7 @@
|
||||
<option value=""></option>
|
||||
{% for inst_div in ultmarc.inst_div_models %}
|
||||
<option value="{{inst_div['inst_div_cd']}}" {{ultmarc.is_selected_inst_div_cd(inst_div['inst_div_cd'])}}>
|
||||
{{inst_div['inst_div_name']}}
|
||||
{{inst_div['inst_div_cd']}}:{{inst_div['inst_div_name']}}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
@ -81,7 +79,7 @@
|
||||
<td>都道府県:</td>
|
||||
<td class="search_tb">
|
||||
<!-- 都道府県のドロップダウン -->
|
||||
<select class="text search_dropdown" name="ctrl_prefc_cd" onchange="formBtDisabled()" onkeyup="formBtDisablead(controlCount)">
|
||||
<select class="text search_dropdown" name="ctrl_prefc_cd" onchange="formBtDisabled()" onkeyup="formBtDisablead()">
|
||||
<!-- 都道府県ドロップダウンの中身を作成 -->
|
||||
<option value=""></option>
|
||||
{% for prefc in ultmarc.prefc_models %}
|
||||
@ -93,8 +91,8 @@
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<label><input type="checkbox" name="ctrl_delFlg" value="true"
|
||||
onchange="formBtDisabled()" {{ultmarc.is_checked_delFlg()}}> 削除施設表示</label>
|
||||
<label><input type="checkbox" name="delFlg_ctrl" value="true"
|
||||
{{ultmarc.is_checked_delFlg()}}> 削除施設表示</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -104,8 +102,8 @@
|
||||
value="{{ultmarc.is_input_inst_addr()}}" oninput="formBtDisabled()">
|
||||
</td>
|
||||
<td class="search_btTd" colspan="2">
|
||||
<input class="text ult_bt search_bt" id="clear" type="button" name="clear_bt" value="クリア" onclick="clr()">
|
||||
<input class="ult_bt search_bt" id="search_bt" name="search_bt" value="検索" type="submit">
|
||||
<input class="text ult_bt search_bt" id="clear" type="button" name="clear_bt" value="クリア" onclick="clr()" >
|
||||
<input class="ult_bt search_bt" id="search_bt" name="search_bt" value="検索" type="submit" >
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -142,12 +140,12 @@
|
||||
</table>
|
||||
{% if ultmarc.is_form_submitted() and ultmarc.is_data_overflow_max_length() %}
|
||||
<div class="resultAreaMsg">
|
||||
検索結果が最大件数を超えました。検索条件を見直しして下さい。
|
||||
検索件数が500件を超えています 検索項目を見直してください
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if ultmarc.is_form_submitted() and ultmarc.is_data_empty() %}
|
||||
<div class="resultAreaMsg">
|
||||
対象のデータが存在しません。
|
||||
対象のデータが存在しません
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
@ -179,7 +177,7 @@
|
||||
sessionStorage.setItem('ctrl_postal_number','{{ultmarc.is_input_postal_number()}}');
|
||||
sessionStorage.setItem('ctrl_inst_phone_number','{{ultmarc.is_input_inst_phone_number()}}');
|
||||
sessionStorage.setItem('ctrl_prefc_cd','{{ultmarc.is_input_form_prefc_cd()}}');
|
||||
sessionStorage.setItem('ctrl_delFlg','{{ultmarc.is_input_delFlg()}}');
|
||||
sessionStorage.setItem('delFlg_ctrl','{{ultmarc.is_input_delFlg()}}');
|
||||
sessionStorage.setItem('ctrl_inst_addr','{{ultmarc.is_input_inst_addr()}}');
|
||||
|
||||
$(".pagination").pagination({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user