0% found this document useful (0 votes)
96 views15 pages

Fusion Socket接口协议 - Translated

The document describes a data format and communication protocol for a socket interface. It specifies using TCP with a server address and port. Data is formatted with fields separated by pipes and records separated by double pipes. An example check-in data structure is given with various guest information fields.

Uploaded by

kiy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views15 pages

Fusion Socket接口协议 - Translated

The document describes a data format and communication protocol for a socket interface. It specifies using TCP with a server address and port. Data is formatted with fields separated by pipes and records separated by double pipes. An example check-in data structure is given with various guest information fields.

Uploaded by

kiy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

北京中煜尚信软件有限公司

Sunshinesoft

Fusion Socket Interface Protocol

Communicate method: Win Socket

Protocol: TCP

SERVER ADDR: 10.48.14.1

PORT: 9603

ROLE: Server / Client

Uniform Data Format

Use “|” to separate the fields

字段与字段之间用竖线 | 分开

Use “||” to separate the records

记录与记录之间用双竖线 || 分开

Sunshinesoft Beijing Co., Ltd.  5-15-103 Qixingyuan, Shijingshan District, Beijing PRC. 100040
(86)13718710175 [email protected] www.Sunshinesoft.net 1
北京中煜尚信软件有限公司
Sunshinesoft

Data structure:

Function Col1 Col2 Col3 Col4 Col5 Col6 Col7 Col8 …


Check In … … … … … … … … …
Check In … … … … … … … … …

Text format of sending or receiving 文本格式发送或接收:

Function|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|…||

Check In|…|…|…|…|…|…|…|…|…||

Check In|…|…|…|…|…|…|…|…|…

第一行第一列表示功能类型. In the first row and the first column means function type

第一行其他列表示要发送数据字段名称或接收的参数名称. Other columns in the first row means sended field names or received parameter names

第二行起,表示实际传递的数据. All others since the second row are all data of the actual traffic.

系统实际传递的字段数量,可能会大于接收端的要求. 接收端请按需截取. The actual transferred data may be larger than the receiver’s requirements. Please choose

the data according to your requirements.

Sunshinesoft Beijing Co., Ltd.  5-15-103 Qixingyuan, Shijingshan District, Beijing PRC. 100040
(86)13718710175 [email protected] www.Sunshinesoft.net 2
北京中煜尚信软件有限公司
Sunshinesoft

Function: Check In / Check Out / Guest Info

Data structure:

ReservationCo AlternateNam
Function Code ConfirmationNo IDCard LastName FirstName Gender Title
de e
Check In /
Check
99 99 99 Null Li YingChun 李迎春 M Mr
Out /
Guest Info
IdType IdNo GuestCode BlackList MemberCard MembershipLevel Country Language Nation VipLevel
360102198202050
ID 6 Null Null Null CN Null Null Null
531*
Preference Phone Address Company Agent Source Sales Block Party ContactCode
Null 13718710175 Null Null Null Null Null Null Null Null
ContactNa DepartureDat
CallerName CallerPhone ReserveName ReservationType ReservationStatus ArrivalDate Night Adult
me e
2016-12-5
Null 李迎春 13718710175 Null Checked in Checked in 2016-7-6 00:00 152 1
00:00
DiscountAmo DiscountReas
Child Rooms RoomType RTC UpgradeReason Room RateCode ShareCode
unt on
0 1 ASS ASS Null 2388 FTA2 Null Null 99
PostingApproveAm PostingApproveUs PostingApproveBal
ShareType PrintRate NoPost GuestBalance Package MarketCode SourceCode
ount ed ance
Entire Null Null Null 0 0 -8909 BF2 RAC LOP
OriginCode PaymentType CreditCardNo CreditCardExpireD ApproveAmount1 ApproveAmount ApproveCode Special RoomFeature ETA

