医疗文书粘贴处理换行问题

This commit is contained in:
leomon 2023-06-14 09:41:00 +08:00
parent 85131b43d2
commit 949ef914f3
5 changed files with 52 additions and 21 deletions

View File

@ -26,6 +26,7 @@ namespace AIMS
frmFeesRecord frmchargRecord = new frmFeesRecord(_record, "麻醉");
frmchargRecord.Show();
frmchargRecord.BringToFront();
frmchargRecord.TopMost = true;
}
}
public static void OpenEMRS(int patientid, int applyid)

View File

@ -1096,7 +1096,7 @@ namespace AIMS.OperationAanesthesia
frmSelectPatient.isMainOpen = true;
frmSelectPatient.tempfrmAnasRecord = this;
frmSelectPatient.FormClosed += new FormClosedEventHandler(frmSelectPatient_FormClosed);
frmSelectPatient.ShowDialog();
frmSelectPatient.ShowDialog();
}
void frmSelectPatient_FormClosed(object sender, FormClosedEventArgs e)
@ -1226,7 +1226,7 @@ namespace AIMS.OperationAanesthesia
frmFact.zgcAnaesRecord = zgcAnaesRecord;
frmFact.DrugTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单
frmFact.DrugsParam += FrmFactDrug_DrugsParam;
frmFact.ShowDialog();
frmFact.ShowDialog();
}
private void btnOperationInfo_Click(object sender, EventArgs e)
@ -1236,7 +1236,7 @@ namespace AIMS.OperationAanesthesia
AIMS.OperationAanesthesia.frmOperationInfoNew2 frmOperationInfo = new frmOperationInfoNew2();
frmOperationInfo._record = _record;
//frmOperationInfo.FormClosed += new FormClosedEventHandler(plRefresh_Click);
frmOperationInfo.ShowDialog();
frmOperationInfo.ShowDialog();
}
else
{
@ -1253,7 +1253,7 @@ namespace AIMS.OperationAanesthesia
frmFactDrug.zgcAnaesRecord = zgcAnaesRecord;
frmFactDrug.DrugTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单
frmFactDrug.DrugsParam += FrmFactDrug_DrugsParam;
frmFactDrug.ShowDialog();
frmFactDrug.ShowDialog();
}
else
{
@ -1278,7 +1278,7 @@ namespace AIMS.OperationAanesthesia
frmFactEventsNew.zgcAnaesRecord = zgcAnaesRecord;
frmFactEventsNew.EventTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单
frmFactEventsNew.EventParam += frmFactEventsNew_EventsParam;
frmFactEventsNew.ShowDialog();
frmFactEventsNew.ShowDialog();
}
else
{
@ -1307,7 +1307,7 @@ namespace AIMS.OperationAanesthesia
frmFactOutputLiquids.zgcAnaesRecord = zgcAnaesRecord;
frmFactOutputLiquids.OutputLiquidTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单
frmFactOutputLiquids.OutParam += FrmFactOutputLiquids_OutParam;
frmFactOutputLiquids.ShowDialog();
frmFactOutputLiquids.ShowDialog();
}
else
{
@ -1324,7 +1324,7 @@ namespace AIMS.OperationAanesthesia
{
frmAanesthesiaQuality frmAnaseDataQuality = new frmAanesthesiaQuality();
frmAnaseDataQuality._record = _record;
frmAnaseDataQuality.ShowDialog();
frmAnaseDataQuality.ShowDialog();
}
private void btnCancelOperation_Click(object sender, EventArgs e)
{
@ -1435,7 +1435,7 @@ namespace AIMS.OperationAanesthesia
//刷新到当前页
ReviewEvent();
});
frm.ShowDialog();
frm.ShowDialog();
}
private void btnBloodGasAnalysis_Click(object sender, EventArgs e)
{
@ -1448,7 +1448,7 @@ namespace AIMS.OperationAanesthesia
{
reDrawAnalysis();
});
frmFactBloodGasAnalysis.ShowDialog();
frmFactBloodGasAnalysis.ShowDialog();
}
else
{
@ -1578,6 +1578,21 @@ namespace AIMS.OperationAanesthesia
}
}
//有机械呼吸情况自主呼吸
foreach (var pdTemp in physioDatas)
{
if (pdTemp.PhysioDataConfigId == 12)
{
foreach (var temp in physioDatas)
{
if (temp.PhysioDataConfigId == 3)
{
temp.Value = -1;
}
}
}
}
foreach (var pdTemp in physioDatas)
{
if (pdTemp.Value < 0) continue;
@ -1860,7 +1875,7 @@ namespace AIMS.OperationAanesthesia
templateManage.Bind("MonitorManage");
zgcAnaesRecord.Refresh();
});
frm.ShowDialog();
frm.ShowDialog();
});
menuStrip.Items.Add(mnuAddDrug);
@ -1890,7 +1905,7 @@ namespace AIMS.OperationAanesthesia
if (PatientId == 0) return;
frmPhysioDataUpdateLog Log = new frmPhysioDataUpdateLog();
Log.OperationRecordId = _record.Id.Value;
Log.ShowDialog();
Log.ShowDialog();
}
private void ModifyRoom_Click(object sender, EventArgs e)
@ -2468,7 +2483,7 @@ namespace AIMS.OperationAanesthesia
fnc.textBox2.Focus();
fnc.groupBox1.Visible = false;
}
fnc.ShowDialog();
fnc.ShowDialog();
}
private void btnxldlx_Click(object sender, EventArgs e)
@ -2570,8 +2585,6 @@ namespace AIMS.OperationAanesthesia
ReviewEvent();
}
}
#endregion
private void label11_Click(object sender, EventArgs e)
{
DialogResult dialog = MessageBox.Show("是否重启采集程序!", "系统提示", MessageBoxButtons.YesNo);
@ -2580,5 +2593,7 @@ namespace AIMS.OperationAanesthesia
PublicMethod.StartCollectorDataProgram(true);
}
}
#endregion
}
}

View File

@ -347,13 +347,12 @@ namespace AIMS.OperationAanesthesia
{
if (frmAnasRecord.State == AIMSExtension.EditState.BROWSE)
{
frmAnasRecord.Show();
frmAnasRecord.BringToFront();
frmAnasRecord.TopMost = true;
frmAnasRecord.Show(this);
frmAnasRecord.Focus();
}
else
frmAnasRecord.ShowDialog();
FillDgv();
}
else

View File

@ -624,7 +624,7 @@ namespace AIMSExtension
System.Diagnostics.Process[] myProcesses = System.Diagnostics.Process.GetProcesses();
foreach (System.Diagnostics.Process myProcess in myProcesses)
{
if (myProcess.ProcessName == "DataCollector2")
if (myProcess.ProcessName == "DataCollector2" || myProcess.ProcessName == "DataCollector")
{
myProcess.CloseMainWindow();
myProcess.Kill();
@ -636,7 +636,7 @@ namespace AIMSExtension
}
if (Directory.Exists(@"C:\采集程序"))
{
if (!PublicMethod.FindProcess("DataCollector2"))
if (!PublicMethod.FindProcess("DataCollector2") && !PublicMethod.FindProcess("DataCollector"))
{
Process myprocess = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo(@"C:\采集程序\DataCollector.exe");

View File

@ -29,11 +29,27 @@ namespace DocumentManagement
eet = new ElementEventTemplate();
eet.MouseClick += new ElementMouseEventHandler(eetChk_MouseClick);
eet.MouseDblClick += Eet_MouseDblClick;
eet.KeyUp += Eet_KeyUp;
eet.ContentChanged += new ContentChangedEventHandler(eet_ContentChanged);
myEditControl.GlobalEventTemplate_Element = eet;
}
private void Eet_KeyUp(object eventSender, ElementKeyEventArgs args)
{
if (args.KeyCode == Keys.V && args.Control == true)
{
if ((eventSender as XTextDocument).CurrentInputField != null)
{
var element = (eventSender as XTextDocument).CurrentInputField;
if (element != null)
{
element.Text = element.Text.Replace("\r", "").Replace("\n","");
}
}
}
}
public CompilerErrorCollection Errors { get { return cr.Errors; } }
void eet_ContentChanged(object eventSender, ContentChangedEventArgs args)
@ -88,7 +104,7 @@ namespace DocumentManagement
if (IsLoad)
if (args.Element is XTextInputFieldElement)
{
var element = args.Element as XTextInputFieldElement;
var element = args.Element as XTextInputFieldElement;
if (element != null && element.Name == "Pacs")
{
var patientId = element.WriterControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement