第9贴—>http://topic.csdn.net/u/20100707/16/23c136cc-8f89-4e20-8a8b-eb60ac1f5aa6.html
大致的工作原理是对方有软件,会时时记录客人什么时候登记入住,什么时候离开酒店,以及客人的基本信息等等。
他们这个软件提供了一个支持TCP的接口。那么我现在要做的这个程序,就是利用Socket中的TCP模式去进行一些收发操作(比如发送数据询问当天入住情况,然后那个软件返回给我相关的入住情况信息等等)。
各位有什么想法就说说,接下来几天如果不外出我可能会发一些关于这方面的帖子,目的是集思广益。
本贴内容—>房间信息(中文解释是我写的,不对的地方希望高手改改。同时想到了什么请说说)/********************************英语原文********************************************/
Room Data
 
RE - Room equipment statusRE records are used to control the status of any room equipment (i.e. set/clear items such as message waiting status (ML) or Class of Service (CS) for TMSs; set/clear TV privileges for Video systems (TV), etc.).  These records are generally room-oriented and need to be configured in the PMS.  In some cases (i.e. TV and MR), it is also possible to configure them as well in the Guest Data records (GI, GC).Manual changes to TV and MR would however always be passed over in the RE record so this record must be defined and supported if the right fields are used.NOTE: It is possible that two or more stati are changed in the same record ! Some Fidelio systems can not support both the Do-not-Disturb functionality and the TV rights at the same time. Please clarify with your regional Interface product manager.ExamplesTurn Message Light (ML) on for Room (RN) 2781【软件发给我】RE|RN2781|MLY|G#12345| Turn DND (DN) on for Room (RN) 2781:【软件发给我】RE|RN2781|DNY| Set COS (CS) to ‘3’ for Room (RN) 2781:【软件发给我】RE|RN2781|CS3|  
Set COS (CS) to ‘2’ for Room (RN) 2781 and turn DND (DN)off  :【软件发给我】RE|RN2781|CS2|DNN| Voice Mail (VM) notification on for Room (RN) 2781:【我发给软件】RE|RN2781|VMY|orVoice Mail (VM) notification with Unread (1)/Read (3) counts for Room (RN) 2781:【我发给软件】RE|RN2781|VM0103| Maid status notification (RS) (clean/vacant) for Room (RN) 2781 (default maid statuses are listed in the Room Maid Statuses Table in Appendix B):【我发给软件】RE|RN2781|RS3| Maid status notification (RS) (clean/vacant) for Room (RN) 2781, number of persons (PU) in the room is 3:【我发给软件】RE|RN2781|RS3|PU3| Maid status notification (RS) with text (CT) to print on printer (PP) 1 for Room (RN) 2781:【我发给软件】RE|RN2781|RS1|PP1|CTSend maintenance personnel.| Text (CT) to be printed on printer (PP) 1 for Room (RN) 2781:【我发给软件】RE|RN2781|PP1|CTGuest in 2781 needs assistance.|Note: The printer port (PP) and text (CT) can be used with RE records to print a message on a specified printer (must be configured); this only occurs if both fields exist in the record.  If there are other fields included (i.e. set room status – RS), this action will also be performed.
Note: Newer interface versions will expect value '1' in PP and will do internal definition which printer to use.  Set Minibar rights (MR) to normal vend (i.e. no alcoholic articles) for Room (RN) 2781:【软件发给我】RE|RN2781|MRMN| Set Pay TV rights (TV) to block Adult movies in Room (RN) 2781:【软件发给我】RE|RN2781|TVTX| 
Notes: Pay TV rights have the following precedence: TN, no rights (no TV channels); TM, all Pay channels blocked; TX, Adult Pay channels blocked; TU, all rights (includes all Pay channels).  With TV rights it is not possible to block normal Pay channels and allow Adult pay channels.
/**************************************************************************************************//********************************翻译********************************************/房间信息
RE – 房间设备状态
RE记录被用作控制房间设备态(既 设置/清空项目,如等待状态(ML)消息或Class of Service(CS)为TMSs;设置/清空 TV特权为电视系统(TV)等等)。这些记录一般房间想到和需要的配置在PMS中。在某些情况下(也就是TV和MR),它也可以去配置它们以及在客户数据记录中(GI,GC)。
Manual changes to TV and MR would however always be passed over in the RE record,所以这个记录必须定义和支持如果正确的fields被使用。注:这是可能的,那些两个或更多的被改变在同一个记录中!一些Fidelio系统不能支持两个“请勿打扰”功能和TV rights同一时间。Please clarify with your regional Interface product manager.例子:打开 Message Light(ML) 为房间(RN)2781
【软件发给我】RE|RN2781|MLY|G#12345|
打开DND(DN)为房间(RN)2781:
【软件发给我】RE|RN2781|DNY|
设置 COS(CS)为‘3’为房间(RN)2781:
【软件发给我】RE|RN2781|CS3|
设置COS(CS)为‘2’房间(RN)2781和关闭DND(DN):
【软件发给我】RE|RN2781|CS2|DNN|语音邮件(VM)通知房间(RN)2781:
【我发给软件】RE|RN2781|VMY|

语音邮件(VM通知以及with Unread (1)/Read (3) counts 为房间(RN)2781:
【我发给软件】RE|RN2781|VM0103|
服务员状态通知(RS)(清洁/空白)为房间(RN)2781(默认的服务员状态列表在方面服务员状态表单中附录B)
【我发给软件】RE|RN2781|RS3|
服务员状态通知(RS)(清洁/空白)为房间(RN)2781,在房间的人数(PU)是3:
【我发给软件】RE|RN2781|RS3|PU3|
服务员状态通知(RS)和文本(CT)要打印在打印机(PP)1为房间(RN)2781:
【我发给软件】RE|RN2781|RS1|PP1|CTSend maintenance personnel.|
文本(CT)要被打印在打印机(PP)1 为房间(RN)2781:
【我发给软件】RE|RN2781|PP1|CTGuest in 2781 needs assistance.|注:打印机端口(PP)和文本(CT)能被用作RE记录去打印一个消息在制定打印机(必须配置);这只会出现在两个fields存在的记录。如果有其它fields包括在内(既设置房间状态-RS),这个动作也将被执行。
注:较新的接口版本将expect 值 ‘1’在PP中和将内部定义用作打印机。
设置迷你吧权限(MR)去正常声明(既不许携带酒类物品)为房间(RN)2781:
【软件发给我】RE|RN2781|MRMN|
设置交付TV权限(TV)去防止承认电影在房间(RN)2781:
【软件发给我】RE|RN2781|TVTX|注:交付TV权限有以下优先:TN,没有权限(没有TV通道);TM,所有交付通道阻塞;TX,成人交付通道阻塞;TU,所有权限(包括所有交付通道)。TV权限是不可能的去阻止正常交付和允许成人交付通道。