|
|
@@ -141,6 +141,17 @@ void OrderListUI::DoRefresh()
|
|
|
pControl->SetEnabled(false);
|
|
|
}
|
|
|
|
|
|
+ if (m_page > 1)
|
|
|
+ {
|
|
|
+ CButtonUI* pControl = static_cast<CButtonUI*>(m_pManager->FindControl(_T("waimai_order_list_last")));
|
|
|
+ pControl->SetEnabled(true);
|
|
|
+ }
|
|
|
+ if (m_page < m_total_page)
|
|
|
+ {
|
|
|
+ CButtonUI* pControl = static_cast<CButtonUI*>(m_pManager->FindControl(_T("waimai_order_list_next")));
|
|
|
+ pControl->SetEnabled(true);
|
|
|
+ }
|
|
|
+
|
|
|
CLabelUI* pControl = static_cast<CLabelUI*>(m_pManager->FindControl(_T("waimai_order_list_page")));
|
|
|
wstring pageinfo = _T("第 ") + CLewaimaiString::ANSIToUnicode(to_string(m_page)) + _T("页/共 ") + CLewaimaiString::ANSIToUnicode(to_string(m_total_page)) + _T("页");
|
|
|
pControl->SetText(pageinfo.c_str());
|