术前禁食默认是

左侧事件图例显示
麻醉单背面默认-
This commit is contained in:
leomon 2023-05-03 10:28:43 +08:00
parent 85ae9e317a
commit 05b0b07250
6 changed files with 63 additions and 41 deletions

View File

@ -489,6 +489,7 @@
//
// panel3
//
this.panel3.AutoScroll = true;
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(3, 17);
this.panel3.Name = "panel3";

View File

@ -34,12 +34,11 @@ namespace AIMSBLL
}
BOperationRecord.SelectSingle(PatientId, RecoverId, ref _record);
if (RecoverId == 1 && (_record.Breath == null || _record.Breath == ""))
{
_record.Breath = "10";
}
if (_record.InRoomTime != null)
{
_record.OperationDate = _record.InRoomTime.Value.ToShortDateString();
_record.OpeDay = _record.InRoomTime.Value.ToString("yyyy-MM-dd");
}
string ASALevel = "";
DataTable OperationFrontdt = BOperationApply.GetOperationFrontDataTableByPatientId(PatientId);
@ -113,11 +112,15 @@ namespace AIMSBLL
_record.OrtherDoctorId = OperationDoingdt.Rows[0]["OrtherDoctorId"].ToString().Trim();
if (_record.SpecialCase == null || _record.SpecialCase == "") _record.SpecialCase = "无";
_record.OperationRoom = OperationDoingdt.Rows[0]["OperationRoom"].ToString().Trim();
}
if (_record.Breath == null || _record.Breath == "")
_record.Breath = "10";
if (_record.InRoomTime != null)
{
_record.OpeDay = _record.InRoomTime.Value.ToString("yyyy-MM-dd");
if (_record.OpeSpecialCondition == null || _record.OpeSpecialCondition == "")
_record.OpeSpecialCondition = "无特殊情况";
if (_record.SpecialEvent == null || _record.SpecialEvent == "")
_record.SpecialEvent = "-";
if (_record.Remark1 == null || _record.Remark1 == "")
_record.Remark1 = "-";
}
_record.OpeRecordInfo = BOperationRecordInfo.SelectSingle("OperationRecordId=" + _record.Id, null);
@ -131,6 +134,10 @@ namespace AIMSBLL
{
_record.OpeRecordInfo.OperationLevel = OperationFrontdt.Rows[0]["OperationLevelName"].ToString();
}
_record.OpeRecordInfo.InfoRemark = "-";
_record.OpeRecordInfo.RuleNurse = "-";
_record.OpeRecordInfo.OperatorId = PublicMethod.OperatorName;
_record.OpeRecordInfo.OperatorTime = DateTime.Now;
_record.OpeRecordInfo.Id = BOperationRecordInfo.Insert(_record.OpeRecordInfo);

View File

@ -164,27 +164,27 @@ namespace AIMSBLL
if (BFactEvents.IsValid(EventId))
{
FactEvents FactEventObj = new FactEvents();
FactEventObj.PatientId = PatientId;
FactEventObj.EventId = EventId;
TimeSpan BeginTimets = DateTime.Parse(dr["BeginTime"].ToString()).Subtract(DateTime.Parse(dr["InRoomTime"].ToString()));
TimeSpan EndTimets = DateTime.Parse(dr["EndTime"].ToString()).Subtract(DateTime.Parse(dr["InRoomTime"].ToString()));
FactEventObj.PatientId = PatientId;
FactEventObj.EventId = EventId;
TimeSpan BeginTimets = DateTime.Parse(dr["BeginTime"].ToString()).Subtract(DateTime.Parse(dr["InRoomTime"].ToString()));
TimeSpan EndTimets = DateTime.Parse(dr["EndTime"].ToString()).Subtract(DateTime.Parse(dr["InRoomTime"].ToString()));
FactEventObj.EventBeginTime = InRoomTime.AddSeconds(BeginTimets.TotalSeconds);
FactEventObj.EventEndTime = InRoomTime.AddSeconds(EndTimets.TotalSeconds);
if (dr["BeginTime"].ToString() == dr["EndTime"].ToString())
{
FactEventObj.IsContinue = 0;
}
else
{
FactEventObj.IsContinue = 1;
}
FactEventObj.EventTypeId = TypeId;
FactEventObj.EventBeginTime = InRoomTime.AddSeconds(BeginTimets.TotalSeconds);
FactEventObj.EventEndTime = InRoomTime.AddSeconds(EndTimets.TotalSeconds);
if (dr["BeginTime"].ToString() == dr["EndTime"].ToString())
{
FactEventObj.IsContinue = 0;
}
else
{
FactEventObj.IsContinue = 1;
}
FactEventObj.EventTypeId = TypeId;
FactEventObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
FactEventObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
FactEventObj.OperateDate = NewInRoomTime;
BFactEvents.Add(FactEventObj);
FactEventObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
FactEventObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
FactEventObj.OperateDate = NewInRoomTime;
BFactEvents.Add(FactEventObj);
}
}

View File

@ -16,10 +16,6 @@ namespace DrawGraph
/// </summary>
public class MonitorManage : AreaManageBase
{
/// <summary>
/// 监测文本的对象
/// </summary>
TextPackObj janCePack = null;
/// <summary>
/// 图表的对象
/// </summary>
@ -39,8 +35,6 @@ namespace DrawGraph
public void init()
{
//监测文本的对象
janCePack = GetPackObjectOTag("PhysioDataManage_TextPackObj_17") as TextPackObj;
//图表的对象
chartPack = GetPackObjectOTag("PhysioDataManage_ChartPackObj_6") as ChartPackObj;
//自己要用的手术对象

View File

@ -365,6 +365,11 @@ namespace DrawGraph
string sql = "Select * FROM PhysioDataConfig where ConfigType='麻醉体征' order by PhysioOrder asc";
return GetListBySql(sql);
}
public static IList<PhysioDataConfig> GetEventList()
{
string sql = "Select * FROM PhysioDataConfig where ConfigType='事件' order by PhysioOrder asc";
return GetListBySql(sql);
}
#endregion
#region

View File

@ -531,7 +531,7 @@ namespace DrawGraph
Legend legend = myPane.Legend;
legend.IsVisible = true;
legend.Position = LegendPos.Float;//定位图标位置
legend.Location = new Location(janCePack.RealX, janCePack.RealEndY - 0.02, CoordType.PaneFraction);
legend.Location = new Location(janCePack.RealX, janCePack.RealEndY, CoordType.PaneFraction);
legend.Border.Width = 0;
legend.Border.IsVisible = false; //不显示图标外边框
legend.Gap = 2.0f;
@ -640,6 +640,21 @@ namespace DrawGraph
myOpeRecord.PhysioAnesConfigList.Add(pp);
}
}
//加载事件图标
IList<PhysioDataConfig> dtevent = PhysioDataConfig.GetEventList();
for (int i = 0; i < dtevent.Count; i++)
{
PhysioDataConfig pp = dtevent[i];
pp.ConfigType = "事件";
pp.ConveColor = System.Drawing.Color.White;
pp.IsValid = true;
pp.ClearTagstr(ZedControl);
pp.phListPack = phListPack;
pp.setAnasArr(ZedControl, chartPack.RealX, chartPack.RealEndX, myOpeRecord.PageBegin,
myOpeRecord.PageBegin.AddMinutes(EVERY_PAGE_TIME_SPAN));
pp.initCurve();
}
}
catch (Exception ex)
{