Przeglądaj źródła

收款设置的布局

zhangyang 5 lat temu
rodzic
commit
4a53e2b4d9

Plik diff jest za duży
+ 2 - 2
bin/Win32/Debug/zhipuzi_pay_plugin/skin/dayinji_setting.xml


Plik diff jest za duży
+ 50 - 0
bin/Win32/Debug/zhipuzi_pay_plugin/skin/shoukuan_setting.xml


+ 5 - 0
bin/Win32/Debug/zhipuzi_pay_plugin/skin/system_setting.xml

@@ -18,6 +18,7 @@
 				
 				<Option name="system_setting_option_zhuaqu" text="金额抓取" font="0" group="system_setting_item" selected="true" height="40" hotimage="tab_hot.bmp" selectedimage="setting_tab_bkg.png" selectedtextcolor="0xFFFFFFFF"/>
 				<Option name="system_setting_option_dayinji" text="打印机" font="0" group="system_setting_item" height="40" hotimage="tab_hot.bmp" selectedimage="setting_tab_bkg.png" selectedtextcolor="0xFFFFFFFF"/>
+				<Option name="system_setting_option_shoukuanshezhi" text="收款设置" font="0" group="system_setting_item" height="40" hotimage="tab_hot.bmp" selectedimage="setting_tab_bkg.png" selectedtextcolor="0xFFFFFFFF"/>
 				<Option name="system_setting_option_kuaijiejian" text="快捷键" font="0" group="system_setting_item" height="40" hotimage="tab_hot.bmp" selectedimage="setting_tab_bkg.png" selectedtextcolor="0XFFFFFFFF"/>
 				<Option name="system_setting_option_about" text="关于" font="0" group="system_setting_item" height="40" hotimage="tab_hot.bmp" selectedimage="setting_tab_bkg.png" selectedtextcolor="0XFFFFFFFF"/>
 				
@@ -34,6 +35,10 @@
 				</HorizontalLayout>
 				
 				<HorizontalLayout vscrollbar="true">
+					<Include source="shoukuan_setting.xml" />
+				</HorizontalLayout>
+				
+				<HorizontalLayout vscrollbar="true">
 					<Include source="kuaijiejian_setting.xml" />
 				</HorizontalLayout>
 				

+ 40 - 4
zhipuzi_pay_plugin/wnd/CSystemSettingWnd.cpp

@@ -800,6 +800,32 @@ void CSystemSettingWnd::HandleClickMsg(TNotifyUI& msg)
     {
         m_valueWnd->PrintTest();
     }
+	else if (senderName == _T("shoukuan_setting_save"))
+	{
+		//点击了收款设置的保存按钮
+
+		//先处理开机启动
+		CCheckBoxUI* kaijiqidong = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_kaijiqidong"));
+		if (kaijiqidong->IsSelected())
+		{
+			CSystem::autostart();
+		}
+		else
+		{
+			CSystem::cancelAutoStart();
+		}
+
+		//再处理浮标
+		CCheckBoxUI* fubiao = static_cast<CCheckBoxUI*>(m_pm.FindControl(L"shoukuan_setting_fubiao"));
+		if (fubiao->IsSelected())
+		{
+			m_valueWnd->ShowWindow(true);
+		}
+		else
+		{
+			m_valueWnd->ShowWindow(false);
+		}
+	}
     else if(senderName == _T("kuaijiejian_setting_jiesuan_btn"))
     {
         m_kuaijiejian_type = 1;
@@ -835,13 +861,23 @@ void CSystemSettingWnd::HandleSelectChangeMsg(TNotifyUI& msg)
         }
     }
 
+	else if (name == _T("system_setting_option_shoukuanshezhi"))
+	{
+		CTabLayoutUI* pControl = static_cast<CTabLayoutUI*>(m_pm.FindControl(_T("switch")));
+
+		if (pControl && pControl->GetCurSel() != 2)
+		{
+			pControl->SelectItem(2);
+		}
+	}
+
     else if(name == _T("system_setting_option_kuaijiejian"))
     {
         CTabLayoutUI* pControl = static_cast<CTabLayoutUI*>(m_pm.FindControl(_T("switch")));
 
-        if(pControl && pControl->GetCurSel() != 2)
+        if(pControl && pControl->GetCurSel() != 3)
         {
-            pControl->SelectItem(2);
+            pControl->SelectItem(3);
         }
 
         m_is_kuaijiepan_page = true;
@@ -851,9 +887,9 @@ void CSystemSettingWnd::HandleSelectChangeMsg(TNotifyUI& msg)
     {
         CTabLayoutUI* pControl = static_cast<CTabLayoutUI*>(m_pm.FindControl(_T("switch")));
 
-        if(pControl && pControl->GetCurSel() != 3)
+        if(pControl && pControl->GetCurSel() != 4)
         {
-            pControl->SelectItem(3);
+            pControl->SelectItem(4);
         }
     }