浏览代码

优化正餐

张洋 3 年之前
父节点
当前提交
24da02dda5

+ 4 - 1
zhipuzi_pos_windows/control/CZhengcanTableItemUI.cpp

@@ -34,7 +34,7 @@ void CZhengcanTableItemUI::DoEvent(TEventUI& event)
 	CVerticalLayoutUI::DoEvent(event);
 }
 
-void CZhengcanTableItemUI::SetInfo(std::string table_id, std::string table_name, std::string type_id, std::string status, std::string order_init_time, std::string from_type, std::string order_status, std::string order_id, std::string limit_number)
+void CZhengcanTableItemUI::SetInfo(std::string table_id, std::string table_name, std::string type_id, std::string status, std::string order_init_time, std::string from_type, std::string order_status, std::string order_id, std::string limit_number, std::string person_num)
 {
 	m_table_id = table_id;
 	m_table_name = table_name;
@@ -45,6 +45,7 @@ void CZhengcanTableItemUI::SetInfo(std::string table_id, std::string table_name,
 	m_order_status = order_status;
 	m_order_id = order_id;
 	m_limit_number = limit_number;
+	m_person_num = person_num;
 }
 
 void CZhengcanTableItemUI::UpdateShow()
@@ -78,6 +79,8 @@ void CZhengcanTableItemUI::UpdateShow()
 	else if (m_status == "2")
 	{
 		//ÒÑ¿ªÌ¨
+		pRenshu->SetText((CLewaimaiString::UTF8ToUnicode(m_person_num) + L"ÈË").c_str());
+
 		pName->SetTextColor(0xFFFFFFFF);
 		pStatus->SetTextColor(0xFFFFFFFF);
 

+ 2 - 1
zhipuzi_pos_windows/control/CZhengcanTableItemUI.h

@@ -13,7 +13,7 @@ public:
 
 	void DoEvent(TEventUI& event);
 
-	void SetInfo(std::string table_id, std::string table_name, std::string type_id, std::string status, std::string order_init_time, std::string from_type, std::string order_status, std::string order_id, std::string limit_number);
+	void SetInfo(std::string table_id, std::string table_name, std::string type_id, std::string status, std::string order_init_time, std::string from_type, std::string order_status, std::string order_id, std::string limit_number, std::string person_num);
 
 	//刷新显示
 	void UpdateShow();
@@ -59,5 +59,6 @@ private:
 	std::string m_order_status;
 	std::string m_order_id;
 	std::string m_limit_number;
+	std::string m_person_num;
 };
 

文件差异内容过多而无法显示
+ 1 - 1
zhipuzi_pos_windows/page/CZhengcanPageUI.cpp