Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count > 0)
            {
                string patID = dataGridView1.CurrentRow.Cells["住院号"].Value.ToString();
                //   BLbbsjdan f2 = new BLbbsjdan(patID);
                //BeforeVisit_HS f2 = new BeforeVisit_HS(patID);
                //f2.ShowDialog();
            }
            else
            {
                MessageBox.Show("请选择病人!");
            }


            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();
                MZZJ_CJ f2      = new MZZJ_CJ(mzjldid, patID);
                f2.ShowDialog();
            }
        }
Beispiel #2
0
        private void MZZJDToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string  mzid  = dgvMzjld.SelectedRows[0].Cells["mzjldid"].Value.ToString();
            String  patid = Convert.ToString(dgvMzjld.SelectedRows[0].Cells["patid"].Value);
            MZZJ_CJ form1 = new MZZJ_CJ(mzid, patid);

            form1.ShowDialog();
        }
Beispiel #3
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs 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();
         MZZJ_CJ f2      = new MZZJ_CJ(mzjldid, patID);
         f2.ShowDialog();
     }
 }