using System; using System.Collections; using System.Collections.Generic; namespace DrawGraph { [Serializable] public partial class FactBloodGasAnalysis : EventObj { private int? id; private int? operationRecordId; private DateTime? recordTime; private string analysisResult; private string remark; private string bloodGasType; private string isSelected; private int? operatorId; private DateTime? operatorTime; public List FactBloodGasAnalysisDataList; /// /// /// public int? Id { get { return id; } set { id = value; } } /// /// /// public int? OperationRecordId { get { return operationRecordId; } set { operationRecordId = value; } } /// /// /// public DateTime? RecordTime { get { return recordTime; } set { recordTime = value; } } /// /// /// public string AnalysisResult { get { return analysisResult; } set { analysisResult = value; } } /// /// /// public string Remark { get { return remark; } set { remark = value; } } /// /// /// public string BloodGasType { get { return bloodGasType; } set { bloodGasType = value; } } /// /// /// public string IsSelectedd { get { return isSelected; } set { isSelected = value; } } /// /// /// public int? OperatorId { get { return operatorId; } set { operatorId = value; } } /// /// /// public DateTime? OperatorTime { get { return operatorTime; } set { operatorTime = value; } } #region 画图 /// /// 画一条血气分析记录 /// /// 高度 /// 总量 public override void drawText(double x, double y) { if (zgcAnas == null) return; //画血气分析 paintAdd(y); } /// /// 画添加药品线,底部加加药次数 /// /// /// public void paintAdd(double y) { float fontSize = 6f; double ySpan = 0.008; string tagName = ""; if (bloodGasType == "动脉血气" || bloodGasType == null) { drawBloodGasDoseObj(y, Id + "XQFX", this.recordTime.Value, this.recordTime.Value, "动脉血气", fontSize); } else { drawBloodGasDoseObj(y, Id + "XQFX", this.recordTime.Value, this.recordTime.Value, "静脉血气", fontSize); } if (FactBloodGasAnalysisDataList != null && FactBloodGasAnalysisDataList.Count > 0) { foreach (var item in FactBloodGasAnalysisDataList) { y += ySpan; tagName = Id + item.Name; drawBloodGasDoseObj(y, tagName, this.recordTime.Value, this.recordTime.Value, item.Name + "=" + ((double)item.Value).ToString(), fontSize); } } } /// ///清空所有与某条加血气分析相关的控件。 /// /// public override void clearAddObj(ZedGraphControl zgc) { if (zgcAnas == null || zgcAnas != zgc) zgcAnas = zgc; delAddObj(TextPrefix.DD + (Id + "XQFX")); if (FactBloodGasAnalysisDataList != null && FactBloodGasAnalysisDataList.Count > 0) { foreach (var item in FactBloodGasAnalysisDataList) { string tagName = Id + item.Name; delAddObj(TextPrefix.DD + tagName); } } } public override void clearDNAndDT(ZedGraphControl zgc) { if (zgcAnas == null || zgcAnas != zgc) zgcAnas = zgc; if (FactBloodGasAnalysisDataList != null && FactBloodGasAnalysisDataList.Count > 0) { foreach (var item in FactBloodGasAnalysisDataList) { string tagName = Id + item.Name; delAddObj(TextPrefix.DD + tagName); } } } #endregion } }