收费记录 处方单打印

This commit is contained in:
leomon 2023-03-29 14:04:35 +08:00
parent a8202e0d35
commit 771099cc94
28 changed files with 775 additions and 4183 deletions

View File

@ -371,12 +371,6 @@
<Compile Include="OperationAanesthesia\frmRecoverPatient.Designer.cs">
<DependentUpon>frmRecoverPatient.cs</DependentUpon>
</Compile>
<Compile Include="OperationAanesthesia\oldSystemCode\frmChargRecordPrint.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="OperationAanesthesia\oldSystemCode\frmChargRecordPrint.designer.cs">
<DependentUpon>frmChargRecordPrint.cs</DependentUpon>
</Compile>
<Compile Include="OperationAanesthesia\oldSystemCode\frmHemodynamics.cs">
<SubType>Form</SubType>
</Compile>
@ -452,12 +446,6 @@
<Compile Include="OremrUserControl\EventCodeCompilerBill.cs" />
<Compile Include="OremrUserControl\ExportConfig.cs" />
<Compile Include="OremrUserControl\PanelScrollHelper.cs" />
<Compile Include="OremrUserControl\PrescriptionDocument.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="OremrUserControl\PrescriptionDocument.Designer.cs">
<DependentUpon>PrescriptionDocument.cs</DependentUpon>
</Compile>
<Compile Include="OperationFront\frmPrintingArrangemen.cs">
<SubType>Form</SubType>
</Compile>
@ -979,9 +967,6 @@
<EmbeddedResource Include="OperationAanesthesia\frmRecoverPatient.resx">
<DependentUpon>frmRecoverPatient.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OperationAanesthesia\oldSystemCode\frmChargRecordPrint.resx">
<DependentUpon>frmChargRecordPrint.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OperationAanesthesia\oldSystemCode\frmHemodynamics.resx">
<DependentUpon>frmHemodynamics.cs</DependentUpon>
</EmbeddedResource>
@ -1018,9 +1003,6 @@
<EmbeddedResource Include="OperationFront\frmPersonSchedulKeep.resx">
<DependentUpon>frmPersonSchedulKeep.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OremrUserControl\PrescriptionDocument.resx">
<DependentUpon>PrescriptionDocument.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OperationFront\frmPrintingArrangemen.resx">
<DependentUpon>frmPrintingArrangemen.cs</DependentUpon>
</EmbeddedResource>

View File

@ -1609,8 +1609,7 @@ namespace AIMS.OperationAanesthesia
}
private void btnChage_Click(object sender, EventArgs e)
{
frmChargRecordPrint frmchargRecord = new frmChargRecordPrint(_record);
frmchargRecord.TemplateType = "麻醉";
frmFeesRecord frmchargRecord = new frmFeesRecord(_record, "恢复室");
frmchargRecord.Show();
frmchargRecord.BringToFront();
}

View File

@ -1,9 +1,9 @@
using AIMSBLL;
using AIMSExtension;
using AIMSModel;
using DevComponents.DotNetBar;
using DevComponents.DotNetBar.Controls;
using DrawGraph;
using AIMSExtension;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@ -11,8 +11,6 @@ using System.Data;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
using DCSoftDotfuscate;
using AIMS.OperationAanesthesia.oldSystemCode;
namespace AIMS.PublicUI.UI
{

View File

@ -267,6 +267,7 @@
this.dgvDrugs.ShowCellToolTips = false;
this.dgvDrugs.Size = new System.Drawing.Size(865, 604);
this.dgvDrugs.TabIndex = 16;
this.dgvDrugs.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDrugs_CellDoubleClick);
this.dgvDrugs.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvDrugs_DataError);
this.dgvDrugs.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
//
@ -471,7 +472,7 @@
this.P3.AttachedControl = this.superTabControlPanel4;
this.P3.GlobalItem = false;
this.P3.Name = "P3";
this.P3.Text = "麻醉技术耗材列表";
this.P3.Text = "技术耗材列表";
//
// superTabControlPanel1
//

View File

