This commit is contained in:
parent
3b5f5c09f9
commit
3db398d2f1
|
|
@ -699,6 +699,7 @@ namespace NP.BO.Controllers
|
|||
}
|
||||
return View(vm);
|
||||
}
|
||||
|
||||
public ActionResult payrefund(VMPay vm)
|
||||
{
|
||||
vm.Pay = Dao.Get<Pay>("cr.pay.forrfd", vm.payno).First();
|
||||
|
|
|
|||
|
|
@ -76,9 +76,9 @@
|
|||
@*@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":상품구분;0:강좌;1:패키지;2:교재;3:시험;4:자격증강좌" }, { "name", "stringval11" }, { "selected", Model.stringval11 } })*@
|
||||
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":상품유형;0:온라인;1:오프라인;2:혼합" }, { "name", "stringval12" }, { "selected", Model.stringval12 } })
|
||||
@Html.Partial("./Partial/Select", Model.CGs, new ViewDataDictionary { { "name", "stringval13" }, { "selected", Model.stringval13 }, { "df", ":-과정분류" } })
|
||||
@*<label><input type="checkbox" name="rebate" value="1" @(sv14.Contains(",1,") ? "checked" : "") /> 환급</label>
|
||||
<label><input type="checkbox" name="rebate" value="1" @(sv14.Contains(",1,") ? "checked" : "") /> 환급</label>
|
||||
<label><input type="checkbox" name="rebate" value="0" @(sv14.Contains(",0,") ? "checked" : "") /> 비환급</label>
|
||||
<label><input type="checkbox" name="stringval17" value="1" @(Model.stringval17 != null ? "checked" : "") /> 단체결제</label> *@
|
||||
@*<label><input type="checkbox" name="stringval17" value="1" @(Model.stringval17 != null ? "checked" : "") /> 단체결제</label> *@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -127,7 +127,7 @@
|
|||
<a href="#" onclick="gopay(@d.isexamready, @d.payno, @d.userno)">
|
||||
@*<span class="piptype piptype@(d.ptype)">@d.ptypename</span>*@
|
||||
@Html.Raw(d.ptype == 0 || d.ptype == 1 || d.ptype == 4 ? string.Format(" <span class=\"cshape\">{0}</span>", d.cshapename) : "")
|
||||
@*@Html.Raw(d.isrebate == 1 && (d.ptype == 0 || d.ptype == 1 || d.ptype == 4) ? " <span class=\"isrebate\">환급</span>" : "")*@
|
||||
@Html.Raw(d.isrebate == 1 && (d.ptype == 0 || d.ptype == 1 || d.ptype == 4) ? " <span class=\"isrebate\">환급</span>" : "")
|
||||
@d.itemname@(d.ccount > 1 ? string.Format(" 외 {0} 건", d.ccount - 1) : "")
|
||||
</a>
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -14,18 +14,26 @@
|
|||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<th>주소</th>
|
||||
<td colspan="3">@p.post @p.address1 @p.address2</td>
|
||||
<th>이메일</th>
|
||||
<td>@p.email</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
|
|
@ -34,7 +42,8 @@
|
|||
<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>@(p.pstatus == 1 ? p.payamt.ToString("#,0") : "0")원</td>
|
||||
<th>결제방식</th>
|
||||
<td>
|
||||
@if (isexamready)
|
||||
|
|
@ -43,7 +52,7 @@
|
|||
}
|
||||
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} })
|
||||
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", "1:신용카드2:계좌이체;3:가상계좌;4:무통장입금;6:무료" }, { "name", "ptype2" }, { "style", "width:100%;" }, { "selected", Model.Pay.ptype } })
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -60,24 +69,24 @@
|
|||
{
|
||||
@:@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>
|
||||
}
|
||||
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)
|
||||
{
|
||||
@:(결제변경)
|
||||
}
|
||||
@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>
|
||||
}
|
||||
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>
|
||||
|
|
@ -103,95 +112,116 @@
|
|||
<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>
|
||||
}
|
||||
</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))
|
||||
@foreach (var d in pi)
|
||||
{
|
||||
<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>
|
||||
<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>
|
||||
}
|
||||
</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="mform" 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>
|
||||
<input type="hidden" name="payno" value="@p.payno" />
|
||||
</form>
|
||||
<div style="padding: 5px 10px; text-align: right;"><a href="#" class="btn btn-primary" onclick="save();">저장</a></div>
|
||||
</section>
|
||||
<section class="panel panel-default">
|
||||
<header class="panel-heading"><strong><i class="fa fa-bars"></i> 배송지정보<span class=""></span></strong></header>
|
||||
<form id="mform" 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>
|
||||
|
||||
<input type="hidden" name="payno" value="@p.payno" />
|
||||
</form>
|
||||
<div style="padding: 5px 10px; text-align: right;"><a href="#" class="btn btn-primary" onclick="save();">저장</a></div>
|
||||
</section>
|
||||
}
|
||||
<br /><br /><br />
|
||||
<div id="postlayer" class="daumpost">
|
||||
|
|
@ -199,9 +229,18 @@
|
|||
</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;}
|
||||
.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{
|
||||
|
|
@ -306,5 +345,18 @@
|
|||
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();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -757,6 +757,13 @@ namespace NP.Base.Controllers
|
|||
return JsonOK(0);
|
||||
}
|
||||
[HttpPost]
|
||||
public JsonResult PayRefundInfoSave(PayItem d)
|
||||
{
|
||||
d.uno = SUserInfo.UserNo; d.uip = GetUserIP();
|
||||
|
||||
return JsonOK(Dao.Save("cr.payrefundinfo.up", d));
|
||||
}
|
||||
[HttpPost]
|
||||
public JsonResult PayTaxSave(PayTax d)
|
||||
{
|
||||
d.uno = SUserInfo.UserNo; d.uip = GetUserIP();
|
||||
|
|
|
|||
|
|
@ -921,7 +921,7 @@
|
|||
where p.payno=#payno#
|
||||
</select>
|
||||
<select id="cr.pay2" parameterClass="long" resultClass="payitem">
|
||||
select pi.payno,pi.pino,pi.itemno,pi.pcno,pi.payamt,pi.pcnt,pi.ptype
|
||||
select pi.payno,pi.pino,pi.itemno,pi.pcno,pi.payamt,pi.pcnt,pi.ptype,pi.isrebate
|
||||
,case pi.ptype when 2 then bk.bkname when 3 then ex.exname else cm.cname end itemname
|
||||
,u.username,u.userid,u.isassignuser,u.depart,u.kfcfyear
|
||||
,cc.cname ccpositionname
|
||||
|
|
@ -931,6 +931,7 @@
|
|||
,cm.cshape
|
||||
,cg.cgname
|
||||
,pcg.cgname pcgname
|
||||
,pi.rbank , CAST(AES_DECRYPT(UNHEX(pi.rbankaccnum), <include refid="sql.digest"></include>) AS char) rbankaccnum, pi.tbankuser
|
||||
from payitem pi
|
||||
inner join pay p on p.payno=pi.payno
|
||||
left outer join cm cm on pi.ptype in (0,1,4) and cm.cmno=pi.itemno
|
||||
|
|
@ -943,6 +944,17 @@
|
|||
left outer join comcode cc on cc.ccode=u.ccposition
|
||||
where pi.payno=#payno#
|
||||
</select>
|
||||
|
||||
<update id="cr.payrefundinfo.up" parameterClass="payitem">
|
||||
update payitem
|
||||
set <include refid="sql.up"></include>
|
||||
,rbank = #rbank#
|
||||
,rbankaccnum = HEX(AES_ENCRYPT(#rbankaccnum#, <include refid="sql.digest"></include>))
|
||||
,tbankuser = #tbankuser#
|
||||
where
|
||||
payno = #payno#
|
||||
</update>
|
||||
|
||||
<select id="cr.payforexam1" parameterClass="hashtable" resultClass="pay">
|
||||
select eu.exno payno, eu.userno,eu.cdt,case when ua.isjoin=1 then ex.infee else ex.outfee end payamt,0 ptype,0 ispg,0 isgroup,1 isexam,21 pstatus,0 rstatus,null payoktime,null pgkey,0 isdvr,0 deliamt
|
||||
,u.username,u.post,u.address1,u.address2
|
||||
|
|
|
|||
Loading…
Reference in New Issue