药品拖拽

8间气道压没画
动态配置术前排程显示样式
用药界面增加持续时长
This commit is contained in:
leomon 2023-05-15 15:12:35 +08:00
parent 8a4c6dfa12
commit 8fa93ff14b
18 changed files with 2543 additions and 1516 deletions

View File

@ -465,6 +465,12 @@
<Compile Include="OperationAanesthesia\frmSelectPatientGoodsBill.Designer.cs"> <Compile Include="OperationAanesthesia\frmSelectPatientGoodsBill.Designer.cs">
<DependentUpon>frmSelectPatientGoodsBill.cs</DependentUpon> <DependentUpon>frmSelectPatientGoodsBill.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="OperationFront\frmExportConfig2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="OperationFront\frmExportConfig2.designer.cs">
<DependentUpon>frmExportConfig2.cs</DependentUpon>
</Compile>
<Compile Include="OperationFront\frmOperationSchedulePlan.cs"> <Compile Include="OperationFront\frmOperationSchedulePlan.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -1050,6 +1056,9 @@
<EmbeddedResource Include="OperationAanesthesia\frmSelectPatientGoodsBill.resx"> <EmbeddedResource Include="OperationAanesthesia\frmSelectPatientGoodsBill.resx">
<DependentUpon>frmSelectPatientGoodsBill.cs</DependentUpon> <DependentUpon>frmSelectPatientGoodsBill.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="OperationFront\frmExportConfig2.resx">
<DependentUpon>frmExportConfig2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OperationFront\frmOperationSchedulePlan.resx"> <EmbeddedResource Include="OperationFront\frmOperationSchedulePlan.resx">
<DependentUpon>frmOperationSchedulePlan.cs</DependentUpon> <DependentUpon>frmOperationSchedulePlan.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>

View File

@ -87,7 +87,7 @@ namespace AIMS.OperationAanesthesia
btnChage.Visible = true; btnChage.Visible = true;
} }
//this.MaximizeBox = false; //this.MaximizeBox = false;
this.MinimizeBox = false; //this.MinimizeBox = false;
LoadAnesRescue(); LoadAnesRescue();
} }
@ -235,22 +235,22 @@ namespace AIMS.OperationAanesthesia
{ {
ToolStrip toolbar = ctl as ToolStrip; ToolStrip toolbar = ctl as ToolStrip;
toolbar.Items.RemoveAt(0); toolbar.Items.RemoveAt(0);
ToolStrip tb = ctl as ToolStrip; ToolStrip tb = ctl as ToolStrip;
ToolStripButton settingBtn3 = new ToolStripButton(); ToolStripButton settingBtn3 = new ToolStripButton();
settingBtn3.ToolTipText = "打印反面"; settingBtn3.ToolTipText = "打印反面";
settingBtn3.Text = "打印反面"; settingBtn3.Text = "打印反面";
settingBtn3.Click += PageSetting_Click3; settingBtn3.Click += PageSetting_Click3;
tb.Items.Insert(0, settingBtn3); tb.Items.Insert(0, settingBtn3);
ToolStripButton settingBtn2 = new ToolStripButton(); ToolStripButton settingBtn2 = new ToolStripButton();
settingBtn2.ToolTipText = "打印正面"; settingBtn2.ToolTipText = "打印正面";
settingBtn2.Text = "打印正面"; settingBtn2.Text = "打印正面";
settingBtn2.Click += PageSetting_Click2; settingBtn2.Click += PageSetting_Click2;
tb.Items.Insert(0, settingBtn2); tb.Items.Insert(0, settingBtn2);
ToolStripButton settingBtn = new ToolStripButton(); ToolStripButton settingBtn = new ToolStripButton();
settingBtn.ToolTipText = "打印全部"; settingBtn.ToolTipText = "打印全部";
settingBtn.Text = "打印全部"; settingBtn.Text = "打印全部";
settingBtn.Click += PageSetting_Click; settingBtn.Click += PageSetting_Click;
tb.Items.Insert(0, settingBtn); tb.Items.Insert(0, settingBtn);
} }
} }
pdg.PrintPreviewControl.Columns = 2; pdg.PrintPreviewControl.Columns = 2;
@ -704,7 +704,7 @@ namespace AIMS.OperationAanesthesia
{ {
DrawGraph.FactEvents Inevent = null; DrawGraph.FactEvents Inevent = null;
DateTimeInput tb = obj as DateTimeInput; DateTimeInput tb = obj as DateTimeInput;
if (_record.StateName == "手术中" || tb.Name.Equals( "txtCG") || tb.Name.Equals( "txtBG")) if (_record.StateName == "手术中" || tb.Name.Equals("txtCG") || tb.Name.Equals("txtBG"))
{ {
DeleteEventTime("txtAnaesthesiaBegin", "麻醉开始", tb, ref Inevent); DeleteEventTime("txtAnaesthesiaBegin", "麻醉开始", tb, ref Inevent);
DeleteEventTime("txtOperationBegin", "手术开始", tb, ref Inevent); DeleteEventTime("txtOperationBegin", "手术开始", tb, ref Inevent);
@ -712,7 +712,7 @@ namespace AIMS.OperationAanesthesia
DeleteEventTime("txtAnaesthesiaEnd", "麻醉完成", tb, ref Inevent); DeleteEventTime("txtAnaesthesiaEnd", "麻醉完成", tb, ref Inevent);
DeleteEventTime("txtCG", cmbCGType.Text, tb, ref Inevent); DeleteEventTime("txtCG", cmbCGType.Text, tb, ref Inevent);
DeleteEventTime("txtBG", cmbBGType.Text, tb, ref Inevent); DeleteEventTime("txtBG", cmbBGType.Text, tb, ref Inevent);
} }
else else
{ {
MessageBox.Show("选择的事件不可删除 只可修改!"); MessageBox.Show("选择的事件不可删除 只可修改!");
@ -1525,25 +1525,27 @@ namespace AIMS.OperationAanesthesia
} }
} }
foreach (PhysioDataConfig addPP in _record.PhysioAnesConfigList) if (LastAnesMonitorDataTime == null || dtTime > LastAnesMonitorDataTime.Value.AddMinutes(9))
{ {
string key = addPP.Name; foreach (PhysioDataConfig addPP in _record.PhysioAnesConfigList)
string value = addPP.Enname;
if (addPP.IsValid == false) continue;
if (value == null || value == "") continue;
if (_record.AnesthesiaBeginTime != null && InsertTime < _record.AnesthesiaBeginTime) continue;
if (LastAnesMonitorDataTime != null && dtTime < LastAnesMonitorDataTime.Value.AddMinutes(9)) continue;
LastAnesMonitorDataTime = dtTime;
int minMinutes = -5;
DataTable dtPhysioData = BOperationRecord.getPhysioDataByTimeName(NowRoom.Ip, value, InsertTime.AddMinutes(minMinutes), InsertTime.AddSeconds(1));
if (dtPhysioData != null && dtPhysioData.Rows.Count > 0)
{ {
foreach (DataRow dr in dtPhysioData.Rows) string key = addPP.Name;
string value = addPP.Enname;
if (addPP.IsValid == false) continue;
if (value == null || value == "") continue;
if (_record.AnesthesiaBeginTime != null && InsertTime < _record.AnesthesiaBeginTime) continue;
LastAnesMonitorDataTime = dtTime;
int minMinutes = -5;
DataTable dtPhysioData = BOperationRecord.getPhysioDataByTimeName(NowRoom.Ip, value, InsertTime.AddMinutes(minMinutes), InsertTime.AddSeconds(1));
if (dtPhysioData != null && dtPhysioData.Rows.Count > 0)
{ {
PhysioData pdTemp = PhysioDataConfig.newPhysioData(addPP, _record.Id.Value, dtTime, dr["ParamValue"].ToString()); foreach (DataRow dr in dtPhysioData.Rows)
physioDatas.Add(pdTemp); {
continue; PhysioData pdTemp = PhysioDataConfig.newPhysioData(addPP, _record.Id.Value, dtTime, dr["ParamValue"].ToString());
physioDatas.Add(pdTemp);
continue;
}
} }
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -495,9 +495,10 @@ namespace AIMS.PublicUI.UI
} }
if (item.DrugEndTime.ToString("yyyy-MM-dd HH:mm") != item.DrugBeginTime.ToString("yyyy-MM-dd HH:mm")) if (item.DrugEndTime.ToString("yyyy-MM-dd HH:mm") != item.DrugBeginTime.ToString("yyyy-MM-dd HH:mm"))
{ {
_dataGridView.Rows[index].Cells[16].Value = Convert.ToDateTime(item.DrugEndTime);//结束时间 _dataGridView.Rows[index].Cells[16].Value = Convert.ToDateTime(item.DrugEndTime);//结束时间
_dataGridView.Rows[index].Cells[17].Value = Math.Round(item.DrugEndTime.Subtract(item.DrugBeginTime).TotalMinutes, 0) + "分";//结束时间
} }
_dataGridView.Rows[index].Cells[17].Value = item.Access; _dataGridView.Rows[index].Cells[18].Value = item.Access;
} }
private void dgvDrugs_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) private void dgvDrugs_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
@ -694,6 +695,7 @@ namespace AIMS.PublicUI.UI
{ {
_dataGridView.CurrentCell.Value = ""; _dataGridView.CurrentCell.Value = "";
_dataGridView.CurrentRow.Cells[16].Value = null;//结束时间 _dataGridView.CurrentRow.Cells[16].Value = null;//结束时间
_dataGridView.CurrentRow.Cells[17].Value = null;//结束时间
btnSave.Focus(); btnSave.Focus();
} }
} }
@ -712,64 +714,18 @@ namespace AIMS.PublicUI.UI
begindate = DateTime.Now; begindate = DateTime.Now;
} }
_dataGridView.CurrentCell.Value = begindate; _dataGridView.CurrentCell.Value = begindate;
}
double min = Math.Round(DateTime.Parse(_dataGridView.CurrentCell.Value.ToString()).Subtract(DateTime.Parse(_dataGridView.CurrentRow.Cells[14].EditedFormattedValue.ToString())).TotalMinutes, 0);
if (min > 0)
{
_dataGridView.CurrentRow.Cells[17].Value = min + "分";//结束时间
} }
btnSave.Focus(); btnSave.Focus();
} }
} }
} }
} }
private bool ValidTimeTxt(string dgvTimeTxt, ref string message)
{
bool k = true;
if (dgvTimeTxt == "")
{
return k;
}
if (!dgvTimeTxt.Contains("-") || !dgvTimeTxt.Contains(":") || !dgvTimeTxt.Contains(" "))
{
return false;
}
if (dgvTimeTxt.IndexOf("-") < 1 || dgvTimeTxt.IndexOf(":") < 1 || dgvTimeTxt.IndexOf(" ") < 1)
{
return false;
}
try
{
string[] ym = dgvTimeTxt.Split(' ');
string[] sym = ym[0].Split('-');
string[] hm = ym[1].Split(':');
int month = Convert.ToInt16(sym[0]);
int day = Convert.ToInt16(sym[1]);
int hh = Convert.ToInt16(hm[0]);
int mm = Convert.ToInt16(hm[1]);
if (month > 12 || month < 0)
{
k = false;
message = "请填写正确的月份1-12";
}
if (day > 31 || day < 0)
{
k = false;
message = "请填写正确的日期1-31";
}
if (hh > 23 || hh < 0)
{
k = false;
message = "请填写正确的小时0-23";
}
if (mm > 59 || hh < 0)
{
k = false;
message = "请填写正确的小时0-59";
}
}
catch
{
k = false;
}
return k;
}
private void dgvDrugs_CellValueChanged(object sender, DataGridViewCellEventArgs e) private void dgvDrugs_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{ {
if (_dataGridView == null) return; if (_dataGridView == null) return;
@ -785,6 +741,18 @@ namespace AIMS.PublicUI.UI
if (_dataGridView.CurrentCell == null || _dataGridView.CurrentRow.Cells[6].EditedFormattedValue.ToString() == "") return; if (_dataGridView.CurrentCell == null || _dataGridView.CurrentRow.Cells[6].EditedFormattedValue.ToString() == "") return;
if (_dataGridView.CurrentRow.Cells[7].EditedFormattedValue.ToString() == "") _dataGridView.CurrentRow.Cells[7].Value = "%"; if (_dataGridView.CurrentRow.Cells[7].EditedFormattedValue.ToString() == "") _dataGridView.CurrentRow.Cells[7].Value = "%";
} }
else if (e.ColumnIndex == 14 || e.ColumnIndex == 16)
{
if (_dataGridView.CurrentRow == null) return;
if (_dataGridView.CurrentRow.Cells[14].EditedFormattedValue.ToString() != "" && _dataGridView.CurrentRow.Cells[16].EditedFormattedValue.ToString() != "")//持续
{
double min = Math.Round(DateTime.Parse(_dataGridView.CurrentRow.Cells[16].EditedFormattedValue.ToString()).Subtract(DateTime.Parse(_dataGridView.CurrentRow.Cells[14].EditedFormattedValue.ToString())).TotalMinutes, 0);
if (min > 0)
{
_dataGridView.CurrentRow.Cells[17].Value = min + "分";//结束时间
}
}
}
} }
/// <summary> /// <summary>
/// 当前单元格内容发生改变时,将改变提交 /// 当前单元格内容发生改变时,将改变提交
@ -1033,8 +1001,8 @@ namespace AIMS.PublicUI.UI
drugsR.OperatorName = PublicMethod.OperatorName; drugsR.OperatorName = PublicMethod.OperatorName;
drugsR.OperateDate = DateTime.Now; drugsR.OperateDate = DateTime.Now;
drugsR.DrugTypeId = DrugTypeId; drugsR.DrugTypeId = DrugTypeId;
if (dr.Cells[17].Value != null) if (dr.Cells[18].Value != null)
drugsR.Access = dr.Cells[17].Value.ToString(); drugsR.Access = dr.Cells[18].Value.ToString();
else else
drugsR.Access = ""; drugsR.Access = "";

