Kaynağa Gözat

转台功能完成了

张洋 3 yıl önce
ebeveyn
işleme
8395240dc0

BIN
bin/Win32/Debug/zhipuzi_pos_windows/skin/zhengcan_zhuanchu.png


BIN
bin/Win32/Debug/zhipuzi_pos_windows/skin/zhengcan_zhuanru.png


+ 16 - 4
zhipuzi_pos_windows/page/CZhengcanPageUI.cpp

@@ -343,7 +343,11 @@ void CZhengcanPageUI::DoRefreshTable()
 
 	UpdateTablePos();
 
-	if (m_nModel == 2)
+	if (m_nModel == 1)
+	{
+		
+	}
+	else if (m_nModel == 2)
 	{
 		ShowZhuanTai();
 	}
@@ -585,6 +589,7 @@ void CZhengcanPageUI::ShowZhuanTai()
 		return;
 	}
 
+	//展示转出标记
 	for (std::vector<CZhengcanTableItemUI*>::iterator it = m_table_items.begin(); it != m_table_items.end(); it++)
 	{
 		if ((*it)->GetTableId() == m_HuantaiTableId)
@@ -595,14 +600,16 @@ void CZhengcanPageUI::ShowZhuanTai()
 		}
 	}
 
+	//展示转出悬浮条
 	CHorizontalLayoutUI* pZhuantaiLayout = static_cast<CHorizontalLayoutUI*>(this->FindSubControl(_T("zhengcan_zhuantai_layout")));
 	pZhuantaiLayout->SetVisible(true);
 
-	//初始化转出没选中
-	m_cur_zhuanru_item = NULL;
-
+	//禁用转入悬浮条的确认按钮
 	CButtonUI* zhuantaiQuerenBtn = static_cast<CButtonUI*>(this->FindSubControl(L"zhengcan_zhuantai_queding"));
 	zhuantaiQuerenBtn->SetEnabled(false);
+
+	//初始化转入没选中
+	m_cur_zhuanru_item = NULL;
 }
 
 void CZhengcanPageUI::CancelZhuanTai()
@@ -625,6 +632,8 @@ void CZhengcanPageUI::CancelZhuanTai()
 	if (m_cur_zhuanru_item != NULL)
 	{
 		m_cur_zhuanru_item->ShowZhuanru(false);
+
+		m_cur_zhuanru_item = NULL;
 	}
 }
 
@@ -691,5 +700,8 @@ void CZhengcanPageUI::QurenZhuantai()
 
 	m_nModel = 1;
 
+	CHorizontalLayoutUI* pZhuantaiLayout = static_cast<CHorizontalLayoutUI*>(this->FindSubControl(_T("zhengcan_zhuantai_layout")));
+	pZhuantaiLayout->SetVisible(false);
+
 	InitShow();
 }