From a7ebc0a819fae140d8441b647d9b29d84e1490e4 Mon Sep 17 00:00:00 2001
From: jity7777
Date: Wed, 4 Jan 2023 03:44:00 +0000
Subject: [PATCH] =?UTF-8?q?<=EC=98=A4=EB=A5=98=EC=88=98=EC=A0=95>=201.=20P?=
=?UTF-8?q?MS=20NO=20:=207224,=207229,=207230,=207233=202.=20(=EC=A3=BC?=
=?UTF-8?q?=EC=9A=94)=EC=9E=91=EC=97=85=EB=82=B4=EC=9A=A9=20(1)=2022?=
=?UTF-8?q?=EB=85=8412=EC=9B=94=20=EC=B6=94=EA=B0=80=EA=B0=9C=EB=B0=9C?=
=?UTF-8?q?=EA=B1=B4=20=EC=98=A4=EB=A5=98=EC=88=98=EC=A0=95=20=EC=9D=BC?=
=?UTF-8?q?=EA=B4=84=20=EC=97=85=EB=A1=9C=EB=93=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Base/Controller/FOCommon.cs | 5 ++--
Dao/MyBatis/Maps/CM.xml | 39 +++++++++++++++++++++++++++---
Dao/MyBatis/Maps/Lect.xml | 2 +-
FO/Views/CRoom/Plan.cshtml | 2 +-
FO/Views/Course/ApplyAgree.cshtml | 12 ++++++++-
FO/Views/Course/SmartSearch.cshtml | 28 +++++++++++----------
FO/Views/My/LectureOn.cshtml | 16 ++++++------
7 files changed, 74 insertions(+), 30 deletions(-)
diff --git a/Base/Controller/FOCommon.cs b/Base/Controller/FOCommon.cs
index ece8f6b..f831cc2 100644
--- a/Base/Controller/FOCommon.cs
+++ b/Base/Controller/FOCommon.cs
@@ -546,7 +546,8 @@ namespace NP.Base.Controllers
}
else
{
- item.scdInfoSummary = string.Format("{0}", item.estart.ToString("yyyy년 MM월 dd일까지"));
+ //item.scdInfoSummary = string.Format("{0}", item.estart.ToString("yyyy년 MM월 dd일까지"));
+ item.scdInfoSummary = string.Format("{0}", item.estart.ToString("yyyy년 MM월 dd일"));
}
if (item.estart < Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")))
@@ -679,7 +680,7 @@ where t1.status = 1 and t4.pstatus= 1
return JsonBack(new JsonRtn() { code = 0, msg = "해당 일정은 모집 인원이 마감되었습니다." });
else if (pass > 0)
{
- Dao.Save("cm.lectcmisno.up", new System.Collections.Hashtable() { { "cmisno", cmisno }, { "lectno", lectno }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } });
+ Dao.Save("cm.lectcmisno.up" , new System.Collections.Hashtable() { { "cmisno", cmisno }, { "lectno", lectno }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } });
return JsonBack(new JsonRtn() { code = 1, msg = "일정을 변경하였습니다." });
}
return JsonBack(new JsonRtn() { code = -1, msg = "개발자에게 문의하세요." });
diff --git a/Dao/MyBatis/Maps/CM.xml b/Dao/MyBatis/Maps/CM.xml
index c601bcf..249eb7f 100644
--- a/Dao/MyBatis/Maps/CM.xml
+++ b/Dao/MyBatis/Maps/CM.xml
@@ -1985,9 +1985,8 @@
left outer join cg cg on d.cgno = cg.cgno
left outer join comcode e on e.ccode = a.studyplace
left outer join lect f on f.lectno = #lectno#
-
- c.cmno=#cmno#
-
+ where DATE_ADD(f.sdate, INTERVAL 1 YEAR) > a.estart
+ c.cmno=#cmno#
)a
a.startmonth=#month#
@@ -2098,6 +2097,8 @@
from cminningscd a
where a.cmisno = #cmisno#
+
+
update lect set
,cmisno =case when #cmisno# is not null then #cmisno# else cmisno end
@@ -2113,11 +2114,41 @@
set a.cmisno = case when b.cmisno is not null then b.cmisno else a.cmisno end
where b.lectno = #lectno#;
+ update lect a
+ left outer join cminningscd b on b.cmisno = a.cmisno
+ left outer join cm c on a.cmno = c.cmno
+ set a.edate = case when b.eend is not null then date_format(b.eend,'%Y-%m-%d 23:59:59') else a.edate end
+ ,a.sdate = (case when b.estart is not null then date_format(b.estart,'%Y-%m-%d 00:00:00') else a.sdate end)
+ where a.lectno = #lectno# and c.cshape = 1;
+
+ update lect a
+ left outer join cminningscd b on b.cmisno = a.cmisno
+ left outer join cm c on a.cmno = c.cmno
+ set a.edate = case when b.eend is not null then date_format(b.eend,'%Y-%m-%d 23:59:59') else a.edate end
+ where a.lectno = #lectno# and c.cshape <> 1;
+
+
+
+
+
+ 교육시행 여부 관련 안내
+
+
+ 신청하신 교육기간에 접수인원이 적은 경우 해당 기간의 교육은 폐강되어 다른 일정으로 변경 하셔야 될 수도 있습니다. 꼭! 참고 부탁 드립니다.
+
}
else
{
@@ -192,7 +198,7 @@
※ 위 4가지 조건 모두 만족하셔야 수료가 가능합니다.
@*※ 하루 최대 학습 시간은 10차시 입니다.
- ※ 현재 코로나로 인하여 기존 (동영상강의 시청 28시간 + 현장집체7시간 참석)에서 한시적으로 (동영상강의 시청 35시간)으로 진행합니다.*@
+ ※ 현재 코로나로 인하여 기존 (동영상강의 시청 28시간 + 현장집체7시간 참석)에서 한시적으로 (동영상강의 시청 35시간)으로 진행합니다.*@
@*※ 국토부 장관이 인정하는 사유로 집체교육을 실시 하지 못할 시 에는 동영상강의로 대체되며 7시간을 100% 이수하셔야 수료가 가능합니다. *@
@@ -201,6 +207,10 @@
온라인교육은 신청일로 부터 최대 1년 이내에 수료하셔야 하며 1년 이내에 교육수료가 되지 않으면 수료 및 환불이 불가능합니다.
+
집체교육(7시간)일정 관련 안내
+
+ 교육 신청 시 지정하신 집체교육일에 접수인원이 적은 경우 해당 일자의 집체교육은 폐강되어 다른 일정으로 변경 하셔야 될 수도 있습니다. 꼭! 참고 부탁 드립니다.
+
@@ -357,7 +361,7 @@
var divPlace = $("#divPlace_" + cmno);
var divScd = $("#divScd" + cmno);
- if (btnSelect.html() == '일정조회') {
+ if (btnSelect.html() == '교육신청') {
btnSelect.html('닫기');
//capp("/focommon/GetScdForMixEdu", { cmno: model.cm.cmno, month: $("#selMonth").val() }, "renderScd");
//교육일정에 등록되어 있는 일정 중 선택이 가능한 첫번째 일정 선택으로 달 파라미터 제거
@@ -368,7 +372,7 @@
divPlace.empty();
divPlace.hide();
divScd.empty();
- btnSelect.html('일정조회');
+ btnSelect.html('교육신청');
}
}
@@ -388,18 +392,16 @@
if (cshape == 1) //오프라인
{
- strTmp = "
" +
- "※ 현재 신청 중인 교육은 교육장에서 진행되는 교육입니다. " +
- "※ 접수마감 된 일정에 취소자가 생기면 접수중 으로 바뀌게 됩니다." +
- "
";
+ strTmp = "
" +
+ "※ 선택한 일정에 신청인원이 적은 경우 교육시행 여부가 변경 될 수 있습니다.
";
}
else if (cshape == 2) //온라인
{
- strTmp = "
※ 수료조건을 모두 만족하신 후 " +
+ strTmp = "
※ 수료조건을 모두 만족하신 후 " +
"교육종료일(집체교육 참석일)에 집체교육 7시간을 참석 하시면 됩니다. " +
- "※ 수료조건 : 동영상강의 진도율 90% 이상 / 시험평가 60점 이상 / 과제 제출 " +
- "※ 교육비 입금과 동시에 동영상강의 시청이 가능합니다." +
- " 교육종료일(집체교육 참석일)을 선택하여 주세요.";
+ "※ 수료조건 : 동영상강의 진도율 90% 이상 / 시험평가 60점 이상 / 과제 제출 " +
+ "※ 교육비 입금과 동시에 동영상강의 시청이 가능합니다." +
+ "
교육종료일(집체교육 참석일)을 선택하여 주세요.";
}
divInfo.append(strTmp);
@@ -874,7 +876,7 @@
}
else {
@* msg("이미 수강/수료한 과정입니다.");*@
- msg("현재 신청 하여 수강 중인 과정 또는 이미 수료한 과정입니다.");
+ msg("이미 동일한 내용의 교육을 신청,수강 또는 수료한 과정입니다.");
}
}
}
@@ -889,7 +891,7 @@
if (cnt > 0) {
// 강좌를 만들 수 있지만 이미 생성된 조건?
@* msg("이미 수강/수료한 과정입니다.");*@
- msg("현재 신청 하여 수강 중인 과정 또는 이미 수료한 과정입니다.");
+ msg("이미 동일한 내용의 교육을 신청,수강 또는 수료한 과정입니다.");
return;
}
else {
diff --git a/FO/Views/My/LectureOn.cshtml b/FO/Views/My/LectureOn.cshtml
index 2a7fbc7..ae6d2a6 100644
--- a/FO/Views/My/LectureOn.cshtml
+++ b/FO/Views/My/LectureOn.cshtml
@@ -83,12 +83,12 @@
@* *@
-