From d74b42f6f168b4e00511e1d606215b62b52c2bf5 Mon Sep 17 00:00:00 2001 From: Oybab Date: Tue, 28 Jul 2020 04:18:46 +0800 Subject: [PATCH] Fix bugs. --- TradingSystem/OybabReport/Common/BackstageReport.cs | 2 +- TradingSystem/OybabReport/Common/BackstageReportNoRequest.cs | 2 +- TradingSystem/OybabServicePC/SubWindow/PrinterWindow.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TradingSystem/OybabReport/Common/BackstageReport.cs b/TradingSystem/OybabReport/Common/BackstageReport.cs index 0c50394..53365a3 100644 --- a/TradingSystem/OybabReport/Common/BackstageReport.cs +++ b/TradingSystem/OybabReport/Common/BackstageReport.cs @@ -43,7 +43,7 @@ private void xrcProductName_BeforePrint(object sender, System.Drawing.Printing.P long lang = Printer.Lang; - if (9 == lang) + if (-1 == lang) { lang = Order.Lang; } diff --git a/TradingSystem/OybabReport/Common/BackstageReportNoRequest.cs b/TradingSystem/OybabReport/Common/BackstageReportNoRequest.cs index d90614c..fd452fc 100644 --- a/TradingSystem/OybabReport/Common/BackstageReportNoRequest.cs +++ b/TradingSystem/OybabReport/Common/BackstageReportNoRequest.cs @@ -40,7 +40,7 @@ private void xrcProductName_BeforePrint(object sender, System.Drawing.Printing.P long lang = Printer.Lang; - if (9 == lang) + if (-1 == lang) { lang = Order.Lang; } diff --git a/TradingSystem/OybabServicePC/SubWindow/PrinterWindow.cs b/TradingSystem/OybabServicePC/SubWindow/PrinterWindow.cs index 23b5964..5dd3fad 100644 --- a/TradingSystem/OybabServicePC/SubWindow/PrinterWindow.cs +++ b/TradingSystem/OybabServicePC/SubWindow/PrinterWindow.cs @@ -467,7 +467,7 @@ private bool IgnoreOperateForSave() /// private void Add(){ OpenPageTo(1); - AddToGrid("*", "-1", "", "", "", "", GetPrintType(0), 0, 0, GetLanguage(9), 0, 1); + AddToGrid("*", "-1", "", "", "", "", GetPrintType(0), 0, 0, GetLanguage(-1), 0, 1); krpdgList.FirstDisplayedScrollingRowIndex = 0; }