diff --git a/BO/Web.config b/BO/Web.config index 7d4c0ec..27cf48b 100644 --- a/BO/Web.config +++ b/BO/Web.config @@ -56,9 +56,9 @@ - + - + diff --git a/Base/Controller/FOCommon.cs b/Base/Controller/FOCommon.cs index 00ee601..1f02ea0 100644 --- a/Base/Controller/FOCommon.cs +++ b/Base/Controller/FOCommon.cs @@ -129,7 +129,7 @@ namespace NP.Base.Controllers return JsonBack(new JsonRtn() { code = 1000, msg = "-4", obj = u.userno }); } - if (u.intv1 == 2) + if (u.intv1 == 2 || u.status == 8) // 휴면상태 포함 { // 비활성 상태(비번 5회 이상) return JsonBack(new JsonRtn() { code = 1000, msg = "-5", obj = u.userno }); @@ -618,7 +618,7 @@ namespace NP.Base.Controllers //var result = Dao.Get("cm.cminningscds.applyedu"+(lectno != null ? ".lectno" : ""), new System.Collections.Hashtable() { { "cmno", cmno },{"lectno",lectno }, { "month", (month == null) ? null : month } }); DateTime now = DateTime.Now; - result = result.Where(c => c.estart > now.AddYears(-1) && c.estart < now.AddYears(1)).ToList(); + result = result.Where(c => c.estart > now.AddYears(-1) && c.estart < now.AddYears(1) && c.estart > now.AddDays(2)).ToList(); foreach (var item in result) { //item.scdInfoSummary = string.Format("[{0}] {1}", item.studyplacename, item.estart.ToString("yyyy년 MM월 dd일 ddd요일 HH:mm")); @@ -658,14 +658,22 @@ namespace NP.Base.Controllers public JsonResult GetCheckLectIs(string man, string cgcode, string edu, string grade, int cmno, int pcmno) { int result = 0; // 0 이면 수강 가능, 그외 수강 불가 - int userno = SUserInfo.UserNo; + + result = CheckUserLect(man, cgcode, edu, grade, cmno, pcmno, SUserInfo.UserNo); + + return JsonBack(result); + } + + + public int CheckUserLect(string man, string cgcode, string edu, string grade, int cmno, int pcmno, long userno) + { + int result = 0; int rst = 0; string[] cgcodes = new string[0]; string[] edus = new string[0]; - - if (DateTime.Now > DateTime.Parse("2030-01-02 00:00"))// ### ty 2024년 추가건 + if (DateTime.Now > DateTime.Parse("2030-01-02 00:00"))// ### ty 2024년 추가건이나 현재 적용대기로 전달 받음 { // ### ty 2024년 적용!!! @@ -724,13 +732,13 @@ namespace NP.Base.Controllers // "lect.count.user3" > 103,104 // 최초교육(30) , (103,104), - if (edu == "30" && (cgcode == "103" || cgcode == "104") ) + if (edu == "30" && (cgcode == "103" || cgcode == "104")) { var lectCount = Dao.Get("lect.count.user3", new Hashtable() { { "userno", userno }, { "cgcode", cgcode }, { "edu", edu }, { "grade", grade }, { "cmno", cmno }, { "pcmno", pcmno } }); rst = lectCount.First(); } // 승급교육(35), 38:고급 ,39:특급 - else if (edu == "35" && (grade == "38" || grade == "39")) + else if (edu == "35" && (grade == "38" || grade == "39")) { var lectCount = Dao.Get("lect.count.user2", new Hashtable() { { "userno", userno }, { "cmno", cmno }, { "pcmno", pcmno } }); rst = lectCount.First(); @@ -811,15 +819,15 @@ namespace NP.Base.Controllers } } - if(result == 0) + if (result == 0) { //-1= 짧은 문구 result = rst == 0 ? 0 : ((rst > 0) ? 1 : -1); // } - - return JsonBack(result); - } + return result; + + } /// /// 교육신청 제한 해제시 GetCheckLectIs_stay를 GetCheckLectIs로 변경하여 반영한다. /// diff --git a/Dao/MyBatis/Maps/CRoom.xml b/Dao/MyBatis/Maps/CRoom.xml index fe9b9d3..877285d 100644 --- a/Dao/MyBatis/Maps/CRoom.xml +++ b/Dao/MyBatis/Maps/CRoom.xml @@ -1840,7 +1840,7 @@ left outer join pplog pl on p.pplno= pl.pplno where l.lectno=#lectno# and l.userno = #userno# and (pl.typeedu = 32 or ( l.completetime is null and li.stime is not null - and l.sdate < '2024-08-01 00:00:00' and l.edate > '2025-08-03 00:00:00')) + and l.sdate < '2024-08-19 00:00:00' and l.edate < '2024-08-22 00:00:00')) \ No newline at end of file diff --git a/Dao/MyBatis/Maps/Lect.xml b/Dao/MyBatis/Maps/Lect.xml index c0c48df..e5c75b7 100644 --- a/Dao/MyBatis/Maps/Lect.xml +++ b/Dao/MyBatis/Maps/Lect.xml @@ -2665,6 +2665,14 @@ where (t1.status = 1 or t1.status = 2) and t2.isdel= 0 and t2.isuse= 1 and t2.ismaster = 0 and t1.userno = #userno# and t2.pcmno = #pcmno# )t + + + + + + + +
    +
  • + +
  • +
  • + @*typeman는 데이터가 model.comcodes2임, 수정시 주의할것*@ + @Html.DropDownListFor(x => x.stringval3, new SelectList(Model.ComCodes2, "ccode", "cname"), "-선택-") +
  • +
  • + @*typeedu는 데이터가 model.comcodes3임, 수정시 주의할것*@ + @Html.DropDownListFor(x => x.stringval4, new SelectList(Model.ComCodes3, "ccode", "cname"), "-선택-") +
  • +
  • + @*typegrade는 데이터가 model.comcodes4임, 수정시 주의할것*@ + @Html.DropDownListFor(x => x.stringval5, new SelectList(Model.ComCodes4, "ccode", "cname"), "-선택-") +
  • +
  • + @Html.DropDownListFor(x => x.stringval6, new SelectList(Model.ComCodes5, "ccode", "cname"), "-선택-") +
  • +
  • + @Html.DropDownListFor(x => x.stringval7, new SelectList(Model.ComCodes6, "ccode", "cname"), "-선택-") +
  • +
  • 검색
  • +