View File

@ -117,6 +117,18 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="drugtimespan3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="drugtimespan1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="drugtimespan4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="drugtimespan2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>132, 17</value> <value>132, 17</value>
</metadata> </metadata>
@ -137,7 +149,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAa ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAa
CAAAAk1TRnQBSQFMAgEBAgEAAagBBgGoAQYBFAEAARQBAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFQ CAAAAk1TRnQBSQFMAgEBAgEAAcABBgHAAQYBFAEAARQBAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFQ
AwABFAMAAQEBAAEgBgABGS4AA1UBrwOAAf4DKwH8AysB/AGZAYsBQAH9AaEBkgEAAf8BkwGCAQAB/wGW AwABFAMAAQEBAAEgBgABGS4AA1UBrwOAAf4DKwH8AysB/AGZAYsBQAH9AaEBkgEAAf8BkwGCAQAB/wGW
AYcBQAH9AaMBlAEAAf8BowGUAQAB/wGjAZQBAAH/AysB/ANgAej/AA0AAZMBggEAAf8DYgH2A20B9wNt AYcBQAH9AaMBlAEAAf8BowGUAQAB/wGjAZQBAAH/AysB/ANgAej/AA0AAZMBggEAAf8DYgH2A20B9wNt
AfcDXAH4A4AB/gGXAYYBAAH/A20B9wHsAecB5AH/AewB5wHkAf8B7AHnAeQB/wNtAfcBkwGCAQAB//8A AfcDXAH4A4AB/gGXAYYBAAH/A20B9wHsAecB5AH/AewB5wHkAf8B7AHnAeQB/wNtAfcBkwGCAQAB//8A

View File

@ -0,0 +1,149 @@
using AIMSBLL;
using AIMSExtension;
using AIMSModel;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace AIMS.OperationAfter.UI
{
public partial class frmExportConfig2 : Form
{
public SysConfig exportConfig;
public DataGridView _dgv;
public string DataGridViewPath;
public string SysName;
private frmExportConfig2()
{
InitializeComponent();
this.FormBorderStyle = FormBorderStyle.FixedSingle;
}
public frmExportConfig2(DataGridView dgv, SysConfig _exportConfig, string dataGridViewPath, string name)
{
InitializeComponent();
this._dgv = dgv;
this.exportConfig = _exportConfig;
DataGridViewPath = dataGridViewPath;
SysName = name;
}
private void frmSelGridColusView_Load(object sender, EventArgs e)
{
if (_dgv == null) return;
LoadSettingSource(_dgv);
if (exportConfig != null)
{
if (exportConfig.Value != null)
{
ExportConfig dataGridViewSetting = JsonConvert.DeserializeObject<ExportConfig>(exportConfig.Value);
txtName.Text = dataGridViewSetting.Title;
txtFontSize.Value = dataGridViewSetting.FontSize;
foreach (DataGridViewRow column in dataGridView2.Rows)
{
foreach (var item in dataGridViewSetting.Exports)
{
if (column.Cells[0].Value.ToString() == item.Name)
{
column.Cells["widthDataGridViewTextBoxColumn"].Value = item.Width;
column.Cells["visibleDataGridViewCheckBoxColumn"].Value = item.IsVisible;
column.Cells["columnorder"].Value = item.ColumnOrder;
}
}
}
}
}
else
{
exportConfig = new SysConfig();
txtName.Text = Name;
txtFontSize.Value = 6;
}
}
private void LoadSettingSource(DataGridView dgv)
{
int _lineNumber = 0;
foreach (DataGridViewColumn dataGridViewColumn in dgv.Columns)
{
DataGridViewRow drc = new DataGridViewRow();
drc.CreateCells(dataGridView2);
drc.Cells[0].Value = dataGridViewColumn.Name;
drc.Cells[1].Value = dataGridViewColumn.HeaderText;
drc.Cells[2].Value = dataGridViewColumn.MinimumWidth;
drc.Cells[3].Value = dataGridViewColumn.ReadOnly;
drc.Cells[4].Value = dataGridViewColumn.Visible;
drc.Cells[5].Value = dataGridViewColumn.Width;
drc.Cells[6].Value = dataGridViewColumn.Index;
dataGridView2.Rows.Insert(_lineNumber, drc);
_lineNumber++;
}
}
private void tsbCancel_Click(object sender, EventArgs e)
{
this.Close();
}
private void tsbSave_Click(object sender, EventArgs e)
{
EndEdit();
exportConfig.Name = txtName.Text;
exportConfig.Note = DataGridViewPath;
ExportConfig dgvSetting = CreateDataGridViewSetting(dataGridView2);
dgvSetting.FontSize =int.Parse( txtFontSize.Value.ToString());
string ss = JsonConvert.SerializeObject(dgvSetting);
exportConfig.Value = ss;
exportConfig.IsValid = 1;
exportConfig.OperatorNo = PublicMethod.OperatorNo;
exportConfig.OperatorName = PublicMethod.OperatorName;
exportConfig.OperateDate = DateTime.Now;
exportConfig.Extend1 = PublicMethod.RoleId.ToString();
if (exportConfig.Id != null && exportConfig.Id.Value > 0)
{
BSysConfig.Update(exportConfig);
}
else
{
exportConfig.Id = BSysConfig.Insert(exportConfig);
}
DialogResult = DialogResult.OK;
Close();
}
private ExportConfig CreateDataGridViewSetting(DataGridView dataGridView)
{
ExportConfig dataGridViewSetting = new ExportConfig();
dataGridViewSetting.Title = txtName.Text;
dataGridViewSetting.Path = DataGridViewPath;
dataGridViewSetting.FontSize = int.Parse(txtFontSize.Value.ToString());
dataGridViewSetting.Landscape = false;
dataGridViewSetting.Exports = new List<ExportItem>();
foreach (DataGridViewRow column in dataGridView.Rows)
{
ExportItem export = new ExportItem();
export.Name = column.Cells["dataPropertyNameDataGridViewTextBoxColumn"].Value.ToString();
export.Text = column.Cells["headerTextDataGridViewTextBoxColumn"].Value.ToString();
export.PrintName = column.Cells["headerTextDataGridViewTextBoxColumn"].Value.ToString();
export.Width = int.Parse(column.Cells["widthDataGridViewTextBoxColumn"].Value.ToString());
export.IsVisible = bool.Parse(column.Cells["visibleDataGridViewCheckBoxColumn"].Value.ToString());
export.IsPrint = true;
export.PrintWidth = 8;
export.PrintSize = 8;
export.ColumnOrder = int.Parse(column.Cells["columnorder"].Value.ToString());
dataGridViewSetting.Exports.Add(export);
}
return dataGridViewSetting;
}
private void EndEdit()
{
this.Validate();
}
}
}

View File

