器械清点生命体征不显示

数千访视添加了Ada分级,术中麻醉记录单应该同步过来
4间9:54血压显示的不对
点击获取数据的时候才会把有创血压加载出来 不自动画点血压
This commit is contained in:
leomon 2022-11-09 20:32:37 +08:00
parent fe22b3bc55
commit 82591fb825
23 changed files with 642 additions and 513 deletions

View File

@ -1731,7 +1731,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
{ {
try try
{ {
DateTime dts = BOperationRecord.lastMaxOperationDate(myOpeRecord.Id.Value); DateTime dts = BOperationRecord.lastMaxOperationDate(myOpeRecord.PatientId.Value, myOpeRecord.RecoverId.Value);
DateTime nowDate = DateTime.Now; DateTime nowDate = DateTime.Now;
TimeSpan tsp = nowDate - dts; TimeSpan tsp = nowDate - dts;
if (tsp.TotalHours <= 12 && tsp.TotalDays <= 1 && dts < nowDate)//&& IsReview == false if (tsp.TotalHours <= 12 && tsp.TotalDays <= 1 && dts < nowDate)//&& IsReview == false

View File

@ -656,11 +656,11 @@
this.lblDia.AutoSize = true; this.lblDia.AutoSize = true;
this.lblDia.Font = new System.Drawing.Font("微软雅黑", 23F); this.lblDia.Font = new System.Drawing.Font("微软雅黑", 23F);
this.lblDia.ForeColor = System.Drawing.Color.Red; this.lblDia.ForeColor = System.Drawing.Color.Red;
this.lblDia.Location = new System.Drawing.Point(43, 217); this.lblDia.Location = new System.Drawing.Point(30, 217);
this.lblDia.Name = "lblDia"; this.lblDia.Name = "lblDia";
this.lblDia.Size = new System.Drawing.Size(82, 40); this.lblDia.Size = new System.Drawing.Size(108, 40);
this.lblDia.TabIndex = 5; this.lblDia.TabIndex = 5;
this.lblDia.Text = "--/--"; this.lblDia.Text = "---/---";
// //
// lblPR // lblPR
// //
@ -1968,6 +1968,7 @@
this.Text = "麻醉记录单"; this.Text = "麻醉记录单";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.frmAnasRecordBill2_Load); this.Load += new System.EventHandler(this.frmAnasRecordBill2_Load);
this.VisibleChanged += new System.EventHandler(this.frmAnasRecordBill2_VisibleChanged);
this.panel3.ResumeLayout(false); this.panel3.ResumeLayout(false);
this.panel14.ResumeLayout(false); this.panel14.ResumeLayout(false);
this.panel4.ResumeLayout(false); this.panel4.ResumeLayout(false);

View File

@ -915,7 +915,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
{ {
try try
{ {
DateTime dts = BOperationRecord.lastMaxOperationDate(myOpeRecord.Id.Value); DateTime dts = BOperationRecord.lastMaxOperationDate(myOpeRecord.PatientId.Value, myOpeRecord.RecoverId.Value);
DateTime nowDate = DateTime.Now; DateTime nowDate = DateTime.Now;
TimeSpan tsp = nowDate - dts; TimeSpan tsp = nowDate - dts;
if (tsp.TotalHours <= 12 && tsp.TotalDays <= 1 && dts < nowDate)//&& IsReview == false if (tsp.TotalHours <= 12 && tsp.TotalDays <= 1 && dts < nowDate)//&& IsReview == false
@ -1085,7 +1085,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
frmFactDrug._record = _record; frmFactDrug._record = _record;
frmFactDrug.zgcAnaesRecord = zgcAnaesRecord; frmFactDrug.zgcAnaesRecord = zgcAnaesRecord;
frmFactDrug.DrugTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单 frmFactDrug.DrugTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单
frmFactDrug.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed); frmFactDrug.DrugsParam += FrmFactDrug_DrugsParam;
frmFactDrug.ShowDialog(); frmFactDrug.ShowDialog();
} }
else else
@ -1093,6 +1093,11 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
MessageBox.Show("请选择患者"); MessageBox.Show("请选择患者");
} }
} }
private void FrmFactDrug_DrugsParam()
{
plRefresh_Click(null, null);
}
private void btnAddEvents_Click(object sender, EventArgs e) private void btnAddEvents_Click(object sender, EventArgs e)
{ {
if (PatientId != 0) if (PatientId != 0)
@ -1117,7 +1122,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
frmFactOutputLiquids._record = _record; frmFactOutputLiquids._record = _record;
frmFactOutputLiquids.zgcAnaesRecord = zgcAnaesRecord; frmFactOutputLiquids.zgcAnaesRecord = zgcAnaesRecord;
frmFactOutputLiquids.OutputLiquidTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单 frmFactOutputLiquids.OutputLiquidTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单
frmFactOutputLiquids.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed); frmFactOutputLiquids.OutParam += FrmFactOutputLiquids_OutParam;
frmFactOutputLiquids.ShowDialog(); frmFactOutputLiquids.ShowDialog();
} }
else else
@ -1125,6 +1130,12 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
MessageBox.Show("请选择患者"); MessageBox.Show("请选择患者");
} }
} }
private void FrmFactOutputLiquids_OutParam()
{
plRefresh_Click(null, null);
}
private void button6_Click(object sender, EventArgs e) private void button6_Click(object sender, EventArgs e)
{ {
frmAnaseDataQualityRecord frmAnaseDataQuality = new frmAnaseDataQualityRecord(); frmAnaseDataQualityRecord frmAnaseDataQuality = new frmAnaseDataQualityRecord();
@ -1295,12 +1306,6 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
if (LastMonitorDataTime != null && LastMonitorDataTime.Value > dtTime) return; if (LastMonitorDataTime != null && LastMonitorDataTime.Value > dtTime) return;
try try
{ {
//bool isNowRoom = isOpeRoom();
//if (isNowRoom == false)
//{
// return;
//}
LastMonitorDataTime = dtTime; LastMonitorDataTime = dtTime;
DateTime InsertTime = Convert.ToDateTime(dtTime.ToString("yyyy-MM-dd HH:mm:00.000")); DateTime InsertTime = Convert.ToDateTime(dtTime.ToString("yyyy-MM-dd HH:mm:00.000"));
int date = 0; int date = 0;
@ -1311,7 +1316,6 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
string key = addPP.Name; string key = addPP.Name;
string value = addPP.Enname; string value = addPP.Enname;
if (addPP.IsValid == false) continue; if (addPP.IsValid == false) continue;
//if (addPP.StopCollect == true) continue;
if (key == "机械通气") continue; if (key == "机械通气") continue;
if (value == null || value == "") continue; if (value == null || value == "") continue;
@ -1391,7 +1395,6 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
public string szy;//舒张压 public string szy;//舒张压
public string ssy;//收缩压 public string ssy;//收缩压
public DateTime? LastRespMonitorDataTime;
private void timerGetTextCollectorData_Tick(object sender, EventArgs e) private void timerGetTextCollectorData_Tick(object sender, EventArgs e)
{ {
try try
@ -1499,7 +1502,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
} }
} }
string szyssy = ssy + "/" + szy; string szyssy = ssy + "/" + szy;
lblDia.Text = szyssy == "/" ? "--/--" : szyssy; lblDia.Text = szyssy == "/" ? "---/---" : szyssy;
} }
else else
{ {
@ -1507,7 +1510,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
lblRESP.Text = "--"; lblRESP.Text = "--";
lblSpo2.Text = "--"; lblSpo2.Text = "--";
lblPR.Text = "--"; lblPR.Text = "--";
lblDia.Text = "--/--"; lblDia.Text = "---/---";
lblHR.ForeColor = Color.Green; lblHR.ForeColor = Color.Green;
lblRESP.ForeColor = Color.Yellow; lblRESP.ForeColor = Color.Yellow;
lblSpo2.ForeColor = Color.Cyan; lblSpo2.ForeColor = Color.Cyan;
@ -1566,11 +1569,6 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
} }
} }
public void StarttimerGetTextCollectorData()
{
if (timerGetTextCollectorData == null) return;
timerGetTextCollectorData.Start();
}
#endregion #endregion
@ -2159,6 +2157,24 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
// templateManage2.SetPYL(); // templateManage2.SetPYL();
//} //}
} }
private void frmAnasRecordBill2_VisibleChanged(object sender, EventArgs e)
{
if (this.Visible == false)
{
if (_record != null && _record.StateName == "手术中" && State != AIMSExtension.EditState.BROWSE)
{
DisposeTimer();
}
}
else
{
if (_record != null && _record.StateName == "手术中" && State != AIMSExtension.EditState.BROWSE)
{
StartTimer();
}
}
}
#endregion #endregion
} }

