动态加载手术诊断大小
This commit is contained in:
parent
49e6b68658
commit
073f1fd73c
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<AtuoUpdate>
|
||||
<ConnectionString>Data Source=.;Initial Catalog=AIMSDB_QHDSGRYY;User ID=sa;Password=Test2020;</ConnectionString>
|
||||
<ConnectionString>Data Source=.;Initial Catalog=AIMSDB_FJZPTFYY;User ID=sa;Password=Test2020;</ConnectionString>
|
||||
<DataConnectionString>Data Source=.;Initial Catalog=AIMSDB_DATA;User ID=sa;Password=Test2020;</DataConnectionString>
|
||||
<HisConnectionStringOracel>Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.7)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl2))));Persist Security Info=True;User ID=smview;Password=i39;</HisConnectionStringOracel>
|
||||
<LastLoginNo></LastLoginNo>
|
||||
|
||||
@ -138,7 +138,7 @@ namespace AIMS.DocManager
|
||||
if (temp.model.XmlFile != string.Empty)
|
||||
{
|
||||
myEditControl.LoadDocumentFromString(temp.model.XmlFile, "xml");
|
||||
this.codeCompiler = new EventCodeCompiler(ref myEditControl, temp.RTB_Click.Text, temp.RTB_Content.Text);
|
||||
this.codeCompiler = new EventCodeCompiler( ref myEditControl, temp.RTB_Click.Text, temp.RTB_Content.Text);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -236,7 +236,7 @@ namespace AIMS.DocManager
|
||||
if (temp.model.XmlFile != string.Empty)
|
||||
{
|
||||
myEditControl.LoadDocumentFromString(temp.model.XmlFile, "xml");
|
||||
this.codeCompiler = new EventCodeCompiler(ref myEditControl, temp.RTB_Click.Text, temp.RTB_Content.Text);
|
||||
this.codeCompiler = new EventCodeCompiler( ref myEditControl, temp.RTB_Click.Text, temp.RTB_Content.Text);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
using AIMSBLL;
|
||||
using AIMS.PublicUI.UI;
|
||||
using AIMSBLL;
|
||||
using AIMSExtension;
|
||||
using AIMSModel;
|
||||
using DrawGraph;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
@ -12,6 +14,20 @@ namespace AIMS
|
||||
{
|
||||
public class EMRExtension
|
||||
{
|
||||
public static void OpenFeesRecord(OperationRecord _record, string type)
|
||||
{
|
||||
if (PublicMethod.HospitalName.Contains("漳浦"))
|
||||
{
|
||||
string Path = string.Format("http://10.129.130.60:5050/centerweb/");
|
||||
System.Diagnostics.Process.Start(Path);
|
||||
}
|
||||
else
|
||||
{
|
||||
frmFeesRecord frmchargRecord = new frmFeesRecord(_record, "麻醉");
|
||||
frmchargRecord.Show();
|
||||
frmchargRecord.BringToFront();
|
||||
}
|
||||
}
|
||||
public static void OpenEMRS(int patientid, int applyid)
|
||||
{
|
||||
OperationApply opeapply = new OperationApply();
|
||||
@ -48,7 +64,7 @@ namespace AIMS
|
||||
string HisPatientId = pat.HisPatientId;
|
||||
string HisPatientId2 = pat.Extend5;
|
||||
|
||||
string Path = string.Format("http://10.129.130.60:5050/osworksweb/operating_externalinformation.jsp?vaa07={0}&vaa01={1}&acf01=2&dbstyle=db2", HisPatientId,HisPatientId2);
|
||||
string Path = string.Format("http://10.129.130.60:5050/osworksweb/operating_externalinformation.jsp?vaa07={0}&vaa01={1}&acf01=2&dbstyle=db2", HisPatientId, HisPatientId2);
|
||||
System.Diagnostics.Process.Start(Path);
|
||||
}
|
||||
|
||||
|
||||
@ -2197,9 +2197,10 @@ namespace AIMS.OperationAanesthesia
|
||||
}
|
||||
private void btnChage_Click(object sender, EventArgs e)
|
||||
{
|
||||
frmFeesRecord frmchargRecord = new frmFeesRecord(_record, "麻醉");
|
||||
frmchargRecord.Show();
|
||||
frmchargRecord.BringToFront();
|
||||
if (_record != null)
|
||||
{
|
||||
EMRExtension.OpenFeesRecord(_record, "麻醉");
|
||||
}
|
||||
}
|
||||
private void frmAnasRecordBill2_VisibleChanged(object sender, EventArgs e)
|
||||
{
|
||||
@ -2273,7 +2274,7 @@ namespace AIMS.OperationAanesthesia
|
||||
_record.AnalgesiaRecord.HeartFunction = "Ⅰ级";
|
||||
|
||||
_record.AnalgesiaRecord.Consciousness = "清醒";
|
||||
_record.AnalgesiaRecord.NutritionalDevelopment = "中";
|
||||
_record.AnalgesiaRecord.NutritionalDevelopment = "良";
|
||||
_record.AnalgesiaRecord.Pregnancy = "无";
|
||||
_record.AnalgesiaRecord.LooseDenture = "无";
|
||||
_record.AnalgesiaRecord.DifficultyOpeningMouth = "无";
|
||||
|
||||
@ -72,18 +72,18 @@
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panel5 = new System.Windows.Forms.Panel();
|
||||
this.superTabMain = new DevComponents.DotNetBar.SuperTabControl();
|
||||
this.superTabControlPanel2 = new DevComponents.DotNetBar.SuperTabControlPanel();
|
||||
this.panelExBLSJ = new DevComponents.DotNetBar.PanelEx();
|
||||
this.panel82 = new AIMS.PublicUI.UI.DrawPanel();
|
||||
this.circularProgress2 = new DevComponents.DotNetBar.Controls.CircularProgress();
|
||||
this.zgcAnaesRecord2 = new DrawGraph.ZedGraphControl();
|
||||
this.spTabBM = new DevComponents.DotNetBar.SuperTabItem();
|
||||
this.superTabControlPanel1 = new DevComponents.DotNetBar.SuperTabControlPanel();
|
||||
this.panelExZKZB = new DevComponents.DotNetBar.PanelEx();
|
||||
this.panel8 = new AIMS.PublicUI.UI.DrawPanel();
|
||||
this.circularProgress1 = new DevComponents.DotNetBar.Controls.CircularProgress();
|
||||
this.zgcAnaesRecord = new DrawGraph.ZedGraphControl();
|
||||
this.spTabQXQDD = new DevComponents.DotNetBar.SuperTabItem();
|
||||
this.superTabControlPanel2 = new DevComponents.DotNetBar.SuperTabControlPanel();
|
||||
this.panelExBLSJ = new DevComponents.DotNetBar.PanelEx();
|
||||
this.panel82 = new AIMS.PublicUI.UI.DrawPanel();
|
||||
this.circularProgress2 = new DevComponents.DotNetBar.Controls.CircularProgress();
|
||||
this.zgcAnaesRecord2 = new DrawGraph.ZedGraphControl();
|
||||
this.spTabBM = new DevComponents.DotNetBar.SuperTabItem();
|
||||
this.panel7 = new System.Windows.Forms.Panel();
|
||||
this.panel21 = new System.Windows.Forms.Panel();
|
||||
this.PanelSave = new System.Windows.Forms.Panel();
|
||||
@ -140,12 +140,12 @@
|
||||
this.panel5.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.superTabMain)).BeginInit();
|
||||
this.superTabMain.SuspendLayout();
|
||||
this.superTabControlPanel2.SuspendLayout();
|
||||
this.panelExBLSJ.SuspendLayout();
|
||||
this.panel82.SuspendLayout();
|
||||
this.superTabControlPanel1.SuspendLayout();
|
||||
this.panelExZKZB.SuspendLayout();
|
||||
this.panel8.SuspendLayout();
|
||||
this.superTabControlPanel2.SuspendLayout();
|
||||
this.panelExBLSJ.SuspendLayout();
|
||||
this.panel82.SuspendLayout();
|
||||
this.panel7.SuspendLayout();
|
||||
this.panel21.SuspendLayout();
|
||||
this.plTitleEventTime.SuspendLayout();
|
||||
@ -888,96 +888,6 @@
|
||||
this.spTabBM});
|
||||
this.superTabMain.SelectedTabChanged += new System.EventHandler<DevComponents.DotNetBar.SuperTabStripSelectedTabChangedEventArgs>(this.superTabMain_SelectedTabChanged);
|
||||
//
|
||||
// superTabControlPanel2
|
||||
//
|
||||
this.superTabControlPanel2.Controls.Add(this.panelExBLSJ);
|
||||
this.superTabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.superTabControlPanel2.Location = new System.Drawing.Point(0, 28);
|
||||
this.superTabControlPanel2.Name = "superTabControlPanel2";
|
||||
this.superTabControlPanel2.Size = new System.Drawing.Size(1389, 803);
|
||||
this.superTabControlPanel2.TabIndex = 0;
|
||||
this.superTabControlPanel2.TabItem = this.spTabBM;
|
||||
//
|
||||
// panelExBLSJ
|
||||
//
|
||||
this.panelExBLSJ.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.panelExBLSJ.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.panelExBLSJ.Controls.Add(this.panel82);
|
||||
this.panelExBLSJ.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.panelExBLSJ.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panelExBLSJ.Location = new System.Drawing.Point(0, 0);
|
||||
this.panelExBLSJ.Name = "panelExBLSJ";
|
||||
this.panelExBLSJ.Size = new System.Drawing.Size(1389, 803);
|
||||
this.panelExBLSJ.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.panelExBLSJ.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
|
||||
this.panelExBLSJ.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
|
||||
this.panelExBLSJ.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.panelExBLSJ.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.panelExBLSJ.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.panelExBLSJ.Style.GradientAngle = 90;
|
||||
this.panelExBLSJ.TabIndex = 0;
|
||||
//
|
||||
// panel82
|
||||
//
|
||||
this.panel82.AutoScroll = true;
|
||||
this.panel82.BackColor = System.Drawing.Color.White;
|
||||
this.panel82.Controls.Add(this.circularProgress2);
|
||||
this.panel82.Controls.Add(this.zgcAnaesRecord2);
|
||||
this.panel82.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel82.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel82.Name = "panel82";
|
||||
this.panel82.Size = new System.Drawing.Size(1389, 803);
|
||||
this.panel82.TabIndex = 3;
|
||||
this.panel82.Scroll += new System.Windows.Forms.ScrollEventHandler(this.panel82_Scroll);
|
||||
//
|
||||
// circularProgress2
|
||||
//
|
||||
this.circularProgress2.AnimationSpeed = 50;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.circularProgress2.BackgroundStyle.BackgroundImageAlpha = ((byte)(0));
|
||||
this.circularProgress2.BackgroundStyle.BackgroundImagePosition = DevComponents.DotNetBar.eStyleBackgroundImage.Zoom;
|
||||
this.circularProgress2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.circularProgress2.FocusCuesEnabled = false;
|
||||
this.circularProgress2.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.circularProgress2.Location = new System.Drawing.Point(678, 354);
|
||||
this.circularProgress2.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.circularProgress2.Name = "circularProgress2";
|
||||
this.circularProgress2.ProgressColor = System.Drawing.Color.DodgerBlue;
|
||||
this.circularProgress2.Size = new System.Drawing.Size(389, 239);
|
||||
this.circularProgress2.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP;
|
||||
this.circularProgress2.TabIndex = 6;
|
||||
this.circularProgress2.Value = 100;
|
||||
//
|
||||
// zgcAnaesRecord2
|
||||
//
|
||||
this.zgcAnaesRecord2.Location = new System.Drawing.Point(416, 41);
|
||||
this.zgcAnaesRecord2.Name = "zgcAnaesRecord2";
|
||||
this.zgcAnaesRecord2.ScrollGrace = 0D;
|
||||
this.zgcAnaesRecord2.ScrollMaxX = 0D;
|
||||
this.zgcAnaesRecord2.ScrollMaxY = 0D;
|
||||
this.zgcAnaesRecord2.ScrollMaxY2 = 0D;
|
||||
this.zgcAnaesRecord2.ScrollMinX = 0D;
|
||||
this.zgcAnaesRecord2.ScrollMinY = 0D;
|
||||
this.zgcAnaesRecord2.ScrollMinY2 = 0D;
|
||||
this.zgcAnaesRecord2.Size = new System.Drawing.Size(800, 1000);
|
||||
this.zgcAnaesRecord2.TabIndex = 0;
|
||||
this.zgcAnaesRecord2.Visible = false;
|
||||
this.zgcAnaesRecord2.ContextMenuBuilder += new DrawGraph.ZedGraphControl.ContextMenuBuilderEventHandler(this.zgcAnaesRecord2_ContextMenuBuilder);
|
||||
this.zgcAnaesRecord2.MouseDownEvent += new DrawGraph.ZedGraphControl.ZedMouseEventHandler(this.zgcAnaesRecord2_MouseDownEvent);
|
||||
this.zgcAnaesRecord2.MouseUpEvent += new DrawGraph.ZedGraphControl.ZedMouseEventHandler(this.zgcAnaesRecord2_MouseUpEvent);
|
||||
this.zgcAnaesRecord2.MouseMoveEvent += new DrawGraph.ZedGraphControl.ZedMouseEventHandler(this.zgcAnaesRecord2_MouseMoveEvent);
|
||||
this.zgcAnaesRecord2.KeyUp += new System.Windows.Forms.KeyEventHandler(this.zgcAnaesRecord2_KeyUp);
|
||||
this.zgcAnaesRecord2.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.zgcAnaesRecord2_MouseDoubleClick);
|
||||
//
|
||||
// spTabBM
|
||||
//
|
||||
this.spTabBM.AttachedControl = this.superTabControlPanel2;
|
||||
this.spTabBM.GlobalItem = false;
|
||||
this.spTabBM.Name = "spTabBM";
|
||||
this.spTabBM.Text = "麻醉记录单背面";
|
||||
//
|
||||
// superTabControlPanel1
|
||||
//
|
||||
this.superTabControlPanel1.Controls.Add(this.panelExZKZB);
|
||||
@ -1068,6 +978,96 @@
|
||||
this.spTabQXQDD.Name = "spTabQXQDD";
|
||||
this.spTabQXQDD.Text = "麻醉记录单正面";
|
||||
//
|
||||
// superTabControlPanel2
|
||||
//
|
||||
this.superTabControlPanel2.Controls.Add(this.panelExBLSJ);
|
||||
this.superTabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.superTabControlPanel2.Location = new System.Drawing.Point(0, 28);
|
||||
this.superTabControlPanel2.Name = "superTabControlPanel2";
|
||||
this.superTabControlPanel2.Size = new System.Drawing.Size(1389, 803);
|
||||
this.superTabControlPanel2.TabIndex = 0;
|
||||
this.superTabControlPanel2.TabItem = this.spTabBM;
|
||||
//
|
||||
// panelExBLSJ
|
||||
//
|
||||
this.panelExBLSJ.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.panelExBLSJ.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.panelExBLSJ.Controls.Add(this.panel82);
|
||||
this.panelExBLSJ.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.panelExBLSJ.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panelExBLSJ.Location = new System.Drawing.Point(0, 0);
|
||||
this.panelExBLSJ.Name = "panelExBLSJ";
|
||||
this.panelExBLSJ.Size = new System.Drawing.Size(1389, 803);
|
||||
this.panelExBLSJ.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.panelExBLSJ.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
|
||||
this.panelExBLSJ.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
|
||||
this.panelExBLSJ.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.panelExBLSJ.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.panelExBLSJ.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.panelExBLSJ.Style.GradientAngle = 90;
|
||||
this.panelExBLSJ.TabIndex = 0;
|
||||
//
|
||||
// panel82
|
||||
//
|
||||
this.panel82.AutoScroll = true;
|
||||
this.panel82.BackColor = System.Drawing.Color.White;
|
||||
this.panel82.Controls.Add(this.circularProgress2);
|
||||
this.panel82.Controls.Add(this.zgcAnaesRecord2);
|
||||
this.panel82.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel82.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel82.Name = "panel82";
|
||||
this.panel82.Size = new System.Drawing.Size(1389, 803);
|
||||
this.panel82.TabIndex = 3;
|
||||
this.panel82.Scroll += new System.Windows.Forms.ScrollEventHandler(this.panel82_Scroll);
|
||||
//
|
||||
// circularProgress2
|
||||
//
|
||||
this.circularProgress2.AnimationSpeed = 50;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.circularProgress2.BackgroundStyle.BackgroundImageAlpha = ((byte)(0));
|
||||
this.circularProgress2.BackgroundStyle.BackgroundImagePosition = DevComponents.DotNetBar.eStyleBackgroundImage.Zoom;
|
||||
this.circularProgress2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.circularProgress2.FocusCuesEnabled = false;
|
||||
this.circularProgress2.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.circularProgress2.Location = new System.Drawing.Point(678, 354);
|
||||
this.circularProgress2.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.circularProgress2.Name = "circularProgress2";
|
||||
this.circularProgress2.ProgressColor = System.Drawing.Color.DodgerBlue;
|
||||
this.circularProgress2.Size = new System.Drawing.Size(389, 239);
|
||||
this.circularProgress2.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP;
|
||||
this.circularProgress2.TabIndex = 6;
|
||||
this.circularProgress2.Value = 100;
|
||||
//
|
||||
// zgcAnaesRecord2
|
||||
//
|
||||
this.zgcAnaesRecord2.Location = new System.Drawing.Point(416, 41);
|
||||
this.zgcAnaesRecord2.Name = "zgcAnaesRecord2";
|
||||
this.zgcAnaesRecord2.ScrollGrace = 0D;
|
||||
this.zgcAnaesRecord2.ScrollMaxX = 0D;
|
||||
this.zgcAnaesRecord2.ScrollMaxY = 0D;
|
||||
this.zgcAnaesRecord2.ScrollMaxY2 = 0D;
|
||||
this.zgcAnaesRecord2.ScrollMinX = 0D;
|
||||
this.zgcAnaesRecord2.ScrollMinY = 0D;
|
||||
this.zgcAnaesRecord2.ScrollMinY2 = 0D;
|
||||
this.zgcAnaesRecord2.Size = new System.Drawing.Size(800, 1000);
|
||||
this.zgcAnaesRecord2.TabIndex = 0;
|
||||
this.zgcAnaesRecord2.Visible = false;
|
||||
this.zgcAnaesRecord2.ContextMenuBuilder += new DrawGraph.ZedGraphControl.ContextMenuBuilderEventHandler(this.zgcAnaesRecord2_ContextMenuBuilder);
|
||||
this.zgcAnaesRecord2.MouseDownEvent += new DrawGraph.ZedGraphControl.ZedMouseEventHandler(this.zgcAnaesRecord2_MouseDownEvent);
|
||||
this.zgcAnaesRecord2.MouseUpEvent += new DrawGraph.ZedGraphControl.ZedMouseEventHandler(this.zgcAnaesRecord2_MouseUpEvent);
|
||||
this.zgcAnaesRecord2.MouseMoveEvent += new DrawGraph.ZedGraphControl.ZedMouseEventHandler(this.zgcAnaesRecord2_MouseMoveEvent);
|
||||
this.zgcAnaesRecord2.KeyUp += new System.Windows.Forms.KeyEventHandler(this.zgcAnaesRecord2_KeyUp);
|
||||
this.zgcAnaesRecord2.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.zgcAnaesRecord2_MouseDoubleClick);
|
||||
//
|
||||
// spTabBM
|
||||
//
|
||||
this.spTabBM.AttachedControl = this.superTabControlPanel2;
|
||||
this.spTabBM.GlobalItem = false;
|
||||
this.spTabBM.Name = "spTabBM";
|
||||
this.spTabBM.Text = "麻醉记录单背面";
|
||||
//
|
||||
// panel7
|
||||
//
|
||||
this.panel7.BackColor = System.Drawing.SystemColors.Control;
|
||||
@ -2020,12 +2020,12 @@
|
||||
this.panel5.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.superTabMain)).EndInit();
|
||||
this.superTabMain.ResumeLayout(false);
|
||||
this.superTabControlPanel2.ResumeLayout(false);
|
||||
this.panelExBLSJ.ResumeLayout(false);
|
||||
this.panel82.ResumeLayout(false);
|
||||
this.superTabControlPanel1.ResumeLayout(false);
|
||||
this.panelExZKZB.ResumeLayout(false);
|
||||
this.panel8.ResumeLayout(false);
|
||||
this.superTabControlPanel2.ResumeLayout(false);
|
||||
this.panelExBLSJ.ResumeLayout(false);
|
||||
this.panel82.ResumeLayout(false);
|
||||
this.panel7.ResumeLayout(false);
|
||||
this.panel7.PerformLayout();
|
||||
this.panel21.ResumeLayout(false);
|
||||
|
||||
@ -236,6 +236,11 @@ namespace AIMS.OperationAanesthesia
|
||||
ToolStrip toolbar = ctl as ToolStrip;
|
||||
toolbar.Items.RemoveAt(0);
|
||||
ToolStrip tb = ctl as ToolStrip;
|
||||
ToolStripButton settingBtn4 = new ToolStripButton();
|
||||
settingBtn4.ToolTipText = "打印全部正面";
|
||||
settingBtn4.Text = "打印全部正面";
|
||||
settingBtn4.Click += PageSetting_Click4;
|
||||
tb.Items.Insert(0, settingBtn4);
|
||||
ToolStripButton settingBtn3 = new ToolStripButton();
|
||||
settingBtn3.ToolTipText = "打印反面";
|
||||
settingBtn3.Text = "打印反面";
|
||||
@ -296,7 +301,6 @@ namespace AIMS.OperationAanesthesia
|
||||
{
|
||||
pDoc.Print();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void PageSetting_Click3(object sender, EventArgs e)
|
||||
@ -326,7 +330,37 @@ namespace AIMS.OperationAanesthesia
|
||||
{
|
||||
pDoc.Print();
|
||||
}
|
||||
}
|
||||
private void PageSetting_Click4(object sender, EventArgs e)
|
||||
{
|
||||
mPanes = new List<MasterPane>();
|
||||
UpPanes = new List<MasterPane>();
|
||||
|
||||
while (_record.pageCount != 1)
|
||||
{
|
||||
btnUpPage_Click(null, null);
|
||||
}
|
||||
for (int i = 1; i <= _record.pageCount; i++)
|
||||
{
|
||||
PrintDocPane(null, zgcAnaesRecord, templateManage, true);
|
||||
btnNextPage_Click(null, null);
|
||||
}
|
||||
count = 0;
|
||||
int pylWidth = 3;
|
||||
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 Margins(pylWidth, 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;
|
||||
if (pDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
pDoc.Print();
|
||||
}
|
||||
}
|
||||
private void PrintDocPage(object sender, PrintPageEventArgs e)
|
||||
{
|
||||
@ -454,62 +488,6 @@ namespace AIMS.OperationAanesthesia
|
||||
{
|
||||
e.HasMorePages = false;
|
||||
}
|
||||
|
||||
//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 ex)
|
||||
// {
|
||||
// //出错处理,终止打印,设置e.HasMorePages参数,初始化相关变量
|
||||
// e.HasMorePages = false;
|
||||
// m_PageIndex = 1;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
#endregion
|
||||
@ -2449,9 +2427,10 @@ namespace AIMS.OperationAanesthesia
|
||||
}
|
||||
private void btnChage_Click(object sender, EventArgs e)
|
||||
{
|
||||
frmFeesRecord frmchargRecord = new frmFeesRecord(_record, "麻醉");
|
||||
frmchargRecord.Show();
|
||||
frmchargRecord.BringToFront();
|
||||
if (_record != null)
|
||||
{
|
||||
EMRExtension.OpenFeesRecord(_record , "麻醉");
|
||||
}
|
||||
}
|
||||
private void frmAnasRecordBill2_VisibleChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@ -1649,9 +1649,10 @@ namespace AIMS.OperationAanesthesia
|
||||
}
|
||||
private void btnChage_Click(object sender, EventArgs e)
|
||||
{
|
||||
frmFeesRecord frmchargRecord = new frmFeesRecord(_record, "恢复室");
|
||||
frmchargRecord.Show();
|
||||
frmchargRecord.BringToFront();
|
||||
if (_record != null)
|
||||
{
|
||||
EMRExtension.OpenFeesRecord(_record, "恢复室");
|
||||
}
|
||||
}
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@ -2217,9 +2217,10 @@ namespace AIMS.OperationAanesthesia
|
||||
|
||||
private void btnChage_Click(object sender, EventArgs e)
|
||||
{
|
||||
frmFeesRecord frmchargRecord = new frmFeesRecord(_record, "护士");
|
||||
frmchargRecord.Show();
|
||||
frmchargRecord.BringToFront();
|
||||
if (_record != null)
|
||||
{
|
||||
EMRExtension.OpenFeesRecord(_record, "护士");
|
||||
}
|
||||
}
|
||||
|
||||
private void frmAnasRecordInstrument_VisibleChanged(object sender, EventArgs e)
|
||||
|
||||
@ -938,6 +938,7 @@ namespace AIMS.OperationAanesthesia
|
||||
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 (value == "KB20180604142714558" && element.Text!="") continue;
|
||||
if (element != null && info != null)
|
||||
{
|
||||
element.Text = info.GetValue(Patient, null).ToString();
|
||||
@ -1879,9 +1880,10 @@ namespace AIMS.OperationAanesthesia
|
||||
|
||||
private void btnChage_Click(object sender, EventArgs e)
|
||||
{
|
||||
frmFeesRecord frmchargRecord = new frmFeesRecord(_record, "护士");
|
||||
frmchargRecord.Show();
|
||||
frmchargRecord.BringToFront();
|
||||
if (_record != null)
|
||||
{
|
||||
EMRExtension.OpenFeesRecord(_record, "护士");
|
||||
}
|
||||
}
|
||||
|
||||
private void button10_Click(object sender, EventArgs e)
|
||||
@ -1957,6 +1959,7 @@ namespace AIMS.OperationAanesthesia
|
||||
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 (value == "KB20180604142714558" && element.Text != "") continue;
|
||||
if (element != null && info != null)
|
||||
{
|
||||
element.Text = info.GetValue(Patient, null).ToString();
|
||||
@ -1992,6 +1995,7 @@ namespace AIMS.OperationAanesthesia
|
||||
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 (value == "KB20180604142714558" && element.Text != "") continue;
|
||||
if (element != null && info != null)
|
||||
{
|
||||
element.Text = info.GetValue(Patient, null).ToString();
|
||||
|
||||
@ -60,7 +60,7 @@ namespace AIMS.OperationAfter.UI
|
||||
|
||||
if (CboOperationSite.Visible == true && CboOperationSite.SelectedIndex > 0)
|
||||
{
|
||||
operationApplys = AIMSExtension.PublicMethod.GetNewDataTable( operationApplys, " OperationSite ='" + CboOperationSite.SelectedValue + "' ", "");
|
||||
operationApplys = AIMSExtension.PublicMethod.GetNewDataTable(operationApplys, " OperationSite ='" + CboOperationSite.SelectedValue + "' ", "");
|
||||
}
|
||||
LoadSelectDate();
|
||||
dgvtEMPOperationInfos.Rows.Clear();
|
||||
@ -138,10 +138,11 @@ namespace AIMS.OperationAfter.UI
|
||||
int PatientId = int.Parse(dgvOperation.CurrentRow.Cells[2].Value.ToString());
|
||||
OperationRecord _record = new OperationRecord();
|
||||
BOperationRecord.getRecord(_record, PatientId, 1);
|
||||
frmFeesRecord frmchargRecord = new frmFeesRecord(_record, rdoZQ.Checked == true ? "麻醉" : "护士");
|
||||
frmchargRecord.Show();
|
||||
frmchargRecord.BringToFront();
|
||||
|
||||
if (_record != null)
|
||||
{
|
||||
EMRExtension.OpenFeesRecord(_record, rdoZQ.Checked == true ? "麻醉" : "护士");
|
||||
}
|
||||
dgvtEMPOperationInfos.Rows.Clear();
|
||||
SetChargDetalie(_record.Id.Value);
|
||||
}
|
||||
|
||||
@ -183,6 +183,7 @@ namespace AIMS.OremrUserControl
|
||||
strClick = doc.GetElementsByTagName("ClickEvent")[0].InnerText;
|
||||
strContentChanged = doc.GetElementsByTagName("ContentChangedEnvent")[0].InnerText;
|
||||
}
|
||||
string XmlFileName = TModel.XmlFileName;
|
||||
codeCompiler = new EventCodeCompiler(ref this.myEditControl, strClick, strContentChanged);
|
||||
|
||||
//文档用户信息
|
||||
@ -192,6 +193,7 @@ namespace AIMS.OremrUserControl
|
||||
AIMSExtension.PublicMethod.PermissionLevel);
|
||||
//隐藏痕迹先
|
||||
myEditControl.ExecuteCommand(StandardCommandNames.CleanViewMode, false, true);
|
||||
codeCompiler.IsLoad = true;
|
||||
|
||||
if (Patient.MedicalRecord != null && Patient.MedicalRecord != "")
|
||||
{
|
||||
@ -199,7 +201,6 @@ namespace AIMS.OremrUserControl
|
||||
tsbSaveAndPrint.Text = "打印";
|
||||
}
|
||||
|
||||
string XmlFileName = TModel.XmlFileName;
|
||||
if (DModel != null) XmlFileName = DModel.XmlFileName;
|
||||
if (XmlFileName == "压疮风险评估表" || XmlFileName == "不计费耗材使用清单")
|
||||
{
|
||||
|
||||
@ -1,11 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
using HelperDB;
|
||||
using AIMSExtension;
|
||||
using DCSoft.Writer.Data;
|
||||
using System.Threading.Tasks;
|
||||
using HelperDB;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
|
||||
namespace DocumentManagement
|
||||
@ -184,6 +183,8 @@ namespace DocumentManagement
|
||||
/// 从数据库中加载知识库
|
||||
/// </summary>
|
||||
public static void LoadKBLibaray()
|
||||
{
|
||||
try
|
||||
{
|
||||
//if (Lib != null)
|
||||
//{
|
||||
@ -335,6 +336,11 @@ namespace DocumentManagement
|
||||
}//foreach
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
PublicMethod.WriteLog(ex);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回视图映射列表
|
||||
|
||||
@ -6,7 +6,6 @@ using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace DocumentManagement
|
||||
{
|
||||
@ -370,6 +369,193 @@ namespace DocumentManagement
|
||||
}
|
||||
}
|
||||
|
||||
public static void SetCocumentValueText(string XmlFileName, XTextDocument Document, XTextInputFieldElement element)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (XmlFileName == "分娩镇痛麻醉记录单")
|
||||
{
|
||||
if (element != null && element.Name == "镇痛开始时间" && element.Text != "")
|
||||
{
|
||||
DateTime dt = DateTime.Parse(element.Text);
|
||||
var texts = element.WriterControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement).ToList();
|
||||
|
||||
foreach (var item in texts)
|
||||
{
|
||||
switch (item.ID)
|
||||
{
|
||||
case "field24":
|
||||
item.Text = dt.AddMinutes(5).ToString("MM-dd HH:mm");
|
||||
break;
|
||||
case "field25":
|
||||
item.Text = dt.AddMinutes(10).ToString("MM-dd HH:mm");
|
||||
break;
|
||||
case "field26":
|
||||
item.Text = dt.AddMinutes(30).ToString("MM-dd HH:mm");
|
||||
break;
|
||||
case "field27":
|
||||
item.Text = dt.AddHours(1).ToString("MM-dd HH:mm");
|
||||
break;
|
||||
case "field28":
|
||||
item.Text = dt.AddHours(2).ToString("MM-dd HH:mm");
|
||||
break;
|
||||
case "field29":
|
||||
item.Text = dt.AddHours(3).ToString("MM-dd HH:mm");
|
||||
break;
|
||||
case "field30":
|
||||
item.Text = dt.AddHours(4).ToString("MM-dd HH:mm");
|
||||
break;
|
||||
case "field31":
|
||||
item.Text = dt.AddHours(5).ToString("MM-dd HH:mm");
|
||||
break;
|
||||
case "field32":
|
||||
item.Text = dt.AddHours(6).ToString("MM-dd HH:mm");
|
||||
break;
|
||||
case "field33":
|
||||
item.Text = dt.AddHours(7).ToString("MM-dd HH:mm");
|
||||
break;
|
||||
case "field34":
|
||||
item.Text = dt.AddHours(8).ToString("MM-dd HH:mm");
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (element != null && element.Name == "BP" && element.Text != "")
|
||||
{
|
||||
int bp = 0;
|
||||
if (int.TryParse(element.Text, out bp))
|
||||
{
|
||||
if (bp > 60)
|
||||
{
|
||||
element.Text = bp.ToString() + "/";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
PublicMethod.WriteLog(ex);
|
||||
}
|
||||
}
|
||||
|
||||
public static void SetCocumentValueText2(string XmlFileName, XTextDocument Document, XTextInputFieldElement element)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (XmlFileName == "分娩镇痛麻醉记录单")
|
||||
{
|
||||
if (element != null && element.Name == "BP" && element.Text != "")
|
||||
{
|
||||
if (element.Text.Contains("/"))
|
||||
{
|
||||
List<string> list = element.Text.Split('/').ToList();
|
||||
if (list.Count == 2)
|
||||
{
|
||||
int bp = 0;
|
||||
int bp2 = 0;
|
||||
if (int.TryParse(list[0], out bp) && int.TryParse(list[1], out bp2))
|
||||
{
|
||||
var texts = element.WriterControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement && (x as XTextInputFieldElement).Name == "BP").ToList();
|
||||
|
||||
foreach (var item in texts)
|
||||
{
|
||||
if (item.ID == element.ID) continue;
|
||||
int randomNumber = GenerateRandomNumberWithPercentageRange(bp, 10);
|
||||
int randomNumber2 = GenerateRandomNumberWithPercentageRange(bp2, 10);
|
||||
item.Text = randomNumber.ToString() + "/" + randomNumber2.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (element != null && element.Name == "HR" && element.Text != "")
|
||||
{
|
||||
int bp = 0;
|
||||
if (int.TryParse(element.Text, out bp))
|
||||
{
|
||||
if (bp > 0)
|
||||
{
|
||||
var texts = element.WriterControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement && (x as XTextInputFieldElement).Name == "HR").ToList();
|
||||
|
||||
foreach (var item in texts)
|
||||
{
|
||||
if (item.ID == element.ID) continue;
|
||||
int randomNumber = GenerateRandomNumberWithPercentageRange(bp, 10);
|
||||
item.Text = randomNumber.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (element != null && element.Name == "RR" && element.Text != "")
|
||||
{
|
||||
int bp = 0;
|
||||
if (int.TryParse(element.Text, out bp))
|
||||
{
|
||||
if (bp > 0)
|
||||
{
|
||||
var texts = element.WriterControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement && (x as XTextInputFieldElement).Name == "RR").ToList();
|
||||
|
||||
foreach (var item in texts)
|
||||
{
|
||||
if (item.ID == element.ID) continue;
|
||||
int randomNumber = GenerateRandomNumberWithPercentageRange(bp, 5);
|
||||
item.Text = randomNumber.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (element != null && element.Name == "SPO2" && element.Text != "")
|
||||
{
|
||||
int bp = 0;
|
||||
if (int.TryParse(element.Text, out bp))
|
||||
{
|
||||
if (bp > 0)
|
||||
{
|
||||
var texts = element.WriterControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement && (x as XTextInputFieldElement).Name == "SPO2").ToList();
|
||||
|
||||
foreach (var item in texts)
|
||||
{
|
||||
if (item.ID == element.ID) continue;
|
||||
item.Text = bp.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (element != null && element.Name == "VAS" && element.Text != "")
|
||||
{
|
||||
int bp = 0;
|
||||
if (int.TryParse(element.Text, out bp))
|
||||
{
|
||||
if (bp > 0)
|
||||
{
|
||||
var texts = element.WriterControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement && (x as XTextInputFieldElement).Name == "VAS").ToList();
|
||||
|
||||
foreach (var item in texts)
|
||||
{
|
||||
if (item.ID == element.ID) continue;
|
||||
item.Text = bp.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
PublicMethod.WriteLog(ex);
|
||||
}
|
||||
}
|
||||
|
||||
static int GenerateRandomNumberWithPercentageRange(int number, int percentage)
|
||||
{
|
||||
Random random = new Random();
|
||||
int min = number - percentage;
|
||||
int max = number + percentage;
|
||||
return random.Next(min, max);
|
||||
}
|
||||
public static int AddApplyOperation(PatientRecord _operationRecord, string Operation)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
@ -1,21 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.CodeDom.Compiler;
|
||||
using Microsoft.CSharp;
|
||||
using System.Reflection;
|
||||
using DCSoft.Writer;
|
||||
using DCSoft.Writer.Controls;
|
||||
using DCSoft.Writer;
|
||||
using DCSoft.Writer.Dom;
|
||||
using System.Windows.Forms;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Xml;
|
||||
using HelperDB;
|
||||
using AxNsoOfficeLib;
|
||||
using System.Drawing;
|
||||
using DocumentManagement.UI;
|
||||
using System.Xml.Linq;
|
||||
using HelperDB;
|
||||
using System;
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace DocumentManagement
|
||||
{
|
||||
@ -27,9 +19,10 @@ namespace DocumentManagement
|
||||
|
||||
private ElementEventTemplate eet;
|
||||
|
||||
//string strMouseClickEvent = string.Empty;
|
||||
|
||||
//string strContentChangedEvent = string.Empty;
|
||||
public bool IsLoad = false;
|
||||
private XTextInputFieldElement SelElement;
|
||||
private string SelElementName;
|
||||
private string SelElementValue;
|
||||
|
||||
public EventCodeCompiler(ref WriterControl myEditControl, string strMouseClickEvent, string strContentChangedEvent)
|
||||
{
|
||||
@ -39,157 +32,60 @@ namespace DocumentManagement
|
||||
eet.ContentChanged += new ContentChangedEventHandler(eet_ContentChanged);
|
||||
myEditControl.GlobalEventTemplate_Element = eet;
|
||||
|
||||
var providerOptions = new Dictionary<string, string>();
|
||||
providerOptions.Add("CompilerVersion", "v4.0");
|
||||
CodeDomProvider cdp = new CSharpCodeProvider(providerOptions);
|
||||
CompilerParameters cp = new CompilerParameters();
|
||||
cp.GenerateExecutable = false;
|
||||
cp.GenerateInMemory = true;
|
||||
cp.ReferencedAssemblies.Add("mscorlib.dll");
|
||||
cp.ReferencedAssemblies.Add("System.dll");
|
||||
cp.ReferencedAssemblies.Add("System.Core.dll");
|
||||
cp.ReferencedAssemblies.Add("DCSoft.Writer.dll");
|
||||
cp.ReferencedAssemblies.Add("System.Data.Linq.dll");
|
||||
cp.ReferencedAssemblies.Add("System.Xml.Linq.dll");
|
||||
cp.ReferencedAssemblies.Add("System.Windows.Forms.dll");
|
||||
string source = @"
|
||||
namespace DocumentManagement
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using DCSoft.Writer;
|
||||
using DCSoft.Writer.Dom;
|
||||
using System.Windows.Forms;
|
||||
using System.Reflection;
|
||||
public class BindEvents
|
||||
{
|
||||
private static XTextDocument doc;
|
||||
private static XTextContainerElement container;
|
||||
public BindEvents(DCSoft.Writer.Controls.WriterControl myEditControl)
|
||||
{
|
||||
doc = myEditControl.Document;
|
||||
container = myEditControl.Document;
|
||||
|
||||
}
|
||||
public static void MouseClickEvent(XTextElement element){
|
||||
|
||||
" + strMouseClickEvent + @"
|
||||
}
|
||||
|
||||
public static void ContentChangedEvent(XTextElement element)
|
||||
{
|
||||
" + strContentChangedEvent + @"
|
||||
}
|
||||
|
||||
private static void SetValueById(string Id, string type, object value)
|
||||
{
|
||||
var element = doc.GetElementsById(Id).FirstElement;
|
||||
if (element != null)
|
||||
{
|
||||
var pChecked = element.GetType().GetProperty(type);
|
||||
pChecked.SetValue(element, value, null);
|
||||
element.EditorRefreshView();
|
||||
}
|
||||
}
|
||||
|
||||
private static void SetValueByName(string name, string type,object value)
|
||||
{
|
||||
var element = doc.GetElementsByName(name).FirstElement;
|
||||
if (element != null)
|
||||
{
|
||||
var pChecked = element.GetType().GetProperty(type);
|
||||
pChecked.SetValue(element, value, null);
|
||||
element.EditorRefreshView();
|
||||
}
|
||||
}
|
||||
|
||||
private static bool GetCheckedValueByName(string name)
|
||||
{
|
||||
bool? result = null;
|
||||
var element = doc.GetElementsByName(name).FirstElement;
|
||||
if (element != null)
|
||||
{
|
||||
var pChecked = element.GetType().GetProperty(""Checked"");
|
||||
result = Convert.ToBoolean(pChecked.GetValue(element, null));
|
||||
}
|
||||
return result.Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
";
|
||||
cr = cdp.CompileAssemblyFromSource(cp, source);
|
||||
if (cr.Errors.HasErrors)
|
||||
{
|
||||
MessageBox.Show("加载元素事件失败!");
|
||||
}
|
||||
else
|
||||
{
|
||||
Assembly a = cr.CompiledAssembly;
|
||||
type = a.GetTypes().Where(x => x.IsClass).FirstOrDefault();
|
||||
Type[] types = new Type[1];
|
||||
types[0] = typeof(WriterControl);
|
||||
ConstructorInfo ci = type.GetConstructor(types);
|
||||
if (ci != null)
|
||||
{
|
||||
object obj = ci.Invoke(new object[] { myEditControl });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public CompilerErrorCollection Errors { get { return cr.Errors; } }
|
||||
|
||||
void eet_ContentChanged(object eventSender, ContentChangedEventArgs args)
|
||||
{
|
||||
if (IsLoad)
|
||||
{
|
||||
if (args.Element is XTextInputFieldElement)
|
||||
{
|
||||
//var element = args.Element as XTextInputFieldElement;
|
||||
try
|
||||
{
|
||||
Object rslt = type.InvokeMember(
|
||||
"ContentChangedEvent",
|
||||
BindingFlags.Public | BindingFlags.InvokeMethod | BindingFlags.Static,
|
||||
null,
|
||||
null, // for static class
|
||||
new object[] { args.Element });
|
||||
var element = args.Element as XTextInputFieldElement;
|
||||
if (SelElementName != null && SelElementName == element.Name && SelElementValue == element.Text)
|
||||
return;
|
||||
SelElement = element;
|
||||
SelElementName = element.Name;
|
||||
SelElementValue = element.Text;
|
||||
DocumentExtension.SetCocumentValueText(element.WriterControl.Document.FileName, element.WriterControl.Document, element);
|
||||
}
|
||||
catch (Exception exp)
|
||||
{
|
||||
MessageBox.Show(exp.StackTrace + ":" + exp.Message);
|
||||
}
|
||||
}
|
||||
if (eventSender is XTextRadioBoxElement)
|
||||
else if (eventSender is XTextRadioBoxElement)
|
||||
{
|
||||
var element = args.Element as XTextRadioBoxElement;
|
||||
DocumentExtension.SetCocumentValue(element.WriterControl.Document.FileName, element.WriterControl.Document);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void eetChk_MouseClick(object eventSender, ElementMouseEventArgs args)
|
||||
{
|
||||
if (args.Element is XTextCheckBoxElement || args.Element is XTextRadioBoxElement)
|
||||
{
|
||||
try
|
||||
{
|
||||
Object rslt = type.InvokeMember(
|
||||
"MouseClickEvent",
|
||||
BindingFlags.Public | BindingFlags.InvokeMethod | BindingFlags.Static,
|
||||
null,
|
||||
null, // for static class
|
||||
new object[] { args.Element });
|
||||
}
|
||||
catch (Exception exp)
|
||||
{
|
||||
MessageBox.Show(exp.StackTrace + ":" + exp.Message);
|
||||
}
|
||||
//var doc = myEditControl.Document;
|
||||
//var element = args.Element;
|
||||
//if (args.Element is XTextCheckBoxElement || args.Element is XTextRadioBoxElement)
|
||||
//{
|
||||
// try
|
||||
// {
|
||||
// Object rslt = type.InvokeMember(
|
||||
// "MouseClickEvent",
|
||||
// BindingFlags.Public | BindingFlags.InvokeMethod | BindingFlags.Static,
|
||||
// null,
|
||||
// null, // for static class
|
||||
// new object[] { args.Element });
|
||||
// }
|
||||
// catch (Exception exp)
|
||||
// {
|
||||
// MessageBox.Show(exp.StackTrace + ":" + exp.Message);
|
||||
// }
|
||||
// //var doc = myEditControl.Document;
|
||||
// //var element = args.Element;
|
||||
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
private void Eet_MouseDblClick(object eventSender, ElementMouseEventArgs args)
|
||||
{
|
||||
eet.MouseDblClick -= Eet_MouseDblClick;
|
||||
if (IsLoad)
|
||||
if (args.Element is XTextInputFieldElement)
|
||||
{
|
||||
var element = args.Element as XTextInputFieldElement;
|
||||
@ -203,6 +99,10 @@ namespace DocumentManagement
|
||||
showPacsText.ShowDialog();
|
||||
//element.WriterControl.Parent as ucDocument.
|
||||
}
|
||||
else
|
||||
{
|
||||
DocumentExtension.SetCocumentValueText2(element.WriterControl.Document.FileName, element.WriterControl.Document, element);
|
||||
}
|
||||
}
|
||||
else if (eventSender is XTextImageElement)
|
||||
{
|
||||
@ -261,6 +161,7 @@ namespace DocumentManagement
|
||||
// (eventSender as XTextImageElement).ID =="image3" 标识Id用于定位赋值图片
|
||||
}
|
||||
}
|
||||
eet.MouseDblClick += Eet_MouseDblClick;
|
||||
}
|
||||
public string GetSignatureStr(int SelectPersonData)
|
||||
{
|
||||
|
||||
@ -103,6 +103,8 @@ namespace DrawGraph
|
||||
{
|
||||
text = "无";
|
||||
}
|
||||
|
||||
TokenEditorManage.SetAutoSizeRowSpan(template,ableEdit, text);
|
||||
//设置属性的值
|
||||
template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value);
|
||||
break;
|
||||
|
||||
@ -184,6 +184,8 @@ namespace DrawGraph
|
||||
case EControlType.Directorys:
|
||||
value = ableEdit.PackValue;
|
||||
text = DBManage.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText);
|
||||
|
||||
TokenEditorManage.SetAutoSizeRowSpan(template, ableEdit, text);
|
||||
//设置属性的值
|
||||
template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value);
|
||||
break;
|
||||
@ -195,7 +197,6 @@ namespace DrawGraph
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 初始画的后置方法
|
||||
/// </summary>
|
||||
|
||||
@ -4,6 +4,7 @@ using HelperDB;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Windows.Forms;
|
||||
using static System.Net.Mime.MediaTypeNames;
|
||||
|
||||
namespace DrawGraph
|
||||
{
|
||||
@ -165,6 +166,9 @@ namespace DrawGraph
|
||||
}
|
||||
if (IsVisible == true)
|
||||
aEdit.IsVisible = !aEdit.IsVisible;
|
||||
|
||||
TokenEditorManage.SetAutoSizeRowSpan(_template, aEdit, Value);
|
||||
|
||||
if (aEdit.PackValue != Value)
|
||||
//设置属性的值
|
||||
_template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Value, Key, true);
|
||||
@ -249,5 +253,138 @@ namespace DrawGraph
|
||||
//设置属性的值
|
||||
_template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Value, Key, true);
|
||||
}
|
||||
|
||||
|
||||
public static void SetAutoSizeRowSpan(TemplateManage template, AbleEditPackObj ableEdit, string text)
|
||||
{
|
||||
if (template.ProjectName == "麻醉记录单" && PublicMethod.HospitalName.Contains("天福"))
|
||||
{
|
||||
if (ableEdit.ClassDataSourceName == "OperationRecord.Applydiagnose")
|
||||
{
|
||||
ableEdit.FontSize = 9f;
|
||||
if (text.Length > 57)
|
||||
{
|
||||
ableEdit.FontSize = 8f;
|
||||
ableEdit.Y = 0.055f;
|
||||
}
|
||||
if (text.Length > 64)
|
||||
{
|
||||
ableEdit.FontSize = 7f;
|
||||
ableEdit.Y = 0.055f;
|
||||
}
|
||||
if (text.Length > 73)
|
||||
{
|
||||
ableEdit.FontSize = 7f;
|
||||
ableEdit.Y = 0.051f;
|
||||
ableEdit.RowSpan = 0.008f;
|
||||
}
|
||||
}
|
||||
else if (ableEdit.ClassDataSourceName == "OperationRecord.Applyoperation")
|
||||
{
|
||||
ableEdit.FontSize = 9f;
|
||||
if (text.Length > 57)
|
||||
{
|
||||
ableEdit.FontSize = 8f;
|
||||
ableEdit.Y = 0.073f;
|
||||
}
|
||||
if (text.Length > 64)
|
||||
{
|
||||
ableEdit.FontSize = 7f;
|
||||
ableEdit.Y = 0.073f;
|
||||
}
|
||||
if (text.Length > 73)
|
||||
{
|
||||
ableEdit.FontSize = 7f;
|
||||
ableEdit.Y = 0.069f;
|
||||
ableEdit.RowSpan = 0.008f;
|
||||
}
|
||||
}
|
||||
else if (ableEdit.ClassDataSourceName == "OperationRecord.Diagnose")
|
||||
{
|
||||
ableEdit.FontSize = 9f;
|
||||
if (text.Length > 57)
|
||||
{
|
||||
ableEdit.FontSize = 8f;
|
||||
ableEdit.Y = -0.031f;
|
||||
}
|
||||
if (text.Length > 64)
|
||||
{
|
||||
ableEdit.FontSize = 7f;
|
||||
ableEdit.Y = -0.031f;
|
||||
}
|
||||
if (text.Length > 73)
|
||||
{
|
||||
ableEdit.FontSize = 7f;
|
||||
ableEdit.Y = -0.035f;
|
||||
ableEdit.RowSpan = 0.008f;
|
||||
}
|
||||
}
|
||||
else if (ableEdit.ClassDataSourceName == "OperationRecord.Operation")
|
||||
{
|
||||
ableEdit.FontSize = 9f;
|
||||
if (text.Length > 43)
|
||||
{
|
||||
ableEdit.FontSize = 8f;
|
||||
ableEdit.Y = -0.0109f;
|
||||
}
|
||||
if (text.Length > 48)
|
||||
{
|
||||
ableEdit.FontSize = 7f;
|
||||
ableEdit.Y = -0.0109f;
|
||||
}
|
||||
if (text.Length > 63)
|
||||
{
|
||||
ableEdit.FontSize = 7f;
|
||||
ableEdit.Y = -0.015f;
|
||||
ableEdit.RowSpan = 0.008f;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else if (template.ProjectName == "恢复记录单" && PublicMethod.HospitalName.Contains("天福"))
|
||||
{
|
||||
if (ableEdit.ClassDataSourceName == "OperationRecord.Diagnose")
|
||||
{
|
||||
ableEdit.FontSize = 9f;
|
||||
if (text.Length > 57)
|
||||
{
|
||||
ableEdit.FontSize = 8f;
|
||||
ableEdit.Y = 0.041f;
|
||||
}
|
||||
if (text.Length > 64)
|
||||
{
|
||||
ableEdit.FontSize = 7f;
|
||||
ableEdit.Y = 0.041f;
|
||||
}
|
||||
if (text.Length > 73)
|
||||
{
|
||||
ableEdit.FontSize = 7f;
|
||||
ableEdit.Y = 0.037f;
|
||||
ableEdit.RowSpan = 0.008f;
|
||||
}
|
||||
}
|
||||
else if (ableEdit.ClassDataSourceName == "OperationRecord.Operation")
|
||||
{
|
||||
ableEdit.FontSize = 9f;
|
||||
if (text.Length > 43)
|
||||
{
|
||||
ableEdit.FontSize = 8f;
|
||||
ableEdit.Y = 0.062f;
|
||||
}
|
||||
if (text.Length > 48)
|
||||
{
|
||||
ableEdit.FontSize = 7f;
|
||||
ableEdit.Y = 0.062f;
|
||||
}
|
||||
if (text.Length > 63)
|
||||
{
|
||||
ableEdit.FontSize = 7f;
|
||||
ableEdit.Y = 0.058f;
|
||||
ableEdit.RowSpan = 0.008f;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -222,7 +222,7 @@ namespace DrawGraphManagement
|
||||
//}
|
||||
string text1 = "是否删除当前文档[" + node.Text + "]?";
|
||||
//string text2 = "是否删除当前节点[" + node.Text + "]及其子文档?";
|
||||
DialogResult result = MessageBox.Show( text1, "系统提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question,
|
||||
DialogResult result = MessageBox.Show(text1, "系统提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question,
|
||||
MessageBoxDefaultButton.Button1);
|
||||
if (result == System.Windows.Forms.DialogResult.Yes)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user