コード例 #1
0
        /// 保存评分明细选项
        /// </summary>
        /// <returns></returns>
        private int saveDetail()
        {
            if (txtScore.Text == "")
            {
                Dialog.MessageBox("请先评分,再保存!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return(-1);
            }
            scoreDateTime = DataOperator.GetSysDate();

            if (ChildpughDataTable == null)
            {
                ChildpughDataTable = new List <MED_CHILDPUGH_SCORING_RESULT>();
            }

            ChildpughDataTable.Add(new MED_CHILDPUGH_SCORING_RESULT()
            {
                PATIENT_ID        = _patientID,
                VISIT_ID          = (int)_visitID,
                DEP_ID            = (int)_deptID,
                SCORING_DATE_TIME = scoreDateTime,
                S1   = getS1(),
                S2   = getS2(),
                S3   = getS3(),
                S4   = getS4(),
                S5   = getS5(),
                S6   = getS6(),
                S7   = getS7(),
                MEMO = this.txtMemo.Text
            });

            return(DataOperator.UpdateChildPugh(ChildpughDataTable));
        }
コード例 #2
0
        /// 保存评分明细选项
        /// </summary>
        /// <returns></returns>
        private int saveDetail()
        {
            if (txtScore.Text == "")
            {
                Dialog.MessageBox("请先评分,再保存!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return(-1);
            }
            scoreDateTime = DataOperator.GetSysDate();

            if (balthazarDataList == null)
            {
                balthazarDataList = new List <MED_BALTHAZAR_SCORING_RESULT>();
            }

            balthazarDataList.Add(new MED_BALTHAZAR_SCORING_RESULT()
            {
                PATIENT_ID        = _patientID,
                VISIT_ID          = (int)_visitID,
                DEP_ID            = (int)_deptID,
                SCORING_DATE_TIME = scoreDateTime,
                S1   = getS1(),
                S2   = getS2(),
                MEMO = this.txtMemo.Text
            });

            return(DataOperator.UpdateBalthazar(balthazarDataList));
        }
コード例 #3
0
 private void dgvGoldman_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex < 0)
     {
         return;
     }
     goldmanDataTable = DataOperator.GetGoldman(_patientID, _visitID, _deptID,
                                                (DateTime)dgvGoldman.Rows[e.RowIndex].Cells[0].Value);
     pushValue(goldmanDataTable);
 }
コード例 #4
0
 /// <summary>
 /// 绑定数据到表格
 /// </summary>
 private void bindToDataGrid()
 {
     if (string.IsNullOrEmpty(_patientID))
     {
         return;
     }
     tissDataTable = DataOperator.GetDataTiss(_patientID, _visitID, _deptID);
     tissScore     = DataOperator.GetPatientScoringResultDt(_patientID, _visitID, _deptID, "tiss");
     dgvTiss.AutoGenerateColumns = false;
     dgvTiss.DataSource          = tissScore;
 }
コード例 #5
0
 /// <summary>
 /// 绑定数据到表格
 /// </summary>
 private void bindToDataGrid()
 {
     if (string.IsNullOrEmpty(_patientID))
     {
         return;
     }
     childpughTable = DataOperator.GetDataChildPugh(_patientID, _visitID, _deptID);
     patientScore   = DataOperator.GetPatientScoringResultDt(_patientID, _visitID, _deptID, "child-pugh");
     dgvChildpugh.AutoGenerateColumns = false;
     dgvChildpugh.DataSource          = patientScore;
     RefreshGraph();
 }
コード例 #6
0
 /// <summary>
 /// 绑定数据到表格
 /// </summary>
 private void bindToDataGrid()
 {
     if (string.IsNullOrEmpty(_patientID))
     {
         return;
     }
     parsTable    = DataOperator.GetDataPars(_patientID, _visitID, _deptID);
     patientScore = DataOperator.GetPatientScoringResultDt(_patientID, _visitID, _deptID, "pars");
     dgvPars.AutoGenerateColumns = false;
     dgvPars.DataSource          = patientScore;
     RefreshGraph();
 }
コード例 #7
0
        private void dgvTiss_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }
            List <MED_TISS_SCORING_RESULT_DETAIL> detailTable;

            detailTable = DataOperator.GetTissScoringResultDt(_patientID, _visitID, _deptID,
                                                              (DateTime)dgvTiss.Rows[e.RowIndex].Cells[0].Value);
            pushValue(detailTable);
        }
コード例 #8
0
 private void dgvChildpugh_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex < 0)
     {
         return;
     }
     else
     {
         ChildpughDataTable = DataOperator.GetChildPugh(_patientID, _visitID, _deptID,
                                                        (DateTime)dgvChildpugh.Rows[e.RowIndex].Cells[0].Value);
         pushValue(ChildpughDataTable);
     }
 }
