Пример #1
0
 private void fpSpread1_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
 {
     if (this.fpSpread1_Sheet1.Rows.Count == 0)
     {
         return;
     }
     PatientCaseInfo = (Neusoft.HISFC.Object.HealthRecord.Base)Caselist[this.fpSpread1_Sheet1.ActiveRowIndex];
     SetInfo(PatientCaseInfo);
 }
Пример #2
0
        /// <summary>
        /// 加载信息
        /// </summary>
        private void AddTableInfo(ArrayList list)
        {
            dt.Clear();
            int i = 0;

            foreach (Neusoft.HISFC.Object.HealthRecord.Base info in list)
            {
                string Sex = "";
                if (info.PatientInfo.Sex.ID != null)
                {
                    if (info.PatientInfo.Sex.ID.ToString() == "M")
                    {
                        Sex = "男";
                    }
                    else if (info.PatientInfo.Sex.ID.ToString() == "F")
                    {
                        Sex = "女";
                    }
                }
                if (i == 0)
                {
                    PatientCaseInfo = info.Clone(); //复制
                    SetInfo(PatientCaseInfo);
                    i++;
                }
                dt.Rows.Add(new object[] { info.PatientInfo.PID.PatientNO,
                                           info.PatientInfo.Name,
                                           Sex,
                                           info.InDept.Name,
                                           info.OutDept.Name,
                                           info.PatientInfo.PVisit.InTime,
                                           info.PatientInfo.PVisit.OutTime,
                                           info.PatientInfo.Birthday,
                                           info.PatientInfo.InTimes.ToString() });
            }

            this.fpSpread1_Sheet1.Columns[0].Width = 60;
            this.fpSpread1_Sheet1.Columns[1].Width = 60;
            this.fpSpread1_Sheet1.Columns[2].Width = 30;
            this.fpSpread1_Sheet1.Columns[3].Width = 60;
            this.fpSpread1_Sheet1.Columns[4].Width = 60;
            this.fpSpread1_Sheet1.Columns[5].Width = 60;
            this.fpSpread1_Sheet1.Columns[6].Width = 60;
            this.fpSpread1_Sheet1.Columns[7].Width = 60;
            this.fpSpread1_Sheet1.Columns[8].Width = 60;
        }
Пример #3
0
        private void caseNo_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
        {
            if (e.KeyData == Keys.Enter)
            {
                try
                {
                    if (this.caseNo.Text == "")
                    {
                        this.caseNo.Focus();

                        MessageBox.Show("请输入病案号");
                        return;
                    }
                    Caselist = null;
                    Caselist = baseDml.QueryCaseBaseInfoByCaseNO(this.caseNo.Text);
                    if (Caselist == null)
                    {
                        MessageBox.Show("查询病案信息出错");
                        return;
                    }
                    if (Caselist.Count == 0)
                    {
                        MessageBox.Show("没有查到相关信息");
                        return;
                    }
                    //判断是否已经借出了
                    Neusoft.HISFC.Object.HealthRecord.Base info = (Neusoft.HISFC.Object.HealthRecord.Base)Caselist[0];
                    if (info.LendStat == "O") //是字母 O
                    {
                        MessageBox.Show("该病案已经借出.");
                        return;
                    }
                    AddTableInfo(Caselist);
                    this.CardNO.Focus();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }
Пример #4
0
        /// <summary>
        /// 赋值
        /// </summary>
        /// <param name="info"></param>
        private void SetInfo(Neusoft.HISFC.Object.HealthRecord.Base info)
        {
            string Sex = "";

            if (info.PatientInfo.Sex.ID != null)
            {
                if (info.PatientInfo.Sex.ID.ToString() == "M")
                {
                    Sex = "男";
                }
                else if (info.PatientInfo.Sex.ID.ToString() == "F")
                {
                    Sex = "女";
                }
            }
            caseNo.Text      = info.CaseNO;
            txName.Text      = info.PatientInfo.Name;
            txSex.Text       = Sex;
            txDeptIn.Text    = info.InDept.Name;
            txDeptOut.Text   = info.OutDept.ID;
            dtInDate.Text    = info.PatientInfo.PVisit.InTime.ToString();
            dtOutDate.Text   = info.PatientInfo.PVisit.OutTime.ToString();
            dtBirthDate.Text = info.PatientInfo.Birthday.ToString();
        }