private void tvPatient_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { if (e.Button != MouseButtons.Left) { return; } if (e.Node.Tag == null) { return; } rInfo = e.Node.Tag as Neusoft.HISFC.Models.Registration.Register; if (rInfo == null) { return; } this.lblPInfo.Text = "病历号:" + rInfo.PID.CardNO + " 姓名:" + rInfo.Name + " 性别:" + rInfo.Sex.Name + " 生日:" + rInfo.Birthday.ToString("yyyy-MM-dd") + " 年龄:" + outPatientFeeManager.GetAge(rInfo.Birthday) + " 合同单位:" + rInfo.Pact.Name; this.ucFeeList1.Clear(); this.ucFeeList1.PatientInfo = rInfo; this.ucFeeList1.Focus(); this.ucFeeList1.SetFocus(); QueryChargeInfo(); }
/// <summary> /// 显示患者信息 /// </summary> /// <param name="patient"></param> /// <returns></returns> private void SetPatientInfo(Neusoft.HISFC.Models.RADT.PatientInfo patient) { this.txtCardNO.Text = patient.PID.CardNO; this.txtName.Text = patient.Name; this.txtSex.Text = patient.Sex.Name; this.txtBirthDay.Text = patient.Birthday.ToString("yyyy-MM-dd"); this.txtAge.Text = outpatientManager.GetAge(patient.Birthday); }
/// <summary> /// 显示患者信息 /// </summary> /// <param name="accountCard"></param> /// <returns></returns> private void SetPatientInfo(AccountCard accountCard) { this.txtMarkNO.Text = accountCard.MarkNO; this.txtName.Text = accountCard.Patient.Name; this.txtSex.Text = accountCard.Patient.Sex.Name; this.txtBirthDay.Text = accountCard.Patient.Birthday.ToString("yyyy-MM-dd"); this.txtAge.Text = outpatientManager.GetAge(accountCard.Patient.Birthday); this.txtIdeNO.Text = accountCard.Patient.IDCard; }