YNICTE/FO/Views/My/Document.cshtml

887 lines
43 KiB
Plaintext
Raw Normal View History

2020-11-30 15:17:17 +09:00
@model NP.Model.VMMy
2025-06-20 13:12:53 +09:00
@section styles {
<style type="text/css">
.lctQr {
}
.lctQr > span {
color: black;
cursor: pointer;
}
.lctQr span.current {
color: blue;
}
.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;
}
.lctQrCustom {
font-size: 14pt;
}
.ltaListLink {
cursor: default;
}
2020-12-08 10:18:12 +09:00
2025-06-20 13:12:53 +09:00
.ltaListStrongHidden {
display: none;
2020-12-08 10:18:12 +09:00
}
2025-06-20 13:12:53 +09:00
.ltaListDdRed {
color: red;
2020-12-08 10:18:12 +09:00
}
2025-06-20 13:12:53 +09:00
.grnRed {
color: red;
}
.redVerticalMiddle {
vertical-align: middle;
}
</style>
}
<!-- div[class=mpgInfo] -->
2020-11-30 15:17:17 +09:00
<div class="mpgInfo">
<ul>
2025-06-20 13:12:53 +09:00
<li>
<strong>
- 21년 7월1일 전에 수료한 과정은
<span style="color:red;">이전과정 탭에서 확인</span> 가능합니다
</strong>
</li>
2020-11-30 15:17:17 +09:00
</ul>
</div>
2025-06-20 13:12:53 +09:00
<!-- // div[class=mpgInfo] -->
<!-- form[id=dform] -->
2021-01-04 15:38:45 +09:00
<form id="dform" method="post" action="/My/Document">
2021-04-28 15:36:20 +09:00
@Html.HiddenFor(w => w.tabidx)
2021-05-11 17:18:27 +09:00
@Html.HiddenFor(m => m.pagenum)
2021-01-04 15:38:45 +09:00
</form>
2025-06-20 13:12:53 +09:00
<!-- // form[id=dform] -->
<!-- div[class=lctQr] -->
<div class="lctQr lctQrCustom">
<span class="@(Model.tabidx == 0 ? "current" : "")" onclick="tabChange(0);" id="lblAll">신규과정</span>&nbsp;|&nbsp;
<span class="@(Model.tabidx == 1 ? "current" : "")" onclick="tabChange(1);" id="lblOff">이전과정</span>
2020-11-30 15:17:17 +09:00
</div>
2025-06-20 13:12:53 +09:00
<!-- // div[class=lctQr] -->
2021-01-04 15:38:45 +09:00
@if (Model.tabidx == 0)
{
2025-06-20 13:12:53 +09:00
<!-- table[class=lctAply] -->
2021-01-04 15:38:45 +09:00
<table class="lctAply">
<colgroup>
<col width="*" />
<col width="10%" />
<col width="10%" />
<col width="10%" />
<col width="10%" />
</colgroup>
<thead>
2020-11-30 15:17:17 +09:00
<tr>
2021-01-04 15:38:45 +09:00
<th>강좌명</th>
<th>위탁계약서</th>
<th>입교통지서</th>
<th>수료증</th>
<th>계산서/영수증</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.Lects)
{
string[] arrEduTerm = new string[3];
2025-06-20 13:12:53 +09:00
arrEduTerm = new string[3];
if (item.sdate != null)
{
2025-06-20 13:12:53 +09:00
arrEduTerm[0] = item.sdate.Value.ToString("yyyy년 MM월 dd일");
}
2025-06-20 13:12:53 +09:00
if (item.edate != null)
{
arrEduTerm[1] = item.edate.Value.ToString("yyyy년 MM월 dd일");
}
arrEduTerm[2] = string.Format("{0} ~ {1}", arrEduTerm[0], arrEduTerm[1]);
2021-01-04 15:38:45 +09:00
<tr>
<th>
2025-06-20 13:12:53 +09:00
<!-- div[class=ltaList] -->
2021-01-04 15:38:45 +09:00
<div class="ltaList">
2025-06-20 13:12:53 +09:00
<a href="javascript:;" class="ltaListLink">
2021-01-04 15:38:45 +09:00
<h5>
2025-06-20 13:12:53 +09:00
@{
string cshapeClass = "";
if (item.cshape == 0)
{
cshapeClass = "org";
}
else if (item.cshape == 1)
{
cshapeClass = "nav_grn";
}
else
{
cshapeClass = "nav_blu";
}
}
<span class="@cshapeClass">@item.cshapename</span>
@if (item.studyplace == null)
{
2025-06-20 13:12:53 +09:00
<strong class="ltaListStrongHidden">@item.studyplacename 교육장</strong>
}
2025-06-20 13:12:53 +09:00
else
{
<strong>@item.studyplacename 교육장</strong>
}
2021-01-04 15:38:45 +09:00
<b>@item.cname</b>
</h5>
<dl class="ltaDl">
@if (item.status == 1)
2020-12-30 11:11:52 +09:00
{
2025-06-20 13:12:53 +09:00
string rebateClass = item.isrebate == 1 ? "grnRed" : "grnRed";
string rebateText = item.isrebate == 1 ? "환급과정" : "비환급과정";
2025-06-20 13:12:53 +09:00
<dt class="lectstatus">@item.lectStatus</dt>
<dd>교육기간 : @arrEduTerm[2]</dd>
<dt></dt>
if (item.cshape != 1)
{
<dd style="color:red;">교육종료일 : @(string.Format("{0}", item.estart.ToString("yyyy년 MM월 dd일")))</dd>
<dt></dt>
}
<dt>@item.studytime 시간과정</dt>
2025-06-20 13:12:53 +09:00
<span class="@rebateClass">@rebateText</span>
2020-12-30 11:11:52 +09:00
}
2021-01-04 15:38:45 +09:00
else
{
2025-06-20 13:12:53 +09:00
if (item.cshape == 1)
{
string rebateClass = item.isrebate == 1 ? "grnRed" : "grnRed";
string rebateText = item.isrebate == 1 ? "환급과정" : "비환급과정";
2025-06-20 13:12:53 +09:00
<dt class="lectstatus">@item.lectStatus</dt>
<dd>교육기간 : @arrEduTerm[2]</dd>
<dt></dt>
<dt>@item.studytime 시간과정</dt>
<span class="@rebateClass">@rebateText</span>
}
else
{
string rebateClass = item.isrebate == 1 ? "redVerticalMiddle" : "redVerticalMiddle";
string rebateText = item.isrebate == 1 ? "환급과정" : "비환급과정";
2025-06-20 13:12:53 +09:00
<dt class="lectstatus">@item.lectStatus</dt>
<dd>교육기간 : @arrEduTerm[2]</dd>
<dt></dt>
<dd class="ltaListDdRed">교육종료일 : @(string.Format("{0}", item.estart.ToString("yyyy년 MM월 dd일")))</dd>
<dt></dt>
<dt>@item.studytime 시간과정</dt>
<span class="@rebateClass">@rebateText</span>
}
2021-01-04 15:38:45 +09:00
}
</dl>
</a>
</div>
2025-06-20 13:12:53 +09:00
<!-- // div[class=ltaList] -->
2021-01-04 15:38:45 +09:00
</th>
<td class="ltaBtn" data-th="위탁계약서 : ">
2025-06-20 13:12:53 +09:00
@if (item.cshape == 1)
{
// pms 6995 (필수계속교육x , 환급과정일때만 출력버튼 보이게)
if (item.typeedu != 107 && item.isrebate > 0)
{
2025-06-20 13:12:53 +09:00
<a href="javascript:;" onclick="educontract(@(item.lectno));">
<img src="~/img/mypage/print.png"><br />인쇄
</a>
}
else
{
@Html.Raw("-")
}
2025-06-20 13:12:53 +09:00
}
else
{
@Html.Raw("-")
}
2021-01-04 15:38:45 +09:00
</td>
<td class="ltaBtn" data-th="입교통지서 : ">
2021-08-23 15:10:15 +09:00
@if (item.status == 1 || item.status == 2)
{
2025-06-20 13:12:53 +09:00
<a href="javascript:;" onclick="eduannotation(@(item.lectno));">
<img src="~/img/mypage/print.png"><br />[인쇄]
</a>
}
else
{
@Html.Raw("-")
}
2021-01-04 15:38:45 +09:00
</td>
<td class="ltaBtn" data-th="수료증 : ">
@if (item.iscomplete == 1 && item.status == 1)
2020-11-30 15:17:17 +09:00
{
2025-06-20 13:12:53 +09:00
<a href="javascript:;" onclick="certification(@(item.lectno));">
<img src="~/img/mypage/print.png"><br />[인쇄]
</a>
2021-01-04 15:38:45 +09:00
}
2020-11-30 15:17:17 +09:00
else
{
2021-01-04 15:38:45 +09:00
@Html.Raw("-")
}
</td>
2021-08-23 15:10:15 +09:00
<td class="ltaBtn" data-th="계산서/영수증 : ">
2021-01-04 15:38:45 +09:00
@if (item.pstatus == 1 && item.rstatus == 0)
{
if (item.ptype == 6)
{
@Html.Raw("-")
}
2025-06-20 13:12:53 +09:00
else if (item.ptype == 1 && item.ispg == 1) // 신용카드
2020-11-30 15:17:17 +09:00
{
2025-06-20 13:12:53 +09:00
<a href="javascript:;" onclick="viewtax('@(item.pgkey)', '@(Helpers.MD5Hash(ViewBag.mid + item.pgkey + ViewBag.mertkey))')">[인쇄]</a>
2020-11-30 15:17:17 +09:00
}
2025-06-20 13:12:53 +09:00
else if (item.ptype == 3 && item.ispg == 1) // 가상계좌
2020-11-30 15:17:17 +09:00
{
2025-06-20 13:12:53 +09:00
if (item.iscashrct == 1) // 현금영수증신청
2020-12-09 08:54:54 +09:00
{
2025-06-20 13:12:53 +09:00
if (!string.IsNullOrEmpty(item.cshrpgkey) && item.cshrpgkey != "0") // 현금영수증 승인번호가 있으면 영수증팝업 호출
{
2025-06-20 13:12:53 +09:00
<a href="javascript:;" onclick="viewtaxcash('@(item.payno)')">[인쇄]</a>
}
else
{
2025-06-20 13:12:53 +09:00
<a href="javascript:;" onclick="viewtax('@(item.pgkey)', '@(Helpers.MD5Hash(ViewBag.mid + item.pgkey + ViewBag.mertkey))')">[인쇄]</a>
}
2020-12-09 08:54:54 +09:00
}
else
{
2025-06-20 13:12:53 +09:00
if (item.taxno > 0) // 세금계산서신청
2021-01-04 15:38:45 +09:00
{
2025-06-20 13:12:53 +09:00
if (item.iscancel != 1 && item.taxdate2 != null && !string.IsNullOrEmpty(item.mgtkey) && item.statecode >= 300) // 취소 and 발행일 and 세금계산서문서번호
2021-04-28 15:36:20 +09:00
{
2025-06-20 13:12:53 +09:00
<a href="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
}
else if (item.iscancel != 1 && item.taxdate2 != null && item.ischeck == 1)
{
2025-06-20 13:12:53 +09:00
<a href="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
2021-04-28 15:36:20 +09:00
}
2025-06-20 13:12:53 +09:00
else if (item.iscancel == 1) // 취소시 일반영수증
2021-04-28 15:36:20 +09:00
{
2025-06-20 13:12:53 +09:00
<a href="javascript:;" onclick="viewtax('@(item.pgkey)', '@(Helpers.MD5Hash(ViewBag.mid + item.pgkey + ViewBag.mertkey))')">[인쇄]</a>
2021-04-28 15:36:20 +09:00
}
else
{
if (item.ischeck == 1)
{
2025-06-20 13:12:53 +09:00
<a href="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
}
else
{
2025-06-20 13:12:53 +09:00
<a href="javascript:;" onclick="showtax('@(item.payno)')">[신청중]</a>
}
2021-04-28 15:36:20 +09:00
}
2021-01-04 15:38:45 +09:00
}
else
{
2025-06-20 13:12:53 +09:00
<a href="javascript:;" 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>
2021-01-04 15:38:45 +09:00
}
2020-12-09 08:54:54 +09:00
}
2020-11-30 15:17:17 +09:00
}
}
2021-01-04 15:38:45 +09:00
else
{
2025-06-20 13:12:53 +09:00
if (item.ptype == 3 && item.ispg == 1 && item.iscashrct != 1 && item.taxno > 0) // 가상계좌
{
2025-06-20 13:12:53 +09:00
if (item.iscancel != 1 && item.taxdate2 != null && !string.IsNullOrEmpty(item.mgtkey) && item.statecode >= 300) // 취소 and 발행일 and 세금계산서문서번호
{
2025-06-20 13:12:53 +09:00
<a href="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
}
else if (item.iscancel != 1 && item.taxdate2 != null && item.ischeck == 1)
{
2025-06-20 13:12:53 +09:00
<a href="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
}
2025-06-20 13:12:53 +09:00
else if (item.iscancel == 1) // 취소시 일반영수증
{
@Html.Raw("-")
}
else
{
if (item.ischeck == 1)
{
2025-06-20 13:12:53 +09:00
<a href="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
}
else
{
2025-06-20 13:12:53 +09:00
<a href="javascript:;" onclick="showtax('@(item.payno)')">[신청중]</a>
}
2021-08-23 15:10:15 +09:00
}
}
else if (item.ptype == 3 && item.ispg == 1 && item.iscashrct != 1)
{
2025-06-20 13:12:53 +09:00
<a href="javascript:;" 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("-")
}
2021-01-04 15:38:45 +09:00
}
</td>
</tr>
}
</tbody>
</table>
2025-06-20 13:12:53 +09:00
<!-- // table[class=lctAply] -->
2021-01-04 15:38:45 +09:00
}
else
{
2025-06-20 13:12:53 +09:00
<!-- table[class=lctAply] -->
2021-01-04 15:38:45 +09:00
<table class="lctAply">
<colgroup>
<col width="*" />
<col width="10%" />
</colgroup>
<thead>
<tr>
<th>강좌명</th>
<th>수료증</th>
2020-11-30 15:17:17 +09:00
</tr>
2021-01-04 15:38:45 +09:00
</thead>
<tbody>
@foreach (var item in Model.Lects)
{
<tr>
<th>
2025-06-20 13:12:53 +09:00
<!-- div[class=ltaList] -->
2021-01-04 15:38:45 +09:00
<div class="ltaList">
2025-06-20 13:12:53 +09:00
<a href="javascript:;" class="ltaListLink">
2021-01-04 15:38:45 +09:00
<h5>
<span class="nav">@item.cshapename2</span>
2025-06-20 13:12:53 +09:00
@{
string rebateClass = item.isrebate == 1 ? "grn" : "";
string rebateText = item.isrebate == 1 ? "환급" : "";
}
<span class="@rebateClass">@rebateText</span>
2021-01-04 15:38:45 +09:00
<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>
2025-06-20 13:12:53 +09:00
<!-- // div[class=ltaList] -->
2021-01-04 15:38:45 +09:00
</th>
<td class="ltaBtn" data-th="수료증 : ">
2025-06-20 13:12:53 +09:00
<a href="javascript:;" onclick="certificationpast(@(item.lectno));">
<img src="~/img/mypage/print.png"><br />[인쇄]
</a>
2021-01-04 15:38:45 +09:00
</td>
</tr>
}
</tbody>
</table>
2025-06-20 13:12:53 +09:00
<!-- // table[class=lctAply] -->
2021-01-04 15:38:45 +09:00
}
2025-06-20 13:12:53 +09:00
<!-- div[id=pop1] -->
2020-12-09 08:54:54 +09:00
<div class="mpgPop mpgPopFull" style="display:none;" id="pop1">
<div>
<div>
2025-06-20 13:12:53 +09:00
<!-- div[class=mpgPopWrap] -->
2020-12-09 08:54:54 +09:00
<div class="mpgPopWrap wdth650">
2025-06-20 13:12:53 +09:00
<div class="mpgPopTitle">
<h5>계산서발행요청</h5>
<a href="javascript:;" onclick="mpgPopClose();"></a>
</div>
2020-12-09 08:54:54 +09:00
<div class="mpgPopScroll">
2025-06-20 13:12:53 +09:00
<!-- div[class=odrPop pop1box] -->
2020-12-09 08:54:54 +09:00
<div class="odrPop pop1box">
<form id="mform" method="post" enctype="multipart/form-data">
2021-01-04 15:38:45 +09:00
<input type="hidden" id="pinos" name="pinos" value="" />
2020-12-09 08:54:54 +09:00
<input type="hidden" id="mptpayno" name="payno" value="" />
2021-04-28 15:36:20 +09:00
<input type="hidden" id="asaddr" name="asaddr" value="" />
<h4 class="bskTitle">상품선택</h4>
<table class="odrTable th150">
2025-06-20 13:12:53 +09:00
<tr>
<th>총결제액/입금일</th>
<td id="mpttxt1"></td>
</tr>
<tr>
<th>결제방법</th>
<td id="mpttxt2"></td>
</tr>
2021-04-28 15:36:20 +09:00
<tr>
<th>신청강좌</th>
<td id="mpttxt3"></td>
</tr>
<tr>
<th>발행요청금액</th>
<td id="mpttxt4"></td>
</tr>
<tr>
<th>청구구분</th>
<td>
<ul class="bakRadio">
2025-06-20 13:12:53 +09:00
<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="isreceipt0">청구</label>
</li>
2021-04-28 15:36:20 +09:00
</ul>
</td>
</tr>
<tr class="pd5">
<th>계산서날짜</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="taxdatereq" id="taxdatereq" data-date-format="yyyy-mm-dd" class="datepicker-input" value="" autocomplete="off" />
</td>
</tr>
2021-04-28 15:36:20 +09:00
</table>
2020-12-09 08:54:54 +09:00
<h4 class="bskTitle">발행업체 정보</h4>
<table class="odrTable th150">
2025-06-20 13:12:53 +09:00
<tr class="pd5">
<th>회사명</th>
<td>
<input type="text" name="asname" id="asname" value="" />
</td>
</tr>
2020-12-09 08:54:54 +09:00
<tr class="pd5">
<th>대표자</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="ceoname" id="ceoname" value="" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
<tr class="pd5">
<th>사업자등록번호</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="brno" id="brno" value="" maxlength="12" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
<tr class="pd5" style="display:none;">
2020-12-09 08:54:54 +09:00
<th>법인등록번호</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="grno" id="grno" value="" maxlength="14" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
<tr class="pd5">
<th>업태</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="btype" id="btype" value="" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
<tr class="pd5">
<th>종목</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="bkind" id="bkind" value="" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
<tr class="pd5">
<th>담당자</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="manname" id="manname" value="" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
<tr class="pd5">
<th>연락처</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="telno" id="telno" value="" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
<tr class="pd5">
<th>이메일주소</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="email" id="email" value="" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
2021-04-28 15:36:20 +09:00
<tr class="pd5 postbox">
<th rowspan="3">사업장주소</th>
<td>
2025-06-20 13:12:53 +09:00
<input class="postno" id="post" name="post" readonly style="background-color:#ddd; float:left; width:auto;" type="text" value="" />
<a href="javascript:;" onclick="getpost2('.pd5');" class="postSearch">우편번호검색</a>
2021-04-28 15:36:20 +09:00
</td>
</tr>
<tr class="pd5 postbox">
<td>
2025-06-20 13:12:53 +09:00
<input class="postadr" id="address1" name="address1" placeholder="주소입력" readonly style="background-color:#ddd;" type="text" value="" />
2021-04-28 15:36:20 +09:00
</td>
</tr>
<tr class="pd5 postbox">
<td>
2025-06-20 13:12:53 +09:00
<input class="postadrsub" id="address2" name="address2" placeholder="나머지 주소입력" type="text" value="" maxlength="200" />
2021-04-28 15:36:20 +09:00
</td>
</tr>
2020-12-09 08:54:54 +09:00
<tr class="pd5">
<th>기재사항</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="taxinfo" id="taxinfo" value="" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
</table>
2021-04-28 15:36:20 +09:00
<ul class="odrPopBtn col1" id="paytaxbtn">
2025-06-20 13:12:53 +09:00
<li>
<a href="javascript:;" onclick="save()" class="bk">계산서 발행요청</a>
</li>
2021-04-28 15:36:20 +09:00
</ul>
</form>
2025-06-20 13:12:53 +09:00
</div>
<!-- // div[class=odrPop pop1box] -->
2020-12-09 08:54:54 +09:00
</div>
2025-06-20 13:12:53 +09:00
</div>
<!-- // div[class=mpgPopWrap] -->
2020-12-09 08:54:54 +09:00
</div>
</div>
</div>
2025-06-20 13:12:53 +09:00
<!-- // div[id=pop1] -->
<!-- div[id=pop2] -->
2020-12-09 08:54:54 +09:00
<div class="mpgPop mpgPopFull" style="display:none;" id="pop2">
<div>
<div>
2025-06-20 13:12:53 +09:00
<!-- div[class=mpgPopWrap] -->
2020-12-09 08:54:54 +09:00
<div class="mpgPopWrap wdth650">
2025-06-20 13:12:53 +09:00
<div class="mpgPopTitle">
<h5>계산서발행요청</h5>
<a href="javascript:;" onclick="mpgPopClose();"></a>
</div>
2020-12-09 08:54:54 +09:00
<div class="mpgPopScroll">
2025-06-20 13:12:53 +09:00
<!-- div[class=odrPop pop2box] -->
2020-12-09 08:54:54 +09:00
<div class="odrPop pop2box">
<h4 class="bskTitle">발행업체 정보</h4>
<table class="odrTable th150">
2025-06-20 13:12:53 +09:00
<tr class="pd5">
<th>회사명</th>
<td>
<input type="text" name="tasname" id="tasname" disabled value="" />
</td>
</tr>
2020-12-09 08:54:54 +09:00
<tr class="pd5">
<th>대표자</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="tceoname" id="tceoname" disabled value="" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
<tr class="pd5">
<th>사업자등록번호</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="tbrno" id="tbrno" disabled value="" maxlength="12" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
<tr class="pd5" style="display:none;">
2020-12-09 08:54:54 +09:00
<th>법인등록번호</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="tgrno" id="tgrno" disabled value="" maxlength="14" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
<tr class="pd5">
<th>업태</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="tbtype" id="tbtype" disabled value="" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
<tr class="pd5">
<th>종목</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="tbkind" id="tbkind" disabled value="" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
<tr class="pd5">
<th>담당자</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="tmanname" id="tmanname" disabled value="" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
<tr class="pd5">
<th>연락처</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="ttelno" id="ttelno" disabled value="" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
<tr class="pd5">
<th>이메일주소</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="temail" id="temail" disabled value="" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
2021-04-28 15:36:20 +09:00
<tr class="pd5">
<th>사업장주소</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="tasaddr" id="tasaddr" disabled value="" />
</td>
2021-04-28 15:36:20 +09:00
</tr>
2020-12-09 08:54:54 +09:00
<tr class="pd5">
<th>기재사항</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="ttaxinfo" id="ttaxinfo" disabled value="" />
</td>
2020-12-09 08:54:54 +09:00
</tr>
2021-04-28 15:36:20 +09:00
<tr class="pd5">
<th style="height:51px;">청구구분</th>
<td>
2021-04-28 15:36:20 +09:00
<ul class="bakRadio">
2025-06-20 13:12:53 +09:00
<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="isreceipt0">청구</label>
</li>
2021-04-28 15:36:20 +09:00
</ul>
</td>
</tr>
<tr class="pd5">
2021-08-23 15:10:15 +09:00
<th>계산서날짜</th>
2025-06-20 13:12:53 +09:00
<td>
<input type="text" name="ttaxdatereq" id="ttaxdatereq" disabled value="" />
</td>
</tr>
2020-12-09 08:54:54 +09:00
</table>
2025-06-20 13:12:53 +09:00
</div>
<!-- // div[class=odrPop pop2box] -->
2020-12-09 08:54:54 +09:00
</div>
2025-06-20 13:12:53 +09:00
</div>
<!-- // div[class=mpgPopWrap] -->
2020-12-09 08:54:54 +09:00
</div>
</div>
</div>
2025-06-20 13:12:53 +09:00
<!-- // div[id=pop2] -->
<div id="postlayer" class="daumpost">
<a href="javascript:;" class="btn btn-xxs btn-select closedaumpost" onclick="closeDaumPostcode();">close</a>
</div>
2021-05-11 17:18:27 +09:00
@Html.Pager2((int)Model.pagenum, 10, Model.pagerowcount, Model.pagetotalcount, "gopage", "dform")
2025-06-20 13:12:53 +09:00
@section scripts {
2021-04-28 15:36:20 +09:00
@Html.Partial("./Partial/ScriptPost")
@Html.Partial("./Partial/ScriptDate")
<script src="~/js/moment.js"></script>
<script>
2025-06-20 13:12:53 +09:00
@*/** 인증서 출력 함수 **/*@
2020-11-30 15:17:17 +09:00
function certification(lectno) {
2025-06-20 13:12:53 +09:00
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");
2020-11-30 15:17:17 +09:00
if (pop == null) {
msg("팝업이 차단되어 있습니다. 차단을 해제해 주세요.");
}
}
2025-06-20 13:12:53 +09:00
@*/** 이전 인증서 출력 함수 **/*@
2021-01-04 15:38:45 +09:00
function certificationpast(lectno) {
2025-06-20 13:12:53 +09:00
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");
2021-01-04 15:38:45 +09:00
if (pop == null) {
msg("팝업이 차단되어 있습니다. 차단을 해제해 주세요.");
}
}
2025-06-20 13:12:53 +09:00
@*/** 위탁계약서 출력 함수 **/*@
2020-11-30 15:17:17 +09:00
function educontract(lectno) {
2025-06-20 13:12:53 +09:00
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");
2020-11-30 15:17:17 +09:00
if (pop == null) {
msg("팝업이 차단되어 있습니다. 차단을 해제해 주세요.");
}
}
2025-06-20 13:12:53 +09:00
@*/** 입교통지서 출력 함수 **/*@
2020-11-30 15:17:17 +09:00
function eduannotation(lectno) {
2025-06-20 13:12:53 +09:00
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");
2020-11-30 15:17:17 +09:00
if (pop == null) {
msg("팝업이 차단되어 있습니다. 차단을 해제해 주세요.");
}
}
2025-06-20 13:12:53 +09:00
@*/** 영수증 출력 함수 **/*@
function viewtax(pgkey, authdata) {
showReceiptByTID('@(ViewBag.mid)', pgkey, authdata);
}
2025-06-20 13:12:53 +09:00
@*/** 현금영수증 출력 함수 **/*@
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);
2021-04-28 15:36:20 +09:00
}
2025-06-20 13:12:53 +09:00
@*/** 세금계산서 출력 URL 가져오기 **/*@
2021-04-28 15:36:20 +09:00
function viewtaxinvoice(payno) {
capp('/fcommon/getpaytaxinvoiceprinturl', { payno: payno }, 'cbviewtaxinvoice');
2021-04-28 15:36:20 +09:00
}
2025-06-20 13:12:53 +09:00
@*/** 세금계산서 출력 콜백 **/*@
2021-04-28 15:36:20 +09:00
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();
}
}
2020-12-08 10:18:12 +09:00
}
2025-06-20 13:12:53 +09:00
@*/** 세금계산서 요청 데이터 설정 **/*@
2020-12-09 08:54:54 +09:00
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]);
2025-06-20 13:12:53 +09:00
$("#pinos").val(datas.split(':')[6]);
2020-12-09 08:54:54 +09:00
$("#mptpayno").val(payno);
2025-06-20 13:12:53 +09:00
capp("/fcommon/paytaxget", { payno: payno }, "cbpaytaxget");
2020-12-09 08:54:54 +09:00
} else {
$("#mpttxt1").text("");
$("#mpttxt2").text("");
$("#mpttxt3").text("");
$("#mpttxt4").text("");
2025-06-20 13:12:53 +09:00
$("#pinos").val("");
2020-12-09 08:54:54 +09:00
$("#mptpayno").val("");
msg("결제완료내역만 계산서요청하실 수 있습니다.");
}
}
2025-06-20 13:12:53 +09:00
@*/** 세금계산서 데이터 가져오기 콜백 **/*@
function cbpaytaxget() {
2020-12-09 08:54:54 +09:00
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);
2021-04-28 15:36:20 +09:00
setv("post", h.post);
setv("address1", h.address1);
setv("address2", h.address2);
2020-12-09 08:54:54 +09:00
$('html, body').addClass('lock');
$("#pop1").fadeIn("fast", function () {
$(".pop1box").scrollTop(0);
});
} else {
msg("이미 계산서를 접수중이거나 환불된 결제건입니다.");
}
}
2025-06-20 13:12:53 +09:00
@*/** 계산서 발행 요청 저장 **/*@
2020-12-09 08:54:54 +09:00
function save() {
if (val("taxdatereq") == "") {
2021-08-23 15:10:15 +09:00
msg("계산서날짜를 입력해주세요.");
}
else if (check("asname", null, "회사명을 입력해주세요.")) { }
2020-12-09 08:54:54 +09:00
else if (check("ceoname", null, "대표자명을 입력해주세요.")) { }
else if (check("brno", null, "사업자등록번호를 입력해주세요.")) { }
else if (check("btype", null, "업태를 입력해주세요.")) { }
else if (check("bkind", null, "종목을 입력해주세요.")) { }
else if (check("email", null, "이메일주소를 입력해주세요.")) { }
2025-06-20 13:12:53 +09:00
else if (!isemail(val("email"))) {
msg("이메일 형식이 올바르지 않습니다. 다시 입력해주세요.");
}
2021-04-28 15:36:20 +09:00
else if (check("post", null, "사업장주소를 입력해주세요.")) { }
else if (check("address1", null, "사업장주소를 입력해주세요.")) { }
2020-12-09 08:54:54 +09:00
else {
2025-06-20 13:12:53 +09:00
setv("asaddr", $("#address1").val() + " " + $("#address2").val());
2020-12-09 08:54:54 +09:00
confirmtoggle(true, "계산서발행요청 이후, 수정 및 철회는 고객문의 게시판을 이용해주십시오. 계산서 발행 요청을 완료하시겠습니까?", "gogo()");
}
}
2025-06-20 13:12:53 +09:00
@*/** 계산서 발행 요청 제출 **/*@
2020-12-09 08:54:54 +09:00
function gogo() {
capfileform('/fcommon/paytaxsave', 'mform', 'cbgogo');
}
2025-06-20 13:12:53 +09:00
@*/** 계산서 발행 요청 콜백 **/*@
2020-12-09 08:54:54 +09:00
function cbgogo() {
if (capResult.code == 1000) {
msg("접수되었습니다.");
setTimeout(function () {
2025-06-20 13:12:53 +09:00
$("#mform").attr("action", "/My/Document").submit();
2020-12-09 08:54:54 +09:00
}, 1000);
} else if (capResult.code == -1) {
msg("이미 신청된 계산서가 존재합니다.");
}
}
2025-06-20 13:12:53 +09:00
@*/** 계산서 요청 정보 조회 **/*@
2020-12-09 08:54:54 +09:00
function showtax(payno) {
$("#tasname").val("");
$("#tceoname").val("");
$("#tbrno").val("");
$("#tgrno").val("");
$("#tbtype").val("");
$("#tbkind").val("");
$("#tmanname").val("");
$("#ttelno").val("");
$("#temail").val("");
2021-04-28 15:36:20 +09:00
$("#tasaddr").val("");
2020-12-09 08:54:54 +09:00
$("#ttaxinfo").val("");
2021-04-28 15:36:20 +09:00
$("input:radio[name='tisreceipt']").prop('checked', false);
2020-12-09 08:54:54 +09:00
capp('/fcommon/showpaytax', { payno: payno }, "cbshowtax");
}
2025-06-20 13:12:53 +09:00
@*/** 계산서 정보 조회 콜백 **/*@
2020-12-09 08:54:54 +09:00
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);
2021-04-28 15:36:20 +09:00
$("#tasaddr").val(paytax.asaddr);
2020-12-09 08:54:54 +09:00
$("#ttaxinfo").val(paytax.taxinfo);
$('html, body').addClass('lock');
$("input:radio[name='tisreceipt']:radio[value='" + paytax.isreceipt + "']").prop('checked', true);
$("#ttaxdatereq").val(moment(paytax.taxdatereq).isValid() ? moment(paytax.taxdatereq).format('YYYY-MM-DD') : "");
2020-12-09 08:54:54 +09:00
$("#pop2").fadeIn("fast", function () {
$(".pop2box").scrollTop(0);
});
} else {
msg("신청된 계산서가 없습니다.");
}
} else {
msg("신청된 계산서가 없습니다.");
2021-01-04 15:38:45 +09:00
}
}
2025-06-20 13:12:53 +09:00
@*/** 탭 변경 함수 **/*@
2021-05-11 17:18:27 +09:00
function tabChange(tabidx) {
2021-01-04 15:38:45 +09:00
if (tabidx != @(Model.tabidx)) {
$("#tabidx").val(tabidx);
2021-05-11 17:18:27 +09:00
$("#pagenum").val(1);
2021-01-04 15:38:45 +09:00
$("#dform").submit();
}
2020-12-09 08:54:54 +09:00
}
</script>
2020-12-08 10:18:12 +09:00
@if (ViewBag.isPayTest == "1")
{
2025-06-20 13:12:53 +09:00
// 테스트일 경우
<script language="JavaScript" src="https://pgweb.tosspayments.com:7086/WEB_SERVER/js/receipt_link.js"></script>
2020-12-08 10:18:12 +09:00
}
else
{
2025-06-20 13:12:53 +09:00
// 서비스일 경우
2020-12-08 10:18:12 +09:00
<script language="JavaScript" src="https://pgweb.tosspayments.com/WEB_SERVER/js/receipt_link.js"></script>
}
2020-11-30 15:17:17 +09:00
}