private void button4_Click(object sender, EventArgs e) { EMR emr = Service.DoctorService.FindEMRbyID(new Guid(textBox2.Text.Trim())); ShowEMR showEMR = new ShowEMR(emr, Service); showEMR.Show(); }
private void button4_Click(object sender, EventArgs e) { EMR emr = Service.PatientService.FindEMR(patient.PublicKey); ShowEMR showEMR = new ShowEMR(emr, Service); showEMR.Show(); Service.dbcontext.SaveChanges(); }
private void button1_Click(object sender, EventArgs e) { EMR emr = Service.DoctorService.unLockEMR(textBox1.Text, textBox2.Text, doctor); if (emr != null) { MessageBox.Show("解锁成功"); ShowEMR showEMR = new ShowEMR(emr, Service); showEMR.Show(); } else { MessageBox.Show("解锁失败"); } }