/// 保存评分明细选项 /// </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)); }
/// <summary> /// 保存删除评分结果按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSaveScore_Click(object sender, EventArgs e) { if (DataOperator.UpdatePatientScoringResult(patientScoreList) >= 0) { if (DataOperator.UpdateBalthazar(balthazarList) >= 0) { RefreshGraph(); bindToDataGrid(); Dialog.MessageBox("保存成功!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information); } } else { Dialog.MessageBox("保存失败!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information); } }