|
@@ -8,6 +8,7 @@
|
|
|
#include "../wnd/CXianjinShoukuanWnd.h"
|
|
#include "../wnd/CXianjinShoukuanWnd.h"
|
|
|
#include "../wnd/CFulikaShoukuanWnd.h"
|
|
#include "../wnd/CFulikaShoukuanWnd.h"
|
|
|
#include "../wnd/CZidingyiShoukuanWnd.h"
|
|
#include "../wnd/CZidingyiShoukuanWnd.h"
|
|
|
|
|
+#include "../wnd/CMemberLoginWnd.h"
|
|
|
|
|
|
|
|
#include "../wnd/CMainWnd.h"
|
|
#include "../wnd/CMainWnd.h"
|
|
|
|
|
|
|
@@ -624,6 +625,9 @@ void CShoukuanPageUI::StartHuiyuanShoukuan()
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ this->ClickMemberLogin();
|
|
|
|
|
+
|
|
|
|
|
+ //登录成功了,马上开始进行支付确认
|
|
|
CHuiyuanShoukuanWnd* pShoukuanWnd = new CHuiyuanShoukuanWnd();
|
|
CHuiyuanShoukuanWnd* pShoukuanWnd = new CHuiyuanShoukuanWnd();
|
|
|
if (pShoukuanWnd != NULL)
|
|
if (pShoukuanWnd != NULL)
|
|
|
{
|
|
{
|
|
@@ -640,6 +644,9 @@ void CShoukuanPageUI::StartHuiyuanShoukuan()
|
|
|
std::wstring watchValue = CLewaimaiString::UTF8ToUnicode(format_string);
|
|
std::wstring watchValue = CLewaimaiString::UTF8ToUnicode(format_string);
|
|
|
pShoukuanWnd->InitMoney(watchValue);
|
|
pShoukuanWnd->InitMoney(watchValue);
|
|
|
|
|
|
|
|
|
|
+ //把会员登录的信息传递进去
|
|
|
|
|
+ pShoukuanWnd->SetMemberInfo(m_member_id, m_card_no, m_balance, m_member_name, m_member_level_name);
|
|
|
|
|
+
|
|
|
//这里要对提交订单的参数进行组装,然后方便请求
|
|
//这里要对提交订单的参数进行组装,然后方便请求
|
|
|
pShoukuanWnd->SetCommonParams(GetSendorderParams());
|
|
pShoukuanWnd->SetCommonParams(GetSendorderParams());
|
|
|
|
|
|
|
@@ -879,6 +886,9 @@ void CShoukuanPageUI::StartWorkAfterShoukuan(std::string show_trade_no, std::str
|
|
|
//最后还原收款金额
|
|
//最后还原收款金额
|
|
|
this->InitMoney();
|
|
this->InitMoney();
|
|
|
|
|
|
|
|
|
|
+ //还原会员状态
|
|
|
|
|
+ this->ClickMemberLogout();
|
|
|
|
|
+
|
|
|
this->UpdateJiesuanInfo();
|
|
this->UpdateJiesuanInfo();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -938,4 +948,75 @@ void CShoukuanPageUI::SetPos(RECT rc, bool bNeedInvalidate)
|
|
|
UpdateJiesuanZhifuPos();
|
|
UpdateJiesuanZhifuPos();
|
|
|
|
|
|
|
|
CContainerUI::SetPos(rc, bNeedInvalidate);
|
|
CContainerUI::SetPos(rc, bNeedInvalidate);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+void CShoukuanPageUI::ClickMemberLogin()
|
|
|
|
|
+{
|
|
|
|
|
+ if (m_is_show_modal_wnd == true)
|
|
|
|
|
+ {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ CMemberLoginWnd* pMemberLoginDlg = new CMemberLoginWnd();
|
|
|
|
|
+
|
|
|
|
|
+ if (pMemberLoginDlg != NULL)
|
|
|
|
|
+ {
|
|
|
|
|
+ m_is_show_modal_wnd = true;
|
|
|
|
|
+ m_curModalWnd = pMemberLoginDlg;
|
|
|
|
|
+
|
|
|
|
|
+ pMemberLoginDlg->Create(m_pManager->GetPaintWindow(), _T(""), UI_WNDSTYLE_DIALOG, WS_EX_WINDOWEDGE);
|
|
|
|
|
+ pMemberLoginDlg->SetIcon(IDI_ICON_DUILIB);
|
|
|
|
|
+ pMemberLoginDlg->CenterWindow();
|
|
|
|
|
+
|
|
|
|
|
+ UINT ret = pMemberLoginDlg->ShowModal();
|
|
|
|
|
+
|
|
|
|
|
+ if (ret == IDOK)
|
|
|
|
|
+ {
|
|
|
|
|
+ //这说明会员登录成功了
|
|
|
|
|
+ m_is_member = true;
|
|
|
|
|
+
|
|
|
|
|
+ m_member_name = pMemberLoginDlg->m_name;
|
|
|
|
|
+ m_member_level = pMemberLoginDlg->m_member_level;
|
|
|
|
|
+ m_member_level_name = pMemberLoginDlg->m_member_level_name;
|
|
|
|
|
+
|
|
|
|
|
+ m_member_id = pMemberLoginDlg->m_member_id;
|
|
|
|
|
+ m_card_no = pMemberLoginDlg->m_card_no;
|
|
|
|
|
+ m_balance = pMemberLoginDlg->m_balance;
|
|
|
|
|
+ m_phone = pMemberLoginDlg->m_phone;
|
|
|
|
|
+ m_birthday = pMemberLoginDlg->m_birthday;
|
|
|
|
|
+ m_sex = pMemberLoginDlg->m_sex;
|
|
|
|
|
+ m_address = pMemberLoginDlg->m_address;
|
|
|
|
|
+ m_is_card = pMemberLoginDlg->m_is_card;
|
|
|
|
|
+ m_point = pMemberLoginDlg->m_point;
|
|
|
|
|
+ m_open_no_card_payment = pMemberLoginDlg->m_open_no_card_payment;
|
|
|
|
|
+ m_pay_password = pMemberLoginDlg->m_pay_password;
|
|
|
|
|
+ m_freeze = pMemberLoginDlg->m_freeze;
|
|
|
|
|
+ m_card_identify = pMemberLoginDlg->m_card_identify;
|
|
|
|
|
+
|
|
|
|
|
+ this->UpdateJiesuanInfo();
|
|
|
|
|
+
|
|
|
|
|
+ m_is_show_modal_wnd = false;
|
|
|
|
|
+ delete pMemberLoginDlg;
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ m_is_show_modal_wnd = false;
|
|
|
|
|
+ delete pMemberLoginDlg;
|
|
|
|
|
+
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+//处理会员退出登陆
|
|
|
|
|
+void CShoukuanPageUI::ClickMemberLogout()
|
|
|
|
|
+{
|
|
|
|
|
+ m_is_member = false;
|
|
|
|
|
+
|
|
|
|
|
+ CButtonUI* pMemberLoginBtn = static_cast<CButtonUI*>(this->FindSubControl(_T("btn_diandan_member_login")));
|
|
|
|
|
+ pMemberLoginBtn->SetVisible(true);
|
|
|
|
|
+
|
|
|
|
|
+ this->FindSubControl(_T("diandan_page_member_info"))->SetVisible(false);
|
|
|
|
|
+
|
|
|
|
|
+ this->UpdateJiesuanInfo();
|
|
|
}
|
|
}
|