280 lines
13 KiB
Plaintext
280 lines
13 KiB
Plaintext
@model NP.Model.VMCRoom
|
|
@{
|
|
var t = Model.PayTaxes.First();
|
|
}
|
|
<div>
|
|
<ul class="pagination pagination-md" style="margin: 0;">
|
|
<li class="active"><a href="#" data-toggle="tab">요청현황</a></li>
|
|
@*<li><a href="#" onclick="gotab();" data-toggle="tab">스마트빌</a></li>*@
|
|
</ul>
|
|
</div>
|
|
<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>신청자(ID)</th>
|
|
<th>상품명</th>
|
|
<th>수량<br />(인원)</th>
|
|
<th>발행요청금액</th>
|
|
<th>요청일</th>
|
|
<th>발행일</th>
|
|
<th>상태</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="data" id="tbody1">
|
|
@foreach (var d in Model.PayTaxes)
|
|
{
|
|
<tr>
|
|
<td>@d.payno</td>
|
|
<td class="left">@Html.Raw(string.Format("<span class=\"isjoin{0}\">{1}</span> {2}", d.isjoin, d.isjoin == 1 ? "정" : "비", d.asname))</td>
|
|
<td>@string.Format("{0}({1})", d.username, d.userid)</td>
|
|
<td class="left">@d.itemname @(d.ccount > 1 ? string.Format("외 {0}건", d.ccount - 1) : "")</td>
|
|
<td>@d.pcnt</td>
|
|
<td class="right">@d.taxamt.ToString("#,0")</td>
|
|
<td>@d.cdtymd</td>
|
|
<td>@(d.taxdate == null ? "" : d.taxdate.Value.ToString("yyyy-MM-dd"))</td>
|
|
<td class="taxdate@(d.iscancel ==1 ? "" : d.taxdate==null?"x":"")">@(d.iscancel ==1 ? "발행취소" :d.taxdate == null ? "미발행" : "발행완료")</td>
|
|
</tr>
|
|
}
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
<section class="panel panel-default">
|
|
<header class="panel-heading"><strong><i class="fa fa-bars"></i> 상품선택<span class=""></span></strong></header>
|
|
<table class="regtable" style="margin-top: 0;">
|
|
<colgroup><col width="200"><col /></colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<th>총결제액/입금액</th>
|
|
<td>@Model.PayTaxItem.First().ppayamt.ToString("#,0") (@(Model.PayTaxItem.First().payoktime == null ? "-" : Model.PayTaxItem.First().payoktime.Value.ToString("yy-MM-dd HH:mm:ss")))</td>
|
|
</tr>
|
|
<tr>
|
|
<th>기존요청금액</th>
|
|
<td>@(Model.PayTaxes2.Where(w => w.taxno != t.taxno).Count() < 1 ? "0" : Model.PayTaxes2.Where(w => w.taxno != t.taxno).Sum(s => s.taxamt).ToString("#,0"))원</td>
|
|
</tr>
|
|
<tr>
|
|
<th>기존발행금액</th>
|
|
<td>@(Model.PayTaxes2.Where(w => w.taxno != t.taxno && w.taxdate != null).Count() < 1 ? "0" : Model.PayTaxes2.Where(w => w.taxno != t.taxno && w.taxdate != null).Sum(s => s.taxamt).ToString("#,0"))원</td>
|
|
</tr>
|
|
<tr>
|
|
<th>결제방법</th>
|
|
<td>@Model.PayTaxItem.First().pptypename</td>
|
|
</tr>
|
|
<tr>
|
|
<th>선택상품</th>
|
|
<td>
|
|
<ul>
|
|
@if (Model.PayTaxItem.First().isgroup == 1)
|
|
{
|
|
foreach (var d in Model.PayTaxItem.Where(w => w.ptype == 0))
|
|
{
|
|
<li>@d.itemname (@(Model.PayTaxItem.Where(w => w.ptype == 0).Count() + "명"), @(Model.PayTaxItem.Where(w => w.ptype == 0).Sum(s => s.payamt).ToString("#,0"))원)</li>
|
|
break;
|
|
}
|
|
foreach (var d in Model.PayTaxItem.Where(w => w.ptype != 0))
|
|
{
|
|
<li>@d.itemname (@(d.pcnt)개, @(d.payamt.ToString("#,0"))원)</li>
|
|
break;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
foreach (var d in Model.PayTaxItem)
|
|
{
|
|
<li>@d.itemname (@(d.pcnt)개, @(d.payamt.ToString("#,0"))원)</li>
|
|
break;
|
|
}
|
|
}
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>발행요청금액</th>
|
|
<td>@(t.taxamt.ToString("#,0"))원</td>
|
|
</tr>
|
|
</tbody></table>
|
|
</section>
|
|
<form id="sform" method="post">
|
|
<section class="panel panel-default">
|
|
<header class="panel-heading"><strong><i class="fa fa-bars"></i> 공급업체정보<span class=""></span></strong></header>
|
|
<table class="regtable" style="margin-top: 0;">
|
|
<colgroup><col width="200"><col width="400" /><col width="200" /><col /></colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<th>회사명</th>
|
|
<td><input type="text" class="form-control dev" name="asname" value="@ViewBag.Taxinvoice.invoicerCorpName" /></td>
|
|
<th>대표자</th>
|
|
<td><input type="text" class="form-control dev" name="ceoname" value="@ViewBag.Taxinvoice.invoicerCEOName" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>사업자등록번호</th>
|
|
<td><input type="text" class="form-control dev" name="brno" value="@ViewBag.Taxinvoice.invoicerCorpNum" /></td>
|
|
<th>업태</th>
|
|
<td><input type="text" class="form-control dev" name="btype" value="@ViewBag.Taxinvoice.invoicerBizType" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>종목</th>
|
|
<td><input type="text" class="form-control dev" name="bkind" value="@ViewBag.Taxinvoice.invoicerBizClass" /></td>
|
|
<th>사업장주소</th>
|
|
<td><input type="text" class="form-control dev" name="asaddr" value="@ViewBag.Taxinvoice.invoicerAddr" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>담당자</th>
|
|
<td><input type="text" class="form-control dev" name="manname" value="@ViewBag.Taxinvoice.invoicerContactName" /></td>
|
|
<th>연락처</th>
|
|
<td><input type="text" class="form-control dev" name="telno" value="@ViewBag.Taxinvoice.invoicerTEL" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>이메일주소</th>
|
|
<td><input type="text" class="form-control dev" name="email" value="@ViewBag.Taxinvoice.invoicerEmail" /></td>
|
|
<th>문서번호</th>
|
|
<td><input type="text" class="form-control dev" name="email" value="@ViewBag.Taxinvoice.invoicerMgtKey" placeholder="결제일-결제번호?" /></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<section class="panel panel-default">
|
|
<header class="panel-heading"><strong><i class="fa fa-bars"></i> 발행업체정보<span class=""></span></strong></header>
|
|
<table class="regtable" style="margin-top: 0;">
|
|
<colgroup><col width="200"><col width="400" /><col width="200" /><col /></colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<th>회사명</th>
|
|
<td><input type="text" class="form-control dev" name="asname" value="@t.asname" /></td>
|
|
<th>대표자</th>
|
|
<td><input type="text" class="form-control dev" name="ceoname" value="@t.ceoname" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>사업자등록번호</th>
|
|
<td><input type="text" class="form-control dev" name="brno" value="@t.brno" /></td>
|
|
<th>법인등록번호</th>
|
|
<td><input type="text" class="form-control dev" name="grno" value="@t.grno" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>업태</th>
|
|
<td><input type="text" class="form-control dev" name="btype" value="@t.btype" /></td>
|
|
<th>종목</th>
|
|
<td><input type="text" class="form-control dev" name="bkind" value="@t.bkind" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>담당자</th>
|
|
<td><input type="text" class="form-control dev" name="manname" value="@t.manname" /></td>
|
|
<th>연락처</th>
|
|
<td><input type="text" class="form-control dev" name="telno" value="@t.telno" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>이메일주소</th>
|
|
<td><input type="text" class="form-control dev" name="email" value="@t.email" /></td>
|
|
<th style="background-color: #ffef98">발행일</th>
|
|
<td>
|
|
<input type="text" data-date-format="yyyy-mm-dd" class="form-control dev refundtime input-sm input-s datepicker-input form-control dev " name="taxdate" value="@(t.taxdate==null?"":t.taxdate.Value.ToString("yyyy-MM-dd"))" />
|
|
<input type="hidden" class="form-control dev" name="iscancel" value="@t.iscancel" />
|
|
<label><input type="checkbox" id="iscanceled" /> 발행취소</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>사업장주소</th>
|
|
<td colspan="3"><input type="text" class="form-control dev" name="asaddr" readonly="readonly" value="@t.asaddr" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>첨부파일</th>
|
|
<td colspan="3">
|
|
<ul>
|
|
@foreach (var f in Model.FileList)
|
|
{
|
|
<li><a href="/aCommon/DownFile?fno=@f.fileno">@f.orgname</a></li>
|
|
}
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>영수구분</th>
|
|
<td colspan="3">@(t.isreceipt == 0 ? "청구" : "영수")</td>
|
|
</tr>
|
|
<tr>
|
|
<th>기재사항</th>
|
|
<td colspan="3"><input type="text" class="form-control dev" name="taxinfo" value="@t.taxinfo" /></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<input type="hidden" name="taxno" value="@t.taxno" />
|
|
<input type="hidden" name="payno" value="@t.payno" />
|
|
<input type="hidden" name="cno" value="@t.cno" />
|
|
<div class="text-center">
|
|
<a href="#" class="btn btn-primary" onclick="save();">저장</a>
|
|
<a href="#" class="btn btn-default" onclick="$('#dform').attr('action', '/croom/tax');golist();">목록</a>
|
|
</div>
|
|
@Html.Partial("./Partial/dform", Model)
|
|
</form>
|
|
<form id="dform" method="post" action="/croom/tax">
|
|
@Html.Partial("./Partial/dform", Model, new ViewDataDictionary { { "preform", 1 } })
|
|
</form>
|
|
@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>
|
|
$(document).ready(function () {
|
|
if ('@(t.iscancel)' == '1') {
|
|
$("input:checkbox[id='iscanceled']").prop("checked", true);
|
|
} else {
|
|
$("input:checkbox[id='iscanceled']").prop("checked", false);
|
|
}
|
|
});
|
|
function gotab() {
|
|
$("#dform").attr("action", "/croom/taxsmart").submit();
|
|
}
|
|
function save() {
|
|
$("input[name=iscancel]").val($("input:checkbox[id='iscanceled']").prop("checked") ? 1 : 0);
|
|
cap("/acommon/paytaxsave", "sform", "cbsave");
|
|
}
|
|
function cbsave() {
|
|
if (capResult.code == 1000) {
|
|
msg("저장되었습니다.", null, null, null, null, "bglayer();rfs(0,'sform');");
|
|
} else if (capResult.code == -1) {
|
|
msg("이미 발행요청건이 존재합니다.");
|
|
}
|
|
else {
|
|
msgadmin();
|
|
}
|
|
}
|
|
</script>
|
|
}
|