private void bindFormCaseInfo() { DBPatientInfo patient = new DBPatientInfo(theOperativeCase.patuuid); lb_patientInfo.Text = String.Format("Name: {0}, Ages: {1}", patient.fullName, theOperativeCase.patientage); lb_bookedInfo.Text = String.Format("Surgeon: {0}, Operative Date: {1}", theOperativeCase.surgeonName, theOperativeCase.opdate); lb_caseStatusInfo.Text = theOperativeCase.status.ToString(); }
private void doSelectedPatient(string patientuuid) { selectedPatientuuid = patientuuid; bindFormPatientAndSurgeonUUID(); //重新計算年齡 DBPatientInfo patient = new DBPatientInfo(selectedPatientuuid); TimeSpan ts = appHelper.DateDiffTimeSpan(patient.birthdayDBString.EMStringToDate(), DateTime.Now); tb_PatientAges.Text = Math.Floor(Convert.ToDouble(ts.Days) / 365).ToString(); }
private void bindFormPatientAndSurgeonUUID() { DBPatientInfo patient = new DBPatientInfo(selectedPatientuuid); lb_PatientInfo.Text = String.Format("Name: {0}\r\rBirth: {1}", patient.fullName, patient.birthdayDBString); DBUser surgeon = new DBUser(selectedBookedsurgeonuuid); lb_BookedInfo.Text = String.Format("Surgeon: {0}", surgeon.displayName); }