169 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			169 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| 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<FactBloodGasAnalysisData> FactBloodGasAnalysisDataList;
 | |
| 
 | |
| 		/// <summary>
 | |
| 		/// 
 | |
| 		/// </summary>
 | |
| 		public int? Id
 | |
| 		{
 | |
| 		    get{ return id; }
 | |
| 			set{ id=value; }
 | |
| 		}
 | |
| 	    /// <summary>
 | |
|         /// 
 | |
|         /// </summary>
 | |
| 		public int? OperationRecordId
 | |
| 		{
 | |
| 		    get{ return operationRecordId; }
 | |
| 			set{ operationRecordId=value; }
 | |
| 		}
 | |
| 	    /// <summary>
 | |
|         /// 
 | |
|         /// </summary>
 | |
| 		public DateTime? RecordTime
 | |
| 		{
 | |
| 		    get{ return recordTime; }
 | |
| 			set{ recordTime=value; }
 | |
| 		}
 | |
| 	    /// <summary>
 | |
|         /// 
 | |
|         /// </summary>
 | |
| 		public string AnalysisResult
 | |
| 		{
 | |
| 		    get{ return analysisResult; }
 | |
| 			set{ analysisResult=value; }
 | |
| 		}
 | |
| 	    /// <summary>
 | |
|         /// 
 | |
|         /// </summary>
 | |
| 		public string Remark
 | |
| 		{
 | |
| 		    get{ return remark; }
 | |
| 			set{ remark=value; }
 | |
| 		}
 | |
| 	    /// <summary>
 | |
|         /// 
 | |
|         /// </summary>
 | |
| 		public string BloodGasType
 | |
| 		{
 | |
| 		    get{ return bloodGasType; }
 | |
| 			set{ bloodGasType=value; }
 | |
| 		}
 | |
| 	    /// <summary>
 | |
|         /// 
 | |
|         /// </summary>
 | |
| 		public string IsSelected
 | |
| 		{
 | |
| 		    get{ return isSelected; }
 | |
| 			set{ isSelected=value; }
 | |
| 		}
 | |
| 	    /// <summary>
 | |
|         /// 
 | |
|         /// </summary>
 | |
| 		public int? OperatorId
 | |
| 		{
 | |
| 		    get{ return operatorId; }
 | |
| 			set{ operatorId=value; }
 | |
| 		}
 | |
| 	    /// <summary>
 | |
|         /// 
 | |
|         /// </summary>
 | |
| 		public DateTime? OperatorTime
 | |
| 		{
 | |
| 		    get{ return operatorTime; }
 | |
| 			set{ operatorTime=value; }
 | |
| 		}
 | |
| 
 | |
|         #region 画图
 | |
|         /// <summary>
 | |
|         /// 画一条血气分析记录
 | |
|         /// </summary>
 | |
|         /// <param name="index">高度</param>
 | |
|         /// <param name="faRecord">总量</param>
 | |
|         public override void drawText(double x, double y)
 | |
|         {
 | |
|             if (zgcAnas == null) return;
 | |
|             //画血气分析
 | |
|             paintAdd(x, y);
 | |
|         }
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 画添加药品线,底部加加药次数
 | |
|         /// </summary>
 | |
|         /// <param name="DrugsRecord"></param>
 | |
|         /// <param name="index"></param>
 | |
|         public void paintAdd(double left2X, 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);
 | |
|                 }
 | |
|             } 
 | |
|         }
 | |
|         ///<summary>
 | |
|         ///清空所有与某条加血气分析相关的控件。
 | |
|         /// </summary>
 | |
|         /// <param name="DrugsRecord"></param>
 | |
|         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
 | |
|          
 | |
|     }
 | |
| }
 |