Esempio n. 1
0
 /// <summary>
 /// 双击事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         int      mzjldid = int.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString());
         string   patID   = dataGridView1.CurrentRow.Cells[1].Value.ToString();
         LsyzForm f2      = new LsyzForm(mzjldid, patID);
         f2.ShowDialog();
     }
     else
     {
         MessageBox.Show("请选择病人!");
     }
 }
Esempio n. 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count > 0)
            {
                string patID   = dataGridView1.CurrentRow.Cells["病人编号"].Value.ToString();
                string mzjldId = "";
                if ((int)_FlowType > 6)
                {
                    if (dataGridView1.CurrentRow.Cells["麻醉编号"].Value != null)
                    {
                        mzjldId = dataGridView1.CurrentRow.Cells["麻醉编号"].Value.ToString();
                    }
                }
                string patZhuyuanID = dataGridView1.CurrentRow.Cells["住院号"].Value.ToString();
                string date         = dateTimePicker1.Value.Date.ToString("yyyy-MM-dd");
                switch (_FlowType)
                {
                case EnumCreator.FlowType.NotSet:
                    break;

                case EnumCreator.FlowType.Paiban:
                    break;

                case EnumCreator.FlowType.OperImplant:
                    OperImplant SSSZR = new OperImplant(patID, date);
                    SSSZR.Show();
                    break;

                case EnumCreator.FlowType.Mzzqtys:
                    MZZQTYS MZZQTYS = new MZZQTYS(patID, date);
                    MZZQTYS.Show();
                    break;

                case EnumCreator.FlowType.BeforeVisit_YS:
                    BeforeVisit_HQ BeforeVisit_YS = new BeforeVisit_HQ(patID, date);
                    BeforeVisit_YS.Show();
                    break;

                case EnumCreator.FlowType.BeforeVisit_HS:
                    BeforeVisit_HS_HQ BeforeVisit_HS = new BeforeVisit_HS_HQ(patID, date);
                    BeforeVisit_HS.Show();
                    break;

                case EnumCreator.FlowType.Mzjld:
                    break;

                case EnumCreator.FlowType.QixieQingdian:
                    break;

                case EnumCreator.FlowType.PACU:
                    PACU_HQ pacu = new PACU_HQ(patID, mzjldId, date);
                    pacu.ShowDialog();
                    break;

                case EnumCreator.FlowType.NurseRecord:
                    NurseRecord_HQ NurseRecord_HQ = new NurseRecord_HQ(mzjldId, patID, date);
                    NurseRecord_HQ.Show();
                    break;

                case EnumCreator.FlowType.AfterAnalgesia:
                    AfterAnalgesia mzzt = new AfterAnalgesia(mzjldId, patID, date);
                    mzzt.Show();
                    break;

                case EnumCreator.FlowType.AnesthesiaSummary:
                    AnesthesiaSummary mzzj = new AnesthesiaSummary(mzjldId, patID, date);
                    mzzj.Show();
                    break;

                case EnumCreator.FlowType.Lsyz:
                    LsyzForm lsyz = new LsyzForm(mzjldId, patID);
                    lsyz.Show();
                    break;

                case EnumCreator.FlowType.TransfusionEvaluation:
                    ShuXuePG sxpg = new ShuXuePG(mzjldId, patID);
                    sxpg.Show();
                    break;

                default:
                    break;
                }
            }
            else
            {
                MessageBox.Show("请选择病人!");
            }
        }