术前禁食默认是
左侧事件图例显示 麻醉单背面默认-
This commit is contained in:
parent
85ae9e317a
commit
05b0b07250
@ -489,6 +489,7 @@
|
|||||||
//
|
//
|
||||||
// panel3
|
// panel3
|
||||||
//
|
//
|
||||||
|
this.panel3.AutoScroll = true;
|
||||||
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.panel3.Location = new System.Drawing.Point(3, 17);
|
this.panel3.Location = new System.Drawing.Point(3, 17);
|
||||||
this.panel3.Name = "panel3";
|
this.panel3.Name = "panel3";
|
||||||
|
|||||||
@ -33,13 +33,12 @@ namespace AIMSBLL
|
|||||||
return _record;
|
return _record;
|
||||||
}
|
}
|
||||||
BOperationRecord.SelectSingle(PatientId, RecoverId, ref _record);
|
BOperationRecord.SelectSingle(PatientId, RecoverId, ref _record);
|
||||||
|
|
||||||
if (RecoverId == 1 && (_record.Breath == null || _record.Breath == ""))
|
|
||||||
{
|
|
||||||
_record.Breath = "10";
|
|
||||||
}
|
|
||||||
if (_record.InRoomTime != null)
|
if (_record.InRoomTime != null)
|
||||||
|
{
|
||||||
_record.OperationDate = _record.InRoomTime.Value.ToShortDateString();
|
_record.OperationDate = _record.InRoomTime.Value.ToShortDateString();
|
||||||
|
_record.OpeDay = _record.InRoomTime.Value.ToString("yyyy-MM-dd");
|
||||||
|
}
|
||||||
|
|
||||||
string ASALevel = "";
|
string ASALevel = "";
|
||||||
DataTable OperationFrontdt = BOperationApply.GetOperationFrontDataTableByPatientId(PatientId);
|
DataTable OperationFrontdt = BOperationApply.GetOperationFrontDataTableByPatientId(PatientId);
|
||||||
@ -110,16 +109,20 @@ namespace AIMSBLL
|
|||||||
_record.AnesthesiaDoctor = OperationDoingdt.Rows[0]["AnesthesiaDoctorId"].ToString().Trim();
|
_record.AnesthesiaDoctor = OperationDoingdt.Rows[0]["AnesthesiaDoctorId"].ToString().Trim();
|
||||||
_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 (_record.SpecialCase == null || _record.SpecialCase == "") _record.SpecialCase = "无";
|
if (_record.SpecialCase == null || _record.SpecialCase == "") _record.SpecialCase = "无";
|
||||||
_record.OperationRoom = OperationDoingdt.Rows[0]["OperationRoom"].ToString().Trim();
|
_record.OperationRoom = OperationDoingdt.Rows[0]["OperationRoom"].ToString().Trim();
|
||||||
}
|
if (_record.Breath == null || _record.Breath == "")
|
||||||
|
_record.Breath = "10";
|
||||||
|
|
||||||
if (_record.InRoomTime != null)
|
if (_record.OpeSpecialCondition == null || _record.OpeSpecialCondition == "")
|
||||||
{
|
_record.OpeSpecialCondition = "无特殊情况";
|
||||||
_record.OpeDay = _record.InRoomTime.Value.ToString("yyyy-MM-dd");
|
if (_record.SpecialEvent == null || _record.SpecialEvent == "")
|
||||||
|
_record.SpecialEvent = "-";
|
||||||
|
if (_record.Remark1 == null || _record.Remark1 == "")
|
||||||
|
_record.Remark1 = "-";
|
||||||
}
|
}
|
||||||
|
|
||||||
_record.OpeRecordInfo = BOperationRecordInfo.SelectSingle("OperationRecordId=" + _record.Id, null);
|
_record.OpeRecordInfo = BOperationRecordInfo.SelectSingle("OperationRecordId=" + _record.Id, null);
|
||||||
if (_record.OpeRecordInfo == null || _record.OpeRecordInfo.Id == null)
|
if (_record.OpeRecordInfo == null || _record.OpeRecordInfo.Id == null)
|
||||||
{
|
{
|
||||||
@ -131,6 +134,10 @@ namespace AIMSBLL
|
|||||||
{
|
{
|
||||||
_record.OpeRecordInfo.OperationLevel = OperationFrontdt.Rows[0]["OperationLevelName"].ToString();
|
_record.OpeRecordInfo.OperationLevel = OperationFrontdt.Rows[0]["OperationLevelName"].ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_record.OpeRecordInfo.InfoRemark = "-";
|
||||||
|
_record.OpeRecordInfo.RuleNurse = "-";
|
||||||
|
|
||||||
_record.OpeRecordInfo.OperatorId = PublicMethod.OperatorName;
|
_record.OpeRecordInfo.OperatorId = PublicMethod.OperatorName;
|
||||||
_record.OpeRecordInfo.OperatorTime = DateTime.Now;
|
_record.OpeRecordInfo.OperatorTime = DateTime.Now;
|
||||||
_record.OpeRecordInfo.Id = BOperationRecordInfo.Insert(_record.OpeRecordInfo);
|
_record.OpeRecordInfo.Id = BOperationRecordInfo.Insert(_record.OpeRecordInfo);
|
||||||
|
|||||||
@ -164,27 +164,27 @@ namespace AIMSBLL
|
|||||||
if (BFactEvents.IsValid(EventId))
|
if (BFactEvents.IsValid(EventId))
|
||||||
{
|
{
|
||||||
FactEvents FactEventObj = new FactEvents();
|
FactEvents FactEventObj = new FactEvents();
|
||||||
FactEventObj.PatientId = PatientId;
|
FactEventObj.PatientId = PatientId;
|
||||||
FactEventObj.EventId = EventId;
|
FactEventObj.EventId = EventId;
|
||||||
TimeSpan BeginTimets = DateTime.Parse(dr["BeginTime"].ToString()).Subtract(DateTime.Parse(dr["InRoomTime"].ToString()));
|
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()));
|
TimeSpan EndTimets = DateTime.Parse(dr["EndTime"].ToString()).Subtract(DateTime.Parse(dr["InRoomTime"].ToString()));
|
||||||
|
|
||||||
FactEventObj.EventBeginTime = InRoomTime.AddSeconds(BeginTimets.TotalSeconds);
|
FactEventObj.EventBeginTime = InRoomTime.AddSeconds(BeginTimets.TotalSeconds);
|
||||||
FactEventObj.EventEndTime = InRoomTime.AddSeconds(EndTimets.TotalSeconds);
|
FactEventObj.EventEndTime = InRoomTime.AddSeconds(EndTimets.TotalSeconds);
|
||||||
if (dr["BeginTime"].ToString() == dr["EndTime"].ToString())
|
if (dr["BeginTime"].ToString() == dr["EndTime"].ToString())
|
||||||
{
|
{
|
||||||
FactEventObj.IsContinue = 0;
|
FactEventObj.IsContinue = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FactEventObj.IsContinue = 1;
|
FactEventObj.IsContinue = 1;
|
||||||
}
|
}
|
||||||
FactEventObj.EventTypeId = TypeId;
|
FactEventObj.EventTypeId = TypeId;
|
||||||
|
|
||||||
FactEventObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
|
FactEventObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
|
||||||
FactEventObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
|
FactEventObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
|
||||||
FactEventObj.OperateDate = NewInRoomTime;
|
FactEventObj.OperateDate = NewInRoomTime;
|
||||||
BFactEvents.Add(FactEventObj);
|
BFactEvents.Add(FactEventObj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -15,11 +15,7 @@ namespace DrawGraph
|
|||||||
/// 监测管理类
|
/// 监测管理类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class MonitorManage : AreaManageBase
|
public class MonitorManage : AreaManageBase
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// 监测文本的对象
|
|
||||||
/// </summary>
|
|
||||||
TextPackObj janCePack = null;
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 图表的对象
|
/// 图表的对象
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -38,9 +34,7 @@ namespace DrawGraph
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void init()
|
public void init()
|
||||||
{
|
{
|
||||||
//监测文本的对象
|
|
||||||
janCePack = GetPackObjectOTag("PhysioDataManage_TextPackObj_17") as TextPackObj;
|
|
||||||
//图表的对象
|
//图表的对象
|
||||||
chartPack = GetPackObjectOTag("PhysioDataManage_ChartPackObj_6") as ChartPackObj;
|
chartPack = GetPackObjectOTag("PhysioDataManage_ChartPackObj_6") as ChartPackObj;
|
||||||
//自己要用的手术对象
|
//自己要用的手术对象
|
||||||
|
|||||||
@ -365,6 +365,11 @@ namespace DrawGraph
|
|||||||
string sql = "Select * FROM PhysioDataConfig where ConfigType='麻醉体征' order by PhysioOrder asc";
|
string sql = "Select * FROM PhysioDataConfig where ConfigType='麻醉体征' order by PhysioOrder asc";
|
||||||
return GetListBySql(sql);
|
return GetListBySql(sql);
|
||||||
}
|
}
|
||||||
|
public static IList<PhysioDataConfig> GetEventList()
|
||||||
|
{
|
||||||
|
string sql = "Select * FROM PhysioDataConfig where ConfigType='事件' order by PhysioOrder asc";
|
||||||
|
return GetListBySql(sql);
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 数据操作
|
#region 数据操作
|
||||||
|
|||||||
@ -312,13 +312,13 @@ namespace DrawGraph
|
|||||||
if (myOpeRecord.SelPhysioConfig != null)
|
if (myOpeRecord.SelPhysioConfig != null)
|
||||||
{
|
{
|
||||||
PhysioData pdTemp = rePD(sender, e);
|
PhysioData pdTemp = rePD(sender, e);
|
||||||
if (pdTemp == null) return;
|
if (pdTemp == null) return;
|
||||||
DateTime insTime = GetRecordTime(pdTemp.RecordTime);
|
DateTime insTime = GetRecordTime(pdTemp.RecordTime);
|
||||||
CurPhysioData = pdTemp;
|
CurPhysioData = pdTemp;
|
||||||
CurPhysioData.RecordTime = insTime;
|
CurPhysioData.RecordTime = insTime;
|
||||||
|
|
||||||
myOpeRecord.SelPhysioConfig.ModifyAddItem(CurPhysioData, CurPhysioData);
|
myOpeRecord.SelPhysioConfig.ModifyAddItem(CurPhysioData, CurPhysioData);
|
||||||
ZedControl.Refresh();
|
ZedControl.Refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -531,7 +531,7 @@ namespace DrawGraph
|
|||||||
Legend legend = myPane.Legend;
|
Legend legend = myPane.Legend;
|
||||||
legend.IsVisible = true;
|
legend.IsVisible = true;
|
||||||
legend.Position = LegendPos.Float;//定位图标位置
|
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.Width = 0;
|
||||||
legend.Border.IsVisible = false; //不显示图标外边框
|
legend.Border.IsVisible = false; //不显示图标外边框
|
||||||
legend.Gap = 2.0f;
|
legend.Gap = 2.0f;
|
||||||
@ -640,6 +640,21 @@ namespace DrawGraph
|
|||||||
myOpeRecord.PhysioAnesConfigList.Add(pp);
|
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)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user