zhangyang 3 yıl önce
ebeveyn
işleme
2760332b21

+ 1 - 0
bin/Win32/Debug/lewaimai_pos_windows/skin/setting.xml

@@ -158,6 +158,7 @@
 							<ListLabelElement text="30*25mm" />
 							<ListLabelElement text="30*20mm" />
 							<ListLabelElement text="60*50mm" />
+							<ListLabelElement text="50*40mm" />
 						</Combo>
 					</HorizontalLayout>
 					

BIN
bin/Win32/Release/lewaimai_pos_windows/skin/skin.lwm


BIN
bin/Win32/Release/setup/lewaimai_pos_windows_setup_1.0.3.9.exe


+ 1 - 1
bin/Win32/Release/setup/乐外卖接单软件安装脚本.nsi

@@ -2,7 +2,7 @@
 
 ; HM NIS Edit Wizard helper defines
 !define PRODUCT_NAME "乐外卖接单软件"
-!define PRODUCT_VERSION "1.0.3.9"
+!define PRODUCT_VERSION "1.0.4.1"
 !define PRODUCT_PUBLISHER "深圳市迅享科技有限公司"
 !define PRODUCT_WEB_SITE "https://www.lewaimai.com"
 !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\${PRODUCT_NAME}.exe"

BIN
lewaimai_pos_windows/resource/lewaimai_pos_windows.aps


BIN
lewaimai_pos_windows/resource/lewaimai_pos_windows.rc


+ 9 - 0
lewaimai_pos_windows/tool/CPosPrinter.cpp

@@ -1022,6 +1022,11 @@ void CPosPrinter::PrintWaimaiOrderBiaoqian(CWaimaiOrder& order)
 		biaoqian_width = 60;
 		biaoqian_height = 50;
 	}
+	else  if (printer_guige == "50*40mm")
+	{
+		biaoqian_width = 50;
+		biaoqian_height = 40;
+	}
 	else
 	{
 		biaoqian_width = 40;
@@ -1143,6 +1148,10 @@ void CPosPrinter::PrintWaimaiOrderBiaoqian(CWaimaiOrder& order)
 			{
 				nPriceY = 330;
 			}
+			else if (biaoqian_height == 40)
+			{
+				nPriceY = 250;
+			}
 
             //打印价格
             std::string priceInfo = CLewaimaiString::UTF8ToANSI(food_price) + "元";

+ 10 - 0
lewaimai_pos_windows/wnd/CMainWnd.cpp

@@ -1179,6 +1179,10 @@ void CMainWnd::HandleItemSelectMsg(TNotifyUI& msg)
 		{
 			CSetting::SetParam("setting_biaoqian_printer_guige", "60*50mm");
 		}
+		else if (com->GetCurSel() == 5)
+		{
+			CSetting::SetParam("setting_biaoqian_printer_guige", "50*40mm");
+		}
 	}
 	else if (name == _T("setting_biaoqian_printer_fangxiang"))
 	{
@@ -2058,6 +2062,12 @@ void CMainWnd::InitSettingStatus()
 		com->SelectItem(4, false, false);
 		com->SetText(L"60*50mm");
 	}
+	else if (setting_biaoqian_printer_guige == "50*40mm")
+	{
+		com->SetInternVisible(true);
+		com->SelectItem(5, false, false);
+		com->SetText(L"50*40mm");
+	}
 
 	com = static_cast<CComboUI*>(m_pm.FindControl(_T("setting_biaoqian_printer_fangxiang")));
 	std::string setting_biaoqian_printer_fangxiang = CSetting::GetParam("setting_biaoqian_printer_fangxiang");