@ -0,0 +1,298 @@
namespace AIMS.OperationAfter.UI
{
partial class frmExportConfig2
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.tsbCancel = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
this.tsbSave = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.gbDataGridViewSetting = new System.Windows.Forms.GroupBox();
this.labelX1 = new DevComponents.DotNetBar.LabelX();
this.txtName = new System.Windows.Forms.NumericUpDown();
this.txtFontSize = new System.Windows.Forms.NumericUpDown();
this.labelX2 = new DevComponents.DotNetBar.LabelX();
this.dataGridView2 = new System.Windows.Forms.DataGridView();
this.dataPropertyNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.headerTextDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.minimumWidthDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.readOnlyDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.visibleDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.widthDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.columnorder = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.toolStrip1.SuspendLayout();
this.gbDataGridViewSetting.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtName)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtFontSize)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
this.SuspendLayout();
//
// toolStrip1
//
this.toolStrip1.BackColor = System.Drawing.Color.AliceBlue;
this.toolStrip1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30);
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.tsbCancel,
this.toolStripSeparator3,
this.tsbSave,
this.toolStripSeparator1});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(913, 27);
this.toolStrip1.TabIndex = 438;
this.toolStrip1.Text = "toolStrip1";
//
// tsbCancel
//
this.tsbCancel.ImageTransparentColor = System.Drawing.Color.Transparent;
this.tsbCancel.Name = "tsbCancel";
this.tsbCancel.Size = new System.Drawing.Size(60, 24);
this.tsbCancel.Text = "取消(&C)";
this.tsbCancel.Click += new System.EventHandler(this.tsbCancel_Click);
//
// toolStripSeparator3
//
this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(6, 27);
//
// tsbSave
//
this.tsbSave.ImageTransparentColor = System.Drawing.Color.Transparent;
this.tsbSave.Name = "tsbSave";
this.tsbSave.Size = new System.Drawing.Size(59, 24);
this.tsbSave.Text = "保存(&S)";
this.tsbSave.ToolTipText = "保存";
this.tsbSave.Click += new System.EventHandler(this.tsbSave_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 27);
//
// gbDataGridViewSetting
//
this.gbDataGridViewSetting.BackColor = System.Drawing.Color.AliceBlue;
this.gbDataGridViewSetting.Controls.Add(this.labelX1);
this.gbDataGridViewSetting.Controls.Add(this.txtName);
this.gbDataGridViewSetting.Controls.Add(this.txtFontSize);
this.gbDataGridViewSetting.Controls.Add(this.labelX2);
this.gbDataGridViewSetting.Dock = System.Windows.Forms.DockStyle.Top;
this.gbDataGridViewSetting.Location = new System.Drawing.Point(0, 27);
this.gbDataGridViewSetting.Name = "gbDataGridViewSetting";
this.gbDataGridViewSetting.Size = new System.Drawing.Size(913, 74);
this.gbDataGridViewSetting.TabIndex = 445;
this.gbDataGridViewSetting.TabStop = false;
this.gbDataGridViewSetting.Text = "设置";
//
// labelX1
//
//
//
//
this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.labelX1.Location = new System.Drawing.Point(21, 28);
this.labelX1.Name = "labelX1";
this.labelX1.Size = new System.Drawing.Size(75, 23);
this.labelX1.TabIndex = 3;
this.labelX1.Text = "左侧宽度";
//
// txtName
//
this.txtName.Location = new System.Drawing.Point(102, 25);
this.txtName.Maximum = new decimal(new int[] {
600,
0,
0,
0});
this.txtName.Minimum = new decimal(new int[] {
200,
0,
0,
0});
this.txtName.Name = "txtName";
this.txtName.Size = new System.Drawing.Size(69, 26);
this.txtName.TabIndex = 2;
this.txtName.Value = new decimal(new int[] {
320,
0,
0,
0});
//
// txtFontSize
//
this.txtFontSize.Location = new System.Drawing.Point(341, 25);
this.txtFontSize.Maximum = new decimal(new int[] {
7,
0,
0,
0});
this.txtFontSize.Minimum = new decimal(new int[] {
1,
0,
0,
0});
this.txtFontSize.Name = "txtFontSize";
this.txtFontSize.Size = new System.Drawing.Size(69, 26);
this.txtFontSize.TabIndex = 2;
this.txtFontSize.Value = new decimal(new int[] {
6,
0,
0,
0});
//
// labelX2
//
//
//
//
this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.labelX2.Location = new System.Drawing.Point(221, 28);
this.labelX2.Name = "labelX2";
this.labelX2.Size = new System.Drawing.Size(126, 23);
this.labelX2.TabIndex = 0;
this.labelX2.Text = "手术间一行数量";
//
// dataGridView2
//
this.dataGridView2.AllowUserToAddRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(247)))), ((int)(((byte)(255)))));
this.dataGridView2.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView2.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dataGridView2.BackgroundColor = System.Drawing.Color.White;
this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataPropertyNameDataGridViewTextBoxColumn,
this.headerTextDataGridViewTextBoxColumn,
this.minimumWidthDataGridViewTextBoxColumn,
this.readOnlyDataGridViewCheckBoxColumn,
this.visibleDataGridViewCheckBoxColumn,
this.widthDataGridViewTextBoxColumn,
this.columnorder});
this.dataGridView2.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView2.Location = new System.Drawing.Point(0, 101);
this.dataGridView2.Name = "dataGridView2";
this.dataGridView2.RowHeadersVisible = false;
this.dataGridView2.RowTemplate.Height = 23;
this.dataGridView2.Size = new System.Drawing.Size(913, 343);
this.dataGridView2.TabIndex = 440;
//
// dataPropertyNameDataGridViewTextBoxColumn
//
this.dataPropertyNameDataGridViewTextBoxColumn.DataPropertyName = "Name";
this.dataPropertyNameDataGridViewTextBoxColumn.HeaderText = "数据源名称";
this.dataPropertyNameDataGridViewTextBoxColumn.Name = "dataPropertyNameDataGridViewTextBoxColumn";
this.dataPropertyNameDataGridViewTextBoxColumn.Visible = false;
//
// headerTextDataGridViewTextBoxColumn
//
this.headerTextDataGridViewTextBoxColumn.DataPropertyName = "HeaderText";
this.headerTextDataGridViewTextBoxColumn.HeaderText = "标题";
this.headerTextDataGridViewTextBoxColumn.Name = "headerTextDataGridViewTextBoxColumn";
//
// minimumWidthDataGridViewTextBoxColumn
//
this.minimumWidthDataGridViewTextBoxColumn.DataPropertyName = "MinimumWidth";
this.minimumWidthDataGridViewTextBoxColumn.HeaderText = "最小宽度";
this.minimumWidthDataGridViewTextBoxColumn.Name = "minimumWidthDataGridViewTextBoxColumn";
this.minimumWidthDataGridViewTextBoxColumn.Visible = false;
//
// readOnlyDataGridViewCheckBoxColumn
//
this.readOnlyDataGridViewCheckBoxColumn.DataPropertyName = "ReadOnly";
this.readOnlyDataGridViewCheckBoxColumn.HeaderText = "只读";
this.readOnlyDataGridViewCheckBoxColumn.Name = "readOnlyDataGridViewCheckBoxColumn";
this.readOnlyDataGridViewCheckBoxColumn.Visible = false;
//
// visibleDataGridViewCheckBoxColumn
//
this.visibleDataGridViewCheckBoxColumn.DataPropertyName = "Visible";
this.visibleDataGridViewCheckBoxColumn.HeaderText = "是否可见";
this.visibleDataGridViewCheckBoxColumn.Name = "visibleDataGridViewCheckBoxColumn";
//
// widthDataGridViewTextBoxColumn
//
this.widthDataGridViewTextBoxColumn.DataPropertyName = "Width";
this.widthDataGridViewTextBoxColumn.HeaderText = "宽度";
this.widthDataGridViewTextBoxColumn.Name = "widthDataGridViewTextBoxColumn";
//
// columnorder
//
this.columnorder.HeaderText = "排列顺序";
this.columnorder.Name = "columnorder";
//
// frmExportConfig2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(913, 444);
this.Controls.Add(this.dataGridView2);
this.Controls.Add(this.gbDataGridViewSetting);
this.Controls.Add(this.toolStrip1);
this.Font = new System.Drawing.Font("微软雅黑", 10.5F);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmExportConfig2";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "导出设置";
this.Load += new System.EventHandler(this.frmSelGridColusView_Load);
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.gbDataGridViewSetting.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.txtName)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtFontSize)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.GroupBox gbDataGridViewSetting;
public System.Windows.Forms.ToolStripButton tsbSave;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
public System.Windows.Forms.DataGridView dataGridView2;
private System.Windows.Forms.ToolStripButton tsbCancel;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
public System.Windows.Forms.NumericUpDown txtFontSize;
private DevComponents.DotNetBar.LabelX labelX2;
private DevComponents.DotNetBar.LabelX labelX1;
public System.Windows.Forms.NumericUpDown txtName;
private System.Windows.Forms.DataGridViewTextBoxColumn dataPropertyNameDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn headerTextDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn minimumWidthDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewCheckBoxColumn readOnlyDataGridViewCheckBoxColumn;
private System.Windows.Forms.DataGridViewCheckBoxColumn visibleDataGridViewCheckBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn widthDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn columnorder;
}
}

View File

@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>15, 7</value>
</metadata>
<metadata name="columnorder.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>32</value>
</metadata>
</root>

View File