View File

@ -549,11 +549,11 @@
this.lblDia.AutoSize = true; this.lblDia.AutoSize = true;
this.lblDia.Font = new System.Drawing.Font("微软雅黑", 23F); this.lblDia.Font = new System.Drawing.Font("微软雅黑", 23F);
this.lblDia.ForeColor = System.Drawing.Color.Red; this.lblDia.ForeColor = System.Drawing.Color.Red;
this.lblDia.Location = new System.Drawing.Point(40, 232); this.lblDia.Location = new System.Drawing.Point(27, 232);
this.lblDia.Name = "lblDia"; this.lblDia.Name = "lblDia";
this.lblDia.Size = new System.Drawing.Size(82, 40); this.lblDia.Size = new System.Drawing.Size(108, 40);
this.lblDia.TabIndex = 35; this.lblDia.TabIndex = 35;
this.lblDia.Text = "--/--"; this.lblDia.Text = "---/---";
// //
// lblPR // lblPR
// //
@ -1759,6 +1759,7 @@
this.Text = "器械清点单"; this.Text = "器械清点单";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.frmAnasRecordInstrument_Load); this.Load += new System.EventHandler(this.frmAnasRecordInstrument_Load);
this.VisibleChanged += new System.EventHandler(this.frmAnasRecordInstrument_VisibleChanged);
this.panel3.ResumeLayout(false); this.panel3.ResumeLayout(false);
this.panel14.ResumeLayout(false); this.panel14.ResumeLayout(false);
this.panel4.ResumeLayout(false); this.panel4.ResumeLayout(false);

View File

