内镜同步患者申请信息

This commit is contained in:
leomon 2023-07-11 16:05:58 +08:00
parent 61a24e9310
commit e6e8236202
7 changed files with 2029 additions and 47 deletions

View File

@ -213,6 +213,7 @@
<DependentUpon>frmPharmaCology.cs</DependentUpon>
</Compile>
<Compile Include="Extensions\EMRExtension.cs" />
<Compile Include="Extensions\OpeApplyAnalyze.cs" />
<Compile Include="FormMainManage.cs">
<SubType>Form</SubType>
</Compile>

View File

@ -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>

File diff suppressed because it is too large Load Diff

View File

@ -1103,29 +1103,29 @@ namespace AIMS.OperationAanesthesia
LoadAnesRescue();
}
//private System.Windows.Forms.Timer timerLoadAnesRescue;
private System.Windows.Forms.Timer timerLoadAnesRescue;
public void LoadAnesRescue()
{
//circularProgress1.IsRunning = true;
//circularProgress1.Visible = true;
//circularProgress1.AnimationSpeed = 0;
//circularProgress2.IsRunning = true;
//circularProgress2.Visible = true;
//zgcAnaesRecord.Visible = false;
//zgcAnaesRecord2.Visible = false;
//timerLoadAnesRescue = new System.Windows.Forms.Timer(components);
//timerLoadAnesRescue.Enabled = true;//调试时设置为FALSE
//timerLoadAnesRescue.Interval = 200;
//timerLoadAnesRescue.Tick -= TimerLoadAnesRescue_Tick;
//timerLoadAnesRescue.Tick += TimerLoadAnesRescue_Tick;
//timerLoadAnesRescue.Start();
circularProgress1.IsRunning = true;
circularProgress1.Visible = true;
circularProgress1.AnimationSpeed = 0;
circularProgress2.IsRunning = true;
circularProgress2.Visible = true;
zgcAnaesRecord.Visible = false;
zgcAnaesRecord2.Visible = false;
timerLoadAnesRescue = new System.Windows.Forms.Timer(components);
timerLoadAnesRescue.Enabled = true;//调试时设置为FALSE
timerLoadAnesRescue.Interval = 200;
timerLoadAnesRescue.Tick -= TimerLoadAnesRescue_Tick;
timerLoadAnesRescue.Tick += TimerLoadAnesRescue_Tick;
timerLoadAnesRescue.Start();
TimerLoadAnesRescue_Tick(null, null);
//TimerLoadAnesRescue_Tick(null, null);
}
private void TimerLoadAnesRescue_Tick(object sender, EventArgs e)
{
//timerLoadAnesRescue.Dispose();
timerLoadAnesRescue.Dispose();
try
{
if (PatientId > 0 && State == AIMSExtension.EditState.ADD)

View File

@ -41,7 +41,9 @@
this.cboRoom = new System.Windows.Forms.ComboBox();
this.btnFrontDay = new System.Windows.Forms.Button();
this.btnNextDay = new System.Windows.Forms.Button();
this.dtpSelectPatientTime2 = new System.Windows.Forms.DateTimePicker();
this.dtpSelectPatientTime = new System.Windows.Forms.DateTimePicker();
this.label6 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.panel2 = new System.Windows.Forms.Panel();
this.buttonX2 = new DevComponents.DotNetBar.ButtonX();
@ -73,8 +75,7 @@
this.label3 = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.panel3 = new System.Windows.Forms.Panel();
this.dtpSelectPatientTime2 = new System.Windows.Forms.DateTimePicker();
this.label6 = new System.Windows.Forms.Label();
this.buttonX4 = new DevComponents.DotNetBar.ButtonX();
this.panel1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.panel2.SuspendLayout();
@ -87,6 +88,7 @@
this.panel1.Controls.Add(this.CboOperationSite);
this.panel1.Controls.Add(this.labelSite);
this.panel1.Controls.Add(this.txtquery);
this.panel1.Controls.Add(this.buttonX4);
this.panel1.Controls.Add(this.btnQuery);
this.panel1.Controls.Add(this.buttonX3);
this.panel1.Controls.Add(this.label1);
@ -240,6 +242,15 @@
this.btnNextDay.UseVisualStyleBackColor = false;
this.btnNextDay.Click += new System.EventHandler(this.btnNext_Click);
//
// dtpSelectPatientTime2
//
this.dtpSelectPatientTime2.CustomFormat = "yyyy-MM-dd";
this.dtpSelectPatientTime2.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpSelectPatientTime2.Location = new System.Drawing.Point(203, 9);
this.dtpSelectPatientTime2.Name = "dtpSelectPatientTime2";
this.dtpSelectPatientTime2.Size = new System.Drawing.Size(111, 23);
this.dtpSelectPatientTime2.TabIndex = 0;
//
// dtpSelectPatientTime
//
this.dtpSelectPatientTime.CustomFormat = "yyyy-MM-dd";
@ -249,6 +260,16 @@
this.dtpSelectPatientTime.Size = new System.Drawing.Size(111, 23);
this.dtpSelectPatientTime.TabIndex = 0;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.Location = new System.Drawing.Point(189, 9);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(15, 20);
this.label6.TabIndex = 7;
this.label6.Text = "-";
//
// groupBox1
//
this.groupBox1.BackColor = System.Drawing.Color.AliceBlue;
@ -575,24 +596,18 @@
this.panel3.Size = new System.Drawing.Size(1029, 499);
this.panel3.TabIndex = 0;
//
// dtpSelectPatientTime2
// buttonX4
//
this.dtpSelectPatientTime2.CustomFormat = "yyyy-MM-dd";
this.dtpSelectPatientTime2.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpSelectPatientTime2.Location = new System.Drawing.Point(203, 9);
this.dtpSelectPatientTime2.Name = "dtpSelectPatientTime2";
this.dtpSelectPatientTime2.Size = new System.Drawing.Size(111, 23);
this.dtpSelectPatientTime2.TabIndex = 0;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.Location = new System.Drawing.Point(189, 9);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(15, 20);
this.label6.TabIndex = 7;
this.label6.Text = "-";
this.buttonX4.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX4.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.buttonX4.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonX4.Location = new System.Drawing.Point(853, 8);
this.buttonX4.Name = "buttonX4";
this.buttonX4.Size = new System.Drawing.Size(81, 23);
this.buttonX4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.buttonX4.TabIndex = 8;
this.buttonX4.Text = "同步";
this.buttonX4.Click += new System.EventHandler(this.buttonX4_Click);
//
// frmSelectPatientNew3
//
@ -668,5 +683,6 @@
private System.Windows.Forms.Label labelSite;
private System.Windows.Forms.DateTimePicker dtpSelectPatientTime2;
private System.Windows.Forms.Label label6;
private DevComponents.DotNetBar.ButtonX buttonX4;
}
}