コード例 #9
0
        /// <summary>
        /// 绑定数据到表格
        /// </summary>
        private void bindToDataGrid()
        {
            if (string.IsNullOrEmpty(_patientID))
            {
                return;
            }
            balthazarList = DataOperator.GetDataBalthazar(_patientID, _visitID, _deptID);

            patientScoreList = DataOperator.GetPatientScoringResultDt(_patientID, _visitID, _deptID, "balthazar");
            dgvBalthazar.AutoGenerateColumns = false;
            dgvBalthazar.DataSource          = patientScoreList;
            Clear();
        }
コード例 #10
0
 private void dgvPars_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex < 0)
     {
         return;
     }
     else
     {
         parsDatatable = DataOperator.GetPars(_patientID, _visitID, _deptID,
                                              (DateTime)dgvPars.Rows[e.RowIndex].Cells[0].Value);
         pushValue(parsDatatable);
     }
 }
コード例 #11
0
 private void dgvBalthazar_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex < 0)
     {
         return;
     }
     else
     {
         balthazarDataList = DataOperator.GetBalthazar(_patientID, _visitID, _deptID,
                                                       (DateTime)dgvBalthazar.Rows[e.RowIndex].Cells[0].Value);
         pushValue(balthazarDataList);
     }
 }
コード例 #12
0
        /// <summary>
        /// 绑定数据到表格
        /// </summary>
        private void bindToDataGrid()
        {
            if (string.IsNullOrEmpty(_patientID))
            {
                return;
            }
            goldmanTable = DataOperator.GetDataGoldman(_patientID, _visitID, _deptID);

            patientScore = DataOperator.GetPatientScoringResultDt(_patientID, _visitID, _deptID, "goldman");
            dgvGoldman.AutoGenerateColumns = false;
            dgvGoldman.DataSource          = patientScore;
            Clear();
        }
