Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FmTakeaway
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
shangshang.dai
FmTakeaway
Commits
ce44cc42
Commit
ce44cc42
authored
Apr 14, 2017
by
ss.dai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
44a58903
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
fmTakeaway/Control/flowControl.cpp
+5
-1
run/printerConfig_tmp.ini
+3
-0
takeaway.pro.user
+1
-1
No files found.
fmTakeaway/Control/flowControl.cpp
View file @
ce44cc42
...
...
@@ -170,7 +170,6 @@ bool FlowControl::_PullOrder()
emit
changeOrderStatus
(
orderObject
);
if
(
!
Orderstatus
::
getInstance
().
isorderexit
(
orderId
))
{
Orderstatus
::
getInstance
().
statusinsert
(
orderId
,
0
);
...
...
@@ -181,6 +180,10 @@ bool FlowControl::_PullOrder()
QLOG_INFO
()
<<
QString
(
"[---begin to tip---]"
);
// 打印
QLOG_INFO
()
<<
QString
(
"[---begin print---]"
);
QSettings
tmpIni
(
QString
(
"%1/%2"
).
arg
(
QApplication
::
applicationDirPath
()).
arg
(
"printerConfig_tmp.ini"
),
QSettings
::
IniFormat
);
int
num
=
tmpIni
.
value
(
QString
(
"%1/num"
).
arg
(
orderObject
->
channel
),
1
).
toInt
();
for
(
int
i
=
0
;
i
<
num
;
i
++
)
{
if
(
FmPrinter
::
GetInstance
().
DoPrint
(
ConfigManger
::
GetInstance
().
GetPrinterName
(),
orderObject
))
{
QLOG_INFO
()
<<
QString
(
"print sucessful"
);
...
...
@@ -191,6 +194,7 @@ bool FlowControl::_PullOrder()
QLOG_INFO
()
<<
QString
(
"print failed"
);
}
}
}
}
else
{
//旧数据有更新
...
...
run/printerConfig_tmp.ini
0 → 100644
View file @
ce44cc42
[info]
num
=
2
\ No newline at end of file
takeaway.pro.user
View file @
ce44cc42
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.0.0, 2017-04-1
0T18:15:59
. -->
<!-- Written by QtCreator 4.0.0, 2017-04-1
4T09:39:05
. -->
<qtcreator>
<data>
<variable>
EnvironmentId
</variable>
...
...
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