Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
inputQmcdcode
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
shuai.liu
inputQmcdcode
Commits
949ead29
Commit
949ead29
authored
Apr 16, 2019
by
刘帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
香港版本修改读取门店号方式:使用StoreLegacyId字段并检查是否5位,不够在前边补0
parent
eaf43adc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
qMcdCode/golbal.cpp
+18
-6
No files found.
qMcdCode/golbal.cpp
View file @
949ead29
...
...
@@ -69,15 +69,27 @@ bool readStorid(QString &storid)
xml
.
clear
();
file
.
close
();
// hk版本不进行检查 2019-03-27
// if( StoreLegacyId != StoreId){
// QMessageBox::information(NULL, QString("err"), "StoreLegacyId和StoreId不配,请联系it人员!");
// }
StoreId
.
trimmed
();
StoreLegacyId
.
trimmed
();
#ifdef CHINESE_TRADITIONAL
storid
=
StoreLegacyId
;
int
length
=
StoreLegacyId
.
length
();
if
(
length
<
5
)
//要求门店号是5位,不够在前边补0
{
QString
newStore_id
(
5
-
length
,
QChar
(
'0'
));
newStore_id
.
append
(
StoreLegacyId
);
storid
=
newStore_id
;
}
#else
// hk版本不进行检查 2019-03-27
if
(
StoreLegacyId
!=
StoreId
)
{
QMessageBox
::
information
(
NULL
,
QString
(
"err"
),
"StoreLegacyId和StoreId不配,请联系it人员!"
);
}
storid
=
StoreId
;
#endif
return
true
;
}
bool
readPosNo
(
QString
&
posNo
)
...
...
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