/// <summary> /// 确定 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button1_Click(object sender, EventArgs e) { if (dataGridView1.Rows.Count == 0) { MessageBox.Show("请选择病人!"); } else { string mzjldid = dataGridView1.CurrentRow.Cells[0].Value.ToString(); string patID = dataGridView1.CurrentRow.Cells[1].Value.ToString(); string patNAME = dataGridView1.CurrentRow.Cells[2].Value.ToString(); string patSEX = dataGridView1.CurrentRow.Cells[3].Value.ToString(); string patAGE = dataGridView1.CurrentRow.Cells[4].Value.ToString(); ShuXuePG f2 = new ShuXuePG(mzjldid, patID); f2.ShowDialog(); } }
private void button3_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count > 0) { string patID = dataGridView1.CurrentRow.Cells["病人编号"].Value.ToString(); string mzjldId = ""; if ((int)_FlowType > 6) { if (dataGridView1.CurrentRow.Cells["麻醉编号"].Value != null) { mzjldId = dataGridView1.CurrentRow.Cells["麻醉编号"].Value.ToString(); } } string patZhuyuanID = dataGridView1.CurrentRow.Cells["住院号"].Value.ToString(); string date = dateTimePicker1.Value.Date.ToString("yyyy-MM-dd"); switch (_FlowType) { case EnumCreator.FlowType.NotSet: break; case EnumCreator.FlowType.Paiban: break; case EnumCreator.FlowType.OperImplant: OperImplant SSSZR = new OperImplant(patID, date); SSSZR.Show(); break; case EnumCreator.FlowType.Mzzqtys: MZZQTYS MZZQTYS = new MZZQTYS(patID, date); MZZQTYS.Show(); break; case EnumCreator.FlowType.BeforeVisit_YS: BeforeVisit_HQ BeforeVisit_YS = new BeforeVisit_HQ(patID, date); BeforeVisit_YS.Show(); break; case EnumCreator.FlowType.BeforeVisit_HS: BeforeVisit_HS_HQ BeforeVisit_HS = new BeforeVisit_HS_HQ(patID, date); BeforeVisit_HS.Show(); break; case EnumCreator.FlowType.Mzjld: break; case EnumCreator.FlowType.QixieQingdian: break; case EnumCreator.FlowType.PACU: PACU_HQ pacu = new PACU_HQ(patID, mzjldId, date); pacu.ShowDialog(); break; case EnumCreator.FlowType.NurseRecord: NurseRecord_HQ NurseRecord_HQ = new NurseRecord_HQ(mzjldId, patID, date); NurseRecord_HQ.Show(); break; case EnumCreator.FlowType.AfterAnalgesia: AfterAnalgesia mzzt = new AfterAnalgesia(mzjldId, patID, date); mzzt.Show(); break; case EnumCreator.FlowType.AnesthesiaSummary: AnesthesiaSummary mzzj = new AnesthesiaSummary(mzjldId, patID, date); mzzj.Show(); break; case EnumCreator.FlowType.Lsyz: LsyzForm lsyz = new LsyzForm(mzjldId, patID); lsyz.Show(); break; case EnumCreator.FlowType.TransfusionEvaluation: ShuXuePG sxpg = new ShuXuePG(mzjldId, patID); sxpg.Show(); break; default: break; } } else { MessageBox.Show("请选择病人!"); } }