|
|
@@ -717,6 +717,30 @@ void CMainWnd::HandleClickMsg(TNotifyUI& msg)
|
|
|
pFenlei->SetText(L"否");
|
|
|
}
|
|
|
|
|
|
+ std::string foodtypeNames = "";
|
|
|
+
|
|
|
+ std::string foodtype_ids = newPrinter.fenlei_ids;
|
|
|
+ std::vector<string> ids = CLewaimaiString::Split(foodtype_ids, ",");
|
|
|
+ for (std::vector<string>::iterator it = ids.begin(); it != ids.end(); it++)
|
|
|
+ {
|
|
|
+ std::string name = CSetting::getFoodtypeName((*it));
|
|
|
+ std::wstring ws_name = CLewaimaiString::UTF8ToUnicode(name);
|
|
|
+ if (name == "zhipuzi_not_found_xxx")
|
|
|
+ {
|
|
|
+ //这种情况是以前保存的分类后来被删掉了
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ foodtypeNames += name + " ";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ foodtypeNames = foodtypeNames.substr(0, foodtypeNames.size() - 1);
|
|
|
+ std::wstring ws_foodtypeNames = CLewaimaiString::UTF8ToUnicode(foodtypeNames);
|
|
|
+
|
|
|
+ CLabelUI* pFenleiIds = static_cast<CLabelUI*>(pEle->FindSubControl(_T("setting_chufang_printer_item_fenlei_ids")));
|
|
|
+ pFenleiIds->SetText(ws_foodtypeNames.c_str());
|
|
|
+
|
|
|
pEle->AddCustomAttribute(L"date", CLewaimaiString::UTF8ToUnicode(newPrinter.date).c_str());
|
|
|
|
|
|
pPrinterList->Add(pEle);
|