Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_takeout
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
fmp_takeout
Commits
6fd046c5
Commit
6fd046c5
authored
Jul 20, 2017
by
yunpeng.song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
写销售写先插入一条记录
parent
0f065311
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
19 deletions
+21
-19
Thread/workThread/flowcontroll.cpp
+21
-19
No files found.
Thread/workThread/flowcontroll.cpp
View file @
6fd046c5
...
@@ -228,15 +228,17 @@ bool flowControll::_PullOrder()
...
@@ -228,15 +228,17 @@ bool flowControll::_PullOrder()
int
new_orderid
=
_GetTableVID
(
orderObject
);
int
new_orderid
=
_GetTableVID
(
orderObject
);
emit
changeOrderStatus
(
orderObject
,
new_orderid
);
emit
changeOrderStatus
(
orderObject
,
new_orderid
);
GetChannelName
(
orderObject
);
GetChannelName
(
orderObject
);
if
(
!
SelectOrderId
(
orderObject
))
if
(
!
Orderstatus
::
getInstance
().
isorderexit
(
orderObject
->
order_id
))
{
Orderstatus
::
getInstance
().
statusinsert
(
orderObject
->
order_id
,
0
,
0
);
saveSqlite
(
orderObject
);
// if(!SelectOrderId(orderObject))
if
(
orderObject
->
status
!=
1
)
// {
{
// saveSqlite(orderObject);
DoSalesSlip
(
orderObject
,
0
);
//写销售单
// if(orderObject->status != 1)
}
// {
// emit sgnNewIdPrint(orderObject,new_orderid); //新订单打印
// DoSalesSlip(orderObject,0); //写销售单
}
// }
// // emit sgnNewIdPrint(orderObject,new_orderid); //新订单打印
// }
}
}
else
else
{
{
...
@@ -248,19 +250,19 @@ bool flowControll::_PullOrder()
...
@@ -248,19 +250,19 @@ bool flowControll::_PullOrder()
.
arg
(
_GetJsonStr
(
jsonObject
));
.
arg
(
_GetJsonStr
(
jsonObject
));
if
(
oldStatus
!=
orderObject
->
status
)
if
(
oldStatus
!=
orderObject
->
status
)
{
{
if
(
orderObject
->
status
==
2
)
//
if(orderObject->status == 2)
{
//
{
DoSalesSlip
(
orderObject
,
0
);
//写销售单
//
DoSalesSlip(orderObject,0); //写销售单
}
//
}
if
(
orderObject
->
status
==
3
||
orderObject
->
status
==
30
)
//
if(orderObject->status == 3 || orderObject->status ==30)
{
//
{
RefuseSalesSlip
(
orderObject
);
//
RefuseSalesSlip(orderObject);
}
//
}
emit
changeOrderStatus
(
orderObject
,
oldStatus
);
emit
changeOrderStatus
(
orderObject
,
oldStatus
);
}
}
}
}
_EntryOrder
(
orderObject
);
m_timestamp
=
orderObject
->
timestamp
;
m_timestamp
=
orderObject
->
timestamp
;
}
}
syncTime
=
recvJson
[
JSON_SYNCTIME
].
toInt
()
*
1000
;
syncTime
=
recvJson
[
JSON_SYNCTIME
].
toInt
()
*
1000
;
...
...
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