+ + @{ + bool lectAbleChk = (ViewBag.rslt == 0 && Model.intval == 0) ? true : false; + } +
+ @if (!lectAbleChk) + { + if (Model.intval > 0) + { +

+ + 이미 동일한 내용의 교육을 신청, 수강 또는 수료한 과정입니다. +
+ 아래 [뒤로가기] 버튼을 클릭하여 검색결과 화면으로 이동 후 다른 교육으로 신청하여 주시기 바랍니다. +
+

+ } + else + { +

+ + 이 교육은 아래의 사유 중 하나에 해당되어 신청되지 않는 교육입니다. +
+ + - 선택한 교육목적으로 인정되지 않는 경우 + +
+ + - 이미 신청 또는 수료한 교육과 함께 수료하면 인정이 되지 않는 경우 + +
+ + 아래 [뒤로가기] 버튼을 클릭하여 검색결과 화면으로 이동 후 다른 교육으로 신청하여 주시기 바랍니다.
+ + 문의 : 1544 - 7660 + +
+

+ } + + } + + + @{ + string typeman = Model.ComCodes2.Where(c => c.value == Model.stringval3).First().cname; + string edu = Model.ComCodes3.Where(c => c.value == Model.stringval4).First().cname; + string grade = Model.ComCodes4.Where(c => c.value == Model.stringval5).First().cname; + string typejob = Model.ComCodes5.Where(c => c.value == Model.stringval6).First().cname; + string typejobItem = Model.ComCodes6.Where(c => c.value == Model.stringval7).First().cname; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
교육유형@(Model.stringval2 == "1" ? "교육장교육" : "온라인교육")
기술인분류@typeman
교육목적@edu
등급@grade
직무분야@typejob
전문분야@typejobItem
과정명 + @Model.CM.cname @Model.CM.cmno +
+ 교육종료일
(집체교육 참석일) +
+ @string.Format("{0:yyyy년 MM월 dd일}", Model.SelectCMInningscd.eend) +
교육일정 + @string.Format("{0:yyyy년 MM월 dd일}", DateTime.Now) ~ + @string.Format("{0:yyyy년 MM월 dd일}", Model.SelectCMInningscd.eend) +
+ + +
+ + + + diff --git a/FO/Views/Home/Index.cshtml b/FO/Views/Home/Index.cshtml index 67fc805..0ba09a9 100644 --- a/FO/Views/Home/Index.cshtml +++ b/FO/Views/Home/Index.cshtml @@ -304,10 +304,11 @@ }) $(".msBtn").click(function () { - if (@ViewBag.SSUserNo <= 0) { + @*// // 2024.08.07 로그인제한 해제 + if (@ViewBag.SSUserNo <= 0) { msg("로그인 후 진행 할 수 있습니다.", null, null, null, "location.href='" + '/Account/Index' + "'"); return; - } + }*@ if ($("#liTab1").hasClass("current")) { $("#stringval").val("0"); } @@ -445,7 +446,7 @@ $("#liedu4").hide() $("#lijob57").hide() - + @if(DateTime.Now > DateTime.Parse("2030-01-02 00:00")) // ### ty 2024년 추가건 { @:if (num => 2) { diff --git a/FO/Web.config b/FO/Web.config index 5346dc3..fa14f2c 100644 --- a/FO/Web.config +++ b/FO/Web.config @@ -104,10 +104,9 @@ - - - + +