Sunshinesoft Beijing Co., Ltd.  5-15-103 Qixingyuan, Shijingshan District, Beijing PRC. 100040
(86)13718710175 [email protected] www.Sunshinesoft.net 3
北京中煜尚信软件有限公司
Sunshinesoft

ate
WEB CA Null Null Null 0 Null Null Null Null
ETD StayReason EntryPort ExtensionRating Confidential Note CashierNote InsertUser InsertDate CheckInUser
Null Null Null Null Null Null Null CRS 05:38.6 Null
DepartureTim OriginalDeparture DeparturePostReas CancellationRea CancellationD CancellationU
ArrivalTime CheckOutUser EarlyDeparture CRSNo
e Date on son ate ser
Null Null Null Null Null Null Null Null Null Null
CRSpwd Updatetimestamp EntryDate AlertInfo FixChargeInfo LocatorInfo MessageInfo RoutingInfo TraceInfo TrackItInfo
0x0000000000BC5
Null Null Null Null Null Null Null Null Null
3CD
TransportI FixedRateAmo PreferenceInf ProfileNoteInf
FixedRate RoomRate TotalVisit PrepayInfo VOD Email
nfo unt o o
46558080@qq.
Null 1 410 410 Null Null Null Null Null
com

Sunshinesoft Beijing Co., Ltd.  5-15-103 Qixingyuan, Shijingshan District, Beijing PRC. 100040
(86)13718710175 [email protected] www.Sunshinesoft.net 4
北京中煜尚信软件有限公司
Sunshinesoft

Sending or receiving text format:


Function|Code|ReservationCode|ConfirmationNo|IDCard|LastName|FirstName|AlternateName|Gender|Title|IdType|IdNo|GuestCode|BlackList|MemberCard|MembershipLevel|Country|Language|

Nation|VipLevel|Preference|Phone|Address|Company|Agent|Source|Sales|Block|Party|ContactCode|ContactName|CallerName|CallerPhone|ReserveName|ReservationType|ReservationStatus|

ArrivalDate|Night|DepartureDate|Adult|Child|Rooms|RoomType|RTC|UpgradeReason|Room|RateCode|DiscountAmount|DiscountReason|ShareCode|ShareType|PrintRate|NoPost|

PostingApproveAmount|PostingApproveUsed|PostingApproveBalance|GuestBalance|Package|MarketCode|SourceCode|OriginCode|PaymentType|CreditCardNo|CreditCardExpireDate|

ApproveAmount1|ApproveAmount|ApproveCode|Special|RoomFeature|ETA|ETD|StayReason|EntryPort|ExtensionRating|Confidential|Note|CashierNote|InsertUser|InsertDate|CheckInUser|

ArrivalTime|CheckOutUser|DepartureTime|EarlyDeparture|OriginalDepartureDate|DeparturePostReason|CancellationReason|CancellationDate|CancellationUser|CRSNo|CRSpwd|

Updatetimestamp|EntryDate|AlertInfo|FixChargeInfo|LocatorInfo|MessageInfo|RoutingInfo|TraceInfo|TrackItInfo|TransportInfo|FixedRate|FixedRateAmount|RoomRate|TotalVisit|PrepayInfo|VOD|

PreferenceInfo|ProfileNoteInfo|Email||

Check In / Check Out/ Guest Info|99|99|99|Null|Li|YingChun|李迎春|M|Mr|ID|360102198202050531*|6|

Null|Null|Null|CN|Null|Null|Null|Null|13718710175|Null|Null|Null|Null|Null|Null|Null|Null|Null|

李迎春|13718710175|Null|Checked in|Checked in|2016-7-6 00:00|152|2016-12-5 00:00|1|0|1|ASS|ASS|Null|2388|FTA2|Null|Null|99

|Entire|Null|Null|Null|0|0|-8909|BF2|RAC|LOP|WEB|CA|Null|Null|Null|0|Null|Null|Null|Null|Null|Null|Null|Null|Null|Null|Null|CRS|05:38.6|

