diff --git a/BO/Controllers/croomController.cs b/BO/Controllers/croomController.cs index b3143a8..e543c47 100644 --- a/BO/Controllers/croomController.cs +++ b/BO/Controllers/croomController.cs @@ -704,7 +704,16 @@ namespace NP.BO.Controllers else { vm.Pay = Dao.Get("cr.pay1", vm.payno).First(); - vm.PayItems = Dao.Get("cr.pay2", vm.payno); + vm.PayItems = Dao.Get("cr.pay2", vm.payno); + vm.ComCodes = GetComCodes("typeman,typeedu,typegrade,typejob,studyplace"); + vm.Lect = Dao.Get("lect.lects", new System.Collections.Hashtable() { { "payno", vm.payno } }).FirstOrDefault(); + vm.Lect.typemanname = vm.ComCodes.Where(w => w.cgroup.ToString() == "typeman" && w.ccode == vm.Lect.typeman).FirstOrDefault()?.cname; + vm.Lect.typeeduname = vm.ComCodes.Where(w => w.cgroup.ToString() == "typeedu" && w.ccode == vm.Lect.typeedu).FirstOrDefault()?.cname; + vm.Lect.typegradename = vm.ComCodes.Where(w => w.cgroup.ToString() == "typegrade" && w.ccode == vm.Lect.typegrade).FirstOrDefault()?.cname; + vm.Lect.typejobname = vm.ComCodes.Where(w => w.cgroup.ToString() == "typejob" && w.ccode == vm.Lect.typejob).FirstOrDefault()?.cname; + if(!string.IsNullOrEmpty(vm.Lect.studyplace)) vm.Lect.studyplacename = vm.ComCodes.Where(w => w.cgroup.ToString() == "studyplace" && w.ccode == int.Parse(vm.Lect.studyplace)).FirstOrDefault()?.cname; + ViewBag.TestCode = TestCode; + vm.CM = Dao.Get("cm.cm", new System.Collections.Hashtable() { { "cmno", vm.Lect.cmno } }).First(); } return View(vm); } diff --git a/BO/Views/croom/payview.cshtml b/BO/Views/croom/payview.cshtml index e94b218..85c693e 100644 --- a/BO/Views/croom/payview.cshtml +++ b/BO/Views/croom/payview.cshtml @@ -132,17 +132,17 @@ else if (p.isunpay == 3) { if (p.iscancel == 1) { - 발행취소 + 발행취소 } else { if (p.taxdate == null) { - 미발행 + 미발행 } else { - 발행완료 + 발행완료 } } } @@ -150,7 +150,6 @@ else if (p.isunpay == 3) - @@ -183,7 +182,7 @@ else if (p.isunpay == 3) } -@if (pi.FirstOrDefault().isrebate == 1 ) +@if (pi.FirstOrDefault().isrebate == 1) {
환급내역
@@ -192,9 +191,9 @@ else if (p.isunpay == 3) 은행명 계좌번호 - + 예금주 - +
@@ -269,9 +268,120 @@ else if (p.isunpay == 3)
- + } -


+@if (Model.Lect != null) +{ +
+
교육신청내역
+ + + + + + + + + + + + + + + +
교육기간기술인분류직무분야교육목적등급
@Model.Lect.sdate.Value.ToString("yyyy-MM-dd") ~ @Model.Lect.edate.Value.ToString("yyyy-MM-dd")@Model.Lect.typemanname@Model.Lect.typejobname@Model.Lect.typeeduname@Model.Lect.typegradename
+
+ 수정
+
+
+ if (Model.Lect.cshape == 2) + { +
+
교육일정
+ + + + + + + + + +
교육장소교육일정
@Model.Lect.studyplacename@Model.Lect.estart.ToString("yyyy-MM-dd HH:mm")
+
+ 수정
+
+
+ } +} +
+

교육생 정보닫기

+ + + + + + + + + + + + + + + + + + + + + + + + +
고객사
이름(ID)
직위
이메일
휴대전화번호
교육기간@Html.Partial("./Partial/Date", (DateTime?)null, new ViewDataDictionary { { "name", "sdate" } }) ~ @Html.Partial("./Partial/Date", (DateTime?)null, new ViewDataDictionary { { "name", "edate" } })저장
기술인분류 + +
직무분야 + +
교육목적 + +
등급 + +
+ +

+ +
+
+

교육일정변경닫기