@ -1,9 +1,11 @@
using AIMSBLL;
using AIMS.OperationAanesthesia;
using AIMSBLL;
using AIMSExtension;
using AIMSModel;
using AxNsoOfficeLib;
using DCSoftDotfuscate;
using DevComponents.DotNetBar;
using DocumentManagement;
using DrawGraph;
using System;
using System.Collections.Generic;
@ -43,6 +45,8 @@ namespace AIMS.PublicUI.UI
SetDGVNotSort();
BindAnaesthesiaEvents();
FullALLDGV();
if (FeeType == "护士")
tabDrugs.SelectedTabIndex = 1;
}
#endregion
@ -58,7 +62,8 @@ namespace AIMS.PublicUI.UI
}
else
{
LoadRecordDrugs();
if (FeeType == "麻醉")
LoadRecordDrugs();
}
SetChargDrugPrice();
AddNewNullRows();
@ -104,6 +109,10 @@ namespace AIMS.PublicUI.UI
_dataGridView.Rows[index].Cells[5].Value = item.UnitPrice;
_dataGridView.Rows[index].Cells[7].Value = item.FeeNum;
_dataGridView.Rows[index].Cells[8].Value = item.ChargePrice;
_dataGridView.Rows[index].Cells[5].Tag = item.Extend3;
_dataGridView.Rows[index].Cells[6].Tag = item.Extend1;
_dataGridView.Rows[index].Cells[7].Tag = item.Extend2;
}
if (item.BillingWorkId != null && item.BillingWorkId != "")
{
@ -130,6 +139,10 @@ namespace AIMS.PublicUI.UI
dgvChargsRecord.Rows[index].Cells[5].Value = item.UnitPrice;
dgvChargsRecord.Rows[index].Cells[7].Value = item.FeeNum;
dgvChargsRecord.Rows[index].Cells[8].Value = item.ChargePrice;
_dataGridView.Rows[index].Cells[5].Tag = item.Extend3;
_dataGridView.Rows[index].Cells[6].Tag = item.Extend1;
_dataGridView.Rows[index].Cells[7].Tag = item.Extend2;
}
if (item.BillingWorkId != null && item.BillingWorkId != "")
{
@ -170,8 +183,12 @@ namespace AIMS.PublicUI.UI
dr.Cells[4].Value = drug.Stand;
dr.Cells[5].Value = drug.Price;
dr.Cells[6].Value = drug.Unit;
dr.Cells[7].Value = GetDrugsNum(drug);
//dr.Cells[7].Value = CalculateDrugDose(drug);
double doses = 0; string doseunit = ""; string rote = "";
dr.Cells[7].Value = GetDrugsNum(drug, ref doses, ref doseunit, ref rote);
dr.Cells[5].Tag = rote;
dr.Cells[6].Tag = doseunit;
dr.Cells[7].Tag = doses;
if (_dataGridView.Rows.Count != 0 && _dataGridView.Rows[_dataGridView.Rows.Count - 1].Cells[3].EditedFormattedValue.ToString() == "")
{
@ -189,7 +206,7 @@ namespace AIMS.PublicUI.UI
/// </summary>
/// <param name="drug"></param>
/// <returns></returns>
public decimal GetDrugsNum(Drugs drug)
public decimal GetDrugsNum(Drugs drug, ref double doses, ref string doseunit, ref string rote)
{
decimal XMSL = 1;
List<FactDrug> drugsRecords = _record.FactDrugList.Where(a => a.DrugId == drug.Id).ToList();
@ -212,6 +229,9 @@ namespace AIMS.PublicUI.UI
}
}
XMSL = Math.Ceiling(dose);
rote = "吸入";
doseunit = "ml";
doses = double.Parse(dose.ToString());
}
else
{
@ -222,6 +242,7 @@ namespace AIMS.PublicUI.UI
decimal dose = 0;
foreach (var item in drugsRecords)
{
rote = item.DrugChannel;
if (drug.Dosage != null && drug.Dosage != "")
DOSEPER = decimal.Parse(drug.Dosage);
if (drug.DosageUnit != null && drug.DosageUnit != "")
@ -259,6 +280,8 @@ namespace AIMS.PublicUI.UI
}
}
//总剂量计算方式 根据规格单位得到换算完的总量 除以最小剂量
doses = double.Parse(dose.ToString());
doseunit = DOSEPERUNIT;
XMSL = Math.Ceiling(dose / DOSEPER);
if (XMSL < 1) XMSL = 1;
}
@ -572,7 +595,11 @@ namespace AIMS.PublicUI.UI
continue;
//实例化FeesRecord对象
FeesRecord feesR = new FeesRecord();
feesR.PatientId = _record.PatientId;
if (dr.Tag != null)
{
feesR = dr.Tag as FeesRecord;
}
feesR.PatientId = _record.PatientId;
feesR.ApplyId = _record.OperationApplyId;
feesR.OperationRecordId = _record.Id;
feesR.ApplyOrderNo = "";
@ -585,11 +612,17 @@ namespace AIMS.PublicUI.UI
Drugs drug = dr.Cells[3].Tag as Drugs;
feesR.FeeId = drug.Id.ToString();
feesR.DrugType = drug.DrugKind;
feesR.Extend1 = dr.Cells[6].Tag.ToString();//剂量
feesR.Extend2 = dr.Cells[7].Tag.ToString();//途径
feesR.Extend3 = dr.Cells[5].Tag.ToString();//是否打印处方单
}
else
{
Charges drug = dr.Cells[3].Tag as Charges;
feesR.FeeId = drug.Id.ToString();
feesR.Extend1 = "";//剂量
feesR.Extend2 = "";//途径
feesR.Extend3 = "";//是否打印处方单
}
feesR.FeeCode = dr.Cells[2].EditedFormattedValue.ToString();
feesR.FeeSerial = dr.Cells[2].EditedFormattedValue.ToString();
@ -623,28 +656,25 @@ namespace AIMS.PublicUI.UI
feesR.OperatorNo = PublicMethod.OperatorNo;
feesR.OperatorName = PublicMethod.OperatorName;
feesR.DrugSite = "";
feesR.FeeId2 = "";
feesR.BillCode = "";
feesR.GroupID = "";
feesR.Valuer = "";
feesR.Remark = "";
feesR.EmergencyFlag = "";
feesR.OrderNo = "";
feesR.OrderState = "";
feesR.Conclusion = "";
feesR.IsInsure = "";
feesR.InsureNO = "";
feesR.LimitDrug = "";
feesR.Extend1 = "";
feesR.Extend2 = "";
feesR.Extend3 = "";
feesR.Extend4 = "";
feesR.Extend5 = "";
if (dr.Tag == null)
{
feesR.DrugSite = "";
feesR.FeeId2 = "";
feesR.BillCode = "";
feesR.GroupID = "";
feesR.Valuer = "";
feesR.Remark = "";
feesR.EmergencyFlag = "";
feesR.OrderNo = "";
feesR.OrderState = "";
feesR.Conclusion = "";
feesR.IsInsure = "";
feesR.InsureNO = "";
feesR.LimitDrug = "";
feesR.Extend4 = "";
feesR.Extend5 = "";
feesR.Id = BFeesRecord.Insert(feesR);
dr.Tag = feesR;
dr.Cells[0].Value = feesR.Id;
@ -684,8 +714,16 @@ namespace AIMS.PublicUI.UI
if (_dataGridView.CurrentRow.Tag != null)
{
FeesRecord record = _dataGridView.CurrentRow.Tag as FeesRecord;
BFeesRecord.Delete(record);
PrintDocument DModel = DocumentDAL.GetDocumentbyName("第二类精神药品处方笺", _record.PatientId.Value, record.Id.Value);
if (DModel != null && DModel.Id > 0)
{
DialogResult dialogResult = MessageBox.Show("该药品已存在处方单 是否删除?", "系统提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (dialogResult == DialogResult.No) return;
else
DocumentDAL.DeletePrintDocument2(DModel);
}
BFeesRecord.Delete(record);
_dataGridView.Rows.Remove(_dataGridView.CurrentRow);
_lineNumber = 0;
@ -1454,6 +1492,7 @@ namespace AIMS.PublicUI.UI
dgvDrugs.Rows.Clear();
FeesRecordList = BFeesRecord.Select(" FeeType='" + FeeType + "' and OperationRecordId=" + _record.Id, null, RecursiveType.None, 0);
BFeesRecord.Delete(" FeeIsDrug =1 and FeeType='" + FeeType + "' and OperationRecordId=" + _record.Id, null);
DocumentDAL.DeletePrintDocument3("第二类精神药品处方笺", _record.PatientId.Value, PublicMethod.OperatorNo);
LoadRecordDrugs();
}
}
@ -1465,5 +1504,23 @@ namespace AIMS.PublicUI.UI
SetChargDrugPrice();
AddNewNullRows();
}
private void dgvDrugs_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if (dgvDrugs.CurrentRow.Cells[3].Value == null || dgvDrugs.CurrentRow.Cells[3].Value.ToString() == "")//药品名称
return;
if (dgvDrugs.CurrentRow.Cells[7].Value == null || dgvDrugs.CurrentRow.Cells[7].Value.ToString() == "")//药品名称
return;
FeesRecord drug = dgvDrugs.CurrentRow.Tag as FeesRecord;
if (drug == null)
{
MessageBox.Show("请先保存后再打印处方单!", "系统提示");
return;
}
frmPrescriptionDocument document = new frmPrescriptionDocument();
document.PatientId = _record.PatientId.Value;
document.fee = drug;
document.ShowDialog();
}
}
}