Null|Null|Null|Null|Null|Null|Null|Null|Null|Null|Null|Null|0x0000000000BC53CD|Null|Null|Null|Null|Null|Null|Null|Null|Null|

1|410|410|Null|Null|Null|Null|Null|[email protected]

Sunshinesoft Beijing Co., Ltd.  5-15-103 Qixingyuan, Shijingshan District, Beijing PRC. 100040
(86)13718710175 [email protected] www.Sunshinesoft.net 5
北京中煜尚信软件有限公司
Sunshinesoft

Strings name explanation

ID Column English Chinese


1 Function Function 功能
2 Code Code 代码
3 ReservationCode Code 预订号
4 ConfirmationNo Conf No 预订号
5 IDCard IDCard 身份证阅读
6 LastName Last Name 英文姓
7 FirstName First Name 英文名
8 AlternateName Alternate Name 中文名
9 Gender Gender 性别
10 Title Title 称谓
11 IdType Id Type 证件类型
12 IdNo Id No 证件号码
13 GuestCode Guest Code 宾客代码
14 BlackList Black List 黑名单信息
15 MemberCard Member Card 会员卡
16 MembershipLevel Member Level 会员级别
17 Country Country 国家
18 Language Language 语言
19 Nation Nation 民族
20 VipLevel VIP 贵宾
21 Preference Preference 喜好
22 Phone Phone 电话

Sunshinesoft Beijing Co., Ltd.  5-15-103 Qixingyuan, Shijingshan District, Beijing PRC. 100040
(86)13718710175 [email protected] www.Sunshinesoft.net 6
北京中煜尚信软件有限公司
Sunshinesoft

23 Address Address 地址
24 Company Company 公司
25 Agent Agent 旅行社
26 Source Source 订房中心
27 Sales Sales 销售员
28 Block Block 团队
29 Party Party 同来
30 ContactCode Contact Code 联系人代码
31 ContactName Contact Name 联系人
32 CallerName Caller Name 联系人
33 CallerPhone Caller Phone 联系电话
34 ReserveName Reserve Name 预订人
35 ReservationType Resv Type 预订类型
36 ReservationStatus Status 预订状态
37 ArrivalDate Arrival Date 到店日期
38 Night Night 天数
39 DepartureDate Dep Date 离店日期
40 Adult Adult 成人
41 Child Child 儿童
42 Rooms Rooms 房数
43 RoomType Room Type 房间类型
44 RTC RTC 计价房型
45 UpgradeReason Upgrade Reason 升级原因
46 Room Room 房号
47 RateCode Rate Code 价格代码

Sunshinesoft Beijing Co., Ltd.  5-15-103 Qixingyuan, Shijingshan District, Beijing PRC. 100040
(86)13718710175 [email protected] www.Sunshinesoft.net 7
北京中煜尚信软件有限公司
Sunshinesoft

48 DiscountAmount Disc Amt 折扣额


49 DiscountReason Disc Reason 折扣原因
50 ShareCode Share Code 合住代码
51 ShareType Share Type 合住类型
52 PrintRate Print Rate 打印房价
53 NoPost No Post 不可入账
54 PostingApproveAmount Appr Amt 签单控制金额
55 PostingApproveUsed Appr Used 签单控制已用
56 PostingApproveBalance Appr Balance 签单控制余额
57 GuestBalance Balance 余额
58 Package Package 套餐
59 MarketCode Market Code 市场代码
60 SourceCode Source Code 客源代码
61 OriginCode Origin Code 渠道代码
62 PaymentType Payment Type 付款方式
63 CreditCardNo Credit Card No 银行卡
64 CreditCardExpireDate CC Expire Date 有效期
65 ApproveAmount1 Appr Amt1 授权金额 1
66 ApproveAmount Appr Amt 授权金额
67 ApproveCode Approve Code 授权码
68 Special Special 特殊要求
69 RoomFeature Room Feature 房间特性
70 ETA ETA 预抵时间
71 ETD ETD 预离时间
72 StayReason Stay Reason 停留原因