@ -6,6 +6,7 @@ using AIMSBLL;
using AIMSExtension; using AIMSExtension;
using AIMSModel; using AIMSModel;
using AxNsoOfficeLib; using AxNsoOfficeLib;
using DCSoftDotfuscate;
using DevComponents.Editors.DateTimeAdv; using DevComponents.Editors.DateTimeAdv;
using DrawGraph; using DrawGraph;
using KHD_OREMRInterface; using KHD_OREMRInterface;
@ -526,6 +527,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
txtOperationBegin.LostFocus += new EventHandler(txtDateTime_LostFocus); txtOperationBegin.LostFocus += new EventHandler(txtDateTime_LostFocus);
txtOperationEnd.LostFocus += new EventHandler(txtDateTime_LostFocus); txtOperationEnd.LostFocus += new EventHandler(txtDateTime_LostFocus);
} }
GetPhysioDataConfig();
circularProgress1.IsRunning = false; circularProgress1.IsRunning = false;
circularProgress1.Visible = false; circularProgress1.Visible = false;
zgcAnaesRecord.Visible = true; zgcAnaesRecord.Visible = true;
@ -731,11 +733,12 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
{ {
try try
{ {
if (((TimeSpan)(DateTime.Now - _record.lastPageBegin)).TotalHours > 24 || NowRoom == null) return; if (NowRoom == null) return;
ShowMonitorDataToRight(); ShowMonitorDataToRight();
} }
catch (Exception) catch (Exception ex)
{ {
PublicMethod.WriteLog(ex);
} }
} }
@ -768,8 +771,6 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
foreach (PhysioDataConfig keyValuePair in _record.addPhysioList) foreach (PhysioDataConfig keyValuePair in _record.addPhysioList)
{ {
if (keyValuePair.Enname.ToUpper() == p.Name.ToUpper()) if (keyValuePair.Enname.ToUpper() == p.Name.ToUpper())
{
try
{ {
object paramValue = p.GetValue(nowPhysioData, null); object paramValue = p.GetValue(nowPhysioData, null);
if (paramValue != null && paramValue.ToString() != string.Empty && paramValue.ToString() != "NaN" && paramValue.ToString() != "NULL") if (paramValue != null && paramValue.ToString() != string.Empty && paramValue.ToString() != "NaN" && paramValue.ToString() != "NULL")
@ -824,15 +825,10 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
break; break;
} }
} }
catch (Exception)
{
//PublicMethod.WriteLog(ex);
}
}
} }
} }
string szyssy = ssy + "/" + szy; string szyssy = ssy + "/" + szy;
lblDia.Text = szyssy == "/" ? "--/--" : szyssy; lblDia.Text = szyssy == "/" ? "---/---" : szyssy;
} }
else else
{ {
@ -840,7 +836,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
lblRESP.Text = "--"; lblRESP.Text = "--";
lblSpo2.Text = "--"; lblSpo2.Text = "--";
lblPR.Text = "--"; lblPR.Text = "--";
lblDia.Text = "--/--"; lblDia.Text = "---/---";
lblHR.ForeColor = Color.Green; lblHR.ForeColor = Color.Green;
lblRESP.ForeColor = Color.Yellow; lblRESP.ForeColor = Color.Yellow;
lblSpo2.ForeColor = Color.Cyan; lblSpo2.ForeColor = Color.Cyan;
@ -981,6 +977,59 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
} }
} }
private void GetPhysioDataConfig ()
{
if (_record.addPhysioList.Count == 0)
{
//加载生命体征图标
IList<PhysioDataConfig> dt = PhysioDataConfig.GetAllList();
for (int i = 0; i < dt.Count; i++)
{
PhysioDataConfig pp = dt[i];
string[] str = pp.Color.Split('.');
int A = int.Parse(str[0].ToString());
int R = int.Parse(str[1].ToString());
int G = int.Parse(str[2].ToString());
int B = int.Parse(str[3].ToString());
pp.ConveColor = System.Drawing.Color.FromArgb(A, R, G, B);
if (pp.IsDefalultShow == false || (pp.ShowImg == false && pp.ShowText == false))
{
pp.showStyle = "不显示";
pp.IsValid = false;
}
else
{
if (pp.ShowImg == true)
{
pp.showStyle = "显示曲线";
pp.IsValid = true;
}
if (pp.ShowText == true)
{
pp.showStyle = "显示数值";
pp.IsValid = true;
}
}
pp.showStyle = "显示曲线";
DateTime DateTimeNow = DateTime.Now;
bool isHave = false;
foreach (PhysioDataConfig appTemp in _record.addPhysioList)
{
if (appTemp.Name.Equals(pp.Name))
{
isHave = true;
}
}
if (!isHave)
{
_record.addPhysioList.Add(pp);
}
}
}
}
private void DrawEvent() private void DrawEvent()
{ {
reDrawEvent(); reDrawEvent();
@ -1774,6 +1823,24 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
} }
} }
private void frmAnasRecordInstrument_VisibleChanged(object sender, EventArgs e)
{
if (this.Visible == false)
{
if (_record != null && _record.StateName == "手术中" && State != AIMSExtension.EditState.BROWSE)
{
DisposeTimer();
}
}
else
{
if (_record != null && _record.StateName == "手术中" && State != AIMSExtension.EditState.BROWSE)
{
StartTimer();
}
}
}
private void plPrint_Click(object sender, EventArgs e) private void plPrint_Click(object sender, EventArgs e)
{ {
if (_record == null || _record.Id == 0) return; if (_record == null || _record.Id == 0) return;

View File

@ -274,7 +274,8 @@ namespace AIMS.PublicUI.UI
dr.Cells[2].Value = drug.DrugKind; dr.Cells[2].Value = drug.DrugKind;
dr.Cells[3].Tag = drug.Id; dr.Cells[3].Tag = drug.Id;
dr.Cells[3].Value = drug.Name; dr.Cells[3].Value = drug.Name;
dr.Cells[5].Value = "ivgtt"; dr.Cells[4].Value = drug.Remark;
dr.Cells[5].Value = drug.Channel;
if (tabDrugs.SelectedTab.Name == "P3") dr.Cells[5].Value = "泵入"; if (tabDrugs.SelectedTab.Name == "P3") dr.Cells[5].Value = "泵入";
if (dr.Cells[2].Value.ToString() == "血液制品") if (dr.Cells[2].Value.ToString() == "血液制品")
{ {

View File

@ -37,6 +37,8 @@ namespace AIMS.PublicUI.UI
/// 计量单位集合 /// 计量单位集合
/// </summary> /// </summary>
public List<BasicDictionary> _unitList; public List<BasicDictionary> _unitList;
public delegate void OutsParamHandler();
public event OutsParamHandler OutParam;
int LastColumnIndex = 0;// e.ColumnIndex int LastColumnIndex = 0;// e.ColumnIndex
public int OutputLiquidTypeId; public int OutputLiquidTypeId;

View File

@ -1481,7 +1481,7 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI
{ {
try try
{ {
DateTime dts = BOperationRecord.lastMaxOperationDate(myOpeRecord.Id.Value); DateTime dts = BOperationRecord.lastMaxOperationDate(myOpeRecord.PatientId.Value,myOpeRecord.RecoverId.Value);
DateTime nowDate = DateTime.Now; DateTime nowDate = DateTime.Now;
TimeSpan tsp = nowDate - dts; TimeSpan tsp = nowDate - dts;
if (tsp.TotalHours <= 12 && tsp.TotalDays <= 1 && dts < nowDate)//&& IsReview == false if (tsp.TotalHours <= 12 && tsp.TotalDays <= 1 && dts < nowDate)//&& IsReview == false

View File

@ -3701,7 +3701,7 @@ namespace AIMS.OperationFront.UI
{ {
ucPlanOperationRoomCard ucOpeRoom = new ucPlanOperationRoomCard(selOperationRooms.Rooms[i], operationRooms); ucPlanOperationRoomCard ucOpeRoom = new ucPlanOperationRoomCard(selOperationRooms.Rooms[i], operationRooms);
ucOpeRoom.Width = width; ucOpeRoom.Width = width;
ucOpeRoom.Height = 110; ucOpeRoom.Height = 135;
ucOpeRoom.dgvDetail = dgvDetail; ucOpeRoom.dgvDetail = dgvDetail;
if (row != i / 5) if (row != i / 5)

View File

@ -61,7 +61,7 @@
this.panelExMain.Dock = System.Windows.Forms.DockStyle.Fill; this.panelExMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelExMain.Location = new System.Drawing.Point(0, 0); this.panelExMain.Location = new System.Drawing.Point(0, 0);
this.panelExMain.Name = "panelExMain"; this.panelExMain.Name = "panelExMain";
this.panelExMain.Size = new System.Drawing.Size(200, 110); this.panelExMain.Size = new System.Drawing.Size(320, 135);
this.panelExMain.Style.Alignment = System.Drawing.StringAlignment.Center; this.panelExMain.Style.Alignment = System.Drawing.StringAlignment.Center;
this.panelExMain.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; this.panelExMain.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.panelExMain.Style.Border = DevComponents.DotNetBar.eBorderType.DoubleLine; this.panelExMain.Style.Border = DevComponents.DotNetBar.eBorderType.DoubleLine;
@ -76,11 +76,11 @@
// //
this.lblNurse2.ContextMenuStrip = this.contextMenuStrip1; this.lblNurse2.ContextMenuStrip = this.contextMenuStrip1;
this.lblNurse2.Dock = System.Windows.Forms.DockStyle.Top; this.lblNurse2.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse2.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblNurse2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold);
this.lblNurse2.Location = new System.Drawing.Point(0, 88); this.lblNurse2.Location = new System.Drawing.Point(0, 106);
this.lblNurse2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.lblNurse2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse2.Name = "lblNurse2"; this.lblNurse2.Name = "lblNurse2";
this.lblNurse2.Size = new System.Drawing.Size(200, 17); this.lblNurse2.Size = new System.Drawing.Size(320, 22);
this.lblNurse2.TabIndex = 19; this.lblNurse2.TabIndex = 19;
this.lblNurse2.Text = "巡回护士"; this.lblNurse2.Text = "巡回护士";
this.lblNurse2.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click); this.lblNurse2.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
@ -134,11 +134,11 @@
// //
this.lblNurse.ContextMenuStrip = this.contextMenuStrip1; this.lblNurse.ContextMenuStrip = this.contextMenuStrip1;
this.lblNurse.Dock = System.Windows.Forms.DockStyle.Top; this.lblNurse.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblNurse.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold);
this.lblNurse.Location = new System.Drawing.Point(0, 71); this.lblNurse.Location = new System.Drawing.Point(0, 84);
this.lblNurse.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.lblNurse.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse.Name = "lblNurse"; this.lblNurse.Name = "lblNurse";
this.lblNurse.Size = new System.Drawing.Size(200, 17); this.lblNurse.Size = new System.Drawing.Size(320, 22);
this.lblNurse.TabIndex = 18; this.lblNurse.TabIndex = 18;
this.lblNurse.Text = "洗手护士"; this.lblNurse.Text = "洗手护士";
this.lblNurse.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click); this.lblNurse.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
@ -147,11 +147,11 @@
// //
this.lblAnesDoctors.ContextMenuStrip = this.contextMenuStrip1; this.lblAnesDoctors.ContextMenuStrip = this.contextMenuStrip1;
this.lblAnesDoctors.Dock = System.Windows.Forms.DockStyle.Top; this.lblAnesDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblAnesDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblAnesDoctors.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold);
this.lblAnesDoctors.Location = new System.Drawing.Point(0, 54); this.lblAnesDoctors.Location = new System.Drawing.Point(0, 62);
this.lblAnesDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.lblAnesDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblAnesDoctors.Name = "lblAnesDoctors"; this.lblAnesDoctors.Name = "lblAnesDoctors";
this.lblAnesDoctors.Size = new System.Drawing.Size(200, 17); this.lblAnesDoctors.Size = new System.Drawing.Size(320, 22);
this.lblAnesDoctors.TabIndex = 17; this.lblAnesDoctors.TabIndex = 17;
this.lblAnesDoctors.Text = "麻醉医生"; this.lblAnesDoctors.Text = "麻醉医生";
this.lblAnesDoctors.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click); this.lblAnesDoctors.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
@ -161,11 +161,11 @@
this.lblOpeDoctors.BackColor = System.Drawing.Color.Transparent; this.lblOpeDoctors.BackColor = System.Drawing.Color.Transparent;
this.lblOpeDoctors.ContextMenuStrip = this.contextMenuStrip1; this.lblOpeDoctors.ContextMenuStrip = this.contextMenuStrip1;
this.lblOpeDoctors.Dock = System.Windows.Forms.DockStyle.Top; this.lblOpeDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblOpeDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblOpeDoctors.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold);
this.lblOpeDoctors.Location = new System.Drawing.Point(0, 37); this.lblOpeDoctors.Location = new System.Drawing.Point(0, 40);
this.lblOpeDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.lblOpeDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblOpeDoctors.Name = "lblOpeDoctors"; this.lblOpeDoctors.Name = "lblOpeDoctors";
this.lblOpeDoctors.Size = new System.Drawing.Size(200, 17); this.lblOpeDoctors.Size = new System.Drawing.Size(320, 22);
this.lblOpeDoctors.TabIndex = 16; this.lblOpeDoctors.TabIndex = 16;
this.lblOpeDoctors.Text = "手术医生"; this.lblOpeDoctors.Text = "手术医生";
this.lblOpeDoctors.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click); this.lblOpeDoctors.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
@ -179,14 +179,15 @@
this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(200, 37); this.panel1.Size = new System.Drawing.Size(320, 40);
this.panel1.TabIndex = 8; this.panel1.TabIndex = 8;
this.panel1.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click); this.panel1.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
// //
// labTabindex // labTabindex
// //
this.labTabindex.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.labTabindex.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.labTabindex.Location = new System.Drawing.Point(132, 8); this.labTabindex.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold);
this.labTabindex.Location = new System.Drawing.Point(282, 10);
this.labTabindex.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.labTabindex.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.labTabindex.Name = "labTabindex"; this.labTabindex.Name = "labTabindex";
this.labTabindex.Size = new System.Drawing.Size(69, 20); this.labTabindex.Size = new System.Drawing.Size(69, 20);
@ -196,11 +197,12 @@
// //
// labelName // labelName
// //
this.labelName.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.labelName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
this.labelName.Location = new System.Drawing.Point(3, 8); this.labelName.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold);
this.labelName.Location = new System.Drawing.Point(129, 10);
this.labelName.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.labelName.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.labelName.Name = "labelName"; this.labelName.Name = "labelName";
this.labelName.Size = new System.Drawing.Size(69, 20); this.labelName.Size = new System.Drawing.Size(49, 20);
this.labelName.TabIndex = 6; this.labelName.TabIndex = 6;
this.labelName.Text = "第几间"; this.labelName.Text = "第几间";
this.labelName.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click); this.labelName.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
@ -211,7 +213,7 @@
this.BackColor = System.Drawing.SystemColors.GradientActiveCaption; this.BackColor = System.Drawing.SystemColors.GradientActiveCaption;
this.Controls.Add(this.panelExMain); this.Controls.Add(this.panelExMain);
this.Name = "ucPlanOperationRoomCard"; this.Name = "ucPlanOperationRoomCard";
this.Size = new System.Drawing.Size(200, 110); this.Size = new System.Drawing.Size(320, 135);
this.Load += new System.EventHandler(this.ucPlanOperationRoomCard_Load); this.Load += new System.EventHandler(this.ucPlanOperationRoomCard_Load);
this.panelExMain.ResumeLayout(false); this.panelExMain.ResumeLayout(false);
this.contextMenuStrip1.ResumeLayout(false); this.contextMenuStrip1.ResumeLayout(false);

