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
1d7dc8da
Commit
1d7dc8da
authored
May 15, 2017
by
ss.dai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1:增加写升级程序需要的信息到配置文件2:替换声音文件
parent
30d909a2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
fmTakeaway/Control/flowControl.cpp
+14
-2
fmTakeaway/mainForm.cpp
+1
-1
run/wav/msg.wav
+0
-0
run/wav/msg1.wav
+0
-0
No files found.
fmTakeaway/Control/flowControl.cpp
View file @
1d7dc8da
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
#include <QTimer>
#include <QTimer>
#include <QDir>
#include <QDir>
#include <QApplication>
#include <QApplication>
#include <QHostInfo>
FlowControl
&
FlowControl
::
GetInstance
()
FlowControl
&
FlowControl
::
GetInstance
()
{
{
...
@@ -33,6 +34,19 @@ bool FlowControl::_GetStoreInfo()
...
@@ -33,6 +34,19 @@ bool FlowControl::_GetStoreInfo()
emit
showAlert
(
AlertForm
::
LOADING
,
"正在获取门店信息......"
);
emit
showAlert
(
AlertForm
::
LOADING
,
"正在获取门店信息......"
);
QLOG_INFO
()
<<
QString
(
"[---get storeInfo---]"
);
QLOG_INFO
()
<<
QString
(
"[---get storeInfo---]"
);
result
=
FmPlugin
::
GetInstance
().
GetStoreInfo
(
m_storeId
,
m_posId
,
m_cashierId
,
m_bDate
,
error
);
result
=
FmPlugin
::
GetInstance
().
GetStoreInfo
(
m_storeId
,
m_posId
,
m_cashierId
,
m_bDate
,
error
);
/// 为了配合升级程序在此处获取到门店号则将其写入配置文件
/// ../storeInfo.ini -- info/store_id -- info/pos_no
QString
iniPath
=
QString
(
"%1/../storeInfo.ini"
).
arg
(
QApplication
::
applicationDirPath
());
QSettings
setting
(
iniPath
,
QSettings
::
IniFormat
);
if
(
!
setting
.
contains
(
"info/store_id"
))
{
qsrand
(
QTime
(
0
,
0
,
0
).
secsTo
(
QTime
::
currentTime
()));
setting
.
setValue
(
"info/store_id"
,
m_storeId
);
setting
.
setValue
(
"info/pos_no"
,
qrand
());
}
QLOG_INFO
()
<<
QString
(
"get storeInfo finsh. [result:%1][msg:%2][storeId:%3,posId:%4,cashierId:%5,bdate:%6]"
)
QLOG_INFO
()
<<
QString
(
"get storeInfo finsh. [result:%1][msg:%2][storeId:%3,posId:%4,cashierId:%5,bdate:%6]"
)
.
arg
(
result
).
arg
(
error
,
m_storeId
,
m_posId
,
m_cashierId
,
m_bDate
.
toString
(
"yyyy-MM-dd"
));
.
arg
(
result
).
arg
(
error
,
m_storeId
,
m_posId
,
m_cashierId
,
m_bDate
.
toString
(
"yyyy-MM-dd"
));
...
@@ -159,8 +173,6 @@ bool FlowControl::_PullOrder()
...
@@ -159,8 +173,6 @@ bool FlowControl::_PullOrder()
}
}
}
}
// 当天完成的订单,尝试重复入账一次
// 当天完成的订单,尝试重复入账一次
qDebug
()
<<
QDateTime
::
fromTime_t
(
orderObject
->
create_time
).
date
()
<<
QDate
::
currentDate
();
if
((
orderObject
->
status
==
6
||
orderObject
->
status
==
200
)
&&
(
QDateTime
::
fromTime_t
(
orderObject
->
create_time
).
date
()
==
QDate
::
currentDate
()))
if
((
orderObject
->
status
==
6
||
orderObject
->
status
==
200
)
&&
(
QDateTime
::
fromTime_t
(
orderObject
->
create_time
).
date
()
==
QDate
::
currentDate
()))
{
{
// 写入销售单
// 写入销售单
...
...
fmTakeaway/mainForm.cpp
View file @
1d7dc8da
...
@@ -313,7 +313,7 @@ void MainForm::onChangeOrderStatus(OrderObject *orderObject, int oldStatus)
...
@@ -313,7 +313,7 @@ void MainForm::onChangeOrderStatus(OrderObject *orderObject, int oldStatus)
tabBtn
=
_GetTabBtnByOrderStatus
(
orderObject
->
status
);
tabBtn
=
_GetTabBtnByOrderStatus
(
orderObject
->
status
);
table
=
findChild
<
QTableWidget
*>
(
tabBtn
->
property
(
"tableName"
).
toString
());
table
=
findChild
<
QTableWidget
*>
(
tabBtn
->
property
(
"tableName"
).
toString
());
table
->
insertRow
(
0
);
table
->
insertRow
(
0
);
QTableWidgetItem
*
item0
=
new
QTableWidgetItem
(
orderObject
->
channelName
);
QTableWidgetItem
*
item0
=
new
QTableWidgetItem
(
QString
(
"%1#%2"
).
arg
(
orderObject
->
channelName
).
arg
(
orderObject
->
order_index
)
);
item0
->
setTextAlignment
(
Qt
::
AlignCenter
);
item0
->
setTextAlignment
(
Qt
::
AlignCenter
);
table
->
setItem
(
0
,
0
,
item0
);
// 渠道
table
->
setItem
(
0
,
0
,
item0
);
// 渠道
QTableWidgetItem
*
item1
=
new
QTableWidgetItem
(
orderObject
->
order_id
);
QTableWidgetItem
*
item1
=
new
QTableWidgetItem
(
orderObject
->
order_id
);
...
...
run/wav/msg.wav
View file @
1d7dc8da
No preview for this file type
run/wav/msg1.wav
View file @
1d7dc8da
No preview for this file type
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