View File

@ -146,7 +146,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAa
CAAAAk1TRnQBSQFMAgEBAgEAAagBBwGoAQcBFAEAARQBAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFQ
CAAAAk1TRnQBSQFMAgEBAgEAAbgBBwG4AQcBFAEAARQBAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFQ
AwABFAMAAQEBAAEgBgABGS4AA1UBrwOAAf4DKwH8AysB/AGZAYsBQAH9AaEBkgEAAf8BkwGCAQAB/wGW
AYcBQAH9AaMBlAEAAf8BowGUAQAB/wGjAZQBAAH/AysB/ANgAej/AA0AAZMBggEAAf8DYgH2A20B9wNt
AfcDXAH4A4AB/gGXAYYBAAH/A20B9wHsAecB5AH/AewB5wHkAf8B7AHnAeQB/wNtAfcBkwGCAQAB//8A

View File

@ -1360,7 +1360,7 @@ namespace AIMS.OperationAanesthesia
}
}
_appliance2 = newDataTable;
FullUcControlsToPanel(panelQXList2, _appliance2, _record.InstrumentList2, ref i1, ref j1);
FullUcControlsToPanel(panelQXList2, _appliance2, _record.InstrumentList2, ref i2, ref j2);
}
}
#endregion

View File

@ -72,11 +72,8 @@
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();
@ -108,6 +105,9 @@
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.writerCommandControler1 = new DCSoft.Writer.Commands.WriterCommandControler(this.components);
this.panel8 = new AIMS.PublicUI.UI.DrawPanel();
this.myEditControl = new DCSoft.Writer.Controls.WriterControl();
this.panel9 = new AIMS.PublicUI.UI.DrawPanel();
this.panel3.SuspendLayout();
this.panel14.SuspendLayout();
this.panel4.SuspendLayout();
@ -117,7 +117,6 @@
this.superTabMain.SuspendLayout();
this.superTabControlPanel1.SuspendLayout();
this.panelExZKZB.SuspendLayout();
this.panel8.SuspendLayout();
this.superTabControlPanel2.SuspendLayout();
this.panel7.SuspendLayout();
this.panel21.SuspendLayout();
@ -135,6 +134,7 @@
((System.ComponentModel.ISupportInitialize)(this.txtInRoom)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.picInRoom)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.writerCommandControler1)).BeginInit();
this.panel8.SuspendLayout();
this.SuspendLayout();
//
// panel2
@ -842,26 +842,6 @@
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;
@ -879,16 +859,6 @@
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;
@ -1403,6 +1373,36 @@
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.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;
//
// 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;
//
// frmInstrumentRecord2
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@ -1425,7 +1425,6 @@
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();
@ -1444,6 +1443,7 @@
((System.ComponentModel.ISupportInitialize)(this.txtInRoom)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.picInRoom)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.writerCommandControler1)).EndInit();
this.panel8.ResumeLayout(false);
this.ResumeLayout(false);
}

View File

