private void but_recall_Click(object sender, EventArgs e)
        {
            sterilizer_batch.Clear();
            if (dgv_01.SelectedRows != null && dgv_01.SelectedRows.Count > 0 && dgv_01.SelectedRows[0] != null)
            {
                sterilizer_batch.Add("s_name", dgv_01.SelectedRows[0].Cells["sterilizer"].Value);
                sterilizer_batch.Add("s_batch", dgv_01.SelectedRows[0].Cells["batch"].Value.ToString());
            }
            HCSRS_FindSet HCRS = new HCSRS_FindSet(sterilizer_batch);

            HCRS.ShowDialog();
        }
Beispiel #2
0
 private void radButton2_Click(object sender, EventArgs e)
 {
     if (dgv_01.Rows.Count == 0)
     {
         MessageBox.Show("你好,没有灭菌批次选择。请先选择灭菌批次。", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     else
     {
         sterilizer_batch.Clear();
         if (dgv_01.SelectedRows != null && dgv_01.SelectedRows.Count > 0 && dgv_01.SelectedRows[0] != null)
         {
             sterilizer_batch.Add("s_name", dgv_01.SelectedRows[0].Cells["s_name"].Value);
             sterilizer_batch.Add("s_batch", dgv_01.SelectedRows[0].Cells["batch"].Value.ToString());
         }
         HCSRS_FindSet FS = new HCSRS_FindSet(sterilizer_batch);
         FS.ShowDialog();
     }
 }