Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 3
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));
        }
Ejemplo n.º 4
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);
            }
        }
Ejemplo n.º 5
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));
        }