From c0516d83f03d6d3047b93e7102f2b779fa032be6 Mon Sep 17 00:00:00 2001 From: hyunho Date: Mon, 9 Nov 2020 01:57:03 +0000 Subject: [PATCH] --- FO/Views/Course/ApplyEdu.cshtml | 14 +++++--- FO/Views/Course/SmartSearch.cshtml | 52 ++++++++++++++++++------------ 2 files changed, 41 insertions(+), 25 deletions(-) diff --git a/FO/Views/Course/ApplyEdu.cshtml b/FO/Views/Course/ApplyEdu.cshtml index 455151f..564e5a8 100644 --- a/FO/Views/Course/ApplyEdu.cshtml +++ b/FO/Views/Course/ApplyEdu.cshtml @@ -365,11 +365,17 @@ } function applyEdu() { - $("#cmisno").val($("input:radio[name=rdoScds]:checked").val()); - $("#isrebate").val($("input:radio[name=rdoRefund]:checked").val()); - $("#applicableCM").val("@Model.CM.applicableCM"); + if (@ViewBag.SSUserNo > 0) { + $("#cmisno").val($("input:radio[name=rdoScds]:checked").val()); + $("#isrebate").val($("input:radio[name=rdoRefund]:checked").val()); + $("#applicableCM").val("@Model.CM.applicableCM"); - capfileform('/fcommon/savePPLog', 'applyEduForm', 'saveResult'); + capfileform('/fcommon/savePPLog', 'applyEduForm', 'saveResult'); + } + else { + alert("로그인 후 신청 할 수 있습니다."); + return; + } } function saveResult() { if (capResult.code == 1000 && capResult.obj > 0) { diff --git a/FO/Views/Course/SmartSearch.cshtml b/FO/Views/Course/SmartSearch.cshtml index d2bc67e..d5ecd37 100644 --- a/FO/Views/Course/SmartSearch.cshtml +++ b/FO/Views/Course/SmartSearch.cshtml @@ -3,7 +3,7 @@
- + @if (Model.stringval == "0" || Model.stringval == null || Model.stringval == "") {
    @@ -19,16 +19,16 @@
  • - @Html.DropDownListFor(x => x.stringval3, new SelectList(Model.ComCodes.Where(w => w.cgroup.ToString() == "typeman"), "ccode", "cname")) + @Html.DropDownListFor(x => x.stringval3, new SelectList(Model.ComCodes.Where(w => w.cgroup.ToString() == "typeman"), "ccode", "cname"), "-선택-")
  • - @Html.DropDownListFor(x => x.stringval4, new SelectList(Model.ComCodes.Where(w => w.cgroup.ToString() == "typeedu"), "ccode", "cname")) + @Html.DropDownListFor(x => x.stringval4, new SelectList(Model.ComCodes.Where(w => w.cgroup.ToString() == "typeedu"), "ccode", "cname"), "-선택-")
  • - @Html.DropDownListFor(x => x.stringval5, new SelectList(Model.ComCodes.Where(w => w.cgroup.ToString() == "typegrade"), "ccode", "cname")) + @Html.DropDownListFor(x => x.stringval5, new SelectList(Model.ComCodes.Where(w => w.cgroup.ToString() == "typegrade"), "ccode", "cname"), "-선택-")
  • - @Html.DropDownListFor(x => x.stringval6, new SelectList(Model.ComCodes.Where(w => w.cgroup.ToString() == "typejob"), "ccode", "cname")) + @Html.DropDownListFor(x => x.stringval6, new SelectList(Model.ComCodes.Where(w => w.cgroup.ToString() == "typejob"), "ccode", "cname"), "-선택-")
  • 검색
@@ -48,7 +48,7 @@
  • - @Html.DropDownListFor(x => x.stringval3, new SelectList(Model.CMsEtc, "cgno", "cgname")) + @Html.DropDownListFor(x => x.stringval3, new SelectList(Model.CMsEtc, "cgno", "cgname"), "-선택-")
  • 검색
  • @@ -130,23 +130,29 @@