private void name_GridControl_DoubleClick(object sender, EventArgs e) { //''得到当前要处理的Dmb的信息 DataTable d_DTable = (DataTable)name_GridControl.DataSource; if (d_DTable == null) return; DataRow dw = d_DTable.Rows[name_GridView.GetDataSourceRowIndex(name_GridView.FocusedRowHandle)]; string d_accessno = dw["accession_no"].ToString().Trim(); histroyreport_xtraTabPage.PageVisible = true; histroyreport_xtraTabPage.Controls.Clear(); report_history_Control d_history = new report_history_Control(d_accessno, this); histroyreport_xtraTabPage.Controls.Add(d_history); d_history.Dock = DockStyle.Fill; d_history.Show(); this.Report_XtraTabControl.SelectedTabPage = histroyreport_xtraTabPage; }
private void patexam_GridControl_DoubleClick(object sender, EventArgs e) { //''得到当前要处理的Dmb的信息 DataTable d_DTable = (DataTable)patexam_GridControl.DataSource; if (d_DTable == null) return; DataRow dw = d_DTable.Rows[patexam_GridView.GetDataSourceRowIndex(patexam_GridView.FocusedRowHandle)]; string d_accessno = dw["accession_no"].ToString().Trim(); //clshistoryAccessno = d_accessno; histroyreport_xtraTabPage.PageVisible = true; histroyreport_xtraTabPage.Controls.Clear(); report_history_Control d_history = new report_history_Control(d_accessno, this); histroyreport_xtraTabPage.Controls.Add(d_history); d_history.Dock = DockStyle.Fill; d_history.Show(); this.Report_XtraTabControl.SelectedTabPage = histroyreport_xtraTabPage; //' string d_form =new report_history_form(["transcriber_name").ToString(), //' ["scheduled_dttm").ToString(), //' ["accession_no").ToString(), //' ["patient_name").ToString(), //' ["request_department").ToString(), //' ["scheduled_modality").ToString(), //' ["patient_id").ToString(), //' ["checkpos").ToString(), //' ["bedno").ToString(), //' ["conclusion").ToString(), //' ["REPORT_TEXT").ToString) //' d_form.ShowDialog() }