From 6708f26f2137fd69f19e1de3374ce00d2b1c425b Mon Sep 17 00:00:00 2001 From: zdrcft Date: Wed, 8 Feb 2023 04:16:37 +0000 Subject: [PATCH] =?UTF-8?q?<=EA=B8=B0=EB=8A=A5=EA=B0=9C=EC=84=A0>=201.=20P?= =?UTF-8?q?MS=20NO=20:=20{7390}=202.=20=EC=A7=91=ED=95=A9=EA=B5=90?= =?UTF-8?q?=EC=9C=A1=20=EC=B6=9C=EC=84=9D=20=EB=A9=94=EB=89=B4=20=EB=82=B4?= =?UTF-8?q?=20=EC=97=91=EC=85=80=EB=8B=A4=EC=9A=B4=EB=A1=9C=EB=93=9C=20?= =?UTF-8?q?=EC=8B=9C=20=EC=82=AC=EC=9C=A0=EC=9E=85=EB=A0=A5=20=EC=B0=BD=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BO/Controllers/croomController.cs | 8 +++++++- BO/Views/croom/attscds.cshtml | 19 ++++++++++--------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/BO/Controllers/croomController.cs b/BO/Controllers/croomController.cs index 0b2d80b..5648e51 100644 --- a/BO/Controllers/croomController.cs +++ b/BO/Controllers/croomController.cs @@ -512,7 +512,7 @@ namespace NP.BO.Controllers ht.Add("cname", vm.stringval2); ht.Add("studyplace", vm.stringval3); ht.Add("stringval17", vm.stringval17); - if (vm.intval2 == 1) + if (vm.isexceldown == 1) { vm.Lects = Dao.Get("lect.lectinnings.forattscd2", ht); //return ExportExcel( @@ -520,7 +520,13 @@ namespace NP.BO.Controllers // new String[] { "rnorvt", "sseqstr", "studyplacename", "cname", "usernameid", "sdatestr", "edatestr", "stimestr", "istatusname", "iscompletename" }, // vm.Lects, // "attscds_" + DateTime.Now.Year + DateTime.Now.Month + DateTime.Now.Day); + if (vm.excellog != null) + { + vm.excellog.userno = SUserInfo.UserNo; + vm.excellog.userip = GetUserIP(); + Dao.Save("excellog.in", vm.excellog); + } return ExportExcel( new String[] { "No", "교육장","아이디", "교육생이름", "교육생 전화번호", "이메일", "과정명", "기술인분류", "교육목적", "등급", "직무분야", "전문분야", "교육시작일", "교육종료일", "출석일", "집합교육출석여부", "수료여부" }, new String[] { "rnorvt", "studyplacename", "userid", "username", "mobile", "email", "cname", "zstring0", "zstring1", "zstring2", "zstring4", "zstring5", "sdatestr", "edatestr", "zstring3", "istatusname", "iscompletename" }, diff --git a/BO/Views/croom/attscds.cshtml b/BO/Views/croom/attscds.cshtml index 725c660..6b519dc 100644 --- a/BO/Views/croom/attscds.cshtml +++ b/BO/Views/croom/attscds.cshtml @@ -54,14 +54,14 @@
@Html.HiddenFor(m => m.intval2) - +
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "onchange", "submit()" }, { "name", "stringval17" }, { "selected", Model.stringval17 }, { "valuetext", ":출석여부;0:미입력;2:출석" }, { "style", "vertical-align: middle" } }) @Html.Partial("./Partial/pagerow", new ViewDataDictionary { { "tbodyid", "tbody1" }, { "searchmethod", "submit()" }, { "pagesize", Model.pagerowcount } }) 출석처리 결석처리 미입력처리 - 엑셀 다운로드 + 엑셀 다운로드
@@ -124,6 +124,7 @@ @Html.Pager((int)Model.pagenum, 10, Model.pagerowcount, Model.pagetotalcount) +@Html.Partial("./Partial/ExcelCommentBox")

교육일정변경닫기

    @@ -135,12 +136,12 @@ } - @section scriptsHeader{ - @Html.Partial("./Partial/FileScript") +@section scriptsHeader{ + @Html.Partial("./Partial/FileScript") @Html.Partial("./Partial/ScriptDate") @Html.Partial("./Partial/ScdScript") } - @section scripts{ +@section scripts{ }