Sunshinesoft Beijing Co., Ltd.  5-15-103 Qixingyuan, Shijingshan District, Beijing PRC. 100040
(86)13718710175 [email protected] www.Sunshinesoft.net 8
北京中煜尚信软件有限公司
Sunshinesoft

73 EntryPort Entry Port 入境口岸


74 ExtensionRating Ext Rating 分机等级
75 Confidential Confidential 保密
76 Note Note 备注
77 CashierNote Cashier Note 收银备注
78 InsertUser Insert User 新建用户
79 InsertDate Insert Date 新建日期
80 CheckInUser Check In User 开房操作员
81 ArrivalTime Arrival Time 来店时间
82 CheckOutUser Check Out User 结账操作员
83 DepartureTime Dep Time 离店时间
84 EarlyDeparture Early Dep 提前离店
85 OriginalDepartureDate Original Dep Date 初始离期
86 DeparturePostReason Dep Post Reason 不加收原因
87 CancellationReason Cxl Reason 取消原因
88 CancellationDate Cxl Date 取消日期
89 CancellationUser Cxl User 取消操作员
90 CRSNo CRSNo 中央预订号
91 CRSpwd CRSpwd 中央预订号密码
92 Updatetimestamp Updatetimestamp 更新时间
93 EntryDate Entry Date 入境日期
94 AlertInfo Alert Info 警示信息
95 FixChargeInfo Fix Charge Info 固定消费信息
96 LocatorInfo Locator Info 定位信息
97 MessageInfo Message Info 消息信息

Sunshinesoft Beijing Co., Ltd.  5-15-103 Qixingyuan, Shijingshan District, Beijing PRC. 100040
(86)13718710175 [email protected] www.Sunshinesoft.net 9
北京中煜尚信软件有限公司
Sunshinesoft

98 RoutingInfo Routing Info 分账信息


99 TraceInfo Trace Info 内部事务信息
100 TrackItInfo Track It Info 包裹信息
101 TransportInfo Transport Info 用车信息
102 FixedRate Fixed Rate 固定价格
103 FixedRateAmount Fixed Rate Amt 固定房价
104 RoomRate Room Rate 房价
105 TotalVisit Total Visit 来店次数
106 PrepayInfo Prepay Info 预付信息
107 VOD VOD 视频点播
108 PreferenceInfo Preference Info 喜爱信息
109 ProfileNoteInfo Profile Note Info 档案备注信息
110 Email Email 邮件

Sunshinesoft Beijing Co., Ltd.  5-15-103 Qixingyuan, Shijingshan District, Beijing PRC. 100040
(86)13718710175 [email protected] www.Sunshinesoft.net 10
北京中煜尚信软件有限公司
Sunshinesoft

Function: Reading bill

Request data format:

Function Parameter

Guest Folio Room No

Sending or receiving text format:


Function | Parameter || Guest Folio | 3003

Sunshinesoft Beijing Co., Ltd.  5-15-103 Qixingyuan, Shijingshan District, Beijing PRC. 100040
(86)13718710175 [email protected] www.Sunshinesoft.net 11
北京中煜尚信软件有限公司
Sunshinesoft

Send data structure:


Functio Cod PaymentCo Amou ReservationCo Windo Roo TransactionD TransactionCo Deb Credi Referen Cashi
Description CheckNo Supplement
n e de nt de w m ate de it t ce er
Guest 〖全
5 Null -8909 99 1 【窗口 1】 Null Null Null Null Null Null Null Null
Folio 部〗
- 宾客余
Guest 全部.余额:- 109 LDR90,RM900,RS
5 Null -8909 99 1 2388 【在店】   1000 额:- Null Null
Folio 8909.00 1 101,
0 8909.00
Guest Dry
Guest Cleaning / ADMI
4 Null -8909 99 1 2388 12-4 4401 90 Null Null Null Null
Folio Valet.客人 N
干洗/熨烫
RoomServi
ce Lunch-
Guest ADMI
3 Null -8909 99 1 2388 12-4 2520 Food.送餐 100 Null Null Null Null
Folio N
部午餐-食