@ -1,3 +1,4 @@
using AIMS.OperationAfter.UI;
using AIMS.OremrUserControl; using AIMS.OremrUserControl;
using AIMSBLL; using AIMSBLL;
using AIMSExtension; using AIMSExtension;
@ -6,6 +7,7 @@ using DevComponents.DotNetBar;
using DevComponents.DotNetBar.Controls; using DevComponents.DotNetBar.Controls;
using DevComponents.DotNetBar.SuperGrid; using DevComponents.DotNetBar.SuperGrid;
using HelperDB; using HelperDB;
using Newtonsoft.Json;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
@ -13,6 +15,7 @@ using System.Data;
using System.Diagnostics; using System.Diagnostics;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
namespace AIMS.OperationFront.UI namespace AIMS.OperationFront.UI
@ -210,6 +213,21 @@ namespace AIMS.OperationFront.UI
private ToolStripMenuItem ToolStripMenuItem; private ToolStripMenuItem ToolStripMenuItem;
private Label label3; private Label label3;
private GridColumn gridColumn2; private GridColumn gridColumn2;
private ToolStrip toolStrip1;
private ToolStripButton tsbNewOperationApply;
private ToolStripButton tsbModifyOperationApply;
private ToolStripButton tsbCancelOperationApply;
private ToolStripSeparator toolStripSeparator4;
private ToolStripButton btnpass;
private ToolStripSeparator toolStripSeparator3;
private ToolStripButton btnPlan;
private ToolStripSeparator toolStripSeparator2;
private ToolStripButton btnDataCente;
private ToolStripButton button3;
private ComboBoxEx CboOperationSite;
private Label labelSite;
private ToolStripSeparator toolStripSeparator1;
private ToolStripButton tspSetting;
private DataGridViewCheckBoxColumn Column1; private DataGridViewCheckBoxColumn Column1;
private DataGridViewTextBoxColumn Id; private DataGridViewTextBoxColumn Id;
private DataGridViewTextBoxColumn Index; private DataGridViewTextBoxColumn Index;
@ -225,19 +243,6 @@ namespace AIMS.OperationFront.UI
private DataGridViewTextBoxColumn Diagnose; private DataGridViewTextBoxColumn Diagnose;
private DataGridViewTextBoxColumn OperationType; private DataGridViewTextBoxColumn OperationType;
private DataGridViewTextBoxColumn Contagion; private DataGridViewTextBoxColumn Contagion;
private ToolStrip toolStrip1;
private ToolStripButton tsbNewOperationApply;
private ToolStripButton tsbModifyOperationApply;
private ToolStripButton tsbCancelOperationApply;
private ToolStripSeparator toolStripSeparator4;
private ToolStripButton btnpass;
private ToolStripSeparator toolStripSeparator3;
private ToolStripButton btnPlan;
private ToolStripSeparator toolStripSeparator2;
private ToolStripButton btnDataCente;
private ToolStripButton button3;
private ComboBoxEx CboOperationSite;
private Label labelSite;
private DevComponents.Editors.DateTimeAdv.DateTimeInput dtpSearchTime; private DevComponents.Editors.DateTimeAdv.DateTimeInput dtpSearchTime;
/// <summary> /// <summary>
@ -499,6 +504,8 @@ namespace AIMS.OperationFront.UI
this.button3 = new System.Windows.Forms.ToolStripButton(); this.button3 = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.btnDataCente = new System.Windows.Forms.ToolStripButton(); this.btnDataCente = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.tspSetting = new System.Windows.Forms.ToolStripButton();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.tcOperationRoomsPage = new System.Windows.Forms.Panel(); this.tcOperationRoomsPage = new System.Windows.Forms.Panel();
@ -656,7 +663,7 @@ namespace AIMS.OperationFront.UI
this.navigationPane1.Name = "navigationPane1"; this.navigationPane1.Name = "navigationPane1";
this.navigationPane1.NavigationBarHeight = 190; this.navigationPane1.NavigationBarHeight = 190;
this.navigationPane1.Padding = new System.Windows.Forms.Padding(1); this.navigationPane1.Padding = new System.Windows.Forms.Padding(1);
this.navigationPane1.Size = new System.Drawing.Size(297, 737); this.navigationPane1.Size = new System.Drawing.Size(320, 737);
this.navigationPane1.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2013; this.navigationPane1.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2013;
this.navigationPane1.TabIndex = 0; this.navigationPane1.TabIndex = 0;
// //
@ -694,7 +701,7 @@ namespace AIMS.OperationFront.UI
this.navigationPanePanel1.Margin = new System.Windows.Forms.Padding(0); this.navigationPanePanel1.Margin = new System.Windows.Forms.Padding(0);
this.navigationPanePanel1.Name = "navigationPanePanel1"; this.navigationPanePanel1.Name = "navigationPanePanel1";
this.navigationPanePanel1.ParentItem = this.buttonItem1; this.navigationPanePanel1.ParentItem = this.buttonItem1;
this.navigationPanePanel1.Size = new System.Drawing.Size(295, 545); this.navigationPanePanel1.Size = new System.Drawing.Size(318, 545);
this.navigationPanePanel1.Style.Alignment = System.Drawing.StringAlignment.Center; this.navigationPanePanel1.Style.Alignment = System.Drawing.StringAlignment.Center;
this.navigationPanePanel1.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; this.navigationPanePanel1.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground;
this.navigationPanePanel1.Style.BackColor2.Color = System.Drawing.Color.DodgerBlue; this.navigationPanePanel1.Style.BackColor2.Color = System.Drawing.Color.DodgerBlue;
@ -720,7 +727,7 @@ namespace AIMS.OperationFront.UI
this.groupBoxsel.Margin = new System.Windows.Forms.Padding(0); this.groupBoxsel.Margin = new System.Windows.Forms.Padding(0);
this.groupBoxsel.Name = "groupBoxsel"; this.groupBoxsel.Name = "groupBoxsel";
this.groupBoxsel.Padding = new System.Windows.Forms.Padding(0); this.groupBoxsel.Padding = new System.Windows.Forms.Padding(0);
this.groupBoxsel.Size = new System.Drawing.Size(295, 545); this.groupBoxsel.Size = new System.Drawing.Size(318, 545);
this.groupBoxsel.TabIndex = 459; this.groupBoxsel.TabIndex = 459;
this.groupBoxsel.TabStop = false; this.groupBoxsel.TabStop = false;
this.groupBoxsel.Text = "当前申请"; this.groupBoxsel.Text = "当前申请";
@ -782,7 +789,7 @@ namespace AIMS.OperationFront.UI
this.dgvApplyOrDoctor.RowHeadersVisible = false; this.dgvApplyOrDoctor.RowHeadersVisible = false;
this.dgvApplyOrDoctor.RowTemplate.Height = 23; this.dgvApplyOrDoctor.RowTemplate.Height = 23;
this.dgvApplyOrDoctor.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvApplyOrDoctor.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvApplyOrDoctor.Size = new System.Drawing.Size(295, 456); this.dgvApplyOrDoctor.Size = new System.Drawing.Size(318, 456);
this.dgvApplyOrDoctor.TabIndex = 74; this.dgvApplyOrDoctor.TabIndex = 74;
this.dgvApplyOrDoctor.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvApplyOrDoctor_CellClick); this.dgvApplyOrDoctor.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvApplyOrDoctor_CellClick);
this.dgvApplyOrDoctor.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvApplyOrDoctor_CellDoubleClick); this.dgvApplyOrDoctor.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvApplyOrDoctor_CellDoubleClick);
@ -790,7 +797,7 @@ namespace AIMS.OperationFront.UI
// //
// Column1 // Column1
// //
this.Column1.HeaderText = ""; this.Column1.HeaderText = " ";
this.Column1.Name = "Column1"; this.Column1.Name = "Column1";
this.Column1.ReadOnly = true; this.Column1.ReadOnly = true;
this.Column1.TrueValue = "1"; this.Column1.TrueValue = "1";
@ -945,7 +952,7 @@ namespace AIMS.OperationFront.UI
this.panel3.Dock = System.Windows.Forms.DockStyle.Top; this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.panel3.Location = new System.Drawing.Point(0, 18); this.panel3.Location = new System.Drawing.Point(0, 18);
this.panel3.Name = "panel3"; this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(295, 71); this.panel3.Size = new System.Drawing.Size(318, 71);
this.panel3.TabIndex = 2; this.panel3.TabIndex = 2;
// //
// labelWeek // labelWeek
@ -1070,7 +1077,7 @@ namespace AIMS.OperationFront.UI
this.navigationPanePanel4.Margin = new System.Windows.Forms.Padding(0); this.navigationPanePanel4.Margin = new System.Windows.Forms.Padding(0);
this.navigationPanePanel4.Name = "navigationPanePanel4"; this.navigationPanePanel4.Name = "navigationPanePanel4";
this.navigationPanePanel4.ParentItem = this.buttonInstrumentNurse; this.navigationPanePanel4.ParentItem = this.buttonInstrumentNurse;
this.navigationPanePanel4.Size = new System.Drawing.Size(295, 545); this.navigationPanePanel4.Size = new System.Drawing.Size(318, 545);
this.navigationPanePanel4.Style.Alignment = System.Drawing.StringAlignment.Center; this.navigationPanePanel4.Style.Alignment = System.Drawing.StringAlignment.Center;
this.navigationPanePanel4.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; this.navigationPanePanel4.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground;
this.navigationPanePanel4.Style.BackgroundImagePosition = DevComponents.DotNetBar.eBackgroundImagePosition.Tile; this.navigationPanePanel4.Style.BackgroundImagePosition = DevComponents.DotNetBar.eBackgroundImagePosition.Tile;
@ -1098,7 +1105,7 @@ namespace AIMS.OperationFront.UI
this.groupBox2.Margin = new System.Windows.Forms.Padding(0); this.groupBox2.Margin = new System.Windows.Forms.Padding(0);
this.groupBox2.Name = "groupBox2"; this.groupBox2.Name = "groupBox2";
this.groupBox2.Padding = new System.Windows.Forms.Padding(0); this.groupBox2.Padding = new System.Windows.Forms.Padding(0);
this.groupBox2.Size = new System.Drawing.Size(295, 545); this.groupBox2.Size = new System.Drawing.Size(318, 545);
this.groupBox2.TabIndex = 461; this.groupBox2.TabIndex = 461;
this.groupBox2.TabStop = false; this.groupBox2.TabStop = false;
this.groupBox2.Text = "洗手护士"; this.groupBox2.Text = "洗手护士";
@ -1158,7 +1165,7 @@ namespace AIMS.OperationFront.UI
this.dgvInstrumentNurse.RowHeadersVisible = false; this.dgvInstrumentNurse.RowHeadersVisible = false;
this.dgvInstrumentNurse.RowTemplate.Height = 23; this.dgvInstrumentNurse.RowTemplate.Height = 23;
this.dgvInstrumentNurse.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvInstrumentNurse.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvInstrumentNurse.Size = new System.Drawing.Size(295, 450); this.dgvInstrumentNurse.Size = new System.Drawing.Size(318, 450);
this.dgvInstrumentNurse.TabIndex = 4; this.dgvInstrumentNurse.TabIndex = 4;
this.dgvInstrumentNurse.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvWorkers_CellDoubleClick); this.dgvInstrumentNurse.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvWorkers_CellDoubleClick);
// //
@ -1286,7 +1293,7 @@ namespace AIMS.OperationFront.UI
this.panel4.Dock = System.Windows.Forms.DockStyle.Top; this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
this.panel4.Location = new System.Drawing.Point(0, 18); this.panel4.Location = new System.Drawing.Point(0, 18);
this.panel4.Name = "panel4"; this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(295, 77); this.panel4.Size = new System.Drawing.Size(318, 77);
this.panel4.TabIndex = 2; this.panel4.TabIndex = 2;
// //
// buttonX4 // buttonX4
@ -1411,7 +1418,7 @@ namespace AIMS.OperationFront.UI
this.navigationPanePanel5.Margin = new System.Windows.Forms.Padding(0); this.navigationPanePanel5.Margin = new System.Windows.Forms.Padding(0);
this.navigationPanePanel5.Name = "navigationPanePanel5"; this.navigationPanePanel5.Name = "navigationPanePanel5";
this.navigationPanePanel5.ParentItem = this.buttonItemTourNurse; this.navigationPanePanel5.ParentItem = this.buttonItemTourNurse;
this.navigationPanePanel5.Size = new System.Drawing.Size(295, 545); this.navigationPanePanel5.Size = new System.Drawing.Size(318, 545);
this.navigationPanePanel5.Style.Alignment = System.Drawing.StringAlignment.Center; this.navigationPanePanel5.Style.Alignment = System.Drawing.StringAlignment.Center;
this.navigationPanePanel5.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; this.navigationPanePanel5.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground;
this.navigationPanePanel5.Style.BackgroundImagePosition = DevComponents.DotNetBar.eBackgroundImagePosition.Tile; this.navigationPanePanel5.Style.BackgroundImagePosition = DevComponents.DotNetBar.eBackgroundImagePosition.Tile;
@ -1439,7 +1446,7 @@ namespace AIMS.OperationFront.UI
this.v.Margin = new System.Windows.Forms.Padding(0); this.v.Margin = new System.Windows.Forms.Padding(0);
this.v.Name = "v"; this.v.Name = "v";
this.v.Padding = new System.Windows.Forms.Padding(0); this.v.Padding = new System.Windows.Forms.Padding(0);
this.v.Size = new System.Drawing.Size(295, 545); this.v.Size = new System.Drawing.Size(318, 545);
this.v.TabIndex = 461; this.v.TabIndex = 461;
this.v.TabStop = false; this.v.TabStop = false;
this.v.Text = "巡回护士"; this.v.Text = "巡回护士";
@ -1499,7 +1506,7 @@ namespace AIMS.OperationFront.UI
this.dgvTourNurse.RowHeadersVisible = false; this.dgvTourNurse.RowHeadersVisible = false;
this.dgvTourNurse.RowTemplate.Height = 23; this.dgvTourNurse.RowTemplate.Height = 23;
this.dgvTourNurse.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvTourNurse.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvTourNurse.Size = new System.Drawing.Size(295, 450); this.dgvTourNurse.Size = new System.Drawing.Size(318, 450);
this.dgvTourNurse.TabIndex = 4; this.dgvTourNurse.TabIndex = 4;
this.dgvTourNurse.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvWorkers_CellDoubleClick); this.dgvTourNurse.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvWorkers_CellDoubleClick);
// //
@ -1627,7 +1634,7 @@ namespace AIMS.OperationFront.UI
this.panel5.Dock = System.Windows.Forms.DockStyle.Top; this.panel5.Dock = System.Windows.Forms.DockStyle.Top;
this.panel5.Location = new System.Drawing.Point(0, 18); this.panel5.Location = new System.Drawing.Point(0, 18);
this.panel5.Name = "panel5"; this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(295, 77); this.panel5.Size = new System.Drawing.Size(318, 77);
this.panel5.TabIndex = 2; this.panel5.TabIndex = 2;
// //
// buttonX5 // buttonX5
@ -1752,7 +1759,7 @@ namespace AIMS.OperationFront.UI
this.navigationPanePanel2.Margin = new System.Windows.Forms.Padding(0); this.navigationPanePanel2.Margin = new System.Windows.Forms.Padding(0);
this.navigationPanePanel2.Name = "navigationPanePanel2"; this.navigationPanePanel2.Name = "navigationPanePanel2";
this.navigationPanePanel2.ParentItem = this.buttonItemAnas; this.navigationPanePanel2.ParentItem = this.buttonItemAnas;
this.navigationPanePanel2.Size = new System.Drawing.Size(295, 545); this.navigationPanePanel2.Size = new System.Drawing.Size(318, 545);
this.navigationPanePanel2.Style.Alignment = System.Drawing.StringAlignment.Center; this.navigationPanePanel2.Style.Alignment = System.Drawing.StringAlignment.Center;
this.navigationPanePanel2.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; this.navigationPanePanel2.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground;
this.navigationPanePanel2.Style.BackgroundImagePosition = DevComponents.DotNetBar.eBackgroundImagePosition.Tile; this.navigationPanePanel2.Style.BackgroundImagePosition = DevComponents.DotNetBar.eBackgroundImagePosition.Tile;
@ -1778,7 +1785,7 @@ namespace AIMS.OperationFront.UI
this.groupBox1.Margin = new System.Windows.Forms.Padding(0); this.groupBox1.Margin = new System.Windows.Forms.Padding(0);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Padding = new System.Windows.Forms.Padding(0); this.groupBox1.Padding = new System.Windows.Forms.Padding(0);
this.groupBox1.Size = new System.Drawing.Size(295, 545); this.groupBox1.Size = new System.Drawing.Size(318, 545);
this.groupBox1.TabIndex = 460; this.groupBox1.TabIndex = 460;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "主麻医师"; this.groupBox1.Text = "主麻医师";
@ -1838,7 +1845,7 @@ namespace AIMS.OperationFront.UI
this.dgvWorkers.RowHeadersVisible = false; this.dgvWorkers.RowHeadersVisible = false;
this.dgvWorkers.RowTemplate.Height = 23; this.dgvWorkers.RowTemplate.Height = 23;
this.dgvWorkers.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvWorkers.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvWorkers.Size = new System.Drawing.Size(295, 453); this.dgvWorkers.Size = new System.Drawing.Size(318, 453);
this.dgvWorkers.TabIndex = 3; this.dgvWorkers.TabIndex = 3;
this.dgvWorkers.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvWorkers_CellDoubleClick); this.dgvWorkers.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvWorkers_CellDoubleClick);
// //
@ -1966,7 +1973,7 @@ namespace AIMS.OperationFront.UI
this.panel2.Dock = System.Windows.Forms.DockStyle.Top; this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 18); this.panel2.Location = new System.Drawing.Point(0, 18);
this.panel2.Name = "panel2"; this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(295, 74); this.panel2.Size = new System.Drawing.Size(318, 74);
this.panel2.TabIndex = 2; this.panel2.TabIndex = 2;
// //
// buttonX3 // buttonX3
@ -2116,7 +2123,7 @@ namespace AIMS.OperationFront.UI
this.panlemian.Dock = System.Windows.Forms.DockStyle.Fill; this.panlemian.Dock = System.Windows.Forms.DockStyle.Fill;
this.panlemian.Location = new System.Drawing.Point(0, 0); this.panlemian.Location = new System.Drawing.Point(0, 0);
this.panlemian.Name = "panlemian"; this.panlemian.Name = "panlemian";
this.panlemian.Size = new System.Drawing.Size(1051, 277); this.panlemian.Size = new System.Drawing.Size(1028, 277);
this.panlemian.TabIndex = 465; this.panlemian.TabIndex = 465;
// //
// label15 // label15
@ -2196,8 +2203,8 @@ namespace AIMS.OperationFront.UI
// //
// dgvDetail // dgvDetail
// //
this.dgvDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.dgvDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.dgvDetail.BackColor = System.Drawing.SystemColors.Control; this.dgvDetail.BackColor = System.Drawing.SystemColors.Control;
this.dgvDetail.ContextMenuStrip = this.ctsThisRoom; this.dgvDetail.ContextMenuStrip = this.ctsThisRoom;
@ -2236,7 +2243,7 @@ namespace AIMS.OperationFront.UI
this.dgvDetail.PrimaryGrid.RowHeaderWidth = 30; this.dgvDetail.PrimaryGrid.RowHeaderWidth = 30;
this.dgvDetail.PrimaryGrid.SelectionGranularity = DevComponents.DotNetBar.SuperGrid.SelectionGranularity.RowWithCellHighlight; this.dgvDetail.PrimaryGrid.SelectionGranularity = DevComponents.DotNetBar.SuperGrid.SelectionGranularity.RowWithCellHighlight;
this.dgvDetail.PrimaryGrid.UseAlternateRowStyle = true; this.dgvDetail.PrimaryGrid.UseAlternateRowStyle = true;
this.dgvDetail.Size = new System.Drawing.Size(991, 201); this.dgvDetail.Size = new System.Drawing.Size(968, 201);
this.dgvDetail.SizingStyle = DevComponents.DotNetBar.SuperGrid.Style.StyleType.Selected; this.dgvDetail.SizingStyle = DevComponents.DotNetBar.SuperGrid.Style.StyleType.Selected;
this.dgvDetail.TabIndex = 1; this.dgvDetail.TabIndex = 1;
this.dgvDetail.Text = "superGridControl1"; this.dgvDetail.Text = "superGridControl1";
@ -2419,7 +2426,7 @@ namespace AIMS.OperationFront.UI
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(1051, 48); this.panel1.Size = new System.Drawing.Size(1028, 48);
this.panel1.TabIndex = 0; this.panel1.TabIndex = 0;
// //
// CboOperationSite // CboOperationSite
@ -2430,11 +2437,11 @@ namespace AIMS.OperationFront.UI
this.CboOperationSite.Font = new System.Drawing.Font("微软雅黑", 10F); this.CboOperationSite.Font = new System.Drawing.Font("微软雅黑", 10F);
this.CboOperationSite.FormattingEnabled = true; this.CboOperationSite.FormattingEnabled = true;
this.CboOperationSite.ItemHeight = 19; this.CboOperationSite.ItemHeight = 19;
this.CboOperationSite.Location = new System.Drawing.Point(908, 11); this.CboOperationSite.Location = new System.Drawing.Point(885, 11);
this.CboOperationSite.Name = "CboOperationSite"; this.CboOperationSite.Name = "CboOperationSite";
this.CboOperationSite.Size = new System.Drawing.Size(115, 25); this.CboOperationSite.Size = new System.Drawing.Size(115, 25);
this.CboOperationSite.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.CboOperationSite.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.CboOperationSite.TabIndex = 505; this.CboOperationSite.TabIndex = 505;
// //
// labelSite // labelSite
// //
@ -2442,7 +2449,7 @@ namespace AIMS.OperationFront.UI
this.labelSite.AutoSize = true; this.labelSite.AutoSize = true;
this.labelSite.BackColor = System.Drawing.Color.AliceBlue; this.labelSite.BackColor = System.Drawing.Color.AliceBlue;
this.labelSite.Font = new System.Drawing.Font("微软雅黑", 10.5F); this.labelSite.Font = new System.Drawing.Font("微软雅黑", 10.5F);
this.labelSite.Location = new System.Drawing.Point(842, 13); this.labelSite.Location = new System.Drawing.Point(819, 13);
this.labelSite.Name = "labelSite"; this.labelSite.Name = "labelSite";
this.labelSite.Size = new System.Drawing.Size(65, 20); this.labelSite.Size = new System.Drawing.Size(65, 20);
this.labelSite.TabIndex = 506; this.labelSite.TabIndex = 506;
@ -2455,7 +2462,7 @@ namespace AIMS.OperationFront.UI
this.lblcount.AutoSize = true; this.lblcount.AutoSize = true;
this.lblcount.BackColor = System.Drawing.Color.AliceBlue; this.lblcount.BackColor = System.Drawing.Color.AliceBlue;
this.lblcount.Font = new System.Drawing.Font("微软雅黑", 15F); this.lblcount.Font = new System.Drawing.Font("微软雅黑", 15F);
this.lblcount.Location = new System.Drawing.Point(575, 8); this.lblcount.Location = new System.Drawing.Point(606, 8);
this.lblcount.Name = "lblcount"; this.lblcount.Name = "lblcount";
this.lblcount.Size = new System.Drawing.Size(45, 27); this.lblcount.Size = new System.Drawing.Size(45, 27);
this.lblcount.TabIndex = 501; this.lblcount.TabIndex = 501;
@ -2477,10 +2484,12 @@ namespace AIMS.OperationFront.UI
this.btnPlan, this.btnPlan,
this.button3, this.button3,
this.toolStripSeparator2, this.toolStripSeparator2,
this.btnDataCente}); this.btnDataCente,
this.toolStripSeparator1,
this.tspSetting});
this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(1051, 49); this.toolStrip1.Size = new System.Drawing.Size(1028, 49);
this.toolStrip1.TabIndex = 504; this.toolStrip1.TabIndex = 504;
this.toolStrip1.Text = "toolStrip1"; this.toolStrip1.Text = "toolStrip1";
// //
@ -2576,6 +2585,22 @@ namespace AIMS.OperationFront.UI
this.btnDataCente.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.btnDataCente.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.btnDataCente.Click += new System.EventHandler(this.btnDataCente_Click); this.btnDataCente.Click += new System.EventHandler(this.btnDataCente_Click);
// //
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 49);
//
// tspSetting
//
this.tspSetting.Font = new System.Drawing.Font("΢ÈíÑźÚ", 9F);
this.tspSetting.Image = global::AIMS.Properties.Resources.ͼ±ê_ÉèÖÃ;
this.tspSetting.ImageTransparentColor = System.Drawing.Color.Magenta;
this.tspSetting.Name = "tspSetting";
this.tspSetting.Size = new System.Drawing.Size(68, 46);
this.tspSetting.Text = " ÏÔʾÉèÖÃ";
this.tspSetting.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.tspSetting.Click += new System.EventHandler(this.tspSetting_Click);
//
// contextMenuStrip1 // contextMenuStrip1
// //
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
@ -2596,7 +2621,7 @@ namespace AIMS.OperationFront.UI
this.tcOperationRoomsPage.Dock = System.Windows.Forms.DockStyle.Fill; this.tcOperationRoomsPage.Dock = System.Windows.Forms.DockStyle.Fill;
this.tcOperationRoomsPage.Location = new System.Drawing.Point(0, 0); this.tcOperationRoomsPage.Location = new System.Drawing.Point(0, 0);
this.tcOperationRoomsPage.Name = "tcOperationRoomsPage"; this.tcOperationRoomsPage.Name = "tcOperationRoomsPage";
this.tcOperationRoomsPage.Size = new System.Drawing.Size(1051, 405); this.tcOperationRoomsPage.Size = new System.Drawing.Size(1028, 405);
this.tcOperationRoomsPage.TabIndex = 5; this.tcOperationRoomsPage.TabIndex = 5;
// //
// tabScheduling // tabScheduling
@ -2633,7 +2658,7 @@ namespace AIMS.OperationFront.UI
this.tabScheduling.ReorderTabsEnabled = true; this.tabScheduling.ReorderTabsEnabled = true;
this.tabScheduling.SelectedTabFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold); this.tabScheduling.SelectedTabFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold);
this.tabScheduling.SelectedTabIndex = 0; this.tabScheduling.SelectedTabIndex = 0;
this.tabScheduling.Size = new System.Drawing.Size(1051, 405); this.tabScheduling.Size = new System.Drawing.Size(1028, 405);
this.tabScheduling.TabAlignment = DevComponents.DotNetBar.eTabStripAlignment.Bottom; this.tabScheduling.TabAlignment = DevComponents.DotNetBar.eTabStripAlignment.Bottom;
this.tabScheduling.TabFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.tabScheduling.TabFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.tabScheduling.TabIndex = 1; this.tabScheduling.TabIndex = 1;
@ -2656,7 +2681,7 @@ namespace AIMS.OperationFront.UI
this.superTabControlPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.superTabControlPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.superTabControlPanel1.Location = new System.Drawing.Point(0, 0); this.superTabControlPanel1.Location = new System.Drawing.Point(0, 0);
this.superTabControlPanel1.Name = "superTabControlPanel1"; this.superTabControlPanel1.Name = "superTabControlPanel1";
this.superTabControlPanel1.Size = new System.Drawing.Size(1051, 377); this.superTabControlPanel1.Size = new System.Drawing.Size(1028, 377);
this.superTabControlPanel1.TabIndex = 1; this.superTabControlPanel1.TabIndex = 1;
this.superTabControlPanel1.TabItem = this.superTabItem1; this.superTabControlPanel1.TabItem = this.superTabItem1;
// //
@ -2666,7 +2691,7 @@ namespace AIMS.OperationFront.UI
this.tcOperationRoomsPage1.Dock = System.Windows.Forms.DockStyle.Fill; this.tcOperationRoomsPage1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tcOperationRoomsPage1.Location = new System.Drawing.Point(0, 0); this.tcOperationRoomsPage1.Location = new System.Drawing.Point(0, 0);
this.tcOperationRoomsPage1.Name = "tcOperationRoomsPage1"; this.tcOperationRoomsPage1.Name = "tcOperationRoomsPage1";
this.tcOperationRoomsPage1.Size = new System.Drawing.Size(1051, 377); this.tcOperationRoomsPage1.Size = new System.Drawing.Size(1028, 377);
this.tcOperationRoomsPage1.TabIndex = 0; this.tcOperationRoomsPage1.TabIndex = 0;
this.tcOperationRoomsPage1.Resize += new System.EventHandler(this.tcOperationRoomsPage1_Resize); this.tcOperationRoomsPage1.Resize += new System.EventHandler(this.tcOperationRoomsPage1_Resize);
// //
@ -2867,7 +2892,7 @@ namespace AIMS.OperationFront.UI
// //
this.spcMain.Panel2.Controls.Add(this.spcLeft); this.spcMain.Panel2.Controls.Add(this.spcLeft);
this.spcMain.Size = new System.Drawing.Size(1358, 737); this.spcMain.Size = new System.Drawing.Size(1358, 737);
this.spcMain.SplitterDistance = 297; this.spcMain.SplitterDistance = 320;
this.spcMain.SplitterWidth = 8; this.spcMain.SplitterWidth = 8;
this.spcMain.TabIndex = 466; this.spcMain.TabIndex = 466;
// //
@ -2885,7 +2910,7 @@ namespace AIMS.OperationFront.UI
// spcLeft.Panel2 // spcLeft.Panel2
// //
this.spcLeft.Panel2.Controls.Add(this.rtbLog); this.spcLeft.Panel2.Controls.Add(this.rtbLog);
this.spcLeft.Size = new System.Drawing.Size(1053, 737); this.spcLeft.Size = new System.Drawing.Size(1030, 737);
this.spcLeft.SplitterDistance = 690; this.spcLeft.SplitterDistance = 690;
this.spcLeft.SplitterWidth = 6; this.spcLeft.SplitterWidth = 6;
this.spcLeft.TabIndex = 466; this.spcLeft.TabIndex = 466;
@ -2905,7 +2930,7 @@ namespace AIMS.OperationFront.UI
// spcUP.Panel2 // spcUP.Panel2
// //
this.spcUP.Panel2.Controls.Add(this.tcOperationRoomsPage); this.spcUP.Panel2.Controls.Add(this.tcOperationRoomsPage);
this.spcUP.Size = new System.Drawing.Size(1053, 690); this.spcUP.Size = new System.Drawing.Size(1030, 690);
this.spcUP.SplitterDistance = 279; this.spcUP.SplitterDistance = 279;
this.spcUP.TabIndex = 466; this.spcUP.TabIndex = 466;
// //
@ -2925,7 +2950,7 @@ namespace AIMS.OperationFront.UI
"il\\fcharset134 \\\'cb\\\'ce\\\'cc\\\'e5;}}\r\n{\\*\\generator Riched20 10.0.22621}\\viewkind4" + "il\\fcharset134 \\\'cb\\\'ce\\\'cc\\\'e5;}}\r\n{\\*\\generator Riched20 10.0.22621}\\viewkind4" +
"\\uc1 \r\n\\pard\\f0\\fs18\\lang2052\\par\r\n}\r\n"; "\\uc1 \r\n\\pard\\f0\\fs18\\lang2052\\par\r\n}\r\n";
this.rtbLog.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical; this.rtbLog.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
this.rtbLog.Size = new System.Drawing.Size(1053, 41); this.rtbLog.Size = new System.Drawing.Size(1030, 41);
this.rtbLog.TabIndex = 0; this.rtbLog.TabIndex = 0;
// //
// dataGridViewTextBoxColumn3 // dataGridViewTextBoxColumn3
@ -3517,9 +3542,12 @@ namespace AIMS.OperationFront.UI
string outMsg = ""; string outMsg = "";
int _rowColumnOfPage = 0; int _rowColumnOfPage = 0;
public int OpeCount = 0; public int OpeCount = 0;
public int RoomCount = 5;
public List<Department> SSSDept; public List<Department> SSSDept;
public List<Department> MZKDept; public List<Department> MZKDept;
public DataTable NowPatientDataTable; public DataTable NowPatientDataTable;
public SysConfig exportConfig;
public string DataGridViewPath = "";
public frmOperationSchedulePlan() public frmOperationSchedulePlan()
{ {
try try
@ -3553,6 +3581,10 @@ namespace AIMS.OperationFront.UI
dgvInstrumentNurse.BackgroundColor = SystemColors.Control; dgvInstrumentNurse.BackgroundColor = SystemColors.Control;
dgvTourNurse.BackgroundColor = SystemColors.Control; dgvTourNurse.BackgroundColor = SystemColors.Control;
DataGridViewPath = GetControlPath(dgvApplyOrDoctor);
exportConfig = BSysConfig.SelectSingle(" Note='" + DataGridViewPath + "' ", null, RecursiveType.None, 0);//
if (exportConfig != null)
ConfigDataGridView(exportConfig);
} }
catch (Exception ex) catch (Exception ex)
{ {
@ -3670,7 +3702,7 @@ namespace AIMS.OperationFront.UI
SelectPanel.Controls.Clear(); SelectPanel.Controls.Clear();
} }
ucOpeRooms = new List<ucPlanOperationRoomCard>(); ucOpeRooms = new List<ucPlanOperationRoomCard>();
int width = (SelectPanel.Width - 30) / 5; int width = (SelectPanel.Width - 30) / RoomCount;
int row = 0; int row = 0;
int column = 0; int column = 0;
for (int i = 0; i < selOperationRooms.Rooms.Count; i++) for (int i = 0; i < selOperationRooms.Rooms.Count; i++)
@ -3680,10 +3712,10 @@ namespace AIMS.OperationFront.UI
ucOpeRoom.Height = 135; ucOpeRoom.Height = 135;
ucOpeRoom.dgvDetail = dgvDetail; ucOpeRoom.dgvDetail = dgvDetail;
if (row != i / 5) if (row != i / RoomCount)
{ {
column = 0; column = 0;
row = i / 5; row = i / RoomCount;
} }
ucOpeRoom.Location = new Point(column * (ucOpeRoom.Width + LeftRightMargin) + LeftRightMargin, ucOpeRoom.Location = new Point(column * (ucOpeRoom.Width + LeftRightMargin) + LeftRightMargin,
@ -3706,7 +3738,7 @@ namespace AIMS.OperationFront.UI
if (i != 0) tabScheduling.Tabs[i].Visible = false; if (i != 0) tabScheduling.Tabs[i].Visible = false;
} }
_rowColumnOfPage = 15; _rowColumnOfPage = RoomCount*3;
List<OperationRoom> rooms = operationRooms; List<OperationRoom> rooms = operationRooms;
int allpage = 0; int allpage = 0;
@ -4842,6 +4874,53 @@ namespace AIMS.OperationFront.UI
ControlExtension.SetOperationSite(CboOperationSite); ControlExtension.SetOperationSite(CboOperationSite);
FirstLoad(); FirstLoad();
btnSearchOperation_Click(null, null); btnSearchOperation_Click(null, null);
} }
private void tspSetting_Click(object sender, EventArgs e)
{
frmExportConfig2 formDataGridViewConfig = new frmExportConfig2(dgvApplyOrDoctor, exportConfig, DataGridViewPath, this.Text);
if (formDataGridViewConfig.ShowDialog() == DialogResult.OK)
{
exportConfig = formDataGridViewConfig.exportConfig;
ConfigDataGridView(formDataGridViewConfig.exportConfig);
}
}
private void ConfigDataGridView(SysConfig exportConfig)
{
try
{
spcMain.SplitterDistance = int.Parse(exportConfig.Name);
ExportConfig dataGridViewSetting = JsonConvert.DeserializeObject<ExportConfig>(exportConfig.Value);
RoomCount = dataGridViewSetting.FontSize;
foreach (DataGridViewColumn column in dgvApplyOrDoctor.Columns)
{
foreach (var item in dataGridViewSetting.Exports)
{
if (column.Name == item.Name)
{
column.Visible = item.IsVisible;
column.Width = item.Width;
column.DisplayIndex = item.ColumnOrder;
}
}
}
}
catch (Exception ex)
{
PublicMethod.WriteLog(ex);
}
}
private static string GetControlPath(Control control)
{
StringBuilder controlPathStringBuilder = new StringBuilder();
controlPathStringBuilder.Append(control.Name);
while (control.Parent != null)
{
control = control.Parent;
controlPathStringBuilder.Append("." + control.Name);
}
return controlPathStringBuilder.ToString();
}
} }
} }

