<기능개선>

1. PMS NO : 5820
2. (주요)작업내용 
(1) 교육장 교육 특정아이디에 노출되도록 설정
This commit is contained in:
jity7777 2022-04-28 07:47:47 +00:00
parent 272e148909
commit 6bcd4d6af1
4 changed files with 27 additions and 8 deletions

View File

@ -29,21 +29,23 @@ namespace NP.FO.Controllers
}
}
vm.ComCodes = GetComCodes("typeman,typeedu,typegrade,typejob");
//HttpWebRequest requestHttp = (HttpWebRequest)HttpWebRequest.Create("http://ynictea.nptc.kr/Content/homeDepth2.htm");
string urlStr = GetConfig("adminurl");
/*
HttpWebRequest requestHttp = (HttpWebRequest)HttpWebRequest.Create(urlStr + "/Content/homeDepth1.htm");
requestHttp.Method = WebRequestMethods.Http.Get;
var resp = requestHttp.GetResponse() as System.Net.HttpWebResponse;
var receiveStream = resp.GetResponseStream();
StreamReader readStream = new System.IO.StreamReader(receiveStream, System.Text.Encoding.UTF8);
ViewBag.depthHtml = (readStream.ReadToEnd());
*/
requestHttp = (HttpWebRequest)HttpWebRequest.Create(urlStr + "/Content/homeDepth2.htm");
HttpWebRequest requestHttp = (HttpWebRequest)HttpWebRequest.Create(urlStr + "/Content/homeDepth2.htm");
requestHttp.Method = WebRequestMethods.Http.Get;
resp = requestHttp.GetResponse() as System.Net.HttpWebResponse;
receiveStream = resp.GetResponseStream();
readStream = new System.IO.StreamReader(receiveStream, System.Text.Encoding.UTF8);
ViewBag.depthHtml += (readStream.ReadToEnd());
var resp = requestHttp.GetResponse() as System.Net.HttpWebResponse;
var receiveStream = resp.GetResponseStream();
StreamReader readStream = new System.IO.StreamReader(receiveStream, System.Text.Encoding.UTF8);
ViewBag.depthHtml = (readStream.ReadToEnd());
ViewBag.POPUPS = GetPOPUP;
ViewBag.POPUPXS = CookieGet("popup", "");

View File

@ -556,7 +556,6 @@
<Content Include="Spring\Daos.xml">
<SubType>Designer</SubType>
</Content>
<Content Include="Views\Home\Index.cshtml" />
<Content Include="Web.config">
<SubType>Designer</SubType>
</Content>

View File

@ -14,7 +14,7 @@
<li>
<select name="stringval2" id="stringval2">
@*<option value="0" @(Model.stringval2 == "0" ? "selected" : "")>온라인교육</option>*@
@*<option value="1" @(Model.stringval2 == "1" ? "selected" : "")>교육장교육</option>*@
<option value="1" @(Model.stringval2 == "1" ? "selected" : "")>교육장교육</option>
<option value="2" @(Model.stringval2 == "2" ? "selected" : "")>온라인교육</option>
</select>
</li>

View File

@ -64,6 +64,24 @@
if (Model.ComCodes != null)
{
<ul class="mainSch">
<li class="msCont">
<em>SKILL</em>
<div class="msSel active" id="msSel1">
<span>교육유형</span>
<div>
<div>
<ul>
@*<li><a href="javascript:schIpt('1', '0', '온라인교육');">온라인교육</a></li>*@
@if ((ViewBag.SSUserNo == 120 ) && (Request.Url.Authority == "www.ynicte.com" || Request.Url.Authority == "ynicte.nptc.kr"))
{
<li><a href="javascript:schIpt('1', '1', '교육장교육');">교육장교육</a></li>
}
<li><a href="javascript:schIpt('1', '2', '온라인교육');">온라인교육</a></li>
</ul>
</div>
</div>
</div>
</li>
@MvcHtmlString.Create(ViewBag.depthHtml)
</ul>
}