677 lines
37 KiB
Plaintext
677 lines
37 KiB
Plaintext
@model NP.Model.VMMy
|
|
|
|
<style>
|
|
.lctQr {
|
|
}
|
|
|
|
.lctQr > span {
|
|
color: black;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.lctQr span.current {
|
|
color: blue;
|
|
}
|
|
</style>
|
|
<div class="mpgInfo">
|
|
<ul>
|
|
<li>증빙서류는 현금영수증이나 전자계산서 중 하나만 출력할 수 있습니다.</li>
|
|
<li>환급금 지급내역서는 환급을 신청한 강좌만 출력하실 수 있습니다.</li>
|
|
</ul>
|
|
</div>
|
|
<form id="dform" method="post" action="/My/Document">
|
|
@Html.HiddenFor(w => w.tabidx)
|
|
@Html.HiddenFor(m => m.pagenum)
|
|
</form>
|
|
<div class="lctQr">
|
|
<span class="@(Model.tabidx == 0 ? "current" : "" )" onclick="tabChange(0);" id="lblAll">신규과정</span> |
|
|
<span class="@(Model.tabidx == 1 ? "current" : "" )" onclick="tabChange(1);" id="lblOff">이전과정</span>
|
|
</div>
|
|
@if (Model.tabidx == 0)
|
|
{
|
|
<table class="lctAply">
|
|
<colgroup>
|
|
<col width="*" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th>강좌명</th>
|
|
<th>위탁계약서</th>
|
|
<th>입교통지서</th>
|
|
<th>수료증</th>
|
|
<th>계산서/영수증</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model.Lects)
|
|
{
|
|
<tr>
|
|
<th>
|
|
<div class="ltaList">
|
|
<a href="#" style="cursor:default">
|
|
<h5>
|
|
<em>@(item.tseq)기</em>
|
|
<span class="nav">@item.cshapename</span>
|
|
@Html.Raw(item.isrebate == 1 ? "<span class=\"grn\">환급</span>" : "")
|
|
<b>@item.cname</b>
|
|
</h5>
|
|
<dl class="ltaDl">
|
|
@if (item.status == 1)
|
|
{
|
|
<dd>교육기간 : @item.sdate.Value.ToString("yy-MM-dd") ~ @(item.edate.Value.ToString("yy-MM-dd"))</dd>
|
|
if (item.cshape == 2 && item.estart > Convert.ToDateTime("1900-01-01") && item.eend > Convert.ToDateTime("1900-01-01"))
|
|
{
|
|
@:| 집체교육일자 : @("[" + item.studyplacename + "] " + string.Format("{0}", item.estart.ToString("yy-MM-dd")))
|
|
}
|
|
<dd>결제금액 : @(item.payamt)원</dd>
|
|
}
|
|
else
|
|
{
|
|
var isAllDays = (item.retime == null ? String.Empty : Convert.ToDateTime(item.retime).ToString("yyyy-MM-dd")) == "2099-12-31";
|
|
if (isAllDays)
|
|
{
|
|
if (item.cshape == 1)
|
|
{
|
|
<dd>교육기간 : 상시</dd>
|
|
}
|
|
else
|
|
{
|
|
<dd>교육기간 : 상시</dd>
|
|
}
|
|
}
|
|
<dd>미결제 : @(item.payamt)원</dd>
|
|
}
|
|
</dl>
|
|
</a>
|
|
</div>
|
|
</th>
|
|
<td class="ltaBtn" data-th="위탁계약서 : ">
|
|
@if (item.pstatus == 1 && item.isrebate == 1 && item.status == 1)
|
|
{
|
|
<a href="#" onclick="javascript: educontract(@(item.lectno));"><img src="~/img/mypage/print.png"><br />인쇄</a>
|
|
}
|
|
else
|
|
{
|
|
@Html.Raw("-")
|
|
}
|
|
</td>
|
|
<td class="ltaBtn" data-th="입교통지서 : ">
|
|
@if (item.status == 1 || item.status == 2)
|
|
{
|
|
<a href="#" onclick="javascript: eduannotation(@(item.lectno));"><img src="~/img/mypage/print.png"><br />[인쇄]</a>
|
|
}
|
|
else
|
|
{
|
|
@Html.Raw("-")
|
|
}
|
|
</td>
|
|
<td class="ltaBtn" data-th="수료증 : ">
|
|
@if (item.iscomplete == 1 && item.status == 1)
|
|
{
|
|
<a href="#" onclick="javascript: certification(@(item.lectno));"><img src="~/img/mypage/print.png"><br />[인쇄]</a>
|
|
}
|
|
else
|
|
{
|
|
@Html.Raw("-")
|
|
}
|
|
</td>
|
|
<td class="ltaBtn" data-th="계산서/영수증 : ">
|
|
@if (item.pstatus == 1 && item.rstatus == 0)
|
|
{
|
|
if (item.ptype == 6)
|
|
{
|
|
@Html.Raw("-")
|
|
}
|
|
else if (item.ptype == 1 && item.ispg == 1) /*신용카드*/
|
|
{
|
|
<a href="#" onclick="viewtax('@(item.pgkey)', '@(Helpers.MD5Hash(ViewBag.mid + item.pgkey + ViewBag.mertkey))')">[인쇄]</a>
|
|
}
|
|
else if (item.ptype == 3 && item.ispg == 1) /*가상계좌*/
|
|
{
|
|
if (item.iscashrct == 1) /*현금영수증신청*/
|
|
{
|
|
if (!string.IsNullOrEmpty(item.cshrpgkey) && item.cshrpgkey != "0") //현금영수증 승인번호가 있으면 영수증팝업 호출
|
|
{
|
|
<a href="#" onclick="viewtaxcash('@(item.payno)')">[인쇄]</a>
|
|
}
|
|
else
|
|
{
|
|
<a href="#" onclick="viewtax('@(item.pgkey)', '@(Helpers.MD5Hash(ViewBag.mid + item.pgkey + ViewBag.mertkey))')">[인쇄]</a>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (item.taxno > 0) /*세금계산서신청*/
|
|
{
|
|
if (item.iscancel != 1 && item.taxdate2 != null && !string.IsNullOrEmpty(item.mgtkey) && item.statecode >= 300) /*취소 and 발행일 and 세금계산서문서번호 */
|
|
{
|
|
@*<a href="#" onclick="viewtaxinvoice('@(item.payno)')">[인쇄]</a>*@
|
|
<a href="#" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
|
|
}else if (item.iscancel != 1 && item.taxdate2 != null && item.ischeck == 1)
|
|
{
|
|
<a href="#" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
|
|
}
|
|
else if (item.iscancel == 1) /*취소시 일반영수증*/
|
|
{
|
|
<a href="#" onclick="viewtax('@(item.pgkey)', '@(Helpers.MD5Hash(ViewBag.mid + item.pgkey + ViewBag.mertkey))')">[인쇄]</a>
|
|
}
|
|
else
|
|
{
|
|
if(item.ischeck == 1)
|
|
{
|
|
<a href="#" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
|
|
}
|
|
else
|
|
{
|
|
<a href="#" onclick="showtax('@(item.payno)')">[신청중]</a>
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
//if (item.payoktime < Convert.ToDateTime(DateTime.Now.AddMonths(1).ToString("yyyy-MM-11"))) /*입금확인후 익월 10일 이내까지 요청가능*/
|
|
//{
|
|
<a href="#" onclick="calltax(@(item.payno),'@(string.Format("{0}:{1}:{2}:{3}:{4}:{5}:{6}", item.payamt.ToString("#,0") + "원", item.payoktime.ToString("yy-MM-dd"), item.ptypename2, item.ispg == 1 ? "PG" : "현장결제", item.itemname, item.pipayamt.ToString("#,0") + "원", item.pino))')">[요청]</a>
|
|
@*<a href="#" onclick="viewtax('@(item.pgkey)', '@(Helpers.MD5Hash(ViewBag.mid + item.pgkey + ViewBag.mertkey))')">[인쇄]</a>*@
|
|
@*}
|
|
else
|
|
{
|
|
<a href="#" onclick="viewtax('@(item.pgkey)', '@(Helpers.MD5Hash(ViewBag.mid + item.pgkey + ViewBag.mertkey))')">[인쇄]</a>
|
|
}*@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (item.ptype == 3 && item.ispg == 1 && item.iscashrct != 1 && item.taxno > 0) /*가상계좌*/
|
|
{
|
|
if (item.iscancel != 1 && item.taxdate2 != null && !string.IsNullOrEmpty(item.mgtkey) && item.statecode >= 300) /*취소 and 발행일 and 세금계산서문서번호 */
|
|
{
|
|
@*<a href="#" onclick="viewtaxinvoice('@(item.payno)')">[인쇄]</a>*@
|
|
<a href="#" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
|
|
}else if(item.iscancel != 1 && item.taxdate2 != null && item.ischeck == 1)
|
|
{
|
|
<a href="#" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
|
|
}
|
|
else if (item.iscancel == 1) /*취소시 일반영수증*/
|
|
{
|
|
@Html.Raw("-")
|
|
}
|
|
else
|
|
{
|
|
if(item.ischeck == 1)
|
|
{
|
|
<a href="#" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
|
|
}
|
|
else
|
|
{
|
|
<a href="#" onclick="showtax('@(item.payno)')">[신청중]</a>
|
|
}
|
|
}
|
|
}
|
|
else if (item.ptype == 3 && item.ispg == 1 && item.iscashrct != 1)
|
|
{
|
|
<a href="#" onclick="calltax(@(item.payno),'@(string.Format("{0}:{1}:{2}:{3}:{4}:{5}:{6}", item.payamt.ToString("#,0") + "원", item.payoktime.ToString("yy-MM-dd"), item.ptypename2, item.ispg == 1 ? "PG" : "현장결제", item.itemname, item.pipayamt.ToString("#,0") + "원", item.pino))')">[요청]</a>
|
|
}
|
|
else
|
|
{
|
|
@Html.Raw("-")
|
|
}
|
|
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
else
|
|
{
|
|
<table class="lctAply">
|
|
<colgroup>
|
|
<col width="*" />
|
|
<col width="10%" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th>강좌명</th>
|
|
<th>수료증</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model.Lects)
|
|
{
|
|
<tr>
|
|
<th>
|
|
<div class="ltaList">
|
|
<a href="#" style="cursor:default">
|
|
<h5>
|
|
<span class="nav">@item.cshapename2</span>
|
|
@Html.Raw(item.isrebate == 1 ? "<span class=\"grn\">환급</span>" : "")
|
|
<b>@item.cname</b>
|
|
</h5>
|
|
<dl class="ltaDl">
|
|
<dd>교육기간 : @item.sstime.Value.ToString("yy-MM-dd") ~ @(item.setime.Value.ToString("yy-MM-dd"))</dd>
|
|
</dl>
|
|
</a>
|
|
</div>
|
|
</th>
|
|
<td class="ltaBtn" data-th="수료증 : ">
|
|
<a href="#" onclick="javascript: certificationpast(@(item.lectno));"><img src="~/img/mypage/print.png"><br />[인쇄]</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
<div class="mpgPop mpgPopFull" style="display:none;" id="pop1">
|
|
<div>
|
|
<div>
|
|
<div class="mpgPopWrap wdth650">
|
|
<div class="mpgPopTitle"><h5>계산서발행요청</h5><a href="#" onclick="javascript:mpgPopClose();"></a></div>
|
|
<div class="mpgPopScroll">
|
|
<div class="odrPop pop1box">
|
|
<form id="mform" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" id="pinos" name="pinos" value="" />
|
|
<input type="hidden" id="mptpayno" name="payno" value="" />
|
|
<input type="hidden" id="asaddr" name="asaddr" value="" />
|
|
<h4 class="bskTitle">상품선택</h4>
|
|
<table class="odrTable th150">
|
|
<tr><th>총결제액/입금일</th><td id="mpttxt1"></td></tr>
|
|
<tr><th>결제방법</th><td id="mpttxt2"></td></tr>
|
|
<tr>
|
|
<th>신청강좌</th>
|
|
<td id="mpttxt3"></td>
|
|
</tr>
|
|
<tr>
|
|
<th>발행요청금액</th>
|
|
<td id="mpttxt4"></td>
|
|
</tr>
|
|
<tr>
|
|
<th>청구구분</th>
|
|
<td>
|
|
<ul class="bakRadio">
|
|
<li><input type="radio" name="isreceipt" id="isreceipt1" value="1" checked="checked" /><label for="isreceipt1">영수</label></li>
|
|
<li><input type="radio" name="isreceipt" id="isreceipt0" value="0" /><label for="isreceipts0">청구</label></li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="pd5">
|
|
<th>계산서날짜</th>
|
|
<td><input type="text" name="taxdatereq" id="taxdatereq" data-date-format="yyyy-mm-dd" class="datepicker-input" value="" autocomplete="off" /></td>
|
|
</tr>
|
|
</table>
|
|
<h4 class="bskTitle">발행업체 정보</h4>
|
|
<table class="odrTable th150">
|
|
<tr class="pd5"><th>회사명</th><td><input type="text" name="asname" id="asname" value="" /></td></tr>
|
|
<tr class="pd5">
|
|
<th>대표자</th>
|
|
<td><input type="text" name="ceoname" id="ceoname" value="" /></td>
|
|
</tr>
|
|
<tr class="pd5">
|
|
<th>사업자등록번호</th>
|
|
<td><input type="text" name="brno" id="brno" value="" maxlength="12" /></td>
|
|
</tr>
|
|
<tr class="pd5" style="display:none;">
|
|
<th>법인등록번호</th>
|
|
<td><input type="text" name="grno" id="grno" value="" maxlength="14" /></td>
|
|
</tr>
|
|
<tr class="pd5">
|
|
<th>업태</th>
|
|
<td><input type="text" name="btype" id="btype" value="" /></td>
|
|
</tr>
|
|
<tr class="pd5">
|
|
<th>종목</th>
|
|
<td><input type="text" name="bkind" id="bkind" value="" /></td>
|
|
</tr>
|
|
<tr class="pd5">
|
|
<th>담당자</th>
|
|
<td><input type="text" name="manname" id="manname" value="" /></td>
|
|
</tr>
|
|
<tr class="pd5">
|
|
<th>연락처</th>
|
|
<td><input type="text" name="telno" id="telno" value="" /></td>
|
|
</tr>
|
|
<tr class="pd5">
|
|
<th>이메일주소</th>
|
|
<td><input type="text" name="email" id="email" value="" /></td>
|
|
</tr>
|
|
<tr class="pd5 postbox">
|
|
<th rowspan="3">사업장주소</th>
|
|
<td>
|
|
<input class="postno" id="post" name="post" readonly style="background-color:#ddd;float:left;width:auto;" type="text" value="">
|
|
<a href="#" onclick="getpost2('.pd5');" class="postSearch">우편번호검색</a>
|
|
</td>
|
|
</tr>
|
|
<tr class="pd5 postbox">
|
|
<td>
|
|
<input class="postadr" id="address1" name="address1" placeholder="주소입력" readonly style="background-color:#ddd;" type="text" value="">
|
|
</td>
|
|
</tr>
|
|
<tr class="pd5 postbox">
|
|
<td>
|
|
<input class="postadrsub" id="address2" name="address2" placeholder="나머지 주소입력" type="text" value="" maxlength="200">
|
|
</td>
|
|
</tr>
|
|
@*<tr class="pd5" id="file">
|
|
<th>사업자등록증첨부</th>
|
|
<td><input type="file" name="file1" id="file1" value="" /></td>
|
|
</tr>*@
|
|
<tr class="pd5">
|
|
<th>기재사항</th>
|
|
<td><input type="text" name="taxinfo" id="taxinfo" value="" /></td>
|
|
</tr>
|
|
</table>
|
|
<ul class="odrPopBtn col1" id="paytaxbtn">
|
|
<li><a href="#" onclick="save()" class="bk">계산서 발행요청</a></li>
|
|
</ul>
|
|
</form>
|
|
</div><!-- clsPopCont -->
|
|
</div>
|
|
</div><!-- clsPopWrap -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="mpgPop mpgPopFull" style="display:none;" id="pop2">
|
|
<div>
|
|
<div>
|
|
<div class="mpgPopWrap wdth650">
|
|
<div class="mpgPopTitle"><h5>계산서발행요청</h5><a href="#" onclick="javascript:mpgPopClose();"></a></div>
|
|
<div class="mpgPopScroll">
|
|
<div class="odrPop pop2box">
|
|
<h4 class="bskTitle">발행업체 정보</h4>
|
|
<table class="odrTable th150">
|
|
<tr class="pd5"><th>회사명</th><td><input type="text" name="tasname" id="tasname" disabled value="" /></td></tr>
|
|
<tr class="pd5">
|
|
<th>대표자</th>
|
|
<td><input type="text" name="tceoname" id="tceoname" disabled value="" /></td>
|
|
</tr>
|
|
<tr class="pd5">
|
|
<th>사업자등록번호</th>
|
|
<td><input type="text" name="tbrno" id="tbrno" disabled value="" maxlength="12" /></td>
|
|
</tr>
|
|
<tr class="pd5" style="display:none;">
|
|
<th>법인등록번호</th>
|
|
<td><input type="text" name="tgrno" id="tgrno" disabled value="" maxlength="14" /></td>
|
|
</tr>
|
|
<tr class="pd5">
|
|
<th>업태</th>
|
|
<td><input type="text" name="tbtype" id="tbtype" disabled value="" /></td>
|
|
</tr>
|
|
<tr class="pd5">
|
|
<th>종목</th>
|
|
<td><input type="text" name="tbkind" id="tbkind" disabled value="" /></td>
|
|
</tr>
|
|
<tr class="pd5">
|
|
<th>담당자</th>
|
|
<td><input type="text" name="tmanname" id="tmanname" disabled value="" /></td>
|
|
</tr>
|
|
<tr class="pd5">
|
|
<th>연락처</th>
|
|
<td><input type="text" name="ttelno" id="ttelno" disabled value="" /></td>
|
|
</tr>
|
|
<tr class="pd5">
|
|
<th>이메일주소</th>
|
|
<td><input type="text" name="temail" id="temail" disabled value="" /></td>
|
|
</tr>
|
|
<tr class="pd5">
|
|
<th>사업장주소</th>
|
|
<td><input type="text" name="tasaddr" id="tasaddr" disabled value="" /></td>
|
|
</tr>
|
|
@*<tr class="pd5" id="file">
|
|
<th style="height:51px;">사업자등록증첨부</th>
|
|
<td id="tfile" ></td>
|
|
</tr>*@
|
|
<tr class="pd5">
|
|
<th>기재사항</th>
|
|
<td><input type="text" name="ttaxinfo" id="ttaxinfo" disabled value="" /></td>
|
|
</tr>
|
|
<tr class="pd5">
|
|
<th style="height:51px;">청구구분</th>
|
|
<td >
|
|
<ul class="bakRadio">
|
|
<li><input type="radio" name="tisreceipt" id="tisreceipt1" value="1" disabled /><label for="isreceipt1">영수</label></li>
|
|
<li><input type="radio" name="tisreceipt" id="tisreceipt0" value="0" disabled /><label for="isreceipts0">청구</label></li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="pd5">
|
|
<th>계산서날짜</th>
|
|
<td><input type="text" name="ttaxdatereq" id="ttaxdatereq" disabled value="" /></td>
|
|
</tr>
|
|
</table>
|
|
</div><!-- clsPopCont -->
|
|
</div>
|
|
</div><!-- clsPopWrap -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="postlayer" class="daumpost"><a href="#" class="btn btn-xxs btn-select closedaumpost" onclick="closeDaumPostcode();">close</a></div>
|
|
@Html.Pager2((int)Model.pagenum, 10, Model.pagerowcount, Model.pagetotalcount, "gopage", "dform")
|
|
@section styles{
|
|
<style>
|
|
.postSearch {
|
|
padding-bottom: 10px;
|
|
display: block;
|
|
height: 40px;
|
|
line-height: 40px;
|
|
text-align: center;
|
|
background: #878787;
|
|
color: #fff;
|
|
width: 120px;
|
|
right: 0;
|
|
top: 5px;
|
|
float:right;
|
|
}
|
|
</style>
|
|
}
|
|
@section scripts{
|
|
@Html.Partial("./Partial/ScriptPost")
|
|
@Html.Partial("./Partial/ScriptDate")
|
|
<script src="~/js/moment.js"></script>
|
|
<script>
|
|
function certification(lectno) {
|
|
var pop = window.open('@ViewBag.reporturl/certification.aspx?lectno='+lectno, "certprint", "width=" + (screen.availWidth) + ", height=" + (screen.availHeight) + ", scrollbars=yes, resizable=yes, status=no, location=no, left=0, top=0");
|
|
if (pop == null) {
|
|
msg("팝업이 차단되어 있습니다. 차단을 해제해 주세요.");
|
|
}
|
|
}
|
|
function certificationpast(lectno) {
|
|
var pop = window.open('@ViewBag.reporturl/certificationpast.aspx?lectno='+lectno, "certprint", "width=" + (screen.availWidth) + ", height=" + (screen.availHeight) + ", scrollbars=yes, resizable=yes, status=no, location=no, left=0, top=0");
|
|
if (pop == null) {
|
|
msg("팝업이 차단되어 있습니다. 차단을 해제해 주세요.");
|
|
}
|
|
}
|
|
function educontract(lectno) {
|
|
var pop = window.open('@ViewBag.reporturl/educontract.aspx?lectno='+lectno, "certprint", "width=" + (screen.availWidth) + ", height=" + (screen.availHeight) + ", scrollbars=yes, resizable=yes, status=no, location=no, left=0, top=0");
|
|
if (pop == null) {
|
|
msg("팝업이 차단되어 있습니다. 차단을 해제해 주세요.");
|
|
}
|
|
}
|
|
function eduannotation(lectno) {
|
|
var pop = window.open('@ViewBag.reporturl/eduannotation.aspx?lectno='+lectno, "certprint", "width=" + (screen.availWidth) + ", height=" + (screen.availHeight) + ", scrollbars=yes, resizable=yes, status=no, location=no, left=0, top=0");
|
|
if (pop == null) {
|
|
msg("팝업이 차단되어 있습니다. 차단을 해제해 주세요.");
|
|
}
|
|
}
|
|
function viewtax(pgkey, authdata) {
|
|
showReceiptByTID('@(ViewBag.mid)', pgkey, authdata);
|
|
}
|
|
function viewtaxcash(payno) {
|
|
var seqno = '001';
|
|
var LGD_OID = "@(@System.Web.Configuration.WebConfigurationManager.AppSettings["PAYMENT_CLASSIFICATION"])" + String(payno);
|
|
var service_type = "@(@System.Web.Configuration.WebConfigurationManager.AppSettings["CST_PLATFORM"])";
|
|
showCashReceipts('@(ViewBag.mid)', LGD_OID, seqno, 'CAS', service_type);
|
|
}
|
|
function viewtaxinvoice(payno) {
|
|
capp('/fcommon/getpaytaxinvoiceprinturl', { payno: payno }, 'cbviewtaxinvoice');
|
|
}
|
|
function cbviewtaxinvoice() {
|
|
if (capResult.code == 1000) {
|
|
var pop = window.open(capResult.obj, "taxprint", "width=900, height=720, scrollbars=yes, resizable=yes, status=no, location=no, left=0, top=0");
|
|
if (pop == null) {
|
|
msg("팝업이 차단되어 있습니다. 차단을 해제해 주세요.");
|
|
}
|
|
} else {
|
|
if (capResult.msg != "") {
|
|
msg(capResult.msg);
|
|
} else {
|
|
msgadmin();
|
|
}
|
|
}
|
|
}
|
|
function calltax(payno, datas) {
|
|
if (datas != null) {
|
|
$("#mpttxt1").text(datas.split(':')[0] + " (" + datas.split(':')[1] + ")");
|
|
$("#mpttxt2").text(datas.split(':')[2] + " (" + datas.split(':')[3] + ")");
|
|
$("#mpttxt3").text(datas.split(':')[4]);
|
|
$("#mpttxt4").text(datas.split(':')[5]);
|
|
$("#pinos").val(datas.split(':')[6])
|
|
$("#mptpayno").val(payno);
|
|
capp("/fcommon/paytaxget", { payno: payno}, "cbpaytaxget");
|
|
} else {
|
|
$("#mpttxt1").text("");
|
|
$("#mpttxt2").text("");
|
|
$("#mpttxt3").text("");
|
|
$("#mpttxt4").text("");
|
|
$("#pinos").val("")
|
|
$("#mptpayno").val("");
|
|
msg("결제완료내역만 계산서요청하실 수 있습니다.");
|
|
}
|
|
}
|
|
function cbpaytaxget() {
|
|
var h = capResult.obj.h;
|
|
var d = capResult.obj.d;
|
|
if (h != null && d.length > 0) {
|
|
setv("asname", h.asname);
|
|
setv("ceoname", h.ceoname);
|
|
setv("brno", h.brno);
|
|
setv("grno", h.grno);
|
|
setv("btype", h.btype);
|
|
setv("bkind", h.bkind);
|
|
//setv("manname", h.manname);
|
|
//setv("telno", h.telno);
|
|
//setv("email", h.email);
|
|
setv("post", h.post);
|
|
setv("address1", h.address1);
|
|
setv("address2", h.address2);
|
|
$('html, body').addClass('lock');
|
|
$("#pop1").fadeIn("fast", function () {
|
|
$(".pop1box").scrollTop(0);
|
|
});
|
|
} else {
|
|
msg("이미 계산서를 접수중이거나 환불된 결제건입니다.");
|
|
}
|
|
}
|
|
function save() {
|
|
if (val("taxdatereq") == "") {
|
|
msg("계산서날짜를 입력해주세요.");
|
|
}
|
|
else if (check("asname", null, "회사명을 입력해주세요.")) { }
|
|
else if (check("ceoname", null, "대표자명을 입력해주세요.")) { }
|
|
else if (check("brno", null, "사업자등록번호를 입력해주세요.")) { }
|
|
//else if (check("grno", null, "법인등록번호를 입력해주세요.")) { }
|
|
else if (check("btype", null, "업태를 입력해주세요.")) { }
|
|
else if (check("bkind", null, "종목을 입력해주세요.")) { }
|
|
//else if (check("manname", null, "담당자를 입력해주세요.")) { }
|
|
//else if (check("telno", null, "연락처를 입력해주세요.")) { }
|
|
else if (check("email", null, "이메일주소를 입력해주세요.")) { }
|
|
else if (!isemail(val("email"))) { msg("이메일 형식이 올바르지 않습니다. 다시 입력해주세요."); }
|
|
else if (check("post", null, "사업장주소를 입력해주세요.")) { }
|
|
else if (check("address1", null, "사업장주소를 입력해주세요.")) { }
|
|
//else if (check("address2", null, "사업장주소를 입력해주세요.")) { }
|
|
else {
|
|
setv("asaddr", $("#address1").val() + " " + $("#address2").val() )
|
|
confirmtoggle(true, "계산서발행요청 이후, 수정 및 철회는 고객문의 게시판을 이용해주십시오. 계산서 발행 요청을 완료하시겠습니까?", "gogo()");
|
|
}
|
|
}
|
|
function gogo() {
|
|
capfileform('/fcommon/paytaxsave', 'mform', 'cbgogo');
|
|
}
|
|
function cbgogo() {
|
|
if (capResult.code == 1000) {
|
|
msg("접수되었습니다.");
|
|
setTimeout(function () {
|
|
$("#mform").attr("action", "/My/Document").submit()
|
|
}, 1000);
|
|
} else if (capResult.code == -1) {
|
|
msg("이미 신청된 계산서가 존재합니다.");
|
|
}
|
|
}
|
|
function showtax(payno) {
|
|
$("#tasname").val("");
|
|
$("#tceoname").val("");
|
|
$("#tbrno").val("");
|
|
$("#tgrno").val("");
|
|
$("#tbtype").val("");
|
|
$("#tbkind").val("");
|
|
$("#tmanname").val("");
|
|
$("#ttelno").val("");
|
|
$("#temail").val("");
|
|
$("#tasaddr").val("");
|
|
$("#ttaxinfo").val("");
|
|
//$("#tfile").html("");
|
|
$("input:radio[name='tisreceipt']").prop('checked', false);
|
|
capp('/fcommon/showpaytax', { payno: payno }, "cbshowtax");
|
|
}
|
|
function cbshowtax() {
|
|
var paytax = capResult.obj.paytax;
|
|
var filelist = capResult.obj.filelist;
|
|
if (capResult.code == 1000) {
|
|
if (paytax != null) {
|
|
$("#tasname").val(paytax.asname);
|
|
$("#tceoname").val(paytax.ceoname);
|
|
$("#tbrno").val(paytax.brno);
|
|
$("#tgrno").val(paytax.grno);
|
|
$("#tbtype").val(paytax.btype);
|
|
$("#tbkind").val(paytax.bkind);
|
|
$("#tmanname").val(paytax.manname);
|
|
$("#ttelno").val(paytax.telno);
|
|
$("#temail").val(paytax.email);
|
|
$("#tasaddr").val(paytax.asaddr);
|
|
$("#ttaxinfo").val(paytax.taxinfo);
|
|
$('html, body').addClass('lock');
|
|
|
|
//if (filelist.length > 0) {
|
|
// var file = "";
|
|
// $.each(filelist, function (i, d) {
|
|
// file += "<a href=\"/focommon/downfile?fno=" + d.fileno + "\">" + d.orgname + "</a><br/>";
|
|
// });
|
|
// $("#tfile").html(file);
|
|
//}
|
|
$("input:radio[name='tisreceipt']:radio[value='" + paytax.isreceipt + "']").prop('checked', true);
|
|
$("#ttaxdatereq").val(moment(paytax.taxdatereq).isValid() ? moment(paytax.taxdatereq).format('YYYY-MM-DD') : "");
|
|
$("#pop2").fadeIn("fast", function () {
|
|
$(".pop2box").scrollTop(0);
|
|
});
|
|
} else {
|
|
msg("신청된 계산서가 없습니다.");
|
|
}
|
|
} else {
|
|
msg("신청된 계산서가 없습니다.");
|
|
}
|
|
}
|
|
function tabChange(tabidx) {
|
|
if (tabidx != @(Model.tabidx)) {
|
|
$("#tabidx").val(tabidx);
|
|
$("#pagenum").val(1);
|
|
$("#dform").submit();
|
|
}
|
|
}
|
|
</script>
|
|
@if (ViewBag.isPayTest == "1")
|
|
{
|
|
//테스트일 경우
|
|
<script language="JavaScript" src="https://pgweb.tosspayments.com:7086/WEB_SERVER/js/receipt_link.js"></script>
|
|
}
|
|
else
|
|
{
|
|
//서비스일 경우
|
|
<script language="JavaScript" src="https://pgweb.tosspayments.com/WEB_SERVER/js/receipt_link.js"></script>
|
|
}
|
|
} |