View File

@ -390,7 +390,6 @@
<Compile Include="Model\AutoGenerate\Role.cs" /> <Compile Include="Model\AutoGenerate\Role.cs" />
<Compile Include="Model\AutoGenerate\StockPile.cs" /> <Compile Include="Model\AutoGenerate\StockPile.cs" />
<Compile Include="Model\AutoGenerate\SysConfig.cs" /> <Compile Include="Model\AutoGenerate\SysConfig.cs" />
<Compile Include="Extensions\TitleTime.cs" />
<Compile Include="Model\AutoGenerate\UserPurview.cs" /> <Compile Include="Model\AutoGenerate\UserPurview.cs" />
<Compile Include="Model\Extension\AnaesthesiaMethod.cs" /> <Compile Include="Model\Extension\AnaesthesiaMethod.cs" />
<Compile Include="Model\Extension\ApplyAnaesthesiaMethod.cs" /> <Compile Include="Model\Extension\ApplyAnaesthesiaMethod.cs" />

View File

@ -24,5 +24,9 @@ namespace AIMSBLL
{ {
return DApplyAnaesthesiaMethod.GetApplyAnaesthesiaMethodList(OperationApplyId); return DApplyAnaesthesiaMethod.GetApplyAnaesthesiaMethodList(OperationApplyId);
} }
public static string GetApplyAnaesthesiaMethod(int OperationApplyId)
{
return DApplyAnaesthesiaMethod.GetApplyAnaesthesiaMethod(OperationApplyId);
}
} }
} }