View File

@ -251,7 +251,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD+ ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD+
CAAAAk1TRnQBSQFMAgEBAgEAARwBFAEcARQBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo CAAAAk1TRnQBSQFMAgEBAgEAATQBFAE0ARQBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA

View File

@ -26,5 +26,6 @@ namespace AIMS
public int PrintWidth { get; set; } public int PrintWidth { get; set; }
public int PrintSize { get; set; } public int PrintSize { get; set; }
public string PrintName { get; set; } public string PrintName { get; set; }
public int ColumnOrder { get; set; }
} }
} }

View File

@ -6,6 +6,7 @@ using DCSoft.Writer.Dom;
using DocumentManagement; using DocumentManagement;
using DrawGraph; using DrawGraph;
using System; using System;
using System.Collections.Generic;
using System.Data; using System.Data;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;
@ -85,7 +86,7 @@ namespace AIMS.OremrUserControl
myEditControl.Document.Options.SecurityOptions.ShowPermissionTip = true; myEditControl.Document.Options.SecurityOptions.ShowPermissionTip = true;
//文档事件 //文档事件
myEditControl.DocumentContentChanged += new WriterEventHandler(myEditControl_DocumentContentChanged); myEditControl.DocumentContentChanged += new WriterEventHandler(myEditControl_DocumentContentChanged);
myEditControl.AfterExecuteCommand += new DCSoft.Writer.Commands.WriterCommandEventHandler(myEditControl_AfterExecuteCommand); myEditControl.AfterExecuteCommand += new DCSoft.Writer.Commands.WriterCommandEventHandler(myEditControl_AfterExecuteCommand);
if (DModel.Id > 0) if (DModel.Id > 0)
@ -107,11 +108,14 @@ namespace AIMS.OremrUserControl
{ {
var name = dr[i].ItemArray[0].ToString(); var name = dr[i].ItemArray[0].ToString();
var value = dr[i].ItemArray[1].ToString(); var value = dr[i].ItemArray[1].ToString();
XTextInputFieldElement element = query.Where(x => x.FieldSettings.ListSource.SourceName == value).FirstOrDefault(); List<XTextInputFieldElement> elements = query.Where(x => x.FieldSettings.ListSource.SourceName == value).ToList();
PropertyInfo info = p.Where(px => px.Name == name).FirstOrDefault(); PropertyInfo info = p.Where(px => px.Name == name).FirstOrDefault();
if (element != null && info != null) if (elements != null && info != null)
{ {
element.Text = info.GetValue(Patient, null).ToString(); foreach (var element in elements)
{
element.Text = info.GetValue(Patient, null).ToString();
}
} }
} }
} }
@ -142,11 +146,14 @@ namespace AIMS.OremrUserControl
{ {
var name = dr[i].ItemArray[0].ToString(); var name = dr[i].ItemArray[0].ToString();
var value = dr[i].ItemArray[1].ToString(); var value = dr[i].ItemArray[1].ToString();
XTextInputFieldElement element = query.Where(x => x.FieldSettings.ListSource.SourceName == value).FirstOrDefault(); List<XTextInputFieldElement> elements = query.Where(x => x.FieldSettings.ListSource.SourceName == value).ToList();
PropertyInfo info = p.Where(px => px.Name == name).FirstOrDefault(); PropertyInfo info = p.Where(px => px.Name == name).FirstOrDefault();
if (element != null && info != null) if (elements != null && info != null)
{ {
element.Text = info.GetValue(Patient, null).ToString(); foreach (var element in elements)
{
element.Text = info.GetValue(Patient, null).ToString();
}
} }
} }
@ -348,7 +355,7 @@ namespace AIMS.OremrUserControl
ClearT(); ClearT();
} }
myEditControl.Document.Modified = false; myEditControl.Document.Modified = false;
DocumentExtension.SaveCocumentValue(DModel.XmlFileName, myEditControl.Document,ref Patient); DocumentExtension.SaveCocumentValue(DModel.XmlFileName, myEditControl.Document, ref Patient);
new frmMessageBox().Show(); new frmMessageBox().Show();
} }
@ -528,10 +535,10 @@ namespace AIMS.OremrUserControl
element.Text = info.GetValue(Patient.LisResult, null).ToString(); element.Text = info.GetValue(Patient.LisResult, null).ToString();
} }
} }
} }
} }
} }
private void tsbCheckout_Click(object sender, EventArgs e) private void tsbCheckout_Click(object sender, EventArgs e)
{ {
if (tsbCheckout.Text == " 查看痕迹") if (tsbCheckout.Text == " 查看痕迹")

View File

@ -272,7 +272,7 @@ namespace DocumentManagement
var diagnose = Document.Fields.ToArray().Where(x => x.ID == "field69").FirstOrDefault(); var diagnose = Document.Fields.ToArray().Where(x => x.ID == "field69").FirstOrDefault();
if (diagnose != null && diagnose.Text != "" && diagnose.Text != Patient.ApplyDiagnoseInfoName) if (diagnose != null && diagnose.Text != "" && diagnose.Text != Patient.ApplyDiagnoseInfoName)
{ {
AddApplyDiagnose(Patient, GetDiagnoseId(diagnose.Text)); AddApplyDiagnose(Patient, GetDiagnoseId(diagnose.Text));
Patient.ApplyDiagnoseInfoName = diagnose.Text; Patient.ApplyDiagnoseInfoName = diagnose.Text;
} }
} }
@ -285,6 +285,12 @@ namespace DocumentManagement
{ {
AddAnaesthesiaMethod(Patient, asa.FormulaValue); AddAnaesthesiaMethod(Patient, asa.FormulaValue);
} }
var diagnose = Document.Fields.ToArray().Where(x => x.ID == "KB20180604142254986").FirstOrDefault();
if (diagnose != null && diagnose.Text != "" && diagnose.Text != Patient.ApplyDiagnoseInfoName)
{
AddApplyDiagnose(Patient, GetDiagnoseId(diagnose.Text));
Patient.ApplyDiagnoseInfoName = diagnose.Text;
}
} }
} }
catch (Exception ex) catch (Exception ex)