@ -690,7 +690,7 @@ namespace AIMS.OperationAanesthesia
ReturnApply._SelectApplianceUseType = _applianceUseType;
DialogResult ddr = ReturnApply.ShowDialog();
_appliance = ReturnApply._appliance;
if (ddr == System.Windows.Forms.DialogResult.OK && _appliance != null)
if (ddr == System.Windows.Forms.DialogResult.OK && _appliance != null && _applianceUseType[0].Id != 1)
{
FullUcControlsToPanel(QXList, _appliance, _record.InstrumentList, ref i1, ref j1);
//if (_appliance.Rows.Count > 60)
@ -705,7 +705,7 @@ namespace AIMS.OperationAanesthesia
ReturnApply._SelectApplianceUseType = _applianceUseType2;
DialogResult ddr = ReturnApply.ShowDialog();
_appliance2 = ReturnApply._appliance;
if (ddr == System.Windows.Forms.DialogResult.OK && _appliance2 != null)
if (ddr == System.Windows.Forms.DialogResult.OK && _appliance2 != null && _applianceUseType[0].Id != 1)
{
//FullUcControlsToPanel(panelQXList2, _appliance2, _record.InstrumentList2, ref i2, ref j2);
//if (_appliance.Rows.Count > 60)
@ -1666,46 +1666,6 @@ namespace AIMS.OperationAanesthesia
}
return applianceRecordList;
}
//private List<ApplianceRecord> GetApplianceRecord2()
//{
// List<ApplianceRecord> applianceRecordList = new List<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
@ -1741,29 +1701,35 @@ namespace AIMS.OperationAanesthesia
private void TextBoxAddEventSources(List<string> _panel, string TextValue)
{
for (int i = 0; i < _panel.Count; i++)
var BillText = myEditControl.Document.Fields.ToArray().ToList();
foreach (var item in BillText)
{
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;
if (item.Text == "")
item.Text = TextValue;
}
//for (int i = 0; i < _panel.Count; i++)
//{
// 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 void btnChage_Click(object sender, EventArgs e)

View File

@ -1,50 +0,0 @@
using AIMSModel;
using DrawGraph;
using System;
using System.Drawing;
using System.Windows.Forms;
namespace AIMS.OperationAanesthesia
{
public partial class frmChargRecordPrint : Form
{
#region
public OperationRecord _operationRecord;
public Person _worker;
public string TemplateType;
public string DeptId;
public string OpDrugs;
public DateTime? OperatorTime;
#endregion
public frmChargRecordPrint(OperationRecord operationRecord)
{
InitializeComponent();
_operationRecord = operationRecord;
}
private void frmChargRecordPrint_Load(object sender, EventArgs e)
{
lblName.Text = _operationRecord.Name;
lblInHospitalNo.Text = _operationRecord.InHospitalNo;
labsex.Text = _operationRecord.Sex;
}
private void buttonX2_Click(object sender, EventArgs e)
{
dgvOrders.ClearSelection();
PrescriptionDocument doc = new PrescriptionDocument(_operationRecord, dgvtEMPOperationInfos.CurrentRow);
doc.Location = new Point(15, 0);
panelAnescost.Controls.Add(doc);
dgvChargsRecord.Visible = false;
}
private void btnClose_Click(object sender, EventArgs e)
{
label113.Text = "麻醉收费";
dgvOrders.Tag = null;
dgvOrders.DataSource = null;
dgvChargsRecord.Visible = true;
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
namespace AIMS.OperationAanesthesia.oldSystemCode
namespace AIMS.OperationAanesthesia
{
partial class frmPrescriptionDocument
{
@ -28,14 +28,19 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.tsbAdd = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.tsbSava = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.tsbAdd = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.tsbExit = new System.Windows.Forms.ToolStripButton();
this.panel1 = new System.Windows.Forms.Panel();
this.myEditControl = new DCSoft.Writer.Controls.WriterControl();
this.writerCommandControler1 = new DCSoft.Writer.Commands.WriterCommandControler(this.components);
this.toolStrip1.SuspendLayout();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.writerCommandControler1)).BeginInit();
this.SuspendLayout();
//
// toolStrip1
@ -50,25 +55,10 @@
this.tsbExit});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(544, 49);
this.toolStrip1.Size = new System.Drawing.Size(624, 49);
this.toolStrip1.TabIndex = 9;
this.toolStrip1.Text = "toolStrip1";
//
// tsbAdd
//
this.tsbAdd.Font = new System.Drawing.Font("微软雅黑", 9F);
this.tsbAdd.Image = global::AIMS.Properties.Resources._打印;
this.tsbAdd.ImageTransparentColor = System.Drawing.Color.Transparent;
this.tsbAdd.Name = "tsbAdd";
this.tsbAdd.Size = new System.Drawing.Size(44, 46);
this.tsbAdd.Text = " 打印";
this.tsbAdd.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 49);
//
// tsbSava
//
this.tsbSava.Font = new System.Drawing.Font("微软雅黑", 9F);
@ -78,6 +68,23 @@
this.tsbSava.Size = new System.Drawing.Size(52, 46);
this.tsbSava.Text = " 保存 ";
this.tsbSava.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.tsbSava.Click += new System.EventHandler(this.tsbSava_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 49);
//
// tsbAdd
//
this.tsbAdd.Font = new System.Drawing.Font("微软雅黑", 9F);
this.tsbAdd.Image = global::AIMS.Properties.Resources._打印;
this.tsbAdd.ImageTransparentColor = System.Drawing.Color.Transparent;
this.tsbAdd.Name = "tsbAdd";
this.tsbAdd.Size = new System.Drawing.Size(44, 46);
this.tsbAdd.Text = " 打印";
this.tsbAdd.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.tsbAdd.Click += new System.EventHandler(this.tsbAdd_Click);
//
// toolStripSeparator4
//
@ -93,20 +100,30 @@
this.tsbExit.Size = new System.Drawing.Size(52, 46);
this.tsbExit.Text = " 关闭 ";
this.tsbExit.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.tsbExit.Click += new System.EventHandler(this.tsbExit_Click);
//
// panel1
//
this.panel1.Controls.Add(this.myEditControl);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 49);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(544, 712);
this.panel1.Size = new System.Drawing.Size(624, 832);
this.panel1.TabIndex = 10;
//
// 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(624, 832);
this.myEditControl.TabIndex = 7;
//
// frmPrescriptionDocument
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(544, 761);
this.ClientSize = new System.Drawing.Size(624, 881);
this.Controls.Add(this.panel1);
this.Controls.Add(this.toolStrip1);
this.Name = "frmPrescriptionDocument";
@ -116,6 +133,8 @@
this.Load += new System.EventHandler(this.frmPrescriptionDocument_Load);
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.writerCommandControler1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@ -130,5 +149,7 @@
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
public System.Windows.Forms.ToolStripButton tsbExit;
private System.Windows.Forms.Panel panel1;
private DCSoft.Writer.Controls.WriterControl myEditControl;
private DCSoft.Writer.Commands.WriterCommandControler writerCommandControler1;
}
}

View File

