From ebcbc0ac7fb4228c48f16cc41a03fa71120a32c8 Mon Sep 17 00:00:00 2001 From: ksjihd163 Date: Fri, 8 Jul 2022 00:43:25 +0000 Subject: [PATCH] --- BO/Controllers/ccController.cs | 18 ++++++------- BO/Views/MM/popups.cshtml | 2 +- BO/Views/cc/homer2.cshtml | 2 +- BO/Views/cc/homes.cshtml | 32 +++++++++++++----------- BO/Views/cc/roomr.cshtml | 8 +++++- BO/Views/cc/rooms.cshtml | 2 +- BO/Views/cm/cms.cshtml | 2 +- BO/Views/data/learns6.cshtml | 3 ++- Base/Controller/ACommonCM.cs | 2 +- Base/Controller/ACommonCRoom.cs | 1 + Base/Controller/BasePartialController.cs | 2 +- Dao/MyBatis/Maps/Grade.xml | 4 +-- Dao/MyBatis/Maps/board.xml | 1 + FO/Controllers/CRoomController.cs | 2 +- FO/Views/CRoom/Boards.cshtml | 10 ++++---- FO/Views/Course/SmartSearch.cshtml | 3 ++- FO/Views/Home/Popup.cshtml | 2 +- FO/css/dev.css | 7 +++--- 18 files changed, 59 insertions(+), 44 deletions(-) diff --git a/BO/Controllers/ccController.cs b/BO/Controllers/ccController.cs index e2a26b1..832838c 100644 --- a/BO/Controllers/ccController.cs +++ b/BO/Controllers/ccController.cs @@ -10,6 +10,7 @@ namespace NP.BO.Controllers { public class ccController : BOBaseController { + private int jkBoardNo = 13; // // ST :21, LIVE : 13 public ActionResult bms(NP.Model.VMCC vm) { vm.BMs = InitM(); var ht = SetHash(vm); @@ -89,11 +90,8 @@ namespace NP.BO.Controllers } vm.BMs = Dao.Get("board.bms", new System.Collections.Hashtable() { { "asno", vm.stringval }, { "bmposition", 0 }, { "isdefaults", string.IsNullOrEmpty(vm.stringval) ? "0,2" : "3" } }); vm.BMOs = new List() { }; - if (!string.IsNullOrEmpty(vm.stringval2)) - { - vm.BMOs = Dao.Get("board.bmos", GetInt(vm.stringval2)); - } - ht.Add("bmno", "13"); // ST :21, LIVE : 13 + ht.Add("bmno", jkBoardNo.ToString()); // ST :21, LIVE : 13 + vm.BMOs = Dao.Get("board.bmos", 13); //ht.Add("opno", vm.stringval3); //ht.Add("scc", vm.stringval4); vm.Boards = Dao.Get("board.bs", ht); @@ -131,7 +129,10 @@ namespace NP.BO.Controllers ht.Add("bmno", vm.stringval2); ht.Add("opno", vm.stringval3); ht.Add("scc", vm.stringval4); + ht.Add("bmposition", "0"); + vm.Boards = Dao.Get("board.bs", ht); + vm.pagetotalcount = GetCount(vm.Boards.FirstOrDefault()); if (vm.Boards.Count() > 0) { @@ -183,16 +184,13 @@ namespace NP.BO.Controllers { vm.FileList = GetFiles(fgnos.Substring(1)); } - if (vm.Board.isuseopening == 1) - { - vm.BMOs = Dao.Get("board.bmos", vm.Board.bmno); - } vm.BoardCMTs = Dao.Get("board.boardcmts", vm.Board.bno); } else { vm.BMs = Dao.Get("board.bms", new System.Collections.Hashtable() { { "asno", vm.stringval }, { "bmposition", 0 }, { "isdefaults", "0,2,3" } }); } + vm.BMOs = Dao.Get("board.bmos", jkBoardNo); if (vm.Board.pbno != null) { vm.BoardP = Dao.Get("board.get", vm.Board.pbno.Value).First(); @@ -202,6 +200,8 @@ namespace NP.BO.Controllers } } vm.SCUserName = SUserInfo.UserName; + ViewBag.bmno = jkBoardNo; + return View(vm); } diff --git a/BO/Views/MM/popups.cshtml b/BO/Views/MM/popups.cshtml index c43992c..1fd01d9 100644 --- a/BO/Views/MM/popups.cshtml +++ b/BO/Views/MM/popups.cshtml @@ -33,7 +33,7 @@ @Html.Pager((int)Model.pagenum, 10, Model.pagerowcount, Model.pagetotalcount) diff --git a/BO/Views/cc/roomr.cshtml b/BO/Views/cc/roomr.cshtml index c4d8b78..f0124c7 100644 --- a/BO/Views/cc/roomr.cshtml +++ b/BO/Views/cc/roomr.cshtml @@ -71,10 +71,16 @@ else
@Html.TextBoxFor(m => m.Board.subject, new { @class = "form-control ff", @maxlength = "100" })
+ @if (Model.Board.bno == Model.Board.issecr) + { + + } + else { + } @if (Model.Board.pbno == null) { - + }
diff --git a/BO/Views/cc/rooms.cshtml b/BO/Views/cc/rooms.cshtml index 27a0e6d..aaba210 100644 --- a/BO/Views/cc/rooms.cshtml +++ b/BO/Views/cc/rooms.cshtml @@ -66,7 +66,7 @@ @item.bmname @Html.Raw(item.pbno == null ? "" : "")@Html.Raw(item.istop == 1 ? "" : "")@(item.subject)@(item.ccount > 0 ? string.Format("({0})", item.ccount.ToString("#,0")) : "")@Html.Raw(item.issecr == 1 ? "" : "") @item.cdtymd - @item.cnoname + @(string.Format("{0}({1})",item.cnoname,item.cnoid)) @item.tyear / @item.tseq } diff --git a/BO/Views/cm/cms.cshtml b/BO/Views/cm/cms.cshtml index 29209e5..11d4992 100644 --- a/BO/Views/cm/cms.cshtml +++ b/BO/Views/cm/cms.cshtml @@ -468,7 +468,7 @@ } }, 50); } - } else if (capResult.code == 1) { + } else if (capResult.code == -1) { msg("회차가 1개라도 생성되어 있어야 강좌를 생성하실 수 있습니다."); $("#thisbox").hide(); } diff --git a/BO/Views/data/learns6.cshtml b/BO/Views/data/learns6.cshtml index 640b620..904014a 100644 --- a/BO/Views/data/learns6.cshtml +++ b/BO/Views/data/learns6.cshtml @@ -30,7 +30,7 @@
@Html.Partial("./Partial/pagerow", new ViewDataDictionary { { "tbodyid", "tbody1" }, { "searchmethod", "submit()" }, { "pagesize", Model.pagerowcount } }) - 엑셀다운로드 + 엑셀다운로드
@@ -110,6 +110,7 @@ @Html.HiddenFor(m => m.tabidx) @Html.Pager((int)Model.pagenum, 10, Model.pagerowcount, Model.pagetotalcount) +@Html.Partial("./Partial/ExcelCommentBox") - + @Html.Raw(Server.UrlDecode(Model.pcontents ?? "")) \ No newline at end of file diff --git a/FO/css/dev.css b/FO/css/dev.css index 8c49b85..0c306cd 100644 --- a/FO/css/dev.css +++ b/FO/css/dev.css @@ -10,11 +10,12 @@ /*.req:after{color: red;content:'*'}*/ @media (max-width:1000px) { .popupitem{ - top: 10% !important; left: 10% !important; max-width: 80% !important; max-height: 80% !important} + top: 10% !important; left: 10% !important; max-width: 80% !important; /*max-height: 80% !important*/} .popupitem .inner .iframebox{position:absolute;top:50px;right:10px;bottom: 50px;left: 10px;} - .popupitem .inner .iframebox iframe{width: 100% !important; height: 100% !important;} + .popupitem .inner .iframebox iframe{width: 100% !important; /*height: 100% !important;*/} .iframeclosebox{position: absolute; bottom: 10px; text-align: center; left: 10px; right: 10px;} -} + #layermessage, #layermessage2 {overflow-y:auto; max-height:60%} + } #bglayer, #bglayer2, #findlayerbglayer { background-color: #000;