View File

@ -174,7 +174,7 @@ namespace DrawGraph
break; break;
case "OperationRecord.TourNurse": case "OperationRecord.TourNurse":
Worker_Click(aEdit1, e, 3); Worker_Click(aEdit1, e, 3);
break; break;
case "OperationRecord.Operation": //手术名称 case "OperationRecord.Operation": //手术名称
ope_Click(aEdit1, e); ope_Click(aEdit1, e);
break; break;

View File

@ -24,6 +24,7 @@ namespace DrawGraph
/// 当前手术对象 /// 当前手术对象
/// </summary> /// </summary>
private OperationRecord myOpeRecord = null; private OperationRecord myOpeRecord = null;
private TipBox aSyncTip = null;
#region #region
public DrugsManage() public DrugsManage()
@ -56,12 +57,116 @@ namespace DrawGraph
/// <param name="e"></param> /// <param name="e"></param>
public override void MouseDown(ZedGraphControl sender, MouseEventArgs e) public override void MouseDown(ZedGraphControl sender, MouseEventArgs e)
{ {
//if (ConfigSource.sysypyd != null && ConfigSource.sysypyd.Value.ToString() == "1")
//{
//触发可编辑区域的事件
double y = Convert.ToDouble(Convert.ToDouble(e.Y) / Convert.ToDouble(ZedControl.Height));
double x = Convert.ToDouble(Convert.ToDouble(e.X) / Convert.ToDouble(ZedControl.Width));
ZedGraphControl sender1 = sender as ZedGraphControl;
PointF mousePt = new PointF(e.X, e.Y);
GraphPane pane = sender1.MasterPane.FindChartRect(mousePt);
bool isDrugRange = isAddDrugRange(sender, x, y);
if (isDrugRange && e.Button == System.Windows.Forms.MouseButtons.Left)
{
DateTime BeginTime = reDrugsTime(sender as ZedGraphControl, e);
List<FactDrug> record = new List<FactDrug>();
double addDragRowHeight = (lines.RealEndY - lines.RealY) / RowsCount;
foreach (FactDrug dsr in myOpeRecord.FactDrugList)
{
if (dsr.isEqual(y, BeginTime, addDragRowHeight))
{
dsr.IsSelected = true;
break;
}
}
}
} }
public override void MouseMove(ZedGraphControl sender, MouseEventArgs e) public override void MouseMove(ZedGraphControl sender, MouseEventArgs e)
{ {
//if (ConfigSource.sysypyd != null && ConfigSource.sysypyd.Value.ToString() == "1")
//{
double x = Convert.ToDouble(Convert.ToDouble(e.X) / Convert.ToDouble(sender.Width));
double y = Convert.ToDouble(Convert.ToDouble(e.Y) / Convert.ToDouble(sender.Height));
double yP = 18 / Convert.ToDouble(sender.Height);
string viewStr = "";
bool isDrugRange = isAddDrugRange(sender, x, y);
if (isDrugRange)
{
DateTime BeginTime = reDrugsTime(sender as ZedGraphControl, e);
double addDragRowHeight = (lines.RealEndY - lines.RealY) / RowsCount;
foreach (FactDrug dsr in myOpeRecord.FactDrugList)
{
if (dsr.isEqual(y, BeginTime, addDragRowHeight) || dsr.IsSelected)
{
//isDrug = true;
viewStr = dsr.DrugName + ":" + dsr.Dosage + dsr.DosageUnit;
if (dsr.DrugBeginTime != null)
viewStr += "\n开始时间" + dsr.DrugBeginTime.ToString("yyyy-MM-dd HH:mm");
if (dsr.DrugEndTime != null && dsr.DrugEndTime != dsr.DrugBeginTime)
viewStr += "\n结束时间" + dsr.DrugEndTime.ToString("yyyy-MM-dd HH:mm");
aSyncTip.ViewStr = viewStr;
aSyncTip.Show(x, y + yP);
//因为被选中进行托动
if (dsr.IsSelected)
{
aSyncTip.ViewStr = viewStr;
aSyncTip.Show(x, y + yP);
TimeSpan ts = BeginTime - DateTime.Parse(dsr.DrugBeginTime.ToString());
double totalMinutes = ts.TotalMinutes;
if (dsr.DrugEndTime != null)
{
dsr.DrugEndTime = dsr.DrugEndTime.AddMinutes(totalMinutes);
}
dsr.DrugBeginTime = BeginTime;
dsr.ReDraw(sender);
}
ZedControl.Refresh();
break;
}
}
}
//}
} }
public override void MouseUp(ZedGraphControl sender, MouseEventArgs e) public override void MouseUp(ZedGraphControl sender, MouseEventArgs e)
{ {
if (OpeRecord == null) return;
//if (ConfigSource.sysypyd != null && ConfigSource.sysypyd.Value.ToString() == "1")
//{
double y = Convert.ToDouble(Convert.ToDouble(e.Y) / Convert.ToDouble(ZedControl.Height));
double x = Convert.ToDouble(Convert.ToDouble(e.X) / Convert.ToDouble(ZedControl.Width));
bool isDrugRange = isAddDrugRange(sender, x, y);
if (isDrugRange && e.Button == System.Windows.Forms.MouseButtons.Left)
{
//把移动药品强制保存
if (myOpeRecord != null && myOpeRecord.FactDrugList != null)
{
DateTime currentTime = reDrugsTime(sender as ZedGraphControl, e);
foreach (FactDrug dsr in myOpeRecord.FactDrugList)
{
if (dsr.IsSelected)
{
dsr.IsSelected = false;
int reValue = FactDrug.UpdateEntity(dsr);
if (reValue > 0)
{
reDrawDrug();
}
else
{
ZedControl.Refresh();
}
break;
}
}
}
}
//}
} }
public override void MouseDoubleClick(ZedGraphControl sender, MouseEventArgs e) public override void MouseDoubleClick(ZedGraphControl sender, MouseEventArgs e)
{ {
@ -130,6 +235,7 @@ namespace DrawGraph
#region #region
public override void Bind() public override void Bind()
{ {
aSyncTip = TipBox.CreateInstance("async");
init(); init();
DrawDrug(); DrawDrug();
} }
@ -243,8 +349,8 @@ namespace DrawGraph
for (int i = 0; i < _FactDrugList.Count; i++) for (int i = 0; i < _FactDrugList.Count; i++)
{ {
FactDrug temp = _FactDrugList[i]; FactDrug temp = _FactDrugList[i];
if (temp.GiveDrugType == "麻醉前用药" || temp.GiveDrugType == "术后镇痛药" || temp.DrugChannel == "备用" || temp.DrugChannel == "配药" || temp.Access == "下") continue;//|| temp.GiveDrugType == "麻醉诱导用药" if (temp.GiveDrugType == "麻醉前用药" || temp.GiveDrugType == "术后镇痛药" || temp.DrugChannel == "备用" || temp.DrugChannel == "配药" || temp.Access == "下") continue;//|| temp.GiveDrugType == "麻醉诱导用药"
//子药不画 //子药不画
if (temp.ParentId > 0) continue; if (temp.ParentId > 0) continue;
bool isEqual = false; bool isEqual = false;
@ -263,7 +369,7 @@ namespace DrawGraph
for (int j = 0; j < i; j++) for (int j = 0; j < i; j++)
{ {
FactDrug addDrug1 = _FactDrugList[j]; FactDrug addDrug1 = _FactDrugList[j];
if (addDrug1.GiveDrugType == "麻醉前用药" || addDrug1.GiveDrugType == "术后镇痛药" || addDrug1.DrugChannel == "备用" || addDrug1.DrugChannel == "配药") continue;//|| addDrug1.GiveDrugType == "麻醉诱导用药" if (addDrug1.GiveDrugType == "麻醉前用药" || addDrug1.GiveDrugType == "术后镇痛药" || addDrug1.DrugChannel == "备用" || addDrug1.DrugChannel == "配药") continue;//|| addDrug1.GiveDrugType == "麻醉诱导用药"
if (addDrug1.ChildFactDrugList == null) addDrug1.ChildFactDrugList = new List<FactDrug>(); if (addDrug1.ChildFactDrugList == null) addDrug1.ChildFactDrugList = new List<FactDrug>();
//如果加药品ID相同并且加加药ID不同则认为加了同一种加药 //如果加药品ID相同并且加加药ID不同则认为加了同一种加药
if (addDrug1.Equal(temp) && temp.ParentId == 0 && addDrug1.ParentId == 0 && addDrug1.ChildFactDrugList.Count == 0 && temp.ChildFactDrugList.Count == 0) if (addDrug1.Equal(temp) && temp.ParentId == 0 && addDrug1.ParentId == 0 && addDrug1.ChildFactDrugList.Count == 0 && temp.ChildFactDrugList.Count == 0)
@ -540,8 +646,8 @@ namespace DrawGraph
double[] y; double[] y;
double[] y2; double[] y2;
double yTemp = ZedControl.Height * lines.RealEndY + 80; //double yTemp = ZedControl.Height * lines.RealEndY + 80;
PointF mousePt = new PointF(e.X, float.Parse(yTemp.ToString())); PointF mousePt = new PointF(e.X, 1000);
ZedGraphControl sender1 = sender as ZedGraphControl; ZedGraphControl sender1 = sender as ZedGraphControl;
GraphPane pane = sender1.MasterPane.FindChartRect(mousePt); GraphPane pane = sender1.MasterPane.FindChartRect(mousePt);

View File

@ -1,5 +1,7 @@
using System; using HelperDB;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data.SqlClient;
using System.Diagnostics.Eventing.Reader; using System.Diagnostics.Eventing.Reader;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
@ -140,6 +142,28 @@ namespace DrawGraph
return reValue; return reValue;
} }
public bool isEqual(double y, DateTime time, double lineHeight)
{
bool reValue = false;
if ((y > nowY && y < nowY + lineHeight))
{
if (DrugBeginTime == DrugEndTime)
{
if ((DateTime.Compare(time, DateTime.Parse(DrugBeginTime.ToString())) > 0) && DateTime.Compare(time, DateTime.Parse(DrugBeginTime.ToString()).AddMinutes(10)) < 0)
{
reValue = true;
}
}
else
{
if ((DateTime.Compare(time, DateTime.Parse(DrugBeginTime.ToString())) > 0 && DateTime.Compare(time, DateTime.Parse(DrugEndTime.ToString())) < 0))
{
reValue = true;
}
}
}
return reValue;
}
/// <summary> /// <summary>
@ -166,6 +190,14 @@ namespace DrawGraph
paintAdd(y); paintAdd(y);
} }
public void ReDraw(ZedGraphControl zgc)
{
//擦掉加药的图例
clearAddObjPic(zgc);
//再重新画上去新的位置
paintAdd(nowY);
}
/// <summary> /// <summary>
/// 画添加药品线,底部加加药次数和备注信息 /// 画添加药品线,底部加加药次数和备注信息
/// </summary> /// </summary>
@ -271,6 +303,52 @@ namespace DrawGraph
ZUtil.DrawText(DrName, x1, y, zgcAnas, TextPrefix.DN + this.DrugName + this.Id.ToString(), Color.Black, 6f); ZUtil.DrawText(DrName, x1, y, zgcAnas, TextPrefix.DN + this.DrugName + this.Id.ToString(), Color.Black, 6f);
} }
} }
public static int UpdateEntity(FactDrug factDrug)
{
using (SqlConnection conn = new SqlConnection(DBHelper._ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
cmd.CommandText = "update FactDrug set PatientId=@PatientId,DrugTypeId=@DrugTypeId,DrugId=@DrugId,DrugBeginTime=@DrugBeginTime,DrugEndTime=@DrugEndTime,Dosage=@Dosage,DosageUnit=@DosageUnit,DrugChannel=@DrugChannel,GiveDrugType=@GiveDrugType,IsContinue=@IsContinue,Remark=@Remark,OperatorNo=@OperatorNo,OperatorName=@OperatorName,OperateDate=@OperateDate,Density=@Density,DensityUnit=@DensityUnit,Velocity=@Velocity,VelocityUnit=@VelocityUnit,BloodType=@BloodType,ParentId=@ParentId,DrugName=@DrugName,Access=@Access where Id=@Id";
//从实体中取出值放入Command的参数列表,BatchNo=@BatchNo,PaySelf=@PaySelf,TestFlag=@TestFlag,LimitFlag=@LimitFlag,Extend1=@Extend1,Extend2=@Extend2,Extend3=@Extend3,Extend4=@Extend4,Extend5=@Extend5
cmd.Parameters.Add(new SqlParameter("@PatientId", factDrug.PatientId));
cmd.Parameters.Add(new SqlParameter("@DrugTypeId", factDrug.DrugTypeId));
cmd.Parameters.Add(new SqlParameter("@DrugId", factDrug.DrugId));
cmd.Parameters.Add(new SqlParameter("@DrugBeginTime", factDrug.DrugBeginTime));
cmd.Parameters.Add(new SqlParameter("@DrugEndTime", factDrug.DrugEndTime));
cmd.Parameters.Add(new SqlParameter("@Dosage", factDrug.Dosage));
cmd.Parameters.Add(new SqlParameter("@DosageUnit", factDrug.DosageUnit));
cmd.Parameters.Add(new SqlParameter("@DrugChannel", factDrug.DrugChannel));
cmd.Parameters.Add(new SqlParameter("@GiveDrugType", factDrug.GiveDrugType));
cmd.Parameters.Add(new SqlParameter("@IsContinue", factDrug.IsContinue));
cmd.Parameters.Add(new SqlParameter("@Remark", factDrug.Remark));
cmd.Parameters.Add(new SqlParameter("@OperatorNo", factDrug.OperatorNo));
cmd.Parameters.Add(new SqlParameter("@OperatorName", factDrug.OperatorName));
cmd.Parameters.Add(new SqlParameter("@OperateDate", factDrug.OperateDate));
cmd.Parameters.Add(new SqlParameter("@Density", factDrug.Density));
cmd.Parameters.Add(new SqlParameter("@DensityUnit", factDrug.DensityUnit));
cmd.Parameters.Add(new SqlParameter("@Velocity", factDrug.Velocity));
cmd.Parameters.Add(new SqlParameter("@VelocityUnit", factDrug.VelocityUnit));
cmd.Parameters.Add(new SqlParameter("@BloodType", factDrug.BloodType));
cmd.Parameters.Add(new SqlParameter("@ParentId", factDrug.ParentId));
cmd.Parameters.Add(new SqlParameter("@DrugName", factDrug.DrugName));
cmd.Parameters.Add(new SqlParameter("@Access", factDrug.Access));
//cmd.Parameters.Add(new SqlParameter("@BatchNo", factDrug.BatchNo));
//cmd.Parameters.Add(new SqlParameter("@PaySelf", factDrug.PaySelf));
//cmd.Parameters.Add(new SqlParameter("@TestFlag", factDrug.TestFlag));
//cmd.Parameters.Add(new SqlParameter("@LimitFlag", factDrug.LimitFlag));
//cmd.Parameters.Add(new SqlParameter("@Extend1", factDrug.Extend1));
//cmd.Parameters.Add(new SqlParameter("@Extend2", factDrug.Extend2));
//cmd.Parameters.Add(new SqlParameter("@Extend3", factDrug.Extend3));
//cmd.Parameters.Add(new SqlParameter("@Extend4", factDrug.Extend4));
//cmd.Parameters.Add(new SqlParameter("@Extend5", factDrug.Extend5));
cmd.Parameters.Add(new SqlParameter("@Id", factDrug.Id));
return cmd.ExecuteNonQuery();
}
}
}
} }
/// <summary> /// <summary>

View File

@ -21,6 +21,7 @@ namespace DrawGraph
public LinePackObj H3pack; public LinePackObj H3pack;
public LinePackObj H5pack; public LinePackObj H5pack;
public int RowsCount; public int RowsCount;
private TipBox aSyncTip = null;
/// <summary> /// <summary>
/// 当前手术对象 /// 当前手术对象
/// </summary> /// </summary>
@ -58,6 +59,7 @@ namespace DrawGraph
#endregion #endregion
#region #region
/// <summary> /// <summary>
/// 鼠标点击画板 /// 鼠标点击画板
/// </summary> /// </summary>
@ -65,16 +67,116 @@ namespace DrawGraph
/// <param name="e"></param> /// <param name="e"></param>
public override void MouseDown(ZedGraphControl sender, MouseEventArgs e) public override void MouseDown(ZedGraphControl sender, MouseEventArgs e)
{ {
//if (e.Button == System.Windows.Forms.MouseButtons.Left) //if (ConfigSource.sysypyd != null && ConfigSource.sysypyd.Value.ToString() == "1")
//{ //{
// MessageBox.Show(this.GetType().Name + "is Click Left Button"); //触发可编辑区域的事件
//} double y = Convert.ToDouble(Convert.ToDouble(e.Y) / Convert.ToDouble(ZedControl.Height));
double x = Convert.ToDouble(Convert.ToDouble(e.X) / Convert.ToDouble(ZedControl.Width));
ZedGraphControl sender1 = sender as ZedGraphControl;
PointF mousePt = new PointF(e.X, e.Y);
GraphPane pane = sender1.MasterPane.FindChartRect(mousePt);
bool isDrugRange = isAddDrugRange(sender, x, y);
if (isDrugRange && e.Button == System.Windows.Forms.MouseButtons.Left)
{
DateTime BeginTime = reDrugsTime(sender as ZedGraphControl, e);
List<FactDrug> record = new List<FactDrug>();
double addDragRowHeight = (lines.RealEndY - lines.RealY) / RowsCount;
foreach (FactDrug dsr in myOpeRecord.FactDrugList)
{
if (dsr.isEqual(y, BeginTime, addDragRowHeight))
{
dsr.IsSelected = true;
break;
}
}
}
} }
public override void MouseMove(ZedGraphControl sender, MouseEventArgs e) public override void MouseMove(ZedGraphControl sender, MouseEventArgs e)
{ {
//if (ConfigSource.sysypyd != null && ConfigSource.sysypyd.Value.ToString() == "1")
//{
double x = Convert.ToDouble(Convert.ToDouble(e.X) / Convert.ToDouble(sender.Width));
double y = Convert.ToDouble(Convert.ToDouble(e.Y) / Convert.ToDouble(sender.Height));
double yP = 18 / Convert.ToDouble(sender.Height);
string viewStr = "";
bool isDrugRange = isAddDrugRange(sender, x, y);
if (isDrugRange)
{
DateTime BeginTime = reDrugsTime(sender as ZedGraphControl, e);
double addDragRowHeight = (lines.RealEndY - lines.RealY) / RowsCount;
foreach (FactDrug dsr in myOpeRecord.FactDrugList)
{
if (dsr.isEqual(y, BeginTime, addDragRowHeight) || dsr.IsSelected)
{
//isDrug = true;
viewStr = dsr.DrugName + ":" + dsr.Dosage + dsr.DosageUnit;
if (dsr.DrugBeginTime != null)
viewStr += "\n开始时间" + dsr.DrugBeginTime.ToString("yyyy-MM-dd HH:mm");
if (dsr.DrugEndTime != null && dsr.DrugEndTime != dsr.DrugBeginTime)
viewStr += "\n结束时间" + dsr.DrugEndTime.ToString("yyyy-MM-dd HH:mm");
aSyncTip.ViewStr = viewStr;
aSyncTip.Show(x, y + yP);
//因为被选中进行托动
if (dsr.IsSelected)
{
aSyncTip.ViewStr = viewStr;
aSyncTip.Show(x, y + yP);
TimeSpan ts = BeginTime - DateTime.Parse(dsr.DrugBeginTime.ToString());
double totalMinutes = ts.TotalMinutes;
if (dsr.DrugEndTime != null)
{
dsr.DrugEndTime = dsr.DrugEndTime.AddMinutes(totalMinutes);
}
dsr.DrugBeginTime = BeginTime;
dsr.ReDraw(sender);
}
ZedControl.Refresh();
break;
}
}
}
//}
} }
public override void MouseUp(ZedGraphControl sender, MouseEventArgs e) public override void MouseUp(ZedGraphControl sender, MouseEventArgs e)
{ {
if (OpeRecord == null) return;
//if (ConfigSource.sysypyd != null && ConfigSource.sysypyd.Value.ToString() == "1")
//{
double y = Convert.ToDouble(Convert.ToDouble(e.Y) / Convert.ToDouble(ZedControl.Height));
double x = Convert.ToDouble(Convert.ToDouble(e.X) / Convert.ToDouble(ZedControl.Width));
bool isDrugRange = isAddDrugRange(sender, x, y);
if (isDrugRange && e.Button == System.Windows.Forms.MouseButtons.Left)
{
//把移动药品强制保存
if (myOpeRecord != null && myOpeRecord.FactDrugList != null)
{
DateTime currentTime = reDrugsTime(sender as ZedGraphControl, e);
foreach (FactDrug dsr in myOpeRecord.FactDrugList)
{
if (dsr.IsSelected)
{
dsr.IsSelected = false;
int reValue = FactDrug.UpdateEntity(dsr);
if (reValue > 0)
{
reDrawDrug();
}
else
{
ZedControl.Refresh();
}
break;
}
}
}
}
//}
} }
public override void MouseDoubleClick(ZedGraphControl sender, MouseEventArgs e) public override void MouseDoubleClick(ZedGraphControl sender, MouseEventArgs e)
{ {
@ -95,7 +197,6 @@ namespace DrawGraph
DateTime BeginTime = reDrugsTime(sender as ZedGraphControl, e); DateTime BeginTime = reDrugsTime(sender as ZedGraphControl, e);
List<FactDrug> record = new List<FactDrug>(); List<FactDrug> record = new List<FactDrug>();
double addDragRowHeight = (lines.RealEndY - lines.RealY) / RowsCount; double addDragRowHeight = (lines.RealEndY - lines.RealY) / RowsCount;
foreach (FactDrug dsr in myOpeRecord.FactDrugList) foreach (FactDrug dsr in myOpeRecord.FactDrugList)
{ {
if (dsr.isEqualRow(y, BeginTime, addDragRowHeight)) if (dsr.isEqualRow(y, BeginTime, addDragRowHeight))
@ -105,56 +206,35 @@ namespace DrawGraph
} }
if (record.Count > 0) if (record.Count > 0)
{ {
myOpeRecord.SpeedyDrugsMethod(record); List<FactDrug> records = new List<FactDrug>();
foreach (var fact in record)
{
if (fact.ParentId == 0)
{
records.Add(fact);
foreach (var item in myOpeRecord.FactDrugList)
{
if (item.ParentId == fact.Id)
{
records.Add(item);
}
}
}
else
{
foreach (var item in myOpeRecord.FactDrugList)
{
if (item.Id == fact.ParentId || item.ParentId == fact.ParentId)
{
records.Add(item);
}
}
}
}
if (records.Count > 0)
myOpeRecord.SpeedyDrugsMethod(records);
} }
} }
}
}
/// <summary>
/// 返回是否进入加药范围
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private bool isAddDrugRange(ZedGraphControl sender, double x, double y)
{
bool reValue = false;
if (y > lines.RealY && y < lines.RealEndY)
{
if (x > H3pack.RealX && x < lines.RealEndX)
{
reValue = true;
}
}
return reValue;
}
private DateTime reDrugsTime(ZedGraphControl sender, MouseEventArgs e)
{
try
{
double x, x2;
double[] y;
double[] y2;
double yTemp = ZedControl.Height * lines.RealEndY + 80;
PointF mousePt = new PointF(e.X, float.Parse(yTemp.ToString()));
ZedGraphControl sender1 = sender as ZedGraphControl;
GraphPane pane = sender1.MasterPane.FindChartRect(mousePt);
if (pane != null)
{
pane.ReverseTransform(mousePt, out x, out x2, out y, out y2);
XDate xd = new XDate(x);
return xd.DateTime;
}
else
{
return DateTime.Now;
}
}
catch (Exception)
{
return DateTime.Now;
} }
} }
public override void KeyUp(ZedGraphControl sender, KeyEventArgs e) public override void KeyUp(ZedGraphControl sender, KeyEventArgs e)
@ -165,6 +245,7 @@ namespace DrawGraph
#region #region
public override void Bind() public override void Bind()
{ {
aSyncTip = TipBox.CreateInstance("async");
init(); init();
DrawDrug(); DrawDrug();
} }
@ -415,6 +496,52 @@ namespace DrawGraph
} }
return isSap; return isSap;
} }
/// <summary>
/// 返回是否进入加药范围
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private bool isAddDrugRange(ZedGraphControl sender, double x, double y)
{
bool reValue = false;
if (y > lines.RealY && y < lines.RealEndY)
{
if (x > H3pack.RealX && x < lines.RealEndX)
{
reValue = true;
}
}
return reValue;
}
private DateTime reDrugsTime(ZedGraphControl sender, MouseEventArgs e)
{
try
{
double x, x2;
double[] y;
double[] y2;
//double yTemp = ZedControl.Height * lines.RealEndY + 80;
PointF mousePt = new PointF(e.X, 1000);
ZedGraphControl sender1 = sender as ZedGraphControl;
GraphPane pane = sender1.MasterPane.FindChartRect(mousePt);
if (pane != null)
{
pane.ReverseTransform(mousePt, out x, out x2, out y, out y2);
XDate xd = new XDate(x);
return xd.DateTime;
}
else
{
return DateTime.Now;
}
}
catch (Exception)
{
return DateTime.Now;
}
}
#endregion #endregion
#region #region

