Example #1
0
        private void dataGridView3_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0 || e.ColumnIndex < 0)
            {
                return;
            }
            DataGridViewRow row            = this.dataGridView3.Rows[e.RowIndex];
            DocCheckResult  docCheckResult = row.Tag as DocCheckResult;

            if (docCheckResult == null)
            {
                return;
            }
            this.MainForm.OpenDocument(string.Empty, docCheckResult.PatientID, docCheckResult.VisitID);
        }
Example #2
0
        private void dataGridView3_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }
            //if (e.ColumnIndex != this.col_3_PatientID.Index)
            //    return;
            this.dataGridView4.Rows.Clear();
            DocCheckResult docCheckResult = this.dataGridView3.Rows[e.RowIndex].Tag as DocCheckResult;

            if (docCheckResult == null)
            {
                return;
            }
            List <QcCheckResult> lstQcCheckResult = ListQcCheckResult.FindAll(m => m.PATIENT_ID == docCheckResult.PatientID && m.VISIT_ID == docCheckResult.VisitID);
            string             szQAEventType      = string.Empty;
            YunxingCheckResult yunxingCheckResult = this.dataGridView1.SelectedRows[0].Tag as YunxingCheckResult;

            foreach (var item in lstQcCheckResult)
            {
                int             rowIndex = this.dataGridView4.Rows.Add();
                DataGridViewRow row      = this.dataGridView4.Rows[rowIndex];
                if (string.IsNullOrEmpty(szQAEventType) || szQAEventType != item.QA_EVENT_TYPE)
                {
                    row.Cells[this.col_4_QAEventType.Index].Value = item.QA_EVENT_TYPE;
                    szQAEventType = item.QA_EVENT_TYPE;
                }
                row.Cells[this.col_4_CheckName.Index].Value      = string.IsNullOrEmpty(item.CHECKER_NAME) ? "系统" : "";
                row.Cells[this.col_4_Confirm.Index].Value        = item.QC_RESULT == 1 ? "" : "未确认";
                row.Cells[this.col_4_Modify.Index].Value         = item.QC_RESULT == 1 ? "" : "未修改";
                row.Cells[this.col_4_QcResult.Index].Value       = item.QC_RESULT == 0 ? "不通过" : "通过";
                row.Cells[this.col_4_MsgDictMessage.Index].Value = item.MSG_DICT_MESSAGE;
                row.Tag = item;
                if (yunxingCheckResult != null && yunxingCheckResult.MsgDictCode == item.MSG_DICT_CODE)
                {
                    row.Selected = true;
                    this.dataGridView4.CurrentCell = row.Cells[0];
                }
            }
        }
Example #3
0
        private void dataGridView2_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }
            this.dataGridView3.Rows.Clear();
            this.dataGridView4.Rows.Clear();
            DeptCheckResult deptCheckResult = this.dataGridView2.Rows[e.RowIndex].Tag as DeptCheckResult;

            if (deptCheckResult == null)
            {
                return;
            }
            if (deptCheckResult.DocCount <= 0)
            {
                return;
            }
            //过滤缺陷点,统计科室数量
            string szDeptCode       = string.Empty;
            string szDeptName       = string.Empty;
            string szDoctor         = string.Empty;
            string szPatientID      = string.Empty;
            string szVisitID        = string.Empty;
            string szPatientName    = string.Empty;
            string szTotalPatientID = string.Empty;
            string szTotalVisitID   = string.Empty;
            List <DocCheckResult> lstDocCheckResult = new List <DocCheckResult>();
            List <QcCheckResult>  lstresult         = this.ListQcCheckResult.Where(m => m.DEPT_CODE == deptCheckResult.DeptCode && m.MSG_DICT_CODE == deptCheckResult.MsgDictCode).ToList();

            foreach (var item in lstresult)
            {
                if ((szPatientID != item.PATIENT_ID && szVisitID != item.VISIT_ID) && !string.IsNullOrEmpty(szPatientID))
                {
                    DocCheckResult docCheckResult = new DocCheckResult();
                    docCheckResult.DeptCode    = szDeptCode;
                    docCheckResult.DeptName    = szDeptName;
                    docCheckResult.PatientID   = szPatientID;
                    docCheckResult.PatientName = szPatientName;
                    docCheckResult.VisitID     = szVisitID;
                    docCheckResult.Doctor      = szDoctor;
                    szPatientName = string.Empty;
                    lstDocCheckResult.Add(docCheckResult);
                }
                if (item.PATIENT_ID != szPatientID && item.VISIT_ID != szVisitID && item.QC_RESULT == 0)
                {
                    szDoctor      = item.INCHARGE_DOCTOR;
                    szDeptCode    = item.DEPT_CODE;
                    szDeptName    = item.DEPT_IN_CHARGE;
                    szPatientID   = item.PATIENT_ID;
                    szVisitID     = item.VISIT_ID;
                    szPatientName = item.PATIENT_NAME;
                }

                if ((lstresult.IndexOf(item) == lstresult.Count - 1) && szPatientName != string.Empty)
                {
                    DocCheckResult docCheckResult = new DocCheckResult();
                    docCheckResult.DeptCode    = szDeptCode;
                    docCheckResult.DeptName    = szDeptName;
                    docCheckResult.PatientID   = szPatientID;
                    docCheckResult.PatientName = szPatientName;
                    docCheckResult.VisitID     = szVisitID;
                    docCheckResult.Doctor      = szDoctor;
                    lstDocCheckResult.Add(docCheckResult);
                }
            }
            if (lstDocCheckResult != null && lstDocCheckResult.Count > 0)
            {
                foreach (var item in lstDocCheckResult)
                {
                    int             rowIndex = this.dataGridView3.Rows.Add();
                    DataGridViewRow row      = this.dataGridView3.Rows[rowIndex];
                    row.Tag = item;
                    row.Cells[this.col_3_DeptName.Index].Value    = item.DeptName;
                    row.Cells[this.col_3_DoctorName.Index].Value  = item.Doctor;
                    row.Cells[this.col_3_PatientID.Index].Value   = item.PatientID;
                    row.Cells[this.col_3_PatientName.Index].Value = item.PatientName;
                    row.Cells[this.col_3_VisitID.Index].Value     = item.VisitID;
                    row.Cells[this.col_3_VisitID.Index].Value     = "1";
                }
            }
        }