View File

@ -16,6 +16,10 @@ namespace AIMSBLL
{ {
public partial class BOperationRecord public partial class BOperationRecord
{ {
public static int AddTitleTime(int PatientId, int ApplyId, int RecoverId, int State, DateTime Time, int RoomId)
{
return DOperationRecord.AddTitleTime(PatientId, ApplyId, RecoverId, State, Time, RoomId);
}
public static OperationRecord getRecord(OperationRecord _record, int PatientId, int RecoverId) public static OperationRecord getRecord(OperationRecord _record, int PatientId, int RecoverId)
{ {
if (_record == null) _record = new OperationRecord(); if (_record == null) _record = new OperationRecord();
@ -106,8 +110,6 @@ namespace AIMSBLL
_record.InstrumentNurse = OperationDoingdt.Rows[0]["InstrumentNurseId"].ToString().Trim(); _record.InstrumentNurse = OperationDoingdt.Rows[0]["InstrumentNurseId"].ToString().Trim();
_record.TourNurse = OperationDoingdt.Rows[0]["TourNurseId"].ToString().Trim(); _record.TourNurse = OperationDoingdt.Rows[0]["TourNurseId"].ToString().Trim();
_record.OrtherDoctorId = OperationDoingdt.Rows[0]["OrtherDoctorId"].ToString().Trim(); _record.OrtherDoctorId = OperationDoingdt.Rows[0]["OrtherDoctorId"].ToString().Trim();
//if (OperationDoingdt.Rows[0]["ASALevel"] != null && OperationDoingdt.Rows[0]["ASALevel"].ToString() != "")
// _record.ASALevel = int.Parse(OperationDoingdt.Rows[0]["ASALevel"].ToString().Trim());
//_record.SpecialCase = OperationDoingdt.Rows[0]["SpecialCase"].ToString().Trim(); //_record.SpecialCase = OperationDoingdt.Rows[0]["SpecialCase"].ToString().Trim();
//if (_record.SpecialCase == null || _record.SpecialCase == "") _record.SpecialCase = "无"; //if (_record.SpecialCase == null || _record.SpecialCase == "") _record.SpecialCase = "无";
//if (OperationDoingdt.Rows[0]["Fasting"].ToString() != "") //if (OperationDoingdt.Rows[0]["Fasting"].ToString() != "")
@ -207,6 +209,8 @@ namespace AIMSBLL
} }
_record.SpareThree = allOutDose.ToString(); _record.SpareThree = allOutDose.ToString();
if (_record.ASALevel == null || _record.ASALevel == 0)
GetASALevel(PatientId, _record);
return _record; return _record;
} }
@ -427,10 +431,6 @@ namespace AIMSBLL
{ {
DOperationRecord.SelectSingleEntity("PatientId=" + PatientId + " and RecoverId=" + RecoverId, ref operationRecord); DOperationRecord.SelectSingleEntity("PatientId=" + PatientId + " and RecoverId=" + RecoverId, ref operationRecord);
} }
public static int AddTitleTime(int PatientId, int ApplyId, int RecoverId, int State, DateTime Time, int RoomId)
{
return DOperationRecord.AddTitleTime(PatientId, ApplyId, RecoverId, State, Time, RoomId);
}
public static void UpdateState(int PatientId, int TypeId, int State) public static void UpdateState(int PatientId, int TypeId, int State)
{ {
DOperationRecord.UpdateState(PatientId, TypeId, State); DOperationRecord.UpdateState(PatientId, TypeId, State);
@ -508,9 +508,9 @@ namespace AIMSBLL
/// </summary> /// </summary>
/// <param name="doOpeInfo"></param> /// <param name="doOpeInfo"></param>
/// <returns></returns> /// <returns></returns>
public static DateTime lastMaxOperationDate(int PatientId) public static DateTime lastMaxOperationDate(int PatientId, int TypeId)
{ {
string sqlStr = "select top 1 * from (SELECT s.PatientId , s.EventEndTime etime FROM FactEvents s WHERE s.PatientId = " + PatientId + " union all SELECT s.PatientId , s.DrugEndTime FROM[dbo].[FactDrug] s WHERE s.PatientId = " + PatientId + " ) a order by a.etime desc"; string sqlStr = "select top 1 * from (SELECT s.PatientId , s.EventEndTime etime FROM FactEvents s WHERE s.EventTypeId=" + TypeId + " and s.PatientId = " + PatientId + " union all SELECT s.PatientId , s.DrugEndTime FROM[dbo].[FactDrug] s WHERE s.DrugTypeId=" + TypeId + " and s.PatientId = " + PatientId + " ) a order by a.etime desc";
DataTable dt = DBHelper.GetDataTable(sqlStr); DataTable dt = DBHelper.GetDataTable(sqlStr);
return DateTime.Parse(dt.Rows[0][1].ToString()); return DateTime.Parse(dt.Rows[0][1].ToString());
} }
@ -577,5 +577,18 @@ namespace AIMSBLL
{ {
return DOperationRecord.FillOutFluid(PatientId, DrugTypeId); return DOperationRecord.FillOutFluid(PatientId, DrugTypeId);
} }
public static void GetASALevel(int PatientId, OperationRecord _record)
{
string ASALevel = BOperationReview.GetDocumentXmlStatic("麻醉术前访视记录单", PatientId, "ASA分级");
if (ASALevel != "")
{
BasicDictionary dict = BBasicDictionary.SelectSingle(" ParentId=30 and Name='" + ASALevel + "'", null);
if (dict != null)
{
_record.ASALevel = dict.Id.Value;
BOperationRecord.Update(" ASALevel=@ASALevel where Id=@Id", new ParameterList("@ASALevel", _record.ASALevel, "@Id", _record.Id.Value));
}
}
}
} }
} }

