213 lines
8.8 KiB
Plaintext
213 lines
8.8 KiB
Plaintext
|
|
@model NP.Model.VMCRoom
|
||
|
|
@{
|
||
|
|
|
||
|
|
}
|
||
|
|
<div>
|
||
|
|
<ul class="pagination pagination-md" style="margin: 0;">
|
||
|
|
<li onclick="gotab();"><a href="#" data-toggle="tab">요청현황</a></li>
|
||
|
|
<li class="active"><a href="#" data-toggle="tab">스마트빌</a></li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<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-groupx">
|
||
|
|
<table class="table table-striped b-t b-light no-odd">
|
||
|
|
<tr>
|
||
|
|
<td class="text-left">
|
||
|
|
@Html.Partial("./Partial/Date", string.IsNullOrEmpty(Model.addstringval) ? (DateTime?)null : Convert.ToDateTime(Model.addstringval), new ViewDataDictionary { { "name", "addstringval" } }) ~ @Html.Partial("./Partial/Date", string.IsNullOrEmpty(Model.addstringval2) ? (DateTime?)null : Convert.ToDateTime(Model.addstringval2), new ViewDataDictionary { { "name", "addstringval2" } })
|
||
|
|
@Html.Partial("./Partial/Text", Model.addstringval3, Helpers.DicText(new NP.Model.TextDic() { Name = "addstringval3", Value = Model.addstringval3, PH = "거래처 사업자등록번호를 입력하세요.", CssClass = "ff" }))
|
||
|
|
@Html.Partial("./Partial/Button", new NP.Model.Button() { Special = "search", OnClick = "searchthis()" })
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td style="text-align: left;">※ 검색은 1회 1분으로 제한되어있습니다. 검색가능시간: <span id="msgtime" style="color: red; font-size: 17px;">@(Model.intval < 1 ? "검색가능합니다." : string.Format("{0}초 후 검색가능합니다.", Model.intval))</span></td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
<section class="panel panel-default">
|
||
|
|
<div class="table-responsive" id="excel1">
|
||
|
|
<table class="table table-striped b-t b-light no-odd">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
@*<th>작성일자</th>*@
|
||
|
|
<th>참조번호</th>
|
||
|
|
<th>계산서상태</th>
|
||
|
|
<th>국세청전송상태</th>
|
||
|
|
<th>국세청전송결과</th>
|
||
|
|
<th>국세청전송일자</th>
|
||
|
|
<th>담당자이메일</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody class="data" id="tbody1">
|
||
|
|
@foreach(var d in Model.Datas)
|
||
|
|
{
|
||
|
|
<tr>
|
||
|
|
<td class="link"><a href="#" onclick="viewd('@d.strval')">@d.strval</a></td>
|
||
|
|
<td>@d.strval2</td>
|
||
|
|
<td>@d.strval3</td>
|
||
|
|
<td>@d.strval4</td>
|
||
|
|
<td>@d.strval5</td>
|
||
|
|
<td>@d.strval6</td>
|
||
|
|
</tr>
|
||
|
|
}
|
||
|
|
@if (Model.Datas.Count() < 1 && Model.addstringval10 != null)
|
||
|
|
{
|
||
|
|
<tr>
|
||
|
|
<td colspan="6">@Model.addstringval10</td>
|
||
|
|
</tr>
|
||
|
|
}
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
</form>
|
||
|
|
<form id="dform" method="post" action="/croom/tax">
|
||
|
|
@Html.Partial("./Partial/dform", Model, new ViewDataDictionary { { "preform", 1 } })
|
||
|
|
</form>
|
||
|
|
<div id="thisbox" class="findbox draggable regbox" style="width: 500px; z-index: 1041; top: 60px; overflow: auto;">
|
||
|
|
<h4><i class="fa fa-bars"></i> <span id="pcap">상세내역</span><a href="#" class="btn btn-default btn-xs f-r closethisbox">닫기</a></h4>
|
||
|
|
<table class="regtable">
|
||
|
|
<colgroup><col style="width:150px;" /><col /></colgroup>
|
||
|
|
<tr><th>계산서상태</th><td id="v1"></td></tr>
|
||
|
|
<tr><th>국세청전송상태</th><td id="v2"></td></tr>
|
||
|
|
<tr><th>국세청전송결과(일자)</th><td id="v3"></td></tr>
|
||
|
|
<tr><th>계산서작성일</th><td id="v4"></td></tr>
|
||
|
|
<tr><th>계산서발행일</th><td id="v5"></td></tr>
|
||
|
|
<tr><th>계산서공급가액</th><td id="v6"></td></tr>
|
||
|
|
<tr><th>계산서세액</th><td id="v7"></td></tr>
|
||
|
|
<tr><th>계산서합계금액</th><td id="v8"></td></tr>
|
||
|
|
</table>
|
||
|
|
<br /><br />
|
||
|
|
</div>
|
||
|
|
@section styles{
|
||
|
|
<style type="text/css">
|
||
|
|
td span.isjoin0 {
|
||
|
|
background-color: #ddd;
|
||
|
|
color: #fff;
|
||
|
|
}
|
||
|
|
|
||
|
|
td span.isjoin1 {
|
||
|
|
background-color: #0094ff;
|
||
|
|
color: #fff;
|
||
|
|
}
|
||
|
|
|
||
|
|
td.taxdatex {
|
||
|
|
background-color: #d89f77;
|
||
|
|
color: #d00000
|
||
|
|
}
|
||
|
|
|
||
|
|
td.left {
|
||
|
|
text-align: left !important
|
||
|
|
}
|
||
|
|
|
||
|
|
td.right {
|
||
|
|
text-align: right !important
|
||
|
|
}
|
||
|
|
|
||
|
|
.panel .table-striped.no-odd > tbody > tr:nth-child(odd) > td.taxdatex,
|
||
|
|
.taxdatex {
|
||
|
|
background-color: #ffc399 !important
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
}
|
||
|
|
@section scriptsHeader{
|
||
|
|
@Html.Partial("./Partial/ScriptDate")
|
||
|
|
}
|
||
|
|
@section scripts{
|
||
|
|
<script>
|
||
|
|
var _intval = @Model.intval;
|
||
|
|
var _timerlog;
|
||
|
|
var _intval2 = @Model.intval2;
|
||
|
|
var _timerlog2;
|
||
|
|
$(document).ready(function () {
|
||
|
|
if (_intval > 0) {
|
||
|
|
_timerlog = setInterval(fnseq, 1000);
|
||
|
|
}
|
||
|
|
if (_intval2 > 0) {
|
||
|
|
_timerlog2 = setInterval(fnseq2, 1000);
|
||
|
|
}
|
||
|
|
});
|
||
|
|
function fnseq() {
|
||
|
|
_intval--;
|
||
|
|
if (_intval < 1) {
|
||
|
|
clearInterval(_timerlog);
|
||
|
|
}
|
||
|
|
$("#msgtime").text(_intval < 1 ? "검색가능합니다." : (_intval + "초 후 검색가능합니다."));
|
||
|
|
}
|
||
|
|
function fnseq2() {
|
||
|
|
_intval2--;
|
||
|
|
if (_intval2 < 1) {
|
||
|
|
clearInterval(_timerlog2);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function gotab() {
|
||
|
|
$("#intval,#intval2").val(0);
|
||
|
|
$("#dform_addstringval,#dform_addstringval2,#dform_addstringval3").val("");
|
||
|
|
$("#dform").attr("action", "/croom/tax").submit();
|
||
|
|
}
|
||
|
|
function searchthis() {
|
||
|
|
setv("addstringval3", val("addstringval3").replace(/-/gi, ''));
|
||
|
|
if (val("addstringval") == "") {
|
||
|
|
focus("addstringval");
|
||
|
|
msg("작성일자 시작일을 입력해주세요.");
|
||
|
|
} else if (val("addstringval2") == "") {
|
||
|
|
focus("addstringval2");
|
||
|
|
msg("작성일자 종료일을 입력해주세요.");
|
||
|
|
} else if (getint(val("addstringval")) > getint(val("addstringval2"))) {
|
||
|
|
msg("작성일자는 시작일자가 동일하거나 이전일자여야합니다.");
|
||
|
|
} else if (val("addstringval3") == "x") {
|
||
|
|
msg("거래처사업자등록번호를 입력해주세요.");
|
||
|
|
}
|
||
|
|
else if (_intval > 0) {
|
||
|
|
msg(_intval + "초 후 검색가능합니다.");
|
||
|
|
} else {
|
||
|
|
capp("/acommon/dayterm", { s: val("addstringval"), e: val("addstringval2") }, "gofind");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function gofind() {
|
||
|
|
if (capResult.obj < 7) {
|
||
|
|
clearInterval(_timerlog);
|
||
|
|
submit();
|
||
|
|
} else {
|
||
|
|
msg("작성일자범위는 최대 1주일간의 데이터만 조회 가능합니다.");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
var _csid = "";
|
||
|
|
function viewd(csid) {
|
||
|
|
if (_csid == csid && _intval2 > 0) {
|
||
|
|
msg(_intval2 + "초 후 검색 가능합니다.");
|
||
|
|
} else {
|
||
|
|
_csid = csid;
|
||
|
|
capp('/acommon/smarttaxview', { csid: csid }, "cbviewd");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function cbviewd() {
|
||
|
|
if (capResult.code == 1000) {
|
||
|
|
_intval2 = 60;
|
||
|
|
clearInterval(_timerlog2);
|
||
|
|
setInterval(_timerlog2, 1000);
|
||
|
|
if (capResult.msg == "") {
|
||
|
|
var d = capResult.obj;
|
||
|
|
sett("v1", getdb(d.strval));
|
||
|
|
sett("v2", getdb(d.strval2));
|
||
|
|
sett("v3", getdb(d.strval3) + "(" + getdb(d.strval4) + ")");
|
||
|
|
sett("v4", getdb(d.strval5));
|
||
|
|
sett("v5", getdb(d.strval6));
|
||
|
|
sett("v6", bindComma3(d.intval));
|
||
|
|
sett("v7", bindComma3(d.intval2));
|
||
|
|
sett("v8", bindComma3(d.intval3));
|
||
|
|
bglayer(); $("#thisbox").slideDown("fast");
|
||
|
|
} else {
|
||
|
|
msg(capResult.msg);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
}
|