M--Room
Guest ADMI
2 Null -8909 99 1 2388 12-4 1005 Charge.M-- 900 Null Null Null Null
Folio N
房费
-
Guest Cash- ADMI
1 Null -8909 99 1 2388 12-4 9000   1000 Null Null Null
Folio RMB.现金 N
0

Sunshinesoft Beijing Co., Ltd.  5-15-103 Qixingyuan, Shijingshan District, Beijing PRC. 100040
(86)13718710175 [email protected] www.Sunshinesoft.net 12
北京中煜尚信软件有限公司
Sunshinesoft

文本格式发送或接收:
Function|Code|PaymentCode|Amount|ReservationCode|Window|Room|TransactionDate|TransactionCode|Description|Debit|Credit|CheckNo|Reference|Supplement|Cashier||

Guest Folio|5|Null|-8909|99|1|〖全部〗|【窗口 1】|Null|Null|Null|Null|Null|Null|Null|Null||

Guest Folio|5|Null|-8909|99|1|2388|【在店】||全部.余额:-8909.00|1091|-10000|宾客余额:-8909.00|Null|LDR90,RM900,RS101,|Null||

Guest Folio|4|Null|-8909|99|1|2388|2016-12-4|4401|Guest Dry Cleaning / Valet.客人干洗/熨烫|90|Null|Null|Null|Null|ADMIN||

Guest Folio|3|Null|-8909|99|1|2388|2016-12-4|2520|RoomService Lunch-Food.送餐部午餐-食品|100|Null|Null|Null|Null|ADMIN||

Guest Folio|2|Null|-8909|99|1|2388|2016-12-4|1005|M--Room Charge.M--房费|900|Null|Null|Null|Null|ADMIN||

Guest Folio|1|Null|-8909|99|1|2388|2016-12-4|9000|Cash-RMB.现金||-10000|Null|Null|Null|ADMIN

Sunshinesoft Beijing Co., Ltd.  5-15-103 Qixingyuan, Shijingshan District, Beijing PRC. 100040
(86)13718710175 [email protected] www.Sunshinesoft.net 13
北京中煜尚信软件有限公司
Sunshinesoft

String names explanation

ID Column English Chinese

1 Function Function 功能

2 Code Code 代码

3 PaymentCode Payment Code 付款方式

4 Amount Amount 余额

5 ReservationCode Reservation Code 预订号


6 Window Window 窗口
7 Room Room 房号
8 TransactionDate Transaction Date 日期
9 TransactionCode Transaction Code 账项代码
10 Description Description 描述
11 Debit Debit 借方
12 Credit Credit 贷方
13 CheckNo CheckNo 单据号
14 Reference Reference 参考号
15 Supplement Supplement 备注
16 Cashier Cashier 收银员

Sunshinesoft Beijing Co., Ltd.  5-15-103 Qixingyuan, Shijingshan District, Beijing PRC. 100040
(86)13718710175 [email protected] www.Sunshinesoft.net 14
北京中煜尚信软件有限公司
Sunshinesoft

Function: Reading guest info

Request data format:

Function Parameter

Guest Info Room No

文本格式发送或接收:Function | Parameter || Guest Info | 3003

Regarding of the returned data, please refer to the example of “Check In / Check Out”

Sunshinesoft Beijing Co., Ltd.  5-15-103 Qixingyuan, Shijingshan District, Beijing PRC. 100040
(86)13718710175 [email protected] www.Sunshinesoft.net 15

You might also like