View File

@ -641,6 +641,14 @@ namespace AIMSDAL
{ {
entity.OperateDate = Convert.ToDateTime(dr["OperateDate"]); entity.OperateDate = Convert.ToDateTime(dr["OperateDate"]);
} }
if (dr["Remark"] != System.DBNull.Value)
{
entity.Remark = dr["Remark"].ToString();
}
if (dr["Channel"] != System.DBNull.Value)
{
entity.Channel = dr["Channel"].ToString();
}
return entity; return entity;
} }
} }

View File

@ -49,5 +49,22 @@ namespace AIMSDAL
} }
return ApplyAnaesthesiaMethodIdList; return ApplyAnaesthesiaMethodIdList;
} }
public static string GetApplyAnaesthesiaMethod(int OperationApplyId)
{
string ApplyAnaesthesiaMethodIdList = "";
StringBuilder sb = new StringBuilder();
string strSql = "SELECT AnaesthesiaMethodId FROM ApplyAnaesthesiaMethod WHERE OperationApplyId='" + OperationApplyId + "'";
DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
for (int i = 0; i < dt.Rows.Count; i++)
{
sb.Append(dt.Rows[i]["AnaesthesiaMethodId"].ToString() + ",");
}
if (sb.ToString().Length > 1)
{
ApplyAnaesthesiaMethodIdList = sb.ToString().Substring(0, sb.ToString().Length - 1);
}
return ApplyAnaesthesiaMethodIdList;
}
} }
} }

View File

