Exemple #1
0
        /// <summary>
        /// 显示病历信息方法
        /// </summary>
        private void ShowEmrMessage()
        {
            try
            {
                int[] list = dbGridView.GetSelectedRows();
                if (list.Length > 0)
                {
                    string status = dbGridView.GetRowCellValue(list[0], "STATUS").ToString();
                    //调用病历查看窗口,进行病历的查询
                    if (status.Equals("2"))
                    {
                        string noofinpat = dbGridView.GetRowCellValue(list[0], "NOOFINPAT").ToString();
                        // LoadEmrContent(noofinpat);

                        //  LoadEmrContent(noofinpat);
                        decimal syxh = decimal.Parse(noofinpat);
                        if (syxh < 0)
                        {
                            return;
                        }
                        if (syxh < 0)
                        {
                            return;
                        }

                        if (HasBaby(noofinpat))
                        {
                            ChoosePatOrBaby choosepat = new ChoosePatOrBaby(SqlUtil.App, noofinpat);
                            choosepat.StartPosition = FormStartPosition.CenterParent;
                            if (choosepat.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                            {
                                SqlUtil.App.ChoosePatient(decimal.Parse(choosepat.NOOfINPAT));
                                SqlUtil.App.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", DS_BaseService.GetUCEmrInputPath());
                            }
                        }
                        else
                        {
                            SqlUtil.App.ChoosePatient(syxh);
                            SqlUtil.App.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", DS_BaseService.GetUCEmrInputPath());
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemple #2
0
        /// <summary>
        /// 双击左侧病人列表。右侧的三测单切换到相应的人
        /// addby ywk 2012年8月8日 14:22:20
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void gridControl1_Click(object sender, EventArgs e)
        {
            if (gridView1.FocusedRowHandle < 0)
            {
                //m_app.CustomMessageBox.MessageShow("未选择会诊单据!");
                return;
            }
            DataRow foucesRow = gridView1.GetDataRow(gridView1.FocusedRowHandle);

            if (foucesRow == null)
            {
                return;
            }
            if (foucesRow.IsNull("NOOFINPAT"))
            {
                return;
            }
            string  noofinpat = foucesRow["NOOFINPAT"].ToString();
            decimal syxh      = Convert.ToDecimal(noofinpat);

            if (DataManager.HasBaby(noofinpat))
            {
                ChoosePatOrBaby choosepat = new ChoosePatOrBaby(m_app, noofinpat);
                choosepat.StartPosition = FormStartPosition.CenterParent;
                if (choosepat.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    syxh = Convert.ToDecimal(choosepat.NOOfINPAT);
                }
            }

            DataTable patientInfo = PublicSet.MethodSet.GetPatientInfoForThreeMeasureTable(syxh);

            //SetWaitDialogCaption("正在绘制三测单");
            this.ucThreeMeasureTable1.SetPatientInfo(patientInfo, m_app.SqlHelper);
            this.ucThreeMeasureTable1.LoadData();
            this.ucThreeMeasureTable1.Refresh();
        }