@ -1,19 +1,39 @@
using DrawGraph;
using AIMSBLL;
using AIMSModel;
using DCSoft.Writer;
using DCSoft.Writer.Data;
using DCSoft.Writer.Dom;
using DocumentManagement;
using DrawGraph;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using System.Xml;
namespace AIMS.OperationAanesthesia.oldSystemCode
namespace AIMS.OperationAanesthesia
{
public partial class frmPrescriptionDocument : Form
{
public OperationRecord _operationRecord;
public DataGridViewRow CurrentRow ;
public int PatientId;
public FeesRecord fee;
//模板Model
private PrintTemplate TModel = new PrintTemplate();
//文档Model
private PrintDocument DModel = new PrintDocument();
//患者Id
public PatientRecord Patient = new PatientRecord();
//容器tab
//public TabItem Tb;
//文档事件
private EventCodeCompilerBill codeCompiler;
private string strClick, strContentChanged;
public frmPrescriptionDocument()
{
InitializeComponent();
@ -21,9 +41,245 @@ namespace AIMS.OperationAanesthesia.oldSystemCode
private void frmPrescriptionDocument_Load(object sender, EventArgs e)
{
PrescriptionDocument doc = new PrescriptionDocument(_operationRecord, CurrentRow);
doc.Location = new Point(15, 0);
panel1.Controls.Add(doc);
//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;
Patient = PatientRecord.GetPatientRecord(PatientId);
DModel = DocumentDAL.GetDocumentbyName("第二类精神药品处方笺", Patient.PatientId, fee.Id.Value);
LoadDocument();
}
#region
private void LoadDocument()
{
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
{
fee.Extend4 = BFeesRecord.GetOrderNum().ToString();
//无文档则加载模板
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();
}
}
var Text = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == "开方日期").FirstOrDefault();
if (Text != null && fee.ExecTime != null)
Text.Text = " " + fee.ExecTime.Value.ToString("yyyy年MM月dd日");
var Text1 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == "药品名称").FirstOrDefault();
if (Text1 != null)
Text1.Text = fee.ChargName;
var Text2 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == "规格").FirstOrDefault();
if (Text2 != null)
Text2.Text = fee.ChargSpec + "*" + fee.FeeNum + fee.Unit;
var Text3 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == "剂量").FirstOrDefault();
if (Text3 != null)
Text3.Text = fee.Extend2;
var Text4 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == "单位").FirstOrDefault();
if (Text4 != null)
Text4.Text = fee.Extend1;
var Text5 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == "途径").FirstOrDefault();
if (Text5 != null)
Text5.Text = fee.Extend3;
var Text6 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == "药价").FirstOrDefault();
if (Text6 != null)
Text6.Text = fee.ChargePrice;
var Text7 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == "医师").FirstOrDefault();
if (Text7 != null)
Text7.Text = fee.ExecWork;
var Text8 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == "处方单号").FirstOrDefault();
if (Text8 != null)
Text8.Text = "000" + fee.Extend4;
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 EventCodeCompilerBill(ref this.myEditControl, strClick, strContentChanged, QXList);
//文档用户信息
myEditControl.UserLoginByParameter(
AIMSExtension.PublicMethod.OperatorNo,
AIMSExtension.PublicMethod.OperatorName,
AIMSExtension.PublicMethod.PermissionLevel);
//隐藏痕迹先
myEditControl.ExecuteCommand(StandardCommandNames.CleanViewMode, false, true);
}
#endregion
private void tsbAdd_Click(object sender, EventArgs e)
{
tsbSava_Click(null, null);
myEditControl.ExecuteCommand("FilePrint", true, null);
}
private void tsbExit_Click(object sender, EventArgs e)
{
this.Close();
}
private void tsbSava_Click(object sender, EventArgs e)
{
if (DModel.Id == 0)
{
int orderno = BFeesRecord.GetOrderNum();
if (int.Parse(fee.Extend4) < orderno)
{
fee.Extend4 = orderno.ToString();
var Text8 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == "处方单号").FirstOrDefault();
if (Text8 != null)
Text8.Text = "000" + fee.Extend4;
}
}
BFeesRecord.Update(fee);
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;
DModel.RecordId = fee.Id.Value.ToString();
DModel.Remark = fee.ChargName;
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.UpdatePrintDocument2(this.DModel);
//MessageBox.Show("修改成功!");
}
else
{
DocumentDAL.InsertPrintDocument2(this.DModel);
//new frmMessageBox().Show();
}
myEditControl.Document.Modified = false;
new frmMessageBox().Show();
}
}
}

View File

@ -120,4 +120,7 @@
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="writerCommandControler1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>563, 17</value>
</metadata>
</root>

View File

@ -1,4 +1,6 @@
using AIMSBLL;
using AIMS.OperationAanesthesia;
using AIMS.PublicUI.UI;
using AIMSBLL;
using AIMSExtension;
using AIMSModel;
using DrawGraph;
@ -201,8 +203,17 @@ namespace AIMS.OperationAfter.UI
// return;
//}
//DataGridViewToExcel.DataToExcel(dgvOperation);
frmOperationCharg4 charg4 = new frmOperationCharg4();
charg4.ShowDialog();
//frmOperationCharg4 charg4 = new frmOperationCharg4();
//charg4.ShowDialog();
if (dgvOperation.CurrentRow == null)//药品名称
return;
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();
}
private void cboRoom_SelectedIndexChanged(object sender, EventArgs e)
@ -237,7 +248,7 @@ namespace AIMS.OperationAfter.UI
int index = dgvtEMPOperationInfos.Rows.Add();
dgvtEMPOperationInfos.Rows[index].Cells[0].Value = item.Id;// 编号
dgvtEMPOperationInfos.Rows[index].Cells[1].Value = item.BillCode;
dgvtEMPOperationInfos.Rows[index].Cells[2].Value = item.ChargName += " " + item.ChargSpec;
dgvtEMPOperationInfos.Rows[index].Cells[2].Value = item.ChargName += " " + item.ChargSpec;
dgvtEMPOperationInfos.Rows[index].Cells[3].Value = item.Unit;
dgvtEMPOperationInfos.Rows[index].Cells[4].Value = item.FeeNum;
dgvtEMPOperationInfos.Rows[index].Cells[5].Value = item.UnitPrice;
@ -290,5 +301,21 @@ namespace AIMS.OperationAfter.UI
}
return bResult;
}
private void dgvtEMPOperationInfos_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if (dgvtEMPOperationInfos.CurrentRow == null)//药品名称
return;
int FeesRecordId = int.Parse(dgvtEMPOperationInfos.CurrentRow.Cells[0].Value.ToString());
FeesRecord drug = BFeesRecord.SelectSingle(FeesRecordId);
if (drug == null)
{
return;
}
frmPrescriptionDocument document = new frmPrescriptionDocument();
document.PatientId = drug.PatientId.Value;
document.fee = drug;
document.ShowDialog();
}
}
}

View File

@ -185,7 +185,7 @@
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(112, 45);
this.button1.TabIndex = 16;
this.button1.Text = "收费记录统计";
this.button1.Text = "收费记录";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
@ -741,6 +741,7 @@
this.dgvtEMPOperationInfos.ShowCellToolTips = false;
this.dgvtEMPOperationInfos.Size = new System.Drawing.Size(1048, 431);
this.dgvtEMPOperationInfos.TabIndex = 389;
this.dgvtEMPOperationInfos.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvtEMPOperationInfos_CellDoubleClick);
this.dgvtEMPOperationInfos.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgvtEMPOperationInfos_RowPostPaint);
//
// DId

View File

@ -81,19 +81,47 @@ namespace AIMS
return;
for (int i = 0; i < QXList.Count; i++)
{
if (element.Name == QXList[i] + "A" || element.Name == QXList[i] + "B")
if (element.Name == QXList[i] + "A")
{
try
{
SelElement = element;
SelElementName = element.Name;
SelElementValue = element.Text;
var hf3 = args.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == QXList[i] + "C").FirstOrDefault();
if (hf3 != null) hf3.Text = SelElementValue;
var hf2 = args.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == QXList[i] + "D").FirstOrDefault();
if (hf2 != null) hf2.Text = SelElementValue;
var hf1 = args.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == QXList[i] + "B").FirstOrDefault();
if (SelElementValue != "" && hf1.Text != "")
{
double value = 0, font = 0, doing = 0;
if (double.TryParse(SelElementValue, out font) == true && double.TryParse(hf1.Text, out doing) == true)
{
value = font + doing;
var hf3 = args.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == QXList[i] + "C").FirstOrDefault();
if (hf3 != null) hf3.Text = value.ToString();
var hf2 = args.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == QXList[i] + "D").FirstOrDefault();
if (hf2 != null) hf2.Text = value.ToString();
}
else
{
var hf3 = args.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == QXList[i] + "C").FirstOrDefault();
if (hf3 != null) hf3.Text = SelElementValue;
var hf2 = args.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == QXList[i] + "D").FirstOrDefault();
if (hf2 != null) hf2.Text = SelElementValue;
}
}
else if (SelElementValue != "")
{
var hf3 = args.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == QXList[i] + "C").FirstOrDefault();
if (hf3 != null) hf3.Text = SelElementValue;
var hf2 = args.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == QXList[i] + "D").FirstOrDefault();
if (hf2 != null) hf2.Text = SelElementValue;
}
}
catch (Exception)
{
@ -106,12 +134,60 @@ namespace AIMS
}
break;
}
else if (element.Name == QXList[i] + "B")
{
try
{
SelElement = element;
SelElementName = element.Name;
SelElementValue = element.Text;
var hf1 = args.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == QXList[i] + "A").FirstOrDefault();
if (SelElementValue != "" && hf1.Text != null)
{
double value = 0, font = 0, doing = 0;
if (double.TryParse(SelElementValue, out font) == true && double.TryParse(hf1.Text, out doing) == true)
{
value = font + doing;
var hf3 = args.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == QXList[i] + "C").FirstOrDefault();
if (hf3 != null) hf3.Text = value.ToString();
var hf2 = args.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == QXList[i] + "D").FirstOrDefault();
if (hf2 != null) hf2.Text = value.ToString();
}
}
}
catch (Exception)
{
var hf = args.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == QXList[i] + "C").FirstOrDefault();
if (hf != null) hf.Text = SelElementValue;
var hf2 = args.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).Name == QXList[i] + "D").FirstOrDefault();
if (hf2 != null) hf2.Text = SelElementValue;
}
break;
}
}
}
}
void eetChk_MouseClick(object eventSender, ElementMouseEventArgs args)
{
if (args.Element is XTextInputFieldElement && IsLoad == true)
{
var element = args.Element as XTextInputFieldElement;
for (int i = 0; i < QXList.Count; i++)
{
if ((element.Name == QXList[i] + "A"|| element.Name == QXList[i] + "B") && element.Text == "0")
{
element.Text = "";
break;
}
}
}
}
void frmOperation_FormClosed(object sender, FormClosedEventArgs e)

File diff suppressed because it is too large Load Diff

View File

