관리자(usertype:95) - 권한수정(하드코딩)
This commit is contained in:
parent
b0ed90d56c
commit
1f5167fc50
|
|
@ -24,6 +24,7 @@ namespace NP.BO.Controllers
|
|||
ViewBag.issiteadmin = SUserInfo.IsSiteAdmin;
|
||||
ViewBag.ckmainlmenu = CookieGet("leftmenutoggle", "0");
|
||||
ViewBag.Menus = GetMENUS.Where(w => w.usertype == base.SUserInfo.UserType).ToList();
|
||||
ViewBag.IsSubAdmin96 = SUserInfo.IsSubAdmin96;
|
||||
|
||||
//로그인을 위해서 다 https로 돌림
|
||||
if (!Request.IsSecureConnection && GetConfig("usessl") == "Y")
|
||||
|
|
|
|||
|
|
@ -26,7 +26,10 @@
|
|||
<li style="width:65%; text-align:left;" onclick="javascript: bind(@a.usertype,'@a.authname', this);">
|
||||
<input type="text" class="authname" data-org="@a.authname" value="@a.authname" style="text-align: center; width:50%; height: 25px; line-height: 25px; border: 1px solid #ccc; margin-top: 3px;" />
|
||||
<a href="#" class="btn btn-primary btn-xs" onclick="saveauthname(@a.usertype,this);" style="margin-top: -4px; @(a.usertype > 91 ? "":"display:none;")">수정</a>
|
||||
<a href="#" class="btn btn-danger btn-xs" onclick="deluserauth(@a.usertype,'@a.authname');" style=" margin-top: -4px; @(a.usertype > 91 ? "":"display:none;")">삭제</a>
|
||||
@if (false)
|
||||
{
|
||||
<a href="#" class="btn btn-danger btn-xs" onclick="deluserauth(@a.usertype,'@a.authname');" style=" margin-top: -4px; @(a.usertype > 91 ? "" : "display:none;")">삭제</a>
|
||||
}
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -2,13 +2,16 @@
|
|||
<div>
|
||||
<ul class="pagination pagination-md" style="margin: 0;">
|
||||
<li class="@(Model.tabidx == 0 ? "active" : "")" id="tab1"><a href="#" data-toggle="tab">기본정보</a></li>
|
||||
<li class="@(Model.tabidx == 1 ? "active" : "")"><a href="#" onclick="@(Model.CM.cmno < 1 ? "gotab()":"gotab(1)");" data-toggle="tab">회차설정</a></li>
|
||||
<li class="@(Model.tabidx == 1 ? "active" : "")"><a href="#" onclick="@(Model.CM.cmno < 1 ? "gotab()" : "gotab(1)");" data-toggle="tab">회차설정</a></li>
|
||||
@if (Model.CM.ismaster == 0 && Model.CM.cshape == 2)
|
||||
{
|
||||
<li class="@(Model.tabidx == 2 ? "active" : "")"><a href="#" onclick="@(Model.CM.cmno < 1 ? "gotab()" : "gotab(2)");" data-toggle="tab">교육일정</a></li>
|
||||
}
|
||||
<li class="@(Model.tabidx == 3 ? "active" : "")"><a href="#" onclick="@(Model.CM.cmno < 1 ? "gotab()":"gotab(3)");" data-toggle="tab">평가설정</a></li>
|
||||
<li class="@(Model.tabidx == 4 ? "active" : "")"><a href="#" onclick="@(Model.CM.cmno < 1 ? "gotab()":"gotab(4)");" data-toggle="tab">메뉴설정</a></li>
|
||||
@if (!ViewBag.IsSubAdmin96)
|
||||
{
|
||||
<li class="@(Model.tabidx == 3 ? "active" : "")"><a href="#" onclick="@(Model.CM.cmno < 1 ? "gotab()":"gotab(3)");" data-toggle="tab">평가설정</a></li>
|
||||
<li class="@(Model.tabidx == 4 ? "active" : "")"><a href="#" onclick="@(Model.CM.cmno < 1 ? "gotab()":"gotab(4)");" data-toggle="tab">메뉴설정</a></li>
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="row mgclear">
|
||||
|
|
@ -39,14 +42,14 @@
|
|||
</div>
|
||||
</div>
|
||||
@*<div id="keyword" style="@(Model.CM.pcgno==Model.CGs.Where(w=>w.cgcode==ViewBag.OffCode).Select(w=>w.cgno).FirstOrDefault() ? "":"display:none;")">
|
||||
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
||||
<label class="col-sm-4 col-md-2 control-label">키워드</label>
|
||||
<div class="col-sm-8 col-md-10">
|
||||
@Html.TextBoxFor(m => m.CM.kname, new { @class = "form-control disp-init ff", @style = "width: 60%", @maxlength = "100" })<br />
|
||||
<label style="color: red;">* 강좌를 표현할 수 있는 단어를 입력해주세요. 홈페이지 홈화면 오프라인 강좌에 출력됩니다. </label>
|
||||
</div>
|
||||
</div>
|
||||
</div>*@
|
||||
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
||||
<label class="col-sm-4 col-md-2 control-label">키워드</label>
|
||||
<div class="col-sm-8 col-md-10">
|
||||
@Html.TextBoxFor(m => m.CM.kname, new { @class = "form-control disp-init ff", @style = "width: 60%", @maxlength = "100" })<br />
|
||||
<label style="color: red;">* 강좌를 표현할 수 있는 단어를 입력해주세요. 홈페이지 홈화면 오프라인 강좌에 출력됩니다. </label>
|
||||
</div>
|
||||
</div>
|
||||
</div>*@
|
||||
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
||||
<label class="col-sm-4 col-md-2 control-label @(Model.CM.ismaster == 0 ? "req" : "")">신청기간</label>
|
||||
@{
|
||||
|
|
@ -60,7 +63,7 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
<input type="checkbox" id="alldays" @(isAllDays ? "checked" : string.Empty) disabled/><span>상시</span>
|
||||
<input type="checkbox" id="alldays" @(isAllDays ? "checked" : string.Empty) disabled /><span>상시</span>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -87,20 +90,20 @@
|
|||
<div class="col-sm-8 col-md-10">@Html.TextBoxFor(m => m.CM.cname, new { @class = "form-control disp-init ff", @style = "width: 50%", @maxlength = "100", @placeholder = Model.viewidxname + "명을 입력하세요." })</div>
|
||||
</div>
|
||||
@*<div id="keyword" style=" @(Model.CM.pcgno==Model.CGs.Where(w=>w.cgcode==ViewBag.OffCode).Select(w=>w.cgno).FirstOrDefault() ? "":"display:none;")">
|
||||
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
||||
<label class="col-sm-4 col-md-2 control-label">키워드</label>
|
||||
<div class="col-sm-8 col-md-10">
|
||||
@Html.TextBoxFor(m => m.CM.kname, new { @class = "form-control disp-init ff", @style = "width: 60%", @maxlength = "100" })<br />
|
||||
<label style="color: red;">* 과정을 표현할 수 있는 단어를 입력해주세요. 홈페이지 홈화면 오프라인 강좌에 출력됩니다. </label>
|
||||
</div>
|
||||
</div>
|
||||
</div>*@
|
||||
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
||||
<label class="col-sm-4 col-md-2 control-label">키워드</label>
|
||||
<div class="col-sm-8 col-md-10">
|
||||
@Html.TextBoxFor(m => m.CM.kname, new { @class = "form-control disp-init ff", @style = "width: 60%", @maxlength = "100" })<br />
|
||||
<label style="color: red;">* 과정을 표현할 수 있는 단어를 입력해주세요. 홈페이지 홈화면 오프라인 강좌에 출력됩니다. </label>
|
||||
</div>
|
||||
</div>
|
||||
</div>*@
|
||||
}
|
||||
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
||||
<label class="col-sm-4 col-md-2 control-label req">교육유형</label>
|
||||
<div class="col-sm-8 col-md-10">@Html.Partial("./Partial/Radio", Model.CM.cshape, new ViewDataDictionary() { { "valuetext", "0:온라인;1:교육장;2:온라인 혼합" }, { "checked", Model.CM.cshape }, { "name", "CM.cshape" } })</div>
|
||||
</div>
|
||||
<div class="line line-dashed line-lg pull-in isaccommodation"></div><div class="form-group isaccommodation" style="display:none" >
|
||||
<div class="line line-dashed line-lg pull-in isaccommodation"></div><div class="form-group isaccommodation" style="display:none">
|
||||
<label class="col-sm-4 col-md-2 control-label req">합숙여부</label>
|
||||
<div class="col-sm-8 col-md-10">@Html.Partial("./Partial/Radio", Model.CM.isaccommodation, new ViewDataDictionary() { { "valuetext", "1:예;0:아니요" }, { "checked", Model.CM.isaccommodation }, { "name", "CM.isaccommodation" } })</div>
|
||||
</div>
|
||||
|
|
@ -281,7 +284,7 @@
|
|||
@Html.Partial("./Partial/FileScript")
|
||||
}
|
||||
@section scripts{
|
||||
<script>
|
||||
<script>
|
||||
var cmboxtmno = 0;
|
||||
var cmpre = 0;
|
||||
var cmboxnotcmno = @Model.CM.cmno;
|
||||
|
|
@ -362,7 +365,7 @@
|
|||
if ('@(Model.CM.ismaster)' == '0') {
|
||||
$("#pcgno,#CM_cgno").hide();
|
||||
}
|
||||
|
||||
|
||||
if ($("input[name='CM.cshape']:checked").val() != '0') {
|
||||
$(".isaccommodation").show();
|
||||
}
|
||||
|
|
@ -414,7 +417,7 @@
|
|||
}
|
||||
else {
|
||||
$("#spnaccommofee").show();
|
||||
}
|
||||
}
|
||||
});
|
||||
loadlegal($("#pcgno").val());
|
||||
|
||||
|
|
@ -438,7 +441,7 @@
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
function loadlegal(cgno) {
|
||||
capp("/acommon/cgget", { cgno: cgno }, "renderlegal");
|
||||
|
|
@ -531,5 +534,5 @@
|
|||
}
|
||||
}, t);
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,11 @@
|
|||
{
|
||||
<li class=""><a href="#" onclick="gotab(2);" data-toggle="tab">교육일정</a></li>
|
||||
}
|
||||
<li class=""><a href="#" onclick="gotab(3);" data-toggle="tab">평가설정</a></li>
|
||||
<li class=""><a href="#" onclick="gotab(4);" data-toggle="tab">메뉴설정</a></li>
|
||||
@if (!ViewBag.IsSubAdmin96)
|
||||
{
|
||||
<li class=""><a href="#" onclick="gotab(3);" data-toggle="tab">평가설정</a></li>
|
||||
<li class=""><a href="#" onclick="gotab(4);" data-toggle="tab">메뉴설정</a></li>
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
<form id="mform1" method="post" class="form-horizontal">
|
||||
|
|
|
|||
|
|
@ -173,23 +173,33 @@
|
|||
{
|
||||
foreach (var item in Model.CMs)
|
||||
{
|
||||
<tr>
|
||||
@*@if (Model.viewidx == 0)
|
||||
{
|
||||
<td><input type="checkbox" class="autocheck" value="@item.cmno" /></td>
|
||||
}*@
|
||||
<td>@item.rnorvt</td>
|
||||
@*<td>@Html.Raw(Model.addstringval.Contains("," + item.cmno + ",") ? "" : string.Format("<input type=\"checkbox\" class=\"autocheck\" value=\"{0}\" />", item.cmno))</td>*@
|
||||
<td>@item.cmno</td>
|
||||
<td>@item.tmname</td>
|
||||
<td>@item.pcgname</td>
|
||||
<td>@item.cgname</td>
|
||||
<td>@item.cshapename</td>
|
||||
<td class="link cname"><a href="#" onclick="reg(@item.cmno)">@item.cname (@item.classno)</a></td>
|
||||
<td>@item.quotastr</td>
|
||||
<td class="link text-center"><a href="#" onclick="golect(@item.cmno)">@Model.Datas.Where(w => w.intval == item.cmno).Select(w => w.intval2).FirstOrDefault()</a></td>
|
||||
<td class="link text-center"><a href="#" onclick="copycm(@item.cmno, '@item.cname', @item.pcgno, @item.cgno, @item.pcmno, this)">[복제]</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@*@if (Model.viewidx == 0)
|
||||
{
|
||||
<td><input type="checkbox" class="autocheck" value="@item.cmno" /></td>
|
||||
}*@
|
||||
<td>@item.rnorvt</td>
|
||||
@*<td>@Html.Raw(Model.addstringval.Contains("," + item.cmno + ",") ? "" : string.Format("<input type=\"checkbox\" class=\"autocheck\" value=\"{0}\" />", item.cmno))</td>*@
|
||||
<td>@item.cmno</td>
|
||||
<td>@item.tmname</td>
|
||||
<td>@item.pcgname</td>
|
||||
<td>@item.cgname</td>
|
||||
<td>@item.cshapename</td>
|
||||
@if (!ViewBag.IsSubAdmin96)
|
||||
{
|
||||
<td class="link cname"><a href="#" onclick="reg(@item.cmno)">@item.cname (@item.classno)</a></td>
|
||||
<td>@item.quotastr</td>
|
||||
<td class="link text-center"><a href="#" onclick="golect(@item.cmno)">@Model.Datas.Where(w => w.intval == item.cmno).Select(w => w.intval2).FirstOrDefault()</a></td>
|
||||
<td class="link text-center"><a href="#" onclick="copycm(@item.cmno, '@item.cname', @item.pcgno, @item.cgno, @item.pcmno, this)">[복제]</a></td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td class="link cname">@item.cname (@item.classno)</td>
|
||||
<td>@item.quotastr</td>
|
||||
<td class="link text-center">@Model.Datas.Where(w => w.intval == item.cmno).Select(w => w.intval2).FirstOrDefault()</td>
|
||||
<td class="link text-center">[복제]</td>
|
||||
}
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -16,9 +16,12 @@
|
|||
<div>
|
||||
<ul class="pagination pagination-md" style="margin: 0;">
|
||||
<li class="active"><a href="#" data-toggle="tab">학습콘텐츠</a></li>
|
||||
<li class=""><a href="#" onclick="gotab(0);" data-toggle="tab">그룹코드관리</a></li>
|
||||
<li class=""><a href="#" onclick="gotab(2);" data-toggle="tab">문제</a></li>
|
||||
<li class=""><a href="#" onclick="gotab(3);" data-toggle="tab">설문지</a></li>
|
||||
@if (!ViewBag.IsSubAdmin96)
|
||||
{
|
||||
<li class=""><a href="#" onclick="gotab(0);" data-toggle="tab">그룹코드관리</a></li>
|
||||
<li class=""><a href="#" onclick="gotab(2);" data-toggle="tab">문제</a></li>
|
||||
<li class=""><a href="#" onclick="gotab(3);" data-toggle="tab">설문지</a></li>
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
<br />
|
||||
|
|
|
|||
|
|
@ -16,9 +16,12 @@
|
|||
<div>
|
||||
<ul class="pagination pagination-md" style="margin: 0;">
|
||||
<li class="active"><a href="#" data-toggle="tab">학습콘텐츠</a></li>
|
||||
<li class=""><a href="#" onclick="gotab(0);" data-toggle="tab">그룹코드관리</a></li>
|
||||
<li class=""><a href="#" onclick="gotab(2);" data-toggle="tab">문제</a></li>
|
||||
<li class=""><a href="#" onclick="gotab(3);" data-toggle="tab">설문지</a></li>
|
||||
@if (!ViewBag.IsSubAdmin96)
|
||||
{
|
||||
<li class=""><a href="#" onclick="gotab(0);" data-toggle="tab">그룹코드관리</a></li>
|
||||
<li class=""><a href="#" onclick="gotab(2);" data-toggle="tab">문제</a></li>
|
||||
<li class=""><a href="#" onclick="gotab(3);" data-toggle="tab">설문지</a></li>
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
<br />
|
||||
|
|
@ -74,12 +77,19 @@
|
|||
@foreach (var item in Model.CTs)
|
||||
{
|
||||
<tr>
|
||||
<td>@Html.Raw(Model.addstringval.Contains("," + item.ctno + ",") ? "":string.Format("<input type=\"checkbox\" class=\"autocheck\" value=\"{0}\" />", item.ctno))</td>
|
||||
<td>@Html.Raw(Model.addstringval.Contains("," + item.ctno + ",") ? "" : string.Format("<input type=\"checkbox\" class=\"autocheck\" value=\"{0}\" />", item.ctno))</td>
|
||||
<td>@item.rnorvt (@item.ctno)</td>
|
||||
<td>@item.ccode</td>
|
||||
<td class="text-left">@item.cname</td>
|
||||
<td>@item.ctypename</td>
|
||||
<td class="link" style="max-width: 300px; overflow: hidden;"><a class="link" href="#" onclick="reg(@item.ctno);" style="white-space: nowrap; max-width: 300px; overflow: hidden;">@item.ctname</a></td>
|
||||
@if (!ViewBag.IsSubAdmin96)
|
||||
{
|
||||
<td class="link" style="max-width: 300px; overflow: hidden;"><a class="link" href="#" onclick="reg(@item.ctno);" style="white-space: nowrap; max-width: 300px; overflow: hidden;">@item.ctname</a></td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td class="link" style="max-width: 300px; overflow: hidden;">@item.ctname</td>
|
||||
}
|
||||
<td>@item.udtymd2</td>
|
||||
<td class="text-center">@(item.isuse == 1 ? "Y" : "N")</td>
|
||||
<td class="link text-center">
|
||||
|
|
|
|||
|
|
@ -64,8 +64,11 @@
|
|||
|
||||
@Html.Partial("./Partial/sembtns", "#tbody1;0;1;0;0;0;교육생안내")
|
||||
|
||||
<a href="#" class="btn btn-success" onclick="callexcel()">엑셀다운로드</a>
|
||||
|
||||
@if (!ViewBag.IsSubAdmin96)
|
||||
{
|
||||
<a href="#" class="btn btn-success" onclick="callexcel()">엑셀다운로드</a>
|
||||
@Html.Raw(" ");
|
||||
}
|
||||
<a href="#" class="btn btn-default" onclick="golist()">목록</a>
|
||||
</div>
|
||||
<div class="table-responsive" id="excel1">
|
||||
|
|
@ -87,32 +90,64 @@
|
|||
<tbody class="data" id="tbody1">
|
||||
@foreach (var d in Model.Lects)
|
||||
{
|
||||
<tr>
|
||||
<td><input type="checkbox" class="autocheck" value="@d.lectno" data-userno="@d.userno" /></td>
|
||||
<td>@d.rnorvt</td>
|
||||
<td class="link text-center"><a href="#" onclick="viewas(@d.asno);">@d.asname</a></td>
|
||||
<td>@(d.cnoname)(@d.cnoid)</td>
|
||||
<td class="link text-center"><a href="#" onclick="viewlect(this, @d.ustatus, @d.lectno, @d.fileno, '@d.fileurl', '@d.orgname', @d.status, @d.pstatus,@d.rstatus,'@string.Format("{0}:{1}:{2}:{3}:{4}:{5}:{6}:{7}:{8}:{9}:{10}:{11}:{12}:{13}:{14}:{15}:{16}:{17}",d.asname??"",d.username, d.userid??"", d.uduty??"", d.depart??"", d.email, d.telno, d.mobile,d.ckfcfyear,d.assignuser,d.edus,d.sdate==null?"":d.sdate.Value.ToString("yyyy-MM-dd"),d.edate==null?"":d.edate.Value.ToString("yyyy-MM-dd"),d.typeman,d.typejob,d.typeedu,d.typegrade,d.pplno)')">@d.username</a>@Html.Raw(string.IsNullOrEmpty(d.fileurl) ? "" : ("<a href=\"/aCommon/DownFile?fno=" + d.fileno + "&loginfo=\"> <i class=\"fa fa-paperclip\"></i></a>"))</td>
|
||||
<td>@d.cdtymd</td>
|
||||
<td>@d.statusname</td>
|
||||
<td class="link text-center"><a href="#" onclick="viewrefund(@d.payno, @d.pstatus, @d.payuserno)">@d.pstatusname</a></td>
|
||||
@if (d.cshape == 2 && d.estart != null && d.estart > Convert.ToDateTime("1900-01-01") && d.estart.ToShortDateString() != "0001-01-01" && d.estart >= DateTime.Now) //혼합모드라면
|
||||
if (!ViewBag.IsSubAdmin96)
|
||||
{
|
||||
<td class="link text-center"><a href="#" onclick="jabscript: openScd(@d.lectno, @d.cmisno);">@d.estart.ToShortDateString()</a></td>
|
||||
<tr>
|
||||
<td><input type="checkbox" class="autocheck" value="@d.lectno" data-userno="@d.userno" /></td>
|
||||
<td>@d.rnorvt</td>
|
||||
<td class="link text-center"><a href="#" onclick="viewas(@d.asno);">@d.asname</a></td>
|
||||
<td>@(d.cnoname)(@d.cnoid)</td>
|
||||
<td class="link text-center"><a href="#" onclick="viewlect(this, @d.ustatus, @d.lectno, @d.fileno, '@d.fileurl', '@d.orgname', @d.status, @d.pstatus,@d.rstatus,'@string.Format("{0}:{1}:{2}:{3}:{4}:{5}:{6}:{7}:{8}:{9}:{10}:{11}:{12}:{13}:{14}:{15}:{16}:{17}", d.asname ?? "", d.username, d.userid ?? "", d.uduty ?? "", d.depart ?? "", d.email, d.telno, d.mobile, d.ckfcfyear, d.assignuser, d.edus, d.sdate == null ? "" : d.sdate.Value.ToString("yyyy-MM-dd"), d.edate == null ? "" : d.edate.Value.ToString("yyyy-MM-dd"), d.typeman, d.typejob, d.typeedu, d.typegrade, d.pplno)')">@d.username</a>@Html.Raw(string.IsNullOrEmpty(d.fileurl) ? "" : ("<a href=\"/aCommon/DownFile?fno=" + d.fileno + "&loginfo=\"> <i class=\"fa fa-paperclip\"></i></a>"))</td>
|
||||
<td>@d.cdtymd</td>
|
||||
<td>@d.statusname</td>
|
||||
<td class="link text-center"><a href="#" onclick="viewrefund(@d.payno, @d.pstatus, @d.payuserno)">@d.pstatusname</a></td>
|
||||
@if (d.cshape == 2 && d.estart != null && d.estart > Convert.ToDateTime("1900-01-01") && d.estart.ToShortDateString() != "0001-01-01" && d.estart >= DateTime.Now) //혼합모드라면
|
||||
{
|
||||
<td class="link text-center"><a href="#" onclick="jabscript: openScd(@d.lectno, @d.cmisno);">@d.estart.ToShortDateString()</a></td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td>-</td>
|
||||
}
|
||||
@if (d.cshape == 1 && d.isrebate == 1)
|
||||
{
|
||||
<td class="link text-center"><a href="#" onclick="viewrefund(@d.payno, 0, @d.payuserno)">@d.isrebatename</a></td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td>-</td>
|
||||
}
|
||||
</tr>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td>-</td>
|
||||
<tr>
|
||||
<td><input type="checkbox" class="autocheck" value="@d.lectno" data-userno="@d.userno" /></td>
|
||||
<td>@d.rnorvt</td>
|
||||
<td class="link text-center">@d.asname</td>
|
||||
<td>@(d.cnoname)(@d.cnoid)</td>
|
||||
<td class="link text-center">@d.username@Html.Raw(string.IsNullOrEmpty(d.fileurl) ? "" : (" <i class=\"fa fa-paperclip\"></i>"))</td>
|
||||
<td>@d.cdtymd</td>
|
||||
<td>@d.statusname</td>
|
||||
<td class="link text-center">@d.pstatusname</td>
|
||||
@if (d.cshape == 2 && d.estart != null && d.estart > Convert.ToDateTime("1900-01-01") && d.estart.ToShortDateString() != "0001-01-01" && d.estart >= DateTime.Now) //혼합모드라면
|
||||
{
|
||||
<td class="link text-center">@d.estart.ToShortDateString()</td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td>-</td>
|
||||
}
|
||||
@if (d.cshape == 1 && d.isrebate == 1)
|
||||
{
|
||||
<td class="link text-center">@d.isrebatename</td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td>-</td>
|
||||
}
|
||||
</tr>
|
||||
}
|
||||
@if (d.cshape == 1 && d.isrebate == 1)
|
||||
{
|
||||
<td class="link text-center"><a href="#" onclick="viewrefund(@d.payno, 0, @d.payuserno)">@d.isrebatename</a></td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td>-</td>
|
||||
}
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -16,12 +16,22 @@
|
|||
</tr>
|
||||
</table>
|
||||
<ul class="pagination pagination-md">
|
||||
<li class="@(Model.tabidx == 0 ? "active":"")"><a href="#" onclick="gotab(0);" data-toggle="tab">종합</a></li>
|
||||
<li class="@(Model.tabidx == 1 ? "active":"")"><a href="#" onclick="gotab(1);" data-toggle="tab">출석</a></li>
|
||||
<li class="@(Model.tabidx == 2 ? "active":"")"><a href="#" onclick="gotab(2);" data-toggle="tab">진행평가</a></li>
|
||||
<li class="@(Model.tabidx == 3 ? "active":"")"><a href="#" onclick="gotab(3);" data-toggle="tab">최종평가</a></li>
|
||||
<li class="@(Model.tabidx == 4 ? "active":"")"><a href="#" onclick="gotab(4);" data-toggle="tab">과제</a></li>
|
||||
<li class="@(Model.tabidx == 5 ? "active":"")"><a href="#" onclick="gotab(5);" data-toggle="tab">토론</a></li>
|
||||
@if (!ViewBag.IsSubAdmin96)
|
||||
{
|
||||
<li class="@(Model.tabidx == 0 ? "active" : "")"><a href="#" onclick="gotab(0);" data-toggle="tab">종합</a></li>
|
||||
<li class="@(Model.tabidx == 1 ? "active" : "")"><a href="#" onclick="gotab(1);" data-toggle="tab">출석</a></li>
|
||||
<li class="@(Model.tabidx == 2 ? "active" : "")"><a href="#" onclick="gotab(2);" data-toggle="tab">진행평가</a></li>
|
||||
<li class="@(Model.tabidx == 3 ? "active" : "")"><a href="#" onclick="gotab(3);" data-toggle="tab">최종평가</a></li>
|
||||
<li class="@(Model.tabidx == 4 ? "active" : "")"><a href="#" onclick="gotab(4);" data-toggle="tab">과제</a></li>
|
||||
<li class="@(Model.tabidx == 5 ? "active" : "")"><a href="#" onclick="gotab(5);" data-toggle="tab">토론</a></li>
|
||||
}
|
||||
else
|
||||
{
|
||||
<li class="@(Model.tabidx == 0 ? "active" : "")"><a href="#" onclick="gotab(0);" data-toggle="tab">종합</a></li>
|
||||
<li class="@(Model.tabidx == 1 ? "active" : "")"><a href="#" onclick="gotab(1);" data-toggle="tab">출석</a></li>
|
||||
<li class="@(Model.tabidx == 3 ? "active" : "")"><a href="#" onclick="gotab(3);" data-toggle="tab">최종평가</a></li>
|
||||
<li class="@(Model.tabidx == 4 ? "active" : "")"><a href="#" onclick="gotab(4);" data-toggle="tab">과제</a></li>
|
||||
}
|
||||
</ul>
|
||||
@Html.Partial("grade" + (Model.tabidx==2 || Model.tabidx == 3 ? 2 : Model.tabidx), Model)
|
||||
<form id="dform" method="post" action="/croom/grades">@Html.Partial("./Partial/DForm", Model, new ViewDataDictionary { { "preform", 1 } })</form>
|
||||
|
|
|
|||
|
|
@ -65,12 +65,15 @@
|
|||
<header class="panel-heading"><strong><i class="fa fa-bars"></i> 교육생 평가현황<span class=""></span></strong></header>
|
||||
<div style="padding: 5px 10px; text-align: right;">
|
||||
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":전체;1:환급;0:비환급" }, { "name", "addstringval" }, { "selected", Model.addstringval }, { "style", "position: absolute; left: 0; margin-left: 50px;" + (Model.CM.isrefund == 1 ? "" : "display:none;") }, { "onchange", "findme()" } })
|
||||
@Html.Partial("./Partial/sembtns", "#tbody1;"+(Model.IsAdmin?"1;1":"0;0")+ ";1;1;0;평가안내")
|
||||
@Html.Partial("./Partial/sembtns", "#tbody1;" + (Model.IsAdmin ? "1;1" : "0;0") + ";1;1;0;평가안내")
|
||||
|
||||
@if (Model.IsAdmin)
|
||||
{
|
||||
<a href="#" class="btn btn-primary" onclick="save();">수료처리</a>
|
||||
<a href="#" class="btn btn-danger" onclick="save2();">강제수료처리</a>
|
||||
<a href="#" class="btn btn-primary" onclick="save();">수료처리</a>
|
||||
if (!ViewBag.IsSubAdmin96)
|
||||
{
|
||||
<a href="#" class="btn btn-danger" onclick="save2();">강제수료처리</a>
|
||||
}
|
||||
}
|
||||
|
||||
<a href="#" class="btn btn-default" onclick="golist();">목록</a>
|
||||
|
|
@ -109,21 +112,35 @@
|
|||
<td>@d.asname</td>
|
||||
<td>@d.usernameid</td>
|
||||
<td>@((Model.CM.cshape == 0 && d.isrebate == 0 ? d.payoktime : d.sdate).Value.ToShortDateString())</td>
|
||||
<td class="link text-center"><a onclick="viewatt(@d.lectno)" href="#">@d.attrate %</a></td>
|
||||
@if (!ViewBag.IsSubAdmin96)
|
||||
{
|
||||
<td class="link text-center"><a onclick="viewatt(@d.lectno)" href="#">@d.attrate %</a></td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td class="link text-center">@d.attrate %</td>
|
||||
}
|
||||
<td>@( d.ex0cnt < 1 ? "-" : d.ex0lectcnt < 1 && d.ex0cnt > 0 ? "미제출" : d.ex0lectpoint.ToString())</td>
|
||||
<td>@(d.ex1cnt < 1 ? "-" :d.ex1lectcnt < 1 && d.ex1cnt > 0 ? "미제출" : d.ex1lectpoint.ToString())</td>
|
||||
<td>@(d.sd0cnt < 1 ? "-" :d.sd0lectcnt < 1 && d.sd0cnt > 0 ? "미제출" : d.sd0lectpoint.ToString())</td>
|
||||
<td>@( d.sd1cnt < 1 ? "-" :d.sd1lectcnt < 1 && d.sd1cnt > 0 ? "미제출" : d.sd1lectpoint.ToString())</td>
|
||||
@*<td>@((d.isrebate == 1 && Model.CMEV.midrfd < 1) || (d.isrebate == 0 && Model.CMEV.mid < 1) ? "-" : d.ex0cnt < 1 ? "-" : d.ex0lectcnt < 1 && d.ex0cnt > 0 ? "미제출" : d.ex0lectpoint.ToString())</td>
|
||||
<td>@((d.isrebate == 1 && Model.CMEV.finalrfd < 1) || (d.isrebate == 0 && Model.CMEV.final < 1) ? "-" : d.ex1cnt < 1 ? "-" : d.ex1lectcnt < 1 && d.ex1cnt > 0 ? "미제출" : d.ex1lectpoint.ToString())</td>
|
||||
<td>@((d.isrebate == 1 && Model.CMEV.subjectrfd < 1) || (d.isrebate == 0 && Model.CMEV.subject < 1) ? "-" : d.sd0cnt < 1 ? "-" : d.sd0lectcnt < 1 && d.sd0cnt > 0 ? "미제출" : d.sd0lectpoint.ToString())</td>
|
||||
<td>@((d.isrebate == 1 && Model.CMEV.discussrfd < 1) || (d.isrebate == 0 && Model.CMEV.discuss < 1) ? "-" : d.sd1cnt < 1 ? "-" : d.sd1lectcnt < 1 && d.sd1cnt > 0 ? "미제출" : d.sd1lectpoint.ToString())</td>*@
|
||||
@if(Model.CMEV.isoffabs == 1)
|
||||
<td>@((d.isrebate == 1 && Model.CMEV.finalrfd < 1) || (d.isrebate == 0 && Model.CMEV.final < 1) ? "-" : d.ex1cnt < 1 ? "-" : d.ex1lectcnt < 1 && d.ex1cnt > 0 ? "미제출" : d.ex1lectpoint.ToString())</td>
|
||||
<td>@((d.isrebate == 1 && Model.CMEV.subjectrfd < 1) || (d.isrebate == 0 && Model.CMEV.subject < 1) ? "-" : d.sd0cnt < 1 ? "-" : d.sd0lectcnt < 1 && d.sd0cnt > 0 ? "미제출" : d.sd0lectpoint.ToString())</td>
|
||||
<td>@((d.isrebate == 1 && Model.CMEV.discussrfd < 1) || (d.isrebate == 0 && Model.CMEV.discuss < 1) ? "-" : d.sd1cnt < 1 ? "-" : d.sd1lectcnt < 1 && d.sd1cnt > 0 ? "미제출" : d.sd1lectpoint.ToString())</td>*@
|
||||
@if (Model.CMEV.isoffabs == 1)
|
||||
{
|
||||
<th>@(d.ispassat == 1 ? "O" : "X")</th>
|
||||
}
|
||||
<td>@(((d.apoint + d.mpoint + d.fpoint + d.spoint + d.dpoint)).ToString())</td>
|
||||
<td class="@(d.iscomplete==1?"link text-center":"")">@Html.Raw(d.iscomplete == 1 ? string.Format("<a href=\"#\" onclick=\"viewcert({0})\">{1}</a>", d.lectno, "수료") : d.iscompletename)</td>
|
||||
@if (!ViewBag.IsSubAdmin96)
|
||||
{
|
||||
<td class="@(d.iscomplete == 1 ? "link text-center" : "")">@Html.Raw(d.iscomplete == 1 ? string.Format("<a href=\"#\" onclick=\"viewcert({0})\">{1}</a>", d.lectno, "수료") : d.iscompletename)</td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td class="@(d.iscomplete == 1 ? "link text-center" : "")">@Html.Raw(d.iscomplete == 1 ? string.Format("{1}", d.lectno, "수료") : d.iscompletename)</td>
|
||||
}
|
||||
<td><a style="@(d.iscomplete == 1 ? "":"display:none;")" href="#" class="btn btn-select btn-xxs" onclick="changecompt('@(d.completetime != null ? d.completetime.Value.ToString("yyyy-MM-dd") : "0001-01-01")','@d.username','@d.userid',@d.lectno,'@d.cshape')">변경</a></td>
|
||||
</tr>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,14 +3,17 @@
|
|||
<section class="panel panel-default">
|
||||
<div style="padding: 5px 10px; text-align: right;">
|
||||
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":전체;1:환급;0:비관급" }, { "name", "addstringval" }, { "selected", Model.addstringval }, { "style", "position: absolute; left: 0; margin-left: 50px;" + (Model.CM.isrefund == 1 ? "" : "display:none;") }, { "onchange", "findme()" } })
|
||||
@Html.Partial("./Partial/sembtns", "#tbody1;"+(Model.IsAdmin?"1;1":"0;0")+ ";1;1;0;평가안내")
|
||||
@Html.Partial("./Partial/sembtns", "#tbody1;" + (Model.IsAdmin ? "1;1" : "0;0") + ";1;1;0;평가안내")
|
||||
|
||||
@if (Model.IsAdmin)
|
||||
@if (!ViewBag.IsSubAdmin96)
|
||||
{
|
||||
<a href="#" class="btn btn-primary" onclick="save();">출석완료처리</a>
|
||||
if (Model.IsAdmin)
|
||||
{
|
||||
<a href="#" class="btn btn-primary" onclick="save();">출석완료처리</a>
|
||||
}
|
||||
<a href="#" class="btn btn-danger" onclick="save2();">OFF출결관리</a>
|
||||
@Html.Raw("  ");
|
||||
}
|
||||
<a href="#" class="btn btn-danger" onclick="save2();">OFF출결관리</a>
|
||||
|
||||
<a href="#" class="btn btn-default" onclick="golist();">목록</a>
|
||||
</div>
|
||||
<div class="table-responsive" id="excel1">
|
||||
|
|
|
|||
|
|
@ -299,6 +299,10 @@ namespace NP.Model
|
|||
/// 강사
|
||||
/// </summary>
|
||||
public bool IsTeacher{ get { return UserType == 11; } }
|
||||
/// <summary>
|
||||
/// 관리자(usertype:96)
|
||||
/// </summary>
|
||||
public bool IsSubAdmin96 { get { return UserType == 96; } }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue