内镜同步患者申请信息
This commit is contained in:
parent
61a24e9310
commit
e6e8236202
@ -213,6 +213,7 @@
|
|||||||
<DependentUpon>frmPharmaCology.cs</DependentUpon>
|
<DependentUpon>frmPharmaCology.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Extensions\EMRExtension.cs" />
|
<Compile Include="Extensions\EMRExtension.cs" />
|
||||||
|
<Compile Include="Extensions\OpeApplyAnalyze.cs" />
|
||||||
<Compile Include="FormMainManage.cs">
|
<Compile Include="FormMainManage.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<AtuoUpdate>
|
<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>
|
<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>
|
<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>
|
<LastLoginNo></LastLoginNo>
|
||||||
|
|||||||
1924
AIMS/Extensions/OpeApplyAnalyze.cs
Normal file
1924
AIMS/Extensions/OpeApplyAnalyze.cs
Normal file
File diff suppressed because it is too large
Load Diff
@ -1103,29 +1103,29 @@ namespace AIMS.OperationAanesthesia
|
|||||||
LoadAnesRescue();
|
LoadAnesRescue();
|
||||||
}
|
}
|
||||||
|
|
||||||
//private System.Windows.Forms.Timer timerLoadAnesRescue;
|
private System.Windows.Forms.Timer timerLoadAnesRescue;
|
||||||
|
|
||||||
public void LoadAnesRescue()
|
public void LoadAnesRescue()
|
||||||
{
|
{
|
||||||
//circularProgress1.IsRunning = true;
|
circularProgress1.IsRunning = true;
|
||||||
//circularProgress1.Visible = true;
|
circularProgress1.Visible = true;
|
||||||
//circularProgress1.AnimationSpeed = 0;
|
circularProgress1.AnimationSpeed = 0;
|
||||||
//circularProgress2.IsRunning = true;
|
circularProgress2.IsRunning = true;
|
||||||
//circularProgress2.Visible = true;
|
circularProgress2.Visible = true;
|
||||||
//zgcAnaesRecord.Visible = false;
|
zgcAnaesRecord.Visible = false;
|
||||||
//zgcAnaesRecord2.Visible = false;
|
zgcAnaesRecord2.Visible = false;
|
||||||
//timerLoadAnesRescue = new System.Windows.Forms.Timer(components);
|
timerLoadAnesRescue = new System.Windows.Forms.Timer(components);
|
||||||
//timerLoadAnesRescue.Enabled = true;//调试时设置为FALSE ,
|
timerLoadAnesRescue.Enabled = true;//调试时设置为FALSE ,
|
||||||
//timerLoadAnesRescue.Interval = 200;
|
timerLoadAnesRescue.Interval = 200;
|
||||||
//timerLoadAnesRescue.Tick -= TimerLoadAnesRescue_Tick;
|
timerLoadAnesRescue.Tick -= TimerLoadAnesRescue_Tick;
|
||||||
//timerLoadAnesRescue.Tick += TimerLoadAnesRescue_Tick;
|
timerLoadAnesRescue.Tick += TimerLoadAnesRescue_Tick;
|
||||||
//timerLoadAnesRescue.Start();
|
timerLoadAnesRescue.Start();
|
||||||
|
|
||||||
TimerLoadAnesRescue_Tick(null, null);
|
//TimerLoadAnesRescue_Tick(null, null);
|
||||||
}
|
}
|
||||||
private void TimerLoadAnesRescue_Tick(object sender, EventArgs e)
|
private void TimerLoadAnesRescue_Tick(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
//timerLoadAnesRescue.Dispose();
|
timerLoadAnesRescue.Dispose();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (PatientId > 0 && State == AIMSExtension.EditState.ADD)
|
if (PatientId > 0 && State == AIMSExtension.EditState.ADD)
|
||||||
|
|||||||
@ -41,7 +41,9 @@
|
|||||||
this.cboRoom = new System.Windows.Forms.ComboBox();
|
this.cboRoom = new System.Windows.Forms.ComboBox();
|
||||||
this.btnFrontDay = new System.Windows.Forms.Button();
|
this.btnFrontDay = new System.Windows.Forms.Button();
|
||||||
this.btnNextDay = 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.dtpSelectPatientTime = new System.Windows.Forms.DateTimePicker();
|
||||||
|
this.label6 = new System.Windows.Forms.Label();
|
||||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||||
this.panel2 = new System.Windows.Forms.Panel();
|
this.panel2 = new System.Windows.Forms.Panel();
|
||||||
this.buttonX2 = new DevComponents.DotNetBar.ButtonX();
|
this.buttonX2 = new DevComponents.DotNetBar.ButtonX();
|
||||||
@ -73,8 +75,7 @@
|
|||||||
this.label3 = new System.Windows.Forms.Label();
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||||
this.panel3 = new System.Windows.Forms.Panel();
|
this.panel3 = new System.Windows.Forms.Panel();
|
||||||
this.dtpSelectPatientTime2 = new System.Windows.Forms.DateTimePicker();
|
this.buttonX4 = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.label6 = new System.Windows.Forms.Label();
|
|
||||||
this.panel1.SuspendLayout();
|
this.panel1.SuspendLayout();
|
||||||
this.groupBox1.SuspendLayout();
|
this.groupBox1.SuspendLayout();
|
||||||
this.panel2.SuspendLayout();
|
this.panel2.SuspendLayout();
|
||||||
@ -87,6 +88,7 @@
|
|||||||
this.panel1.Controls.Add(this.CboOperationSite);
|
this.panel1.Controls.Add(this.CboOperationSite);
|
||||||
this.panel1.Controls.Add(this.labelSite);
|
this.panel1.Controls.Add(this.labelSite);
|
||||||
this.panel1.Controls.Add(this.txtquery);
|
this.panel1.Controls.Add(this.txtquery);
|
||||||
|
this.panel1.Controls.Add(this.buttonX4);
|
||||||
this.panel1.Controls.Add(this.btnQuery);
|
this.panel1.Controls.Add(this.btnQuery);
|
||||||
this.panel1.Controls.Add(this.buttonX3);
|
this.panel1.Controls.Add(this.buttonX3);
|
||||||
this.panel1.Controls.Add(this.label1);
|
this.panel1.Controls.Add(this.label1);
|
||||||
@ -240,6 +242,15 @@
|
|||||||
this.btnNextDay.UseVisualStyleBackColor = false;
|
this.btnNextDay.UseVisualStyleBackColor = false;
|
||||||
this.btnNextDay.Click += new System.EventHandler(this.btnNext_Click);
|
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
|
// dtpSelectPatientTime
|
||||||
//
|
//
|
||||||
this.dtpSelectPatientTime.CustomFormat = "yyyy-MM-dd";
|
this.dtpSelectPatientTime.CustomFormat = "yyyy-MM-dd";
|
||||||
@ -249,6 +260,16 @@
|
|||||||
this.dtpSelectPatientTime.Size = new System.Drawing.Size(111, 23);
|
this.dtpSelectPatientTime.Size = new System.Drawing.Size(111, 23);
|
||||||
this.dtpSelectPatientTime.TabIndex = 0;
|
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
|
// groupBox1
|
||||||
//
|
//
|
||||||
this.groupBox1.BackColor = System.Drawing.Color.AliceBlue;
|
this.groupBox1.BackColor = System.Drawing.Color.AliceBlue;
|
||||||
@ -575,24 +596,18 @@
|
|||||||
this.panel3.Size = new System.Drawing.Size(1029, 499);
|
this.panel3.Size = new System.Drawing.Size(1029, 499);
|
||||||
this.panel3.TabIndex = 0;
|
this.panel3.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// dtpSelectPatientTime2
|
// buttonX4
|
||||||
//
|
//
|
||||||
this.dtpSelectPatientTime2.CustomFormat = "yyyy-MM-dd";
|
this.buttonX4.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.dtpSelectPatientTime2.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
this.buttonX4.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.dtpSelectPatientTime2.Location = new System.Drawing.Point(203, 9);
|
this.buttonX4.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.dtpSelectPatientTime2.Name = "dtpSelectPatientTime2";
|
this.buttonX4.Location = new System.Drawing.Point(853, 8);
|
||||||
this.dtpSelectPatientTime2.Size = new System.Drawing.Size(111, 23);
|
this.buttonX4.Name = "buttonX4";
|
||||||
this.dtpSelectPatientTime2.TabIndex = 0;
|
this.buttonX4.Size = new System.Drawing.Size(81, 23);
|
||||||
//
|
this.buttonX4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
// label6
|
this.buttonX4.TabIndex = 8;
|
||||||
//
|
this.buttonX4.Text = "同步";
|
||||||
this.label6.AutoSize = true;
|
this.buttonX4.Click += new System.EventHandler(this.buttonX4_Click);
|
||||||
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 = "-";
|
|
||||||
//
|
//
|
||||||
// frmSelectPatientNew3
|
// frmSelectPatientNew3
|
||||||
//
|
//
|
||||||
@ -668,5 +683,6 @@
|
|||||||
private System.Windows.Forms.Label labelSite;
|
private System.Windows.Forms.Label labelSite;
|
||||||
private System.Windows.Forms.DateTimePicker dtpSelectPatientTime2;
|
private System.Windows.Forms.DateTimePicker dtpSelectPatientTime2;
|
||||||
private System.Windows.Forms.Label label6;
|
private System.Windows.Forms.Label label6;
|
||||||
|
private DevComponents.DotNetBar.ButtonX buttonX4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -32,7 +32,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
private string[] Day = new string[] { "周日", "周一", "周二", "周三", "周四", "周五", "周六" };
|
private string[] Day = new string[] { "周日", "周一", "周二", "周三", "周四", "周五", "周六" };
|
||||||
private void frmSelectPatientNew3_Load(object sender, EventArgs e)
|
private void frmSelectPatientNew3_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
ControlExtension.GetOperationSiteRoom(labelSite, CboOperationSite, cboRoom,"内镜室");
|
ControlExtension.GetOperationSiteRoom(labelSite, CboOperationSite, cboRoom, "内镜室");
|
||||||
string week = Day[Convert.ToInt32(DateTime.Now.DayOfWeek.ToString("d"))].ToString();
|
string week = Day[Convert.ToInt32(DateTime.Now.DayOfWeek.ToString("d"))].ToString();
|
||||||
cboRoom.Text = "";
|
cboRoom.Text = "";
|
||||||
if (week == "周一")
|
if (week == "周一")
|
||||||
@ -63,8 +63,9 @@ namespace AIMS.OperationAanesthesia
|
|||||||
FillDgv();
|
FillDgv();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FillDgv()
|
private int FillDgv()
|
||||||
{
|
{
|
||||||
|
int count = 0;
|
||||||
panel3.Controls.Clear();
|
panel3.Controls.Clear();
|
||||||
panel2.Visible = false;
|
panel2.Visible = false;
|
||||||
|
|
||||||
@ -123,6 +124,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
numi++;
|
numi++;
|
||||||
j = 0;
|
j = 0;
|
||||||
}
|
}
|
||||||
|
count++;
|
||||||
}
|
}
|
||||||
foreach (DataRow dr in dt.Rows)
|
foreach (DataRow dr in dt.Rows)
|
||||||
{
|
{
|
||||||
@ -139,6 +141,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
numi++;
|
numi++;
|
||||||
j = 0;
|
j = 0;
|
||||||
}
|
}
|
||||||
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
//}
|
//}
|
||||||
@ -185,6 +188,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ucPatientCard SelUc;
|
public ucPatientCard SelUc;
|
||||||
@ -518,7 +522,17 @@ namespace AIMS.OperationAanesthesia
|
|||||||
|
|
||||||
private void btnQuery_Click(object sender, EventArgs e)
|
private void btnQuery_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
FillDgv();
|
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)
|
private void buttonX2_Click(object sender, EventArgs e)
|
||||||
@ -551,5 +565,15 @@ namespace AIMS.OperationAanesthesia
|
|||||||
FillDgv();
|
FillDgv();
|
||||||
this.cboRoom.SelectedIndexChanged += new System.EventHandler(this.cboRoom_SelectedIndexChanged);
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -117,15 +117,24 @@ namespace DrawGraph
|
|||||||
{
|
{
|
||||||
try
|
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))
|
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))
|
//if ((this.DrugChannel == ((FactDrug)drug1).DrugChannel) && (this.DrugName == ((FactDrug)drug1).DrugName) && (this.Access == ((FactDrug)drug1).Access))
|
||||||
//{
|
//{
|
||||||
// return true;
|
// return true;
|
||||||
//}
|
//}
|
||||||
return false;
|
return isEqual;
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
@ -211,13 +220,17 @@ namespace DrawGraph
|
|||||||
DoseStr = (((double)this.Dosage).ToString());
|
DoseStr = (((double)this.Dosage).ToString());
|
||||||
string RemarkStr = this.Remark;//
|
string RemarkStr = this.Remark;//
|
||||||
string DensityStr = Density == 0 ? "" : ((double)this.Density).ToString();
|
string DensityStr = Density == 0 ? "" : ((double)this.Density).ToString();
|
||||||
string VelocityStr = Velocity ;
|
string VelocityStr = Velocity;
|
||||||
string s = "";
|
string s = "";
|
||||||
if (DensityStr != "" || VelocityStr != "")
|
|
||||||
|
if (DensityStr != "" && this.DrugName.Contains("氧"))
|
||||||
{
|
{
|
||||||
if (this.DensityUnit != null && this.DensityUnit != "") DensityStr += this.DensityUnit;
|
if (this.DensityUnit != null && this.DensityUnit != "") DensityStr += this.DensityUnit;
|
||||||
s = (DensityStr + " " + VelocityStr).Trim();
|
s = (DensityStr).Trim();
|
||||||
if (DensityStr != "" && VelocityStr != "") s = DensityStr + "|" + VelocityStr;
|
}
|
||||||
|
if (VelocityStr != "")
|
||||||
|
{
|
||||||
|
if (VelocityStr != "") s = VelocityStr;
|
||||||
if (this.VelocityUnit != null && this.VelocityUnit != "") s += this.VelocityUnit;
|
if (this.VelocityUnit != null && this.VelocityUnit != "") s += this.VelocityUnit;
|
||||||
}
|
}
|
||||||
if ((EqualDose == null || EqualDose == ""))
|
if ((EqualDose == null || EqualDose == ""))
|
||||||
@ -294,6 +307,10 @@ namespace DrawGraph
|
|||||||
string DrName = this.DrugName.Trim();
|
string DrName = this.DrugName.Trim();
|
||||||
|
|
||||||
//if (this.Remark != null && this.Remark != "") DrName += "(" + this.Remark + ")";
|
//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.DrugChannel != null && this.DrugChannel != "") DrName += "(" + this.DrugChannel + ")";
|
||||||
if (this.DosageUnit != null && this.DosageUnit != "") DrName += "(" + this.DosageUnit + ")";
|
if (this.DosageUnit != null && this.DosageUnit != "") DrName += "(" + this.DosageUnit + ")";
|
||||||
if (this.BloodType != null && this.BloodType != "") DrName += "(" + this.BloodType + ")";
|
if (this.BloodType != null && this.BloodType != "") DrName += "(" + this.BloodType + ")";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user