示例#1
0
 private void btnModifyNotice_Click(object sender, EventArgs e)
 {
     Dialogs.ModifyNoticeForm frm = new Dialogs.ModifyNoticeForm();
     frm.ShowDialog();
 }
示例#2
0
        /// <summary>
        /// 保存病历内容扣分
        /// </summary>
        private void SaveHummanScore()
        {
            if (this.dgvHummanScore.Rows.Count <= 0)
            {
                return;
            }
            if (SystemParam.Instance.PatVisitInfo == null)
            {
                return;
            }

            short shRet = SystemData.ReturnValue.OK;

            if (this.m_lstQcCheckResult == null)
            {
                this.m_lstQcCheckResult = new List <QcCheckResult>();
            }
            this.m_lstQcCheckResult.Clear();
            shRet = QcCheckResultAccess.Instance.GetQcCheckResults(SystemParam.Instance.PatVisitInfo.PATIENT_ID, SystemParam.Instance.PatVisitInfo.VISIT_ID, SystemData.StatType.Artificial, ref this.m_lstQcCheckResult);
            for (int index = 0; index < this.dgvHummanScore.Rows.Count; index++)
            {
                DataGridViewRow row = this.dgvHummanScore.Rows[index];
                if (row is CollapseDataGridViewRow)
                {
                    foreach (var item in (row as CollapseDataGridViewRow).Rows)
                    {
                        if (!SaveQcCheckResult(item))
                        {
                            continue;
                        }
                    }
                }
            }

            //评分明细项保存完毕,保存评分结果到QC_SCORE表
            this.CalHummanScore();
            QCScore qcScore = this.tpHummanScore.Tag as QCScore;

            shRet = QcScoreAccess.Instance.Save(qcScore);
            if (shRet != SystemData.ReturnValue.OK)
            {
                MessageBoxEx.Show("评分结果保存失败");
                return;
            }

            this.OnHummanScoreSaved(System.EventArgs.Empty);
            if (qcScore.HOS_ASSESS == 100)
            {
                MessageBoxEx.ShowMessage("评分保存成功");
                return;
            }
            else if (MessageBoxEx.ShowConfirm("评分保存成功,是否通知相关医生整改") == DialogResult.OK)
            {
                try
                {
                    Dialogs.ModifyNoticeForm frm = new Dialogs.ModifyNoticeForm();
                    frm.ShowDialog();
                }
                catch (Exception ex)
                {
                    MessageBoxEx.ShowMessage("操作失败,系统发生异常,请联系管理员", ex.ToString());
                }
            }
        }