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); } }
/// 保存评分明细选项 /// </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)); }