610 lines
30 KiB
Plaintext
610 lines
30 KiB
Plaintext
@model NP.Model.VMPay
|
|
@{
|
|
Layout = "~/Views/Shared/_PopupLayout.cshtml";
|
|
var p = Model.Pay;
|
|
var pi = Model.PayItems;
|
|
var isexamready = Model.isexamready == 1 && p.isexam == 1 && p.pstatus == 21;
|
|
}
|
|
<ul class="pagination pagination-md" id="thistabul">
|
|
<li class="active"><a href="#" data-toggle="tab">기본정보</a></li>
|
|
<li><a href="#" onclick="gotab()" data-toggle="tab">환불관리</a></li>
|
|
</ul>
|
|
<form id="mform" method="post">
|
|
<input type="hidden" name="payno" value="@p.payno" />
|
|
<input type="hidden" name="userno" value="@p.userno" />
|
|
<section class="panel panel-default">
|
|
<header class="panel-heading"><strong><i class="fa fa-bars"></i> 신청자정보<span class=""></span></strong></header>
|
|
<table class="regtable" style="margin-top: 0;">
|
|
<colgroup><col width="100" /><col width="150" /><col width="100" /><col width="200" /><col width="100" /><col /></colgroup>
|
|
<tr>
|
|
<th>결제번호</th>
|
|
<td>@p.payno</td>
|
|
<th>주문날짜</th>
|
|
<td>@p.cdtymdhms</td>
|
|
<th>주문자명</th>
|
|
<td>@p.username</td>
|
|
</tr>
|
|
<tr>
|
|
<th>생년월일</th>
|
|
<td>@(p.userpno == null || p.userpno.Length < 6 ? "" : p.userpno.Substring(0, 6))</td>
|
|
<th>일반전화</th>
|
|
<td>@p.telno</td>
|
|
<th>휴대폰</th>
|
|
<td>@p.mobile</td>
|
|
</tr>
|
|
<tr>
|
|
<th>주소</th>
|
|
<td colspan="3">@p.post @p.address1 @p.address2</td>
|
|
<th>이메일</th>
|
|
<td>@p.email</td>
|
|
</tr>
|
|
</table>
|
|
</section>
|
|
<section class="panel panel-default">
|
|
<header class="panel-heading"><strong><i class="fa fa-bars"></i> 결제정보<span class=""></span></strong></header>
|
|
<table class="regtable" style="margin-top: 0;">
|
|
<colgroup><col width="100" /><col width="150" /><col width="100" /><col width="200" /><col width="100" /><col /></colgroup>
|
|
<tr>
|
|
<th>결제금액</th>
|
|
<td>@(p.pstatus == 1 ? p.payamt.ToString("#,0") : "0")원</td>
|
|
<th>결제방식</th>
|
|
<td>
|
|
@if (isexamready)
|
|
{
|
|
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":-결제방식선택;4:현금;5:현금+카드;6:무료;9:위탁계약" }, { "name", "ptype" }, { "style", "width:100%;" } })
|
|
}
|
|
else if (p.ptype == 3 && p.pstatus == 22 && p.ispg == 1 && p.isunpay == 0)
|
|
{
|
|
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", "1:신용카드2:계좌이체;3:가상계좌;4:무통장입금;6:무료" }, { "name", "ptype2" }, { "style", "width:100%;" }, { "selected", Model.Pay.ptype } })
|
|
}
|
|
else
|
|
{
|
|
@:@p.ptypename
|
|
}
|
|
</td>
|
|
<th>결제상태</th>
|
|
<td>
|
|
@if (isexamready)
|
|
{
|
|
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", "1:결제완료;21:결제대기;41:결제취소" }, { "name", "pstatus" }, { "selected", p.pstatus }, { "style", "width:100%;" } })
|
|
}
|
|
else
|
|
{
|
|
@:@p.pstatusname2 @*@(p.ptype == 3 && p.pstatus == 22 && p.ispg == 1 && p.isunpay == 0 && p.paylimit.Value > DateTime.Now?string.Format("(만료일: {0})", p.paylimit.Value.ToString("yyyy-MM-dd")):"")*@
|
|
}
|
|
@if (p.ptype == 3 && p.pstatus == 22 && p.ispg == 1 && p.isunpay == 0@*&& p.paylimit.Value < DateTime.Now*@)
|
|
{
|
|
<a href="#" class="btn btn-primary" onclick="unpay(@p.payno)">미수처리</a>
|
|
<a href="#" class="btn btn-primary" onclick="abspay(@p.payno)">결제완료처리</a>
|
|
<a href="#" class="btn btn-primary" onclick="cancelpay(@p.payno, @p.userno)">취소</a>
|
|
}
|
|
else if (p.ptype == 3 && p.pstatus == 1 && p.ispg == 1 && p.isunpay == 1)
|
|
{
|
|
@Html.Partial("./Partial/Date", (DateTime?)null, new ViewDataDictionary { { "name", "payoktime" } })
|
|
<a href="#" class="btn btn-primary" onclick="unpaymoney(@p.payno)">미수입금처리</a>
|
|
}
|
|
else if (p.isunpay == 2)
|
|
{
|
|
@:(미수입금)
|
|
}
|
|
else if (p.isunpay == 3)
|
|
{
|
|
@:(결제변경)
|
|
}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>신청/승인일</th>
|
|
<td>@(p.oktime == null ? "" : p.oktime.Value.ToString("yyyy-MM-dd HH:mm:ss"))</td>
|
|
<th>입금일</th>
|
|
<td>
|
|
@if (isexamready)
|
|
{
|
|
@Html.Partial("./Partial/Date", (DateTime?)null, new ViewDataDictionary { { "name", "payoktime" } })
|
|
}
|
|
else
|
|
{
|
|
@:@(p.payoktime == null ? "" : p.payoktime.Value.ToString("yyyy-MM-dd HH:mm:ss"))
|
|
}
|
|
</td>
|
|
<th>LG유플러스 코드</th>
|
|
<td>@(p.ispg == 0 ? "수동결제" : p.pgkey)</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
계산서신청
|
|
</th>
|
|
<td>
|
|
@if (p.taxno != null)
|
|
{
|
|
<a href="#" onclick="gotax(@p.payno)" class="link" style="color:blue">신청</a>
|
|
}
|
|
else
|
|
{
|
|
<span>-</span>
|
|
}
|
|
</td>
|
|
<th>
|
|
계산서발행
|
|
</th>
|
|
<td>
|
|
@if (p.iscancel == null && p.taxdate == null)
|
|
{
|
|
<span>-</span>
|
|
}
|
|
else
|
|
{
|
|
if (p.iscancel == 1)
|
|
{
|
|
<span>발행취소</span>
|
|
}
|
|
else
|
|
{
|
|
if (p.taxdate == null)
|
|
{
|
|
<span>미발행</span>
|
|
}
|
|
else
|
|
{
|
|
<span>발행완료</span>
|
|
}
|
|
}
|
|
}
|
|
</td>
|
|
<th>
|
|
입금계좌
|
|
</th>
|
|
<td>
|
|
@p.vactbankname | @p.vactnum | @p.vactname
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</section>
|
|
<section class="panel panel-default">
|
|
<header class="panel-heading"><strong><i class="fa fa-bars"></i> 상품내역<span class=""></span></strong></header>
|
|
<table class="regtable" style="margin-top: 0;">
|
|
<thead><tr><th>상품코드</th><th>상품유형</th><th>과정분류</th><th>상품명</th><th>판매가</th><th>수량</th><th>합계금액</th></tr></thead>
|
|
@foreach (var d in pi)
|
|
{
|
|
<tr>
|
|
<td>@d.itemno</td>
|
|
<td>@(d.ptype == 2 ? "교재" : d.ptype == 3 ? "시험" : d.pcgname)</td>
|
|
<td>@d.cgname</td>
|
|
<td class="left">@d.itemname</td>
|
|
<td class="right">@((d.payamt / d.pcnt).ToString("#,0"))</td>
|
|
<td class="right">@d.pcnt</td>
|
|
<td class="right">@d.payamt.ToString("#,0")</td>
|
|
</tr>
|
|
}
|
|
@if (p.isdvr == 1)
|
|
{
|
|
<tr><td class="left" colspan="7">- 택배비 : @(p.deliamt > 0 ? (p.deliamt.ToString("#,0") + " 원") : "직접수령")</td></tr>
|
|
}
|
|
<tr><td class="left" colspan="7">- 최종합계: @p.payamt.ToString("#,0") 원</td></tr>
|
|
</table>
|
|
@if (isexamready)
|
|
{
|
|
<div style="padding: 5px 10px; text-align: right;"><a href="#" class="btn btn-primary" onclick="save2();">저장</a></div>
|
|
}
|
|
</form>
|
|
</section>
|
|
|
|
@if (pi.FirstOrDefault().isrebate == 1)
|
|
{
|
|
<section class="panel panel-default">
|
|
<header class="panel-heading"><strong><i class="fa fa-bars"></i> 환급내역<span class=""></span></strong></header>
|
|
<table class="regtable" style="margin-top: 0;">
|
|
<tr>
|
|
<th>은행명</th>
|
|
<td><input type="text" id="rbank" name="rbank" class="form-control" value="@pi.FirstOrDefault().rbank" /></td>
|
|
<th>계좌번호</th>
|
|
<td><input type="text" id="rbankaccnum" name="rbankaccnum" class="form-control" value="@pi.FirstOrDefault().rbankaccnum" /></td>
|
|
<th>예금주</th>
|
|
<td><input type="text" id="tbankuser" name="tbankuser" class="form-control" value="@pi.FirstOrDefault().tbankuser" /></td>
|
|
</tr>
|
|
</table>
|
|
<div style="padding: 5px 10px; text-align: right;">
|
|
<a href="#" class="btn btn-primary" onclick="rfdinfosave();">환급정보 저장</a><br />
|
|
</div>
|
|
</section>
|
|
}
|
|
@if (p.isgroup == 1 && pi.Where(w => w.ptype == 0).Count() > 1)
|
|
{
|
|
<section class="panel panel-default">
|
|
<header class="panel-heading"><strong><i class="fa fa-bars"></i> 교육장 강의(단과) 단체수강 교육생정보<span class=""></span></strong></header>
|
|
<table class="regtable" style="margin-top: 0;">
|
|
<thead>
|
|
<tr><th>이름(ID)</th><th>회사</th><th>사업장과의관계</th><th>부서/직위</th><th>회사전화번호</th><th>휴대전화번호</th><th>공정거래업무경력</th></tr>
|
|
</thead>
|
|
@foreach (var d in pi.Where(w => w.ptype == 0))
|
|
{
|
|
<tr>
|
|
<td>@string.Format("{0}({1})", d.username, d.userid)</td>
|
|
<td>@d.asname</td>
|
|
<td>@(d.isassignuser == 1 ? "자사근로자" : "타사근로자")</td>
|
|
<td>@d.depart / @d.ccpositionname</td>
|
|
<td>@d.telno2</td>
|
|
<td>@d.mobile2</td>
|
|
<td>@(d.kfcfyear > 0 ? d.kfcfyear.ToString() : "-")년</td>
|
|
</tr>
|
|
}
|
|
</table>
|
|
</section>
|
|
}
|
|
@if (p.isdvr == 1)
|
|
{
|
|
<section class="panel panel-default">
|
|
<header class="panel-heading"><strong><i class="fa fa-bars"></i> 배송지정보<span class=""></span></strong></header>
|
|
<form id="mform2" method="post">
|
|
<table class="regtable postbox" style="margin-top: 0;">
|
|
<colgroup><col width="150" /><col width="200" /><col width="100" /><col width="200" /><col width="100" /><col /></colgroup>
|
|
<tr>
|
|
<th>송장번호/수령정보</th>
|
|
<td><input id="dvrcode" name="dvrcode" class="form-control @(p.isdvr2 ==1?"disp-init":"")" type="text" value="@p.dvrcode" style="@(p.isdvr2==1?"width:50%":"")" /><a style="@(p.isdvr2 == 1?"":"display:none")" class="btn btn-select" href="#" onclick="viewdvr(this)">조회</a></td>
|
|
<th>수령인</th>
|
|
<td><input type="text" name="rcvname" id="rcvname" class="form-control" value="@p.rcvname" /></td>
|
|
<th>일반전화</th>
|
|
<td><input type="text" name="telno" id="telno" class="form-control" value="@p.telno2" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>우편번호</th>
|
|
<td class="left" colspan="3">
|
|
@Html.TextBox("post", p.post2, new { @readonly = "readonly", @style = "width: 70px; background-color: #ddd;", @class = "postno form-control disp-init" }) <a href="#" onclick="javascript: getpost2(this);" title="주소찾기"><i class="fa fa-map-marker" style="font-size: 13px;"></i> 주소찾기(클릭 후 상단검색)</a>
|
|
</td>
|
|
<th>휴대폰</th>
|
|
<td><input type="text" name="mobile" id="mobile" class="form-control" value="@p.mobile2" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>주소</th>
|
|
<td class="left" colspan="3">
|
|
@Html.TextBox("address1", p.address12, new { @readonly = "readonly", @style = "background-color: #ddd; width: 40%;", @class = "postadr form-control disp-init", @placeholder = "주소" })
|
|
@Html.TextBox("address2", p.address22, new { @class = "postadrsub form-control disp-init", @placeholder = "상세주소", @style = "width: 50%;" })
|
|
</td>
|
|
<th>배송방법</th>
|
|
<td>@(p.isdvr2 == 1 ? "택배" : "방문수령")</td>
|
|
</tr>
|
|
<tr>
|
|
<th>메모</th>
|
|
<td colspan="3"><input type="text" name="dmemo" id="dmemo" class="form-control" value="@p.dmemo" /></td>
|
|
<th>배송시작일</th>
|
|
<td>@(p.codetime == null ? "" : p.codetime.Value.ToString("yyyy-MM-dd HH:mm:ss"))</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<div style="padding: 5px 10px; text-align: right;"><a href="#" class="btn btn-primary" onclick="save();">저장</a></div>
|
|
</section>
|
|
|
|
}
|
|
@if (Model.Lect != null)
|
|
{
|
|
<section class="panel panel-default">
|
|
<header class="panel-heading"><strong><i class="fa fa-bars"></i> 교육신청내역<span class=""></span></strong></header>
|
|
<table class="regtable" style="margin-top: 0;">
|
|
<tr>
|
|
<th>교육기간</th>
|
|
<th>기술인분류</th>
|
|
<th>직무분야</th>
|
|
<th>교육목적</th>
|
|
<th>등급</th>
|
|
</tr>
|
|
<tr>
|
|
<td>@(Model.Lect.sdate != null ? Model.Lect.sdate.Value.ToString("yyyy-MM-dd") : "") ~ @(Model.Lect.edate != null ? Model.Lect.edate.Value.ToString("yyyy-MM-dd") : "")</td>
|
|
<td>@Model.Lect.typemanname</td>
|
|
<td>@Model.Lect.typejobname</td>
|
|
<td>@Model.Lect.typeeduname</td>
|
|
<td>@Model.Lect.typegradename</td>
|
|
</tr>
|
|
</table>
|
|
<div style="padding: 5px 10px; text-align: right;">
|
|
<a href="#" class="btn btn-primary" onclick="viewlect(this, @Model.Lect.ustatus, @Model.Lect.lectno, @Model.Lect.fileno, '@Model.Lect.fileurl', '@Model.Lect.orgname', @Model.Lect.status, @Model.Lect.pstatus,@Model.Lect.rstatus,'@string.Format("{0}:{1}:{2}:{3}:{4}:{5}:{6}:{7}:{8}:{9}:{10}:{11}:{12}:{13}:{14}:{15}:{16}:{17}",Model.Lect.asname??"",Model.Lect.username, Model.Lect.userid??"", Model.Lect.uduty??"", Model.Lect.depart??"", Model.Lect.email, Model.Lect.telno, Model.Lect.mobile,Model.Lect.ckfcfyear,Model.Lect.assignuser,Model.Lect.edus,Model.Lect.sdate==null?"":Model.Lect.sdate.Value.ToString("yyyy-MM-dd"),Model.Lect.edate==null?"":Model.Lect.edate.Value.ToString("yyyy-MM-dd"),Model.Lect.typeman,Model.Lect.typejob,Model.Lect.typeedu,Model.Lect.typegrade,Model.Lect.pplno)')">수정</a><br />
|
|
</div>
|
|
</section>
|
|
if (Model.Lect.cshape == 2)
|
|
{
|
|
<section class="panel panel-default">
|
|
<header class="panel-heading"><strong><i class="fa fa-bars"></i> 교육일정<span class=""></span></strong></header>
|
|
<table class="regtable" style="margin-top: 0;">
|
|
<tr>
|
|
<th>교육장소</th>
|
|
<th>교육일정</th>
|
|
</tr>
|
|
<tr>
|
|
<td>@Model.Lect.studyplacename</td>
|
|
<td>@Model.Lect.estart.ToString("yyyy-MM-dd HH:mm")</td>
|
|
</tr>
|
|
</table>
|
|
<div style="padding: 5px 10px; text-align: right;">
|
|
<a href="#" class="btn btn-primary" onclick="openScd(@Model.CM.cmno,@Model.Lect.lectno, @Model.Lect.cmisno);">수정</a><br />
|
|
</div>
|
|
</section>
|
|
}
|
|
}
|
|
<div id="thisbox" class="findbox draggable regbox" style="width: 600px; z-index: 1041; top: 60px; overflow: auto;">
|
|
<h4><i class="fa fa-bars"></i> <span id="pcap">교육생 정보</span><a href="#" class="btn btn-default btn-xs f-r closethisbox">닫기</a></h4>
|
|
<table class="regtable">
|
|
<colgroup><col style="width:150px;" /><col /></colgroup>
|
|
<tr><th>고객사</th><td id="asname"></td></tr>
|
|
<tr><th>이름(ID)</th><td id="usernameid"></td></tr>
|
|
<tr><th>직위</th><td id="positiondepart"></td></tr>
|
|
<tr><th>이메일</th><td id="email"></td></tr>
|
|
<tr><th>휴대전화번호</th><td id="mobile"></td></tr>
|
|
<tr><th>교육기간</th><td>@Html.Partial("./Partial/Date", (DateTime?)null, new ViewDataDictionary { { "name", "sdate" } }) ~ @Html.Partial("./Partial/Date", (DateTime?)null, new ViewDataDictionary { { "name", "edate" } })<a href="#" id="btnchange" class="btn btn-info" onclick="change();">저장</a></td></tr>
|
|
<tr>
|
|
<th>기술인분류</th>
|
|
<td>
|
|
<select class="form-control dev" id="selTypeman" name="selTypeman">
|
|
@foreach (var t in Model.ComCodes.Where(w => w.cgroup.ToString() == "typeman"))
|
|
{
|
|
<option value="@t.ccode">@t.cname</option>
|
|
}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>직무분야</th>
|
|
<td>
|
|
<select class="form-control dev" id="selTypejob" name="selTypejob">
|
|
@foreach (var t in Model.ComCodes.Where(w => w.cgroup.ToString() == "typejob"))
|
|
{
|
|
<option value="@t.ccode">@t.cname</option>
|
|
}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>교육목적</th>
|
|
<td>
|
|
<select class="form-control dev" id="selTypeedu" name="selTypeedu">
|
|
@foreach (var t in Model.ComCodes.Where(w => w.cgroup.ToString() == "typeedu"))
|
|
{
|
|
<option value="@t.ccode">@t.cname</option>
|
|
}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>등급</th>
|
|
<td>
|
|
<select class="form-control dev" id="selTypegrade" name="selTypegrade">
|
|
@foreach (var t in Model.ComCodes.Where(w => w.cgroup.ToString() == "typegrade"))
|
|
{
|
|
<option value="@t.ccode">@t.cname</option>
|
|
}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div class="findboxbtnbox" id="btnsavetype">
|
|
<a href="#" class="btn btn-primary" onclick="savetype();">교육신청정보 저장</a>
|
|
</div>
|
|
<br /><br />
|
|
<input type="hidden" id="hidpplno" />
|
|
</div>
|
|
<div id="scdbox" class="findbox draggable regbox" style="width: 400px; z-index: 1041; top: 60px; overflow: auto;">
|
|
<h4><i class="fa fa-bars"></i> <span id="pcap">교육일정변경</span><a href="#" class="btn btn-default btn-xs f-r closethisbox">닫기</a></h4>
|
|
<ul id="ulScd"></ul>
|
|
<div class="findboxbtnbox" id="btnsavelect">
|
|
<a href="#" class="btn btn-primary" onclick="updateScd();">선택완료</a>
|
|
</div>
|
|
</div>
|
|
<div id="postlayer" class="daumpost">
|
|
<a href="#" class="btn btn-xxs btn-select closedaumpost" onclick="closeDaumPostcode();">close</a>
|
|
</div>
|
|
@section styles{
|
|
<style type="text/css">
|
|
.regtable tr td {
|
|
background-color: #fff;
|
|
text-align: center;
|
|
}
|
|
|
|
.regtable tr td.left {
|
|
text-align: left;
|
|
}
|
|
|
|
.regtable tr td.right {
|
|
text-align: right;
|
|
}
|
|
</style>
|
|
}
|
|
@section scriptsHeader{
|
|
@Html.Partial("./Partial/ScriptPost")
|
|
@Html.Partial("./Partial/ScriptDate")
|
|
@Html.Partial("./Partial/ScdScript")
|
|
}
|
|
@section scripts{
|
|
<script>
|
|
$(document).ready(function () {
|
|
|
|
});
|
|
function viewdvr(a) {
|
|
if ($(a).closest("td").find("input").val() == "") {
|
|
msg("송장번호를 입력해주세요.");
|
|
} else {
|
|
window.open("https://www.ilogen.com/web/personal/trace/" + $(a).closest("td").find("input").val());
|
|
}
|
|
}
|
|
function save() {
|
|
if (confirm("배송정보를 수정하시겠습니까?")) {
|
|
cap("/acommon/paydvrsave2", "mform2", "cbsave");
|
|
}
|
|
}
|
|
function cbsave() {
|
|
if (capResult.code == 1000) {
|
|
msg("저장했습니다.", null, null, null, null, "location.href='" + location.href.replace(/#/gi, '')+"'");
|
|
}
|
|
}
|
|
function gotab() {
|
|
if (@p.pstatus == 1) {
|
|
bglayer();
|
|
location.href = '/croom/payrefund?payno=@p.payno';
|
|
} else {
|
|
msg("결제완료건만 환불관리가 가능합니다.");
|
|
setTimeout(function () {
|
|
$("#thistabul li").removeClass("active");
|
|
$("#thistabul li").first().addClass("active");
|
|
}, 10);
|
|
}
|
|
}
|
|
function save2() {
|
|
if (val("pstatus") == "21") {
|
|
msg("결제완료 또는 결제취소만 선택할 수 있습니다.");
|
|
} else if (val("pstatus") == "1" && val("ptype") == "") {
|
|
msg("결제방식을 선택해주세요.");
|
|
} else if (val("pstatus") == "1" && val("payoktime") == "") {
|
|
msg("입금일자를 입력해주세요.");
|
|
} else if (val("pstatus") == "1") {
|
|
if (confirm("결제완료처리하시겠습니까?")) {
|
|
capp("/acommon/examuserpayok", { exno: @p.payno, userno: @p.userno, ptype: val("ptype"), payoktime: val("payoktime") }, "cb1");
|
|
}
|
|
} else {
|
|
if (confirm("결제취소처리하시겠습니까?")) {
|
|
capp("/acommon/examuserpaycancel", { exno: @p.payno, userno: @p.userno }, "cb2");
|
|
}
|
|
}
|
|
}
|
|
function cb1() {
|
|
if (capResult.code == 1000) {
|
|
msg("결제완료처리되었습니다.", null, null, null, null, "location.href='/croom/payview?payno=" + capResult.obj + "'");
|
|
opener.searchthis();
|
|
}
|
|
}
|
|
function cb2() {
|
|
if (capResult.code == 1000) {
|
|
msg("결제취소처리되었습니다.", null, null, null, null, "self.close()");
|
|
opener.searchthis();
|
|
}
|
|
}
|
|
function unpay(payno) {
|
|
if (confirm("미수처리 이후 입금 시 미수에 대한 입금처리를 진행해주세요.\n미수상태로 결제완료처리하고 상품을 정상구매완료처리하시겠습니까?")) {
|
|
capp("/acommon/payunpay", { payno: payno }, "cbpayunpay");
|
|
}
|
|
}
|
|
function cbpayunpay() {
|
|
if (capResult.code == 1000) {
|
|
msg("미수결제 처리되었습니다.", null, null, null, null, "location.href='/croom/payview?payno=@p.payno'");
|
|
opener.searchthis();
|
|
}
|
|
}
|
|
function unpaymoney(payno) {
|
|
if ($("#payoktime").val() == "") {
|
|
msg("입금일자를 입력해주세요.");
|
|
} else if (confirm("미수결제건을 입금처리하시겠습니까?")) {
|
|
capp("/acommon/payunpaymoney", { payno: payno, payoktime: val("payoktime") }, "cbpayunpaymnoey");
|
|
}
|
|
}
|
|
function cbpayunpaymnoey() {
|
|
if (capResult.code == 1000) {
|
|
msg("미수입금 처리되었습니다.", null, null, null, null, "location.href='/croom/payview?payno=@p.payno'");
|
|
opener.searchthis();
|
|
}
|
|
}
|
|
function abspay(payno) {
|
|
if (confirm("상품을 정상구매완료처리하시겠습니까?")) {
|
|
capp("/acommon/payabspay", { payno: payno, ptype: val("ptype2") }, "cbabspay");
|
|
}
|
|
}
|
|
function cbabspay() {
|
|
if (capResult.code == 1000) {
|
|
msg("결제완료처리되었습니다.", null, null, null, null, "location.href='/croom/payview?payno=@p.payno'");
|
|
opener.searchthis();
|
|
}
|
|
}
|
|
function cancelpay(payno, userno) {
|
|
if (confirm("상품을 결제취소처리하시겠습니까?")) {
|
|
capp("/acommon/paycancelpay", { payno: payno, userno: userno }, "cbcancelpay");
|
|
}
|
|
}
|
|
function cbcancelpay() {
|
|
if (capResult.code == 1000) {
|
|
msg("결제최소처리되었습니다.", null, null, null, null, "location.href='/croom/payview?payno=@p.payno'");
|
|
opener.searchthis();
|
|
}
|
|
}
|
|
function rfdinfosave() {
|
|
if (confirm("환급정보를 저장하시겠습니까?")) {
|
|
capp("/acommon/PayRefundInfoSave", { payno: @p.payno, rbank: $("#rbank").val(), rbankaccnum: $("#rbankaccnum").val(), tbankuser: $("#tbankuser").val() }, "rfdsave");
|
|
}
|
|
}
|
|
|
|
function rfdsave() {
|
|
if (capResult.code == 1000) {
|
|
msg("환급정보를 저장하였습니다.", null, null, null, null, "location.href='/croom/payview?payno=@p.payno'");
|
|
opener.searchthis();
|
|
}
|
|
}
|
|
|
|
function gotax(payno) {
|
|
opener.gotaxdetail(payno);
|
|
self.close();
|
|
}
|
|
|
|
function viewlect(a, ustatus, lectno, fileno, fileurl, orgname, status,pstatus,rstatus, datas) {
|
|
if (ustatus != 99) {
|
|
_lectno = lectno;
|
|
_pstatus = pstatus;
|
|
_rstatus = rstatus;
|
|
var ds = datas.split(':');
|
|
$("#asname").text(ds[0]);
|
|
$("#assignuser").text(ds[8]);
|
|
$("#usernameid").text(ds[1] + "(" + ds[2] + ")");
|
|
$("#positiondepart").text(ds[3]);
|
|
$("#ckfcfyear").text(ds[9]);
|
|
$("#email").text(ds[5]);
|
|
$("#telno").text(ds[6]);
|
|
$("#mobile").text(ds[7]);
|
|
$("#sdate").val(ds[11]);
|
|
$("#edate").val(ds[12]);
|
|
$("#edus").text("");
|
|
if (!isnulloremt(String(ds[10]))) {
|
|
if (String(ds[10]).substr(0, 1) != "0") { $("#edus").append("| 공정거래일반:" + String(ds[10]).substr(0, 1) + "회 | " + "<br/>") }
|
|
if (String(ds[10]).substr(1, 1) != "0") { $("#edus").append("| 불공정거래행위:" + String(ds[10]).substr(1, 1) + "회 | " + "<br/>") }
|
|
if (String(ds[10]).substr(2, 1) != "0") { $("#edus").append("| 부당한공동행위:" + String(ds[10]).substr(2, 1) + "회 | " + "<br/>") }
|
|
if (String(ds[10]).substr(3, 1) != "0") { $("#edus").append("| 하도급거래:" + String(ds[10]).substr(3, 1) + "회 | " + "<br/>") }
|
|
if (String(ds[10]).substr(4, 1) != "0") { $("#edus").append("| 부당내부거래:" + String(ds[10]).substr(4, 1) + "회 | " + "<br/>") }
|
|
}
|
|
bglayer(); $("#thisbox").slideDown("fast");
|
|
$("#selTypeman").val(ds[13]).attr("selected", "selected");
|
|
$("#selTypejob").val(ds[14]).attr("selected", "selected");
|
|
$("#selTypeedu").val(ds[15]).attr("selected", "selected");
|
|
$("#selTypegrade").val(ds[16]).attr("selected", "selected");
|
|
$("#hidpplno").val(ds[17]);
|
|
}
|
|
}
|
|
function change() {
|
|
if (($("#sdate").val() == "") || ($("#edate").val() == "")) {
|
|
msg2("교육기간을 입력한 후 저장해주세요.");
|
|
} else if (confirm("교육기간을 수정하시겠습니까?")) {
|
|
capp("/acommon/lectsedatechange", { lectno: _lectno, sdate: $("#sdate").val(), edate: $("#edate").val(), pstatus: _pstatus, rstatus: _rstatus }, "cbsedatechange", null, null, null, true);
|
|
}
|
|
}
|
|
function cbsedatechange() {
|
|
if (capResult.code == 1000) {
|
|
msg2("상태를 변경했습니다.", null, null, "location.href = location.href");
|
|
} else if (capResult.code == -1) {
|
|
msg("결제가 완료가 아닌 대상은 상태를 변경할 수 없습니다.");
|
|
$("#thisbox").slideUp('fast'); $('#bglayer').hide();
|
|
}
|
|
}
|
|
function savetype() {
|
|
if (confirm("교육신청 정보를 저장하시겠습니까??")) {
|
|
capp("/acommon/pplogtypechange", {
|
|
pplno: $("#hidpplno").val(),
|
|
typeman: $("#selTypeman").val(),
|
|
typejob: $("#selTypejob").val(),
|
|
typeedu: $("#selTypeedu").val(),
|
|
typegrade: $("#selTypegrade").val()
|
|
}, "afterUpdateType");
|
|
}
|
|
}
|
|
function afterUpdateType() {
|
|
if (capResult.code > 0) {
|
|
msg2("저장되었습니다.", null, null, "location.href = location.href");
|
|
}
|
|
else {
|
|
msg("관리자에게 문의하세요.");
|
|
$("#thisbox").slideUp('fast'); $('#bglayer').hide();
|
|
}
|
|
}
|
|
</script>
|
|
}
|