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

            parsDatatable.Add(new MED_PARS_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(),
                MEMO = this.txtMemo.Text
            });

            return(DataOperator.UpdateParsScore(parsDatatable));
        }
예제 #2
0
 private void btnSaveScore_Click(object sender, EventArgs e)
 {
     if (DataOperator.UpdatePatientScoringResult(patientScore) >= 0)
     {
         if (DataOperator.UpdateParsScore(parsTable) >= 0)
         {
             RefreshGraph();
             bindToDataGrid();
             Dialog.MessageBox("保存成功!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
     }
     else
     {
         Dialog.MessageBox("保存失败!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }