AIMS/AIMSControls/OremrUserControl/UCPatientPhysiology.cs
2023-08-16 22:32:16 +08:00

125 lines
3.4 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
namespace AIMS.OremrUserControl
{
public partial class UCPatientPhysiology : UserControl
{
public UCPatientPhysiology()
{
InitializeComponent();
}
public string OperationRoom
{
get { return lblRoom.Text; }
set { lblRoom.Text = value; }
}
public string OperationRoomIp;
public string PatientName
{
get { return lblName.Text; }
set { lblName.Text = value; }
}
public string OperationName
{
get { return lblOperation.Text; }
set { lblOperation.Text = value; }
}
public string AnaesthesiaMethod
{
get { return lblAnaesthesia.Text; }
set { lblAnaesthesia.Text = value; }
}
public string OperationDoctor
{
get { return lblDoctor.Text; }
set { lblDoctor.Text = value; }
}
public string AnaesthesiaDoctor
{
get { return lblAnaesthesiaDoctor.Text; }
set { lblAnaesthesiaDoctor.Text = value; }
}
public string OperationTime
{
get { return lblTime.Text; }
set { lblTime.Text = value; }
}
public string HR
{
get { return lblHR.Text; }
set { lblHR.Text = value; }
}
public string SYS
{
get { return lblSys.Text; }
set { lblSys.Text = value; }
}
public string SpO2
{
get { return lblSpO2.Text; }
set { lblSpO2.Text = value; }
}
public string BR
{
get { return lblBR.Text; }
set { lblBR.Text = value; }
}
public string T
{
get { return lblT.Text; }
set { lblT.Text = value; }
}
private void lblRoom_Click(object sender, EventArgs e)
{
}
private void SetWindowRegion()
{
GraphicsPath FormPath = new GraphicsPath();
Rectangle rect = new Rectangle(0, 4, this.Width, this.Height - 4);
FormPath = GetRoundedRectPath(rect, 19);
this.Region = new Region(FormPath);
}
private GraphicsPath GetRoundedRectPath(Rectangle rect, int radius)
{
int diameter = radius;
Rectangle arcRect = new Rectangle(rect.Location, new Size(diameter, diameter));
GraphicsPath path = new GraphicsPath();
//左上角
path.AddArc(arcRect, 180, 90);
//右上角
arcRect.X = rect.Right - diameter;
path.AddArc(arcRect, 270, 90);
//右下角
arcRect.Y = rect.Bottom - diameter;
path.AddArc(arcRect, 0, 90);
//左下角
arcRect.X = rect.Left;
path.AddArc(arcRect, 90, 90);
path.CloseFigure();
return path;
}
protected override void OnResize(System.EventArgs e)
{
this.Region = null;
SetWindowRegion();
}
private void plRefresh_Click(object sender, EventArgs e)
{
}
}
}