예제 #1
0
        private void SHZTDToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string        mzjldid = dgvMzjld.CurrentRow.Cells[0].Value.ToString();
            string        patID   = dgvMzjld.CurrentRow.Cells[1].Value.ToString();
            string        patNAME = dgvMzjld.CurrentRow.Cells[2].Value.ToString();
            string        patSEX  = dgvMzjld.CurrentRow.Cells[3].Value.ToString();
            string        patAGE  = dgvMzjld.CurrentRow.Cells[4].Value.ToString();
            MZH_ZhengTong f2      = new MZH_ZhengTong(mzjldid, patID);

            f2.ShowDialog();
            //string mzID = dgvMzjld.CurrentRow.Cells[1].Value.ToString();
            //string patID = dgvMzjld.CurrentRow.Cells[0].Value.ToString();
            //MZH_ZhengTong form1 = new MZH_ZhengTong(mzID, patID);
            //form1.ShowDialog();
        }
예제 #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedCells[0].Value == null)
     {
         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();
         MZH_ZhengTong f2      = new MZH_ZhengTong(mzjldid, patID);
         f2.ShowDialog();
     }
 }