1. PMS NO : {이메일요청건}
2. (주요)작업내용
(1) {Views/cc/exelboard.cshtml}
- {"엑셀다운로드를 기록한 보드입니다."}
This commit is contained in:
parent
652ace2bb4
commit
e7177b79a0
|
|
@ -0,0 +1,90 @@
|
|||
@model NP.Model.VMCM
|
||||
@{
|
||||
ViewBag.Title = "exelboard";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
<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/Date", string.IsNullOrEmpty(Model.stringval5) ? (DateTime?)null : Convert.ToDateTime(Model.stringval5), new ViewDataDictionary { { "name", "stringval5" } }) ~ @Html.Partial("./Partial/Date", string.IsNullOrEmpty(Model.stringval6) ? (DateTime?)null : Convert.ToDateTime(Model.stringval6), new ViewDataDictionary { { "name", "stringval6" } })
|
||||
@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 } })
|
||||
</div>
|
||||
<section class="panel panel-default">
|
||||
<div class="table-responsive" id="excel1">
|
||||
<table class="table table-striped b-t b-light">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>회원번호</th>
|
||||
<th>회원아이디</th>
|
||||
<th>회원성함</th>
|
||||
<th>다운로드 시간</th>
|
||||
<th>위치</th>
|
||||
<th>IP</th>
|
||||
<th>사유</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="data" id="tbody1">
|
||||
@foreach (var el in Model.excelloglook)
|
||||
{
|
||||
<tr>
|
||||
<td width="5%">@el.edno</td>
|
||||
<td width="6%">@el.userno</td>
|
||||
<td>@el.userid</td>
|
||||
<td>@el.username</td>
|
||||
<td>@el.actiontime</td>
|
||||
<td>@el.position</td>
|
||||
<td>@el.userip</td>
|
||||
<td style="text-align:left;" width="45%"><a href="#" onclick="reg(@(el.edno))">@el.comment</a></td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@Html.Pager((int)Model.pagenum, 10, Model.pagerowcount, Model.pagetotalcount)
|
||||
</section>
|
||||
</form>
|
||||
<form id="dform" method="post" action="/cc/exelboard">
|
||||
@Html.Partial("./Partial/dform", Model, new ViewDataDictionary { { "preform", 1 } })
|
||||
</form>
|
||||
|
||||
@section scriptsHeader{
|
||||
@Html.Partial("./Partial/ScriptDate")
|
||||
}
|
||||
@section scripts{
|
||||
<script>
|
||||
|
||||
$(document).ready(function () {
|
||||
$("#stringval").on("change", function () {
|
||||
$("#stringval2 option:gt(0)").remove();
|
||||
var y = $(this).val();
|
||||
if (y != "") {
|
||||
$.each(terms.split(';'), function (i, t) {
|
||||
if (t.split(':')[1] == y) {
|
||||
$("#stringval2").append("<option value=\"" + t.split(':')[0] + "\">" + t.split(':')[2] + " 기</optoin>");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
function reg(no) {
|
||||
setv("dform_intval", no);
|
||||
bglayer();
|
||||
$("#dform").submit();
|
||||
}
|
||||
</script>
|
||||
}
|
||||
|
|
@ -1349,10 +1349,31 @@
|
|||
</update>
|
||||
<!--인덕이에 엑셀 insert into 문 -->
|
||||
<insert id="excellog.in" parameterClass="excellog">
|
||||
INSERT INTO exceldownlog (userno, username, actiontime, position, comment, userip)
|
||||
VALUES ( #userno#, #username#, sysdate(), #position#, #comment#, #userip#);
|
||||
INSERT INTO exceldownlog (userno, userid, username, actiontime, position, comment, userip)
|
||||
VALUES ( #userno#, #userid#, #username#, sysdate(), #position#, #comment#, #userip#);
|
||||
</insert>
|
||||
<!--인덕이에 엑셀 insert into 문 끝-->
|
||||
|
||||
<!--인덕이에 엑셀 select 문-->
|
||||
<select id="excellog.look" parameterClass="hashtable" resultClass="excellog">
|
||||
select *
|
||||
from (
|
||||
select edno, userno, userid, username, actiontime, position, comment
|
||||
, userip, count(edno) over() pagetotalcount
|
||||
,row_number() over(order by <isNotNull property="orderby">$orderby$</isNotNull><isNull property="orderby">edno desc</isNull>) rno
|
||||
from exceldownlog
|
||||
<dynamic prepend="where">
|
||||
<isNotNull property="userid" prepend="and">userid = #userid#</isNotNull>
|
||||
<isNotNull property="sstime" prepend="and">
|
||||
date_format(actiontime,'%Y%m%d') >= date_format(#sstime#,'%Y%m%d')
|
||||
</isNotNull>
|
||||
<isNotNull property="setime" prepend="and">
|
||||
date_format(actiontime,'%Y%m%d') <= date_format(#setime#,'%Y%m%d')
|
||||
</isNotNull>
|
||||
</dynamic>
|
||||
)t
|
||||
<include refid="sql.pagedynamic"></include>
|
||||
order by edno desc
|
||||
</select>
|
||||
<!--인덕이에 엑셀 select 문 끝-->
|
||||
</statements>
|
||||
</sqlMap>
|
||||
|
|
|
|||
Loading…
Reference in New Issue