From b3c3be58d789903954e05da1f902972fa5262bec Mon Sep 17 00:00:00 2001 From: hyunho Date: Fri, 6 Nov 2020 05:20:19 +0000 Subject: [PATCH] --- FO/Controllers/CourseController.cs | 7 ++ FO/Views/Course/ApplyComplete.cshtml | 102 +++++++++++++++++++++------ FO/Views/Course/ApplyEdu.cshtml | 19 ++++- Model/CM.cs | 1 + 4 files changed, 106 insertions(+), 23 deletions(-) diff --git a/FO/Controllers/CourseController.cs b/FO/Controllers/CourseController.cs index 5bad244..bfe6822 100644 --- a/FO/Controllers/CourseController.cs +++ b/FO/Controllers/CourseController.cs @@ -822,6 +822,13 @@ namespace NP.FO.Controllers public ActionResult Applycomplete(VMCourse vm) { + vm.CM = Dao.Get("cm.cms", new System.Collections.Hashtable() { { "cmno", vm.cmno } }).FirstOrDefault(); + if (vm.CM.lectcnt != null) + { + int? standbyPerson = vm.CM.quota - vm.CM.lectcnt; + vm.CM.applicableCM = (standbyPerson <= 0) ? "대기접수" : "정상접수"; + vm.CM.standbyPerson = standbyPerson; + } return View(vm); } diff --git a/FO/Views/Course/ApplyComplete.cshtml b/FO/Views/Course/ApplyComplete.cshtml index e05a207..274c3d4 100644 --- a/FO/Views/Course/ApplyComplete.cshtml +++ b/FO/Views/Course/ApplyComplete.cshtml @@ -1,28 +1,86 @@ -
+ @*강좌번호*@ +

신청완료

-

신청강좌

-
-
-
31기 [ 부산교육장 ] 아동문학의 이해
-

신청기간 : 2019-04-05 ~ 2019-04-20 | 집체교육기간 : [부산] 2019-04-05 ~ 2019-04-20

-
-
총 결제예상금액 : 400,000
-
+
    +
  • +
      +
    • + @if (Model.CM.cshape == 0) + { +

      + } + else if (Model.CM.cshape == 1) + { +

      + } + else if (Model.CM.cshape == 2) + { +

      + } -
      -
      위 강좌의 대기접수가 완료되었습니다.
      -
      (대기인원 : 00명)
      -

      ※ 결원 발생 시 대기신청 차례에 따라 교육생 연락처로 연락드릴 예정입니다.

      -

      ※ 교육비 결제는 마이페이지 학습현황의 학습대기에서 가능하며 교육비결제 완료 후 학습을 시작할 수 있습니다.

      -
      - - - - +
      + 결제금액 : @Model.CM.infee 원 +
      +
    - \ No newline at end of file +@if (Model.CM.applicableCM == "정상접수") +{ +

    결제정보

    + + + + + + + + + + + + + + + + + + + + + + + +
    구매금액
    지불방법카드결제
    입금계좌국민은행 | 계좌번호 | (주)이니시스
    주문접수일2017-10-16 12ㅣ00 (만료일: 2018-10-16 12:00)
    주문상태결제완료
    + +} +else +{ +
    +
    위 강좌의 대기접수가 완료되었습니다.
    +
    (대기인원 : @Model.CM.standbyPerson명)
    +

    ※ 결원 발생 시 대기신청 차례에 따라 교육생 연락처로 연락드릴 예정입니다.

    +

    ※ 교육비 결제는 마이페이지 학습현황의 학습대기에서 가능하며 교육비결제 완료 후 학습을 시작할 수 있습니다.

    +
    + +} + + diff --git a/FO/Views/Course/ApplyEdu.cshtml b/FO/Views/Course/ApplyEdu.cshtml index 93be7e7..d0c8fcc 100644 --- a/FO/Views/Course/ApplyEdu.cshtml +++ b/FO/Views/Course/ApplyEdu.cshtml @@ -169,6 +169,12 @@
+ + 사업자등록증 + + + + @@ -274,7 +280,14 @@ @@ -330,4 +343,8 @@ ulScd.append(li); }); } + + function applyEdu() { + capfileform('/fcommon/paytaxsave', 'mform', 'cbgogo'); + } diff --git a/Model/CM.cs b/Model/CM.cs index de4ea6c..14c9da8 100644 --- a/Model/CM.cs +++ b/Model/CM.cs @@ -427,6 +427,7 @@ namespace NP.Model public int? iscertificate { get; set; } public int? lectcnt { get; set; } public String applicableCM { get; set; } + public int? standbyPerson { get; set; } /// /// 출석수료기준 ///