Beispiel #1
0
        private void SHZTDToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string         mzID  = dgvMzjld.CurrentRow.Cells["mzjldid"].Value.ToString();
            string         patID = dgvMzjld.CurrentRow.Cells["patid"].Value.ToString();
            NurseRecord_CJ form1 = new NurseRecord_CJ(mzID, patID);

            form1.ShowDialog();
        }
 /// <summary>
 /// 双击事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         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();
         NurseRecord_CJ f2      = new NurseRecord_CJ(patID, mzjldid);
         f2.ShowDialog();
     }
     else
     {
         MessageBox.Show("请选择病人!");
     }
 }