@ -1,7 +1,9 @@
using AIMSModel; using AIMSBLL;
using AIMSModel;
using AIMSObjectQuery; using AIMSObjectQuery;
using DrawGraph; using DrawGraph;
using System; using System;
using System.Collections.Generic;
using System.Data; using System.Data;
using System.Data.SqlClient; using System.Data.SqlClient;
using System.Text; using System.Text;
@ -12,11 +14,12 @@ namespace AIMSDAL
{ {
public static int AddTitleTime(int PatientId, int ApplyId, int RecoverId, int State, DateTime Time, int RoomId) public static int AddTitleTime(int PatientId, int ApplyId, int RecoverId, int State, DateTime Time, int RoomId)
{ {
string strSql = "INSERT INTO OperationRecord(PatientId,OperationApplyId,RecoverId,[State],InRoomTime,OperatorNo,OperatorName,OperateDate,RoomId)" + string ApplyAnaesthesiaMethod = BApplyAnaesthesiaMethod.GetApplyAnaesthesiaMethod(ApplyId);
string strSql = "INSERT INTO OperationRecord(PatientId,OperationApplyId,RecoverId,[State],InRoomTime,OperatorNo,OperatorName,OperateDate,RoomId,AnaesthesiaMethodName)" +
"VALUES (" + PatientId + "," + ApplyId + "," + RecoverId + ",'" + State + "','" + Time + "','" + AIMSExtension.PublicMethod.OperatorNo + "','" "VALUES (" + PatientId + "," + ApplyId + "," + RecoverId + ",'" + State + "','" + Time + "','" + AIMSExtension.PublicMethod.OperatorNo + "','"
+ AIMSExtension.PublicMethod.OperatorName + "','" + AIMSExtension.PublicMethod.SystemDate() + "','" + RoomId + "');select @@identity "; + AIMSExtension.PublicMethod.OperatorName + "','" + AIMSExtension.PublicMethod.SystemDate() + "','" + RoomId + "','" + ApplyAnaesthesiaMethod + "');select @@identity ";
return Convert.ToInt32(HelperDB.DbHelperSQL.ExecNonQuery(strSql)); return Convert.ToInt32(HelperDB.DbHelperSQL.ExecNonQuery(strSql));
;
} }
public static DataTable GetOperationDoingMainInfo(int PatientId, int TypeId) public static DataTable GetOperationDoingMainInfo(int PatientId, int TypeId)

View File

@ -3,6 +3,10 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Data; using System.Data;
using System.Xml;
using AIMSModel;
using HelperDB;
namespace AIMSBLL namespace AIMSBLL
{ {
public class BOperationReview public class BOperationReview
@ -40,5 +44,76 @@ namespace AIMSBLL
} }
/// <summary>
/// 根据模板名称查询文档
/// </summary>
/// <param name="tempName">模板名称</param>
/// <param name="patientId">患者Id</param>
/// <returns></returns>
public static PrintDocument GetDocumentbyName(string tempName, int patientId)
{
PrintDocument model = new PrintDocument();
string result = string.Empty;
try
{
StringBuilder sb = new StringBuilder();
sb.Append("select ");
sb.Append(" pd.Id,");
sb.Append(" pd.PatientId,");
sb.Append(" pd.TemplateId,");
sb.Append(" pd.XmlFileName,");
sb.Append(" pd.XmlFile,");
sb.Append(" pd.XmlStatic,");
sb.Append(" pd.IsValid,");
sb.Append(" pd.OperatorNo,");
sb.Append(" pd.OperatorDate");
sb.Append(" from PrintDocument pd");
sb.Append(" where ");
sb.Append(" pd.PatientId = " + patientId);
sb.Append(" and pd.XmlFileName = '" + tempName + "'");
sb.Append(" and pd.IsValid = 1");
DataTable dt = DbHelperSQL.GetDataTable(sb.ToString());
if (dt.Rows.Count > 0)
{
model.Id = int.Parse(dt.Rows[0]["Id"].ToString());
model.PatientId = int.Parse(dt.Rows[0]["PatientId"].ToString());
model.TemplateId = int.Parse(dt.Rows[0]["TemplateId"].ToString());
model.XmlFileName = dt.Rows[0]["XmlFileName"].ToString();
model.XmlFile = dt.Rows[0]["XmlFile"].ToString();
model.XmlStatic = dt.Rows[0]["XmlStatic"].ToString();
model.OperatorNo = dt.Rows[0]["OperatorNo"].ToString();
}
}
catch (Exception ex)
{
throw ex;
}
return model;
}
public static XmlDocument GetPrintDocumentXml(string tempName, int patientId)
{
PrintDocument model = GetDocumentbyName(tempName, patientId);
XmlDocument doc = new XmlDocument();
if (model.XmlStatic != null && model.XmlStatic.Length > 0)
{
doc.LoadXml(model.XmlStatic);
}
return doc;
}
public static string GetDocumentXmlStatic(string tempName, int patientId, string dictName)
{
string Value = "";
XmlDocument doc = GetPrintDocumentXml(tempName, patientId);
XmlElement root = doc.DocumentElement;
if (root != null)
{
foreach (XmlNode row in root.ChildNodes)
{
if (row.Attributes["Name"].InnerText == dictName)
Value = row.InnerText.Trim();//测试方法
}
}
return Value;
}
} }
} }

View File

@ -112,19 +112,19 @@ namespace AIMSBLL
FactOperationInfoObj.OperateDate = AIMSExtension.PublicMethod.SystemDate(); FactOperationInfoObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
BFactOperationInfo.Add(FactOperationInfoObj); BFactOperationInfo.Add(FactOperationInfoObj);
} }
//实施麻醉 ////实施麻醉
List<int> ApplyAnaesthesiaMethodList = BApplyAnaesthesiaMethod.GetApplyAnaesthesiaMethodList(ApplyId); //List<int> ApplyAnaesthesiaMethodList = BApplyAnaesthesiaMethod.GetApplyAnaesthesiaMethodList(ApplyId);
for (int i = 0; i < ApplyAnaesthesiaMethodList.Count; i++) //for (int i = 0; i < ApplyAnaesthesiaMethodList.Count; i++)
{ //{
FactAnaesthesiaMethod FactAnaesthesiaMethodObj = new FactAnaesthesiaMethod(); // FactAnaesthesiaMethod FactAnaesthesiaMethodObj = new FactAnaesthesiaMethod();
FactAnaesthesiaMethodObj.PatientId = PatientId; // FactAnaesthesiaMethodObj.PatientId = PatientId;
FactAnaesthesiaMethodObj.ApplyId = ApplyId; // FactAnaesthesiaMethodObj.ApplyId = ApplyId;
FactAnaesthesiaMethodObj.AnaesthesiaMethodId = ApplyAnaesthesiaMethodList[i]; // FactAnaesthesiaMethodObj.AnaesthesiaMethodId = ApplyAnaesthesiaMethodList[i];
FactAnaesthesiaMethodObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo; // FactAnaesthesiaMethodObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
FactAnaesthesiaMethodObj.OperatorName = AIMSExtension.PublicMethod.OperatorName; // FactAnaesthesiaMethodObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
FactAnaesthesiaMethodObj.OperateDate = AIMSExtension.PublicMethod.SystemDate(); // FactAnaesthesiaMethodObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
BFactAnaesthesiaMethod.Add(FactAnaesthesiaMethodObj); // BFactAnaesthesiaMethod.Add(FactAnaesthesiaMethodObj);
} //}
//手术部位 //手术部位
List<int> ApplyOperationPositionList = BApplyOperationPosition.GetApplyOperationPositionIdList(ApplyId); List<int> ApplyOperationPositionList = BApplyOperationPosition.GetApplyOperationPositionIdList(ApplyId);

