From b91bc92831aa6cba9786fc2f061d7fba966314d2 Mon Sep 17 00:00:00 2001 From: iyak Date: Fri, 4 Apr 2025 07:24:31 +0000 Subject: [PATCH] =?UTF-8?q?6732=20=EB=8B=A4=EC=8B=9C=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FO/Views/My/Index.cshtml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/FO/Views/My/Index.cshtml b/FO/Views/My/Index.cshtml index 76bafd9..1a1cf92 100644 --- a/FO/Views/My/Index.cshtml +++ b/FO/Views/My/Index.cshtml @@ -209,7 +209,6 @@ { string croomLink = string.Format("/CRoom/Index?croomlectno={0}", d.longval); - // 6709. 과제(intval 4)일 경우 링크가 달라야 한다 switch (d.intval) { case 1: @@ -249,6 +248,21 @@ } break; case 4: + // 6709. 과제(intval 4)일 경우 링크가 달라야 한다 + // 기존 쿼리에서는 sdno를 가져올 수 없어서 vm.CRoomLectSdInfo 를 추가함 + // => 쿼리조건 기준은 사용자번호를 기준으로 현재 수강중인 강좌기간내의 과제들을 모두 가져와서 들고 있음 + var lectsdInfo = new NP.Model.CRoomLectSdInfo(); + if (Model.CRoomLectSdInfo != null) + { + lectsdInfo = Model.CRoomLectSdInfo + .Where(x => x.lectno == d.longval) + .SingleOrDefault(); + } + + if (lectsdInfo != null && lectsdInfo.lectno > 0) + { + croomLink = string.Format("/CRoom/EstimationSubject?croomlectno={0}&croomcmno={1}&estno={2}&tabidx=0", d.longval, d.intval7, lectsdInfo.sdno); + }