第7贴—>http://topic.csdn.net/u/20100707/15/566eb1ac-71a7-4d45-9de4-8c7b3d17728f.html
大致的工作原理是对方有软件,会时时记录客人什么时候登记入住,什么时候离开酒店,以及客人的基本信息等等。
他们这个软件提供了一个支持TCP的接口。那么我现在要做的这个程序,就是利用Socket中的TCP模式去进行一些收发操作(比如发送数据询问当天入住情况,然后那个软件返回给我相关的入住情况信息等等)。
各位有什么想法就说说,接下来几天如果不外出我可能会发一些关于这方面的帖子,目的是集思广益。
本贴内容—>拓展的客户数据(中文解释是我写的,不对的地方希望高手改改。同时想到了什么请说说)/********************************英语原文********************************************/
Extended Guest Data
 
XL - Guest message text and other details – online
XM - Guest message request
XT - Guest message text and other details
XD - Guest message delete
XR - Guest bill request
XI - Guest bill item
XB - Guest bill balance
XC - Remote Check-out requestThese Record Types provide a mechanism to request and pass guest specific information of a more comprehensive nature.  They are designed for guest-oriented systems only.  It is possible to send message text (XL) as an online process, that is, without requests, but as they occur in real-time. 
Please note that most of these records require additional configuration in the PMS, some may require additional licensing within the PMS.Examples
Message # (MI) 903 sent online (XL, immediately after entry in PMS) for Reservation Number (G#) 12345 in Room (RN) 2781 entered in Front Office on 31 October 2000 (DA) at 12:47:53 PM (TI):【软件发给我】XL|RN2781|G#12345|MI903|MTThis is a sample message.<CR><LF>It contains formatting information<CR><LF> because it will be printed directly by<CR><LF>the other system.<FF>|DA001031|TI124753| Request for text of [all] guest messages (XM) for Room (RN) 2781, Reservation Number (G#) 12345:
【我发给软件】XM|RN2781|G#12345| Response to guest message request (XT) - same message as shown in the XL record above:
【软件发给我】XT|RN2781|G#12345|MI903|MTThis is a sample message.<CR><LF>It contains formatting information<CR><LF> because it will be printed directly by<CR><LF>the other system.<FF>|DA001031|TI124753| Note: It is possible for a system to work with both modes (online and request mode).  In this case, request mode is generally used as a means to resynchronize the messages stored in the external system.  At initialization, sending a Link Record (LR) for the guest message request (XM), enables request mode.  If, in addition, a LR for online mode (XL) is sent, this mode will also be enabled.
Request to delete (XD) Message # (MI) 903 for Reservation Number (G#) 12345 in Room (RN) 2781:【我发给软件】XD|RN2781|G#12345|MI903| 
Request to view bill (XR) for Reservation Number (GN) 12345 in Room (RN) 2781:【我发给软件】XR|RN2781|G#12345| Response to bill request (XI), bill items (BI) for Reservation Number (G#) 12345 in Room (RN) 2781 with item information - PMS department code (DC), item amount (BI), item description (BD), date (DA) & time (TI) of posting, balance record (XB) has a folio total (BA) of 138.50:【软件发给我】XI|RN2781|F#1|G#12345|DC327|BI350|BDTelephone|DA001031|TI124753|FDY|
【软件发给我】XI|RN2781|F#1|G#12345|DC400|BI2500|BDLobby Bar|DA001031|TI1843000|FDY|
【软件发给我】XI|RN2781|F#2|G#12345|DC100|BI11000|BDRoom&Tax|DA001101|TI031000|FDN|
【软件发给我】XB|RN2781|G#12345|BA13850|DA001101|TI071500| Note: The balance reflects the total of the items sent (generally items that the guest will pay).  This may not be the same as the total of the entire guest folio as there may be items that the guest will not pay (i.e. postings covered by a travel agent) and that should not be displayed to the guest. These items are generally ed with ItemDisplayFlag (FD) "N". It is recommended that this value is not shown to the guest (and that the displayed BalanceAmount (BA) is recalculated based on the total of all items displayed to the guest.)
Remote check-out request (XC) for Reservation Number (G#) 12345 in Room (RN) 2781, balance (BA) 138.50.  Note that balance (BA) must be included in XC records (Fidelio may check, if the received balance matches the current folio total and may refuse the request in case these balances do not match. Value in BA should be taken from the XB record.): 【我发给软件】XC|RN2781|G#12345|BA13850|DA001101|TI071600| 
Response to remote check-out request (XC) for Room (RN) 2781, Reservation Number (G#) 12345 with positive answer status (AS) (check-out allowed and will be done as background process):【软件发给我】XC|RN2781|G#12345|ASOK|DA001101|TI071602|/******************************************************************************************************//********************************翻译********************************************/
拓展的客户数据
XL-客户信息的文本和其他详细信息 - 在线
XM – 客户信息请求
XT – 客户信息文本和其他细节
XD – 删除客户信息
XR – 客户账单请求
XI – 客户账单项目
XB – 客户账单余额
XC – 远程退房请求这些记录类型提供了一种机制去请求和通过客户的一个更加全面性质的具体信息。它们是专门为客户的向导系统。它可以发送文本消息(XL作为一个在线进程,也就是说,没有要求,但是发生在实时。请注意这些记录需要的额外配置在PMS中,有些可能需要额外的授权在PMS中。
例子
消息#(MI)903 发送 在线(XL,immediately after entry in PMS)对愉悦号码(G#)12345 在房间(RN)2781 进入在接待办公室31,000年十月(DA)12:47:53 PM (TI):
【软件发给我】XL|RN2781|G#12345|MI903|MTThis is a sample message.<CR><LF>It contains formatting information<CR><LF> because it will be printed directly by<CR><LF>the other system.<FF>|DA001031|TI124753|请求所有文本客户消息(XM)对房间(RN)2781,预览号码(G#)12345:
【我发给软件】XM|RN2781|G#12345|
回应客户消息请求(XT)-相同的消息作为XL记录上所示:
【软件发给我】XT|RN2781|G#12345|MI903|MTThis is a sample message.<CR><LF>It contains formatting information<CR><LF> because it will be printed directly by<CR><LF>the other system.<FF>|DA001031|TI124753|注:这是可能的一种制度,两种模式下工作(在线和请求模式)。在这种情况下,请求模式通常用作一种重新同步信息存储的一种手段在外部系统。在初始化,发送一个链接记录(LR)对一个客户消息请求(XM),可以请求模式。如果,此外,一个 LR 对在线模式(XL)发送,这个模式将也被启用。请求删除(XD)消息#(MI)903对预览号码(G#)12345在房间(RN)2781:
【我发给软件】XD|RN2781|G#12345|MI903|请求试图账单(XR)为预览号码(GN)12345在房间(RN)2781:
【我发给软件】XR|RN2781|G#12345|响应账单请求(XI),账单项目(BI)为预览账号(G#)12345在房间(RN)2781和项目信息-PMS部门代码(DC),项目数量(BI),项目详情(BD),日期(DA)和时间(TI)of posting,余额记录(XB)有一个对开的全额(BA)的138.50:
 【软件发给我】XI|RN2781|F#1|G#12345|DC327|BI350|BDTelephone|DA001031|TI124753|FDY|
 【软件发给我】XI|RN2781|F#1|G#12345|DC400|BI2500|BDLobby Bar|DA001031|TI1843000|FDY|
 【软件发给我】XI|RN2781|F#2|G#12345|DC100|BI11000|BDRoom&Tax|DA001101|TI031000|FDN|
 【软件发给我】XB|RN2781|G#12345|BA13850|DA001101|TI071500|注:这个余额反映了项目的总额发送(通常是项目的客户消费)。This may not be the same as the total of the entire guest folio as there may be items that the guest will not pay(既酒店所涵盖的记录)和不能给客户展示。这些项目通常标有ItemDisplayFlag(FD)”N”.建议这些值不显示到客户(和 显示余额总数(BA)被重新计算基于所有项目的总额显示给客户。)远程的退房请求(XC)对预览编号(G#)12345在房间(RN)2781,余额(BA)138.50。注意余额(BA)必须包含在XC记录中(Fidelio可能检查,如果收到的余额和当前的对开总数和拒绝请求不匹配。BA中的值将被采取从XB 记录。):
【我发给软件】XC|RN2781|G#12345|BA13850|DA001101|TI071600|
响应远程退房请求(XC)对房间(RN)2781,预览号(G#)12345和积极地答案状态(AS)(推出允许和将被做的作为后台处理):
【软件发给我】XC|RN2781|G#12345|ASOK|DA001101|TI071602|