pms 6995, 7022

This commit is contained in:
iyak 2025-06-20 04:12:53 +00:00
parent ce459225b6
commit 43d9782bd1
7 changed files with 1226 additions and 291 deletions

View File

@ -2501,6 +2501,8 @@
,b.cmno,b.cname,b.cshape,b.studytime
,b.rstime,b.retime
,b.sstime,b.setime
,b.TYPEEDU AS typeedus
,e1.typeedu
,c.tyear,c.tseq
,u.username,u.userid
,e1.asname
@ -2554,6 +2556,7 @@
) a
<include refid="sql.pagedynamic"></include>
</select>
<select id="lect.lecture.document.past" parameterClass="hashtable" resultClass="lect">
select no lectno,substr(a.cshape,1,3) cshapename2,a.cgname cname,a.ssdate sstime,a.sedate setime
,case when a.rprice> 0 then 1 else 0 end isrebate

View File

@ -213,7 +213,6 @@ namespace NP.FO.Controllers
{
vm.ispaycert = true;
vm.viewname4 = "https://" + Request.Url.Host + "/My/ReadyPayReturn";
//vm.viewname4 = GetConfig("fronturl") + "/My/ReadyPayReturn";
vm.viewname6 = GetConfig("pginfomobile").Split('|')[0] + "/My/ReadyPayReturn";
vm.previewname = "/Ready";
base.PayAll(vm);
@ -264,10 +263,9 @@ namespace NP.FO.Controllers
{
vm.cmm = Dao.Get<CM>("cm.cms", new Hashtable()).FirstOrDefault();
Hashtable hsData = new Hashtable();
var hsData = new Hashtable();
hsData.Add("userno", SUserInfo.UserNo);
hsData.Add("cgcode", vm.intval > 0 ? TestCode3 : null);
//hsData.Add("cshape", 2);
hsData.Add("issubtable", 1);
vm.Lects = Dao.Get<Lect>("lect.mylectures2", hsData);
@ -358,7 +356,6 @@ namespace NP.FO.Controllers
{
vm.ispayexam = true;
vm.viewname4 = "https://" + Request.Url.Host + "/My/ExamPayReturn";
//vm.viewname4 = GetConfig("fronturl") + "/My/ExamPayReturn";
vm.viewname6 = GetConfig("pginfomobile").Split('|')[0] + "/My/ExamPayReturn";
vm.previewname = "/Exam";
base.PayAll(vm);
@ -460,6 +457,7 @@ namespace NP.FO.Controllers
vm.pageviewcount = vm.Boards.Count();
return View(vm);
}
public ActionResult QNA(VMCC vm)
{
vm.Boards = Dao.Get<Board>("board.bs.forqna", new System.Collections.Hashtable() { { "bno", vm.BNo }, { "cno", SUserInfo.UserNo } });
@ -478,26 +476,29 @@ namespace NP.FO.Controllers
vm.Board.isreply = vm.BM.isreply;
vm.Board.isuseopening = vm.BM.isuseopening;
vm.Board.bmno = vm.BM.bmno;
if (vm.BM.isuseopening == 1)
{
vm.BMOs = Dao.Get<BoardMasterOpening>("board.bmos", vm.BM.bmno);
}
return View(vm);
}
public ActionResult Alarm(VMMy vm)
{
vm.Datas = Dao.Get<Data>("lect.myalarm", SUserInfo.UserNo);
return View(vm);
}
public ActionResult Memo(NP.Model.VMCC vm)
{
vm.Memos = InitM<Memo>();
//var ht = SetHash(vm);
//ht.Add("userno", SUserInfo.UserNo);
vm.Memos = Dao.Get<Memo>("common.list.rcv", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo } });
//vm.pagetotalcount = GetCount(vm.Memos.FirstOrDefault());
return View(vm);
}
public ActionResult MemoView(NP.Model.VMCC vm)
{
if (vm.sr == "r")
@ -533,20 +534,21 @@ namespace NP.FO.Controllers
public ActionResult MemoSend(NP.Model.VMCC vm)
{
vm.Memos = InitM<Memo>();
//var ht = SetHash(vm);
//ht.Add("userno", SUserInfo.UserNo);
vm.Memos = Dao.Get<Memo>("common.list.send", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo } });
if (vm.Memos.Count() > 0)
{
vm.Memos2 = Dao.Get<Memo>("common.list.senddata", new System.Collections.Hashtable() { { "mnos", string.Join(",", vm.Memos.Select(s => s.mno.ToString())) } });
}
//vm.pagetotalcount = GetCount(vm.Memos.FirstOrDefault());
return View(vm);
}
public ActionResult MyInfo(NP.Model.VMMy vm)
{
return View(vm);
}
public ActionResult MyInfoCheck(NP.Model.VMMy vm)
{
//sns인증
@ -563,8 +565,10 @@ namespace NP.FO.Controllers
return Redirect("/My/MyInfo");
}
}
vm.User = Dao.Get<Users>("users.users", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo } }).FirstOrDefault();
vm.ComCodes = GetComCodes("jobposition,job", true);
for (int i = vm.ComCodes.Count() - 1; i > -1; i--)
{
if (vm.ComCodes[i].isuse == 0 && (vm.ComCodes[i].cgroup != "jobposition" || (vm.ComCodes[i].cgroup == "jobposition" && vm.ComCodes[i].refcode != "9")))
@ -572,14 +576,29 @@ namespace NP.FO.Controllers
vm.ComCodes.RemoveAt(i);
}
}
return View(vm);
}
public ActionResult MyAssInfo(NP.Model.VMMy vm)
/// <summary>
/// 마이페이지 > 회사정보
/// </summary>
/// <param name="vm"></param>
/// <returns></returns>
public ActionResult MyAssInfo(VMMy vm)
{
vm.Assign = Dao.Get<Assign>("users.users.assign", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo } }).FirstOrDefault();
var p = new Hashtable();
#region + [vm.Assign] Get: users.users.assign
p.Clear();
p.Add("userno", SUserInfo.UserNo);
vm.Assign = Dao.Get<Assign>("users.users.assign", p).FirstOrDefault();
#endregion
if (vm.Assign != null)
{
vm.FileList = new List<File>() { };
if (vm.Assign.fgnobno != null)
{
vm.FileList = GetFiles(vm.Assign.fgnobno.Value);
@ -588,16 +607,85 @@ namespace NP.FO.Controllers
else
{
vm.Assign = new Assign() { };
//return Redirect("/");
}
return View(vm);
}
/// <summary>
/// 마이페이지 > 증빙서류 출력
/// </summary>
/// <param name="vm"></param>
/// <returns></returns>
public ActionResult Document(VMMy vm)
{
var p = new Hashtable();
ViewBag.reporturl = GetConfig("reporturl");
ViewBag.mid = (("test".Equals(GetConfig("CST_PLATFORM").Trim())) ? "t" : "") + GetConfig("CST_MID");
ViewBag.mertkey = GetConfig("LGD_MERTKEY");
if (vm.tabidx == 0)
{
vm.pagerowcount = vm.pagerowcount < 1 ? 10 : vm.pagerowcount;
#region + [vm.Lects] Get: lect.lecture.document
p.Clear();
var ht = SetHash(vm);
ht.Add("userno", SUserInfo.UserNo);
vm.Lects = Dao.Get<Lect>("lect.lecture.document", ht);
#endregion
vm.pagetotalcount = GetCount(vm.Lects.FirstOrDefault());
}
else
{
vm.pagerowcount = vm.pagerowcount < 1 ? 10 : vm.pagerowcount;
#region + [vm.Lects] Get: lect.lecture.document.past
p.Clear();
var ht = SetHash(vm);
ht.Add("userno", SUserInfo.UserNo);
vm.Lects = Dao.Get<Lect>("lect.lecture.document.past", ht);
#endregion
}
#region + vm.Lects.lectStatus
foreach (var item in vm.Lects)
{
if ((item.iscomplete == null || item.iscomplete == 0) && item.edate < DateTime.Now)
{
item.lectStatus = "미수료";
}
else if (item.iscomplete == 1 && item.edate < DateTime.Now)
{
item.lectStatus = "수료";
}
else if (item.pstatus == 22)
{
item.lectStatus = "미입금";
}
else if (item.sdate > DateTime.Now)
{
item.lectStatus = "입교확정";
}
else if (item.sdate <= DateTime.Now)
{
item.lectStatus = "교육진행중";
}
}
#endregion
return View(vm);
}
/*
public ActionResult Document(VMMy vm)
{
ViewBag.reporturl = GetConfig("reporturl");
ViewBag.mid = (("test".Equals(GetConfig("CST_PLATFORM").Trim())) ? "t" : "") + GetConfig("CST_MID");
ViewBag.mertkey = GetConfig("LGD_MERTKEY");
if (vm.tabidx == 0)
{
vm.pagerowcount = vm.pagerowcount < 1 ? 10 : vm.pagerowcount;
@ -625,7 +713,7 @@ namespace NP.FO.Controllers
{
item.lectStatus = "수료";
}
else if (/*item.sdate == null &&*/ item.pstatus == 22)
else if (item.pstatus == 22)
{
item.lectStatus = "미입금";
}
@ -642,5 +730,8 @@ namespace NP.FO.Controllers
return View(vm);
}
*/
}
}

