/// <summary>
 /// frmICDInfo自定义事件,弹出窗口确定按钮按下后触发
 /// </summary>
 /// <param name="info"></param>
 private void icdInfo_SaveButtonClick(NineVigor.Domain.HealthRecord.Entity.ICDDiagnose info)
 {
     try
     {
         /*
          * //处理事件
          * if (editType == "Add")
          * {
          *  //定义变量
          *  DataRow row = ds.Tables[0].NewRow();
          *  //增加一行
          *  SetRow(info, row);
          *  ds.Tables[0].Rows.Add(row);
          * }
          * else
          * {
          *  object[] keys = new object[] { info.Sequence_no };
          *  DataRow row = ds.Tables[0].Rows.Find(keys);
          *  if (row == null)
          *  {
          *      MessageBox.Show("查找项目出错!");
          *      return;
          *  }
          *  else
          *  {
          *      SetRow(info, row);
          *  }
          * }
          * ds.Tables[0].AcceptChanges();
          * LockFp();
          *
          */
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
        /// <summary>
        /// 获取选择的行
        /// </summary>
        /// <returns></returns>
        public ICDDiagnose GetSelectedICD()
        {
            if (dataGridICD.SelectedRows == null || dataGridICD.SelectedRows.Count <= 0)
            {
                return(null);
            }

            NineVigor.Domain.HealthRecord.Entity.ICDDiagnose icd = new NineVigor.Domain.HealthRecord.Entity.ICDDiagnose();

            if (dataGridICD.SelectedRows == null | dataGridICD.SelectedRows.Count <= 0)
            {
                return(null);
            }
            DataGridViewRow dr = dataGridICD.SelectedRows[0];

            icd.WBCode    = dr.Cells[3].Value.ToString();
            icd.ID        = dr.Cells[0].Value.ToString();
            icd.Name      = dr.Cells[1].Value.ToString();
            icd.SpellCode = dr.Cells[2].Value.ToString();


            this.dataGridICD.Rows[selectedRowIndex].Selected = false;
            return(icd);
        }
 /// <summary>
 /// 在dtICD中添加加一行
 /// </summary>
 /// <param name="obj"></param>
 /// <param name="row"></param>
 private void SetRow(NineVigor.Domain.HealthRecord.Entity.ICDDiagnose obj, DataRow row)
 {
 }