/*查询处方单在特定药房的花费,供User调用。*/ public PrescriptionCost GetPrescriptionCost(string userID, string password, string sPrescriptionID, string pharmacyID) { UserService userService = new UserService(); UserInfo userInfo = userService.Login(userID, password); if (userInfo.ErrorMessage == null) { return userService.GetPrescriptionCost(sPrescriptionID, pharmacyID); } else { PrescriptionCost prescriptionCost = new PrescriptionCost(); prescriptionCost.ErrorMessage = userInfo.ErrorMessage; return prescriptionCost; } }