View File

@ -756,6 +756,7 @@
<Content Include="Views\Course\SmartSearchResult.cshtml" />
<Content Include="Views\Course\info.cshtml" />
<Content Include="Views\Home\Index_20250403백업_추후에배포.cshtml" />
<Content Include="Views\My\Document_250617_삭제예정.cshtml" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Base\Base.csproj">

View File

@ -1,6 +1,7 @@
@model NP.Model.VMMy
<style>
@section styles {
<style type="text/css">
.lctQr {
}
@ -12,24 +13,75 @@
.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;
}
.ltaListStrongHidden {
display: none;
}
.ltaListDdRed {
color: red;
}
.grnRed {
color: red;
}
.redVerticalMiddle {
vertical-align: middle;
}
</style>
}
<!-- div[class=mpgInfo] -->
<div class="mpgInfo">
<ul>
@* <li>증빙서류는 현금영수증이나 전자계산서 중 하나만 출력할 수 있습니다.</li>
<li>환급금 지급내역서는 환급을 신청한 강좌만 출력하실 수 있습니다.</li>*@
<li><strong>- 21년 7월1일 전에 수료한 과정은 <span style="color:red;">이전과정 탭에서 확인</span> 가능합니다</strong></li>
<li>
<strong>
- 21년 7월1일 전에 수료한 과정은
<span style="color:red;">이전과정 탭에서 확인</span> 가능합니다
</strong>
</li>
</ul>
</div>
<!-- // div[class=mpgInfo] -->
<!-- form[id=dform] -->
<form id="dform" method="post" action="/My/Document">
@Html.HiddenFor(w => w.tabidx)
@Html.HiddenFor(m => m.pagenum)
</form>
<div class="lctQr" style="font-size:14pt;">
<!-- // 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>&nbsp;
<span class="@(Model.tabidx == 1 ? "current" : "")" onclick="tabChange(1);" id="lblOff">이전과정</span>
</div>
<!-- // div[class=lctQr] -->
@if (Model.tabidx == 0)
{
<!-- table[class=lctAply] -->
<table class="lctAply">
<colgroup>
<col width="*" />
@ -51,7 +103,6 @@
@foreach (var item in Model.Lects)
{
string[] arrEduTerm = new string[3];
{
arrEduTerm = new string[3];
if (item.sdate != null)
{
@ -61,20 +112,35 @@
{
arrEduTerm[1] = item.edate.Value.ToString("yyyy년 MM월 dd일");
}
arrEduTerm[2] = string.Format("{0} ~ {1}", arrEduTerm[0], arrEduTerm[1]);
}
<tr>
<th>
<!-- div[class=ltaList] -->
<div class="ltaList">
<a href="#" style="cursor:default">
<a href="javascript:;" class="ltaListLink">
<h5>
<span class="@(item.cshape == 0 ? "org" : item.cshape == 1 ? "nav_grn" : "nav_blu")">@item.cshapename</span>
@{
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)
{
<strong style="display:none;">@item.studyplacename 교육장</strong>
<strong class="ltaListStrongHidden">@item.studyplacename 교육장</strong>
}
else if (item.studyplace != null)
else
{
<strong>@item.studyplacename 교육장</strong>
}
@ -83,71 +149,66 @@
<dl class="ltaDl">
@if (item.status == 1)
{
<dt class="lectstatus">@item.lectStatus</dt>
@*if (item.pstatus != 22) { *@
string rebateClass = item.isrebate == 1 ? "grnRed" : "grnRed";
string rebateText = item.isrebate == 1 ? "환급과정" : "비환급과정";
@*<dd>교육기간 : @item.sdate.Value.ToString("yyyy년 MM월 dd일") ~ @(item.edate.Value.ToString("yyyy년 MM월 dd일"))</dd>*@
<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>
@Html.Raw(item.isrebate == 1 ? "<span class=\"grn\" style='color: red;'>환급과정</span>" : "<span class=\"grn\" style='color: red;'>비환급과정</span>")
@* <dd>결제금액 : @(item.payamt)원</dd>*@
<span class="@rebateClass">@rebateText</span>
}
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)
{
string rebateClass = item.isrebate == 1 ? "grnRed" : "grnRed";
string rebateText = item.isrebate == 1 ? "환급과정" : "비환급과정";
<dt class="lectstatus">@item.lectStatus</dt>
@*if (item.pstatus != 22)
{*@
<dd>교육기간 : @arrEduTerm[2]</dd>
<dt></dt>
@*}*@
@* <dd style="color:red;">교육종료일 : @(string.Format("{0}", item.estart.ToString("yyyy년 MM월 dd일")))</dd>
<dt></dt>*@
<dt>@item.studytime 시간과정</dt>
@Html.Raw(item.isrebate == 1 ? "<span class=\"grn\" style='color: red;'>환급과정</span>" : "<span class=\"grn\" style='color: red;'>비환급과정</span>")
<span class="@rebateClass">@rebateText</span>
}
else
{
string rebateClass = item.isrebate == 1 ? "redVerticalMiddle" : "redVerticalMiddle";
string rebateText = item.isrebate == 1 ? "환급과정" : "비환급과정";
<dt class="lectstatus">@item.lectStatus</dt>
@* if (item.pstatus != 22)
{*@
<dd>교육기간 : @arrEduTerm[2]</dd>
<dt></dt>
@*}*@
<dd style="color:red;">교육종료일 : @(string.Format("{0}", item.estart.ToString("yyyy년 MM월 dd일")))</dd>
<dd class="ltaListDdRed">교육종료일 : @(string.Format("{0}", item.estart.ToString("yyyy년 MM월 dd일")))</dd>
<dt></dt>
<dt>@item.studytime 시간과정</dt>
@Html.Raw(item.isrebate == 1 ? "<span class=\"red\" style='vertical-align: middle;'>환급과정</span>" : "<span class=\"red\" style='vertical-align: middle;'>비환급과정</span>")
<span class="@rebateClass">@rebateText</span>
}
@*}*@
}
</dl>
</a>
</div>
<!-- // div[class=ltaList] -->
</th>
<td class="ltaBtn" data-th="위탁계약서 : ">
@* @if ((item.pstatus == 1 || item.pstatus == 22) && item.isrebate == 1 && (item.status == 1 || item.status == 2))*@
@if (item.cshape == 1)
{
<a href="#" onclick="javascript: educontract(@(item.lectno));"><img src="~/img/mypage/print.png"><br />인쇄</a>
// pms 6995 (필수계속교육x , 환급과정일때만 출력버튼 보이게)
if (item.typeedu != 107 && item.isrebate > 0)
{
<a href="javascript:;" onclick="educontract(@(item.lectno));">
<img src="~/img/mypage/print.png"><br />인쇄
</a>
}
else
{
@Html.Raw("-")
}
}
else
{
@ -157,7 +218,9 @@
<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>
<a href="javascript:;" onclick="eduannotation(@(item.lectno));">
<img src="~/img/mypage/print.png"><br />[인쇄]
</a>
}
else
{
@ -167,7 +230,9 @@
<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>
<a href="javascript:;" onclick="certification(@(item.lectno));">
<img src="~/img/mypage/print.png"><br />[인쇄]
</a>
}
else
{
@ -181,81 +246,71 @@
{
@Html.Raw("-")
}
else if (item.ptype == 1 && item.ispg == 1) /*신용카드*/
else if (item.ptype == 1 && item.ispg == 1) // 신용카드
{
<a href="#" onclick="viewtax('@(item.pgkey)', '@(Helpers.MD5Hash(ViewBag.mid + item.pgkey + ViewBag.mertkey))')">[인쇄]</a>
<a href="javascript:;" onclick="viewtax('@(item.pgkey)', '@(Helpers.MD5Hash(ViewBag.mid + item.pgkey + ViewBag.mertkey))')">[인쇄]</a>
}
else if (item.ptype == 3 && item.ispg == 1) /*가상계좌*/
else if (item.ptype == 3 && item.ispg == 1) // 가상계좌
{
if (item.iscashrct == 1) /*현금영수증신청*/
if (item.iscashrct == 1) // 현금영수증신청
{
if (!string.IsNullOrEmpty(item.cshrpgkey) && item.cshrpgkey != "0") // 현금영수증 승인번호가 있으면 영수증팝업 호출
{
<a href="#" onclick="viewtaxcash('@(item.payno)')">[인쇄]</a>
<a href="javascript:;" onclick="viewtaxcash('@(item.payno)')">[인쇄]</a>
}
else
{
<a href="#" onclick="viewtax('@(item.pgkey)', '@(Helpers.MD5Hash(ViewBag.mid + item.pgkey + ViewBag.mertkey))')">[인쇄]</a>
<a href="javascript:;" onclick="viewtax('@(item.pgkey)', '@(Helpers.MD5Hash(ViewBag.mid + item.pgkey + ViewBag.mertkey))')">[인쇄]</a>
}
}
else
{
if (item.taxno > 0) /*세금계산서신청*/
if (item.taxno > 0) // 세금계산서신청
{
if (item.iscancel != 1 && item.taxdate2 != null && !string.IsNullOrEmpty(item.mgtkey) && item.statecode >= 300) /*취소 and 발행일 and 세금계산서문서번호 */
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>
<a href="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
}
else if (item.iscancel != 1 && item.taxdate2 != null && item.ischeck == 1)
{
<a href="#" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
<a href="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
}
else if (item.iscancel == 1) /*취소시 일반영수증*/
else if (item.iscancel == 1) // 취소시 일반영수증
{
<a href="#" onclick="viewtax('@(item.pgkey)', '@(Helpers.MD5Hash(ViewBag.mid + item.pgkey + ViewBag.mertkey))')">[인쇄]</a>
<a href="javascript:;" onclick="viewtax('@(item.pgkey)', '@(Helpers.MD5Hash(ViewBag.mid + item.pgkey + ViewBag.mertkey))')">[인쇄]</a>
}
else
{
if (item.ischeck == 1)
{
<a href="#" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
<a href="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
}
else
{
<a href="#" onclick="showtax('@(item.payno)')">[신청중]</a>
<a href="javascript:;" 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>
}*@
<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
{
if (item.ptype == 3 && item.ispg == 1 && item.iscashrct != 1 && item.taxno > 0) /*가상계좌*/
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 세금계산서문서번호 */
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>
<a href="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
}
else if (item.iscancel != 1 && item.taxdate2 != null && item.ischeck == 1)
{
<a href="#" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
<a href="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
}
else if (item.iscancel == 1) /*취소시 일반영수증*/
else if (item.iscancel == 1) // 취소시 일반영수증
{
@Html.Raw("-")
}
@ -263,32 +318,33 @@
{
if (item.ischeck == 1)
{
<a href="#" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
<a href="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
}
else
{
<a href="#" onclick="showtax('@(item.payno)')">[신청중]</a>
<a href="javascript:;" 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>
<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("-")
}
}
</td>
</tr>
}
</tbody>
</table>
<!-- // table[class=lctAply] -->
}
else
{
<!-- table[class=lctAply] -->
<table class="lctAply">
<colgroup>
<col width="*" />
@ -305,11 +361,16 @@ else
{
<tr>
<th>
<!-- div[class=ltaList] -->
<div class="ltaList">
<a href="#" style="cursor:default">
<a href="javascript:;" class="ltaListLink">
<h5>
<span class="nav">@item.cshapename2</span>
@Html.Raw(item.isrebate == 1 ? "<span class=\"grn\">환급</span>" : "")
@{
string rebateClass = item.isrebate == 1 ? "grn" : "";
string rebateText = item.isrebate == 1 ? "환급" : "";
}
<span class="@rebateClass">@rebateText</span>
<b>@item.cname</b>
</h5>
<dl class="ltaDl">
@ -317,21 +378,32 @@ else
</dl>
</a>
</div>
<!-- // div[class=ltaList] -->
</th>
<td class="ltaBtn" data-th="수료증 : ">
<a href="#" onclick="javascript: certificationpast(@(item.lectno));"><img src="~/img/mypage/print.png"><br />[인쇄]</a>
<a href="javascript:;" onclick="certificationpast(@(item.lectno));">
<img src="~/img/mypage/print.png"><br />[인쇄]
</a>
</td>
</tr>
}
</tbody>
</table>
<!-- // table[class=lctAply] -->
}
<!-- div[id=pop1] -->
<div class="mpgPop mpgPopFull" style="display:none;" id="pop1">
<div>
<div>
<!-- div[class=mpgPopWrap] -->
<div class="mpgPopWrap wdth650">
<div class="mpgPopTitle"><h5>계산서발행요청</h5><a href="#" onclick="javascript:mpgPopClose();"></a></div>
<div class="mpgPopTitle">
<h5>계산서발행요청</h5>
<a href="javascript:;" onclick="mpgPopClose();"></a>
</div>
<div class="mpgPopScroll">
<!-- div[class=odrPop pop1box] -->
<div class="odrPop pop1box">
<form id="mform" method="post" enctype="multipart/form-data">
<input type="hidden" id="pinos" name="pinos" value="" />
@ -339,8 +411,14 @@ else
<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="mpttxt1"></td>
</tr>
<tr>
<th>결제방법</th>
<td id="mpttxt2"></td>
</tr>
<tr>
<th>신청강좌</th>
<td id="mpttxt3"></td>
@ -353,221 +431,294 @@ else
<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>
<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>
</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>
<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="asname" id="asname" value="" />
</td>
</tr>
<tr class="pd5">
<th>대표자</th>
<td><input type="text" name="ceoname" id="ceoname" value="" /></td>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
</td>
</tr>
<tr class="pd5 postbox">
<td>
<input class="postadr" id="address1" name="address1" placeholder="주소입력" readonly style="background-color:#ddd;" type="text" value="">
<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">
<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>
<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>
<li>
<a href="javascript:;" onclick="save()" class="bk">계산서 발행요청</a>
</li>
</ul>
</form>
</div><!-- clsPopCont -->
</div>
</div><!-- clsPopWrap -->
<!-- // div[class=odrPop pop1box] -->
</div>
</div>
<!-- // div[class=mpgPopWrap] -->
</div>
</div>
</div>
<!-- // div[id=pop1] -->
<!-- div[id=pop2] -->
<div class="mpgPop mpgPopFull" style="display:none;" id="pop2">
<div>
<div>
<!-- div[class=mpgPopWrap] -->
<div class="mpgPopWrap wdth650">
<div class="mpgPopTitle"><h5>계산서발행요청</h5><a href="#" onclick="javascript:mpgPopClose();"></a></div>
<div class="mpgPopTitle">
<h5>계산서발행요청</h5>
<a href="javascript:;" onclick="mpgPopClose();"></a>
</div>
<div class="mpgPopScroll">
<!-- div[class=odrPop pop2box] -->
<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="tasname" id="tasname" disabled value="" />
</td>
</tr>
<tr class="pd5">
<th>대표자</th>
<td><input type="text" name="tceoname" id="tceoname" disabled value="" /></td>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
</ul>
</td>
</tr>
<tr class="pd5">
<th>계산서날짜</th>
<td><input type="text" name="ttaxdatereq" id="ttaxdatereq" disabled value="" /></td>
<td>
<input type="text" name="ttaxdatereq" id="ttaxdatereq" disabled value="" />
</td>
</tr>
</table>
</div><!-- clsPopCont -->
</div>
</div><!-- clsPopWrap -->
<!-- // div[class=odrPop pop2box] -->
</div>
</div>
<!-- // div[class=mpgPopWrap] -->
</div>
</div>
</div>
<div id="postlayer" class="daumpost"><a href="#" class="btn btn-xxs btn-select closedaumpost" onclick="closeDaumPostcode();">close</a></div>
<!-- // div[id=pop2] -->
<div id="postlayer" class="daumpost">
<a href="javascript:;" 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);
}
@*/** 세금계산서 출력 URL 가져오기 **/*@
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");
@ -582,13 +733,15 @@ else
}
}
}
@*/** 세금계산서 요청 데이터 설정 **/*@
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])
$("#pinos").val(datas.split(':')[6]);
$("#mptpayno").val(payno);
capp("/fcommon/paytaxget", { payno: payno }, "cbpaytaxget");
} else {
@ -596,11 +749,13 @@ else
$("#mpttxt2").text("");
$("#mpttxt3").text("");
$("#mpttxt4").text("");
$("#pinos").val("")
$("#pinos").val("");
$("#mptpayno").val("");
msg("결제완료내역만 계산서요청하실 수 있습니다.");
}
}
@*/** 세금계산서 데이터 가져오기 콜백 **/*@
function cbpaytaxget() {
var h = capResult.obj.h;
var d = capResult.obj.d;
@ -611,9 +766,6 @@ else
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);
@ -625,6 +777,8 @@ else
msg("이미 계산서를 접수중이거나 환불된 결제건입니다.");
}
}
@*/** 계산서 발행 요청 저장 **/*@
function save() {
if (val("taxdatereq") == "") {
msg("계산서날짜를 입력해주세요.");
@ -632,34 +786,38 @@ else
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 (!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() )
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()
$("#mform").attr("action", "/My/Document").submit();
}, 1000);
} else if (capResult.code == -1) {
msg("이미 신청된 계산서가 존재합니다.");
}
}
@*/** 계산서 요청 정보 조회 **/*@
function showtax(payno) {
$("#tasname").val("");
$("#tceoname").val("");
@ -672,10 +830,11 @@ else
$("#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;
@ -693,14 +852,6 @@ else
$("#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 () {
@ -713,6 +864,8 @@ else
msg("신청된 계산서가 없습니다.");
}
}
@*/** 탭 변경 함수 **/*@
function tabChange(tabidx) {
if (tabidx != @(Model.tabidx)) {
$("#tabidx").val(tabidx);
@ -725,7 +878,6 @@ else
{
// 테스트일 경우
<script language="JavaScript" src="https://pgweb.tosspayments.com:7086/WEB_SERVER/js/receipt_link.js"></script>
}
else
{

View File

@ -0,0 +1,682 @@
@model NP.Model.VMMy
<style>
.lctQr {
}
.lctQr > span {
color: black;
cursor: pointer;
}
.lctQr span.current {
color: blue;
}
</style>
<div class="mpgInfo">
<ul>
<li><strong>- 21년 7월1일 전에 수료한 과정은 <span style="color:red;">이전과정 탭에서 확인</span> 가능합니다</strong></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" style="font-size:14pt;">
<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>&nbsp;
</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)
{
string[] arrEduTerm = new string[3];
{
arrEduTerm = new string[3];
if (item.sdate != null)
{
arrEduTerm[0] = item.sdate.Value.ToString("yyyy년 MM월 dd일");
}
if (item.edate != null)
{
arrEduTerm[1] = item.edate.Value.ToString("yyyy년 MM월 dd일");
}
arrEduTerm[2] = string.Format("{0} ~ {1}", arrEduTerm[0], arrEduTerm[1]);
}
<tr>
<th>
<div class="ltaList">
<a href="javascript:;" style="cursor:default">
<h5>
<span class="@(item.cshape == 0 ? "org" : item.cshape == 1 ? "nav_grn" : "nav_blu")">@item.cshapename</span>
@if (item.studyplace == null)
{
<strong style="display:none;">@item.studyplacename 교육장</strong>
}
else if (item.studyplace != null)
{
<strong>@item.studyplacename 교육장</strong>
}
<b>@item.cname</b>
</h5>
<dl class="ltaDl">
@if (item.status == 1)
{
<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>
@Html.Raw(item.isrebate == 1 ? "<span class=\"grn\" style='color: red;'>환급과정</span>" : "<span class=\"grn\" style='color: red;'>비환급과정</span>")
}
else
{
if (item.cshape == 1)
{
<dt class="lectstatus">@item.lectStatus</dt>
<dd>교육기간 : @arrEduTerm[2]</dd>
<dt></dt>
<dt>@item.studytime 시간과정</dt>
@Html.Raw(item.isrebate == 1 ? "<span class=\"grn\" style='color: red;'>환급과정</span>" : "<span class=\"grn\" style='color: red;'>비환급과정</span>")
}
else
{
<dt class="lectstatus">@item.lectStatus</dt>
<dd>교육기간 : @arrEduTerm[2]</dd>
<dt></dt>
<dd style="color:red;">교육종료일 : @(string.Format("{0}", item.estart.ToString("yyyy년 MM월 dd일")))</dd>
<dt></dt>
<dt>@item.studytime 시간과정</dt>
@Html.Raw(item.isrebate == 1 ? "<span class=\"red\" style='vertical-align: middle;'>환급과정</span>" : "<span class=\"red\" style='vertical-align: middle;'>비환급과정</span>")
}
}
</dl>
</a>
</div>
</th>
<td class="ltaBtn" data-th="위탁계약서 : ">
@if (item.cshape == 1)
{
bool isTypeEdu107 = item.typeedus.Contains("107");
if (!isTypeEdu107)
{
<a href="javascript:;" 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="javascript:;" 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="javascript:;" 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="javascript:;" 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="javascript:;" onclick="viewtaxcash('@(item.payno)')">[인쇄]</a>
}
else
{
<a href="javascript:;" 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="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
}
else if (item.iscancel != 1 && item.taxdate2 != null && item.ischeck == 1)
{
<a href="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
}
else if (item.iscancel == 1) /*취소시 일반영수증*/
{
<a href="javascript:;" onclick="viewtax('@(item.pgkey)', '@(Helpers.MD5Hash(ViewBag.mid + item.pgkey + ViewBag.mertkey))')">[인쇄]</a>
}
else
{
if (item.ischeck == 1)
{
<a href="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
}
else
{
<a href="javascript:;" onclick="showtax('@(item.payno)')">[신청중]</a>
}
}
}
else
{
<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
{
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="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
}
else if (item.iscancel != 1 && item.taxdate2 != null && item.ischeck == 1)
{
<a href="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
}
else if (item.iscancel == 1) /*취소시 일반영수증*/
{
@Html.Raw("-")
}
else
{
if (item.ischeck == 1)
{
<a href="javascript:;" onclick="msg('요청하신 메일로 확인바랍니다.<br/>감사합니다.')">[계산서발행완료]</a>
}
else
{
<a href="javascript:;" onclick="showtax('@(item.payno)')">[신청중]</a>
}
}
}
else if (item.ptype == 3 && item.ispg == 1 && item.iscashrct != 1)
{
<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("-")
}
}
</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="javascript:;" 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="javascript:;" 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="javascript:;" 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="javascript:;" 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">
<th>기재사항</th>
<td><input type="text" name="taxinfo" id="taxinfo" value="" /></td>
</tr>
</table>
<ul class="odrPopBtn col1" id="paytaxbtn">
<li><a href="javascript:;" 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="javascript:;" 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">
<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="javascript:;" 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("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("btype", null, "업태를 입력해주세요.")) { }
else if (check("bkind", null, "종목을 입력해주세요.")) { }
else if (check("email", null, "이메일주소를 입력해주세요.")) { }
else if (!isemail(val("email"))) { msg("이메일 형식이 올바르지 않습니다. 다시 입력해주세요."); }
else if (check("post", null, "사업장주소를 입력해주세요.")) { }
else if (check("address1", 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("");
$("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');
$("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>
}
}

View File

@ -39,9 +39,9 @@
<add key="ssonoauth" value="Y" />
<add key="daokey" value="ynictelms2020" />
<add key="configpath" value="Product" />
<!--<add key="configpath" value="Product" />-->
<!--<add key="configpath" value="ProductDev" />-->
<!--<add key="configpath" value="Staging" />-->
<add key="configpath" value="staging" />
<add key="isstaging" value="1" />
<add key="thumbnailexe" value="D:\\dev_tool\\ffmpeg.exe" />

View File

@ -1300,6 +1300,12 @@ namespace NP.Model
public int typeman { get; set; }
public int typeedu { get; set; }
/// <summary>
/// 교육목적들 (,) 연결 문자열 (ex: 29,30,35,32,31,33,34,107,108)
/// </summary>
public string typeedus { get; set; }
public int typegrade { get; set; }
public int typejobitem { get; set; }
public string typejobitems { get; set; }