Beispiel #1
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);
     }
 }
Beispiel #2
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);
     }
 }
Beispiel #3
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);
            }
        }
Beispiel #4
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);
            }
        }
Beispiel #5
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);
            }
        }