View File

@ -1,83 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AIMSModel
{
public class TitleTime
{
public int OperationApplyId;
private DateTime? _inroomtime;
private DateTime? _outroomtime;
private DateTime? _operationbegintime;
private DateTime? _operationendtime;
private DateTime? _anesthesiabegintime;
private DateTime? _anesthesiaendtime;
private DateTime? _spiletime;
private DateTime? _extubationtime;
public DateTime? InRoomTime
{
set { _inroomtime = value; }
get { return _inroomtime; }
}
/// <summary>
///
/// </summary>
public DateTime? OutRoomTime
{
set { _outroomtime = value; }
get { return _outroomtime; }
}
/// <summary>
///
/// </summary>
public DateTime? OperationBeginTime
{
set { _operationbegintime = value; }
get { return _operationbegintime; }
}
/// <summary>
///
/// </summary>
public DateTime? OperationEndTime
{
set { _operationendtime = value; }
get { return _operationendtime; }
}
/// <summary>
///
/// </summary>
public DateTime? AnesthesiaBeginTime
{
set { _anesthesiabegintime = value; }
get { return _anesthesiabegintime; }
}
/// <summary>
///
/// </summary>
public DateTime? AnesthesiaEndTime
{
set { _anesthesiaendtime = value; }
get { return _anesthesiaendtime; }
}
/// <summary>
///
/// </summary>
public DateTime? SpileTime
{
set { _spiletime = value; }
get { return _spiletime; }
}
/// <summary>
///
/// </summary>
public DateTime? ExtubationTime
{
set { _extubationtime = value; }
get { return _extubationtime; }
}
}
}

View File

@ -6,6 +6,7 @@ using System.Data;
using HelperDB; using HelperDB;
using DCSoft.Writer.Data; using DCSoft.Writer.Data;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Xml;
namespace DocumentManagement namespace DocumentManagement
{ {
@ -600,6 +601,7 @@ namespace DocumentManagement
return model; return model;
} }
public static void InsertTemplate(PrintTemplate model) public static void InsertTemplate(PrintTemplate model)
{ {
try try

View File

@ -146,7 +146,7 @@ namespace DrawGraph
} }
if (item.GiveDrugType == "术后镇痛药") if (item.GiveDrugType == "术后镇痛药")
{ {
myOpeRecord.AfterDrugsListstr.Add(string.Format("({0}){1} {2} {3}{4}{5}", x + 1, (item.DrugBeginTime == item.DrugEndTime) ? item.DrugBeginTime.ToShortTimeString() : item.DrugBeginTime.ToShortTimeString() + "->" + item.DrugEndTime.ToShortTimeString(), item.DrugName.Trim(), dose, "", item.DrugChannel == null ? "" : " " + item.DrugChannel.ToString())); myOpeRecord.AfterDrugsListstr.Add(string.Format("({0}){1} {2} {3}{4}{5}", x + 1, "", item.DrugName.Trim(), dose, "", item.DrugChannel == null ? "" : " " + item.DrugChannel.ToString()));
myOpeRecord.AnalgesiaDrug += string.Format("{0}{1} ", item.DrugName.Trim(), dose); myOpeRecord.AnalgesiaDrug += string.Format("{0}{1} ", item.DrugName.Trim(), dose);
x++; x++;
} }

View File

@ -126,7 +126,8 @@ namespace DrawGraph
List<string> eventListstr = new List<string>(); List<string> eventListstr = new List<string>();
eventListstr.Add("【事件】"); eventListstr.Add("【事件】");
//myOpeRecord.FactEventsList.Sort(new FactEventsComparer()); //myOpeRecord.FactEventsList.Sort(new FactEventsComparer());
//List<string> eventlist = xmlOpe.GetNode(EVENTPARAMPATH, "name"); //List<string> eventlist =
//.GetNode(EVENTPARAMPATH, "name");
//循环加药集体 //循环加药集体
for (int i = 0; i < myOpeRecord.FactEventsList.Count; i++) for (int i = 0; i < myOpeRecord.FactEventsList.Count; i++)
{ {

View File

@ -898,15 +898,15 @@ namespace DrawGraph
int czpyl = 0; int czpyl = 0;
int hzpyl = 0; int hzpyl = 0;
int dfzpyl = 0; int dfzpyl = 0;
try //try
{ //{
czpyl = int.Parse(xmlOpe.GetNode("czpyl")[0].ToString()); // czpyl = int.Parse(xmlOpe.GetNode("czpyl")[0].ToString());
hzpyl = int.Parse(xmlOpe.GetNode("hzpyl")[0].ToString()); // hzpyl = int.Parse(xmlOpe.GetNode("hzpyl")[0].ToString());
//dfzpyl = int.Parse(xmlOpe.GetNode("dfzpyl")[0].ToString()); // //dfzpyl = int.Parse(xmlOpe.GetNode("dfzpyl")[0].ToString());
} //}
catch (Exception) //catch (Exception)
{ //{
} //}
Zjpyl = Zjpyl + LocationY + czpyl; Zjpyl = Zjpyl + LocationY + czpyl;
Hzjpyl = hzpyl; Hzjpyl = hzpyl;
Dfzjpyl = dfzpyl; Dfzjpyl = dfzpyl;