|
|
@@ -23,8 +23,9 @@ void CSettingPageUI::InitShow()
|
|
|
|
|
|
CCheckBoxUI* box = NULL;
|
|
|
CComboUI* com = NULL;
|
|
|
- box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_is_new_waimai_voice")));
|
|
|
|
|
|
+ //外卖订单设置
|
|
|
+ box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_is_new_waimai_voice")));
|
|
|
if (CSetting::GetParam("setting_is_new_waimai_voice") == "1")
|
|
|
{
|
|
|
box->Selected(true, false);
|
|
|
@@ -35,7 +36,6 @@ void CSettingPageUI::InitShow()
|
|
|
}
|
|
|
|
|
|
box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_is_new_waimai_autoconfirm")));
|
|
|
-
|
|
|
if (CSetting::GetParam("setting_is_new_waimai_autoconfirm") == "1")
|
|
|
{
|
|
|
box->Selected(true, false);
|
|
|
@@ -46,7 +46,6 @@ void CSettingPageUI::InitShow()
|
|
|
}
|
|
|
|
|
|
box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_is_new_waimai_printer")));
|
|
|
-
|
|
|
if (CSetting::GetParam("setting_is_new_waimai_printer") == "1")
|
|
|
{
|
|
|
box->Selected(true, false);
|
|
|
@@ -56,8 +55,27 @@ void CSettingPageUI::InitShow()
|
|
|
box->Selected(false, false);
|
|
|
}
|
|
|
|
|
|
- com = static_cast<CComboUI*>(this->FindSubControl(_T("setting_printer_guige")));
|
|
|
+ box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_is_new_waimai_biaoqian_printer")));
|
|
|
+ if (CSetting::GetParam("setting_is_new_waimai_biaoqian_printer") == "1")
|
|
|
+ {
|
|
|
+ box->Selected(true, false);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ box->Selected(false, false);
|
|
|
+ }
|
|
|
|
|
|
+ box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_is_new_waimai_chufang_printer")));
|
|
|
+ if (CSetting::GetParam("setting_is_new_waimai_chufang_printer") == "1")
|
|
|
+ {
|
|
|
+ box->Selected(true, false);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ box->Selected(false, false);
|
|
|
+ }
|
|
|
+
|
|
|
+ com = static_cast<CComboUI*>(this->FindSubControl(_T("setting_printer_guige")));
|
|
|
if (CSetting::GetParam("setting_printer_guige") == "58")
|
|
|
{
|
|
|
com->SetInternVisible(true);
|
|
|
@@ -188,7 +206,6 @@ void CSettingPageUI::InitShow()
|
|
|
}
|
|
|
|
|
|
box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_printer_quhuo_big")));
|
|
|
-
|
|
|
if (CSetting::GetParam("setting_printer_quhuo_big") == "1")
|
|
|
{
|
|
|
box->Selected(true, false);
|
|
|
@@ -199,7 +216,6 @@ void CSettingPageUI::InitShow()
|
|
|
}
|
|
|
|
|
|
box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_printer_dingdanhao_big")));
|
|
|
-
|
|
|
if (CSetting::GetParam("setting_printer_dingdanhao_big") == "1")
|
|
|
{
|
|
|
box->Selected(true, false);
|
|
|
@@ -210,7 +226,6 @@ void CSettingPageUI::InitShow()
|
|
|
}
|
|
|
|
|
|
box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_printer_xiadanshijian_big")));
|
|
|
-
|
|
|
if (CSetting::GetParam("setting_printer_xiadanshijian_big") == "1")
|
|
|
{
|
|
|
box->Selected(true, false);
|
|
|
@@ -221,7 +236,6 @@ void CSettingPageUI::InitShow()
|
|
|
}
|
|
|
|
|
|
box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_printer_peisongshijian_big")));
|
|
|
-
|
|
|
if (CSetting::GetParam("setting_printer_peisongshijian_big") == "1")
|
|
|
{
|
|
|
box->Selected(true, false);
|
|
|
@@ -232,7 +246,6 @@ void CSettingPageUI::InitShow()
|
|
|
}
|
|
|
|
|
|
box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_printer_name_big")));
|
|
|
-
|
|
|
if (CSetting::GetParam("setting_printer_name_big") == "1")
|
|
|
{
|
|
|
box->Selected(true, false);
|
|
|
@@ -243,7 +256,6 @@ void CSettingPageUI::InitShow()
|
|
|
}
|
|
|
|
|
|
box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_printer_phone_big")));
|
|
|
-
|
|
|
if (CSetting::GetParam("setting_printer_phone_big") == "1")
|
|
|
{
|
|
|
box->Selected(true, false);
|
|
|
@@ -254,7 +266,6 @@ void CSettingPageUI::InitShow()
|
|
|
}
|
|
|
|
|
|
box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_printer_address_big")));
|
|
|
-
|
|
|
if (CSetting::GetParam("setting_printer_address_big") == "1")
|
|
|
{
|
|
|
box->Selected(true, false);
|
|
|
@@ -265,7 +276,6 @@ void CSettingPageUI::InitShow()
|
|
|
}
|
|
|
|
|
|
box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_printer_shangpin_big")));
|
|
|
-
|
|
|
if (CSetting::GetParam("setting_printer_shangpin_big") == "1")
|
|
|
{
|
|
|
box->Selected(true, false);
|
|
|
@@ -276,7 +286,6 @@ void CSettingPageUI::InitShow()
|
|
|
}
|
|
|
|
|
|
box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_printer_memo_big")));
|
|
|
-
|
|
|
if (CSetting::GetParam("setting_printer_memo_big") == "1")
|
|
|
{
|
|
|
box->Selected(true, false);
|
|
|
@@ -287,7 +296,6 @@ void CSettingPageUI::InitShow()
|
|
|
}
|
|
|
|
|
|
box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_printer_price_big")));
|
|
|
-
|
|
|
if (CSetting::GetParam("setting_printer_price_big") == "1")
|
|
|
{
|
|
|
box->Selected(true, false);
|
|
|
@@ -298,7 +306,6 @@ void CSettingPageUI::InitShow()
|
|
|
}
|
|
|
|
|
|
box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_printer_pay_big")));
|
|
|
-
|
|
|
if (CSetting::GetParam("setting_printer_pay_big") == "1")
|
|
|
{
|
|
|
box->Selected(true, false);
|
|
|
@@ -308,20 +315,8 @@ void CSettingPageUI::InitShow()
|
|
|
box->Selected(false, false);
|
|
|
}
|
|
|
|
|
|
- //厨房打印机设置
|
|
|
- box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_is_new_waimai_chufang_printer")));
|
|
|
-
|
|
|
- if (CSetting::GetParam("setting_is_new_waimai_chufang_printer") == "1")
|
|
|
- {
|
|
|
- box->Selected(true, false);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- box->Selected(false, false);
|
|
|
- }
|
|
|
-
|
|
|
+ //系统设置
|
|
|
box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_is_auto_start")));
|
|
|
-
|
|
|
if (CSetting::GetParam("setting_is_auto_start") == "1")
|
|
|
{
|
|
|
box->Selected(true, false);
|
|
|
@@ -354,16 +349,6 @@ void CSettingPageUI::InitShow()
|
|
|
}
|
|
|
|
|
|
//初始化标签打印机的设置
|
|
|
- box = static_cast<CCheckBoxUI*>(this->FindSubControl(_T("setting_is_new_waimai_biaoqian_printer")));
|
|
|
-
|
|
|
- if (CSetting::GetParam("setting_is_new_waimai_biaoqian_printer") == "1")
|
|
|
- {
|
|
|
- box->Selected(true, false);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- box->Selected(false, false);
|
|
|
- }
|
|
|
|
|
|
//usb下拉框默认选中
|
|
|
CComboUI* com_usb = static_cast<CComboUI*>(this->FindSubControl(_T("setting_biaoqian_printer_usb")));
|
|
|
@@ -444,7 +429,6 @@ void CSettingPageUI::InitShow()
|
|
|
CListUI* pPrinterList = static_cast<CListUI*>(this->FindSubControl(_T("setting_chufang_printer_list")));
|
|
|
|
|
|
//获取当前店铺的商品分类信息,用于设置厨房打印机的分类打印
|
|
|
-
|
|
|
while (1)
|
|
|
{
|
|
|
//先清空一次分类(主要考虑退出登陆重新登录的情况)
|
|
|
@@ -1088,41 +1072,46 @@ void CSettingPageUI::HandleSelectChangeMsg(TNotifyUI& msg)
|
|
|
CTabLayoutUI* pControl = static_cast<CTabLayoutUI*>(this->FindSubControl(_T("setting_switch")));
|
|
|
pControl->SelectItem(0);
|
|
|
}
|
|
|
- else if (name == _T("setting_printer_switch"))
|
|
|
+ if (name == _T("setting_diannei_order_switch"))
|
|
|
{
|
|
|
CTabLayoutUI* pControl = static_cast<CTabLayoutUI*>(this->FindSubControl(_T("setting_switch")));
|
|
|
pControl->SelectItem(1);
|
|
|
}
|
|
|
- else if (name == _T("setting_biaoqian_printer_switch"))
|
|
|
+ else if (name == _T("setting_printer_switch"))
|
|
|
{
|
|
|
CTabLayoutUI* pControl = static_cast<CTabLayoutUI*>(this->FindSubControl(_T("setting_switch")));
|
|
|
pControl->SelectItem(2);
|
|
|
}
|
|
|
- else if (name == _T("setting_chufang_printer_switch"))
|
|
|
+ else if (name == _T("setting_biaoqian_printer_switch"))
|
|
|
{
|
|
|
CTabLayoutUI* pControl = static_cast<CTabLayoutUI*>(this->FindSubControl(_T("setting_switch")));
|
|
|
pControl->SelectItem(3);
|
|
|
}
|
|
|
- else if (name == _T("setting_xianshi_switch"))
|
|
|
+ else if (name == _T("setting_chufang_printer_switch"))
|
|
|
{
|
|
|
CTabLayoutUI* pControl = static_cast<CTabLayoutUI*>(this->FindSubControl(_T("setting_switch")));
|
|
|
pControl->SelectItem(4);
|
|
|
}
|
|
|
- else if (name == _T("setting_system_switch"))
|
|
|
+ else if (name == _T("setting_xianshi_switch"))
|
|
|
{
|
|
|
CTabLayoutUI* pControl = static_cast<CTabLayoutUI*>(this->FindSubControl(_T("setting_switch")));
|
|
|
pControl->SelectItem(5);
|
|
|
}
|
|
|
- else if (name == _T("setting_system_about"))
|
|
|
+ else if (name == _T("setting_system_switch"))
|
|
|
{
|
|
|
CTabLayoutUI* pControl = static_cast<CTabLayoutUI*>(this->FindSubControl(_T("setting_switch")));
|
|
|
pControl->SelectItem(6);
|
|
|
}
|
|
|
- if (name == _T("xianshi_setting_youtu"))
|
|
|
+ else if (name == _T("setting_system_about"))
|
|
|
+ {
|
|
|
+ CTabLayoutUI* pControl = static_cast<CTabLayoutUI*>(this->FindSubControl(_T("setting_switch")));
|
|
|
+ pControl->SelectItem(7);
|
|
|
+ }
|
|
|
+ else if (name == _T("xianshi_setting_youtu"))
|
|
|
{
|
|
|
CSetting::SetParam("setting_xianshi_is_youtu", "1");
|
|
|
}
|
|
|
- if (name == _T("xianshi_setting_wutu"))
|
|
|
+ else if (name == _T("xianshi_setting_wutu"))
|
|
|
{
|
|
|
CSetting::SetParam("setting_xianshi_is_youtu", "0");
|
|
|
}
|