/*查看当前时间段多少人选择*/
 public AllAppointment GetMyAppointment() {
     AllAppointmentEntity allAppointmentEntity = doctorLogic.GetMyAppointment();
     AllAppointment allAppointment = new AllAppointment();
     TranslateAllAppointmentEntityToAllAppointmentContractData(allAppointmentEntity, allAppointment);
     return allAppointment;
 }
 /*翻译AllAppointment的Entity为对应的数据契约*/
 private void TranslateAllAppointmentEntityToAllAppointmentContractData(
     AllAppointmentEntity allAppointmentEntity,
     AllAppointment allAppointment) {
     allAppointment.ErrorMessage = allAppointmentEntity.ErrorMessage;
     allAppointment.Count = allAppointmentEntity.Count;
     allAppointment.appointment = new Appointment[allAppointment.Count];
     for (int i = 0; i < allAppointment.Count; i++) {
         allAppointment.appointment[i] = new Appointment();
         allAppointment.appointment[i].sGuid     = allAppointmentEntity.appointment[i].gGuid.ToString();
         allAppointment.appointment[i].Date      = allAppointmentEntity.appointment[i].Date;
         allAppointment.appointment[i].UserID    = allAppointmentEntity.appointment[i].UserID;
         allAppointment.appointment[i].DoctorID  = allAppointmentEntity.appointment[i].DoctorID;
         allAppointment.appointment[i].Rank      = allAppointmentEntity.appointment[i].Rank;
         allAppointment.appointment[i].Finished  = allAppointmentEntity.appointment[i].Finished;
     }
 }
 /*获取待去的预约记录*/
 public AllAppointment GetMyFutureAppointment(string userID, string password) {
     UserService userService = new UserService();
     UserInfo userInfo = userService.Login(userID, password);
     if (userInfo.ErrorMessage == null) {
         return userService.GetMyFutureAppointment();
     }
     else {
         AllAppointment allAppointment = new AllAppointment();
         allAppointment.ErrorMessage = userInfo.ErrorMessage;
         return allAppointment;
     }
 }