Commit 949ead29 by 刘帅

香港版本修改读取门店号方式:使用StoreLegacyId字段并检查是否5位,不够在前边补0

parent eaf43adc
...@@ -69,15 +69,27 @@ bool readStorid(QString &storid) ...@@ -69,15 +69,27 @@ bool readStorid(QString &storid)
xml.clear(); xml.clear();
file.close(); file.close();
// hk版本不进行检查 2019-03-27 StoreId.trimmed();
// if( StoreLegacyId != StoreId){ StoreLegacyId.trimmed();
// QMessageBox::information(NULL, QString("err"), "StoreLegacyId和StoreId不配,请联系it人员!");
// }
#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; storid = StoreId;
#endif
return true; return true;
} }
bool readPosNo(QString &posNo) bool readPosNo(QString &posNo)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment