批量修改生命体征刷新
This commit is contained in:
parent
4710e60dea
commit
0f8b8e42ae
File diff suppressed because it is too large
Load Diff
@ -53,7 +53,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
labOperatorName.Text = "(" + AIMSExtension.PublicMethod.OperatorNo + ")" + " " + AIMSExtension.PublicMethod.OperatorName;
|
labOperatorName.Text = "(" + AIMSExtension.PublicMethod.OperatorNo + ")" + " " + AIMSExtension.PublicMethod.OperatorName;
|
||||||
if (NowRoom != null) lblRoom.Text = NowRoom.Name;
|
if (NowRoom != null) lblRoom.Text = NowRoom.Name;
|
||||||
circularProgress1.Location = new Point((panel8.Width - circularProgress1.Width) / 2, (panel8.Height - circularProgress1.Height) / 2);
|
circularProgress1.Location = new Point((panel8.Width - circularProgress1.Width) / 2, (panel8.Height - circularProgress1.Height) / 2);
|
||||||
this.MaximizeBox = false;
|
//this.MaximizeBox = false;
|
||||||
this.MinimizeBox = false;
|
this.MinimizeBox = false;
|
||||||
|
|
||||||
LoadAnesRescue();
|
LoadAnesRescue();
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
using AIMSBLL;
|
using AIMSBLL;
|
||||||
using AIMSExtension;
|
using AIMSExtension;
|
||||||
|
using DCSoftDotfuscate;
|
||||||
using DevComponents.DotNetBar;
|
using DevComponents.DotNetBar;
|
||||||
using DrawGraph;
|
using DrawGraph;
|
||||||
using System;
|
using System;
|
||||||
@ -268,16 +269,177 @@ namespace AIMS.OperationAanesthesia
|
|||||||
textNum.TextAlign = ContentAlignment.MiddleCenter;
|
textNum.TextAlign = ContentAlignment.MiddleCenter;
|
||||||
paneltop.Controls.Add(textNum);
|
paneltop.Controls.Add(textNum);
|
||||||
}
|
}
|
||||||
|
System.Windows.Forms.Label textTipName2 = new System.Windows.Forms.Label();
|
||||||
|
textTipName2.Text = "时间 ";
|
||||||
|
textTipName2.Font = new System.Drawing.Font("微软雅黑", 9f, FontStyle.Bold);
|
||||||
|
textTipName2.Width = panel2.Width / (240 / 5) * 3 / 2;
|
||||||
|
textTipName2.Dock = System.Windows.Forms.DockStyle.Left;
|
||||||
|
textTipName2.TextAlign = ContentAlignment.MiddleRight;
|
||||||
|
paneltop.Controls.Add(textTipName2);
|
||||||
System.Windows.Forms.Label textTipName = new System.Windows.Forms.Label();
|
System.Windows.Forms.Label textTipName = new System.Windows.Forms.Label();
|
||||||
textTipName.Text = "参数名称";
|
textTipName.Text = " 名称";
|
||||||
textTipName.Font = new System.Drawing.Font("微软雅黑", 9f);
|
textTipName.Font = new System.Drawing.Font("微软雅黑", 9f, FontStyle.Bold);
|
||||||
textTipName.Width = panel2.Width / (240 / 5) * 3;
|
textTipName.Width = panel2.Width / (240 / 5) * 3 / 2;
|
||||||
textTipName.Dock = System.Windows.Forms.DockStyle.Left;
|
textTipName.Dock = System.Windows.Forms.DockStyle.Left;
|
||||||
textTipName.TextAlign = ContentAlignment.MiddleCenter;
|
textTipName.TextAlign = ContentAlignment.MiddleLeft;
|
||||||
paneltop.Controls.Add(textTipName);
|
paneltop.Controls.Add(textTipName);
|
||||||
panel2.Controls.Add(paneltop);
|
panel2.Controls.Add(paneltop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void LoadPhysioData(List<PhysioDataConfig> Lists)
|
||||||
|
{
|
||||||
|
System.Data.DataTable dtPhysioData = BOperationRecord.getByOpeIDIsPhysioData(_record.Id.Value);
|
||||||
|
|
||||||
|
int Width = panel2.Width - (panel2.Width / (240 / 5) * 3);
|
||||||
|
foreach (Control pan in panel2.Controls)
|
||||||
|
{
|
||||||
|
if (pan is Panel)
|
||||||
|
{
|
||||||
|
System.Windows.Forms.Panel panel = pan as Panel;
|
||||||
|
PhysioDataConfig ade = panel.Tag as PhysioDataConfig;
|
||||||
|
if (ade != null && IsInPhysioConfigList(ade, Lists))
|
||||||
|
{
|
||||||
|
if (ade.ConfigType == "麻醉体征")
|
||||||
|
{
|
||||||
|
List<PhysioData> list = new List<PhysioData>();
|
||||||
|
for (int i = 0; i < dtPhysioData.Rows.Count; i++)
|
||||||
|
{
|
||||||
|
if (dtPhysioData.Rows[i]["Name"].ToString().Equals(ade.Name.ToString()))
|
||||||
|
{
|
||||||
|
PhysioData pdTemp = PhysioDataConfig.newPhysioData(ade, _record.Id.Value, DateTime.Parse(dtPhysioData.Rows[i]["RecordTime"].ToString()), dtPhysioData.Rows[i]["Value"].ToString());
|
||||||
|
list.Add(pdTemp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
panel.Controls.Clear();
|
||||||
|
panel.Tag = ade;
|
||||||
|
for (int i = (240 / ade.YAisx) - 1; i >= 0; i--)
|
||||||
|
{
|
||||||
|
DateTime SpanTime = _record.InRoomTime.Value.AddMinutes(i * ade.YAisx);
|
||||||
|
PhysioData pdNew = null;
|
||||||
|
foreach (var item in list)
|
||||||
|
{
|
||||||
|
if (item.RecordTime == SpanTime)
|
||||||
|
{
|
||||||
|
pdNew = item;
|
||||||
|
pdNew.config = ade;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (pdNew == null)
|
||||||
|
{
|
||||||
|
pdNew = PhysioDataConfig.newPhysioData(ade, _record.Id.Value, SpanTime, -1);
|
||||||
|
}
|
||||||
|
if (ade.ImgPath != null && ade.ImgPath != "")
|
||||||
|
{
|
||||||
|
System.Windows.Forms.ComboBox textNum = new System.Windows.Forms.ComboBox();
|
||||||
|
textNum.Items.AddRange(ade.ImgPath.Split('|'));
|
||||||
|
textNum.Name = pdNew.config.Id + "" + SpanTime.ToString("HHmm");
|
||||||
|
textNum.Tag = pdNew;
|
||||||
|
if (pdNew.ValueString != "-1")
|
||||||
|
textNum.Text = pdNew.ValueString.ToString();
|
||||||
|
textNum.Width = Width / (240 / ade.YAisx);
|
||||||
|
textNum.Dock = System.Windows.Forms.DockStyle.Left;
|
||||||
|
textNum.DropDownStyle = ComboBoxStyle.DropDownList;
|
||||||
|
textNum.Font = new System.Drawing.Font("微软雅黑", 7f);
|
||||||
|
textNum.Click += TextNum_Click;
|
||||||
|
textNum.Leave += ComeBoxNum_Leave;
|
||||||
|
panel.Controls.Add(textNum);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
System.Windows.Forms.TextBox textNum = new System.Windows.Forms.TextBox();
|
||||||
|
textNum.Name = pdNew.config.Id + "" + SpanTime.ToString("HHmm");
|
||||||
|
textNum.Tag = pdNew;
|
||||||
|
if (pdNew.ValueString != "-1")
|
||||||
|
textNum.Text = pdNew.ValueString.ToString();
|
||||||
|
textNum.Width = Width / (240 / ade.YAisx);
|
||||||
|
textNum.Dock = System.Windows.Forms.DockStyle.Left;
|
||||||
|
textNum.Font = new System.Drawing.Font("微软雅黑", 7f);
|
||||||
|
textNum.Click += TextNum_Click;
|
||||||
|
textNum.Leave += TextNum_Leave;
|
||||||
|
textNum.DoubleClick += TextNum_DoubleClick;
|
||||||
|
panel.Controls.Add(textNum);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
System.Windows.Forms.Label textName = new System.Windows.Forms.Label();
|
||||||
|
textName.Name = "txt" + ade.Name;
|
||||||
|
textName.Text = ade.Name;
|
||||||
|
textName.Font = new System.Drawing.Font("微软雅黑", 8f);
|
||||||
|
textName.Width = panel2.Width / (240 / 5) * 3;
|
||||||
|
textName.Dock = System.Windows.Forms.DockStyle.Left;
|
||||||
|
panel.Controls.Add(textName);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
List<PhysioData> list = new List<PhysioData>();
|
||||||
|
for (int i = 0; i < dtPhysioData.Rows.Count; i++)
|
||||||
|
{
|
||||||
|
if (dtPhysioData.Rows[i]["Name"].ToString().Equals(ade.Name.ToString()))
|
||||||
|
{
|
||||||
|
PhysioData pdTemp = PhysioDataConfig.newPhysioData(ade, _record.Id.Value, DateTime.Parse(dtPhysioData.Rows[i]["RecordTime"].ToString()), dtPhysioData.Rows[i]["Value"].ToString());
|
||||||
|
list.Add(pdTemp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
panel.Controls.Clear();
|
||||||
|
panel.Tag = ade;
|
||||||
|
for (int i = (240 / 5) - 1; i >= 0; i--)
|
||||||
|
{
|
||||||
|
DateTime SpanTime = _record.InRoomTime.Value.AddMinutes(i * 5);
|
||||||
|
System.Windows.Forms.TextBox textNum = new System.Windows.Forms.TextBox();
|
||||||
|
PhysioData pdNew = null;
|
||||||
|
foreach (var item in list)
|
||||||
|
{
|
||||||
|
if (item.RecordTime == SpanTime)
|
||||||
|
{
|
||||||
|
pdNew = item;
|
||||||
|
pdNew.config = ade;
|
||||||
|
textNum.Text = pdNew.ValueString.ToString();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (pdNew == null)
|
||||||
|
{
|
||||||
|
pdNew = PhysioDataConfig.newPhysioData(ade, _record.Id.Value, SpanTime, -1);
|
||||||
|
}
|
||||||
|
|
||||||
|
textNum.Name = pdNew.config.Id + "" + SpanTime.ToString("HHmm");
|
||||||
|
textNum.Tag = pdNew;
|
||||||
|
textNum.Width = Width / (240 / 5);
|
||||||
|
textNum.Font = new System.Drawing.Font("微软雅黑", 7f);
|
||||||
|
textNum.Dock = System.Windows.Forms.DockStyle.Left;
|
||||||
|
textNum.Click += TextNum_Click;
|
||||||
|
textNum.Leave += TextNum_Leave;
|
||||||
|
textNum.DoubleClick += TextNum_DoubleClick;
|
||||||
|
panel.Controls.Add(textNum);
|
||||||
|
}
|
||||||
|
System.Windows.Forms.Label textName = new System.Windows.Forms.Label();
|
||||||
|
textName.Name = "txt" + ade.Name;
|
||||||
|
textName.Text = ade.Name;
|
||||||
|
textName.Font = new System.Drawing.Font("微软雅黑", 8f);
|
||||||
|
textName.Width = panel2.Width / (240 / 5) * 3;
|
||||||
|
textName.Dock = System.Windows.Forms.DockStyle.Left;
|
||||||
|
panel.Controls.Add(textName);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public bool IsInPhysioConfigList(PhysioDataConfig ade, List<PhysioDataConfig> Lists)
|
||||||
|
{
|
||||||
|
bool isInPhysioConfigList = false;
|
||||||
|
foreach (var item in Lists)
|
||||||
|
{
|
||||||
|
if (item.Id == ade.Id)
|
||||||
|
{
|
||||||
|
isInPhysioConfigList = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return isInPhysioConfigList;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
private void TextNum_Leave(object sender, EventArgs e)
|
private void TextNum_Leave(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
TextBox txtNum = sender as TextBox;
|
TextBox txtNum = sender as TextBox;
|
||||||
@ -476,6 +638,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (RESULT == false) return;
|
if (RESULT == false) return;
|
||||||
|
List<PhysioDataConfig> ades = new List<PhysioDataConfig>();
|
||||||
List<PhysioData> list = new List<PhysioData>();
|
List<PhysioData> list = new List<PhysioData>();
|
||||||
foreach (var item in groupBox3.Controls)
|
foreach (var item in groupBox3.Controls)
|
||||||
{
|
{
|
||||||
@ -500,13 +663,14 @@ namespace AIMS.OperationAanesthesia
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ades.Add(ade);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (list.Count > 0)
|
if (list.Count > 0)
|
||||||
{
|
{
|
||||||
PhysioDataService.AddPhysioDatas(list);
|
PhysioDataService.AddPhysioDatas(list);
|
||||||
LoadPhysioData();
|
LoadPhysioData(ades);
|
||||||
btnClear_Click(null, null);
|
btnClear_Click(null, null);
|
||||||
MessageBox.Show("添加成功!", "系统提示");
|
MessageBox.Show("添加成功!", "系统提示");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,6 +68,7 @@ namespace DrawGraph
|
|||||||
if (tablePackObj == null) return;
|
if (tablePackObj == null) return;
|
||||||
int Columns = int.Parse(tablePackObj1.Columns.ToString());
|
int Columns = int.Parse(tablePackObj1.Columns.ToString());
|
||||||
double span = tablePackObj.RealX - 0.005;
|
double span = tablePackObj.RealX - 0.005;
|
||||||
|
double span2 = tablePackObj.RealX * 0.3;
|
||||||
for (int i = 0; i < tablePackObj.Rows * 3 + 1; i++)
|
for (int i = 0; i < tablePackObj.Rows * 3 + 1; i++)
|
||||||
{
|
{
|
||||||
DelAddObj("ApplianceRecordList" + i);
|
DelAddObj("ApplianceRecordList" + i);
|
||||||
@ -89,24 +90,24 @@ namespace DrawGraph
|
|||||||
|
|
||||||
|
|
||||||
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].OpeFront != null && ApplianceRecordList[index].OpeFront != "" && ApplianceRecordList[index].OpeFront != @"/")
|
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].OpeFront != null && ApplianceRecordList[index].OpeFront != "" && ApplianceRecordList[index].OpeFront != @"/")
|
||||||
ZUtil.DrawText(ApplianceRecordList[index].OpeFront, tablePackObj1.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListOpeFront" + index, Color.Black, fontsize, false);
|
ZUtil.DrawText(ApplianceRecordList[index].OpeFront, tablePackObj1.X + tablePackObj.RealX + span2, y, ZedControl, "ApplianceRecordListOpeFront" + index, Color.Black, fontsize, false);
|
||||||
else
|
else
|
||||||
ZUtil.DrawLine(tablePackObj1.X + span, y + chaY, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 1 + tablePackObj1.X + span, y, ZedControl, "ApplianceRecordListOpeFront" + index, Color.Black);
|
ZUtil.DrawLine(tablePackObj1.X + span, y + chaY, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 1 + tablePackObj1.X + span, y, ZedControl, "ApplianceRecordListOpeFront" + index, Color.Black);
|
||||||
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].OpeDoing != null && ApplianceRecordList[index].OpeDoing != "" && ApplianceRecordList[index].OpeDoing != @"/")
|
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].OpeDoing != null && ApplianceRecordList[index].OpeDoing != "" && ApplianceRecordList[index].OpeDoing != @"/")
|
||||||
ZUtil.DrawText(ApplianceRecordList[index].OpeDoing, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 1 + tablePackObj1.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListOpeDoing" + index, Color.Black, fontsize, false);
|
ZUtil.DrawText(ApplianceRecordList[index].OpeDoing, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 1 + tablePackObj1.X + tablePackObj.RealX + span2, y, ZedControl, "ApplianceRecordListOpeDoing" + index, Color.Black, fontsize, false);
|
||||||
else
|
else
|
||||||
ZUtil.DrawLine((tablePackObj1.EndX - tablePackObj1.X) / Columns * 1 + tablePackObj1.X + span, y + chaY, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 2 + tablePackObj1.X + span, y, ZedControl, "ApplianceRecordListOpeDoing" + index, Color.Black);
|
ZUtil.DrawLine((tablePackObj1.EndX - tablePackObj1.X) / Columns * 1 + tablePackObj1.X + span, y + chaY, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 2 + tablePackObj1.X + span, y, ZedControl, "ApplianceRecordListOpeDoing" + index, Color.Black);
|
||||||
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].CloseFront != null && ApplianceRecordList[index].CloseFront != "" && ApplianceRecordList[index].CloseFront != @"/")
|
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].CloseFront != null && ApplianceRecordList[index].CloseFront != "" && ApplianceRecordList[index].CloseFront != @"/")
|
||||||
ZUtil.DrawText(ApplianceRecordList[index].CloseFront, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 2 + tablePackObj1.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListCloseFront" + index, Color.Black, fontsize, false);
|
ZUtil.DrawText(ApplianceRecordList[index].CloseFront, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 2 + tablePackObj1.X + tablePackObj.RealX + span2, y, ZedControl, "ApplianceRecordListCloseFront" + index, Color.Black, fontsize, false);
|
||||||
else
|
else
|
||||||
ZUtil.DrawLine((tablePackObj1.EndX - tablePackObj1.X) / Columns * 2 + tablePackObj1.X + span, y + chaY, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 3 + tablePackObj1.X + span, y, ZedControl, "ApplianceRecordListCloseFront" + index, Color.Black);
|
ZUtil.DrawLine((tablePackObj1.EndX - tablePackObj1.X) / Columns * 2 + tablePackObj1.X + span, y + chaY, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 3 + tablePackObj1.X + span, y, ZedControl, "ApplianceRecordListCloseFront" + index, Color.Black);
|
||||||
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].CloseLast != null && ApplianceRecordList[index].CloseLast != "" && ApplianceRecordList[index].CloseLast != @"/")
|
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].CloseLast != null && ApplianceRecordList[index].CloseLast != "" && ApplianceRecordList[index].CloseLast != @"/")
|
||||||
ZUtil.DrawText(ApplianceRecordList[index].CloseLast, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 3 + tablePackObj1.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListCloseLast" + index, Color.Black, fontsize, false);
|
ZUtil.DrawText(ApplianceRecordList[index].CloseLast, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 3 + tablePackObj1.X + tablePackObj.RealX + span2, y, ZedControl, "ApplianceRecordListCloseLast" + index, Color.Black, fontsize, false);
|
||||||
else
|
else
|
||||||
ZUtil.DrawLine((tablePackObj1.EndX - tablePackObj1.X) / Columns * 3 + tablePackObj1.X + span, y + chaY, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 4 + tablePackObj1.X + span, y, ZedControl, "ApplianceRecordListCloseLast" + index, Color.Black);
|
ZUtil.DrawLine((tablePackObj1.EndX - tablePackObj1.X) / Columns * 3 + tablePackObj1.X + span, y + chaY, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 4 + tablePackObj1.X + span, y, ZedControl, "ApplianceRecordListCloseLast" + index, Color.Black);
|
||||||
if (Columns == 5)
|
if (Columns == 5)
|
||||||
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].SkinCloseLast != null && ApplianceRecordList[index].SkinCloseLast != "" && ApplianceRecordList[index].SkinCloseLast != @"/")
|
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].SkinCloseLast != null && ApplianceRecordList[index].SkinCloseLast != "" && ApplianceRecordList[index].SkinCloseLast != @"/")
|
||||||
ZUtil.DrawText(ApplianceRecordList[index].SkinCloseLast, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 4 + tablePackObj1.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListSkinCloseLast" + index, Color.Black, fontsize, false);
|
ZUtil.DrawText(ApplianceRecordList[index].SkinCloseLast, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 4 + tablePackObj1.X + tablePackObj.RealX + span2, y, ZedControl, "ApplianceRecordListSkinCloseLast" + index, Color.Black, fontsize, false);
|
||||||
else
|
else
|
||||||
ZUtil.DrawLine((tablePackObj1.EndX - tablePackObj1.X) / Columns * 4 + tablePackObj1.X + span, y + chaY, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 5 + tablePackObj1.X + span, y, ZedControl, "ApplianceRecordListSkinCloseLast" + index, Color.Black);
|
ZUtil.DrawLine((tablePackObj1.EndX - tablePackObj1.X) / Columns * 4 + tablePackObj1.X + span, y + chaY, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 5 + tablePackObj1.X + span, y, ZedControl, "ApplianceRecordListSkinCloseLast" + index, Color.Black);
|
||||||
|
|
||||||
@ -125,24 +126,24 @@ namespace DrawGraph
|
|||||||
|
|
||||||
|
|
||||||
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].OpeFront != null && ApplianceRecordList[index].OpeFront != "" && ApplianceRecordList[index].OpeFront != @"/")
|
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].OpeFront != null && ApplianceRecordList[index].OpeFront != "" && ApplianceRecordList[index].OpeFront != @"/")
|
||||||
ZUtil.DrawText(ApplianceRecordList[index].OpeFront, tablePackObj2.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListOpeFront" + index, Color.Black, fontsize, false);
|
ZUtil.DrawText(ApplianceRecordList[index].OpeFront, tablePackObj2.X + tablePackObj.RealX + span2, y, ZedControl, "ApplianceRecordListOpeFront" + index, Color.Black, fontsize, false);
|
||||||
else
|
else
|
||||||
ZUtil.DrawLine(tablePackObj2.X + span, y + chaY, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 1 + tablePackObj2.X + span, y, ZedControl, "ApplianceRecordListOpeFront" + index, Color.Black);
|
ZUtil.DrawLine(tablePackObj2.X + span, y + chaY, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 1 + tablePackObj2.X + span, y, ZedControl, "ApplianceRecordListOpeFront" + index, Color.Black);
|
||||||
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].OpeDoing != null && ApplianceRecordList[index].OpeDoing != "" && ApplianceRecordList[index].OpeDoing != @"/")
|
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].OpeDoing != null && ApplianceRecordList[index].OpeDoing != "" && ApplianceRecordList[index].OpeDoing != @"/")
|
||||||
ZUtil.DrawText(ApplianceRecordList[index].OpeDoing, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 1 + tablePackObj2.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListOpeDoing" + index, Color.Black, fontsize, false);
|
ZUtil.DrawText(ApplianceRecordList[index].OpeDoing, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 1 + tablePackObj2.X + tablePackObj.RealX + span2, y, ZedControl, "ApplianceRecordListOpeDoing" + index, Color.Black, fontsize, false);
|
||||||
else
|
else
|
||||||
ZUtil.DrawLine((tablePackObj2.EndX - tablePackObj2.X) / Columns * 1 + tablePackObj2.X + span, y + chaY, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 2 + tablePackObj2.X + span, y, ZedControl, "ApplianceRecordListOpeDoing" + index, Color.Black);
|
ZUtil.DrawLine((tablePackObj2.EndX - tablePackObj2.X) / Columns * 1 + tablePackObj2.X + span, y + chaY, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 2 + tablePackObj2.X + span, y, ZedControl, "ApplianceRecordListOpeDoing" + index, Color.Black);
|
||||||
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].CloseFront != null && ApplianceRecordList[index].CloseFront != "" && ApplianceRecordList[index].CloseFront != @"/")
|
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].CloseFront != null && ApplianceRecordList[index].CloseFront != "" && ApplianceRecordList[index].CloseFront != @"/")
|
||||||
ZUtil.DrawText(ApplianceRecordList[index].CloseFront, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 2 + tablePackObj2.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListCloseFront" + index, Color.Black, fontsize, false);
|
ZUtil.DrawText(ApplianceRecordList[index].CloseFront, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 2 + tablePackObj2.X + tablePackObj.RealX + span2, y, ZedControl, "ApplianceRecordListCloseFront" + index, Color.Black, fontsize, false);
|
||||||
else
|
else
|
||||||
ZUtil.DrawLine((tablePackObj2.EndX - tablePackObj2.X) / Columns * 2 + tablePackObj2.X + span, y + chaY, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 3 + tablePackObj2.X + span, y, ZedControl, "ApplianceRecordListCloseFront" + index, Color.Black);
|
ZUtil.DrawLine((tablePackObj2.EndX - tablePackObj2.X) / Columns * 2 + tablePackObj2.X + span, y + chaY, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 3 + tablePackObj2.X + span, y, ZedControl, "ApplianceRecordListCloseFront" + index, Color.Black);
|
||||||
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].CloseLast != null && ApplianceRecordList[index].CloseLast != "" && ApplianceRecordList[index].CloseLast != @"/")
|
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].CloseLast != null && ApplianceRecordList[index].CloseLast != "" && ApplianceRecordList[index].CloseLast != @"/")
|
||||||
ZUtil.DrawText(ApplianceRecordList[index].CloseLast, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 3 + tablePackObj2.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListCloseLast" + index, Color.Black, fontsize, false);
|
ZUtil.DrawText(ApplianceRecordList[index].CloseLast, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 3 + tablePackObj2.X + tablePackObj.RealX + span2, y, ZedControl, "ApplianceRecordListCloseLast" + index, Color.Black, fontsize, false);
|
||||||
else
|
else
|
||||||
ZUtil.DrawLine((tablePackObj2.EndX - tablePackObj2.X) / Columns * 3 + tablePackObj2.X + span, y + chaY, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 4 + tablePackObj2.X + span, y, ZedControl, "ApplianceRecordListCloseLast" + index, Color.Black);
|
ZUtil.DrawLine((tablePackObj2.EndX - tablePackObj2.X) / Columns * 3 + tablePackObj2.X + span, y + chaY, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 4 + tablePackObj2.X + span, y, ZedControl, "ApplianceRecordListCloseLast" + index, Color.Black);
|
||||||
if (Columns == 5)
|
if (Columns == 5)
|
||||||
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].SkinCloseLast != null && ApplianceRecordList[index].SkinCloseLast != "" && ApplianceRecordList[index].SkinCloseLast != @"/")
|
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].SkinCloseLast != null && ApplianceRecordList[index].SkinCloseLast != "" && ApplianceRecordList[index].SkinCloseLast != @"/")
|
||||||
ZUtil.DrawText(ApplianceRecordList[index].SkinCloseLast, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 4 + tablePackObj2.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListSkinCloseLast" + index, Color.Black, fontsize, false);
|
ZUtil.DrawText(ApplianceRecordList[index].SkinCloseLast, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 4 + tablePackObj2.X + tablePackObj.RealX + span2, y, ZedControl, "ApplianceRecordListSkinCloseLast" + index, Color.Black, fontsize, false);
|
||||||
else
|
else
|
||||||
ZUtil.DrawLine((tablePackObj2.EndX - tablePackObj2.X) / Columns * 4 + tablePackObj2.X + span, y + chaY, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 5 + tablePackObj2.X + span, y, ZedControl, "ApplianceRecordListSkinCloseLast" + index, Color.Black);
|
ZUtil.DrawLine((tablePackObj2.EndX - tablePackObj2.X) / Columns * 4 + tablePackObj2.X + span, y + chaY, (tablePackObj2.EndX - tablePackObj2.X) / Columns * 5 + tablePackObj2.X + span, y, ZedControl, "ApplianceRecordListSkinCloseLast" + index, Color.Black);
|
||||||
|
|
||||||
@ -311,11 +312,11 @@ namespace DrawGraph
|
|||||||
if (myOpeRecord.InstrumentList.InstrumentNurse != null && myOpeRecord.InstrumentList.InstrumentNurse != "")
|
if (myOpeRecord.InstrumentList.InstrumentNurse != null && myOpeRecord.InstrumentList.InstrumentNurse != "")
|
||||||
{
|
{
|
||||||
template.SetObjValue(myOpeRecord, "OperationRecord.InstrumentList.InstrumentNurse", myOpeRecord.InstrumentList.InstrumentNurse, myOpeRecord.InstrumentList.InstrumentNurse);
|
template.SetObjValue(myOpeRecord, "OperationRecord.InstrumentList.InstrumentNurse", myOpeRecord.InstrumentList.InstrumentNurse, myOpeRecord.InstrumentList.InstrumentNurse);
|
||||||
}
|
}
|
||||||
if (myOpeRecord.InstrumentList.TourNurse != null && myOpeRecord.InstrumentList.TourNurse != "")
|
if (myOpeRecord.InstrumentList.TourNurse != null && myOpeRecord.InstrumentList.TourNurse != "")
|
||||||
{
|
{
|
||||||
template.SetObjValue(myOpeRecord, "OperationRecord.InstrumentList.TourNurse", myOpeRecord.InstrumentList.TourNurse, myOpeRecord.InstrumentList.TourNurse);
|
template.SetObjValue(myOpeRecord, "OperationRecord.InstrumentList.TourNurse", myOpeRecord.InstrumentList.TourNurse, myOpeRecord.InstrumentList.TourNurse);
|
||||||
}
|
}
|
||||||
if (myOpeRecord.InstrumentList.Remark != null)
|
if (myOpeRecord.InstrumentList.Remark != null)
|
||||||
{
|
{
|
||||||
template.SetObjValue(myOpeRecord, "OperationRecord.InstrumentList.Remark", myOpeRecord.InstrumentList.Remark, myOpeRecord.InstrumentList.Remark);
|
template.SetObjValue(myOpeRecord, "OperationRecord.InstrumentList.Remark", myOpeRecord.InstrumentList.Remark, myOpeRecord.InstrumentList.Remark);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user