Example #1
0
        private void SHSFToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string        mzjldid = dgvMzjld.CurrentRow.Cells[0].Value.ToString();
            string        patID   = dgvMzjld.CurrentRow.Cells[1].Value.ToString();
            AfterVisit_SZ f2      = new AfterVisit_SZ(mzjldid, patID);

            f2.ShowDialog();
            //string mzID = dgvMzjld.CurrentRow.Cells[1].Value.ToString();
            //string patID = dgvMzjld.CurrentRow.Cells[0].Value.ToString();
            //AfterVisit_JDZY F = new AfterVisit_JDZY(mzID, patID);
            //F.ShowDialog();
        }
Example #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         string        mzjldid = dataGridView1.CurrentRow.Cells[0].Value.ToString();
         string        patID   = dataGridView1.CurrentRow.Cells[1].Value.ToString();
         AfterVisit_SZ f2      = new AfterVisit_SZ(mzjldid, patID);
         f2.ShowDialog();
     }
     else
     {
         MessageBox.Show("请选择病人!");
     }
 }