/// 保存评分明细选项 /// </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)); }
private void btnSaveScore_Click(object sender, EventArgs e) { if (DataOperator.UpdatePatientScoringResult(patientScore) >= 0) { if (DataOperator.UpdateChildPugh(childpughTable) >= 0) { RefreshGraph(); bindToDataGrid(); Dialog.MessageBox("保存成功!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information); } } else { Dialog.MessageBox("保存失败!", "麻醉信息工作站", MessageBoxButtons.OK, MessageBoxIcon.Information); } }