diff --git a/AIMS/AIMS.csproj b/AIMS/AIMS.csproj
index bf5329a..a4deb9b 100644
--- a/AIMS/AIMS.csproj
+++ b/AIMS/AIMS.csproj
@@ -492,12 +492,6 @@
Component
-
- UserControl
-
-
- ucDocumentGoodsBill.cs
-
UserControl
@@ -1044,9 +1038,6 @@
frmSelectiveOperationsPrint.cs
-
- ucDocumentGoodsBill.cs
-
UCOperationGoodsBill.cs
diff --git a/AIMS/DataDictionary/frmApplianceSelect.cs b/AIMS/DataDictionary/frmApplianceSelect.cs
index be2c236..34bab70 100644
--- a/AIMS/DataDictionary/frmApplianceSelect.cs
+++ b/AIMS/DataDictionary/frmApplianceSelect.cs
@@ -6,9 +6,11 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
+using System.Xml.Linq;
using AIMSBLL;
using AIMSExtension;
using AIMSModel;
+using static System.Windows.Forms.AxHost;
namespace AIMS.PublicUI.UI
{
@@ -394,5 +396,22 @@ namespace AIMS.PublicUI.UI
}
}
+ private void buttonX1_Click(object sender, EventArgs e)
+ {
+ Appliance app = new Appliance();
+ app.Name = txtQuery.Text.Trim();
+ app.HCode = PublicMethod.GetFirstLetter(txtQuery.Text.Trim());
+ app.ApplianceType = 0;
+ app.IsValid = 1;
+ app.OperatorId = PublicMethod.OperatorId;
+ app.OperatorTime = DateTime.Now;
+ int num = 0;
+ app.UseRate = 0;
+ num = BAppliance.Insert(app);
+ if (num > 0)
+ {
+ MessageBox.Show("保存成功!");
+ }
+ }
}
}
diff --git a/AIMS/DataDictionary/frmApplianceSelect.designer.cs b/AIMS/DataDictionary/frmApplianceSelect.designer.cs
index 1e9e056..95e2e0a 100644
--- a/AIMS/DataDictionary/frmApplianceSelect.designer.cs
+++ b/AIMS/DataDictionary/frmApplianceSelect.designer.cs
@@ -49,21 +49,22 @@
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.dgvY = new DevComponents.DotNetBar.Controls.DataGridViewX();
this.ySelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+ this.yId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.yName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.ApplianceNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.dgvD = new DevComponents.DotNetBar.Controls.DataGridViewX();
- this.Selectcol = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+ this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Index = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Select = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+ this.oName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.yId = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.yName = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.ApplianceNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Index = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.oName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.buttonX1 = new DevComponents.DotNetBar.ButtonX();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.groupBox2.SuspendLayout();
@@ -78,6 +79,7 @@
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.txtQuery);
this.panel1.Controls.Add(this.label3);
+ this.panel1.Controls.Add(this.buttonX1);
this.panel1.Controls.Add(this.btnSave);
this.panel1.Controls.Add(this.cboType);
this.panel1.Controls.Add(this.lblUseName);
@@ -118,9 +120,9 @@
// btnSave
//
this.btnSave.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
- this.btnSave.Location = new System.Drawing.Point(636, 13);
+ this.btnSave.Location = new System.Drawing.Point(672, 13);
this.btnSave.Name = "btnSave";
- this.btnSave.Size = new System.Drawing.Size(75, 30);
+ this.btnSave.Size = new System.Drawing.Size(39, 30);
this.btnSave.TabIndex = 2;
this.btnSave.Text = "保存";
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
@@ -310,6 +312,26 @@
this.ySelect.Name = "ySelect";
this.ySelect.Width = 60;
//
+ // yId
+ //
+ this.yId.DataPropertyName = "Id";
+ this.yId.HeaderText = "编号";
+ this.yId.Name = "yId";
+ this.yId.Visible = false;
+ //
+ // yName
+ //
+ this.yName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.yName.DataPropertyName = "Name";
+ this.yName.HeaderText = "器械名称";
+ this.yName.Name = "yName";
+ this.yName.ReadOnly = true;
+ //
+ // ApplianceNumber
+ //
+ this.ApplianceNumber.HeaderText = "使用数量";
+ this.ApplianceNumber.Name = "ApplianceNumber";
+ //
// groupBox1
//
this.groupBox1.Controls.Add(this.dgvD);
@@ -331,7 +353,7 @@
this.dgvD.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Id,
this.Index,
- this.Selectcol,
+ this.Select,
this.oName});
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
@@ -352,11 +374,33 @@
this.dgvD.TabIndex = 0;
this.dgvD.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvD_CellDoubleClick);
//
- // Selectcol
+ // Id
//
- this.Selectcol.HeaderText = "选择";
- this.Selectcol.Name = "Select";
- this.Selectcol.Width = 65;
+ this.Id.DataPropertyName = "Id";
+ this.Id.HeaderText = "编号";
+ this.Id.Name = "Id";
+ this.Id.Visible = false;
+ //
+ // Index
+ //
+ this.Index.HeaderText = "序号";
+ this.Index.Name = "Index";
+ this.Index.Visible = false;
+ this.Index.Width = 65;
+ //
+ // Select
+ //
+ this.Select.HeaderText = "选择";
+ this.Select.Name = "Select";
+ this.Select.Width = 65;
+ //
+ // oName
+ //
+ this.oName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.oName.DataPropertyName = "Name";
+ this.oName.HeaderText = "器械名称";
+ this.oName.Name = "oName";
+ this.oName.ReadOnly = true;
//
// dataGridViewTextBoxColumn1
//
@@ -400,47 +444,15 @@
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
this.dataGridViewTextBoxColumn6.ReadOnly = true;
//
- // yId
+ // buttonX1
//
- this.yId.DataPropertyName = "Id";
- this.yId.HeaderText = "编号";
- this.yId.Name = "yId";
- this.yId.Visible = false;
- //
- // yName
- //
- this.yName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
- this.yName.DataPropertyName = "Name";
- this.yName.HeaderText = "器械名称";
- this.yName.Name = "yName";
- this.yName.ReadOnly = true;
- //
- // ApplianceNumber
- //
- this.ApplianceNumber.HeaderText = "使用数量";
- this.ApplianceNumber.Name = "ApplianceNumber";
- //
- // Id
- //
- this.Id.DataPropertyName = "Id";
- this.Id.HeaderText = "编号";
- this.Id.Name = "Id";
- this.Id.Visible = false;
- //
- // Index
- //
- this.Index.HeaderText = "序号";
- this.Index.Name = "Index";
- this.Index.Visible = false;
- this.Index.Width = 65;
- //
- // oName
- //
- this.oName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
- this.oName.DataPropertyName = "Name";
- this.oName.HeaderText = "器械名称";
- this.oName.Name = "oName";
- this.oName.ReadOnly = true;
+ this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
+ this.buttonX1.Location = new System.Drawing.Point(627, 13);
+ this.buttonX1.Name = "buttonX1";
+ this.buttonX1.Size = new System.Drawing.Size(39, 30);
+ this.buttonX1.TabIndex = 2;
+ this.buttonX1.Text = "新增";
+ this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click);
//
// frmApplianceSelect
//
@@ -502,5 +514,7 @@
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
+ private DevComponents.DotNetBar.ButtonX buttonX1;
+ private System.Windows.Forms.DataGridViewCheckBoxColumn Select;
}
}
\ No newline at end of file
diff --git a/AIMS/DataDictionary/frmApplianceSelect.resx b/AIMS/DataDictionary/frmApplianceSelect.resx
index 7ef98c5..0d6dca7 100644
--- a/AIMS/DataDictionary/frmApplianceSelect.resx
+++ b/AIMS/DataDictionary/frmApplianceSelect.resx
@@ -135,9 +135,6 @@
True
-
- True
-
True
diff --git a/AIMS/OperationAanesthesia/frmInstrumentRecord2.Designer.cs b/AIMS/OperationAanesthesia/frmInstrumentRecord2.Designer.cs
index c28b834..4e8333c 100644
--- a/AIMS/OperationAanesthesia/frmInstrumentRecord2.Designer.cs
+++ b/AIMS/OperationAanesthesia/frmInstrumentRecord2.Designer.cs
@@ -72,8 +72,11 @@
this.superTabMain = new DevComponents.DotNetBar.SuperTabControl();
this.superTabControlPanel1 = new DevComponents.DotNetBar.SuperTabControlPanel();
this.panelExZKZB = new DevComponents.DotNetBar.PanelEx();
+ this.panel8 = new AIMS.PublicUI.UI.DrawPanel();
+ this.myEditControl = new DCSoft.Writer.Controls.WriterControl();
this.spTabQXQDD = new DevComponents.DotNetBar.SuperTabItem();
this.superTabControlPanel2 = new DevComponents.DotNetBar.SuperTabControlPanel();
+ this.panel9 = new AIMS.PublicUI.UI.DrawPanel();
this.spTabQXQDD2 = new DevComponents.DotNetBar.SuperTabItem();
this.panel7 = new System.Windows.Forms.Panel();
this.panel21 = new System.Windows.Forms.Panel();
@@ -104,45 +107,7 @@
this.txtInRoom1 = new System.Windows.Forms.Button();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
- this.panel8 = new AIMS.PublicUI.UI.DrawPanel();
- this.panelQX = new System.Windows.Forms.Panel();
- this.plBottom = new System.Windows.Forms.Panel();
- this.panelButton = new System.Windows.Forms.Panel();
- this.panelQXList = new System.Windows.Forms.Panel();
- this.plTital = new System.Windows.Forms.Panel();
- this.panel15 = new System.Windows.Forms.Panel();
- this.label11 = new System.Windows.Forms.Label();
- this.label12 = new System.Windows.Forms.Label();
- this.label13 = new System.Windows.Forms.Label();
- this.label14 = new System.Windows.Forms.Label();
- this.label15 = new System.Windows.Forms.Label();
- this.panel16 = new System.Windows.Forms.Panel();
- this.label65 = new System.Windows.Forms.Label();
- this.label57 = new System.Windows.Forms.Label();
- this.label59 = new System.Windows.Forms.Label();
- this.label66 = new System.Windows.Forms.Label();
- this.label58 = new System.Windows.Forms.Label();
- this.plTop = new System.Windows.Forms.Panel();
- this.panel9 = new AIMS.PublicUI.UI.DrawPanel();
- this.panelQX2 = new System.Windows.Forms.Panel();
- this.panel12 = new System.Windows.Forms.Panel();
- this.panel17 = new System.Windows.Forms.Panel();
- this.panelQXList2 = new System.Windows.Forms.Panel();
- this.panel19 = new System.Windows.Forms.Panel();
- this.panel20 = new System.Windows.Forms.Panel();
- this.label28 = new System.Windows.Forms.Label();
- this.label29 = new System.Windows.Forms.Label();
- this.label30 = new System.Windows.Forms.Label();
- this.label31 = new System.Windows.Forms.Label();
- this.label32 = new System.Windows.Forms.Label();
- this.label33 = new System.Windows.Forms.Label();
- this.panel22 = new System.Windows.Forms.Panel();
- this.label34 = new System.Windows.Forms.Label();
- this.label35 = new System.Windows.Forms.Label();
- this.label36 = new System.Windows.Forms.Label();
- this.label37 = new System.Windows.Forms.Label();
- this.label38 = new System.Windows.Forms.Label();
- this.label39 = new System.Windows.Forms.Label();
+ this.writerCommandControler1 = new DCSoft.Writer.Commands.WriterCommandControler(this.components);
this.panel3.SuspendLayout();
this.panel14.SuspendLayout();
this.panel4.SuspendLayout();
@@ -152,6 +117,7 @@
this.superTabMain.SuspendLayout();
this.superTabControlPanel1.SuspendLayout();
this.panelExZKZB.SuspendLayout();
+ this.panel8.SuspendLayout();
this.superTabControlPanel2.SuspendLayout();
this.panel7.SuspendLayout();
this.panel21.SuspendLayout();
@@ -168,18 +134,7 @@
this.panel6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtInRoom)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.picInRoom)).BeginInit();
- this.panel8.SuspendLayout();
- this.panelQX.SuspendLayout();
- this.plBottom.SuspendLayout();
- this.plTital.SuspendLayout();
- this.panel15.SuspendLayout();
- this.panel16.SuspendLayout();
- this.panel9.SuspendLayout();
- this.panelQX2.SuspendLayout();
- this.panel12.SuspendLayout();
- this.panel19.SuspendLayout();
- this.panel20.SuspendLayout();
- this.panel22.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.writerCommandControler1)).BeginInit();
this.SuspendLayout();
//
// panel2
@@ -264,6 +219,7 @@
this.button1.TabIndex = 16;
this.button1.Text = " 新增器械";
this.button1.UseVisualStyleBackColor = false;
+ this.button1.Visible = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button8
@@ -886,6 +842,26 @@
this.panelExZKZB.Style.GradientAngle = 90;
this.panelExZKZB.TabIndex = 0;
//
+ // panel8
+ //
+ this.panel8.AutoScroll = true;
+ this.panel8.BackColor = System.Drawing.Color.White;
+ this.panel8.Controls.Add(this.myEditControl);
+ this.panel8.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel8.Location = new System.Drawing.Point(0, 0);
+ this.panel8.Name = "panel8";
+ this.panel8.Size = new System.Drawing.Size(1389, 803);
+ this.panel8.TabIndex = 2;
+ this.panel8.Scroll += new System.Windows.Forms.ScrollEventHandler(this.panel8_Scroll);
+ //
+ // myEditControl
+ //
+ this.myEditControl.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.myEditControl.Location = new System.Drawing.Point(0, 0);
+ this.myEditControl.Name = "myEditControl";
+ this.myEditControl.Size = new System.Drawing.Size(1389, 803);
+ this.myEditControl.TabIndex = 6;
+ //
// spTabQXQDD
//
this.spTabQXQDD.AttachedControl = this.superTabControlPanel1;
@@ -903,6 +879,16 @@
this.superTabControlPanel2.TabIndex = 0;
this.superTabControlPanel2.TabItem = this.spTabQXQDD2;
//
+ // panel9
+ //
+ this.panel9.AutoScroll = true;
+ this.panel9.BackColor = System.Drawing.Color.White;
+ this.panel9.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel9.Location = new System.Drawing.Point(0, 0);
+ this.panel9.Name = "panel9";
+ this.panel9.Size = new System.Drawing.Size(1389, 803);
+ this.panel9.TabIndex = 3;
+ //
// spTabQXQDD2
//
this.spTabQXQDD2.AttachedControl = this.superTabControlPanel2;
@@ -947,7 +933,6 @@
this.plPrintBrowse.Size = new System.Drawing.Size(28, 28);
this.plPrintBrowse.TabIndex = 4;
this.toolTip1.SetToolTip(this.plPrintBrowse, "预览");
- this.plPrintBrowse.Visible = false;
this.plPrintBrowse.Click += new System.EventHandler(this.plPrintBrowse_Click);
//
// PanelSave
@@ -960,7 +945,6 @@
this.PanelSave.Size = new System.Drawing.Size(28, 28);
this.PanelSave.TabIndex = 3;
this.toolTip1.SetToolTip(this.PanelSave, "保存");
- this.PanelSave.Visible = false;
this.PanelSave.Click += new System.EventHandler(this.PanelSave_Click);
//
// plPrint
@@ -973,7 +957,6 @@
this.plPrint.Size = new System.Drawing.Size(28, 28);
this.plPrint.TabIndex = 3;
this.toolTip1.SetToolTip(this.plPrint, "打印");
- this.plPrint.Visible = false;
this.plPrint.Click += new System.EventHandler(this.plPrint_Click);
//
// plRefresh
@@ -986,7 +969,6 @@
this.plRefresh.Size = new System.Drawing.Size(28, 28);
this.plRefresh.TabIndex = 2;
this.toolTip1.SetToolTip(this.plRefresh, "刷新");
- this.plRefresh.Visible = false;
this.plRefresh.Click += new System.EventHandler(this.plRefresh_Click);
//
// lblRoom
@@ -1421,448 +1403,6 @@
this.flowLayoutPanel1.Size = new System.Drawing.Size(147, 71);
this.flowLayoutPanel1.TabIndex = 0;
//
- // panel8
- //
- this.panel8.AutoScroll = true;
- this.panel8.BackColor = System.Drawing.Color.White;
- this.panel8.Controls.Add(this.panelQX);
- this.panel8.Dock = System.Windows.Forms.DockStyle.Fill;
- this.panel8.Location = new System.Drawing.Point(0, 0);
- this.panel8.Name = "panel8";
- this.panel8.Size = new System.Drawing.Size(1389, 803);
- this.panel8.TabIndex = 2;
- this.panel8.Scroll += new System.Windows.Forms.ScrollEventHandler(this.panel8_Scroll);
- //
- // panelQX
- //
- this.panelQX.BackColor = System.Drawing.Color.White;
- this.panelQX.Controls.Add(this.plBottom);
- this.panelQX.Controls.Add(this.plTop);
- this.panelQX.Location = new System.Drawing.Point(217, 213);
- this.panelQX.Margin = new System.Windows.Forms.Padding(0);
- this.panelQX.Name = "panelQX";
- this.panelQX.Size = new System.Drawing.Size(952, 562);
- this.panelQX.TabIndex = 12;
- this.panelQX.Visible = false;
- //
- // plBottom
- //
- this.plBottom.BackColor = System.Drawing.Color.White;
- this.plBottom.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.plBottom.Controls.Add(this.panelButton);
- this.plBottom.Controls.Add(this.panelQXList);
- this.plBottom.Controls.Add(this.plTital);
- this.plBottom.Dock = System.Windows.Forms.DockStyle.Fill;
- this.plBottom.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.plBottom.Location = new System.Drawing.Point(0, 2);
- this.plBottom.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- this.plBottom.Name = "plBottom";
- this.plBottom.Size = new System.Drawing.Size(952, 560);
- this.plBottom.TabIndex = 1355;
- //
- // panelButton
- //
- this.panelButton.Dock = System.Windows.Forms.DockStyle.Top;
- this.panelButton.Location = new System.Drawing.Point(0, 425);
- this.panelButton.Name = "panelButton";
- this.panelButton.Size = new System.Drawing.Size(950, 141);
- this.panelButton.TabIndex = 1351;
- //
- // panelQXList
- //
- this.panelQXList.Dock = System.Windows.Forms.DockStyle.Top;
- this.panelQXList.Location = new System.Drawing.Point(0, 47);
- this.panelQXList.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- this.panelQXList.Name = "panelQXList";
- this.panelQXList.Size = new System.Drawing.Size(950, 378);
- this.panelQXList.TabIndex = 1350;
- //
- // plTital
- //
- this.plTital.BackColor = System.Drawing.SystemColors.Control;
- this.plTital.Controls.Add(this.panel15);
- this.plTital.Controls.Add(this.panel16);
- this.plTital.Dock = System.Windows.Forms.DockStyle.Top;
- this.plTital.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.plTital.Location = new System.Drawing.Point(0, 0);
- this.plTital.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- this.plTital.Name = "plTital";
- this.plTital.Size = new System.Drawing.Size(950, 47);
- this.plTital.TabIndex = 1349;
- //
- // panel15
- //
- this.panel15.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.panel15.Controls.Add(this.label11);
- this.panel15.Controls.Add(this.label12);
- this.panel15.Controls.Add(this.label13);
- this.panel15.Controls.Add(this.label14);
- this.panel15.Controls.Add(this.label15);
- this.panel15.Dock = System.Windows.Forms.DockStyle.Left;
- this.panel15.Location = new System.Drawing.Point(410, 0);
- this.panel15.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- this.panel15.Name = "panel15";
- this.panel15.Size = new System.Drawing.Size(410, 47);
- this.panel15.TabIndex = 13;
- //
- // label11
- //
- this.label11.AutoSize = true;
- this.label11.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label11.Location = new System.Drawing.Point(42, 5);
- this.label11.Name = "label11";
- this.label11.Size = new System.Drawing.Size(32, 34);
- this.label11.TabIndex = 9;
- this.label11.Text = "器械\r\n名称";
- //
- // label12
- //
- this.label12.AutoSize = true;
- this.label12.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label12.Location = new System.Drawing.Point(140, 5);
- this.label12.Margin = new System.Windows.Forms.Padding(0);
- this.label12.Name = "label12";
- this.label12.Size = new System.Drawing.Size(32, 34);
- this.label12.TabIndex = 10;
- this.label12.Text = "术前\r\n清点";
- this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // label13
- //
- this.label13.AutoSize = true;
- this.label13.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label13.Location = new System.Drawing.Point(208, 5);
- this.label13.Name = "label13";
- this.label13.Size = new System.Drawing.Size(32, 34);
- this.label13.TabIndex = 12;
- this.label13.Text = "术中\r\n加数";
- //
- // label14
- //
- this.label14.AutoSize = true;
- this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label14.Location = new System.Drawing.Point(276, 5);
- this.label14.Margin = new System.Windows.Forms.Padding(0);
- this.label14.Name = "label14";
- this.label14.Size = new System.Drawing.Size(32, 34);
- this.label14.TabIndex = 8;
- this.label14.Text = "关体\r\n腔前";
- //
- // label15
- //
- this.label15.AutoSize = true;
- this.label15.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label15.Location = new System.Drawing.Point(344, 5);
- this.label15.Name = "label15";
- this.label15.Size = new System.Drawing.Size(32, 34);
- this.label15.TabIndex = 11;
- this.label15.Text = "关体\r\n腔后";
- //
- // panel16
- //
- this.panel16.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.panel16.Controls.Add(this.label65);
- this.panel16.Controls.Add(this.label57);
- this.panel16.Controls.Add(this.label59);
- this.panel16.Controls.Add(this.label66);
- this.panel16.Controls.Add(this.label58);
- this.panel16.Dock = System.Windows.Forms.DockStyle.Left;
- this.panel16.Location = new System.Drawing.Point(0, 0);
- this.panel16.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- this.panel16.Name = "panel16";
- this.panel16.Size = new System.Drawing.Size(410, 47);
- this.panel16.TabIndex = 11;
- //
- // label65
- //
- this.label65.AutoSize = true;
- this.label65.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label65.Location = new System.Drawing.Point(46, 5);
- this.label65.Name = "label65";
- this.label65.Size = new System.Drawing.Size(32, 34);
- this.label65.TabIndex = 9;
- this.label65.Text = "器械\r\n名称";
- //
- // label57
- //
- this.label57.AutoSize = true;
- this.label57.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label57.Location = new System.Drawing.Point(139, 5);
- this.label57.Margin = new System.Windows.Forms.Padding(0);
- this.label57.Name = "label57";
- this.label57.Size = new System.Drawing.Size(32, 34);
- this.label57.TabIndex = 10;
- this.label57.Text = "术前\r\n清点";
- this.label57.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // label59
- //
- this.label59.AutoSize = true;
- this.label59.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label59.Location = new System.Drawing.Point(277, 5);
- this.label59.Margin = new System.Windows.Forms.Padding(0);
- this.label59.Name = "label59";
- this.label59.Size = new System.Drawing.Size(32, 34);
- this.label59.TabIndex = 8;
- this.label59.Text = "关体\r\n腔前";
- //
- // label66
- //
- this.label66.AutoSize = true;
- this.label66.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label66.Location = new System.Drawing.Point(346, 5);
- this.label66.Name = "label66";
- this.label66.Size = new System.Drawing.Size(32, 34);
- this.label66.TabIndex = 11;
- this.label66.Text = "关体\r\n腔后";
- //
- // label58
- //
- this.label58.AutoSize = true;
- this.label58.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label58.Location = new System.Drawing.Point(208, 5);
- this.label58.Name = "label58";
- this.label58.Size = new System.Drawing.Size(32, 34);
- this.label58.TabIndex = 12;
- this.label58.Text = "术中\r\n加数";
- //
- // plTop
- //
- this.plTop.BackColor = System.Drawing.Color.White;
- this.plTop.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.plTop.Dock = System.Windows.Forms.DockStyle.Top;
- this.plTop.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.plTop.Location = new System.Drawing.Point(0, 0);
- this.plTop.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- this.plTop.Name = "plTop";
- this.plTop.Size = new System.Drawing.Size(952, 2);
- this.plTop.TabIndex = 22;
- //
- // panel9
- //
- this.panel9.AutoScroll = true;
- this.panel9.BackColor = System.Drawing.Color.White;
- this.panel9.Controls.Add(this.panelQX2);
- this.panel9.Dock = System.Windows.Forms.DockStyle.Fill;
- this.panel9.Location = new System.Drawing.Point(0, 0);
- this.panel9.Name = "panel9";
- this.panel9.Size = new System.Drawing.Size(1389, 803);
- this.panel9.TabIndex = 3;
- //
- // panelQX2
- //
- this.panelQX2.BackColor = System.Drawing.Color.White;
- this.panelQX2.Controls.Add(this.panel12);
- this.panelQX2.Location = new System.Drawing.Point(39, 54);
- this.panelQX2.Margin = new System.Windows.Forms.Padding(0);
- this.panelQX2.Name = "panelQX2";
- this.panelQX2.Size = new System.Drawing.Size(952, 650);
- this.panelQX2.TabIndex = 12;
- this.panelQX2.Visible = false;
- //
- // panel12
- //
- this.panel12.BackColor = System.Drawing.Color.White;
- this.panel12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.panel12.Controls.Add(this.panel17);
- this.panel12.Controls.Add(this.panelQXList2);
- this.panel12.Controls.Add(this.panel19);
- this.panel12.Dock = System.Windows.Forms.DockStyle.Fill;
- this.panel12.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.panel12.Location = new System.Drawing.Point(0, 0);
- this.panel12.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- this.panel12.Name = "panel12";
- this.panel12.Size = new System.Drawing.Size(952, 650);
- this.panel12.TabIndex = 1355;
- //
- // panel17
- //
- this.panel17.Dock = System.Windows.Forms.DockStyle.Top;
- this.panel17.Location = new System.Drawing.Point(0, 425);
- this.panel17.Name = "panel17";
- this.panel17.Size = new System.Drawing.Size(950, 149);
- this.panel17.TabIndex = 1351;
- //
- // panelQXList2
- //
- this.panelQXList2.Dock = System.Windows.Forms.DockStyle.Top;
- this.panelQXList2.Location = new System.Drawing.Point(0, 47);
- this.panelQXList2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- this.panelQXList2.Name = "panelQXList2";
- this.panelQXList2.Size = new System.Drawing.Size(950, 378);
- this.panelQXList2.TabIndex = 1350;
- //
- // panel19
- //
- this.panel19.BackColor = System.Drawing.SystemColors.Control;
- this.panel19.Controls.Add(this.panel20);
- this.panel19.Controls.Add(this.panel22);
- this.panel19.Dock = System.Windows.Forms.DockStyle.Top;
- this.panel19.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.panel19.Location = new System.Drawing.Point(0, 0);
- this.panel19.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- this.panel19.Name = "panel19";
- this.panel19.Size = new System.Drawing.Size(950, 47);
- this.panel19.TabIndex = 1349;
- //
- // panel20
- //
- this.panel20.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.panel20.Controls.Add(this.label28);
- this.panel20.Controls.Add(this.label29);
- this.panel20.Controls.Add(this.label30);
- this.panel20.Controls.Add(this.label31);
- this.panel20.Controls.Add(this.label32);
- this.panel20.Controls.Add(this.label33);
- this.panel20.Dock = System.Windows.Forms.DockStyle.Fill;
- this.panel20.Location = new System.Drawing.Point(477, 0);
- this.panel20.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- this.panel20.Name = "panel20";
- this.panel20.Size = new System.Drawing.Size(473, 47);
- this.panel20.TabIndex = 13;
- //
- // label28
- //
- this.label28.AutoSize = true;
- this.label28.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label28.Location = new System.Drawing.Point(42, 5);
- this.label28.Name = "label28";
- this.label28.Size = new System.Drawing.Size(32, 34);
- this.label28.TabIndex = 9;
- this.label28.Text = "器械\r\n名称";
- //
- // label29
- //
- this.label29.AutoSize = true;
- this.label29.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label29.Location = new System.Drawing.Point(140, 5);
- this.label29.Margin = new System.Windows.Forms.Padding(0);
- this.label29.Name = "label29";
- this.label29.Size = new System.Drawing.Size(32, 34);
- this.label29.TabIndex = 10;
- this.label29.Text = "术前\r\n清点";
- this.label29.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // label30
- //
- this.label30.AutoSize = true;
- this.label30.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label30.Location = new System.Drawing.Point(208, 5);
- this.label30.Name = "label30";
- this.label30.Size = new System.Drawing.Size(32, 34);
- this.label30.TabIndex = 12;
- this.label30.Text = "术中\r\n加数";
- //
- // label31
- //
- this.label31.AutoSize = true;
- this.label31.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label31.Location = new System.Drawing.Point(276, 5);
- this.label31.Margin = new System.Windows.Forms.Padding(0);
- this.label31.Name = "label31";
- this.label31.Size = new System.Drawing.Size(32, 34);
- this.label31.TabIndex = 8;
- this.label31.Text = "关体\r\n腔前";
- //
- // label32
- //
- this.label32.AutoSize = true;
- this.label32.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label32.Location = new System.Drawing.Point(412, 5);
- this.label32.Name = "label32";
- this.label32.Size = new System.Drawing.Size(32, 34);
- this.label32.TabIndex = 11;
- this.label32.Text = "缝合\r\n皮后";
- //
- // label33
- //
- this.label33.AutoSize = true;
- this.label33.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label33.Location = new System.Drawing.Point(344, 5);
- this.label33.Name = "label33";
- this.label33.Size = new System.Drawing.Size(32, 34);
- this.label33.TabIndex = 11;
- this.label33.Text = "关体\r\n腔后";
- //
- // panel22
- //
- this.panel22.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.panel22.Controls.Add(this.label34);
- this.panel22.Controls.Add(this.label35);
- this.panel22.Controls.Add(this.label36);
- this.panel22.Controls.Add(this.label37);
- this.panel22.Controls.Add(this.label38);
- this.panel22.Controls.Add(this.label39);
- this.panel22.Dock = System.Windows.Forms.DockStyle.Left;
- this.panel22.Location = new System.Drawing.Point(0, 0);
- this.panel22.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- this.panel22.Name = "panel22";
- this.panel22.Size = new System.Drawing.Size(477, 47);
- this.panel22.TabIndex = 11;
- //
- // label34
- //
- this.label34.AutoSize = true;
- this.label34.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label34.Location = new System.Drawing.Point(46, 5);
- this.label34.Name = "label34";
- this.label34.Size = new System.Drawing.Size(32, 34);
- this.label34.TabIndex = 9;
- this.label34.Text = "器械\r\n名称";
- //
- // label35
- //
- this.label35.AutoSize = true;
- this.label35.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label35.Location = new System.Drawing.Point(139, 5);
- this.label35.Margin = new System.Windows.Forms.Padding(0);
- this.label35.Name = "label35";
- this.label35.Size = new System.Drawing.Size(32, 34);
- this.label35.TabIndex = 10;
- this.label35.Text = "术前\r\n清点";
- this.label35.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // label36
- //
- this.label36.AutoSize = true;
- this.label36.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label36.Location = new System.Drawing.Point(277, 5);
- this.label36.Margin = new System.Windows.Forms.Padding(0);
- this.label36.Name = "label36";
- this.label36.Size = new System.Drawing.Size(32, 34);
- this.label36.TabIndex = 8;
- this.label36.Text = "关体\r\n腔前";
- //
- // label37
- //
- this.label37.AutoSize = true;
- this.label37.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label37.Location = new System.Drawing.Point(415, 5);
- this.label37.Name = "label37";
- this.label37.Size = new System.Drawing.Size(32, 34);
- this.label37.TabIndex = 11;
- this.label37.Text = "缝合\r\n皮后";
- //
- // label38
- //
- this.label38.AutoSize = true;
- this.label38.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label38.Location = new System.Drawing.Point(346, 5);
- this.label38.Name = "label38";
- this.label38.Size = new System.Drawing.Size(32, 34);
- this.label38.TabIndex = 11;
- this.label38.Text = "关体\r\n腔后";
- //
- // label39
- //
- this.label39.AutoSize = true;
- this.label39.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label39.Location = new System.Drawing.Point(208, 5);
- this.label39.Name = "label39";
- this.label39.Size = new System.Drawing.Size(32, 34);
- this.label39.TabIndex = 12;
- this.label39.Text = "术中\r\n加数";
- //
// frmInstrumentRecord2
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -1885,6 +1425,7 @@
this.superTabMain.ResumeLayout(false);
this.superTabControlPanel1.ResumeLayout(false);
this.panelExZKZB.ResumeLayout(false);
+ this.panel8.ResumeLayout(false);
this.superTabControlPanel2.ResumeLayout(false);
this.panel7.ResumeLayout(false);
this.panel7.PerformLayout();
@@ -1902,22 +1443,7 @@
this.panel6.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.txtInRoom)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.picInRoom)).EndInit();
- this.panel8.ResumeLayout(false);
- this.panelQX.ResumeLayout(false);
- this.plBottom.ResumeLayout(false);
- this.plTital.ResumeLayout(false);
- this.panel15.ResumeLayout(false);
- this.panel15.PerformLayout();
- this.panel16.ResumeLayout(false);
- this.panel16.PerformLayout();
- this.panel9.ResumeLayout(false);
- this.panelQX2.ResumeLayout(false);
- this.panel12.ResumeLayout(false);
- this.panel19.ResumeLayout(false);
- this.panel20.ResumeLayout(false);
- this.panel20.PerformLayout();
- this.panel22.ResumeLayout(false);
- this.panel22.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.writerCommandControler1)).EndInit();
this.ResumeLayout(false);
}
@@ -1973,54 +1499,17 @@
private System.Windows.Forms.Button btnsbwh;
private System.Windows.Forms.Button btndptz;
private System.Windows.Forms.Button btnsjzx;
- private System.Windows.Forms.Panel panelQX;
- private System.Windows.Forms.Panel plBottom;
- private System.Windows.Forms.Panel panelQXList;
- private System.Windows.Forms.Panel plTital;
- private System.Windows.Forms.Panel panel15;
- private System.Windows.Forms.Label label11;
- private System.Windows.Forms.Label label12;
- private System.Windows.Forms.Label label13;
- private System.Windows.Forms.Label label14;
- private System.Windows.Forms.Label label15;
- private System.Windows.Forms.Panel panel16;
- private System.Windows.Forms.Label label65;
- private System.Windows.Forms.Label label57;
- private System.Windows.Forms.Label label59;
- private System.Windows.Forms.Label label66;
- private System.Windows.Forms.Label label58;
- private System.Windows.Forms.Panel plTop;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Panel PanelSave;
private DevComponents.DotNetBar.SuperTabControl superTabMain;
private DevComponents.DotNetBar.SuperTabControlPanel superTabControlPanel1;
private DevComponents.DotNetBar.PanelEx panelExZKZB;
private DevComponents.DotNetBar.SuperTabItem spTabQXQDD;
- private System.Windows.Forms.Panel panelButton;
private System.Windows.Forms.Button button9;
private System.Windows.Forms.ToolTip toolTip1;
private DevComponents.DotNetBar.SuperTabControlPanel superTabControlPanel2;
private DevComponents.DotNetBar.SuperTabItem spTabQXQDD2;
private PublicUI.UI.DrawPanel panel9;
- private System.Windows.Forms.Panel panelQX2;
- private System.Windows.Forms.Panel panel12;
- private System.Windows.Forms.Panel panel17;
- private System.Windows.Forms.Panel panelQXList2;
- private System.Windows.Forms.Panel panel19;
- private System.Windows.Forms.Panel panel20;
- private System.Windows.Forms.Label label28;
- private System.Windows.Forms.Label label29;
- private System.Windows.Forms.Label label30;
- private System.Windows.Forms.Label label31;
- private System.Windows.Forms.Label label32;
- private System.Windows.Forms.Label label33;
- private System.Windows.Forms.Panel panel22;
- private System.Windows.Forms.Label label34;
- private System.Windows.Forms.Label label35;
- private System.Windows.Forms.Label label36;
- private System.Windows.Forms.Label label37;
- private System.Windows.Forms.Label label38;
- private System.Windows.Forms.Label label39;
private System.Windows.Forms.Button btnChage;
private System.Windows.Forms.Label lblSpo2;
private System.Windows.Forms.Label lblRESP;
@@ -2037,5 +1526,7 @@
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label1;
+ private DCSoft.Writer.Controls.WriterControl myEditControl;
+ private DCSoft.Writer.Commands.WriterCommandControler writerCommandControler1;
}
}
\ No newline at end of file
diff --git a/AIMS/OperationAanesthesia/frmInstrumentRecord2.cs b/AIMS/OperationAanesthesia/frmInstrumentRecord2.cs
index 3eae79c..11392a6 100644
--- a/AIMS/OperationAanesthesia/frmInstrumentRecord2.cs
+++ b/AIMS/OperationAanesthesia/frmInstrumentRecord2.cs
@@ -5,6 +5,9 @@ using AIMS.PublicUI.UI;
using AIMSBLL;
using AIMSExtension;
using AIMSModel;
+using DCSoft.Writer;
+using DCSoft.Writer.Data;
+using DCSoft.Writer.Dom;
using DevComponents.Editors.DateTimeAdv;
using DocumentManagement;
using DrawGraph;
@@ -13,10 +16,13 @@ using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
+using System.Diagnostics;
using System.Drawing;
-using System.Drawing.Printing;
using System.Linq;
+using System.Reflection;
using System.Windows.Forms;
+using System.Xml;
+using System.Xml.Linq;
namespace AIMS.OperationAanesthesia
{
@@ -24,8 +30,6 @@ namespace AIMS.OperationAanesthesia
{
#region 初始化
public OperationRecord _record;
- public PatientRecord _Patient;
- //public TemplateManage templateManage;
public AIMSModel.OperationRoom NowRoom;
private DataTable _appliance;
private DataTable _appliance2;
@@ -37,6 +41,19 @@ namespace AIMS.OperationAanesthesia
private System.Windows.Forms.Timer timerGetTextCollectorData;
public AIMSExtension.EditState State;
public bool isReadOnly = false;
+ public List QXList;
+
+ //模板Model
+ private PrintTemplate TModel = new PrintTemplate();
+ //文档Model
+ private PrintDocument DModel = new PrintDocument();
+ //患者Id
+ public PatientRecord Patient = new PatientRecord();
+ //容器tab
+ //public TabItem Tb;
+ //文档事件
+ private EventCodeCompiler codeCompiler;
+ private string strClick, strContentChanged;
public frmInstrumentRecord2()
{
@@ -46,14 +63,13 @@ namespace AIMS.OperationAanesthesia
this.picOpeBegin.BackgroundImage = global::AIMS.Properties.Resources.手术开始;
this.picOpeEnd.BackgroundImage = global::AIMS.Properties.Resources.手术结束;
this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室;
- #endregion
- //AIMSExtension.PublicMethod.SetLocalDateTime();
+ #endregion
}
private void frmAnasRecordInstrument_Load(object sender, EventArgs e)
{
labOperatorName.Text = "(" + AIMSExtension.PublicMethod.OperatorNo + ")" + " " + AIMSExtension.PublicMethod.OperatorName;
- if (NowRoom != null) lblRoom.Text = NowRoom.Name;
+ if (NowRoom != null) lblRoom.Text = NowRoom.Name;
//this.MaximizeBox = false;
this.MinimizeBox = false;
@@ -61,6 +77,37 @@ namespace AIMS.OperationAanesthesia
{
btnChage.Visible = true;
}
+ QXList = new List() {
+ "1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","61","62","63",
+ "21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","64","65","66",
+ "41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","67","68","69"
+
+ };
+
+ //myEditControl初始化
+ myEditControl.MoveFocusHotKey = MoveFocusHotKeys.Tab;
+ myEditControl.HeaderFooterReadonly = true;
+ myEditControl.CommandControler = this.writerCommandControler1;
+ writerCommandControler1.Start();
+ //表单视图模式
+ myEditControl.FormView = DCSoft.Writer.Controls.FormViewMode.Strict;
+ //加载知识库
+ //DocumentDAL.LoadKBLibaray();
+ myEditControl.ExecuteCommand("LoadKBLibrary", false, DocumentDAL.Lib);
+ // 注册自定义的输入域下拉列表提供者
+ myEditControl.AppHost.Services.AddService(
+ typeof(IListItemsProvider),
+ new MyListItemsProvider());
+ //// 设置文档处于调试模式
+ //myEditControl.DocumentOptions.BehaviorOptions.DebugMode = true;
+ //myEditControl.DocumentOptions.BehaviorOptions.InsertCommentBindingUserTrack = true;
+ //启用逻辑删除、权限控制
+ myEditControl.Document.Options.SecurityOptions.EnablePermission = true;
+ myEditControl.Document.Options.SecurityOptions.EnableLogicDelete = true;
+ myEditControl.Document.Options.SecurityOptions.ShowLogicDeletedContent = true;
+ myEditControl.Document.Options.SecurityOptions.ShowPermissionMark = true;
+ myEditControl.Document.Options.SecurityOptions.ShowPermissionTip = true;
+
LoadAnesRescue();
}
@@ -168,7 +215,7 @@ namespace AIMS.OperationAanesthesia
if (Inevent != null)
{
_record.FactEventsList.Add(Inevent);
- DrawEvent();
+ ReviewEvent();
}
}
///
@@ -190,7 +237,7 @@ namespace AIMS.OperationAanesthesia
if (Inevent != null)
{
- DrawEvent();
+ ReviewEvent();
}
}
///
@@ -216,7 +263,7 @@ namespace AIMS.OperationAanesthesia
{
tb.ButtonDropDown.Visible = false;
_record.FactEventsList.Remove(Inevent);
- DrawEvent();
+ ReviewEvent();
}
}
///
@@ -241,7 +288,6 @@ namespace AIMS.OperationAanesthesia
}
BFactEvents.DeleteById(Inevent.Id.ToString());
- //Inevent.clearAddObj(zgcAnaesRecord);
tb.CustomFormat = " ";
tb.Value = DateTime.Now;
tb.Tag = null;
@@ -370,6 +416,7 @@ namespace AIMS.OperationAanesthesia
private void plRefresh_Click(object sender, EventArgs e)
{
if (PatientId == 0) return;
+
//刷新到当前页
ReviewEvent();
}
@@ -393,8 +440,7 @@ namespace AIMS.OperationAanesthesia
private System.Windows.Forms.Timer timerLoadAnesRescue;
public void LoadAnesRescue()
- {
- //zgcAnaesRecord.Visible = false;
+ {
timerLoadAnesRescue = new System.Windows.Forms.Timer(components);
timerLoadAnesRescue.Enabled = true;//调试时设置为FALSE ,
timerLoadAnesRescue.Interval = 300;
@@ -419,10 +465,10 @@ namespace AIMS.OperationAanesthesia
ClearTimeText();
btnSelectPatient.Enabled = false;
- ucDocumentGoodsBill doc = new ucDocumentGoodsBill(77, 0, _Patient);// int.Parse(node.Tag.ToString())
- doc.Parent = panel8;
- doc.Dock = DockStyle.Fill;
- doc.Show();
+ _record = BOperationRecord.getRecord(_record, -1, 2);
+ Patient = PatientRecord.GetPatientRecord(PatientId);
+ DModel = DocumentDAL.GetDocumentbyName("手术护理记录单", Patient.PatientId);
+ LoadDocumentGoodsBill();
StartTimer();
}
catch
@@ -435,17 +481,11 @@ namespace AIMS.OperationAanesthesia
_record = new OperationRecord();
btnSelectPatient.Enabled = false; //清空记录点并重新加载
ClearTimeText();
- //if (templateManage != null)
- //{
- // templateManage.ControlClear();
- //}
- //DrawAnasReordBill.IniDrawAnasReordBill4(_record, zgcAnaesRecord, ref templateManage);
- _Patient = PatientRecord.GetPatientRecord(PatientId);
- ucDocumentGoodsBill doc = new ucDocumentGoodsBill(77, 0, _Patient);// int.Parse(node.Tag.ToString())
- doc.Parent = panel8;
- doc.Dock = DockStyle.Fill;
- doc.Show();
+ _record = BOperationRecord.getRecord(_record, -1, 2);
+ Patient = PatientRecord.GetPatientRecord(PatientId);
+ DModel = DocumentDAL.GetDocumentbyName("手术护理记录单", Patient.PatientId);
+ LoadDocumentGoodsBill();
StartTimer();
}
else if (PatientId > 0 && State == AIMSExtension.EditState.BROWSE)
@@ -455,35 +495,24 @@ namespace AIMS.OperationAanesthesia
btnCancelOperation.Enabled = false;
btnCancelIn.Enabled = false;
ClearTimeText();
- //if (templateManage != null)
- //{
- // templateManage.ControlClear();
- //}
- //DrawAnasReordBill.IniDrawAnasReordBill4(_record, zgcAnaesRecord, ref templateManage);
- _Patient = PatientRecord.GetPatientRecord(PatientId);
- ucDocumentGoodsBill doc = new ucDocumentGoodsBill(77, 0, _Patient);// int.Parse(node.Tag.ToString())
- doc.Parent = panel8;
- doc.Dock = DockStyle.Fill;
- doc.Show();
+ _record = BOperationRecord.getRecord(_record, -1, 2);
+ Patient = PatientRecord.GetPatientRecord(PatientId);
+ DModel = DocumentDAL.GetDocumentbyName("手术护理记录单", Patient.PatientId);
+ LoadDocumentGoodsBill();
StartTimer();
}
- //AbleEditPackObj ableEdit = templateManage.GetPackObjectOTag("InstrumentDataManage_AbleEditPackObj_40_OperationRecord_SpareTen");
- Panel pan = new Panel();
- if (pan != null)
+
+ if (_record.InstrumentList != null && _record.InstrumentList.Id != null && _record.InstrumentList.ApplianceUseType != null)
{
- this.panel8.Controls.Remove(this.panelQX);
- panelQX.Visible = true;
- panelQX.Dock = DockStyle.Fill;
- pan.Controls.Add(panelQX);
- //pan.Size = new System.Drawing.Size(templateManage.ZedControl.Width, (int)(templateManage.ZedControl.Height * 0.4));
-
- panelQX2.Visible = true;
- panelQX2.Size = new Size(panel9.Size.Width - 10, pan.Size.Height);
- panelQX2.Location = new Point(pan.Location.X, 40);
-
+ LoadOperationGoodsBillRecord();
+ }
+ else
+ {
+ FirstbtnEnter();
}
plRefresh_Click(null, null);
+
if (_record.MedicalRecord != null && _record.MedicalRecord != "")
{
btnOperationInfo.Enabled = false;
@@ -513,9 +542,7 @@ namespace AIMS.OperationAanesthesia
txtOutRoom.LostFocus += new EventHandler(txtDateTime_LostFocus);
txtOperationBegin.LostFocus += new EventHandler(txtDateTime_LostFocus);
txtOperationEnd.LostFocus += new EventHandler(txtDateTime_LostFocus);
- }
- //zgcAnaesRecord.Visible = true;
-
+ }
}
private void btnOperationInfo_Click(object sender, EventArgs e)
@@ -663,7 +690,7 @@ namespace AIMS.OperationAanesthesia
_appliance = ReturnApply._appliance;
if (ddr == System.Windows.Forms.DialogResult.OK && _appliance != null)
{
- FullUcControlsToPanel(panelQXList, _appliance, _record.InstrumentList, ref i1, ref j1);
+ FullUcControlsToPanel(QXList, _appliance, _record.InstrumentList, ref i1, ref j1);
//if (_appliance.Rows.Count > 60)
// MessageBox.Show("超出打印数量!");
}
@@ -678,7 +705,7 @@ namespace AIMS.OperationAanesthesia
_appliance2 = ReturnApply._appliance;
if (ddr == System.Windows.Forms.DialogResult.OK && _appliance2 != null)
{
- FullUcControlsToPanel(panelQXList2, _appliance2, _record.InstrumentList2, ref i2, ref j2);
+ //FullUcControlsToPanel(panelQXList2, _appliance2, _record.InstrumentList2, ref i2, ref j2);
//if (_appliance.Rows.Count > 60)
// MessageBox.Show("超出打印数量!");
}
@@ -856,69 +883,30 @@ namespace AIMS.OperationAanesthesia
{
if (PatientId != 0)
{
- //templateManage.OpeRecord = BOperationRecord.getRecord(_record, PatientId, RecoverId);
- //templateManage.BindOperationRecordValueAll(templateManage.OpeRecord);
- //reDrawEvent();
- //templateManage.Bind();
+ _record = BOperationRecord.getRecord(_record, PatientId, RecoverId);
+ Patient = PatientRecord.GetPatientRecord(PatientId);
+ reDrawEvent();
- if (_record.InstrumentList != null && _record.InstrumentList.Id != null && _record.InstrumentList.ApplianceUseType != null)
+ //患者基本信息二次赋值
+ var query = from XTextElement in myEditControl.Document.Fields.ToArray()
+ where XTextElement is XTextInputFieldElement
+ && (XTextElement as XTextInputFieldElement).FieldSettings != null
+ && (XTextElement as XTextInputFieldElement).FieldSettings.EditStyle != InputFieldEditStyle.Date
+ && (XTextElement as XTextInputFieldElement).FieldSettings.ListSource != null
+ select XTextElement as XTextInputFieldElement;
+ DataRow[] dr = DocumentDAL.GetReflectionList("V_OperationRecordALL").Select("KB_SEQ <> '' and Reload=1");
+ var p = typeof(PatientRecord).GetProperties();
+ for (int i = 0; i < dr.Count(); i++)
{
- //txtInstrumentNurse.Text = _record.InstrumentList.InstrumentNurse;
- //txtTourNurse.Text = _record.InstrumentList.TourNurse;
- //txtRemark.Text = _record.InstrumentList.Remark;
- LoadOperationGoodsBillRecord();
+ var name = dr[i].ItemArray[0].ToString();
+ var value = dr[i].ItemArray[1].ToString();
+ XTextInputFieldElement element = query.Where(x => x.FieldSettings.ListSource.SourceName == value).FirstOrDefault();
+ PropertyInfo info = p.Where(px => px.Name == name).FirstOrDefault();
+ if (element != null && info != null)
+ {
+ element.Text = info.GetValue(Patient, null).ToString();
+ }
}
- else
- {
- FirstbtnEnter();
- }
-
- if (_record.InstrumentList2 != null && _record.InstrumentList2.Id != null && _record.InstrumentList.ApplianceUseType != null)
- {
- //txtInstrumentNurse2.Text = _record.InstrumentList2.InstrumentNurse;
- //txtTourNurse2.Text = _record.InstrumentList2.TourNurse;
- //txtRemark2.Text = _record.InstrumentList2.Remark;
- LoadOperationGoodsBillRecord2();
- }
- else
- {
- FirstbtnEnter2();
- }
-
- //SelectOperationDoctorData = BFactPersonDuty.GetPersonIdList(_record.PatientId.Value, 1);
- //if (SelectOperationDoctorData.Count > 0)
- //{
- // txtOperationDoctor.Text = "";
-
- // foreach (int RowId in SelectOperationDoctorData)
- // {
- // txtOperationDoctor.Text += BPerson.SelectSingle(RowId).Name + ",";
- // }
- // txtOperationDoctor.Text = txtOperationDoctor.Text.Substring(0, txtOperationDoctor.Text.LastIndexOf(","));
- //}
-
- //SelectInstrumentNurseData = BFactPersonDuty.GetPersonIdList(_record.PatientId.Value, 6);
- //if (SelectInstrumentNurseData.Count > 0)
- //{
- // txtInstrumentNurse.Text = "";
-
- // foreach (int RowId in SelectInstrumentNurseData)
- // {
- // txtInstrumentNurse.Text += BPerson.SelectSingle(RowId).Name + ",";
- // }
- // txtInstrumentNurse.Text = txtInstrumentNurse.Text.Substring(0, txtInstrumentNurse.Text.LastIndexOf(","));
- //}
-
- //SelectTourNurseData = BFactPersonDuty.GetPersonIdList(_record.PatientId.Value, 7);
- //if (SelectTourNurseData.Count > 0)
- //{
- // txtTourNurse.Text = "";
- // foreach (int RowId in SelectTourNurseData)
- // {
- // txtTourNurse.Text += BPerson.SelectSingle(RowId).Name + ",";
- // }
- // txtTourNurse.Text = txtTourNurse.Text.Substring(0, txtTourNurse.Text.LastIndexOf(","));
- //}
}
}
catch (Exception ex)
@@ -968,7 +956,7 @@ namespace AIMS.OperationAanesthesia
txtOutRoom.Value = _record.OutRoomTime.Value;
this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室_select;
}
-
+ //回写时间数据到文书
if (_record.OutRoomTime != null && _record.StateName == "手术中")
{
txtOutRoom.CustomFormat = "MM-dd HH:mm";
@@ -1111,8 +1099,7 @@ namespace AIMS.OperationAanesthesia
//txtRemark.Text = "";
//txtInstrumentNurse.Text = "";
//txtTourNurse.Text = "";
- //txtOperationDoctor.Text = "";
- panelQXList.Controls.Clear();
+ //txtOperationDoctor.Text = "";
_record = null;
}
private void ModifyApply_Click(object sender, EventArgs e)
@@ -1199,8 +1186,8 @@ namespace AIMS.OperationAanesthesia
}
_appliance = newDataTable;
}
- if (_appliance != null)
- FullUcControlsToPanel(panelQXList, _appliance, _record.InstrumentList, ref i1, ref j1);
+ //if (_appliance != null)
+ //FullUcControlsToPanel(panelQXList, _appliance, _record.InstrumentList, ref i1, ref j1);
}
}
private void LoadOperationGoodsBillRecord2()
@@ -1232,8 +1219,8 @@ namespace AIMS.OperationAanesthesia
}
_appliance2 = newDataTable;
}
- if (_appliance2 != null)
- FullUcControlsToPanel(panelQXList2, _appliance2, _record.InstrumentList2, ref i2, ref j2);
+ //if (_appliance2 != null)
+ // FullUcControlsToPanel(panelQXList2, _appliance2, _record.InstrumentList2, ref i2, ref j2);
}
}
@@ -1265,7 +1252,7 @@ namespace AIMS.OperationAanesthesia
}
}
_appliance = newDataTable;
- FullUcControlsToPanel(panelQXList, _appliance, _record.InstrumentList, ref i1, ref j1);
+ FullUcControlsToPanel(QXList, _appliance, _record.InstrumentList, ref i1, ref j1);
}
}
private void FirstbtnEnter2()
@@ -1293,7 +1280,7 @@ namespace AIMS.OperationAanesthesia
}
}
_appliance2 = newDataTable;
- FullUcControlsToPanel(panelQXList2, _appliance2, _record.InstrumentList2, ref i1, ref j1);
+ //FullUcControlsToPanel(panelQXList2, _appliance2, _record.InstrumentList2, ref i1, ref j1);
}
}
#endregion
@@ -1308,40 +1295,39 @@ namespace AIMS.OperationAanesthesia
///
/// 指定的Panel
/// 物品数据表
- private void FullUcControlsToPanel(Panel panel, DataTable dt, OperationRecordInstrumentList Instrument, ref int i, ref int j)
+ private void FullUcControlsToPanel(List panel, DataTable dt, OperationRecordInstrumentList Instrument, ref int i, ref int j)
{
- i = 0; j = 0; Incount = 0;
- panel.Controls.Clear();
+ //i = 0; j = 0; Incount = 0;
foreach (DataRow dr in dt.Rows)
{
- if (Incount >= 51)
+ if (Incount >= 70)
break;
- ApplianceRecord applic = null;
- if (Instrument.ApplianceRecordList != null && Instrument.ApplianceRecordList.Count > 0)
- {
- foreach (ApplianceRecord app in Instrument.ApplianceRecordList)
- {
- if (app.ApplianceId != null && app.ApplianceId == Convert.ToInt32(dr["Id"]))
- {
- applic = app;
- break;
- }
- }
- }
- //if (applic == null) continue;
- UCOperationGoodsBill5 uc = new UCOperationGoodsBill5(applic);
- uc.SelectTextBoxEvent += Uc_SelectTextBoxEvent;
- uc.OperationRecordId = Convert.ToInt32(_record.Id);
- uc.GoodsId = Convert.ToInt32(dr["Id"]);
- uc.GoodsName = dr["Name"].ToString();
- if (applic == null)
+ var BillText = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).Name == QXList[Incount]).FirstOrDefault();
+ if (BillText != null)
{
+ BillText.OuterText = dr["Id"].ToString();
+ BillText.Text = dr["Name"].ToString();
string ApplianceNumber = dr["ApplianceNumber"].ToString();
- uc.GoodsNumber = ApplianceNumber;
+
+ var BillText2 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).Name == QXList[Incount] + "A").FirstOrDefault();
+ if (BillText2 != null && BillText2.Text == "")
+ BillText2.Text = ApplianceNumber;
+ var BillText3 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).Name == QXList[Incount] + "B").FirstOrDefault();
+ if (BillText3 != null && BillText3.Text == "")
+ BillText3.Text = "0";
+ var BillText4 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).Name == QXList[Incount] + "C").FirstOrDefault();
+ if (BillText4 != null && BillText4.Text == "")
+ BillText4.Text = ApplianceNumber;
+ var BillText5 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).Name == QXList[Incount] + "D").FirstOrDefault();
+ if (BillText5 != null && BillText5.Text == "")
+ BillText5.Text = ApplianceNumber;
}
- uc.Location = new Point((uc.Width) * i, (uc.Height - 1) * j);
- uc.TabIndex = Incount + 1;
- panel.Controls.Add(uc);
+
Incount++;
j++;
if (j == IncRowsount)
@@ -1350,36 +1336,6 @@ namespace AIMS.OperationAanesthesia
i++;
}
}
- if (Instrument.ApplianceRecordList != null && Instrument.ApplianceRecordList.Count > 0)
- {
- foreach (ApplianceRecord app in Instrument.ApplianceRecordList)
- {
- if (Incount >= 51)
- break;
- ApplianceRecord applic = null;
- if (app.ApplianceId == 0)
- {
- applic = app;
- }
- if (applic == null) continue;
- UCOperationGoodsBill5 uc = new UCOperationGoodsBill5(applic);
- uc.SelectTextBoxEvent += Uc_SelectTextBoxEvent;
- uc.lblGoodsName.ReadOnly = false;
- uc.OperationRecordId = Convert.ToInt32(_record.Id);
- uc.GoodsName = app.ApplianceName;
- uc.Location = new Point((uc.Width) * i, (uc.Height - 1) * j);
- uc.TabIndex = Incount + 1;
- panel.Controls.Add(uc);
- Incount++;
- j++;
- if (j == IncRowsount)
- {
- j = 0;
- i++;
- }
- }
- }
- panel.Height = new UCOperationGoodsBill5().Height * IncRowsount;
}
private void button1_Click(object sender, EventArgs e)
@@ -1392,9 +1348,9 @@ namespace AIMS.OperationAanesthesia
uc.SelectTextBoxEvent += Uc_SelectTextBoxEvent;
uc.lblGoodsName.ReadOnly = false;
uc.GoodsNumber = "";
- uc.Location = new Point((uc.Width) * i1, (uc.Height - 1) * j1);
+ //uc.Location = new Point((uc.Width) * i1, (uc.Height - 1) * j1);
if (_record.InstrumentList.ApplianceRecordList != null) _record.InstrumentList.ApplianceRecordList.Add(app);
- panelQXList.Controls.Add(uc);
+ //panelQXList.Controls.Add(uc);
j1++;
if (j1 == 25)
{
@@ -1410,9 +1366,9 @@ namespace AIMS.OperationAanesthesia
uc.SelectTextBoxEvent += Uc_SelectTextBoxEvent;
uc.lblGoodsName.ReadOnly = false;
uc.GoodsNumber = "";
- uc.Location = new Point((uc.Width) * i2, (uc.Height - 1) * j2);
+ //uc.Location = new Point((uc.Width) * i2, (uc.Height - 1) * j2);
if (_record.InstrumentList2.ApplianceRecordList != null) _record.InstrumentList2.ApplianceRecordList.Add(app);
- panelQXList2.Controls.Add(uc);
+ //panelQXList2.Controls.Add(uc);
j2++;
if (j2 == 25)
{
@@ -1489,6 +1445,7 @@ namespace AIMS.OperationAanesthesia
#region 自定义方法
private void PanelSave_Click(object sender, EventArgs e)
{
+ PanelSave.Select();
if (superTabMain.SelectedTab.Name == "spTabQXQDD")
{
SaveInstrument(sender);
@@ -1505,9 +1462,80 @@ namespace AIMS.OperationAanesthesia
private void SaveInstrument(object sender)
{
+ btnSelectPatient.Focus();
+ try
+ {
+ ValueValidateResultList listR = myEditControl.Document.ValueValidate();
+ string vMsg = "";
+ foreach (var item in listR)
+ {
+ vMsg += item.Message + System.Environment.NewLine;
+ }
+ if (vMsg.Length > 0)
+ {
+ throw new Exception(vMsg);
+ }
+ //model赋值
+ DModel.XmlFile = myEditControl.Document.XMLText;
+ DModel.PatientId = this.Patient.PatientId;
+ DModel.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
+ XmlDocument doc = new XmlDocument();
+ XmlElement rootNode = doc.CreateElement("Root");
+ doc.AppendChild(rootNode);
+ var query = from XTextElement in myEditControl.Document.Fields.ToArray()
+ where (XTextElement is XTextInputFieldElement && (XTextElement as XTextInputFieldElement).ToolTip != "")
+ || XTextElement is XTextCheckBoxElement && ((XTextElement as XTextCheckBoxElement).ToolTip != "")
+ select XTextElement;
+ foreach (var element in query)
+ {
+ XmlElement itemNode = doc.CreateElement("Item");
+
+ if (element is XTextInputFieldElement)
+ {
+ itemNode.SetAttribute("Name", (element as XTextInputFieldElement).ToolTip);
+ itemNode.InnerText = element.Text;
+ rootNode.AppendChild(itemNode);
+ }
+ else if (element is XTextCheckBoxElement)
+ {
+ itemNode.SetAttribute("Name", (element as XTextCheckBoxElement).ToolTip);
+ itemNode.SetAttribute("Checked", ((XTextCheckBoxElement)element).Checked == true ? "1" : "0");
+ itemNode.InnerText = (element as XTextCheckBoxElement).Value;
+ rootNode.AppendChild(itemNode);
+ }
+ }
+ DModel.XmlStatic = doc.OuterXml;
+ if (DModel.Id > 0)
+ {
+ DocumentDAL.UpdatePrintDocument(this.DModel);
+ //MessageBox.Show("修改成功!");
+ }
+ else
+ {
+ DocumentDAL.InsertPrintDocument(this.DModel);
+ //new frmMessageBox().Show();
+ }
+ myEditControl.Document.Modified = false;
+ ////更新ASA分级与心功能分级
+ //if (DModel.XmlFileName == "麻醉术前访视单")
+ //{
+ // var asa = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ // && (x as XTextInputFieldElement).ToolTip == "ASA分级").FirstOrDefault();
+ // string strASA = asa == null ? "" : asa.Text;
+ // var hf = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ // && (x as XTextInputFieldElement).ToolTip == "心功能分级").FirstOrDefault();
+ // string strH = hf == null ? "" : hf.Text;
+ // BOperationApply.UpdateASA(Patient.ApplyId, strASA, strH);
+ //}
+
+ }
+ catch
+ {
+ throw;
+ }
+
try
{
- btnSelectPatient.Focus();
_record.InstrumentList.OperationRecordId = this._record.Id;
if (_applianceUseType != null)
{
@@ -1534,11 +1562,8 @@ namespace AIMS.OperationAanesthesia
{
BOperationRecordInstrumentList.Update(_record.InstrumentList);
}
- _record.InstrumentList.ApplianceRecordList = GetApplianceRecord();
- BApplianceRecord.InsertListData(_record.InstrumentList.ApplianceRecordList);
- DBManage.AddPerson(_record, SelectOperationDoctorData, 1);
- DBManage.AddPerson(_record, SelectInstrumentNurseData, 6);
- DBManage.AddPerson(_record, SelectTourNurseData, 7);
+ //_record.InstrumentList.ApplianceRecordList = GetApplianceRecord();
+ //BApplianceRecord.InsertListData(_record.InstrumentList.ApplianceRecordList);
}
catch (Exception ex)
@@ -1565,8 +1590,8 @@ namespace AIMS.OperationAanesthesia
}
_record.InstrumentList2.ApplianceUseType = string.Join(",", list.ToArray());
}
- _record.InstrumentList2.TagPicture = "";// Convert.ToBase64String(PublicToDoument.ImageToBytes(pictureBox1.Image));
- _record.InstrumentList2.JsonTextData = "";// PublicToDoument.SerializeControl(panel18, _record, new List ());
+ _record.InstrumentList2.TagPicture = "";
+ _record.InstrumentList2.JsonTextData = "";
//_record.InstrumentList2.InstrumentNurse = txtInstrumentNurse2.Text;
//_record.InstrumentList2.TourNurse = txtTourNurse2.Text;
//_record.InstrumentList2.Remark = txtRemark2.Text;
@@ -1583,9 +1608,6 @@ namespace AIMS.OperationAanesthesia
}
_record.InstrumentList2.ApplianceRecordList = GetApplianceRecord2();
BApplianceRecord.InsertListData(_record.InstrumentList2.ApplianceRecordList);
- DBManage.AddPerson(_record, SelectOperationDoctorData, 1);
- DBManage.AddPerson(_record, SelectInstrumentNurseData, 6);
- DBManage.AddPerson(_record, SelectTourNurseData, 7);
}
catch (Exception ex)
@@ -1596,47 +1618,6 @@ namespace AIMS.OperationAanesthesia
private void superTabMain_SelectedTabChanged(object sender, DevComponents.DotNetBar.SuperTabStripSelectedTabChangedEventArgs e)
{
- //if (superTabMain.SelectedTab.Name == "spTabQXQDD2")
- //{
- // labdept.Text = _record.ApplyDepartmentName;
- // labpname.Text = _record.Name;
- // labsex.Text = _record.Sex;
- // labage.Text = _record.Age;
- // labopdate.Text = _record.OperationDate;
- // labmno.Text = _record.OperationDate;
- // labroom.Text = BOperationRoom.SelectSingle(_record.RoomId).Name;
-
- // txtOperation.Text = "";
- // SelectOperationData = BFactOperationInfo.GetFactOperationInfoIdList(_record.PatientId.Value);
- // foreach (int RowId in SelectOperationData)
- // {
- // txtOperation.Text += BOperation.SelectSingle(RowId).Name + " ,";
- // }
- // if (txtOperation.Text != "") txtOperation.Text = txtOperation.Text.Substring(0, txtOperation.Text.LastIndexOf(" ,"));
-
-
- // txtOperationPosition.Text = "";
- // SelectOperationPositionData = BFactOperationPosition.GetFactOperationPositionIdList(_record.PatientId.Value);
- // foreach (int RowId in SelectOperationPositionData)
- // {
- // txtOperationPosition.Text += BOperationPosition.SelectSingle(RowId).Name + " ,";
- // }
- // if (txtOperationPosition.Text != "") txtOperationPosition.Text = txtOperationPosition.Text.Substring(0, txtOperationPosition.Text.LastIndexOf(" ,"));
-
- // txtOperationDoctor2.Text = txtOperationDoctor.Text;
- // txtInstrumentNurse2.Text = txtInstrumentNurse.Text;
- // txtTourNurse2.Text = txtTourNurse.Text;
- //}
- //else
- //{
- // //templateManage.OpeRecord = BOperationRecord.getRecord(_record, PatientId, RecoverId);
- // //templateManage.BindOperationRecordValueAll(templateManage.OpeRecord);
- // //templateManage.Bind();
- // //zgcAnaesRecord.Refresh();
- // txtOperationDoctor.Text = txtOperationDoctor2.Text;
- // txtInstrumentNurse.Text = txtInstrumentNurse2.Text;
- // txtTourNurse.Text = txtTourNurse2.Text;
- //}
}
///
@@ -1646,168 +1627,92 @@ namespace AIMS.OperationAanesthesia
private List GetApplianceRecord()
{
List applianceRecordList = new List();
- foreach (Control ctl in panelQXList.Controls)
+ int i = 0;
+ foreach (string ctl in QXList)
{
ApplianceRecord applianceRecord = new ApplianceRecord();
- if (ctl is UCOperationGoodsBill5)
+ var BillText = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).Name == QXList[i]).FirstOrDefault();
+ if (BillText != null && BillText.Text != "")
{
- UCOperationGoodsBill5 UCOperationGoodsBill5 = ctl as UCOperationGoodsBill5;
- if (UCOperationGoodsBill5.Id != null)
- {
- applianceRecord.Id = UCOperationGoodsBill5.Id;
- }
applianceRecord.OperationRecordId = this._record.Id;
- applianceRecord.ApplianceId = UCOperationGoodsBill5.GoodsId;
- applianceRecord.ApplianceName = UCOperationGoodsBill5.GoodsName;
+ applianceRecord.ApplianceId = int.Parse(BillText.OuterText);
+ applianceRecord.ApplianceName = BillText.Text;
if (_record.InstrumentList != null && _record.InstrumentList.Id != null)
{
applianceRecord.OperationGoodsBillRecord = _record.InstrumentList.Id;
}
- if (UCOperationGoodsBill5.txtFront.Text != "")
- applianceRecord.OpeFront = UCOperationGoodsBill5.OpeFront;
- else applianceRecord.OpeFront = null;
- if (UCOperationGoodsBill5.txtDoing.Text != "")
- applianceRecord.OpeDoing = UCOperationGoodsBill5.OpeDoing;
- else applianceRecord.OpeDoing = null;
- if (UCOperationGoodsBill5.txtCloseFront.Text != "")
- applianceRecord.CloseFront = UCOperationGoodsBill5.CloseFront;
- else applianceRecord.CloseFront = null;
- if (UCOperationGoodsBill5.txtCloseLast.Text != "")
- applianceRecord.CloseLast = UCOperationGoodsBill5.CloseLast;
- else applianceRecord.CloseLast = null;
- if (UCOperationGoodsBill5.txtSkinCloseLast.Text != "")
- applianceRecord.SkinCloseLast = UCOperationGoodsBill5.SkinCloseLast;
- else applianceRecord.SkinCloseLast = null;
- applianceRecordList.Add(applianceRecord);
+ var BillText2 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).Name == QXList[i] + "A").FirstOrDefault();
+ if (BillText2 != null && BillText2.Text == "")
+ applianceRecord.OpeFront = BillText2.Text;
+ var BillText3 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).Name == QXList[i] + "B").FirstOrDefault();
+ if (BillText3 != null && BillText3.Text == "")
+ applianceRecord.OpeDoing = BillText3.Text;
+ var BillText4 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).Name == QXList[i] + "C").FirstOrDefault();
+ if (BillText4 != null && BillText4.Text == "")
+ applianceRecord.CloseFront = BillText4.Text;
+ var BillText5 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).Name == QXList[i] + "D").FirstOrDefault();
+ if (BillText5 != null && BillText5.Text == "")
+ applianceRecord.CloseLast = BillText5.Text;
+
}
+ i++;
}
return applianceRecordList;
}
private List GetApplianceRecord2()
{
List applianceRecordList = new List();
- foreach (Control ctl in panelQXList2.Controls)
- {
- ApplianceRecord applianceRecord = new ApplianceRecord();
- if (ctl is UCOperationGoodsBill5)
- {
- UCOperationGoodsBill5 UCOperationGoodsBill5 = ctl as UCOperationGoodsBill5;
- if (UCOperationGoodsBill5.Id != null)
- {
- applianceRecord.Id = UCOperationGoodsBill5.Id;
- }
- applianceRecord.OperationRecordId = this._record.Id;
- applianceRecord.ApplianceId = UCOperationGoodsBill5.GoodsId;
- applianceRecord.ApplianceName = UCOperationGoodsBill5.GoodsName;
- if (_record.InstrumentList2 != null && _record.InstrumentList2.Id != null)
- {
- applianceRecord.OperationGoodsBillRecord = _record.InstrumentList2.Id;
- }
- if (UCOperationGoodsBill5.txtFront.Text != "")
- applianceRecord.OpeFront = UCOperationGoodsBill5.OpeFront;
- else applianceRecord.OpeFront = null;
- if (UCOperationGoodsBill5.txtDoing.Text != "")
- applianceRecord.OpeDoing = UCOperationGoodsBill5.OpeDoing;
- else applianceRecord.OpeDoing = null;
- if (UCOperationGoodsBill5.txtCloseFront.Text != "")
- applianceRecord.CloseFront = UCOperationGoodsBill5.CloseFront;
- else applianceRecord.CloseFront = null;
- if (UCOperationGoodsBill5.txtCloseLast.Text != "")
- applianceRecord.CloseLast = UCOperationGoodsBill5.CloseLast;
- else applianceRecord.CloseLast = null;
- if (UCOperationGoodsBill5.txtSkinCloseLast.Text != "")
- applianceRecord.SkinCloseLast = UCOperationGoodsBill5.SkinCloseLast;
- else applianceRecord.SkinCloseLast = null;
- applianceRecordList.Add(applianceRecord);
- }
- }
+ //foreach (Control ctl in panelQXList2.Controls)
+ //{
+ // ApplianceRecord applianceRecord = new ApplianceRecord();
+ // if (ctl is UCOperationGoodsBill5)
+ // {
+ // UCOperationGoodsBill5 UCOperationGoodsBill5 = ctl as UCOperationGoodsBill5;
+ // if (UCOperationGoodsBill5.Id != null)
+ // {
+ // applianceRecord.Id = UCOperationGoodsBill5.Id;
+ // }
+ // applianceRecord.OperationRecordId = this._record.Id;
+ // applianceRecord.ApplianceId = UCOperationGoodsBill5.GoodsId;
+ // applianceRecord.ApplianceName = UCOperationGoodsBill5.GoodsName;
+ // if (_record.InstrumentList2 != null && _record.InstrumentList2.Id != null)
+ // {
+ // applianceRecord.OperationGoodsBillRecord = _record.InstrumentList2.Id;
+ // }
+ // if (UCOperationGoodsBill5.txtFront.Text != "")
+ // applianceRecord.OpeFront = UCOperationGoodsBill5.OpeFront;
+ // else applianceRecord.OpeFront = null;
+ // if (UCOperationGoodsBill5.txtDoing.Text != "")
+ // applianceRecord.OpeDoing = UCOperationGoodsBill5.OpeDoing;
+ // else applianceRecord.OpeDoing = null;
+ // if (UCOperationGoodsBill5.txtCloseFront.Text != "")
+ // applianceRecord.CloseFront = UCOperationGoodsBill5.CloseFront;
+ // else applianceRecord.CloseFront = null;
+ // if (UCOperationGoodsBill5.txtCloseLast.Text != "")
+ // applianceRecord.CloseLast = UCOperationGoodsBill5.CloseLast;
+ // else applianceRecord.CloseLast = null;
+ // if (UCOperationGoodsBill5.txtSkinCloseLast.Text != "")
+ // applianceRecord.SkinCloseLast = UCOperationGoodsBill5.SkinCloseLast;
+ // else applianceRecord.SkinCloseLast = null;
+ // applianceRecordList.Add(applianceRecord);
+ // }
+ //}
return applianceRecordList;
}
#endregion
#endregion
- #region 打印方法
- public List mPanes = new List();
- public List UpPanes = new List();
- int m_startPrintPage;// 打印的起始页码
- int m_endPrintPage;//打印的终止页码
- int m_PageIndex;// 当前打印页码
- int count = 0;
- private void pDoc_PrintPage(object sender, PrintPageEventArgs e)
- {
- System.Drawing.Printing.PrintDocument pDoc = sender as System.Drawing.Printing.PrintDocument;
- m_startPrintPage = pDoc.PrinterSettings.FromPage;
- m_endPrintPage = pDoc.PrinterSettings.ToPage;
- //if (pdg!=null)
- //{
- //m_startPrintPage = pdg.pa
- //m_endPrintPage = pDoc.PrinterSettings.ToPage;
- //}
- if (m_startPrintPage == 0 && m_endPrintPage == 0)
- {
- int printCount = mPanes.Count;
- if (mPanes.Count > 0 && count < printCount)
- {
- mPanes[count].Draw(e.Graphics);
- count++;
- if (count < printCount)
- {
- e.HasMorePages = true;
- }
- }
- else
- {
- e.HasMorePages = false;
- }
- }
- else
- {
- try
- {
- //如果当前打印页小于打印起始页码,就递增一页,直至等于打印起始页码
- if (m_startPrintPage > 0)
- {
- while (m_PageIndex < m_startPrintPage)
- {
- m_PageIndex++;
- }
- }
-
- mPanes[m_PageIndex - 1].Draw(e.Graphics);
- //当前打印页加1
- m_PageIndex++;
-
- if (m_PageIndex <= m_endPrintPage)
- {
- e.HasMorePages = true;
- }
-
- //如果设置了打印页码范围并且当前打印页大于打印终止页码,终止打印,设置e.HasMorePages参数,初始化相关变量
- if ((m_startPrintPage > 0) && (m_PageIndex > m_endPrintPage))
- {
- e.HasMorePages = false;
- m_PageIndex = 1;
- return;
- }
-
- }
- catch (Exception)
- {
- //出错处理,终止打印,设置e.HasMorePages参数,初始化相关变量
- e.HasMorePages = false;
- m_PageIndex = 1;
- }
- }
- }
-
+ #region 打印方法
private void plPrintBrowse_Click(object sender, EventArgs e)
{
if (_record == null || _record.Id == 0) return;
- //if (txtOutRoom.Focused)
- //{
- // zgcAnaesRecord.Focus();
- //}
+ plPrintBrowse.Select();
if (superTabMain.SelectedTab.Name == "spTabQXQDD")
{
SaveInstrument(sender);
@@ -1816,273 +1721,49 @@ namespace AIMS.OperationAanesthesia
{
SaveInstrument2(sender);
}
-
- mPanes = new List();
- UpPanes = new List();
- PrintDocPage(null, null);
- count = 0;
- System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();
- pDoc.DefaultPageSettings.Landscape = false;
- pDoc.OriginAtMargins = true;
- pDoc.DefaultPageSettings.PrinterResolution.Kind = PrinterResolutionKind.High;
- pDoc.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0);
- pDoc.PrintPage -= new PrintPageEventHandler(pDoc_PrintPage);
- pDoc.PrintPage += new PrintPageEventHandler(pDoc_PrintPage);
-
- PrintPreviewDialog pdg = new PrintPreviewDialog();
- foreach (Control ctl in pdg.Controls)
- {
- if (ctl is ToolStrip)
- {
- ToolStrip toolbar = ctl as ToolStrip;
- toolbar.Items.RemoveAt(0);
- ToolStrip tb = ctl as ToolStrip;
- //tb.ImageList.Images.Add(Properties.Resources.);
- ToolStripButton settingBtn = new ToolStripButton();
- settingBtn.ToolTipText = "打印";
- settingBtn.Text = "打印";
- //settingBtn.ImageIndex = tb.ImageList.Images.Count - 1;
- settingBtn.Click += PageSetting_Click;
- tb.Items.Insert(0, settingBtn);
- }
- }
- //pdg.Width = zgcAnaesRecord.Width + 50;
- //pdg.ClientSize = new System.Drawing.Size(zgcAnaesRecord.Width, zgcAnaesRecord.Height);
- Form f = (Form)pdg;
- f.WindowState = FormWindowState.Maximized;
- pdg.Document = pDoc;
- pdg.ShowDialog();
- pdg.Focus();
- pdg.BringToFront();
+ myEditControl.ExecuteCommand("FilePrintPreview", true, null);
plRefresh_Click(null, null);
}
- private void PageSetting_Click(object sender, EventArgs e)
- {
- plPrint_Click(null, null);
- }
-
- private void PrintDocPage(object sender, PrintPageEventArgs e)
- {
- if (superTabMain.SelectedTab.Name == "spTabQXQDD")
- {
- _record.InstrumentList.ApplianceRecordList = GetApplianceRecord();
- //_record.InstrumentList.InstrumentNurse = txtInstrumentNurse.Text;
- //_record.InstrumentList.TourNurse = txtTourNurse.Text;
- //_record.InstrumentList.Remark = txtRemark.Text;
- //PrintDocPane(e, zgcAnaesRecord, templateManage);
- }
- else
- {
- if (_record.InstrumentList2 != null && _record.InstrumentList2.Id != null)
- {
- _record.InstrumentList = _record.InstrumentList2;
- _record.InstrumentList.ApplianceRecordList = GetApplianceRecord2();
- //_record.InstrumentList.InstrumentNurse = txtInstrumentNurse2.Text;
- //_record.InstrumentList.TourNurse = txtTourNurse2.Text;
- //_record.InstrumentList.Remark = txtRemark2.Text;
- //PrintDocPane(e, zgcAnaesRecord, templateManage);
- }
-
- }
- }
-
- private PublicUI.UI.frmSelectPerson frmTourNurse;
- private List SelectTourNurseData = new List(); //一助
- private void txtTourNurse_Click(object sender, EventArgs e)
- {
- frmTourNurse = new PublicUI.UI.frmSelectPerson();
- frmTourNurse.PersonType = "手术室护士";
- frmTourNurse.SelectDepartmentName = "手术室";
- frmTourNurse.SelectPersonData = SelectTourNurseData;
- frmTourNurse.FormClosed += new FormClosedEventHandler(frmTourNurse_FormClosed);
- frmTourNurse.ShowDialog();
- }
-
- void frmTourNurse_FormClosed(object sender, FormClosedEventArgs e)
- {
- //txtTourNurse.Text = "";
- //if (frmTourNurse.SelectPersonData.Count > 0)
- //{
- // SelectTourNurseData = frmTourNurse.SelectPersonData;
- // foreach (int RowId in frmTourNurse.SelectPersonData)
- // {
- // txtTourNurse.Text += BPerson.SelectSingle(RowId).Name + ",";
- // }
- // int idxStart = txtTourNurse.Text.LastIndexOf(",");
- // txtTourNurse.Text = txtTourNurse.Text.Substring(0, idxStart);
- //}
- //txtTourNurse2.Text = txtTourNurse.Text;
- }
-
- private List SelectInstrumentNurseData = new List(); //一助
- private PublicUI.UI.frmSelectPerson frmInstrumentNurse;
- private void txtInstrumentNurse_Click(object sender, EventArgs e)
- {
- frmInstrumentNurse = new PublicUI.UI.frmSelectPerson();
- frmInstrumentNurse.PersonType = "手术室护士";
- frmInstrumentNurse.SelectDepartmentName = "手术室";
- frmInstrumentNurse.SelectPersonData = SelectInstrumentNurseData;
- frmInstrumentNurse.FormClosed += new FormClosedEventHandler(frmInstrumentNurse_FormClosed);
- frmInstrumentNurse.ShowDialog();
- }
-
- void frmInstrumentNurse_FormClosed(object sender, FormClosedEventArgs e)
- {
- //txtInstrumentNurse.Text = "";
- //if (frmInstrumentNurse.SelectPersonData.Count > 0)
- //{
- // SelectInstrumentNurseData = frmInstrumentNurse.SelectPersonData;
- // foreach (int RowId in frmInstrumentNurse.SelectPersonData)
- // {
- // txtInstrumentNurse.Text += BPerson.SelectSingle(RowId).Name + ",";
- // }
- // int idxStart = txtInstrumentNurse.Text.LastIndexOf(",");
- // txtInstrumentNurse.Text = txtInstrumentNurse.Text.Substring(0, idxStart);
- //}
- //txtInstrumentNurse2.Text = txtInstrumentNurse.Text;
- }
-
- private PublicUI.UI.frmSelectPerson frmOperationDoctor;
- private List SelectOperationDoctorData = new List(); //一助
- private void txtOperationDoctor_DoubleClick(object sender, EventArgs e)
- {
- frmOperationDoctor = new PublicUI.UI.frmSelectPerson();
- frmOperationDoctor.PersonType = "医生";
- frmOperationDoctor.SelectDepartmentName = _record.ApplyDepartmentName;
- frmOperationDoctor.SelectPersonData = SelectOperationDoctorData;
- frmOperationDoctor.FormClosed += new FormClosedEventHandler(frmOperationDoctor_FormClosed);
- frmOperationDoctor.ShowDialog();
- }
-
- void frmOperationDoctor_FormClosed(object sender, FormClosedEventArgs e)
- {
- //txtOperationDoctor.Text = "";
- //if (frmOperationDoctor.SelectPersonData.Count > 0)
- //{
- // SelectOperationDoctorData = frmOperationDoctor.SelectPersonData;
- // foreach (int RowId in frmOperationDoctor.SelectPersonData)
- // {
- // txtOperationDoctor.Text += BPerson.SelectSingle(RowId).Name + ",";
- // }
- // int idxStart = txtOperationDoctor.Text.LastIndexOf(",");
- // txtOperationDoctor.Text = txtOperationDoctor.Text.Substring(0, idxStart);
- //}
- //txtOperationDoctor2.Text = txtOperationDoctor.Text;
- }
-
- ///
- /// 根据工作类型 选择医生术者赋值TextBox
- ///
- /// 医生术者TextBox
- /// 工作类型
- public void setDoctor(TextBox controlTextBox, string workersType)
- {
- PublicUI.UI.frmSelectPerson frmOperationDoctor = new PublicUI.UI.frmSelectPerson();
- frmOperationDoctor.PersonType = workersType;
- frmOperationDoctor.SelectDepartmentName = "手术室";
- frmOperationDoctor.SelectPersonData = new List();
- frmOperationDoctor.ShowDialog();
-
- foreach (int RowId in frmOperationDoctor.SelectPersonData)
- {
- controlTextBox.Text = BPerson.GetModel(RowId).Name;
- }
- }
-
private void button9_Click(object sender, EventArgs e)
{
if (superTabMain.SelectedTab.Name == "spTabQXQDD")
{
- TextBoxAddEventSources(panelQX, @"/");
+ TextBoxAddEventSources(QXList, @"/");
}
else
{
- TextBoxAddEventSources(panelQX2, @"/");
+ //TextBoxAddEventSources(panelQX2, @"/");
}
}
- private void TextBoxAddEventSources(Control _panel, string TextValue)
+ private void TextBoxAddEventSources(List _panel, string TextValue)
{
- foreach (Control clTemp in _panel.Controls)
+ for (int i = 0; i < _panel.Count; i++)
{
- if (clTemp.Controls.Count > 0)
- {
- TextBoxAddEventSources(clTemp, TextValue);
- }
- else
- {
- if (clTemp is TextBox)
- {
- TextBox cbT = (clTemp as TextBox);
- if (cbT != null && cbT.Text.Trim() == "")
- {
- cbT.Text = TextValue;
- }
- }
- if (clTemp is UText)
- {
- UText cbT = (clTemp as UText);
- if (cbT != null && cbT.Text.Trim() == "")
- {
- cbT.Text = TextValue;
- }
- }
- }
+ var BillText = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).Name == QXList[i]).FirstOrDefault();
+ if (BillText != null && BillText.Text == "")
+ BillText.Text = TextValue;
+ var BillText2 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).Name == QXList[i] + "A").FirstOrDefault();
+ if (BillText2 != null && BillText2.Text == "")
+ BillText2.Text = TextValue;
+ var BillText3 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).Name == QXList[i] + "B").FirstOrDefault();
+ if (BillText3 != null && BillText3.Text == "")
+ BillText3.Text = TextValue;
+ var BillText4 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).Name == QXList[i] + "C").FirstOrDefault();
+ if (BillText4 != null && BillText4.Text == "")
+ BillText4.Text = TextValue;
+ var BillText5 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).Name == QXList[i] + "D").FirstOrDefault();
+ if (BillText5 != null && BillText5.Text == "")
+ BillText5.Text = TextValue;
}
}
- private PublicUI.UI.frmOperationPosition frmOperationPosition;
- private List SelectOperationPositionData = new List(); //手术部位
- private void txtOperationPosition_DoubleClick(object sender, EventArgs e)
- {
- frmOperationPosition = new PublicUI.UI.frmOperationPosition();
- frmOperationPosition.FormClosed += new FormClosedEventHandler(frmOperationPosition_FormClosed);
- frmOperationPosition.SelectOperationPositionData = SelectOperationPositionData;
- frmOperationPosition.ShowDialog();
- }
-
- void frmOperationPosition_FormClosed(object sender, FormClosedEventArgs e)
- {
- //txtOperationPosition.Text = "";
- //if (frmOperationPosition.SelectOperationPositionData.Count > 0)
- //{
- // SelectOperationPositionData = frmOperationPosition.SelectOperationPositionData;
- // foreach (int RowId in frmOperationPosition.SelectOperationPositionData)
- // {
- // txtOperationPosition.Text += BOperationPosition.SelectSingle(RowId).Name + " ,";
- // }
- // int idxStart = txtOperationPosition.Text.LastIndexOf(" ,");
- // txtOperationPosition.Text = txtOperationPosition.Text.Substring(0, idxStart);
- //}
- //DBManage.AddOperationPosition(_record, SelectOperationPositionData);
- }
- private PublicUI.UI.frmSelectOperation frmOperation;
- private List SelectOperationData = new List(); //手术
- private void txtOperation_DoubleClick(object sender, EventArgs e)
- {
- frmOperation = new PublicUI.UI.frmSelectOperation();
- frmOperation.FormClosed += new FormClosedEventHandler(frmOperation_FormClosed);
- frmOperation.SelectRightData = SelectOperationData;
- frmOperation.ShowDialog();
- }
-
- void frmOperation_FormClosed(object sender, FormClosedEventArgs e)
- {
- //txtOperation.Text = "";
- //if (frmOperation.SelectRightData.Count > 0)
- //{
- // SelectOperationData = frmOperation.SelectRightData;
- // foreach (int RowId in frmOperation.SelectRightData)
- // {
- // txtOperation.Text += BOperation.SelectSingle(RowId).Name + " ,";
- // }
- // int idxStart = txtOperation.Text.LastIndexOf(" ,");
- // txtOperation.Text = txtOperation.Text.Substring(0, idxStart);
- //}
- //DBManage.AddOperation(_record, SelectOperationData);
- }
-
private void btnChage_Click(object sender, EventArgs e)
{
frmFeesRecord frmchargRecord = new frmFeesRecord(_record, "护士");
@@ -2111,14 +1792,10 @@ namespace AIMS.OperationAanesthesia
}
}
-
private void plPrint_Click(object sender, EventArgs e)
{
if (_record == null || _record.Id == 0) return;
- //if (txtOutRoom.Focused)
- //{
- // zgcAnaesRecord.Focus();
- //}
+ plPrint.Select();
if (superTabMain.SelectedTab.Name == "spTabQXQDD")
{
@@ -2130,27 +1807,7 @@ namespace AIMS.OperationAanesthesia
}
try
{
- mPanes = new List();
- UpPanes = new List();
- PrintDocPage(null, null);
- count = 0;
- m_PageIndex = 0;
- System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();
- pDoc.DefaultPageSettings.Landscape = false;
- pDoc.OriginAtMargins = true;
- pDoc.DefaultPageSettings.PrinterResolution.Kind = PrinterResolutionKind.High;
- pDoc.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0);
- pDoc.PrintPage -= new PrintPageEventHandler(pDoc_PrintPage);
- pDoc.PrintPage += new PrintPageEventHandler(pDoc_PrintPage);
-
- System.Windows.Forms.PrintDialog pDlg = new System.Windows.Forms.PrintDialog();
- pDlg.Document = pDoc;
- pDlg.AllowSomePages = true;
- if (pDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- {
- pDoc.Print();
- }
-
+ myEditControl.ExecuteCommand("FilePrint", true, null);
plRefresh_Click(null, null);
}
catch (Exception exp)
@@ -2160,5 +1817,115 @@ namespace AIMS.OperationAanesthesia
}
#endregion
+
+ #region 文书控件事件
+ private void LoadDocumentGoodsBill()
+ {
+ if (DModel.Id > 0)
+ {
+ //加载文档
+ DModel = DocumentDAL.GetDocumentbyId(DModel.Id);
+ myEditControl.LoadDocumentFromString(DModel.XmlFile, "xml");
+
+ //患者基本信息二次赋值
+ var query = from XTextElement in myEditControl.Document.Fields.ToArray()
+ where XTextElement is XTextInputFieldElement
+ && (XTextElement as XTextInputFieldElement).FieldSettings != null
+ && (XTextElement as XTextInputFieldElement).FieldSettings.EditStyle != InputFieldEditStyle.Date
+ && (XTextElement as XTextInputFieldElement).FieldSettings.ListSource != null
+ select XTextElement as XTextInputFieldElement;
+ DataRow[] dr = DocumentDAL.GetReflectionList("V_OperationRecordALL").Select("KB_SEQ <> '' and Reload=1");
+ var p = typeof(PatientRecord).GetProperties();
+ for (int i = 0; i < dr.Count(); i++)
+ {
+ var name = dr[i].ItemArray[0].ToString();
+ var value = dr[i].ItemArray[1].ToString();
+ XTextInputFieldElement element = query.Where(x => x.FieldSettings.ListSource.SourceName == value).FirstOrDefault();
+ PropertyInfo info = p.Where(px => px.Name == name).FirstOrDefault();
+ if (element != null && info != null)
+ {
+ element.Text = info.GetValue(Patient, null).ToString();
+ }
+ }
+ }
+ else
+ {
+ //无文档则加载模板
+ TModel = DocumentDAL.GetTemplatebyId(DModel.TemplateId);
+ if (TModel.XmlFile == null || TModel.XmlFile.Trim().Equals(string.Empty))
+ {
+ myEditControl.ExecuteCommand("FileNew", true, null);
+ }
+ else
+ {
+ myEditControl.LoadDocumentFromString(TModel.XmlFile, "xml");
+ }
+ DModel.XmlFileName = TModel.XmlFileName;
+ DModel.TemplateId = TModel.Id;
+ //患者基本信息赋值
+ var query = from XTextElement in myEditControl.Document.Fields.ToArray()
+ where XTextElement is XTextInputFieldElement
+ && (XTextElement as XTextInputFieldElement).FieldSettings != null
+ && (XTextElement as XTextInputFieldElement).FieldSettings.EditStyle != InputFieldEditStyle.Date
+ && (XTextElement as XTextInputFieldElement).FieldSettings.ListSource != null
+ select XTextElement as XTextInputFieldElement;
+ DataRow[] dr = DocumentDAL.GetReflectionList("V_OperationRecordALL").Select("KB_SEQ <> ''");
+ var p = typeof(PatientRecord).GetProperties();
+ for (int i = 0; i < dr.Count(); i++)
+ {
+ var name = dr[i].ItemArray[0].ToString();
+ var value = dr[i].ItemArray[1].ToString();
+ XTextInputFieldElement element = query.Where(x => x.FieldSettings.ListSource.SourceName == value).FirstOrDefault();
+ PropertyInfo info = p.Where(px => px.Name == name).FirstOrDefault();
+ if (element != null && info != null)
+ {
+ element.Text = info.GetValue(Patient, null).ToString();
+ }
+ }
+
+ if (Patient.LisResult != null && Patient.LisResult.PATIENT_ID != null)
+ {
+ DataRow[] drr = DocumentDAL.GetReflectionList("V_LisResult").Select("KB_SEQ <> ''");
+ var lis = typeof(PatientLisResult).GetProperties();
+ for (int i = 0; i < drr.Count(); i++)
+ {
+ var name = drr[i].ItemArray[0].ToString();
+ var value = drr[i].ItemArray[1].ToString();
+ XTextInputFieldElement element = query.Where(x => x.FieldSettings.ListSource.SourceName == value).FirstOrDefault();
+ PropertyInfo info = lis.Where(px => px.Name == name).FirstOrDefault();
+ if (element != null && info != null)
+ {
+ element.Text = info.GetValue(Patient.LisResult, null).ToString();
+ }
+ }
+ }
+ DocumentExtension.SetDocumentDefaultValue(TModel.XmlFileName, myEditControl.Document, Patient);
+ }
+ string xmlStatic = DocumentDAL.GetEventXml(DModel.TemplateId);
+ if (xmlStatic != string.Empty)
+ {
+ XmlDocument doc = new XmlDocument();
+ doc.LoadXml(xmlStatic);
+ strClick = doc.GetElementsByTagName("ClickEvent")[0].InnerText;
+ strContentChanged = doc.GetElementsByTagName("ContentChangedEnvent")[0].InnerText;
+ }
+ codeCompiler = new EventCodeCompiler(ref this.myEditControl, strClick, strContentChanged);
+
+ //文档用户信息
+ myEditControl.UserLoginByParameter(
+ AIMSExtension.PublicMethod.OperatorNo,
+ AIMSExtension.PublicMethod.OperatorName,
+ AIMSExtension.PublicMethod.PermissionLevel);
+ //隐藏痕迹先
+ myEditControl.ExecuteCommand(StandardCommandNames.CleanViewMode, false, true);
+
+ //if (Patient.MedicalRecord != null && Patient.MedicalRecord != "")
+ //{
+ // tsbSave.Visible = false;
+ // tsbSaveAndPrint.Text = "打印";
+ //}
+
+ }
+ #endregion
}
}
diff --git a/AIMS/OperationAanesthesia/frmInstrumentRecord2.resx b/AIMS/OperationAanesthesia/frmInstrumentRecord2.resx
index e6263d6..7498d06 100644
--- a/AIMS/OperationAanesthesia/frmInstrumentRecord2.resx
+++ b/AIMS/OperationAanesthesia/frmInstrumentRecord2.resx
@@ -120,6 +120,9 @@
17, 17
+
+ 353, 17
+
62
diff --git a/AIMS/OremrUserControl/ucDocumentGoodsBill.Designer.cs b/AIMS/OremrUserControl/ucDocumentGoodsBill.Designer.cs
deleted file mode 100644
index a5813e3..0000000
--- a/AIMS/OremrUserControl/ucDocumentGoodsBill.Designer.cs
+++ /dev/null
@@ -1,315 +0,0 @@
-namespace AIMS.OremrUserControl
-{
- partial class ucDocumentGoodsBill
- {
- ///
- /// 必需的设计器变量。
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// 清理所有正在使用的资源。
- ///
- /// 如果应释放托管资源,为 true;否则为 false。
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region 组件设计器生成的代码
-
- ///
- /// 设计器支持所需的方法 - 不要
- /// 使用代码编辑器修改此方法的内容。
- ///
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ucDocumentGoodsBill));
- this.toolStrip1 = new System.Windows.Forms.ToolStrip();
- this.tsbSave = new System.Windows.Forms.ToolStripButton();
- this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
- this.tsbSaveAndPrint = new System.Windows.Forms.ToolStripButton();
- this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
- this.tsbPreview = new System.Windows.Forms.ToolStripButton();
- this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
- this.tsbCheckout = new System.Windows.Forms.ToolStripButton();
- this.myEditControl = new DCSoft.Writer.Controls.WriterControl();
- this.writerCommandControler1 = new DCSoft.Writer.Commands.WriterCommandControler(this.components);
- this.cmRedo = new System.Windows.Forms.ToolStripMenuItem();
- this.cmUndo = new System.Windows.Forms.ToolStripMenuItem();
- this.cmCut = new System.Windows.Forms.ToolStripMenuItem();
- this.cmCopy = new System.Windows.Forms.ToolStripMenuItem();
- this.cmPaste = new System.Windows.Forms.ToolStripMenuItem();
- this.cmColor = new System.Windows.Forms.ToolStripMenuItem();
- this.cmFont = new System.Windows.Forms.ToolStripMenuItem();
- this.cmAlignLeft = new System.Windows.Forms.ToolStripMenuItem();
- this.cmAlignCenter = new System.Windows.Forms.ToolStripMenuItem();
- this.cmAlignRight = new System.Windows.Forms.ToolStripMenuItem();
- this.cmEdit = new System.Windows.Forms.ContextMenuStrip(this.components);
- this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator();
- this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripSeparator();
- this.toolStripMenuItem6 = new System.Windows.Forms.ToolStripSeparator();
- this.toolStripMenuItem8 = new System.Windows.Forms.ToolStripSeparator();
- this.toolStrip1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.writerCommandControler1)).BeginInit();
- this.cmEdit.SuspendLayout();
- this.SuspendLayout();
- //
- // toolStrip1
- //
- this.toolStrip1.BackColor = System.Drawing.Color.AliceBlue;
- this.toolStrip1.Font = new System.Drawing.Font("微软雅黑", 10.5F);
- this.toolStrip1.ImageScalingSize = new System.Drawing.Size(25, 25);
- this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.tsbSave,
- this.toolStripSeparator1,
- this.tsbSaveAndPrint,
- this.toolStripSeparator5,
- this.tsbPreview,
- this.toolStripSeparator2,
- this.tsbCheckout});
- this.toolStrip1.Location = new System.Drawing.Point(0, 0);
- this.toolStrip1.Name = "toolStrip1";
- this.toolStrip1.Size = new System.Drawing.Size(865, 49);
- this.toolStrip1.TabIndex = 4;
- this.toolStrip1.Text = "toolStrip1";
- //
- // tsbSave
- //
- this.tsbSave.Font = new System.Drawing.Font("微软雅黑", 9F);
- this.tsbSave.Image = global::AIMS.Properties.Resources.图标_手术申请;
- this.tsbSave.ImageTransparentColor = System.Drawing.Color.Magenta;
- this.tsbSave.Name = "tsbSave";
- this.tsbSave.Size = new System.Drawing.Size(48, 46);
- this.tsbSave.Text = " 保存 ";
- this.tsbSave.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
- this.tsbSave.Click += new System.EventHandler(this.tsbSave_Click);
- //
- // toolStripSeparator1
- //
- this.toolStripSeparator1.Name = "toolStripSeparator1";
- this.toolStripSeparator1.Size = new System.Drawing.Size(6, 49);
- //
- // tsbSaveAndPrint
- //
- this.tsbSaveAndPrint.Font = new System.Drawing.Font("微软雅黑", 9F);
- this.tsbSaveAndPrint.Image = global::AIMS.Properties.Resources.图标_打印;
- this.tsbSaveAndPrint.ImageTransparentColor = System.Drawing.Color.Magenta;
- this.tsbSaveAndPrint.Name = "tsbSaveAndPrint";
- this.tsbSaveAndPrint.Size = new System.Drawing.Size(88, 46);
- this.tsbSaveAndPrint.Text = " 保存并打印 ";
- this.tsbSaveAndPrint.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
- this.tsbSaveAndPrint.Click += new System.EventHandler(this.tsbSaveAndPrint_Click);
- //
- // toolStripSeparator5
- //
- this.toolStripSeparator5.Name = "toolStripSeparator5";
- this.toolStripSeparator5.Size = new System.Drawing.Size(6, 49);
- //
- // tsbPreview
- //
- this.tsbPreview.Font = new System.Drawing.Font("微软雅黑", 9F);
- this.tsbPreview.Image = global::AIMS.Properties.Resources.图标_预览;
- this.tsbPreview.ImageTransparentColor = System.Drawing.Color.Magenta;
- this.tsbPreview.Name = "tsbPreview";
- this.tsbPreview.Size = new System.Drawing.Size(40, 46);
- this.tsbPreview.Text = " 预览";
- this.tsbPreview.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
- this.tsbPreview.Click += new System.EventHandler(this.tsbPreview_Click);
- //
- // toolStripSeparator2
- //
- this.toolStripSeparator2.Name = "toolStripSeparator2";
- this.toolStripSeparator2.Size = new System.Drawing.Size(6, 49);
- //
- // tsbCheckout
- //
- this.tsbCheckout.Font = new System.Drawing.Font("微软雅黑", 9F);
- this.tsbCheckout.Image = global::AIMS.Properties.Resources.图标_回顾手术;
- this.tsbCheckout.ImageTransparentColor = System.Drawing.Color.Magenta;
- this.tsbCheckout.Name = "tsbCheckout";
- this.tsbCheckout.Size = new System.Drawing.Size(64, 46);
- this.tsbCheckout.Text = " 查看痕迹";
- this.tsbCheckout.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
- this.tsbCheckout.Click += new System.EventHandler(this.tsbCheckout_Click);
- //
- // myEditControl
- //
- this.myEditControl.Dock = System.Windows.Forms.DockStyle.Fill;
- this.myEditControl.Location = new System.Drawing.Point(0, 49);
- this.myEditControl.Name = "myEditControl";
- this.myEditControl.Size = new System.Drawing.Size(865, 399);
- this.myEditControl.TabIndex = 5;
- //
- // cmRedo
- //
- this.writerCommandControler1.SetCommandName(this.cmRedo, "Redo");
- this.cmRedo.Image = ((System.Drawing.Image)(resources.GetObject("cmRedo.Image")));
- this.cmRedo.Name = "cmRedo";
- this.cmRedo.Size = new System.Drawing.Size(124, 22);
- this.cmRedo.Text = "重复";
- //
- // cmUndo
- //
- this.writerCommandControler1.SetCommandName(this.cmUndo, "Undo");
- this.cmUndo.Image = ((System.Drawing.Image)(resources.GetObject("cmUndo.Image")));
- this.cmUndo.Name = "cmUndo";
- this.cmUndo.Size = new System.Drawing.Size(124, 22);
- this.cmUndo.Text = "撤销";
- //
- // cmCut
- //
- this.writerCommandControler1.SetCommandName(this.cmCut, "Cut");
- this.cmCut.Image = ((System.Drawing.Image)(resources.GetObject("cmCut.Image")));
- this.cmCut.Name = "cmCut";
- this.cmCut.Size = new System.Drawing.Size(124, 22);
- this.cmCut.Text = "剪切";
- //
- // cmCopy
- //
- this.writerCommandControler1.SetCommandName(this.cmCopy, "Copy");
- this.cmCopy.Image = ((System.Drawing.Image)(resources.GetObject("cmCopy.Image")));
- this.cmCopy.Name = "cmCopy";
- this.cmCopy.Size = new System.Drawing.Size(124, 22);
- this.cmCopy.Text = "复制";
- //
- // cmPaste
- //
- this.writerCommandControler1.SetCommandName(this.cmPaste, "Paste");
- this.cmPaste.Image = ((System.Drawing.Image)(resources.GetObject("cmPaste.Image")));
- this.cmPaste.Name = "cmPaste";
- this.cmPaste.Size = new System.Drawing.Size(124, 22);
- this.cmPaste.Text = "粘贴";
- //
- // cmColor
- //
- this.writerCommandControler1.SetCommandName(this.cmColor, "Color");
- this.cmColor.Image = ((System.Drawing.Image)(resources.GetObject("cmColor.Image")));
- this.cmColor.Name = "cmColor";
- this.cmColor.Size = new System.Drawing.Size(124, 22);
- this.cmColor.Text = "颜色";
- //
- // cmFont
- //
- this.writerCommandControler1.SetCommandName(this.cmFont, "Font");
- this.cmFont.Image = ((System.Drawing.Image)(resources.GetObject("cmFont.Image")));
- this.cmFont.Name = "cmFont";
- this.cmFont.Size = new System.Drawing.Size(124, 22);
- this.cmFont.Text = "字体...";
- //
- // cmAlignLeft
- //
- this.writerCommandControler1.SetCommandName(this.cmAlignLeft, "AlignLeft");
- this.cmAlignLeft.Image = ((System.Drawing.Image)(resources.GetObject("cmAlignLeft.Image")));
- this.cmAlignLeft.Name = "cmAlignLeft";
- this.cmAlignLeft.Size = new System.Drawing.Size(124, 22);
- this.cmAlignLeft.Text = "左对齐";
- //
- // cmAlignCenter
- //
- this.writerCommandControler1.SetCommandName(this.cmAlignCenter, "AlignCenter");
- this.cmAlignCenter.Image = ((System.Drawing.Image)(resources.GetObject("cmAlignCenter.Image")));
- this.cmAlignCenter.Name = "cmAlignCenter";
- this.cmAlignCenter.Size = new System.Drawing.Size(124, 22);
- this.cmAlignCenter.Text = "居中对齐";
- //
- // cmAlignRight
- //
- this.writerCommandControler1.SetCommandName(this.cmAlignRight, "AlignRight");
- this.cmAlignRight.Image = ((System.Drawing.Image)(resources.GetObject("cmAlignRight.Image")));
- this.cmAlignRight.Name = "cmAlignRight";
- this.cmAlignRight.Size = new System.Drawing.Size(124, 22);
- this.cmAlignRight.Text = "右对齐";
- //
- // cmEdit
- //
- this.cmEdit.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.cmRedo,
- this.cmUndo,
- this.toolStripMenuItem4,
- this.cmCut,
- this.cmCopy,
- this.cmPaste,
- this.toolStripMenuItem5,
- this.cmColor,
- this.cmFont,
- this.toolStripMenuItem6,
- this.cmAlignLeft,
- this.cmAlignCenter,
- this.cmAlignRight,
- this.toolStripMenuItem8});
- this.cmEdit.Name = "cmEdit";
- this.cmEdit.Size = new System.Drawing.Size(125, 248);
- //
- // toolStripMenuItem4
- //
- this.toolStripMenuItem4.Name = "toolStripMenuItem4";
- this.toolStripMenuItem4.Size = new System.Drawing.Size(121, 6);
- //
- // toolStripMenuItem5
- //
- this.toolStripMenuItem5.Name = "toolStripMenuItem5";
- this.toolStripMenuItem5.Size = new System.Drawing.Size(121, 6);
- //
- // toolStripMenuItem6
- //
- this.toolStripMenuItem6.Name = "toolStripMenuItem6";
- this.toolStripMenuItem6.Size = new System.Drawing.Size(121, 6);
- //
- // toolStripMenuItem8
- //
- this.toolStripMenuItem8.Name = "toolStripMenuItem8";
- this.toolStripMenuItem8.Size = new System.Drawing.Size(121, 6);
- //
- // ucDocumentGoodsBill
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.myEditControl);
- this.Controls.Add(this.toolStrip1);
- this.Margin = new System.Windows.Forms.Padding(2);
- this.Name = "ucDocumentGoodsBill";
- this.Size = new System.Drawing.Size(865, 448);
- this.Load += new System.EventHandler(this.ucDocumentGoodsBill_Load);
- this.toolStrip1.ResumeLayout(false);
- this.toolStrip1.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.writerCommandControler1)).EndInit();
- this.cmEdit.ResumeLayout(false);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
- private System.Windows.Forms.ToolStripButton tsbSave;
- private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
- private System.Windows.Forms.ToolStripButton tsbSaveAndPrint;
- private System.Windows.Forms.ToolStripSeparator toolStripSeparator5;
- private System.Windows.Forms.ToolStripButton tsbPreview;
- private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
- private System.Windows.Forms.ToolStripButton tsbCheckout;
- private DCSoft.Writer.Controls.WriterControl myEditControl;
- private DCSoft.Writer.Commands.WriterCommandControler writerCommandControler1;
- private System.Windows.Forms.ContextMenuStrip cmEdit;
- private System.Windows.Forms.ToolStripMenuItem cmRedo;
- private System.Windows.Forms.ToolStripMenuItem cmUndo;
- private System.Windows.Forms.ToolStripSeparator toolStripMenuItem4;
- private System.Windows.Forms.ToolStripMenuItem cmCut;
- private System.Windows.Forms.ToolStripMenuItem cmCopy;
- private System.Windows.Forms.ToolStripMenuItem cmPaste;
- private System.Windows.Forms.ToolStripSeparator toolStripMenuItem5;
- private System.Windows.Forms.ToolStripMenuItem cmColor;
- private System.Windows.Forms.ToolStripMenuItem cmFont;
- private System.Windows.Forms.ToolStripSeparator toolStripMenuItem6;
- private System.Windows.Forms.ToolStripMenuItem cmAlignLeft;
- private System.Windows.Forms.ToolStripMenuItem cmAlignCenter;
- private System.Windows.Forms.ToolStripMenuItem cmAlignRight;
- private System.Windows.Forms.ToolStripSeparator toolStripMenuItem8;
- public System.Windows.Forms.ToolStrip toolStrip1;
- }
-}
diff --git a/AIMS/OremrUserControl/ucDocumentGoodsBill.cs b/AIMS/OremrUserControl/ucDocumentGoodsBill.cs
deleted file mode 100644
index 30d8e5c..0000000
--- a/AIMS/OremrUserControl/ucDocumentGoodsBill.cs
+++ /dev/null
@@ -1,397 +0,0 @@
-using AIMS.PublicUI.UI;
-using DCSoft.Writer;
-using DCSoft.Writer.Data;
-using DCSoft.Writer.Dom;
-using DocumentManagement;
-using DrawGraph;
-using System;
-using System.Data;
-using System.Linq;
-using System.Reflection;
-using System.Windows.Forms;
-using System.Xml;
-
-namespace AIMS.OremrUserControl
-{
- public partial class ucDocumentGoodsBill : UserControl
- {
- //模板Model
- private PrintTemplate TModel = new PrintTemplate();
- //文档Model
- private PrintDocument DModel = new PrintDocument();
- //患者Id
- public PatientRecord Patient = new PatientRecord();
- //刷新文档目录
- public delegate void RefreshUcClassify(int patientId);
- public RefreshUcClassify RefreshUc;
- //文档标题
- public delegate void ModifyTitle();
- public ModifyTitle ModifyT;
- public delegate void ClearTitle();
- public ClearTitle ClearT;
- //关闭
- public delegate void CloseParent();
- public CloseParent CloseP;
- //容器tab
- //public TabItem Tb;
- //文档事件
- private EventCodeCompiler codeCompiler;
- private string strClick, strContentChanged;
-
- public ucDocumentGoodsBill(int tempId, int docId, PatientRecord patient)
- {
- InitializeComponent();
-
- Patient = patient;
- TModel.Id = tempId;
- DModel.Id = docId;
- DModel.TemplateId = tempId;
- }
-
- public ucDocumentGoodsBill(PrintDocument model, PatientRecord patient)
- {
- InitializeComponent();
-
- Patient = patient;
- DModel = model;
- }
-
- private void ucDocumentGoodsBill_Load(object sender, EventArgs e)
- {
- //myEditControl初始化
- myEditControl.MoveFocusHotKey = MoveFocusHotKeys.Tab;
- myEditControl.HeaderFooterReadonly = true;
- myEditControl.CommandControler = this.writerCommandControler1;
- writerCommandControler1.Start();
- //表单视图模式
- myEditControl.FormView = DCSoft.Writer.Controls.FormViewMode.Strict;
- //加载知识库
- //DocumentDAL.LoadKBLibaray();
- myEditControl.ExecuteCommand("LoadKBLibrary", false, DocumentDAL.Lib);
- // 注册自定义的输入域下拉列表提供者
- myEditControl.AppHost.Services.AddService(
- typeof(IListItemsProvider),
- new MyListItemsProvider());
- //// 设置文档处于调试模式
- //myEditControl.DocumentOptions.BehaviorOptions.DebugMode = true;
- //myEditControl.DocumentOptions.BehaviorOptions.InsertCommentBindingUserTrack = true;
- //启用逻辑删除、权限控制
- myEditControl.Document.Options.SecurityOptions.EnablePermission = true;
- myEditControl.Document.Options.SecurityOptions.EnableLogicDelete = true;
- myEditControl.Document.Options.SecurityOptions.ShowLogicDeletedContent = true;
- myEditControl.Document.Options.SecurityOptions.ShowPermissionMark = true;
- myEditControl.Document.Options.SecurityOptions.ShowPermissionTip = true;
- //文档事件
- myEditControl.DocumentContentChanged += new WriterEventHandler(myEditControl_DocumentContentChanged);
- myEditControl.AfterExecuteCommand += new DCSoft.Writer.Commands.WriterCommandEventHandler(myEditControl_AfterExecuteCommand);
-
- if (DModel.Id > 0)
- {
- //加载文档
- DModel = DocumentDAL.GetDocumentbyId(DModel.Id);
- myEditControl.LoadDocumentFromString(DModel.XmlFile, "xml");
-
- //患者基本信息二次赋值
- var query = from XTextElement in myEditControl.Document.Fields.ToArray()
- where XTextElement is XTextInputFieldElement
- && (XTextElement as XTextInputFieldElement).FieldSettings != null
- && (XTextElement as XTextInputFieldElement).FieldSettings.EditStyle != InputFieldEditStyle.Date
- && (XTextElement as XTextInputFieldElement).FieldSettings.ListSource != null
- select XTextElement as XTextInputFieldElement;
- DataRow[] dr = DocumentDAL.GetReflectionList("V_OperationRecordALL").Select("KB_SEQ <> '' and Reload=1");
- var p = typeof(PatientRecord).GetProperties();
- for (int i = 0; i < dr.Count(); i++)
- {
- var name = dr[i].ItemArray[0].ToString();
- var value = dr[i].ItemArray[1].ToString();
- XTextInputFieldElement element = query.Where(x => x.FieldSettings.ListSource.SourceName == value).FirstOrDefault();
- PropertyInfo info = p.Where(px => px.Name == name).FirstOrDefault();
- if (element != null && info != null)
- {
- element.Text = info.GetValue(Patient, null).ToString();
- }
- }
- }
- else
- {
- //无文档则加载模板
- TModel = DocumentDAL.GetTemplatebyId(DModel.TemplateId);
- if (TModel.XmlFile == null || TModel.XmlFile.Trim().Equals(string.Empty))
- {
- myEditControl.ExecuteCommand("FileNew", true, null);
- }
- else
- {
- myEditControl.LoadDocumentFromString(TModel.XmlFile, "xml");
- }
- DModel.XmlFileName = TModel.XmlFileName;
- DModel.TemplateId = TModel.Id;
- //患者基本信息赋值
- var query = from XTextElement in myEditControl.Document.Fields.ToArray()
- where XTextElement is XTextInputFieldElement
- && (XTextElement as XTextInputFieldElement).FieldSettings != null
- && (XTextElement as XTextInputFieldElement).FieldSettings.EditStyle != InputFieldEditStyle.Date
- && (XTextElement as XTextInputFieldElement).FieldSettings.ListSource != null
- select XTextElement as XTextInputFieldElement;
- DataRow[] dr = DocumentDAL.GetReflectionList("V_OperationRecordALL").Select("KB_SEQ <> ''");
- var p = typeof(PatientRecord).GetProperties();
- for (int i = 0; i < dr.Count(); i++)
- {
- var name = dr[i].ItemArray[0].ToString();
- var value = dr[i].ItemArray[1].ToString();
- XTextInputFieldElement element = query.Where(x => x.FieldSettings.ListSource.SourceName == value).FirstOrDefault();
- PropertyInfo info = p.Where(px => px.Name == name).FirstOrDefault();
- if (element != null && info != null)
- {
- element.Text = info.GetValue(Patient, null).ToString();
- }
- }
-
- if (Patient.LisResult != null && Patient.LisResult.PATIENT_ID != null)
- {
- DataRow[] drr = DocumentDAL.GetReflectionList("V_LisResult").Select("KB_SEQ <> ''");
- var lis = typeof(PatientLisResult).GetProperties();
- for (int i = 0; i < drr.Count(); i++)
- {
- var name = drr[i].ItemArray[0].ToString();
- var value = drr[i].ItemArray[1].ToString();
- XTextInputFieldElement element = query.Where(x => x.FieldSettings.ListSource.SourceName == value).FirstOrDefault();
- PropertyInfo info = lis.Where(px => px.Name == name).FirstOrDefault();
- if (element != null && info != null)
- {
- element.Text = info.GetValue(Patient.LisResult, null).ToString();
- }
- }
- }
- DocumentExtension.SetDocumentDefaultValue(TModel.XmlFileName, myEditControl.Document, Patient);
- }
- string xmlStatic = DocumentDAL.GetEventXml(DModel.TemplateId);
- if (xmlStatic != string.Empty)
- {
- XmlDocument doc = new XmlDocument();
- doc.LoadXml(xmlStatic);
- strClick = doc.GetElementsByTagName("ClickEvent")[0].InnerText;
- strContentChanged = doc.GetElementsByTagName("ContentChangedEnvent")[0].InnerText;
- }
- codeCompiler = new EventCodeCompiler(ref this.myEditControl, strClick, strContentChanged);
-
- //文档用户信息
- myEditControl.UserLoginByParameter(
- AIMSExtension.PublicMethod.OperatorNo,
- AIMSExtension.PublicMethod.OperatorName,
- AIMSExtension.PublicMethod.PermissionLevel);
- //隐藏痕迹先
- myEditControl.ExecuteCommand(StandardCommandNames.CleanViewMode, false, true);
-
- if (Patient.MedicalRecord != null && Patient.MedicalRecord != "")
- {
- tsbSave.Visible = false;
- tsbSaveAndPrint.Text = "打印";
- }
-
- }
-
- void myEditControl_AfterExecuteCommand(object eventSender, DCSoft.Writer.Commands.WriterCommandEventArgs args)
- {
- if (args.Name == "Undo" && !myEditControl.Document.Modified && ClearT != null)
- {
- ClearT();
- }
- }
-
- void myEditControl_DocumentContentChanged(object eventSender, WriterEventArgs args)
- {
- if (myEditControl.Document.Modified && ModifyT != null)
- {
- ModifyT();
- }
- }
-
- private void tsbSave_Click(object sender, EventArgs e)
- {
- try
- {
- SaveDocument();
- }
- catch (Exception exp)
- {
- MessageBox.Show(exp.Message, "提示");
- }
- }
-
- ///
- /// 关闭文档
- ///
- /// 文档标题
- /// 是否取消关闭
- public void CloseMsg(string text, ref bool isCancel)
- {
- if (text.EndsWith("*"))
- {
- DialogResult result = MessageBox.Show("文档【"
- + DModel.XmlFileName +
- "】已经修改,尚未保存,是否保存文件?", "系统提示", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question,
- MessageBoxDefaultButton.Button1);
- switch (result)
- {
- case DialogResult.Yes:
- try
- {
- SaveDocument();
- }
- catch (Exception exp)
- {
- MessageBox.Show(exp.Message, "提示");
- isCancel = true;
- }
- break;
- case DialogResult.No:
- break;
- case DialogResult.Cancel:
- isCancel = true;
- return;
- //break;
- default:
- break;
- }
- }
- }
-
- ///
- /// 保存文档
- ///
- public void SaveDocument()
- {
- try
- {
- //输入域校验
- ValueValidateResultList listR = myEditControl.Document.ValueValidate();
- string vMsg = "";
- foreach (var item in listR)
- {
- vMsg += item.Message + System.Environment.NewLine;
- }
- if (vMsg.Length > 0)
- {
- throw new Exception(vMsg);
- }
- //model赋值
- DModel.XmlFile = myEditControl.Document.XMLText;
- DModel.PatientId = this.Patient.PatientId;
- DModel.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
- XmlDocument doc = new XmlDocument();
- XmlElement rootNode = doc.CreateElement("Root");
- doc.AppendChild(rootNode);
- var query = from XTextElement in myEditControl.Document.Fields.ToArray()
- where (XTextElement is XTextInputFieldElement && (XTextElement as XTextInputFieldElement).ToolTip != "")
- || XTextElement is XTextCheckBoxElement && ((XTextElement as XTextCheckBoxElement).ToolTip != "")
- select XTextElement;
- foreach (var element in query)
- {
- XmlElement itemNode = doc.CreateElement("Item");
-
- if (element is XTextInputFieldElement)
- {
- itemNode.SetAttribute("Name", (element as XTextInputFieldElement).ToolTip);
- itemNode.InnerText = element.Text;
- rootNode.AppendChild(itemNode);
- }
- else if (element is XTextCheckBoxElement)
- {
- itemNode.SetAttribute("Name", (element as XTextCheckBoxElement).ToolTip);
- itemNode.SetAttribute("Checked", ((XTextCheckBoxElement)element).Checked == true ? "1" : "0");
- itemNode.InnerText = (element as XTextCheckBoxElement).Value;
- rootNode.AppendChild(itemNode);
- }
- }
- DModel.XmlStatic = doc.OuterXml;
- if (DModel.Id > 0)
- {
- DocumentDAL.UpdatePrintDocument(this.DModel);
- //MessageBox.Show("修改成功!");
- }
- else
- {
- DocumentDAL.InsertPrintDocument(this.DModel);
- //new frmMessageBox().Show();
- }
- if (RefreshUc != null)
- {
- RefreshUc(this.Patient.PatientId);
- }
- if (ClearT != null)
- {
- ClearT();
- }
- myEditControl.Document.Modified = false;
- ////更新ASA分级与心功能分级
- //if (DModel.XmlFileName == "麻醉术前访视单")
- //{
- // var asa = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
- // && (x as XTextInputFieldElement).ToolTip == "ASA分级").FirstOrDefault();
- // string strASA = asa == null ? "" : asa.Text;
- // var hf = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
- // && (x as XTextInputFieldElement).ToolTip == "心功能分级").FirstOrDefault();
- // string strH = hf == null ? "" : hf.Text;
- // BOperationApply.UpdateASA(Patient.ApplyId, strASA, strH);
- //}
-
- new frmMessageBox().Show();
- }
- catch
- {
- //MessageBox.Show(ex.Message, "错误");
- throw;
- }
- }
-
- public void tsbSaveAndPrint_Click(object sender, EventArgs e)
- {
- if (tsbCheckout.Text == " 隐藏痕迹")
- {
- tsbCheckout_Click(null, null);
- }
- if (tsbSaveAndPrint.Text == "打印")
- {
- myEditControl.ExecuteCommand("FilePrint", true, null);
- }
- else
- {
- tsbSave_Click(null, null);
- myEditControl.ExecuteCommand("FilePrint", true, null);
- }
- }
-
- private void tsbPreview_Click(object sender, EventArgs e)
- {
- if (tsbCheckout.Text == " 隐藏痕迹")
- {
- tsbCheckout_Click(null, null);
- }
- myEditControl.ExecuteCommand("FilePrintPreview", true, null);
- }
-
- private void tsbExit_Click(object sender, EventArgs e)
- {
- CloseP();
- }
-
- private void tsbCheckout_Click(object sender, EventArgs e)
- {
- if (tsbCheckout.Text == " 查看痕迹")
- {
- myEditControl.ExecuteCommand(StandardCommandNames.ComplexViewMode, false, true);
- myEditControl.RefreshDocument();
- tsbCheckout.Text = " 隐藏痕迹";
- }
- else
- {
- myEditControl.ExecuteCommand(StandardCommandNames.CleanViewMode, false, true);
- myEditControl.RefreshDocument();
- tsbCheckout.Text = " 查看痕迹";
- }
- }
-
-
- }
-}
diff --git a/AIMS/OremrUserControl/ucDocumentGoodsBill.resx b/AIMS/OremrUserControl/ucDocumentGoodsBill.resx
deleted file mode 100644
index 98f903d..0000000
--- a/AIMS/OremrUserControl/ucDocumentGoodsBill.resx
+++ /dev/null
@@ -1,231 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 17, 17
-
-
- 143, 17
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS
- cQAAEnEB89x6jgAAAVpJREFUOE/Fk7FLAlEcx+8/6U+4PQfHwuU2wyEkCXI7iOBGheDavBZpiRw8Glzs
- EEwiOLjBxMG8EAcLlGhIkd7rrEgMvr331CwUUgn6wC3v/X6f3/f94KQ/xW28Il/xkLEpaq13jI7nI+cQ
- 0ZiwJp9uElQac4gKRQrzgiAQa8EXzcG/k0VAcxBNEmhM4rb6QtLtDeBXr6eFGSZQDgjkjRSC8QIiuiNE
- cjiLsEGwm6YosSRn5Wcmt6cFJ5eemL66eYzHpxdRkC7cwrdlQlZS2E5SqCkC9YgNYVLR9J2xILiX+XFZ
- rnegxi3RzJMosWHK0fWEU6eHkE6wzhKMjgRtOoBxPpwsmtUmS2RMC+zqeAdZUO/tq4AvjL+Zx+aTefPK
- 2gwBh0f0a00Uq/ezC37DKrZFish+eTkBJxRzhSRf6qJDP5YTqYcPCCUIbu4mu1iYq3ofTm3Bf+GfkKRP
- YYMA39/ezxQAAAAASUVORK5CYII=
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS
- cQAAEnEB89x6jgAAAVJJREFUOE+1kD9Lw1AUxfuN8gE6ZHfJpnQKdrFbxo4pCHUzk3SRdrAoZKmhUEJR
- AxmKBLF/KA4qtlgtWoovbWOpWjjmvgZBUpUIPXCXd+/5nXtfbKVq92bQ7TF0y0Xlcozm9Su86RxB+3eR
- USsx7Jsudo1FEahss+UQ7YhhOPngDfPC4+bUHoOo1CFulRBPlbGmdlGsMpg1NwxQfcCxM8JZa8rNstbx
- zZZvtpDM2ljPmBDlAqQdBn0ZQMl1oOQYlEKQLJd4HZg3fPjpxUN8s8i3yJ+MwwBKlFRKXkCUjAHnavBt
- kLb5ESCpHQjKAkKbEPCu/x4CJLJdHNqTMEBM0830YRYEf3Vhwy9J+xp8GHi8R39gNZb8wV+qNe5BIXRi
- 8BRNyW2Hpxu152iAgTtH5XzIzQm1GT29dTvlZildx6nzGB1gt2fIV/sYeW//u33FisU+AR7kFq4i1td2
- AAAAAElFTkSuQmCC
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS
- cQAAEnEB89x6jgAAAVZJREFUOE+tkMFLAkEUxv2DBO952EMX8TLnPS2B4EKHOQpdtsvacZcgvAgSSpAY
- 22KIB0EYqCQqsUsgiMNCm0W0UHTq8LVvCqGDq4IfDMO8+b7fezOpjWs0GqPpd/F3VJJS4qTl/6st1Mtb
- BKdSw3v0MQ94Xh9icL8agORUPHTFrQrI5wgGt0BTqMtV1G4LOE4NYRiifz0EM/h6gJ54UM9onnfALQe6
- bq4eJgVBqII0OnXf27fXA5DMUlmFWdFCT6zxgXL2Dbf1CWZNYR9PwEpD6NYI7qmEGL4mgyhsHkXQyxL5
- nQZyhSryJaEgWrGPw8YgGWC3ZmAH09jsIcMccNtXYbrrXEpVU8ZFojDt4yCamwkwefpC8+IOGY0vAcTv
- JnNHUDdLmbl7A82IJ9IMpNPZZAB3H3/NcfctVlBmGj27bSIdr7p/lQwgc263qgL1syXmzSiV+gGVpfCL
- dUj0HgAAAABJRU5ErkJggg==
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS
- cQAAEnEB89x6jgAAAT5JREFUOE+9kSFPxEAQhftT+hPuJ1RWViIrkSuRK5ErK1eeXFm5ssmZNYSSQNgL
- CSFBsA7cY2b27not5CpIeMkzzc733kyLP8v5iOyQ3QdYF/D4/IrDk8vi4aWs82i1xfi0X4dw6lJm6+GH
- gFaZdQhXZvkRoOYIMcFYBzckWinb9vTNZd+/fM6BXPekLyAlIL7RIAGW0tuEzbXH7uFjgliqy7IDVack
- 7SKUjbCUvJTqMnhz5bC7e88Q3peVJD1JOq9h+3xc47LDmNCaKMPssrEHAO3Lw8dkcRfokPO/w28Y7gPB
- 6VhzALXl1DBGekAeIjSBWLy36qKkNzqIBVCfATZ1+8PKTL/3GMDp8lfo8GVtpkP+pvY2A86TTw3obquA
- 5sbL3lx3spdhPnxZrQAq5WcXF1OqmIbLSl8G/JOK4hs42OceHB7wsAAAAABJRU5ErkJggg==
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS
- cQAAEnEB89x6jgAAAZRJREFUOE+1kqFuHDEURecP9hP2ExYWGgYaLjQMNAw0CFgVGQ40XGi40HBQZThS
- qtRRChYals3tfXYm2aQbVapUS0eWZuae5/c8w39ZKToIMTj8fHrEy+Pr6/v8DfHoXwneoJ5Do8we9lbB
- HyxxbX9+engvlFCtEQupNSCMtu1f7y3y5OCshjM71ETxaQtr9J8CCQv+YBii8OxZ3aFMBnHUMHuF4LbI
- foDdfxSEVRDgnWFFQfPoL7CipcDbLjA36r0grALpu7B65tHD5o2RMLiivuw+CEbXh1a4z+w/a9S4gQ9s
- aYxwnhwCrAswdx7G+isCqTxzSBPDiQMTAcPLsnR+LRxsRTlX6FsHbdybJHipTCbVw6cNShhaZQmHmDrH
- hFwoYDhNGUqbLpH7lb7XcD0OXcBjX1bOc0XKBXpvW1jdaCjFgcrPUSciYR69UJBHXhd7lvDlCWQuMeU+
- H6J2WwqchPsVXSIDu6ycptLC8dR5FTz/eGj3L/dttIJWu/ZCpi09r9Wu0QSfLZm2fPA3+tf/vIbhN/oU
- /B2SVSR4AAAAAElFTkSuQmCC
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS
- cQAAEnEB89x6jgAAAT9JREFUOE9jwAcu3Xr1v2rSof9QLukgv33/f//89f+vPXhPuiGfv/4EawZhr4wl
- pBvQNv/M/7ZZh/7bx8//r+/f/3/v8dukGQKy9dOXH/9DyxaDDfBImUO8AduO3vqfVLMBrOHUlWf/9cP7
- wYacuvSIOENAmm/dfwNXbJ04FWxAUsk8wgY8e/Xpv334/P+h+Yv/h2ZOA9PWkUAD3Ov/y5vn/3/0FGEw
- VlA1Yc//pIZV/6/cevz/2Llb/0+du/f/+h2gN0AG2Of/TymdjdsAUKCBnPvx0zcMRQ2TtoFdoONcjt2A
- Zy8//M9v3fjfOqjtv1ciqqJV204ANceDXQDCOs4Z/z98+oJq0MfP38FOvXLzMRA/QJH88OkrWOzKtbv/
- LwLxlet3/3/4iGYAheA/0DRyMBxgkyQGwwE2SWIwAwMA+v4jx0CWuW8AAAAASUVORK5CYII=
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS
- cQAAEnEB89x6jgAAALZJREFUOE9jGEZgQseE/7jw9P7p/6HKcAOQwnOnz/1//PDx/yXzloA1gvggDGJD
- leEGIIVQJsPqpavBmkCGgfjIckQBkAEGGgb/vby8/js4BGBgfn5+/AbOnz8fpOB/Y2Pj//379//X19cH
- 8/v7+//D5EDqcAKQooSMBLgX7O3twZpAhoH4IINANE6AHgboBuAEHz98/A/TDMKg2ACJEW0ALjBwBty/
- fx/ufBAGxQbZrqARYGAAAIsJsq+EVytAAAAAAElFTkSuQmCC
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS
- cQAAEnEB89x6jgAAADFJREFUOE9jGDTgPxGYtgCbjYQwdQE2G9AxbQE2Gwlh6gJsNqBj2gJsNhLCwwMw
- MAAA3ddBv2ARh7EAAAAASUVORK5CYII=
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS
- cQAAEnEB89x6jgAAAD1JREFUOE/djTEKACAMxAr2/1/WJWOGIgeCgWx3pN7TvfaN3INYxWQexCoTuQex
- isk8iFUmcg9iFZP5P1Qdb5tK0V1/owgAAAAASUVORK5CYII=
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS
- cQAAEnEB89x6jgAAACtJREFUOE9jGBTgP5mYdgCbbdgw9QA204nBwwlg8x8xmHYAm23Y8PAADAwA4MY9
- w+4nm/MAAAAASUVORK5CYII=
-
-
-
- 394, 17
-
-
\ No newline at end of file