diff --git a/Base/Controller/FOCommon.cs b/Base/Controller/FOCommon.cs index d1bf8e6..5537a12 100644 --- a/Base/Controller/FOCommon.cs +++ b/Base/Controller/FOCommon.cs @@ -365,6 +365,20 @@ namespace NP.Base.Controllers } return JsonOK(1); } + + [HttpPost] + public JsonResult GetSubCm(int cmno, int? studyplace = null) + { + var result = Dao.Get("cm.subcms", new System.Collections.Hashtable() { { "cmno", cmno }, { "studyplace", studyplace } }); + return JsonBack(result); + } + + [HttpPost] + public JsonResult GetCmUser(int cmno) + { + var result = Dao.Get("cm.cmuser", new System.Collections.Hashtable() { { "cmno", cmno } }); + return JsonBack(result); + } } } \ No newline at end of file diff --git a/Dao/MyBatis/Maps/CM.xml b/Dao/MyBatis/Maps/CM.xml index feaa21a..9c581db 100644 --- a/Dao/MyBatis/Maps/CM.xml +++ b/Dao/MyBatis/Maps/CM.xml @@ -160,6 +160,7 @@ a.setime > now() a.sstime >= #sstime# a.setime <= #setime# + and b.cgcode=#cgcode# ) a order by a.rno @@ -1717,5 +1718,70 @@ where a.isdel=0 and a.pcmno=#cmno# --> + + + \ No newline at end of file diff --git a/FO/Controllers/CourseController.cs b/FO/Controllers/CourseController.cs index b2382cb..c9e858f 100644 --- a/FO/Controllers/CourseController.cs +++ b/FO/Controllers/CourseController.cs @@ -756,7 +756,14 @@ namespace NP.FO.Controllers { vm.ComCodes = GetComCodes("typeman,typeedu,typegrade,typejob,studyplace"); vm.CMsEtc = Dao.Get("cm.cgetc", new System.Collections.Hashtable() { { "cgcode", "2" } });//cgcode = 기타교육 // 기타교육 cgcode 바뀌면 파라미터도 변경해야함 - vm.CMs = Dao.Get("cm.cms", new System.Collections.Hashtable() { { "ismaster", "1" }, { "cshape", vm.stringval2 }, { "typeman", vm.stringval3 }, { "typeedu", vm.stringval4 }, { "typegrade", vm.stringval5 }, { "typejob", vm.stringval6 } }); + if (vm.stringval == "0" || string.IsNullOrEmpty(vm.stringval)) + { + vm.CMs = Dao.Get("cm.cms", new System.Collections.Hashtable() { { "ismaster", "1" }, { "cshape", vm.stringval2 }, { "typeman", vm.stringval3 }, { "typeedu", vm.stringval4 }, { "typegrade", vm.stringval5 }, { "typejob", vm.stringval6 } }); + } + else if (vm.stringval == "1") + { + vm.CMs = Dao.Get("cm.cms", new System.Collections.Hashtable() { { "ismaster", "1" }, { "cshape", vm.stringval2 }, { "cgcode", vm.stringval3 } }); + } return View(vm); } @@ -769,5 +776,7 @@ namespace NP.FO.Controllers { return View(vm); } + + } } diff --git a/FO/Views/Course/SmartSearch.cshtml b/FO/Views/Course/SmartSearch.cshtml index b0541bd..4d01329 100644 --- a/FO/Views/Course/SmartSearch.cshtml +++ b/FO/Views/Course/SmartSearch.cshtml @@ -2,7 +2,7 @@
- + @if (Model.stringval == "0" || Model.stringval == null || Model.stringval == "") {
    @@ -14,6 +14,7 @@
  • @@ -42,6 +43,7 @@
  • @@ -61,139 +63,61 @@
  • 건축사협회 이동
+
    @foreach (var item in Model.CMs) {
  • -
    @(item.cshape == 0 ? "온라인" : "교육장") @item.cname
    - @if (item.cshape == 1) //오프라인일경우 - { -

    신청가능강좌 : 부산교육장(10개), 영천교육장(7개), 진주교육장(3개)

    - } +
    @(item.cshape == 0 ? "온라인" : item.cshape == 1 ? "교육장" : "혼합") @item.cname
    -
      -
    • 전체
    • - @foreach (var t in Model.ComCodes.Where(w => w.cgroup.ToString() == "studyplace")) - { -
    • @t.cname
    • - } -
    -
      -
    • - -

      - 신청가능 -
    • -
    • - -

      - 대기접수 -
    • -
    • - -

      - 신청가능 -
    • - @*
    • -

      ※ 대기접수는 해당 교육과정의 정원이 마감되어 교육입교 확정은 아니지만 결원 발생 시 대기신청 차례에 따라 교육생 연락처로 연락 드리는 시스템 입니다

      - 수강신청 -
    • *@ -
    + @if (item.cshape == 1) + { + + } +
    • } - @*
    • -
      -
      온라인 건설기술인 기본1교육과정
      -

      신청가능강좌 : 부산교육장(10개), 영천교육장(7개), 진주교육장(3개)

      - -
      - -
        -
      • - -

        - 신청가능 -
      • -
      • - -

        - 대기접수 -
      • -
      • - -

        - 신청가능 -
      • -
      • -

        ※ 대기접수는 해당 교육과정의 정원이 마감되어 교육입교 확정은 아니지만 결원 발생 시 대기신청 차례에 따라 교육생 연락처로 연락 드리는 시스템 입니다

        - 수강신청 -
      • -
      -
    • -
    • -
      -
      교육장 건설기술인 기본2교육과정
      -

      신청가능강좌 : 부산교육장(10개), 영천교육장(7개), 진주교육장(3개)

      - -
      -
    • -
    • -
      -
      온라인 건설기술인 기본2교육과정
      -

      신청가능강좌 : 부산교육장(10개), 영천교육장(7개), 진주교육장(3개)

      - -
      -
    • *@
    -
    +
    diff --git a/FO/css/style.css b/FO/css/style.css index 29a566d..467a170 100644 --- a/FO/css/style.css +++ b/FO/css/style.css @@ -1986,6 +1986,7 @@ span.org {color: #ff5a00;} .smtlCont h5 em {display: inline-block; vertical-align: middle; padding: 0 5px; width: 50px; height: 20px; line-height: 20px; color: #fff; font-size: 9pt; text-align: center; margin-right: 5px; font-style: normal;} .smtlCont h5 em.org {background: #f60;} .smtlCont h5 em.grn {background: #259e41;} +.smtlCont h5 em.blu {background: #0000ff;} .smtlCont h5 span {vertical-align: middle;} .smtlCont p {margin-top: 10px; color: #888; position: relative; padding-left: 8px;} .smtlCont p:before {content: ''; display: block; width: 2px; height: 2px; background: #888; position: absolute; left: 0; top: 10px;} diff --git a/Model/CM.cs b/Model/CM.cs index 109f33e..ad09556 100644 --- a/Model/CM.cs +++ b/Model/CM.cs @@ -158,6 +158,14 @@ namespace NP.Model return rstime == null && retime == null ? "" : string.Format("{0}~{1}", rstime == null ? "" : rstime.Value.ToString("yy.MM.dd"), retime == null ? "" : retime.Value.ToString("yy.MM.dd")); } } + + public String rsretimeToDay + { + get + { + return rstime == null && retime == null ? "" : string.Format("{0}", Convert.ToDateTime(retime).DayOfYear - Convert.ToDateTime(rstime).DayOfYear); + } + } public int isrequesting { get { return retime == null || rstime == null ? 0 : rstime.Value < DateTime.Now && retime.Value > DateTime.Now ? 1 : 0; @@ -417,6 +425,17 @@ namespace NP.Model /// 이수증발급여부 /// public int? iscertificate { get; set; } + public int? lectcnt { get; set; } + public String applicableCM { get; set; } + /// + /// 출석수료기준 + /// + public int attendcut { get; set; } + /// + /// 시험수료기준 + /// + public int finalcut { get; set; } + public String username { get; set; } } [Serializable]