POS数据收集WebService方式开发示例V10解读文档格式.docx
- 文档编号:19980451
- 上传时间:2023-01-13
- 格式:DOCX
- 页数:38
- 大小:104.21KB
POS数据收集WebService方式开发示例V10解读文档格式.docx
《POS数据收集WebService方式开发示例V10解读文档格式.docx》由会员分享,可在线阅读,更多相关《POS数据收集WebService方式开发示例V10解读文档格式.docx(38页珍藏版)》请在冰豆网上搜索。
"
longll_row
struct_saleswsdatalstr_salesdata
struct_txsalestotallstr_total
struct_txsalesitemlstr_item[]
struct_txsalestenderlstr_tender[]
lstr_salesdata=istr_saleswsdata
lstr_total=istr_txsalestotal
lstr_item[]=istr_txsalesitem_null[]
lstr_item[]=istr_txsalesitem[]
lstr_tender[]=istr_txsalestender_null[]
lstr_tender[]=istr_txsalestender[]
ls_Request='
<
?
xmlversion="
1.0"
encoding="
utf-8"
>
'
+'
~r~n'
ls_Request+='
soap12:
Envelopexmlns:
xsi="
http:
//www.w3.org/2001/XMLSchema-instance"
xmlns:
xsd="
//www.w3.org/2001/XMLSchema"
soap12="
//www.w3.org/2003/05/soap-envelope"
Body>
postsalescreatexmlns="
//tempurl.org"
astr_request>
header>
licensekey>
/licensekey>
username>
+lstr_salesdata.s_localstorecode+'
/username>
password>
/password>
lang>
/lang>
pagerecords>
+is_pagerecords+'
/pagerecords>
pageno>
+is_pageno+'
/pageno>
updatecount>
0<
/updatecount>
messagetype>
+is_messagetype+'
/messagetype>
messageid>
+is_messageid+'
/messageid>
version>
+is_version+'
/version>
/header>
salestotal>
localstorecode>
/localstorecode>
reservedocno>
/reservedocno>
txdate_yyyymmdd>
+STRING(lstr_salesdata.DT_TXDATE,'
YYYYMMDD'
)+'
/txdate_yyyymmdd>
txtime_hhmmss>
+lstr_salesdata.s_txtime+'
/txtime_hhmmss>
ifisnull(lstr_salesdata.s_mallid)thenlstr_salesdata.s_mallid='
mallid>
+lstr_salesdata.s_mallid+'
/mallid>
storecode>
+lstr_salesdata.s_storecode+'
/storecode>
tillid>
+lstr_salesdata.s_tillid+'
/tillid>
salestype>
+is_salestype+'
/salestype>
txdocno>
+lstr_salesdata.s_docno+'
/txdocno>
orgtxdate_yyyymmdd>
/orgtxdate_yyyymmdd>
orgstorecode>
/orgstorecode>
orgtillid>
/orgtillid>
txorgdocno>
/txorgdocno>
mallitemcode>
/mallitemcode>
cashier>
+lstr_total.s_cashier+'
/cashier>
ifisnull(lstr_total.s_clientcode)thenlstr_total.s_clientcode='
vipcode>
+lstr_total.s_clientcode+'
/vipcode>
ifisnull(lstr_total.s_salesman)thenlstr_total.s_salesman='
salesman>
+lstr_total.s_salesman+'
/salesman>
demographiccode>
/demographiccode>
demographicdata>
/demographicdata>
netqty>
+string(lstr_total.dec_NetQty,"
###########0.00"
)+'
/netqty>
originalamount>
+string(lstr_total.dec_OriginalAmount,"
/originalamount>
sellingamount>
+string(lstr_total.dec_SellingAmount,"
/sellingamount>
couponnumber>
/couponnumber>
coupongroup>
/coupongroup>
coupontype>
/coupontype>
couponqty>
/couponqty>
totaldiscount>
/totaldiscount>
ttltaxamount1>
/ttltaxamount1>
ttltaxamount2>
/ttltaxamount2>
netamount>
+string(lstr_total.dec_NetAmount,"
/netamount>
paidamount>
+string(lstr_total.dec_PaidAmount,"
/paidamount>
changeamount>
+string(lstr_total.dec_ChangeAmount,"
/changeamount>
priceincludetax>
/priceincludetax>
shoptaxgroup>
/shoptaxgroup>
extendparam>
/extendparam>
invoicetitle>
/invoicetitle>
invoicecontent>
/invoicecontent>
issueby>
/issueby>
issuedate_yyyymmdd>
+string(today(),'
yyyymmdd'
/issuedate_yyyymmdd>
issuetime_hhmmss>
+string(now(),'
hhmmss'
/issuetime_hhmmss>
ecorderno>
/ecorderno>
buyerremark>
/buyerremark>
orderremark>
/orderremark>
status>
+is_status+'
/status>
ttpossalesdocno>
/ttpossalesdocno>
/salestotal>
salesitems>
forll_row=1tolstr_total.i_NumOfItem
ls_Request+='
salesitem>
iscounteritemcode>
+is_iscounteritemcode+'
/iscounteritemcode>
lineno>
+string(ll_row)+'
/lineno>
+lstr_item[ll_row].s_PluCode+'
counteritemcode>
/counteritemcode>
itemcode>
/itemcode>
plucode>
/plucode>
colorcode>
/colorcode>
sizecode>
/sizecode>
itemlotnum>
+lstr_item[ll_row].s_ItemLotNum+'
/itemlotnum>
serialnum>
/serialnum>
isdeposit>
+lstr_item[ll_row].s_IsDeposit+'
/isdeposit>
iswholesale>
+lstr_item[ll_row].s_IsWholeSale+'
/iswholesale>
invttype>
+string(ii_invttype)+'
/invttype>
qty>
+string(lstr_item[ll_row].dec_qty,"
/qty>
exstk2sales>
+string(lstr_item[ll_row].dec_ExStk2Sales,"
/exstk2sales>
originalprice>
+string(lstr_item[ll_row].dec_OriginalPrice,"
/originalprice>
sellingprice>
/sellingprice>
pricemode>
/pricemode>
ifisnull(lstr_item[ll_row].s_PriceApprove)thenlstr_item[ll_row].s_PriceApprove='
priceapprove>
+lstr_item[ll_row].s_PriceApprove+'
/priceapprove>
ifisnull(lstr_item[ll_row].s_CouponNumber)thenlstr_item[ll_row].s_CouponNumber='
+lstr_item[ll_row].s_CouponNumber+'
itemdiscount>
/itemdiscount>
vipdiscountpercent>
/vipdiscountpercent>
vipdiscountless>
/vipdiscountless>
promotion>
/promotion>
totaldiscountless1>
/totaldiscountless1>
totaldiscountless2>
/totaldiscountless2>
totaldiscountless>
/totaldiscountless>
tax>
/tax>
+string(lstr_item[ll_row].dec_NetAmount,"
bonusearn>
/bonusearn>
ifisnull(lstr_item[ll_row].s_SalesItemRemark)thenlstr_item[ll_row].s_SalesItemRemark='
salesitemremark>
+lstr_item[ll_row].s_SalesItemRemark+'
/salesitemremark>
refundreasoncode>
/refundreasoncode>
/salesitem>
next
/salesitems>
salestenders>
forll_row=1tolstr_total.i_NumOftender
salestender>
tendercode>
+lstr_tender[ll_row].s_TenderCode+'
/tendercod
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- POS 数据 收集 WebService 方式 开发 示例 V10 解读
![提示](https://static.bdocx.com/images/bang_tan.gif)