コード例 #13
0
 private void btnSaveScore_Click(object sender, EventArgs e)
 {
     if (DataOperator.UpdatePatientScoringResult(patientScore) >= 0 && DataOperator.UpdateGoldman(goldmanTable) >= 0)
     {
         RefreshGraph();
         bindToDataGrid();
         Dialog.MessageBox("保存成功!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else
     {
         Dialog.MessageBox("保存失败!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
コード例 #14
0
 private void btn_addNew_Click(object sender, EventArgs e)
 {
     if (DataOperator.UpdatePatientScoringResult(tissScore) >= 0)
     {
         if (DataOperator.UpdateTissScoringResult(tissDataTable) >= 0)
         {
             RefreshGraph();
             bindToDataGrid();
             Dialog.MessageBox("保存成功!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
     }
     else
     {
         Dialog.MessageBox("保存失败!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
コード例 #15
0
        /// <summary>
        /// 保存评分结果
        /// </summary>
        /// <returns></returns>
        private int saveScoreResult()
        {
            if (txtScore.Text == "")
            {
                return(-1);
            }
            string operatorNurse = DataOperator.Operator;

            if (operatorNurse == null)
            {
                return(-1);
            }

            if (patientScore == null)
            {
                patientScore = new List <MED_PATIENT_SCORING_RESULT>();
            }

            patientScore.Add(new MED_PATIENT_SCORING_RESULT()
            {
                PATIENT_ID        = _patientID,
                VISIT_ID          = (int)_visitID,
                DEP_ID            = (int)_deptID,
                SCORING_DATE_TIME = scoreDateTime,
                SCORING_METHOD    = "child-pugh",
                SCORING_VALUE     = int.Parse(txtScore.Text),
                DEGREE            = txtdangerLevel.Text,
                MEMO     = txtMemo.Text,
                OPERATOR = operatorNurse
            });


            if (DataOperator.UpdatePatientScoringResult(patientScore) >= 0)
            {
                return(1);
            }
            else
            {
                Dialog.MessageBox("保存失败!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return(-1);
            }
        }
コード例 #16
0
        /// <summary>
        /// 保存评分结果
        /// </summary>
        /// <returns></returns>
        private int saveScoreResult()
        {
            if (txtScore.Text == "")
            {
                return(-1);
            }
            string operatorNurse = DataOperator.Operator;

            if (operatorNurse == null)
            {
                return(-1);
            }

            if (tissScore == null)
            {
                tissScore = new List <MED_PATIENT_SCORING_RESULT>();
            }

            tissScore.Add(new MED_PATIENT_SCORING_RESULT()
            {
                PATIENT_ID        = _patientID,
                VISIT_ID          = (int)_visitID,
                DEP_ID            = (int)_deptID,
                SCORING_DATE_TIME = scoreDateTime,
                SCORING_METHOD    = "tiss",
                SCORING_VALUE     = int.Parse(txtScore.Text),
                //addRow.DEGREE = deathRates.ToString().Trim();
                PAT_CONDITION = tex_DescriptionIllness.Text,
                OPERATOR      = operatorNurse
            });


            if (DataOperator.UpdatePatientScoringResult(tissScore) >= 0)
            {
                return(1);
            }
            else
            {
                Dialog.MessageBox("保存失败!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return(-1);
            }
        }
コード例 #17
0
        /// <summary>
        /// 保存评分结果
        /// </summary>
        /// <returns></returns>
        private int saveScoreResult()
        {
            if (txtScore.Text == "")
            {
                return(-1);
            }
            string operatorNurse = DataOperator.Operator;

            if (operatorNurse == null)
            {
                return(-1);
            }

            if (patientScore == null)
            {
                patientScore = new List <MED_PATIENT_SCORING_RESULT>();
            }

            patientScore.Add(new MED_PATIENT_SCORING_RESULT()
            {
                PATIENT_ID        = _patientID,
                VISIT_ID          = (int)_visitID,
                DEP_ID            = (int)_deptID,
                SCORING_DATE_TIME = scoreDateTime,
                SCORING_METHOD    = "goldman",
                SCORING_VALUE     = int.Parse(txtScore.Text),
                DEGREE            = txtLever.Text,
                DEATH_PROBABILITY = Decimal.Parse(txtDeathRate.Text) / 100,
                PAT_CONDITION     = txtMemo.Text,
                OPERATOR          = operatorNurse
            });

            if (DataOperator.UpdatePatientScoringResult(patientScore) >= 0)
            {
                return(1);
            }
            else
            {
                Dialog.MessageBox("保存失败!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return(-1);
            }
        }
コード例 #18
0
        /// 保存评分明细选项
        /// </summary>
        /// <returns></returns>
        private int saveDetail()
        {
            if (txtScore.Text == "")
            {
                Dialog.MessageBox("请先评分,再保存!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return(-1);
            }

            if (lutzDataTable == null)
            {
                lutzDataTable = new List <MED_LUTZ_SCORING_RESULT>();
            }
            scoreTime = DataOperator.GetSysDate();

            lutzDataTable.Add(new MED_LUTZ_SCORING_RESULT()
            {
                PATIENT_ID        = _patientID,
                VISIT_ID          = (int)_visitID,
                DEP_ID            = (int)_deptID,
                SCORING_DATE_TIME = scoreTime,
                S1  = cbs1.SelectedIndex,
                S2  = cbs2.SelectedIndex,
                S3  = cbs3.SelectedIndex,
                S4  = cbs4.SelectedIndex,
                S5  = cbs5.SelectedIndex,
                S6  = cbs6.SelectedIndex,
                S7  = cbs7.SelectedIndex,
                S8  = cbs8.SelectedIndex,
                S9  = cbs9.SelectedIndex,
                S10 = cbs10.SelectedIndex,
                S11 = cbs11.SelectedIndex,
                S12 = cbs12.SelectedIndex,
                S13 = cbs13.SelectedIndex,
                S14 = cbs14.SelectedIndex,
                S15 = cbs15.SelectedIndex,

                MEMO = this.txtMemo.Text
            });

            return(DataOperator.UpdateLutzScore(lutzDataTable));
        }
コード例 #19
0
        /// <summary>
        /// 保存评分明细选项
        /// </summary>
        /// <returns></returns>
        private int saveDetailSap()
        {
            string columnName = "";

            //int score = 0;
            if (txtScore.Text == "")
            {
                Dialog.MessageBox("请先评分,再保存!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return(1);
            }

            List <MED_TISS_SCORING_RESULT_DETAIL> detailTable = new List <MED_TISS_SCORING_RESULT_DETAIL>();

            MED_TISS_SCORING_RESULT_DETAIL detailRow = new MED_TISS_SCORING_RESULT_DETAIL();

            detailRow.PATIENT_ID        = _patientID;
            detailRow.VISIT_ID          = (int)_visitID;
            detailRow.DEP_ID            = (int)_deptID;
            scoreDateTime               = DataOperator.GetSysDate();
            detailRow.SCORING_DATE_TIME = scoreDateTime;
            DevExpress.XtraEditors.CheckEdit temp;
            foreach (Control getControl in panel4.Controls)
            {
                try
                {
                    temp = getControl as DevExpress.XtraEditors.CheckEdit;
                    char[] NumberLetter = temp.Name.ToCharArray(temp.Name.Length - 3, 1);
                    if (char.IsNumber(NumberLetter[0]))
                    {
                        columnName = "T" + temp.Name.Substring(temp.Name.Length - 3);
                    }
                    else
                    {
                        columnName = "T" + temp.Name.Substring(temp.Name.Length - 2);
                    }
                    if (temp.Checked == true)
                    {
                        setValue(detailRow, "4", columnName);
                    }
                    else
                    {
                        setValue(detailRow, "0", columnName);
                    }
                }
                catch (Exception) { }
            }
            foreach (Control getControl in panel5.Controls)
            {
                try
                {
                    temp = getControl as DevExpress.XtraEditors.CheckEdit;
                    char[] NumberLetter = temp.Name.ToCharArray(temp.Name.Length - 3, 1);
                    if (char.IsNumber(NumberLetter[0]))
                    {
                        columnName = "T" + temp.Name.Substring(temp.Name.Length - 3);
                    }
                    else
                    {
                        columnName = "T" + temp.Name.Substring(temp.Name.Length - 2);
                    }
                    if (temp.Checked == true)
                    {
                        setValue(detailRow, "3", columnName);
                    }
                    else
                    {
                        setValue(detailRow, "0", columnName);
                    }
                }
                catch (Exception) { }
            }
            foreach (Control getControl in panel6.Controls)
            {
                try
                {
                    temp = getControl as DevExpress.XtraEditors.CheckEdit;
                    char[] NumberLetter = temp.Name.ToCharArray(temp.Name.Length - 3, 1);
                    if (char.IsNumber(NumberLetter[0]))
                    {
                        columnName = "T" + temp.Name.Substring(temp.Name.Length - 3);
                    }
                    else
                    {
                        columnName = "T" + temp.Name.Substring(temp.Name.Length - 2);
                    }
                    if (temp.Checked == true)
                    {
                        setValue(detailRow, "2", columnName);
                    }
                    else
                    {
                        setValue(detailRow, "0", columnName);
                    }
                }
                catch (Exception) { }
            }
            foreach (Control getControl in panel7.Controls)
            {
                try
                {
                    temp = getControl as DevExpress.XtraEditors.CheckEdit;
                    char[] NumberLetter = temp.Name.ToCharArray(temp.Name.Length - 3, 1);
                    if (char.IsNumber(NumberLetter[0]))
                    {
                        columnName = "T" + temp.Name.Substring(temp.Name.Length - 3);
                    }
                    else
                    {
                        columnName = "T" + temp.Name.Substring(temp.Name.Length - 2);
                    }
                    if (temp.Checked == true)
                    {
                        setValue(detailRow, "1", columnName);
                    }
                    else
                    {
                        setValue(detailRow, "0", columnName);
                    }
                }
                catch (Exception) { }
            }
            detailRow.MEMO = tex_DescriptionIllness.Text;

            detailTable.Add(detailRow);
            if (DataOperator.UpdateTissScoringResult(detailTable) >= 0)
            {
                return(1);
            }
            else
            {
                Dialog.MessageBox("保存失败!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return(-1);
            }
        }
コード例 #20
0
        /// 保存评分明细选项
        /// </summary>
        /// <returns></returns>
        private int saveDetail()
        {
            if (txtScore.Text == "")
            {
                Dialog.MessageBox("请先评分,再保存!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return(-1);
            }
            if (ckxs1_10.Checked)
            {
                s1 = 10;
            }
            if (ckxs2_5.Checked)
            {
                s2 = 5;
            }
            if (ckxs3_11.Checked)
            {
                s3 = 11;
            }
            if (ckxs4_3.Checked)
            {
                s4 = 3;
            }
            if (ckxs5_7.Checked)
            {
                s5 = 7;
            }
            if (ckxs6_7.Checked)
            {
                s6 = 7;
            }
            if (ckxs7_3.Checked)
            {
                s7 = 3;
            }
            if (ckxs8_3.Checked)
            {
                s8 = 3;
            }
            if (ckxs9_3.Checked)
            {
                s9 = 3;
            }

            if (goldmanDataTable == null)
            {
                goldmanDataTable = new List <MED_GOLDMAN_SCORING_RESULT>();
            }

            scoreDateTime = DataOperator.GetSysDate();

            goldmanDataTable.Add(new MED_GOLDMAN_SCORING_RESULT()
            {
                PATIENT_ID = _patientID,
                VISIT_ID   = (int)_visitID,
                DEP_ID     = (int)_deptID,

                SCORING_DATE_TIME = scoreDateTime,
                S1   = s1,
                S2   = s2,
                S3   = s3,
                S4   = s4,
                S5   = s5,
                S6   = s6,
                S7   = s7,
                S8   = s8,
                S9   = s9,
                MEMO = this.txtMemo.Text
            });

            return(DataOperator.UpdateGoldman(goldmanDataTable));
        }