@ -1,81 +0,0 @@
using AIMSBLL;
using AIMSExtension;
using AIMSModel;
using DCSoftDotfuscate;
using DrawGraph;
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
namespace AIMS.OperationAanesthesia
{
public partial class PrescriptionDocument : UserControl
{
public string type;
public Drugs Drug;
public OperationRecord _operationRecord;
public DataGridViewRow CurrentRow;
public int DrugCount;
public PrescriptionDocument(OperationRecord operationRecord, DataGridViewRow _CurrentRow)
{
InitializeComponent();
_operationRecord = operationRecord;
CurrentRow = _CurrentRow;
Drug = BDrugs.SelectSingle(int.Parse(CurrentRow.Cells[2].Tag.ToString()));
InitializeData();
}
/// <summary>
/// 赋值
/// </summary>
private void InitializeData()
{
labID.Text = _operationRecord.Id.ToString();
if (_operationRecord.PatientType == "门诊")
labMzh.Text = _operationRecord.InHospitalNo;
else
label8.Text = _operationRecord.MedicalHistoryNo;
labPatientName.Text = _operationRecord.Name;
string birth = _operationRecord.Age.ToString();
labAge.Text = birth;
labSex.Text = _operationRecord.Sex;
try
{
labPatientDesa.Text = DBManage.GetDictionaryValuesById(_operationRecord.Operation, "手术");
labDepartName.Text = _operationRecord.ApplyDepartmentName;
label19.Text = _operationRecord.Identity;
//uText5.Text = _operationRecord.Remark;// 地址
labDate.Text = DateTime.Now.ToString("yyyy年MM月dd日");
labDoctorName.Text = PublicMethod.OperatorName;
this.labDoctorOrderName.Text = Drug.Name;
this.utxtCount.Text = Drug.Stand;
this.uTextUse.Text = "术中";
this.labWay.Text = CurrentRow.Cells[5].EditedFormattedValue.ToString();
this.labSpecifications1.Text += Drug.DosageUnit.Trim();
}
catch (Exception ex)
{
PublicMethod.WriteLog(ex);
}
}
private void flowLayoutPanel1_Paint(object sender, PaintEventArgs e)
{
Pen pen = new Pen(Color.Black);
PointF rowPt1 = new PointF(310, 75);
PointF rowPt2 = new PointF(150, 150);
e.Graphics.DrawLine(pen, rowPt1, rowPt2);
}
private void labDate_DoubleClick(object sender, EventArgs e)
{
labDate.Text = DateTime.Now.ToString("yyyy年MM月dd日");
}
}
}

View File

@ -1,120 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -1,18 +1,14 @@
using AIMSBLL;
using AIMSExtension;
using AIMSModel;
using DevComponents.DotNetBar;
using DevComponents.DotNetBar.Controls;
using DrawGraph;
using AIMSExtension;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
using DCSoftDotfuscate;
using AIMS.OperationAanesthesia.oldSystemCode;
namespace AIMS.PublicUI.UI
{

View File

@ -4,9 +4,25 @@ using AIMSModel;
using AIMSObjectQuery;
using System.Collections;
using System.Collections.Generic;
using HelperDB;
namespace AIMSBLL
{
public partial class BFeesRecord
{
public static int GetOrderNum()
{
int num = 0;
string sql = "select max(Extend4) from FeesRecord";
string nums = DBHelper.ExecuteScalar(sql).ToString();
if (nums != null && nums != "")
num = int.Parse(nums);
if (num == 0)
num = 3520;
else
num++;
return num;
}
}
}

View File

@ -85,7 +85,7 @@ namespace AIMSBLL
_record.Sex = OperationFrontdt.Rows[0]["Sex"].ToString();
_record.Age = OperationFrontdt.Rows[0]["Age"].ToString();
_record.Identity = OperationFrontdt.Rows[0]["IdentityCard"].ToString();
//_record.Address = OperationFrontdt.Rows[0]["Address"].ToString();
_record.FareType = OperationFrontdt.Rows[0]["PatientKind"].ToString();
if (OperationFrontdt.Rows[0]["Height"].ToString() != "")
{
double Height = 0;

View File

@ -354,7 +354,7 @@ namespace DocumentManagement
public static DataTable GetPatientDoc(string PatientId)
{
StringBuilder strSql = new StringBuilder();
strSql.Append(" SELECT * FROM [AIMSDB_QHDSGRYY].[dbo].[PrintDocument] where PatientId='" + PatientId + "' ");
strSql.Append(" SELECT * FROM [dbo].[PrintDocument] where PatientId='" + PatientId + "' ");
DataTable dt = DbHelperSQL.GetDataTable(strSql.ToString());
return dt;
@ -613,7 +613,6 @@ namespace DocumentManagement
return model;
}
public static void InsertTemplate(PrintTemplate model)
{
try
@ -680,7 +679,6 @@ namespace DocumentManagement
throw ex;
}
}
public static void UpdateTemplate(PrintTemplate model)
{
try
@ -742,6 +740,7 @@ namespace DocumentManagement
}
}
public static void DeleteTemplate(PrintTemplate model)
{
try
@ -882,5 +881,164 @@ namespace DocumentManagement
}
return Value;
}
public static PrintDocument GetDocumentbyName(string tempName, int patientId, int RecordId)
{
PrintDocument model = new PrintDocument();
string result = string.Empty;
try
{
StringBuilder sb = new StringBuilder();
sb.Append("select ");
sb.Append(" pd.Id,");
sb.Append(" pd.PatientId,");
sb.Append(" pd.TemplateId,");
sb.Append(" pd.XmlFileName,");
sb.Append(" pd.XmlFile,");
sb.Append(" pd.XmlStatic,");
sb.Append(" pd.IsValid,");
sb.Append(" pd.OperatorNo,");
sb.Append(" pd.OperatorDate,");
sb.Append(" pd.RecordId,");
sb.Append(" pd.Remark");
sb.Append(" from PrintDocument pd");
sb.Append(" where ");
sb.Append(" pd.PatientId = " + patientId);
sb.Append(" and pd.XmlFileName = '" + tempName + "'");
sb.Append(" and pd.RecordId = '" + RecordId + "'");
sb.Append(" and pd.IsValid = 1");
sb.Append(" union all");
sb.Append(" select ");
sb.Append(" 0,");
sb.Append(" 0,");
sb.Append(" Id,");
sb.Append(" pt.XmlFileName,");
sb.Append(" pt.XmlFile,");
sb.Append(" null,");
sb.Append(" '',");
sb.Append(" null,");
sb.Append(" null,");
sb.Append(" null,");
sb.Append(" null");
sb.Append(" from PrintTemplate pt");
sb.Append(" where pt.IsValid = 1");
sb.Append(" and pt.XmlFileName = '" + tempName + "'");
DataTable dt = DbHelperSQL.GetDataTable(sb.ToString());
if (dt.Rows.Count > 0)
{
model.Id = int.Parse(dt.Rows[0]["Id"].ToString());
model.PatientId = int.Parse(dt.Rows[0]["PatientId"].ToString());
model.TemplateId = int.Parse(dt.Rows[0]["TemplateId"].ToString());
model.XmlFileName = dt.Rows[0]["XmlFileName"].ToString();
model.XmlFile = dt.Rows[0]["XmlFile"].ToString();
model.XmlStatic = dt.Rows[0]["XmlStatic"].ToString();
model.OperatorNo = dt.Rows[0]["OperatorNo"].ToString();
//model.OperatorDate = DateTime.Parse(dt.Rows[0]["OperatorDate"].ToString(""));
model.RecordId = dt.Rows[0]["RecordId"].ToString();
model.Remark = dt.Rows[0]["Remark"].ToString();
}
}
catch (Exception ex)
{
throw ex;
}
return model;
}
public static void InsertPrintDocument2(PrintDocument model)
{
try
{
StringBuilder strSql = new StringBuilder();
strSql.Append("insert into [PrintDocument](");
strSql.Append("[PatientId],TemplateId,[XmlFileName],[XmlFile],[XmlStatic],");
strSql.Append(" [IsValid],[OperatorNo],[OperatorDate],[RecordId],[Remark]");
strSql.Append(")");
strSql.Append(" values (");
strSql.Append("" + model.PatientId + ",");
strSql.Append("" + model.TemplateId + ",");
strSql.Append("'" + model.XmlFileName + "',");
strSql.Append("'" + model.XmlFile + "',");
strSql.Append("'" + model.XmlStatic + "',");
strSql.Append(" 1,");
strSql.Append("'" + model.OperatorNo + "',");
strSql.Append(" getdate(), ");
strSql.Append("'" + model.RecordId + "',");
strSql.Append("'" + model.Remark + "'");
strSql.Append(")");
strSql.Append(" select Id from [PrintDocument] where Id = @@Identity");
DataTable dt = DbHelperSQL.GetDataTable(strSql.ToString());
if (dt.Rows.Count > 0)
{
model.Id = int.Parse(dt.Rows[0]["Id"].ToString());
}
}
catch (Exception ex)
{
throw ex;
}
}
public static void UpdatePrintDocument2(PrintDocument model)
{
try
{
StringBuilder strSql = new StringBuilder();
strSql.Append("update [PrintDocument] set");
strSql.Append(" PatientId=" + model.PatientId + ",");
strSql.Append(" TemplateId=" + model.TemplateId + ",");
strSql.Append(" XmlFileName='" + model.XmlFileName + "',");
strSql.Append(" XmlFile='" + model.XmlFile + "',");
strSql.Append(" XmlStatic='" + model.XmlStatic + "',");
strSql.Append(" OperatorNo='" + model.OperatorNo + "',");
strSql.Append(" OperatorDate= getdate(),");
strSql.Append(" RecordId='" + model.RecordId + "',");
strSql.Append(" Remark='" + model.Remark + "'");
strSql.Append(" where Id=" + model.Id + " ");
DbHelperSQL.ExecNonQuery(strSql.ToString());
}
catch (Exception ex)
{
throw ex;
}
}
public static void DeletePrintDocument2(PrintDocument model)
{
try
{
StringBuilder strSql = new StringBuilder();
strSql.Append("update [PrintDocument] set");
strSql.Append(" isvalid = 0,");
strSql.Append(" OperatorNo='" + model.OperatorNo + "',");
strSql.Append(" OperatorDate= getdate()");
strSql.Append(" where Id=" + model.Id);
DbHelperSQL.ExecNonQuery(strSql.ToString());
}
catch (Exception ex)
{
throw ex;
}
}
public static void DeletePrintDocument3(string FileName, int PatientId, string OperatorNo)
{
try
{
StringBuilder strSql = new StringBuilder();
strSql.Append("update [PrintDocument] set");
strSql.Append(" isvalid = 0,");
strSql.Append(" OperatorNo='" + OperatorNo + "',");
strSql.Append(" OperatorDate= getdate()");
strSql.Append(" where PatientId=" + PatientId);
strSql.Append(" and XmlFileName='" + FileName + "'");
DbHelperSQL.ExecNonQuery(strSql.ToString());
}
catch (Exception ex)
{
throw ex;
}
}
}
}

