From 6207b06b724a9cf6014524dca457e361541d4f98 Mon Sep 17 00:00:00 2001 From: kdh0120 Date: Wed, 18 Nov 2020 08:58:09 +0000 Subject: [PATCH] --- Dao/MyBatis/Maps/Lect.xml | 23 +++++++++++++++++++++++ FO/Controllers/MyController.cs | 18 ++++++++++++++++++ FO/FO.csproj | 1 + FO/Web.config | 1 + Model/CM.cs | 1 + 5 files changed, 44 insertions(+) diff --git a/Dao/MyBatis/Maps/Lect.xml b/Dao/MyBatis/Maps/Lect.xml index 7789514..1907c84 100644 --- a/Dao/MyBatis/Maps/Lect.xml +++ b/Dao/MyBatis/Maps/Lect.xml @@ -1302,6 +1302,29 @@ ,completetime=#completetime# where lectno=#lectno# and iscomplete=1; + diff --git a/FO/Controllers/MyController.cs b/FO/Controllers/MyController.cs index cd1085d..7c048ae 100644 --- a/FO/Controllers/MyController.cs +++ b/FO/Controllers/MyController.cs @@ -411,5 +411,23 @@ namespace NP.FO.Controllers } return View(vm); } + + public ActionResult Document(VMMy vm) + { + ViewBag.reporturl = GetConfig("reporturl"); + if (vm.tabidx == 0) + { + vm.pagerowcount = vm.pagerowcount < 1 ? 10 : vm.pagerowcount; + var ht = SetHash(vm); + ht.Add("userno", SUserInfo.UserNo); + vm.Lects = Dao.Get("lect.lecture.document", ht); + vm.pagetotalcount = GetCount(vm.Lects.FirstOrDefault()); + } + else + { + //여기는 2021년 이전과정 근데 아직 뭔가 안나옴.. + } + return View(vm); + } } } diff --git a/FO/FO.csproj b/FO/FO.csproj index e58000f..6424d1f 100644 --- a/FO/FO.csproj +++ b/FO/FO.csproj @@ -665,6 +665,7 @@ + diff --git a/FO/Web.config b/FO/Web.config index daba1cc..675f104 100644 --- a/FO/Web.config +++ b/FO/Web.config @@ -33,6 +33,7 @@ + diff --git a/Model/CM.cs b/Model/CM.cs index 479e3da..bfaa886 100644 --- a/Model/CM.cs +++ b/Model/CM.cs @@ -1053,6 +1053,7 @@ namespace NP.Model public String cmnos { get; set; } public int ispassat { get; set; } public DateTime? completetime { get; set; } + public String studyplacename { get; set; } } /// /// 자격검정시험