Ejemplo n.º 1
0
        private void PACUToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string mzID  = dgvMzjld.CurrentRow.Cells["mzjldid"].Value.ToString();
            string patID = dgvMzjld.CurrentRow.Cells["patid"].Value.ToString();
            PACU   F     = new PACU(mzID, patID);

            F.ShowDialog();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 双击事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridView1.RowCount > 0)
     {
         if (dataGridView1.SelectedCells[0].Value == null)
         {
             MessageBox.Show("请选择病人!");
         }
         else
         {
             string patID    = dataGridView1.CurrentRow.Cells["病人编号"].Value.ToString();
             string mzID     = dataGridView1.CurrentRow.Cells["麻醉编号"].Value.ToString();
             PACU   pacuform = new PACU(patID, mzID);
             pacuform.ShowDialog();
         }
     }
 }