From 9777dea441db83551ed78b7279d8f05e94d6756c Mon Sep 17 00:00:00 2001 From: swpark Date: Tue, 28 Dec 2021 01:29:13 +0000 Subject: [PATCH] =?UTF-8?q?<=EC=88=98=EC=A0=95=EC=82=AC=ED=95=AD>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 활동이력 탭에서 '검색' 시 데이터 로드 할 수 있도록 변경 (구글시트 602) 1) 교욱운영>성적처리>종합>진도율클릭 2) 교육운영>성적처리>출석>상세이력조회 3) 교육운영>성적처리(전체)>종합>진도율클릭 2. 개인별 출결이력조회에서 활동이력 기본값 제거 및 오늘 날짜로 설정 # 커밋 파일 BO/Controllers/croomController.cs # 테스트 결과 - 이상없음 # 특이사항 및 이슈사항 - 이상없음 --- BO/Controllers/croomController.cs | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/BO/Controllers/croomController.cs b/BO/Controllers/croomController.cs index 7c06c5a..e8595bd 100644 --- a/BO/Controllers/croomController.cs +++ b/BO/Controllers/croomController.cs @@ -647,6 +647,7 @@ namespace NP.BO.Controllers vm.tabidx = 4; } int pcnt = vm.pagerowcount == 0 ? 100 : vm.pagerowcount; + var ht = SetHash(vm); ht.Add("edate", vm.stringval); ht.Add("cshape", vm.stringval2); @@ -671,7 +672,19 @@ namespace NP.BO.Controllers } ht["mobile"] = vm.stringval11; } - ht.Add("ustatus", 1); + + // [메일 이슈 - 박상완] 성적처리(전체)화면에서 기본값 제거 : 클릭시 전체현황 조회되는거 없애주세요. 클릭해야 검색할수 있도록 + // 검색이 모두 빈 값이면 상태 param 0 으로 처리. + if (String.IsNullOrEmpty(vm.stringval) && String.IsNullOrEmpty(vm.stringval2) && String.IsNullOrEmpty(vm.stringval3) && String.IsNullOrEmpty(vm.stringval4) + && String.IsNullOrEmpty(vm.stringval5) && String.IsNullOrEmpty(vm.stringval8) && String.IsNullOrEmpty(vm.stringval9) + && String.IsNullOrEmpty(vm.stringval10) && String.IsNullOrEmpty(vm.stringval11)) + { + ht.Add("ustatus", 0); + } else + { + ht.Add("ustatus", 1); + } + if (!string.IsNullOrEmpty(vm.stringval6)) { ht.Add(vm.stringval6, vm.stringval7); @@ -679,6 +692,7 @@ namespace NP.BO.Controllers switch (vm.tabidx) { case 0: + //ht.Add("ustatus", 1); ht.Add("orderby", "ua.asname,ua.asno,u.username"); vm.Lects = Dao.Get("grade.lectgrades", ht); @@ -747,7 +761,14 @@ namespace NP.BO.Controllers { vm.Lect = Dao.Get("lect.lects", new System.Collections.Hashtable() { { "lectno", vm.longval } }).First(); vm.LectInningPages = Dao.Get("lect.lectinningpages", new System.Collections.Hashtable() { { "lectno", vm.Lect.lectno },{"isscd", 0} }); - vm.PageLogs = Dao.Get("lect.pagelogs", new System.Collections.Hashtable() { { "start", vm.Lect.sstime }, { "end", vm.Lect.setime.Value.ToString("yyyy-MM-dd 23:59:59") }, { "userno", vm.Lect.userno }, { "logsite", 1 } }); + // [이슈_602 / 박상완] 활동이력 탭에서 '검색' 시 데이터 로드 할 수 있도록 변경 + // 파라미터 userno 를 -1으로 변경 + vm.PageLogs = Dao.Get("lect.pagelogs", new System.Collections.Hashtable() { { "start", vm.Lect.sstime }, { "end", vm.Lect.setime.Value.ToString("yyyy-MM-dd 23:59:59") }, { "userno", -1 }, { "logsite", 1 } }); + + // [이슈_602 / 박상완] YYYY-MM-DD 로 검색하는 부분을 조회일 하루로 기본값 부탁드립니다. 예) 오늘 조회 시 : 2021-12-27 ~ 2021-12-27 + vm.Lect.sstime = DateTime.Now; // (검색) 시작일 - 현재시간 + vm.Lect.setime = DateTime.Now.AddHours(1); // (검색) 종료일 - 현재시간 + 1시간 + return View(vm); } public ActionResult pay(VMCRoom vm)