Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmPOS
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhenfei.zhang
fmPOS
Commits
6869663f
Commit
6869663f
authored
Aug 21, 2017
by
gujin.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改核销插件中各个窗口的标题为中文
parent
a677dc81
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
17 additions
and
9 deletions
+17
-9
fmp_redeem/consumokdialog.cpp
+2
-1
fmp_redeem/consumptiondialog.cpp
+2
-1
fmp_redeem/errcodedialog.cpp
+2
-1
fmp_redeem/fmp_redeem.cpp
+2
-2
fmp_redeem/fmp_redeem.h
+1
-1
fmp_redeem/fmp_redeem_i.h
+1
-1
fmp_redeem/scanningdialog.cpp
+7
-2
release/rcc/redeem.rcc
+0
-0
No files found.
fmp_redeem/consumokdialog.cpp
View file @
6869663f
#include "consumokdialog.h"
#
include
"consumokdialog.h"
#include "ui_consumokdialog.h"
ConsumOkDialog
::
ConsumOkDialog
(
QWidget
*
parent
,
Qt
::
WindowFlags
f
)
:
...
...
@@ -6,6 +6,7 @@ ConsumOkDialog::ConsumOkDialog(QWidget * parent, Qt::WindowFlags f) :
ui
(
new
Ui
::
ConsumOkDialog
)
{
ui
->
setupUi
(
this
);
setWindowTitle
(
QString
::
fromLocal8Bit
(
"非码卡券"
));
setWindowFlags
(
windowFlags
()
|
Qt
::
WindowStaysOnTopHint
|
Qt
::
FramelessWindowHint
);
setAutoFillBackground
(
false
);
//这个不设置的话就背景变黑
setAttribute
(
Qt
::
WA_TranslucentBackground
,
true
);
...
...
fmp_redeem/consumptiondialog.cpp
View file @
6869663f
#include "consumptiondialog.h"
#
include
"consumptiondialog.h"
#include "ui_consumptiondialog.h"
...
...
@@ -7,6 +7,7 @@ ConsumptionDialog::ConsumptionDialog(QWidget * parent, Qt::WindowFlags f) :
ui
(
new
Ui
::
ConsumptionDialog
)
{
ui
->
setupUi
(
this
);
setWindowTitle
(
QString
::
fromLocal8Bit
(
"非码卡券"
));
setWindowFlags
(
windowFlags
()
|
Qt
::
WindowStaysOnTopHint
|
Qt
::
FramelessWindowHint
);
setAutoFillBackground
(
false
);
//这个不设置的话就背景变黑
setAttribute
(
Qt
::
WA_TranslucentBackground
,
true
);
...
...
fmp_redeem/errcodedialog.cpp
View file @
6869663f
#include "errcodedialog.h"
#
include
"errcodedialog.h"
#include "ui_errcodedialog.h"
ErrCodeDialog
::
ErrCodeDialog
(
QWidget
*
parent
,
Qt
::
WindowFlags
f
)
:
...
...
@@ -6,6 +6,7 @@ ErrCodeDialog::ErrCodeDialog(QWidget * parent, Qt::WindowFlags f) :
ui
(
new
Ui
::
ErrCodeDialog
)
{
ui
->
setupUi
(
this
);
setWindowTitle
(
QString
::
fromLocal8Bit
(
"非码卡券"
));
setWindowFlags
(
windowFlags
()
|
Qt
::
WindowStaysOnTopHint
|
Qt
::
FramelessWindowHint
);
setAutoFillBackground
(
false
);
//这个不设置的话就背景变黑
setAttribute
(
Qt
::
WA_TranslucentBackground
,
true
);
...
...
fmp_redeem/fmp_redeem.cpp
View file @
6869663f
...
...
@@ -100,7 +100,7 @@ QJsonValue FMPRedeem::SearchJsonArray(const QJsonArray& searchJson, const QStrin
return
value
;
}
QJsonObject
FMPRedeem
::
Redeem
(
const
double
needPay
,
const
QJsonObject
&
requestInfo
)
QJsonObject
FMPRedeem
::
Redeem
(
const
double
needPay
,
const
QJsonObject
&
requestInfo
,
QWidget
*
parent
)
{
FMP_DEBUG
()
<<
"Recv redeem data: "
<<
QJsonDocument
(
requestInfo
).
toJson
(
QJsonDocument
::
Compact
);
_products_info
=
SearchJsonObject
(
requestInfo
,
"products"
).
toArray
();
...
...
@@ -115,7 +115,7 @@ QJsonObject FMPRedeem::Redeem(const double needPay, const QJsonObject& requestIn
_partner_id
=
settings
.
value
(
FMP_INIKEY_LOGINPARTNERID
).
toInt
();
//显示扫码界面获取券码
ScanningDialog
scanningDialog
;
ScanningDialog
scanningDialog
(
parent
)
;
if
(
scanningDialog
.
exec
()
!=
QDialog
::
Accepted
)
{
QJsonObject
ret
;
...
...
fmp_redeem/fmp_redeem.h
View file @
6869663f
...
...
@@ -29,7 +29,7 @@ public:
explicit
FMPRedeem
(
const
FMPContext
context
);
virtual
~
FMPRedeem
();
QJsonObject
Redeem
(
const
double
needPay
,
const
QJsonObject
&
requestInfo
);
//券码核销
QJsonObject
Redeem
(
const
double
needPay
,
const
QJsonObject
&
requestInfo
,
QWidget
*
parent
=
0
);
//券码核销
protected
:
const
FMPContext
GetContext
()
const
{
return
_context
;
}
...
...
fmp_redeem/fmp_redeem_i.h
View file @
6869663f
...
...
@@ -20,7 +20,7 @@ public:
connect
(
this
,
&
FMPRedeemInterface
::
TriggerUninit
,
this
,
&
FMPRedeemInterface
::
OnTriggerUninit
);
}
virtual
QJsonObject
Redeem
(
const
double
needPay
,
const
QJsonObject
&
requestInfo
)
=
0
;
//券码核销
virtual
QJsonObject
Redeem
(
const
double
needPay
,
const
QJsonObject
&
requestInfo
,
QWidget
*
parent
=
0
)
=
0
;
//券码核销
signals:
void
TriggerInit
();
void
TriggerUninit
();
...
...
fmp_redeem/scanningdialog.cpp
View file @
6869663f
#include "scanningdialog.h"
#
include
"scanningdialog.h"
#include "ui_scanningdialog.h"
#include "couponkeypad.h"
#include "fmp_logger_i.h"
#include <QDebug>
#include <Windows.h>
#include <QTimer>
...
...
@@ -10,8 +11,11 @@ ScanningDialog::ScanningDialog(QWidget * parent, Qt::WindowFlags f) :
ui
(
new
Ui
::
ScanningDialog
)
{
ui
->
setupUi
(
this
);
//setGeometry(0, 0, 350, 470);
setWindowTitle
(
QString
::
fromLocal8Bit
(
"非码卡券"
));
setWindowFlags
(
windowFlags
()
|
Qt
::
WindowStaysOnTopHint
|
Qt
::
FramelessWindowHint
);
setAutoFillBackground
(
false
);
//这个不设置的话就背景变黑
//setWindowFlags(Qt::FramelessWindowHint);
//setAutoFillBackground(false); //这个不设置的话就背景变黑
setAttribute
(
Qt
::
WA_TranslucentBackground
,
true
);
setAttribute
(
Qt
::
WA_QuitOnClose
,
false
);
...
...
@@ -76,6 +80,7 @@ void ScanningDialog::onClose()
void
ScanningDialog
::
timeOut
()
{
qDebug
()
<<
"activateWindow"
;
FMP_DEBUG
()
<<
"activateWindow"
;
HWND
hForeWnd
=
::
GetForegroundWindow
();
DWORD
dwForeID
=
::
GetWindowThreadProcessId
(
hForeWnd
,
NULL
);
DWORD
dwCurID
=
::
GetCurrentThreadId
();
...
...
release/rcc/redeem.rcc
0 → 100644
View file @
6869663f
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment