88 lines
4.3 KiB
Plaintext
88 lines
4.3 KiB
Plaintext
@model NP.Model.VMCC
|
|
<form id="mform" method="post">
|
|
<section class="panel panel-default clearfix devsearch" data-cleartbody="tbody1">
|
|
@Html.Partial("./Partial/SearchCaption")
|
|
<div class="step-content">
|
|
<div class="step-pane active form-inline">
|
|
<div class="form-group">
|
|
@Html.Partial("./Partial/Select", Model.BMOs, new ViewDataDictionary { { "name", "stringval3" }, { "selected", Model.stringval3 }, { "df", ":-말머리선택" } })
|
|
@Html.Partial("./Partial/Text", Model.stringval4, Helpers.DicText(new NP.Model.TextDic() { Name = "stringval4", Value = Model.stringval4, PH = "제목/작성자/내용으로 검색", CssClass = "ff" }))
|
|
@Html.Partial("./Partial/Button", new NP.Model.Button() { Special = "search" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<div class="tar buttonbox">
|
|
@Html.Partial("./Partial/pagerow", new ViewDataDictionary { { "tbodyid", "tbody1" }, { "searchmethod", "submit()" }, { "pagesize", Model.pagerowcount } })
|
|
<a href="homer2" onclick="javascript:reg(0);" class="btn btn-s-xs btn-info">게시글 등록</a>
|
|
</div>
|
|
<section class="panel panel-default">
|
|
<div class="table-responsive" id="excel1">
|
|
<table class="table table-striped b-t b-light">
|
|
<thead>
|
|
<tr>
|
|
<th width="20">No</th>
|
|
<th>게시판명</th>
|
|
<th>고객사</th>
|
|
<th>말머리</th>
|
|
<th>제목</th>
|
|
<th>등록일</th>
|
|
<th>작성자</th>
|
|
<th>조회</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="data" id="tbody1">
|
|
@foreach (var item in Model.Boards)
|
|
{
|
|
<tr>
|
|
<td>@item.rnorvt</td>
|
|
<td>@item.bmname</td>
|
|
<td>@item.asname</td>
|
|
<td>@item.opname</td>
|
|
<td class="link" style="@(item.pbno == null ? "":"padding-left: 30px;")"><a href="#" onclick="reg(@item.bno)">@Html.Raw(item.pbno == null ? "" : "<i class=\"fa fa-mail-forward\"></i>")@Html.Raw(item.istop == 1 ? "<i class=\"fa fa-bullhorn\"></i>" : "")@(item.subject)@(item.ccount > 0 ? string.Format("({0})", item.ccount.ToString("#,0")) : "")@Html.Raw(item.issecr == 1 ? "<i class=\"fa fa-lock\"></i>" : "")</a></td>
|
|
<td>@item.cdtymd</td>
|
|
<td>@(string.Format("{0}({1})",item.cnoname,item.cnoid))</td>
|
|
<td>@item.rcount.ToString("#,0")</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
@Html.Pager((int)Model.pagenum, 10, Model.pagerowcount, Model.pagetotalcount)
|
|
</section>
|
|
</form>
|
|
<form id="dform" method="post" action="/cc/bmr">
|
|
@Html.Partial("./Partial/dform", Model, new ViewDataDictionary { { "preform", 1 } })
|
|
</form>
|
|
@*인덕 팝업 작업 시작@**@
|
|
<script type="text/javascript">
|
|
|
|
</script>
|
|
@*인덕 팝업 작업 종료@**@
|
|
@section scripts{
|
|
<script>
|
|
$(document).ready(function () {
|
|
$("#stringval").on("change", function () {
|
|
$("#stringval2 option:gt(0)").remove();
|
|
$("#stringval3 option:gt(0)").remove();
|
|
capp("/acommon/boardmasterget", { asno: $(this).val(), bmposition: 0 }, "cbget0");
|
|
});
|
|
$("#stringval2").on("change", function () {
|
|
$("#stringval3 option:gt(0)").remove();
|
|
if ($(this).val() != "") {
|
|
capp("/acommon/boardmasteropeningget", { bmno: $(this).val() }, "cbget1");
|
|
}
|
|
});
|
|
});
|
|
function cbget0() {
|
|
binddata("stringval2", capResult.obj);
|
|
}
|
|
function cbget1() {
|
|
binddata("stringval3", capResult.obj);
|
|
}
|
|
function reg(no) {
|
|
setv("dform_longval", no);
|
|
$("#dform").attr("action", "/cc/homer").submit();
|
|
}
|
|
</script>
|
|
} |