/*获取指定用户在某区间内所有完成的病历*/ public CaseHistory GetCaseHistory(string userID, string password, DateTime? startDate, DateTime? endDate) { UserService userService = new UserService(); UserInfo userInfo = userService.Login(userID, password); if (userInfo.ErrorMessage == null) { /*不显示ICD-10编码*/ return userService.GetCaseHistory(startDate, endDate, false); } else { CaseHistory caseHistory = new CaseHistory(); caseHistory.ErrorMessage = userInfo.ErrorMessage; return caseHistory; } }