diff --git a/BO/Controllers/croomController.cs b/BO/Controllers/croomController.cs index 312e92f..18fbe7d 100644 --- a/BO/Controllers/croomController.cs +++ b/BO/Controllers/croomController.cs @@ -511,8 +511,17 @@ namespace NP.BO.Controllers ht.Add("edate", vm.stringval); ht.Add("cname", vm.stringval2); ht.Add("studyplace", vm.stringval3); + ht.Add("stringval17", vm.stringval17); vm.Lects = Dao.Get("lect.lectinnings.forattscd", ht); vm.pagetotalcount = GetCount(vm.Lects.FirstOrDefault()); + if (vm.intval2 == 1) + { + return ExportExcel( + new String[] { "No", "운영기수", "교육장", "과정명", "교육생(ID)", "교육시작일", "교육종료일", "출석일", "집합교육출석여부", "수료여부" }, + new String[] { "rnorvt", "sseqstr", "studyplacename", "cname", "usernameid", "sdatestr", "edatestr", "stimestr", "istatusname", "iscompletename" }, + vm.Lects, + "attscds_" + DateTime.Now.Year + DateTime.Now.Month + DateTime.Now.Day); + } return View(vm); } public ActionResult grades(NP.Model.VMCM vm) diff --git a/BO/Views/croom/attscds.cshtml b/BO/Views/croom/attscds.cshtml index e53066c..21a2a40 100644 --- a/BO/Views/croom/attscds.cshtml +++ b/BO/Views/croom/attscds.cshtml @@ -53,11 +53,14 @@
+ @Html.HiddenFor(m => m.intval2)
+ @Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "onchange", "submit()" }, { "name", "stringval17" }, { "selected", Model.stringval17 }, { "valuetext", ":출석여부;0:미입력;2:출석" } }) @Html.Partial("./Partial/pagerow", new ViewDataDictionary { { "tbodyid", "tbody1" }, { "searchmethod", "submit()" }, { "pagesize", Model.pagerowcount } }) - 출석처리 + 출석처리 결석처리 미입력처리 + 엑셀 다운로드
@@ -65,12 +68,13 @@ - + + @@ -81,19 +85,12 @@ - @if (d.cshape == 2) - { - - } - else - { - - } + - - @if (d.cshape == 2 ) + + @if (d.cshape == 2) { if (d.iscomplete != 1) { @@ -108,6 +105,7 @@ { } + @if (!ViewBag.IsSubAdmin96) { @@ -136,21 +134,21 @@ } -@section scriptsHeader{ - @Html.Partial("./Partial/FileScript") + @section scriptsHeader{ + @Html.Partial("./Partial/FileScript") @Html.Partial("./Partial/ScriptDate") @Html.Partial("./Partial/ScdScript") } -@section scripts{ + @section scripts{ } diff --git a/Dao/MyBatis/Maps/Lect.xml b/Dao/MyBatis/Maps/Lect.xml index c52cb64..92a0aed 100644 --- a/Dao/MyBatis/Maps/Lect.xml +++ b/Dao/MyBatis/Maps/Lect.xml @@ -734,7 +734,7 @@ select a.* from ( select a.lectno,c.cmino,b.cmno,b.cshape,b.cname,b2.isoffabs - ,a.isrebate,p.payoktime,a.iscomplete + ,a.isrebate,p.payoktime,a.iscomplete, a.stime ,a.sdate,a.edate ,a.cmisno ,d.sseq,f.cname studyplacename @@ -756,6 +756,10 @@ and date_format(a.edate,'%Y%m%d') = date_format(#edate#,'%Y%m%d')and b.cname like concat('%',#cname#,'%')and d.studyplace = #studyplace# + + and g.istatus is null + and g.istatus = 2 + and e.username like concat('%',#searchtext#,'%') and e.userid like concat('%',#searchtext#,'%') diff --git a/FO/Views/My/LectureOn.cshtml b/FO/Views/My/LectureOn.cshtml index e30a135..2f781a5 100644 --- a/FO/Views/My/LectureOn.cshtml +++ b/FO/Views/My/LectureOn.cshtml @@ -81,15 +81,18 @@
- @* *@ + @* *@
+ +
+ +
@@ -138,8 +141,8 @@ } else if (cshape == 2) { - strTmp = "
교육종료일(수료일자) 변경 "; - } + strTmp = "
교육종료일(집체교육 참석일) 변경 "; + } strTmp += ""; @*strTmp = strTmp + "";*@ divTitle.append(strTmp); @@ -176,15 +179,24 @@ ++displayCnt; if (d.quota != 0) { if (d.remainPeople <= 0) { + if (cshape == 2) { + li.append("


"); + } pData.html(""); } else { if (d.isselected == 1) { + if (cshape == 2) { + li.append("


"); + } //spanApplyClass.text("수강신청"); //aApplyClass.append(spanApplyClass); pData.html(""); } else { + if (cshape == 2) { + li.append("


"); + } //spanApplyClass.text("수강신청"); //aApplyClass.append(spanApplyClass); pData.html(""); diff --git a/FO/Views/Shared/_LayoutMy.cshtml b/FO/Views/Shared/_LayoutMy.cshtml index 03a052b..78b91a6 100644 --- a/FO/Views/Shared/_LayoutMy.cshtml +++ b/FO/Views/Shared/_LayoutMy.cshtml @@ -7,7 +7,7 @@ @RenderSection("styles", required: false) @Html.Partial("./Partial/JS") @RenderSection("scriptsHeader", required: false) - + @{ diff --git a/FO/css/mypage.css b/FO/css/mypage.css index 096cfcd..49d35a7 100644 --- a/FO/css/mypage.css +++ b/FO/css/mypage.css @@ -415,7 +415,7 @@ .mpgPop {position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.7); z-index:100;} .mpgPop > div {display:table; width:100%; height:100%;} .mpgPop > div > div {display:table-cell; width:100%; vertical-align:middle;} -.mpgPopWrap {width:100%;max-width:500px; max-height:100%; margin:0 auto; background:#fff; position:relative;} +.mpgPopWrap {width: 100%;height: 100%;max-width: 600px;max-height: 450px;margin: 0 auto;background: #fff;position: relative;} .mpgPopWrap.wdth430 {max-width:430px;} .mpgPopWrap.wdth580 {max-width:580px;} .mpgPopWrap.wdth650 {max-width:650px;} diff --git a/FO/js/mypage.js b/FO/js/mypage.js index 316e217..b42628c 100644 --- a/FO/js/mypage.js +++ b/FO/js/mypage.js @@ -57,13 +57,13 @@ $(document).ready(function () { $('#mpgtmbBtn').removeClass('on'); $('html, body').removeClass('lock'); }); - //2022083 교육유형별로 처리 $(".gocroom").on("click", function () { var href = $(this).data("href") || this.href; var complete = $(this).data("complete"); + var cshape = $(this).data("cshape"); - if (complete != undefined && complete == 0) + if (complete != undefined && complete == 0 && cshape==2) { /* msg("해당 과정은 미 수료 상태 입니다.
" + @@ -74,18 +74,26 @@ $(document).ready(function () { */ $("#bglayer, #layermessage").show(); - let msg = '
해당 과정은 미수료 상태입니다.
교육일정변경 메뉴에서 교육일정을 변경 해주세요.

' + /*let msg = '
해당 과정은 미수료 상태입니다.
교육일정변경 메뉴에서 교육일정을 변경 해주세요.

' msg += '단, 수료처리일이 지나지 않은 분들은 잠시 기다려주시기 바랍니다.
' msg += '수료처리일 : 교육종료일 다음날 오후 3시 이후 (평일기준)

※ 미 수료 상태로 교육시작일 이후 1년 경과 시 교육이 취소되어 일정변경이 불가합니다.' msg += '
※ 확인 클릭 시 교육일정변경 메뉴로 이동합니다.
' msg += '
취소' - msg += '확인
' + msg += '확인
'*/ + let msg = '
해당 과정은 교육종료일이 지난 과정입니다.


' + msg += '- 수료조건을 만족한 경우 : 수료처리 중이므로 잠시 기다려 주시기 바랍니다.
' + msg += '※ 매주 월요일 마다 수료처리가 진행됩니다. (평일기준)

' + msg += '- 수료조건을 만족하지 않은 경우 : 교육일정변경 메뉴에서 일정변경 후 수강해 주세요.

' + msg += '※ 미 수료 상태로 교육시작일 이후 1년 경과 시 교육이 취소되어 일정변경이 불가합니다.

' + //msg += '확인
' + msg += '확인' + $("#layermessage").html(msg) return false; } if (href != undefined && href != null && href.toLowerCase().indexOf("croom/index?croomlectno=") != -1) { - var cshape = $(this).data("cshape"); + if (cshape != undefined && cshape == 1) { msg("해당 과정은 교육장에 직접 오셔서 수강하는 과정 입니다.
" + "교육기간을 확인하시고 시작일에 해당 교육장으로 입교 부탁 드립니다."); diff --git a/Model/CM.cs b/Model/CM.cs index 83ef8c5..885bbbc 100644 --- a/Model/CM.cs +++ b/Model/CM.cs @@ -1117,6 +1117,10 @@ namespace NP.Model public int cut { get; set; } public DateTime payoktime { get; set; } public DateTime? stime { get; set; } + public String stimestr + { + get { return stime != null && istatus == 2? Convert.ToDateTime(stime).ToShortDateString() : "-"; } + } public DateTime? etime { get; set; } public DateTime? sdate { get; set; } public String sdateymd @@ -1324,6 +1328,7 @@ namespace NP.Model public int statecode { get; set; } public DateTime paycdt { get; set; } public int sseq { get; set; } + public String sseqstr { get { return cshape == 2 ? sseq.ToString() : "-"; } } public String sseqname { get
No운영기수운영기수 교육장 과정명 교육생(ID) 교육시작일 교육종료일출석일 집합교육출석여부 수료여부
@d.rnorvt@d.sseq-@d.sseqstr @d.studyplacename @d.cname @d.usernameid@((d.cshape == 0 && d.isrebate == 0 ? d.payoktime : d.sdate).Value.ToShortDateString())@d.sdatestr @d.edate.Value.ToShortDateString()@d.stimestr @d.istatusname