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
bc35bca7
Commit
bc35bca7
authored
Sep 06, 2016
by
ss.dai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复没设置销售单写入地址问题
parent
88ead29f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
1 deletions
+24
-1
fmTakeaway/Control/flowControl.cpp
+2
-0
fmTakeaway/DTools/configManger.cpp
+10
-0
fmTakeaway/DTools/configManger.h
+10
-1
fmTakeaway/preDefine.h
+2
-0
No files found.
fmTakeaway/Control/flowControl.cpp
View file @
bc35bca7
...
@@ -25,6 +25,8 @@ FlowControl::FlowControl()
...
@@ -25,6 +25,8 @@ FlowControl::FlowControl()
m_loginSocket
=
NULL
;
m_loginSocket
=
NULL
;
m_pullOrderSocket
=
NULL
;
m_pullOrderSocket
=
NULL
;
m_procOrderSocket
=
NULL
;
m_procOrderSocket
=
NULL
;
FmPlugin
::
GetInstance
().
SetRemoteInfo
(
ConfigManger
::
GetInstance
().
GetDbServerIp
(),
ConfigManger
::
GetInstance
().
GetDbServerPort
());
}
}
void
FlowControl
::
onGetNewStoreInfo
(
const
QString
&
operator_id
,
const
QString
&
pos_id
,
const
QString
&
store_id
,
const
QString
&
business_date
)
void
FlowControl
::
onGetNewStoreInfo
(
const
QString
&
operator_id
,
const
QString
&
pos_id
,
const
QString
&
store_id
,
const
QString
&
business_date
)
...
...
fmTakeaway/DTools/configManger.cpp
View file @
bc35bca7
...
@@ -81,5 +81,15 @@ int ConfigManger::GetTcpServerPort()
...
@@ -81,5 +81,15 @@ int ConfigManger::GetTcpServerPort()
return
m_config
->
value
(
INI_TCPPORT
,
93953
).
toInt
();
return
m_config
->
value
(
INI_TCPPORT
,
93953
).
toInt
();
}
}
QString
ConfigManger
::
GetDbServerIp
()
{
return
m_config
->
value
(
INI_DBSERVERIP
).
toString
();
}
int
ConfigManger
::
GetDbServerPort
()
{
return
m_config
->
value
(
INI_DBSERVERPORT
).
toInt
();
}
fmTakeaway/DTools/configManger.h
View file @
bc35bca7
...
@@ -75,7 +75,16 @@ public:
...
@@ -75,7 +75,16 @@ public:
* 返回:端口号
* 返回:端口号
* */
* */
int
GetTcpServerPort
();
int
GetTcpServerPort
();
/* 功能:获取销售单写入地址
* 参数:NULL
* 返回:销售单地址
* */
QString
GetDbServerIp
();
/* 功能:获取销售单写入端口
* 参数:NULL
* 返回:销售单端口
* */
int
GetDbServerPort
();
private
:
private
:
ConfigManger
();
ConfigManger
();
...
...
fmTakeaway/preDefine.h
View file @
bc35bca7
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
#define INI_SOUNDINTERVAL "Float/soundInterval"
#define INI_SOUNDINTERVAL "Float/soundInterval"
#define INI_REENTRY "Features/reEntry"
#define INI_REENTRY "Features/reEntry"
#define INI_TCPPORT "TcpServer/Port"
#define INI_TCPPORT "TcpServer/Port"
#define INI_DBSERVERIP "DbServer/ip"
#define INI_DBSERVERPORT "DbServer/port"
#define JSON_REQTYPE "reqtype"
#define JSON_REQTYPE "reqtype"
#define JSON_CURRENTUSER "current_user"
#define JSON_CURRENTUSER "current_user"
...
...
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