View File

@ -26,6 +26,7 @@ namespace DocumentManagement
public String Sex { get; set; }
public String BirthDay { get; set; }
public String Age { get; set; }
public String IdentityCard { get; set; }
public String BMI { get; set; }
public String Height { get; set; }
public String Weight { get; set; }
@ -148,6 +149,7 @@ namespace DocumentManagement
{
}
patient.BirthDay = dt.Rows[0]["BirthDay"].ToString();
patient.IdentityCard = dt.Rows[0]["IdentityCard"].ToString();
patient.BloodType = dt.Rows[0]["BloodType"].ToString();
patient.SickBed = dt.Rows[0]["SickBed"].ToString();
patient.OperationType = dt.Rows[0]["OperationType"].ToString();

View File

@ -2144,5 +2144,7 @@ namespace DocumentManagement
public int IsValid { get; set; }
public string OperatorNo { get; set; }
public DateTime OperatorDate { get; set; }
public string RecordId { get; set; }
public string Remark { get; set; }
}
}

View File

@ -101,7 +101,7 @@ namespace DrawGraph
if (index < ApplianceRecordList.Count)
ZUtil.DrawText(ApplianceRecordList[index].ApplianceName, tablePackObj.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordList" + index, Color.Black, fontsize, false);
else
ZUtil.DrawLine(tablePackObj.X + tablePackObj.RealX, y + chaY, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 1 + tablePackObj1.X + span, y, ZedControl, "ApplianceRecordList" + index, Color.Black);
ZUtil.DrawLine(tablePackObj.X + tablePackObj.RealX, y + chaY, tablePackObj1.X + span, y, ZedControl, "ApplianceRecordList" + index, Color.Black);
if (index < ApplianceRecordList.Count && ApplianceRecordList[index].OpeFront != null && ApplianceRecordList[index].OpeFront != "" && ApplianceRecordList[index].OpeFront != @"/")