+
    + +
    @@ -411,5 +521,143 @@ else if (p.isunpay == 3) opener.gotaxdetail(payno); self.close(); } + + function viewlect(a, ustatus, lectno, fileno, fileurl, orgname, status,pstatus,rstatus, datas) { + if (ustatus != 99) { + _lectno = lectno; + _pstatus = pstatus; + _rstatus = rstatus; + var ds = datas.split(':'); + $("#asname").text(ds[0]); + $("#assignuser").text(ds[8]); + $("#usernameid").text(ds[1] + "(" + ds[2] + ")"); + $("#positiondepart").text(ds[3]); + $("#ckfcfyear").text(ds[9]); + $("#email").text(ds[5]); + $("#telno").text(ds[6]); + $("#mobile").text(ds[7]); + $("#sdate").val(ds[11]); + $("#edate").val(ds[12]); + $("#edus").text(""); + if (!isnulloremt(String(ds[10]))) { + if (String(ds[10]).substr(0, 1) != "0") { $("#edus").append("| 공정거래일반:" + String(ds[10]).substr(0, 1) + "회 | " + "
    ") } + if (String(ds[10]).substr(1, 1) != "0") { $("#edus").append("| 불공정거래행위:" + String(ds[10]).substr(1, 1) + "회 | " + "
    ") } + if (String(ds[10]).substr(2, 1) != "0") { $("#edus").append("| 부당한공동행위:" + String(ds[10]).substr(2, 1) + "회 | " + "
    ") } + if (String(ds[10]).substr(3, 1) != "0") { $("#edus").append("| 하도급거래:" + String(ds[10]).substr(3, 1) + "회 | " + "
    ") } + if (String(ds[10]).substr(4, 1) != "0") { $("#edus").append("| 부당내부거래:" + String(ds[10]).substr(4, 1) + "회 | " + "
    ") } + } + bglayer(); $("#thisbox").slideDown("fast"); + $("#selTypeman").val(ds[13]).attr("selected", "selected"); + $("#selTypejob").val(ds[14]).attr("selected", "selected"); + $("#selTypeedu").val(ds[15]).attr("selected", "selected"); + $("#selTypegrade").val(ds[16]).attr("selected", "selected"); + $("#hidpplno").val(ds[17]); + } + } + function change() { + if (($("#sdate").val() == "") || ($("#edate").val() == "")) { + msg2("교육기간을 입력한 후 저장해주세요."); + } else if (confirm("교육기간을 수정하시겠습니까?")) { + capp("/acommon/lectsedatechange", { lectno: _lectno, sdate: $("#sdate").val(), edate: $("#edate").val(), pstatus: _pstatus, rstatus: _rstatus }, "cbsedatechange", null, null, null, true); + } + } + function cbsedatechange() { + if (capResult.code == 1000) { + msg2("상태를 변경했습니다.", null, null, "location.href = location.href"); + } else if (capResult.code == -1) { + msg("결제가 완료가 아닌 대상은 상태를 변경할 수 없습니다."); + $("#thisbox").slideUp('fast'); $('#bglayer').hide(); + } + } + function savetype() { + if (confirm("교육신청 정보를 저장하시겠습니까??")) { + capp("/acommon/pplogtypechange", { + pplno: $("#hidpplno").val(), + typeman: $("#selTypeman").val(), + typejob: $("#selTypejob").val(), + typeedu: $("#selTypeedu").val(), + typegrade: $("#selTypegrade").val() + }, "afterUpdateType"); + } + } + function afterUpdateType() { + if (capResult.code > 0) { + msg2("저장되었습니다.", null, null, "location.href = location.href"); + } + else { + msg("관리자에게 문의하세요."); + $("#thisbox").slideUp('fast'); $('#bglayer').hide(); + } + } + function setScd() { + capp("/acommon/GetScdForMixEdu", { cmno: @Model.CM.cmno }, "renderScd"); + } + function renderScd() { + var ulScd = $("#ulScd"); + ulScd.empty(); + var seq = 0; + $.each(capResult.obj, function (i, d) { + var li = $("
  • "); + if (d.isEnd == true) + { + li.append(""); + } + else + { + if (d.quota != 0) { + if (d.remainPeople <= 0) { + li.append(""); + } + else { + if (seq == 0) { + li.append(""); + } + else { + li.append(""); + } + } + } + else { + if (seq == 0) { + li.append(""); + } + else { + li.append(""); + } + } + } + seq++; + ulScd.append(li); + }); + + $("input:radio[name='rdoScds']:radio[value='" + selectedCmisno + "']").prop('checked', true); + } + function openScd(lectno, cmisno) { + selectedLectno = lectno; + selectedCmisno = cmisno; + $.when( + setScd() + ).done(function () { + setTimeout(function () { + bglayer(); + $("#scdbox").slideDown("fast"); + }, 200); + }); + } + function updateScd() { + if (confirm("교육일정을 변경하시겠습니까?")) { + var cmisno = $("input:radio[name=rdoScds]:checked").val(); + capp("/acommon/LectScdChange", { lectno: selectedLectno, cmisno: cmisno }, "afterUpdateScd"); + } + } + function afterUpdateScd() { + if (capResult.code > 0) { + msg2("저장되었습니다.", null, null, "location.href = location.href"); + } + else { + msg("관리자에게 문의하세요."); + $("#thisbox").slideUp('fast'); $('#bglayer').hide(); + } + } } diff --git a/Dao/MyBatis/Maps/Lect.xml b/Dao/MyBatis/Maps/Lect.xml index 06ecb55..99b82ad 100644 --- a/Dao/MyBatis/Maps/Lect.xml +++ b/Dao/MyBatis/Maps/Lect.xml @@ -157,7 +157,7 @@