View File

@ -63,8 +63,9 @@ namespace AIMS.OperationAanesthesia
FillDgv();
}
private void FillDgv()
private int FillDgv()
{
int count = 0;
panel3.Controls.Clear();
panel2.Visible = false;
@ -123,6 +124,7 @@ namespace AIMS.OperationAanesthesia
numi++;
j = 0;
}
count++;
}
foreach (DataRow dr in dt.Rows)
{
@ -139,6 +141,7 @@ namespace AIMS.OperationAanesthesia
numi++;
j = 0;
}
count++;
}
//}
@ -185,6 +188,7 @@ namespace AIMS.OperationAanesthesia
// }
// }
//}
return count;
}
public ucPatientCard SelUc;
@ -518,8 +522,18 @@ namespace AIMS.OperationAanesthesia
private void btnQuery_Click(object sender, EventArgs e)
{
int count = FillDgv();
if (txtquery.Text.Trim() != "" && count == 0)
{
DialogResult result = MessageBox.Show("未找到'" + txtquery.Text.Trim() + "' 手术申请信息 是否从HIS同步数据?", "系统提示", MessageBoxButtons.YesNo);
if (result == DialogResult.Yes)
{
OpeApplyAnalyze opeApplyAnalyze = new OpeApplyAnalyze();
opeApplyAnalyze.Analyze(txtquery.Text.Trim());
FillDgv();
}
}
}
private void buttonX2_Click(object sender, EventArgs e)
{
@ -551,5 +565,15 @@ namespace AIMS.OperationAanesthesia
FillDgv();
this.cboRoom.SelectedIndexChanged += new System.EventHandler(this.cboRoom_SelectedIndexChanged);
}
private void buttonX4_Click(object sender, EventArgs e)
{
if (txtquery.Text.Trim() != "")
{
OpeApplyAnalyze opeApplyAnalyze = new OpeApplyAnalyze();
opeApplyAnalyze.Analyze(txtquery.Text.Trim());
FillDgv();
}
}
}
}

View File

@ -117,15 +117,24 @@ namespace DrawGraph
{
try
{
bool isEqual = false;
if ((this.DosageUnit == ((FactDrug)drug1).DosageUnit) && (this.DrugChannel == ((FactDrug)drug1).DrugChannel) && (this.DrugName == ((FactDrug)drug1).DrugName) && (this.Access == ((FactDrug)drug1).Access))
{
return true;
isEqual = true;
}
if (isEqual == true && !this.DrugName.Contains("氧") && ((this.DensityUnit == ((FactDrug)drug1).DensityUnit) && (this.Density == ((FactDrug)drug1).Density)))
{
isEqual = true;
}
else
{
isEqual = false;
}
//if ((this.DrugChannel == ((FactDrug)drug1).DrugChannel) && (this.DrugName == ((FactDrug)drug1).DrugName) && (this.Access == ((FactDrug)drug1).Access))
//{
// return true;
//}
return false;
return isEqual;
}
catch (Exception)
{
@ -213,11 +222,15 @@ namespace DrawGraph
string DensityStr = Density == 0 ? "" : ((double)this.Density).ToString();
string VelocityStr = Velocity;
string s = "";
if (DensityStr != "" || VelocityStr != "")
if (DensityStr != "" && this.DrugName.Contains("氧"))
{
if (this.DensityUnit != null && this.DensityUnit != "") DensityStr += this.DensityUnit;
s = (DensityStr + " " + VelocityStr).Trim();
if (DensityStr != "" && VelocityStr != "") s = DensityStr + "|" + VelocityStr;
s = (DensityStr).Trim();
}
if (VelocityStr != "")
{
if (VelocityStr != "") s = VelocityStr;
if (this.VelocityUnit != null && this.VelocityUnit != "") s += this.VelocityUnit;
}
if ((EqualDose == null || EqualDose == ""))
@ -294,6 +307,10 @@ namespace DrawGraph
string DrName = this.DrugName.Trim();
//if (this.Remark != null && this.Remark != "") DrName += "(" + this.Remark + ")";
if (!this.DrugName.Contains("氧"))
{
if (this.Density > 0 && this.DensityUnit != null && this.DensityUnit != "") DrName = ((double)this.Density).ToString() + this.DensityUnit + DrName;
}
if (this.DrugChannel != null && this.DrugChannel != "") DrName += "(" + this.DrugChannel + ")";
if (this.DosageUnit != null && this.DosageUnit != "") DrName += "(" + this.DosageUnit + ")";
if (this.BloodType != null && this.BloodType != "") DrName += "(" + this.BloodType + ")";