コード例 #1
0
ファイル: frmDoctYBSpecDea.cs プロジェクト: iamwsx05/HIS
        private void dtgDea_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int row = e.RowIndex;

            if (row < 0)
            {
                return;
            }

            DataRow dr      = this.dtgDea.Rows[row].Tag as DataRow;
            string  deacode = dr["deacode_chr"].ToString();

            diseasename = dr["deadesc_vchr"].ToString().Trim();

            clsDcl_DoctorWorkstation objDoct = new clsDcl_DoctorWorkstation();

            DataTable dt;

            long l = objDoct.m_lngGetICD10ByDeacode(deacode, out dt);

            if (l > 0 && dt.Rows.Count > 0)
            {
                ArrayList arrICD10 = new ArrayList();
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    clsICD10Inf ICD10 = new clsICD10Inf();

                    ICD10.ICD10_Code = dt.Rows[i]["icdcode_chr"].ToString().Trim();
                    ICD10.ICD10_Name = dt.Rows[i]["icdname_vchr"].ToString().Trim();
                    arrICD10.Add(ICD10);
                }
                p_objICD10        = arrICD10.ToArray(typeof(clsICD10Inf)) as clsICD10Inf[];
                this.DialogResult = DialogResult.OK;
            }
            else
            {
                MessageBox.Show("获取ICD10信息失败。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }