社会福祉振興助成事業で実施した過去の助成事業の概要や報告書などの成果物を検索して閲覧することができます。
必要事項をご入力のうえ、送信ボタンをクリックしてください モニターに関する詳細は こちらをご覧ください 開設者について 法人格(法人の場合) 法人名または個人名 フリガナ 郵便番号 ※半角数字で入力してください。ハイフン不要 都道府県 北海道 青森県 岩手県 宮城県 秋田県 山形県 福島県 茨城県 栃木県 群馬県 埼玉県 千葉県 東京都 神奈川県 新潟県 富山県 石川県 福井県 山梨県 長野県 岐阜県 静岡県 愛知県 三重県 滋賀県 京都府 大阪府 兵庫県 奈良県 和歌山県 鳥取県 島根県 岡山県 広島県 山口県 徳島県 香川県 愛媛県 高知県 福岡県 佐賀県 長崎県 熊本県 大分県 宮崎県 鹿児島県 沖縄県 市区町村 番地 開設する病院について ※原則、開設しているすべての病院についてご登録及び回答をしていただきます。 すべての病院について回答が難しい場合は、ご相談ください。 病院名 ※病院名を入力してください 許可病床数 ※半角数字で入力してください ※許可病床数を半角数字で入力してください 病院開設年 西暦 年 ※半角数字で入力してください ※病院開設年を半角数字で入力してください 続けて別の病院情報を入力 ※他にも病院を開設されている場合は、チェックのうえ入力をしてください 病院名 ※病院名を入力してください 許可病床数 ※半角数字で入力してください ※許可病床数を半角数字で入力してください 病院開設年 西暦 年 ※半角数字で入力してください ※病院開設年を半角数字で入力してください 続けて別の病院情報を入力 ※他にも病院を開設されている場合は、チェックのうえ入力をしてください 病院名 ※病院名を入力してください 許可病床数 ※半角数字で入力してください ※許可病床数を半角数字で入力してください 病院開設年 西暦 年 ※半角数字で入力してください ※病院開設年を半角数字で入力してください 続けて別の病院情報を入力 ※他にも病院を開設されている場合は、チェックのうえ入力をしてください 病院名 ※病院名を入力してください 許可病床数 ※半角数字で入力してください ※許可病床数を半角数字で入力してください 病院開設年 西暦 年 ※半角数字で入力してください ※病院開設年を半角数字で入力してください 続けて別の病院情報を入力 ※他にも病院を開設されている場合は、チェックのうえ入力をしてください 病院名 ※病院名を入力してください 許可病床数 ※半角数字で入力してください ※許可病床数を半角数字で入力してください 病院開設年 西暦 年 ※半角数字で入力してください ※病院開設年を半角数字で入力してください 続けて別の病院情報を入力 ※他にも病院を開設されている場合は、チェックのうえ入力をしてください 病院名 ※病院名を入力してください 許可病床数 ※半角数字で入力してください ※許可病床数を半角数字で入力してください 病院開設年 西暦 年 ※半角数字で入力してください ※病院開設年を半角数字で入力してください 続けて別の病院情報を入力 ※他にも病院を開設されている場合は、チェックのうえ入力をしてください 病院名 ※病院名を入力してください 許可病床数 ※半角数字で入力してください ※許可病床数を半角数字で入力してください 病院開設年 西暦 年 ※半角数字で入力してください ※病院開設年を半角数字で入力してください 続けて別の病院情報を入力 ※他にも病院を開設されている場合は、チェックのうえ入力をしてください 病院名 ※病院名を入力してください 許可病床数 ※半角数字で入力してください ※許可病床数を半角数字で入力してください 病院開設年 西暦 年 ※半角数字で入力してください ※病院開設年を半角数字で入力してください 続けて別の病院情報を入力 ※他にも病院を開設されている場合は、チェックのうえ入力をしてください 病院名 ※病院名を入力してください 許可病床数 ※半角数字で入力してください ※許可病床数を半角数字で入力してください 病院開設年 西暦 年 ※半角数字で入力してください ※病院開設年を半角数字で入力してください 続けて別の病院情報を入力 ※他にも病院を開設されている場合は、チェックのうえ入力をしてください 病院名 ※病院名を入力してください 許可病床数 ※半角数字で入力してください ※許可病床数を半角数字で入力してください 病院開設年 西暦 年 ※半角数字で入力してください ※病院開設年を半角数字で入力してください 本件に関するご担当者について お名前(姓) お名前(名) フリガナ(セイ) フリガナ(メイ) 電話番号 ※半角数字で入力してください。ハイフン不要 番号 ※半角数字で入力してください。ハイフン不要 E-mail E-mail(確認) if ($("input[name='099_kakunin_sousin']")[0]) { // 送信ボタンが表示されている場合 if ($("input[name='008_hsp_next_00[data]']")[0]) { $('#008_hsp_01_table').show(); } if ($("input[name='008_hsp_next_01[data]']")[0]) { $('#008_hsp_02_table').show(); } if ($("input[name='008_hsp_next_02[data]']")[0]) { $('#008_hsp_03_table').show(); } if ($("input[name='008_hsp_next_03[data]']")[0]) { $('#008_hsp_04_table').show(); } if ($("input[name='008_hsp_next_04[data]']")[0]) { $('#008_hsp_05_table').show(); } if ($("input[name='008_hsp_next_05[data]']")[0]) { $('#008_hsp_06_table').show(); } if ($("input[name='008_hsp_next_06[data]']")[0]) { $('#008_hsp_07_table').show(); } if ($("input[name='008_hsp_next_07[data]']")[0]) { $('#008_hsp_08_table').show(); } if ($("input[name='008_hsp_next_08[data]']")[0]) { $('#008_hsp_09_table').show(); } } else { if ($('input[name="008_hsp_next_00[data][]"]').prop("checked")) { $('#008_hsp_01_table').show(); } if ($('input[name="008_hsp_next_01[data][]"]').prop("checked")) { $('#008_hsp_02_table').show(); } if ($('input[name="008_hsp_next_02[data][]"]').prop("checked")) { $('#008_hsp_03_table').show(); } if ($('input[name="008_hsp_next_03[data][]"]').prop("checked")) { $('#008_hsp_04_table').show(); } if ($('input[name="008_hsp_next_04[data][]"]').prop("checked")) { $('#008_hsp_05_table').show(); } if ($('input[name="008_hsp_next_05[data][]"]').prop("checked")) { $('#008_hsp_06_table').show(); } if ($('input[name="008_hsp_next_06[data][]"]').prop("checked")) { $('#008_hsp_07_table').show(); } if ($('input[name="008_hsp_next_07[data][]"]').prop("checked")) { $('#008_hsp_08_table').show(); } if ($('input[name="008_hsp_next_08[data][]"]').prop("checked")) { $('#008_hsp_09_table').show(); } } $('input[name="008_hsp_next_00[data][]"]').change(function() { if ($('input[name="008_hsp_next_00[data][]"]').prop("checked")) { $('#008_hsp_01_table').show(); } else { $('#008_hsp_01_table').hide(); } }); $('input[name="008_hsp_next_01[data][]"]').change(function() { if ($('input[name="008_hsp_next_01[data][]"]').prop("checked")) { $('#008_hsp_02_table').show(); } else { $('#008_hsp_02_table').hide(); } }); $('input[name="008_hsp_next_02[data][]"]').change(function() { if ($('input[name="008_hsp_next_02[data][]"]').prop("checked")) { $('#008_hsp_03_table').show(); } else { $('#008_hsp_03_table').hide(); } }); $('input[name="008_hsp_next_03[data][]"]').change(function() { if ($('input[name="008_hsp_next_03[data][]"]').prop("checked")) { $('#008_hsp_04_table').show(); } else { $('#008_hsp_04_table').hide(); } }); $('input[name="008_hsp_next_04[data][]"]').change(function() { if ($('input[name="008_hsp_next_04[data][]"]').prop("checked")) { $('#008_hsp_05_table').show(); } else { $('#008_hsp_05_table').hide(); } }); $('input[name="008_hsp_next_05[data][]"]').change(function() { if ($('input[name="008_hsp_next_05[data][]"]').prop("checked")) { $('#008_hsp_06_table').show(); } else { $('#008_hsp_06_table').hide(); } }); $('input[name="008_hsp_next_06[data][]"]').change(function() { if ($('input[name="008_hsp_next_06[data][]"]').prop("checked")) { $('#008_hsp_07_table').show(); } else { $('#008_hsp_07_table').hide(); } }); $('input[name="008_hsp_next_07[data][]"]').change(function() { if ($('input[name="008_hsp_next_07[data][]"]').prop("checked")) { $('#008_hsp_08_table').show(); } else { $('#008_hsp_08_table').hide(); } }); $('input[name="008_hsp_next_08[data][]"]').change(function() { if ($('input[name="008_hsp_next_08[data][]"]').prop("checked")) { $('#008_hsp_09_table').show(); } else { $('#008_hsp_09_table').hide(); } }); if ($("input[name='submitConfirm']")[0]) { // 「内容確認」ボタンが表示されている場合 // フォームのsubmitをフックするとプラグイン絡み?でおかしくなるので一旦ボタンのタイプを変更 $("input[name='submitConfirm']").get(0).type = 'button'; // クリックイベント取得 $("input[name='submitConfirm']").click(function() { // 「内容確認」ボタンを押下した場合 $('#alert_008_hsp_name_00').hide(); $('#alert_008_hsp_bed_00').hide(); $('#alert_008_hsp_year_00').hide(); $('#alert_008_hsp_name_01').hide(); $('#alert_008_hsp_bed_01').hide(); $('#alert_008_hsp_year_01').hide(); $('#alert_008_hsp_name_02').hide(); $('#alert_008_hsp_bed_02').hide(); $('#alert_008_hsp_year_02').hide(); $('#alert_008_hsp_name_03').hide(); $('#alert_008_hsp_bed_03').hide(); $('#alert_008_hsp_year_03').hide(); $('#alert_008_hsp_name_04').hide(); $('#alert_008_hsp_bed_04').hide(); $('#alert_008_hsp_year_04').hide(); $('#alert_008_hsp_name_05').hide(); $('#alert_008_hsp_bed_05').hide(); $('#alert_008_hsp_year_05').hide(); $('#alert_008_hsp_name_06').hide(); $('#alert_008_hsp_bed_06').hide(); $('#alert_008_hsp_year_06').hide(); $('#alert_008_hsp_name_07').hide(); $('#alert_008_hsp_bed_07').hide(); $('#alert_008_hsp_year_07').hide(); $('#alert_008_hsp_name_08').hide(); $('#alert_008_hsp_bed_08').hide(); $('#alert_008_hsp_year_08').hide(); $('#alert_008_hsp_name_09').hide(); $('#alert_008_hsp_bed_09').hide(); $('#alert_008_hsp_year_09').hide(); if ($('#008_hsp_name_00').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_00').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_00').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_00').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_00').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_00').show(); return false; } if ($('input[name="008_hsp_next_00[data][]"]').prop("checked")) { // 一つ目の「続けて別の病院情報を入力」がチェックされている場合 // 二つ目の病院情報をバリデーション if ($('#008_hsp_name_01').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_01').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_01').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_01').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_01').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_01').show(); return false; } } if ($('input[name="008_hsp_next_01[data][]"]').prop("checked")) { // 二つ目の「続けて別の病院情報を入力」がチェックされている場合 // 三つ目の病院情報をバリデーション if ($('#008_hsp_name_02').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_02').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_02').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_02').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_02').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_02').show(); return false; } } if ($('input[name="008_hsp_next_02[data][]"]').prop("checked")) { // 三つ目の「続けて別の病院情報を入力」がチェックされている場合 // 四つ目の病院情報をバリデーション if ($('#008_hsp_name_03').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_03').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_03').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_03').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_03').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_03').show(); return false; } } if ($('input[name="008_hsp_next_03[data][]"]').prop("checked")) { // 四つ目の「続けて別の病院情報を入力」がチェックされている場合 // 五つ目の病院情報をバリデーション if ($('#008_hsp_name_04').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_04').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_04').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_04').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_04').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_04').show(); return false; } } if ($('input[name="008_hsp_next_04[data][]"]').prop("checked")) { // 五つ目の「続けて別の病院情報を入力」がチェックされている場合 // 六つ目の病院情報をバリデーション if ($('#008_hsp_name_05').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_05').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_05').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_05').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_05').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_05').show(); return false; } } if ($('input[name="008_hsp_next_05[data][]"]').prop("checked")) { // 六つ目の「続けて別の病院情報を入力」がチェックされている場合 // 七つ目の病院情報をバリデーション if ($('#008_hsp_name_06').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_06').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_06').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_06').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_06').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_06').show(); return false; } } if ($('input[name="008_hsp_next_06[data][]"]').prop("checked")) { // 七つ目の「続けて別の病院情報を入力」がチェックされている場合 // 八つ目の病院情報をバリデーション if ($('#008_hsp_name_07').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_07').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_07').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_07').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_07').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_07').show(); return false; } } if ($('input[name="008_hsp_next_07[data][]"]').prop("checked")) { // 八つ目の「続けて別の病院情報を入力」がチェックされている場合 // 九つ目の病院情報をバリデーション if ($('#008_hsp_name_08').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_08').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_08').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_08').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_08').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_08').show(); return false; } } if ($('input[name="008_hsp_next_08[data][]"]').prop("checked")) { // 九つ目の「続けて別の病院情報を入力」がチェックされている場合 // 十個目の病院情報をバリデーション if ($('#008_hsp_name_09').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_09').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_09').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_09').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_09').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_09').show(); return false; } } // バリデーションが問題なければボタンをsubmitに戻してクリックイベントを再発生 // (プラグインの絡み?で直接フォームをPOSTするとうまく動かないのでボタンクリックにする) $("input[name='submitConfirm']").get(0).type = 'submit'; $("input[name='submitConfirm']").click(); }); } $.fn.isEmptyOrNumeric = function(data) { if (data == '') { return false; } if (data.match(/[^0-9]+/)) { return false; } return true; } $(function() { $(".clearForm").bind("click", function() { $(this.form).find("textarea,:text,select").val("").end().find(":checked").prop("checked", false); $('#008_hsp_01_table').hide(); $('#008_hsp_02_table').hide(); $('#008_hsp_03_table').hide(); $('#008_hsp_04_table').hide(); $('#008_hsp_05_table').hide(); $('#008_hsp_06_table').hide(); $('#008_hsp_07_table').hide(); $('#008_hsp_08_table').hide(); $('#008_hsp_09_table').hide(); }); });
if ($("input[name='099_kakunin_sousin']")[0]) { // 送信ボタンが表示されている場合 if ($("input[name='008_hsp_next_00[data]']")[0]) { $('#008_hsp_01_table').show(); } if ($("input[name='008_hsp_next_01[data]']")[0]) { $('#008_hsp_02_table').show(); } if ($("input[name='008_hsp_next_02[data]']")[0]) { $('#008_hsp_03_table').show(); } if ($("input[name='008_hsp_next_03[data]']")[0]) { $('#008_hsp_04_table').show(); } if ($("input[name='008_hsp_next_04[data]']")[0]) { $('#008_hsp_05_table').show(); } if ($("input[name='008_hsp_next_05[data]']")[0]) { $('#008_hsp_06_table').show(); } if ($("input[name='008_hsp_next_06[data]']")[0]) { $('#008_hsp_07_table').show(); } if ($("input[name='008_hsp_next_07[data]']")[0]) { $('#008_hsp_08_table').show(); } if ($("input[name='008_hsp_next_08[data]']")[0]) { $('#008_hsp_09_table').show(); } } else { if ($('input[name="008_hsp_next_00[data][]"]').prop("checked")) { $('#008_hsp_01_table').show(); } if ($('input[name="008_hsp_next_01[data][]"]').prop("checked")) { $('#008_hsp_02_table').show(); } if ($('input[name="008_hsp_next_02[data][]"]').prop("checked")) { $('#008_hsp_03_table').show(); } if ($('input[name="008_hsp_next_03[data][]"]').prop("checked")) { $('#008_hsp_04_table').show(); } if ($('input[name="008_hsp_next_04[data][]"]').prop("checked")) { $('#008_hsp_05_table').show(); } if ($('input[name="008_hsp_next_05[data][]"]').prop("checked")) { $('#008_hsp_06_table').show(); } if ($('input[name="008_hsp_next_06[data][]"]').prop("checked")) { $('#008_hsp_07_table').show(); } if ($('input[name="008_hsp_next_07[data][]"]').prop("checked")) { $('#008_hsp_08_table').show(); } if ($('input[name="008_hsp_next_08[data][]"]').prop("checked")) { $('#008_hsp_09_table').show(); } } $('input[name="008_hsp_next_00[data][]"]').change(function() { if ($('input[name="008_hsp_next_00[data][]"]').prop("checked")) { $('#008_hsp_01_table').show(); } else { $('#008_hsp_01_table').hide(); } }); $('input[name="008_hsp_next_01[data][]"]').change(function() { if ($('input[name="008_hsp_next_01[data][]"]').prop("checked")) { $('#008_hsp_02_table').show(); } else { $('#008_hsp_02_table').hide(); } }); $('input[name="008_hsp_next_02[data][]"]').change(function() { if ($('input[name="008_hsp_next_02[data][]"]').prop("checked")) { $('#008_hsp_03_table').show(); } else { $('#008_hsp_03_table').hide(); } }); $('input[name="008_hsp_next_03[data][]"]').change(function() { if ($('input[name="008_hsp_next_03[data][]"]').prop("checked")) { $('#008_hsp_04_table').show(); } else { $('#008_hsp_04_table').hide(); } }); $('input[name="008_hsp_next_04[data][]"]').change(function() { if ($('input[name="008_hsp_next_04[data][]"]').prop("checked")) { $('#008_hsp_05_table').show(); } else { $('#008_hsp_05_table').hide(); } }); $('input[name="008_hsp_next_05[data][]"]').change(function() { if ($('input[name="008_hsp_next_05[data][]"]').prop("checked")) { $('#008_hsp_06_table').show(); } else { $('#008_hsp_06_table').hide(); } }); $('input[name="008_hsp_next_06[data][]"]').change(function() { if ($('input[name="008_hsp_next_06[data][]"]').prop("checked")) { $('#008_hsp_07_table').show(); } else { $('#008_hsp_07_table').hide(); } }); $('input[name="008_hsp_next_07[data][]"]').change(function() { if ($('input[name="008_hsp_next_07[data][]"]').prop("checked")) { $('#008_hsp_08_table').show(); } else { $('#008_hsp_08_table').hide(); } }); $('input[name="008_hsp_next_08[data][]"]').change(function() { if ($('input[name="008_hsp_next_08[data][]"]').prop("checked")) { $('#008_hsp_09_table').show(); } else { $('#008_hsp_09_table').hide(); } }); if ($("input[name='submitConfirm']")[0]) { // 「内容確認」ボタンが表示されている場合 // フォームのsubmitをフックするとプラグイン絡み?でおかしくなるので一旦ボタンのタイプを変更 $("input[name='submitConfirm']").get(0).type = 'button'; // クリックイベント取得 $("input[name='submitConfirm']").click(function() { // 「内容確認」ボタンを押下した場合 $('#alert_008_hsp_name_00').hide(); $('#alert_008_hsp_bed_00').hide(); $('#alert_008_hsp_year_00').hide(); $('#alert_008_hsp_name_01').hide(); $('#alert_008_hsp_bed_01').hide(); $('#alert_008_hsp_year_01').hide(); $('#alert_008_hsp_name_02').hide(); $('#alert_008_hsp_bed_02').hide(); $('#alert_008_hsp_year_02').hide(); $('#alert_008_hsp_name_03').hide(); $('#alert_008_hsp_bed_03').hide(); $('#alert_008_hsp_year_03').hide(); $('#alert_008_hsp_name_04').hide(); $('#alert_008_hsp_bed_04').hide(); $('#alert_008_hsp_year_04').hide(); $('#alert_008_hsp_name_05').hide(); $('#alert_008_hsp_bed_05').hide(); $('#alert_008_hsp_year_05').hide(); $('#alert_008_hsp_name_06').hide(); $('#alert_008_hsp_bed_06').hide(); $('#alert_008_hsp_year_06').hide(); $('#alert_008_hsp_name_07').hide(); $('#alert_008_hsp_bed_07').hide(); $('#alert_008_hsp_year_07').hide(); $('#alert_008_hsp_name_08').hide(); $('#alert_008_hsp_bed_08').hide(); $('#alert_008_hsp_year_08').hide(); $('#alert_008_hsp_name_09').hide(); $('#alert_008_hsp_bed_09').hide(); $('#alert_008_hsp_year_09').hide(); if ($('#008_hsp_name_00').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_00').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_00').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_00').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_00').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_00').show(); return false; } if ($('input[name="008_hsp_next_00[data][]"]').prop("checked")) { // 一つ目の「続けて別の病院情報を入力」がチェックされている場合 // 二つ目の病院情報をバリデーション if ($('#008_hsp_name_01').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_01').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_01').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_01').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_01').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_01').show(); return false; } } if ($('input[name="008_hsp_next_01[data][]"]').prop("checked")) { // 二つ目の「続けて別の病院情報を入力」がチェックされている場合 // 三つ目の病院情報をバリデーション if ($('#008_hsp_name_02').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_02').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_02').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_02').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_02').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_02').show(); return false; } } if ($('input[name="008_hsp_next_02[data][]"]').prop("checked")) { // 三つ目の「続けて別の病院情報を入力」がチェックされている場合 // 四つ目の病院情報をバリデーション if ($('#008_hsp_name_03').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_03').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_03').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_03').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_03').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_03').show(); return false; } } if ($('input[name="008_hsp_next_03[data][]"]').prop("checked")) { // 四つ目の「続けて別の病院情報を入力」がチェックされている場合 // 五つ目の病院情報をバリデーション if ($('#008_hsp_name_04').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_04').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_04').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_04').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_04').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_04').show(); return false; } } if ($('input[name="008_hsp_next_04[data][]"]').prop("checked")) { // 五つ目の「続けて別の病院情報を入力」がチェックされている場合 // 六つ目の病院情報をバリデーション if ($('#008_hsp_name_05').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_05').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_05').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_05').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_05').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_05').show(); return false; } } if ($('input[name="008_hsp_next_05[data][]"]').prop("checked")) { // 六つ目の「続けて別の病院情報を入力」がチェックされている場合 // 七つ目の病院情報をバリデーション if ($('#008_hsp_name_06').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_06').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_06').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_06').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_06').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_06').show(); return false; } } if ($('input[name="008_hsp_next_06[data][]"]').prop("checked")) { // 七つ目の「続けて別の病院情報を入力」がチェックされている場合 // 八つ目の病院情報をバリデーション if ($('#008_hsp_name_07').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_07').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_07').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_07').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_07').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_07').show(); return false; } } if ($('input[name="008_hsp_next_07[data][]"]').prop("checked")) { // 八つ目の「続けて別の病院情報を入力」がチェックされている場合 // 九つ目の病院情報をバリデーション if ($('#008_hsp_name_08').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_08').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_08').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_08').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_08').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_08').show(); return false; } } if ($('input[name="008_hsp_next_08[data][]"]').prop("checked")) { // 九つ目の「続けて別の病院情報を入力」がチェックされている場合 // 十個目の病院情報をバリデーション if ($('#008_hsp_name_09').val() == '') { // 病院名が入力されていない場合はalert表示 $('#alert_008_hsp_name_09').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_bed_09').val())) { // 許可病床数が半角数値ではない場合はalert表示 $('#alert_008_hsp_bed_09').show(); return false; } if (!$().isEmptyOrNumeric($('#008_hsp_year_09').val())) { // 病院開設年が半角数値ではない場合はalert表示 $('#alert_008_hsp_year_09').show(); return false; } } // バリデーションが問題なければボタンをsubmitに戻してクリックイベントを再発生 // (プラグインの絡み?で直接フォームをPOSTするとうまく動かないのでボタンクリックにする) $("input[name='submitConfirm']").get(0).type = 'submit'; $("input[name='submitConfirm']").click(); }); } $.fn.isEmptyOrNumeric = function(data) { if (data == '') { return false; } if (data.match(/[^0-9]+/)) { return false; } return true; }
$(function() { $(".clearForm").bind("click", function() { $(this.form).find("textarea,:text,select").val("").end().find(":checked").prop("checked", false); $('#008_hsp_01_table').hide(); $('#008_hsp_02_table').hide(); $('#008_hsp_03_table').hide(); $('#008_hsp_04_table').hide(); $('#008_hsp_05_table').hide(); $('#008_hsp_06_table').hide(); $('#008_hsp_07_table').hide(); $('#008_hsp_08_table').hide(); $('#008_hsp_09_table').hide(); }); });
Copyright © 2011 独立行政法人福祉医療機構(法人番号8010405003688) 〒105-8486 東京都港区虎ノ門4-3-13 ヒューリック神谷町ビル