View File

@ -47,6 +47,12 @@ namespace DrawGraph
DataTable dt = DBManage.GetDictDataTable(OpeRecord, txt.Text, aEdit.ControlTitleText, PersonType, (IsSearch == true ? aEdit.PackValue : "")); DataTable dt = DBManage.GetDictDataTable(OpeRecord, txt.Text, aEdit.ControlTitleText, PersonType, (IsSearch == true ? aEdit.PackValue : ""));
tokenEditor.Tokens.Clear(); tokenEditor.Tokens.Clear();
//for (int i = tokenEditor.Tokens.Count - 1; i >= 0; i--)
//{
// tokenEditor.Tokens.Remove(tokenEditor.Tokens[i]);
//}
//DevComponents.DotNetBar.Controls.EditToken edit1 = new DevComponents.DotNetBar.Controls.EditToken("", "无");
//tokenEditor.Tokens.Add(edit1);
foreach (DataRow item in dt.Rows) foreach (DataRow item in dt.Rows)
{ {
DevComponents.DotNetBar.Controls.EditToken edit = new DevComponents.DotNetBar.Controls.EditToken(item["Id"].ToString(), item["Name"].ToString()); DevComponents.DotNetBar.Controls.EditToken edit = new DevComponents.DotNetBar.Controls.EditToken(item["Id"].ToString(), item["Name"].ToString());
@ -112,12 +118,19 @@ namespace DrawGraph
public static string GetWorkerTags(string text, string value) public static string GetWorkerTags(string text, string value)
{ {
string result = ""; string result = "";
string sql = string.Format("select Name from Person where Id = '{0}'", value); try
object dt = DBHelper.ExecuteScalar(sql);
if (dt != null)
{ {
string name = dt.ToString(); string sql = string.Format("select Name from Person where Id = '{0}'", value);
result = text.Replace(name, "");//.Replace(",", "") object dt = DBHelper.ExecuteScalar(sql);
if (dt != null)
{
string name = dt.ToString();
result = text.Replace(name, "");//.Replace(",", "")
}
}
catch (System.Exception)
{
result = "";
} }
return result; return result;
} }