<기능개선>
1. PMS NO :
2. (주요)작업내용 : 결제완료 화면 타이틀 변경
/FO/Controllers/CourseController.cs
/FO/Controllers/FOBaseController.cs
/FO/Views/Course/ApplyComplete.cshtml
/Model/VMPay.cs
This commit is contained in:
parent
0483aef5dc
commit
487fc0c786
|
|
@ -1219,6 +1219,11 @@ namespace NP.FO.Controllers
|
|||
{
|
||||
return Redirect("/");
|
||||
}
|
||||
//20220802 추가
|
||||
long?[] lngTmp = new long?[2];
|
||||
lngTmp[0] = vm.CM.cmino;
|
||||
lngTmp[1] = vm.CM.cmisno;
|
||||
|
||||
vm.PayItem = Dao.Get<PayItem>("pay.payresult", new Hashtable() { { "payno", vm.payno }, { "userno", SUserInfo.UserNo } }).First();
|
||||
vm.CM = Dao.Get<CM>("cm.cms", new System.Collections.Hashtable() { { "cmno", vm.PayItem.itemno } }).FirstOrDefault();
|
||||
vm.Pay = Dao.Get<Pay>("pay.pay", new System.Collections.Hashtable() { { "payno", vm.payno }, { "userno", SUserInfo.UserNo } }).FirstOrDefault();
|
||||
|
|
@ -1227,7 +1232,43 @@ namespace NP.FO.Controllers
|
|||
vm.Pay.ccount = Dao.Get<int?>("pay.lectready", vm.CM.cmno).FirstOrDefault() ?? 1;
|
||||
}
|
||||
vm.Pay.payresult = "1:결제완료";
|
||||
|
||||
//20220802 추가
|
||||
vm.CM.cmino = lngTmp[0];
|
||||
vm.CM.cmisno = lngTmp[1];
|
||||
|
||||
#region 20220801 선택한 교육장 정보
|
||||
Hashtable hsData = new Hashtable();
|
||||
hsData.Add("cmno", vm.cmno);
|
||||
var cmInningscdTmp = Dao.Get<CMinningscd>("cm.cminningscds.applyedu", hsData).Where(w => w.cmino == lngTmp[0] && w.cmisno == lngTmp[1]);
|
||||
|
||||
foreach (var item in cmInningscdTmp)
|
||||
{
|
||||
vm.SelectCMInningscd = item;
|
||||
if (item.studyplace != null)
|
||||
{
|
||||
item.scdInfoSummary = string.Format("{0} ~ {1}", item.estart.ToString("yyyy년 MM월 dd일"), item.eend.ToString("MM월 dd일"));
|
||||
}
|
||||
else
|
||||
{
|
||||
item.scdInfoSummary = string.Format("{0} ~ {1}", DateTime.Now.ToString("yyyy년 MM월 dd일"), item.eend.ToString("MM월 dd일"));
|
||||
}
|
||||
|
||||
if (item.eend != null)
|
||||
{
|
||||
item.eend2 = item.eend.ToString("yyyy년 MM월 dd일");
|
||||
}
|
||||
|
||||
//vm.SelectCMInningscd.scdInfoSummary = string.Format("{0}", vm.SelectCMInningscd.estart.ToString("yyyy년 MM월 dd일까지"));
|
||||
if (vm.SelectCMInningscd.estart < Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")))
|
||||
{
|
||||
vm.SelectCMInningscd.isEnd = true;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
return View(vm);
|
||||
|
||||
}
|
||||
public ActionResult XpayREQ(VMPay vm)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -489,6 +489,11 @@ namespace NP.FO.Controllers
|
|||
//}
|
||||
protected ActionResult PayReturn(VMPay vm)
|
||||
{
|
||||
//20220802 추가
|
||||
long?[] lngTmp = new long?[2];
|
||||
lngTmp[0] = vm.CM.cmino;
|
||||
lngTmp[1] = vm.CM.cmisno;
|
||||
|
||||
if (vm.payno > 0 && (vm.absptype == 6 || vm.absptype == 7))
|
||||
{
|
||||
//0원강좌 결제
|
||||
|
|
@ -496,6 +501,9 @@ namespace NP.FO.Controllers
|
|||
vm.Pay.payresult = "1:무료결제완료";
|
||||
vm.PayItemResults = Dao.Get<PayItemResult>("pay.payitems", vm.Pay.payno);
|
||||
vm.CM = Dao.Get<CM>("cm.cms", new System.Collections.Hashtable() { { "cmno", vm.PayItemResults.First().itemno } }).FirstOrDefault();
|
||||
//20220802 추가
|
||||
vm.CM.cmino = lngTmp[0];
|
||||
vm.CM.cmisno = lngTmp[1];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -776,6 +784,41 @@ namespace NP.FO.Controllers
|
|||
vm.Pay.cancelresult = xpay.m_szResMsg;
|
||||
}
|
||||
}
|
||||
|
||||
//20220802 추가
|
||||
vm.CM.cmino = lngTmp[0];
|
||||
vm.CM.cmisno = lngTmp[1];
|
||||
|
||||
#region 20220801 선택한 교육장 정보
|
||||
Hashtable hsData = new Hashtable();
|
||||
hsData.Add("cmno", vm.cmno);
|
||||
var cmInningscdTmp = Dao.Get<CMinningscd>("cm.cminningscds.applyedu", hsData).Where(w => w.cmino == lngTmp[0] && w.cmisno == lngTmp[1]);
|
||||
|
||||
foreach (var item in cmInningscdTmp)
|
||||
{
|
||||
vm.SelectCMInningscd = item;
|
||||
if (item.studyplace != null)
|
||||
{
|
||||
item.scdInfoSummary = string.Format("{0} ~ {1}", item.estart.ToString("yyyy년 MM월 dd일"), item.eend.ToString("MM월 dd일"));
|
||||
}
|
||||
else
|
||||
{
|
||||
item.scdInfoSummary = string.Format("{0} ~ {1}", DateTime.Now.ToString("yyyy년 MM월 dd일"), item.eend.ToString("MM월 dd일"));
|
||||
}
|
||||
|
||||
if (item.eend != null)
|
||||
{
|
||||
item.eend2 = item.eend.ToString("yyyy년 MM월 dd일");
|
||||
}
|
||||
|
||||
//vm.SelectCMInningscd.scdInfoSummary = string.Format("{0}", vm.SelectCMInningscd.estart.ToString("yyyy년 MM월 dd일까지"));
|
||||
if (vm.SelectCMInningscd.estart < Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")))
|
||||
{
|
||||
vm.SelectCMInningscd.isEnd = true;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
return View("ApplyComplete", vm);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,63 +23,26 @@ else
|
|||
<li>
|
||||
<ul class="smtlChk">
|
||||
<li>
|
||||
@*@if (Model.CM.cshape == 0)
|
||||
{
|
||||
<p><label>@(Model.CM.tseq)기 <span class='gry'>@(Model.CM.ssrename) (@(Model.CM.ssretimeToDay)일) </span> @Model.CM.cname</label></p>
|
||||
}
|
||||
else if (Model.CM.cshape == 1)
|
||||
{
|
||||
<p><label>@(Model.CM.tseq)기 <span class='blu'>[@(Model.CM.studyplacename) 교육장] </span><span class='gry'>@Model.CM.ssrename (@(Model.CM.ssretimeToDay)일) </span> @Model.CM.cname<span class='red'> | @(Model.CM.infee)원</span></label></p>
|
||||
}
|
||||
else if (Model.CM.cshape == 2)
|
||||
{
|
||||
<p><label>@(Model.CM.tseq)기 <span class='gry'>@(Model.CM.ssrename) (@(Model.CM.ssretimeToDay)일) </span> @Model.CM.cname<span class='red'> | @(Model.CM.infee)원 ※ 집체교육 선택 필수</span></label></p>
|
||||
}*@
|
||||
<span class="cshapelabel">
|
||||
@(Model.CM.cshape == 0 ? "온라인" : Model.CM.cshape == 1 ? "교육장교육" : "온라인교육")
|
||||
</span>
|
||||
@{
|
||||
string strStudyPlaceTmp = "";
|
||||
if (Model.SelectCMInningscd.studyplace != null)
|
||||
{
|
||||
strStudyPlaceTmp = string.Format("[{0}교육장] {1}", Model.SelectCMInningscd.studyplacename, Model.CM.cname);
|
||||
}
|
||||
else
|
||||
{
|
||||
strStudyPlaceTmp = string.Format("{0}", Model.CM.cname);
|
||||
}
|
||||
|
||||
@if (Model.CM.cshape == 0)
|
||||
{
|
||||
if (!isallday)
|
||||
{
|
||||
<p><label>@(Model.CM.tseq)기 | <span class='gry'>@(Model.CM.ssrename) (@(Convert.ToInt32(Model.CM.ssretimeToDay) * 24)시간) </span> | @Model.CM.cname | <span class='red'>@(Model.CM.infee.ToString("#,0"))원</span></label></p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p><label>@(Model.CM.tseq)기 | <span class='gry'>@*신청일로부터 @(Model.CM.studydays)일*@ (@(Model.CM.studytime)시간) </span> | @Model.CM.cname | <span class='red'>@(Model.CM.infee.ToString("#,0"))원</span></label></p>
|
||||
}
|
||||
//Model.SelectCMInningscd.eend2 교육종료일
|
||||
string strEduInfo = string.Format("교육기간 {0} |<span class='red'> 교육종료일 {1} </span> | {2}시간과정 |<span class='red'> {3}과정 </span>| 교육비 {4}원",
|
||||
Model.SelectCMInningscd.scdInfoSummary, Model.SelectCMInningscd.eend2, Model.CM.studytime, (Model.CM.isrefund == 1 ? "환급" : "비환급"), Model.CM.infee.ToString("#,0"));
|
||||
}
|
||||
else if (Model.CM.cshape == 1)
|
||||
{
|
||||
if (!isallday)
|
||||
{
|
||||
<p><label>@(Model.CM.tseq)기 | <span class='blu'>[@(Model.CM.studyplacename) 교육장] </span><span class='gry'>@Model.CM.ssrename (@(Model.CM.ssretimeToDay)일) </span> | @Model.CM.cname </label></p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p><label>@(Model.CM.tseq)기 | <span class='blu'>[@(Model.CM.studyplacename) 교육장] </span><span class='gry'>@*신청일로부터 @(Model.CM.studydays)일*@ (@(Model.CM.studytime)시간) </span> | @Model.CM.cname </label></p>
|
||||
}
|
||||
}
|
||||
else if (Model.CM.cshape == 2)
|
||||
{
|
||||
if (!isallday)
|
||||
{
|
||||
@*<p><label>@(Model.CM.tseq)기 | <span class='gry'>@(Model.CM.ssrename) (@(Convert.ToInt32(Model.CM.ssretimeToDay) * 24)시간) </span> | @Model.CM.cname | <span class='red'>@(Model.CM.infee.ToString("#,0"))원 ※ 집체교육 선택 필수</span></label></p>*@
|
||||
<p><label><span class='gry'>@Model.CM.cname @(Model.CM.ssrename) (@(Model.CM.studytime)시간) </span></label></p>
|
||||
}
|
||||
else
|
||||
{
|
||||
@*<p><label>@(Model.CM.tseq)기 | <span class='gry'>신청일로부터 @(Model.CM.studydays)일 (@(Model.CM.studydays * 24)시간) </span> | @Model.CM.cname | <span class='red'>@(Model.CM.infee.ToString("#,0"))원 ※ 집체교육 선택 필수</span></label></p>*@
|
||||
<p><label><span class='gry'>@Model.CM.cname @*신청일로부터 @(Model.CM.studydays)일*@ (@(Model.CM.studytime)시간) </span> | </label></p>
|
||||
}
|
||||
}
|
||||
|
||||
@*@if (Model.CM.applicableCM == "정상접수")
|
||||
{
|
||||
<span class="smtlChkBtn smtlChk01">정상접수</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="smtlChkBtn smtlChk02">대기접수</span>
|
||||
}*@
|
||||
<span style="font-size:22px"><label>@strStudyPlaceTmp</label></span>
|
||||
<p><label>@Html.Raw(strEduInfo)</label></p>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="apyCost">
|
||||
|
|
|
|||
|
|
@ -70,5 +70,10 @@ namespace NP.Model
|
|||
/// 계산서날짜
|
||||
/// </summary>
|
||||
public DateTime? taxdatereq { get; set; }
|
||||
/// <summary>
|
||||
/// 선택한 교육일정 정보
|
||||
/// 20220801
|
||||
/// </summary>
|
||||
public CMinningscd SelectCMInningscd { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue