This commit is contained in:
hyunho 2020-12-28 06:31:36 +00:00
parent ccdf344ba4
commit f4f420457b
1 changed files with 21 additions and 19 deletions

View File

@ -151,9 +151,9 @@
<thead>
<tr>
@*@if (Model.viewidx == 0)
{
<th><input type="checkbox" onclick="javascript: checkall('excel1', this);" /></th>
}*@
{
<th><input type="checkbox" onclick="javascript: checkall('excel1', this);" /></th>
}*@
<th width="20">No</th>
<th width="80">@(Model.viewidxname)코드</th>
@Html.Raw(Model.viewidx == 0 ? "<th>기수</th>" : "")
@ -163,6 +163,7 @@
<th>@(Model.viewidxname)명</th>
@Html.Raw(Model.viewidx == 1 ? "<th>복제</th>" : "")
@Html.Raw(Model.viewidx == 1 ? "<th>강좌추가</th>" : "")
@Html.Raw(Model.viewidx == 0 ? "<th>제한인원</th>" : "")
@Html.Raw(Model.viewidx == 0 ? "<th>신청인원</th>" : "")
@Html.Raw(Model.viewidx == 0 ? "<th>복제</th>" : "")
</tr>
@ -172,22 +173,23 @@
{
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 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>
<td class="link cname"><a href="#" onclick="reg(@item.cmno)">@item.cname (@item.classno)</a></td>
<td>@Html.Raw(item.quota == 0? "무제한": item.quota.ToString())</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>
}
}
else