器械清点但2 打印处方单
This commit is contained in:
parent
0c561dc345
commit
1c6149a668
@ -207,6 +207,12 @@
|
|||||||
<Compile Include="FormLogin.designer.cs">
|
<Compile Include="FormLogin.designer.cs">
|
||||||
<DependentUpon>FormLogin.cs</DependentUpon>
|
<DependentUpon>FormLogin.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="OperationAanesthesia\oldSystemCode\frmPrescriptionDocument.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="OperationAanesthesia\oldSystemCode\frmPrescriptionDocument.Designer.cs">
|
||||||
|
<DependentUpon>frmPrescriptionDocument.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="OperationAfter\frmOperationManage.cs">
|
<Compile Include="OperationAfter\frmOperationManage.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@ -813,6 +819,9 @@
|
|||||||
<DependentUpon>FormLogin.cs</DependentUpon>
|
<DependentUpon>FormLogin.cs</DependentUpon>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="OperationAanesthesia\oldSystemCode\frmPrescriptionDocument.resx">
|
||||||
|
<DependentUpon>frmPrescriptionDocument.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="OperationAfter\frmOperationManage.resx">
|
<EmbeddedResource Include="OperationAfter\frmOperationManage.resx">
|
||||||
<DependentUpon>frmOperationManage.cs</DependentUpon>
|
<DependentUpon>frmOperationManage.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
|||||||
@ -1925,24 +1925,31 @@ namespace AIMS.OperationAanesthesia
|
|||||||
#region 公共方法
|
#region 公共方法
|
||||||
private void ReviewEvent()
|
private void ReviewEvent()
|
||||||
{
|
{
|
||||||
if (PatientId != 0)
|
try
|
||||||
{
|
{
|
||||||
templateManage.OpeRecord = BOperationRecord.getRecord(_record, PatientId, RecoverId);
|
if (PatientId != 0)
|
||||||
templateManage2.OpeRecord = templateManage.OpeRecord;
|
|
||||||
templateManage.BindOperationRecordValueAll(templateManage.OpeRecord);
|
|
||||||
templateManage2.BindOperationRecordValueAll(templateManage2.OpeRecord);
|
|
||||||
|
|
||||||
foreach (AreaManageBase area in templateManage2.ManageList)
|
|
||||||
{
|
{
|
||||||
area.MouseWheelParam += Area_MouseWheelParam;
|
templateManage.OpeRecord = BOperationRecord.getRecord(_record, PatientId, RecoverId);
|
||||||
}
|
templateManage2.OpeRecord = templateManage.OpeRecord;
|
||||||
reDrawEvent();
|
templateManage.BindOperationRecordValueAll(templateManage.OpeRecord);
|
||||||
templateManage.Bind();
|
templateManage2.BindOperationRecordValueAll(templateManage2.OpeRecord);
|
||||||
templateManage2.Bind();
|
|
||||||
reDrawAnalysis();
|
|
||||||
|
|
||||||
zgcAnaesRecord.Refresh();
|
foreach (AreaManageBase area in templateManage2.ManageList)
|
||||||
zgcAnaesRecord2.Refresh();
|
{
|
||||||
|
area.MouseWheelParam += Area_MouseWheelParam;
|
||||||
|
}
|
||||||
|
reDrawEvent();
|
||||||
|
templateManage.Bind();
|
||||||
|
templateManage2.Bind();
|
||||||
|
reDrawAnalysis();
|
||||||
|
|
||||||
|
zgcAnaesRecord.Refresh();
|
||||||
|
zgcAnaesRecord2.Refresh();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
PublicMethod.WriteLog(ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2226,6 +2233,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
_record = null;
|
_record = null;
|
||||||
|
//this.Dispose();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
@ -12,6 +12,7 @@ using System.Drawing;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using DCSoftDotfuscate;
|
using DCSoftDotfuscate;
|
||||||
|
using AIMS.OperationAanesthesia.oldSystemCode;
|
||||||
|
|
||||||
namespace AIMS.PublicUI.UI
|
namespace AIMS.PublicUI.UI
|
||||||
{
|
{
|
||||||
@ -132,6 +133,20 @@ namespace AIMS.PublicUI.UI
|
|||||||
dgv.CellLeave += new DataGridViewCellEventHandler(dgvDrugs_CellLeave);
|
dgv.CellLeave += new DataGridViewCellEventHandler(dgvDrugs_CellLeave);
|
||||||
dgv.KeyDown -= new System.Windows.Forms.KeyEventHandler(dgvDrugs_KeyDown);
|
dgv.KeyDown -= new System.Windows.Forms.KeyEventHandler(dgvDrugs_KeyDown);
|
||||||
dgv.KeyDown += new System.Windows.Forms.KeyEventHandler(dgvDrugs_KeyDown);
|
dgv.KeyDown += new System.Windows.Forms.KeyEventHandler(dgvDrugs_KeyDown);
|
||||||
|
|
||||||
|
dgv.CellDoubleClick -= Dgv_CellDoubleClick;
|
||||||
|
dgv.CellDoubleClick += Dgv_CellDoubleClick;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Dgv_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
|
||||||
|
{
|
||||||
|
if (_dataGridView.CurrentCell.ColumnIndex == 3)
|
||||||
|
{
|
||||||
|
frmPrescriptionDocument document = new frmPrescriptionDocument();
|
||||||
|
document._operationRecord = _record;
|
||||||
|
document.CurrentRow = _dataGridView.CurrentRow;
|
||||||
|
document.ShowDialog();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Dgv_CellEndEdit(object sender, DataGridViewCellEventArgs e)
|
private void Dgv_CellEndEdit(object sender, DataGridViewCellEventArgs e)
|
||||||
|
|||||||
1715
AIMS/OperationAanesthesia/frmInstrumentRecord.Designer.cs
generated
1715
AIMS/OperationAanesthesia/frmInstrumentRecord.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,7 @@ using AIMS.OperationFront.UI;
|
|||||||
using AIMS.OremrUserControl;
|
using AIMS.OremrUserControl;
|
||||||
using AIMS.PublicUI.UI;
|
using AIMS.PublicUI.UI;
|
||||||
using AIMSBLL;
|
using AIMSBLL;
|
||||||
|
using AIMSDAL;
|
||||||
using AIMSExtension;
|
using AIMSExtension;
|
||||||
using AIMSModel;
|
using AIMSModel;
|
||||||
using DevComponents.DotNetBar;
|
using DevComponents.DotNetBar;
|
||||||
@ -29,7 +30,9 @@ namespace AIMS.OperationAanesthesia
|
|||||||
public TemplateManage templateManage;
|
public TemplateManage templateManage;
|
||||||
public AIMSModel.OperationRoom NowRoom;
|
public AIMSModel.OperationRoom NowRoom;
|
||||||
private DataTable _appliance;
|
private DataTable _appliance;
|
||||||
|
private DataTable _appliance2;
|
||||||
private List<ApplianceUseType> _applianceUseType;
|
private List<ApplianceUseType> _applianceUseType;
|
||||||
|
private List<ApplianceUseType> _applianceUseType2;
|
||||||
public int PatientId = 0;
|
public int PatientId = 0;
|
||||||
public int ApplyId = 0;
|
public int ApplyId = 0;
|
||||||
public int RecoverId = 1;
|
public int RecoverId = 1;
|
||||||
@ -54,6 +57,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
labOperatorName.Text = "(" + AIMSExtension.PublicMethod.OperatorNo + ")" + " " + AIMSExtension.PublicMethod.OperatorName;
|
labOperatorName.Text = "(" + AIMSExtension.PublicMethod.OperatorNo + ")" + " " + AIMSExtension.PublicMethod.OperatorName;
|
||||||
if (NowRoom != null) lblRoom.Text = NowRoom.Name;
|
if (NowRoom != null) lblRoom.Text = NowRoom.Name;
|
||||||
circularProgress1.Location = new Point((panel8.Width - circularProgress1.Width) / 2, (panel8.Height - circularProgress1.Height) / 2);
|
circularProgress1.Location = new Point((panel8.Width - circularProgress1.Width) / 2, (panel8.Height - circularProgress1.Height) / 2);
|
||||||
|
circularProgress2.Location = new Point((panel9.Width - circularProgress2.Width) / 2, (panel9.Height - circularProgress2.Height) / 2);
|
||||||
//this.MaximizeBox = false;
|
//this.MaximizeBox = false;
|
||||||
this.MinimizeBox = false;
|
this.MinimizeBox = false;
|
||||||
|
|
||||||
@ -137,7 +141,6 @@ namespace AIMS.OperationAanesthesia
|
|||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
//PublicMethod.ShowMessage("输入的时间格式不符合规范(HH:mm)!");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -165,19 +168,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
if (Inevent != null)
|
if (Inevent != null)
|
||||||
{
|
{
|
||||||
_record.FactEventsList.Add(Inevent);
|
_record.FactEventsList.Add(Inevent);
|
||||||
//if (Inevent.EventName == "入室")
|
|
||||||
//{
|
|
||||||
// _record.pageCount = 0;
|
|
||||||
// ReviewEvent();
|
|
||||||
//}
|
|
||||||
//else if (Inevent.EventName == "手术开始" || Inevent.EventName == "出室" || Inevent.EventBeginTime > _record.lastPageBegin)
|
|
||||||
//{
|
|
||||||
// ReviewEvent();
|
|
||||||
//}
|
|
||||||
//else
|
|
||||||
//{
|
|
||||||
DrawEvent();
|
DrawEvent();
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -189,18 +180,6 @@ namespace AIMS.OperationAanesthesia
|
|||||||
DrawGraph.FactEvents Inevent = null;
|
DrawGraph.FactEvents Inevent = null;
|
||||||
DateTimeInput tb = obj as DateTimeInput;
|
DateTimeInput tb = obj as DateTimeInput;
|
||||||
curTimeTemp = new DateTime(curTimeTemp.Year, curTimeTemp.Month, curTimeTemp.Day, curTimeTemp.Hour, curTimeTemp.Minute, 0);
|
curTimeTemp = new DateTime(curTimeTemp.Year, curTimeTemp.Month, curTimeTemp.Day, curTimeTemp.Hour, curTimeTemp.Minute, 0);
|
||||||
//try
|
|
||||||
//{
|
|
||||||
// if (curTimeTemp.Date < _record.PlanOperationTime.AddDays(-3).Date)
|
|
||||||
// {
|
|
||||||
// tb.Focus();
|
|
||||||
// tb.Value = DateTime.Parse(tb.Tag.ToString());
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
//catch (Exception)
|
|
||||||
//{
|
|
||||||
//}
|
|
||||||
InsertOrUpdateEventTime(1, "txtInRoom", "入室", tb, curTimeTemp, ref Inevent);
|
InsertOrUpdateEventTime(1, "txtInRoom", "入室", tb, curTimeTemp, ref Inevent);
|
||||||
curTimeTemp = curTimeTemp.AddSeconds(2);
|
curTimeTemp = curTimeTemp.AddSeconds(2);
|
||||||
InsertOrUpdateEventTime(1, "txtOperationBegin", "手术开始", tb, curTimeTemp, ref Inevent);
|
InsertOrUpdateEventTime(1, "txtOperationBegin", "手术开始", tb, curTimeTemp, ref Inevent);
|
||||||
@ -211,19 +190,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
|
|
||||||
if (Inevent != null)
|
if (Inevent != null)
|
||||||
{
|
{
|
||||||
//if (Inevent.EventName == "入室")
|
|
||||||
//{
|
|
||||||
// _record.pageCount = 0;
|
|
||||||
// ReviewEvent();
|
|
||||||
//}
|
|
||||||
//else if (Inevent.EventName == "出室" || Inevent.EventName == "手术开始" || Inevent.EventBeginTime > _record.lastPageBegin)
|
|
||||||
//{
|
|
||||||
// ReviewEvent();
|
|
||||||
//}
|
|
||||||
//else
|
|
||||||
//{
|
|
||||||
DrawEvent();
|
DrawEvent();
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -291,10 +258,6 @@ namespace AIMS.OperationAanesthesia
|
|||||||
this.picOpeEnd.BackgroundImage = global::AIMS.Properties.Resources.手术结束;
|
this.picOpeEnd.BackgroundImage = global::AIMS.Properties.Resources.手术结束;
|
||||||
BOperationRecord.Update(" OperationEndTime=null where Id=@id ", new AIMSModel.ParameterList("@id", _record.Id));
|
BOperationRecord.Update(" OperationEndTime=null where Id=@id ", new AIMSModel.ParameterList("@id", _record.Id));
|
||||||
}
|
}
|
||||||
//if (Inevent != null)
|
|
||||||
//{
|
|
||||||
// BOperationRecord.Update("OperationBeginTime=@OperationBegin,OperationEndTime=@OperationEnd,OutRoomTime=@OutRoom where Id=@id", new AIMSModel.ParameterList("@OperationBegin", _record.OperationBeginTime.HasValue ? (object)_record.OperationBeginTime.Value : (object)DBNull.Value, "@OperationEnd", _record.OperationEndTime.HasValue ? (object)_record.OperationEndTime.Value : (object)DBNull.Value, "@OutRoom", _record.OutRoomTime.HasValue ? (object)_record.OutRoomTime.Value : (object)DBNull.Value, "@id", _record.Id));
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -433,6 +396,8 @@ namespace AIMS.OperationAanesthesia
|
|||||||
{
|
{
|
||||||
circularProgress1.IsRunning = true;
|
circularProgress1.IsRunning = true;
|
||||||
circularProgress1.Visible = true;
|
circularProgress1.Visible = true;
|
||||||
|
circularProgress2.IsRunning = true;
|
||||||
|
circularProgress2.Visible = true;
|
||||||
zgcAnaesRecord.Visible = false;
|
zgcAnaesRecord.Visible = false;
|
||||||
timerLoadAnesRescue = new System.Windows.Forms.Timer(components);
|
timerLoadAnesRescue = new System.Windows.Forms.Timer(components);
|
||||||
timerLoadAnesRescue.Enabled = true;//调试时设置为FALSE ,
|
timerLoadAnesRescue.Enabled = true;//调试时设置为FALSE ,
|
||||||
@ -501,6 +466,11 @@ namespace AIMS.OperationAanesthesia
|
|||||||
panelQX.Dock = DockStyle.Fill;
|
panelQX.Dock = DockStyle.Fill;
|
||||||
pan.Controls.Add(panelQX);
|
pan.Controls.Add(panelQX);
|
||||||
pan.Size = new System.Drawing.Size(templateManage.ZedControl.Width, (int)(templateManage.ZedControl.Height * 0.4));
|
pan.Size = new System.Drawing.Size(templateManage.ZedControl.Width, (int)(templateManage.ZedControl.Height * 0.4));
|
||||||
|
|
||||||
|
panelQX2.Visible = true;
|
||||||
|
panelQX2.Size = new Size(panel9.Size.Width - 10, pan.Size.Height);
|
||||||
|
panelQX2.Location = new Point(pan.Location.X, 40);
|
||||||
|
|
||||||
}
|
}
|
||||||
plRefresh_Click(null, null);
|
plRefresh_Click(null, null);
|
||||||
if (_record.MedicalRecord != null && _record.MedicalRecord != "")
|
if (_record.MedicalRecord != null && _record.MedicalRecord != "")
|
||||||
@ -535,6 +505,8 @@ namespace AIMS.OperationAanesthesia
|
|||||||
}
|
}
|
||||||
circularProgress1.IsRunning = false;
|
circularProgress1.IsRunning = false;
|
||||||
circularProgress1.Visible = false;
|
circularProgress1.Visible = false;
|
||||||
|
circularProgress2.IsRunning = false;
|
||||||
|
circularProgress2.Visible = false;
|
||||||
zgcAnaesRecord.Visible = true;
|
zgcAnaesRecord.Visible = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -676,17 +648,35 @@ namespace AIMS.OperationAanesthesia
|
|||||||
}
|
}
|
||||||
private void btnTemplate_Click(object sender, EventArgs e)
|
private void btnTemplate_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (_applianceUseType == null)
|
if (superTabMain.SelectedTab.Name == "spTabQXQDD")
|
||||||
_applianceUseType = new List<ApplianceUseType>();
|
|
||||||
frmSelectApplianceUseType ReturnApply = new frmSelectApplianceUseType();
|
|
||||||
ReturnApply._SelectApplianceUseType = _applianceUseType;
|
|
||||||
DialogResult ddr = ReturnApply.ShowDialog();
|
|
||||||
_appliance = ReturnApply._appliance;
|
|
||||||
if (ddr == System.Windows.Forms.DialogResult.OK && _appliance != null)
|
|
||||||
{
|
{
|
||||||
FullUcControlsToPanel(panelQXList, _appliance);
|
if (_applianceUseType == null)
|
||||||
//if (_appliance.Rows.Count > 60)
|
_applianceUseType = new List<ApplianceUseType>();
|
||||||
// MessageBox.Show("超出打印数量!");
|
frmSelectApplianceUseType ReturnApply = new frmSelectApplianceUseType();
|
||||||
|
ReturnApply._SelectApplianceUseType = _applianceUseType;
|
||||||
|
DialogResult ddr = ReturnApply.ShowDialog();
|
||||||
|
_appliance = ReturnApply._appliance;
|
||||||
|
if (ddr == System.Windows.Forms.DialogResult.OK && _appliance != null)
|
||||||
|
{
|
||||||
|
FullUcControlsToPanel(panelQXList, _appliance, _record.InstrumentList, i1, j1);
|
||||||
|
//if (_appliance.Rows.Count > 60)
|
||||||
|
// MessageBox.Show("超出打印数量!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (_applianceUseType2 == null)
|
||||||
|
_applianceUseType2 = new List<ApplianceUseType>();
|
||||||
|
frmSelectApplianceUseType ReturnApply = new frmSelectApplianceUseType();
|
||||||
|
ReturnApply._SelectApplianceUseType = _applianceUseType2;
|
||||||
|
DialogResult ddr = ReturnApply.ShowDialog();
|
||||||
|
_appliance2 = ReturnApply._appliance;
|
||||||
|
if (ddr == System.Windows.Forms.DialogResult.OK && _appliance2 != null)
|
||||||
|
{
|
||||||
|
FullUcControlsToPanel(panelQXList2, _appliance2, _record.InstrumentList2, i2, j2);
|
||||||
|
//if (_appliance.Rows.Count > 60)
|
||||||
|
// MessageBox.Show("超出打印数量!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void tsbExePlan_Click(object sender, EventArgs e)
|
private void tsbExePlan_Click(object sender, EventArgs e)
|
||||||
@ -738,7 +728,8 @@ namespace AIMS.OperationAanesthesia
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (NowRoom == null) return;
|
if (((TimeSpan)(DateTime.Now - _record.lastPageBegin)).TotalHours > 24 || NowRoom == null) return;
|
||||||
|
if (_record != null && _record.OutRoomTime != null && DateTime.Now > _record.OutRoomTime) return;
|
||||||
ShowMonitorDataToRight();
|
ShowMonitorDataToRight();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
@ -940,61 +931,74 @@ namespace AIMS.OperationAanesthesia
|
|||||||
#region 公共方法
|
#region 公共方法
|
||||||
private void ReviewEvent()
|
private void ReviewEvent()
|
||||||
{
|
{
|
||||||
if (PatientId != 0)
|
try
|
||||||
{
|
{
|
||||||
templateManage.OpeRecord = BOperationRecord.getRecord(_record, PatientId, RecoverId);
|
if (PatientId != 0)
|
||||||
templateManage.BindOperationRecordValueAll(templateManage.OpeRecord);
|
|
||||||
reDrawEvent();
|
|
||||||
templateManage.Bind();
|
|
||||||
|
|
||||||
if (_record.InstrumentList.ApplianceUseType != null && _record.InstrumentList.ApplianceUseType != "")
|
|
||||||
{
|
{
|
||||||
txtInstrumentNurse.Text = _record.InstrumentList.InstrumentNurse;
|
templateManage.OpeRecord = BOperationRecord.getRecord(_record, PatientId, RecoverId);
|
||||||
txtTourNurse.Text = _record.InstrumentList.TourNurse;
|
templateManage.BindOperationRecordValueAll(templateManage.OpeRecord);
|
||||||
txtRemark.Text = _record.InstrumentList.Remark;
|
reDrawEvent();
|
||||||
LoadOperationGoodsBillRecord();
|
templateManage.Bind();
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
FirstbtnEnter();
|
|
||||||
}
|
|
||||||
|
|
||||||
SelectOperationDoctorData = BFactPersonDuty.GetPersonIdList(_record.PatientId.Value, 1);
|
if (_record.InstrumentList != null && _record.InstrumentList.Id != null && _record.InstrumentList.ApplianceUseType != null)
|
||||||
if (SelectOperationDoctorData.Count > 0)
|
|
||||||
{
|
|
||||||
txtOperationDoctor.Text = "";
|
|
||||||
|
|
||||||
foreach (int RowId in SelectOperationDoctorData)
|
|
||||||
{
|
{
|
||||||
txtOperationDoctor.Text += BPerson.SelectSingle(RowId).Name + ",";
|
txtInstrumentNurse.Text = _record.InstrumentList.InstrumentNurse;
|
||||||
|
txtTourNurse.Text = _record.InstrumentList.TourNurse;
|
||||||
|
txtRemark.Text = _record.InstrumentList.Remark;
|
||||||
|
LoadOperationGoodsBillRecord();
|
||||||
}
|
}
|
||||||
txtOperationDoctor.Text = txtOperationDoctor.Text.Substring(0, txtOperationDoctor.Text.LastIndexOf(","));
|
else
|
||||||
}
|
|
||||||
|
|
||||||
SelectInstrumentNurseData = BFactPersonDuty.GetPersonIdList(_record.PatientId.Value, 6);
|
|
||||||
if (SelectInstrumentNurseData.Count > 0)
|
|
||||||
{
|
|
||||||
txtInstrumentNurse.Text = "";
|
|
||||||
|
|
||||||
foreach (int RowId in SelectInstrumentNurseData)
|
|
||||||
{
|
{
|
||||||
txtInstrumentNurse.Text += BPerson.SelectSingle(RowId).Name + ",";
|
FirstbtnEnter();
|
||||||
}
|
}
|
||||||
txtInstrumentNurse.Text = txtInstrumentNurse.Text.Substring(0, txtInstrumentNurse.Text.LastIndexOf(","));
|
|
||||||
}
|
|
||||||
|
|
||||||
SelectTourNurseData = BFactPersonDuty.GetPersonIdList(_record.PatientId.Value, 7);
|
if (_record.InstrumentList2 != null && _record.InstrumentList2.Id != null)
|
||||||
if (SelectTourNurseData.Count > 0)
|
|
||||||
{
|
|
||||||
txtTourNurse.Text = "";
|
|
||||||
foreach (int RowId in SelectTourNurseData)
|
|
||||||
{
|
{
|
||||||
txtTourNurse.Text += BPerson.SelectSingle(RowId).Name + ",";
|
txtInstrumentNurse2.Text = _record.InstrumentList2.InstrumentNurse;
|
||||||
|
txtTourNurse2.Text = _record.InstrumentList2.TourNurse;
|
||||||
|
txtRemark2.Text = _record.InstrumentList2.Remark;
|
||||||
|
LoadOperationGoodsBillRecord2();
|
||||||
}
|
}
|
||||||
txtTourNurse.Text = txtTourNurse.Text.Substring(0, txtTourNurse.Text.LastIndexOf(","));
|
|
||||||
}
|
|
||||||
|
|
||||||
zgcAnaesRecord.Refresh();
|
SelectOperationDoctorData = BFactPersonDuty.GetPersonIdList(_record.PatientId.Value, 1);
|
||||||
|
if (SelectOperationDoctorData.Count > 0)
|
||||||
|
{
|
||||||
|
txtOperationDoctor.Text = "";
|
||||||
|
|
||||||
|
foreach (int RowId in SelectOperationDoctorData)
|
||||||
|
{
|
||||||
|
txtOperationDoctor.Text += BPerson.SelectSingle(RowId).Name + ",";
|
||||||
|
}
|
||||||
|
txtOperationDoctor.Text = txtOperationDoctor.Text.Substring(0, txtOperationDoctor.Text.LastIndexOf(","));
|
||||||
|
}
|
||||||
|
|
||||||
|
SelectInstrumentNurseData = BFactPersonDuty.GetPersonIdList(_record.PatientId.Value, 6);
|
||||||
|
if (SelectInstrumentNurseData.Count > 0)
|
||||||
|
{
|
||||||
|
txtInstrumentNurse.Text = "";
|
||||||
|
|
||||||
|
foreach (int RowId in SelectInstrumentNurseData)
|
||||||
|
{
|
||||||
|
txtInstrumentNurse.Text += BPerson.SelectSingle(RowId).Name + ",";
|
||||||
|
}
|
||||||
|
txtInstrumentNurse.Text = txtInstrumentNurse.Text.Substring(0, txtInstrumentNurse.Text.LastIndexOf(","));
|
||||||
|
}
|
||||||
|
|
||||||
|
SelectTourNurseData = BFactPersonDuty.GetPersonIdList(_record.PatientId.Value, 7);
|
||||||
|
if (SelectTourNurseData.Count > 0)
|
||||||
|
{
|
||||||
|
txtTourNurse.Text = "";
|
||||||
|
foreach (int RowId in SelectTourNurseData)
|
||||||
|
{
|
||||||
|
txtTourNurse.Text += BPerson.SelectSingle(RowId).Name + ",";
|
||||||
|
}
|
||||||
|
txtTourNurse.Text = txtTourNurse.Text.Substring(0, txtTourNurse.Text.LastIndexOf(","));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
PublicMethod.WriteLog(ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1154,7 +1158,9 @@ namespace AIMS.OperationAanesthesia
|
|||||||
}
|
}
|
||||||
public void ClearRecordDate()
|
public void ClearRecordDate()
|
||||||
{
|
{
|
||||||
panel8.VerticalScroll.Value = 0;
|
_applianceUseType = null;
|
||||||
|
_applianceUseType2 = null;
|
||||||
|
panel8.VerticalScroll.Value = 0;
|
||||||
//清空记录点并重新加载
|
//清空记录点并重新加载
|
||||||
ClearTimeText();
|
ClearTimeText();
|
||||||
//关闭采集的服务
|
//关闭采集的服务
|
||||||
@ -1172,7 +1178,12 @@ namespace AIMS.OperationAanesthesia
|
|||||||
if (templateManage != null)
|
if (templateManage != null)
|
||||||
{
|
{
|
||||||
templateManage.ControlClear();
|
templateManage.ControlClear();
|
||||||
}
|
}
|
||||||
|
txtRemark.Text = "";
|
||||||
|
txtInstrumentNurse.Text = "";
|
||||||
|
txtTourNurse.Text = "";
|
||||||
|
txtOperationDoctor.Text = "";
|
||||||
|
panelQXList.Controls.Clear();
|
||||||
_record = null;
|
_record = null;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
@ -1224,53 +1235,74 @@ namespace AIMS.OperationAanesthesia
|
|||||||
#region 加载手术手术清点单记录信息
|
#region 加载手术手术清点单记录信息
|
||||||
private void LoadOperationGoodsBillRecord()
|
private void LoadOperationGoodsBillRecord()
|
||||||
{
|
{
|
||||||
if (_record.InstrumentList.ApplianceUseType != null && _record.InstrumentList.ApplianceUseType != "") _applianceUseType = BApplianceUseType.Select(" id in (" + _record.InstrumentList.ApplianceUseType + ")", null, RecursiveType.None, 0);
|
if (_record.InstrumentList != null && _record.InstrumentList.Id != null)
|
||||||
|
{
|
||||||
|
if (_record.InstrumentList.ApplianceUseType != null && _record.InstrumentList.ApplianceUseType != "") _applianceUseType = BApplianceUseType.Select(" id in (" + _record.InstrumentList.ApplianceUseType + ")", null, RecursiveType.None, 0);
|
||||||
|
|
||||||
if (_applianceUseType == null || _applianceUseType.Count == 0)
|
if (_applianceUseType == null || _applianceUseType.Count == 0)
|
||||||
{
|
|
||||||
_applianceUseType = new List<ApplianceUseType>();
|
|
||||||
_appliance = BAppliance.GetApplianiceByIds("");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
DataTable newDataTable = null;
|
|
||||||
_appliance = BAppliance.GetApplianiceNumberByIds(_applianceUseType[0].TheApplianceId, _applianceUseType[0].ApplianceNumber);
|
|
||||||
newDataTable = _appliance.Clone();
|
|
||||||
foreach (ApplianceUseType item in _applianceUseType)
|
|
||||||
{
|
{
|
||||||
DataTable dt = BAppliance.GetApplianiceNumberByIds(item.TheApplianceId, item.ApplianceNumber);
|
_applianceUseType = new List<ApplianceUseType>();
|
||||||
object[] obj = new object[newDataTable.Columns.Count];
|
_appliance = BAppliance.GetApplianiceByIds("");
|
||||||
//添加DataTable1的数据
|
|
||||||
for (int i = 0; i < dt.Rows.Count; i++)
|
|
||||||
{
|
|
||||||
dt.Rows[i].ItemArray.CopyTo(obj, 0);
|
|
||||||
newDataTable.Rows.Add(obj);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
_appliance = newDataTable;
|
else
|
||||||
|
{
|
||||||
|
DataTable newDataTable = null;
|
||||||
|
_appliance = BAppliance.GetApplianiceNumberByIds(_applianceUseType[0].TheApplianceId, _applianceUseType[0].ApplianceNumber);
|
||||||
|
newDataTable = _appliance.Clone();
|
||||||
|
foreach (ApplianceUseType item in _applianceUseType)
|
||||||
|
{
|
||||||
|
DataTable dt = BAppliance.GetApplianiceNumberByIds(item.TheApplianceId, item.ApplianceNumber);
|
||||||
|
object[] obj = new object[newDataTable.Columns.Count];
|
||||||
|
//添加DataTable1的数据
|
||||||
|
for (int i = 0; i < dt.Rows.Count; i++)
|
||||||
|
{
|
||||||
|
dt.Rows[i].ItemArray.CopyTo(obj, 0);
|
||||||
|
newDataTable.Rows.Add(obj);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
_appliance = newDataTable;
|
||||||
|
}
|
||||||
|
if (_appliance != null)
|
||||||
|
FullUcControlsToPanel(panelQXList, _appliance, _record.InstrumentList, i1, j1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void LoadOperationGoodsBillRecord2()
|
||||||
|
{
|
||||||
|
if (_record.InstrumentList2 != null && _record.InstrumentList2.Id != null)
|
||||||
|
{
|
||||||
|
if (_record.InstrumentList2.ApplianceUseType != null && _record.InstrumentList2.ApplianceUseType != "") _applianceUseType2 = BApplianceUseType.Select(" id in (" + _record.InstrumentList2.ApplianceUseType + ")", null, RecursiveType.None, 0);
|
||||||
|
|
||||||
|
if (_applianceUseType2 == null || _applianceUseType2.Count == 0)
|
||||||
|
{
|
||||||
|
_applianceUseType2 = new List<ApplianceUseType>();
|
||||||
|
_appliance2 = BAppliance.GetApplianiceByIds("");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DataTable newDataTable = null;
|
||||||
|
_appliance2 = BAppliance.GetApplianiceNumberByIds(_applianceUseType2[0].TheApplianceId, _applianceUseType2[0].ApplianceNumber);
|
||||||
|
newDataTable = _appliance2.Clone();
|
||||||
|
foreach (ApplianceUseType item in _applianceUseType2)
|
||||||
|
{
|
||||||
|
DataTable dt = BAppliance.GetApplianiceNumberByIds(item.TheApplianceId, item.ApplianceNumber);
|
||||||
|
object[] obj = new object[newDataTable.Columns.Count];
|
||||||
|
//添加DataTable1的数据
|
||||||
|
for (int i = 0; i < dt.Rows.Count; i++)
|
||||||
|
{
|
||||||
|
dt.Rows[i].ItemArray.CopyTo(obj, 0);
|
||||||
|
newDataTable.Rows.Add(obj);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
_appliance2 = newDataTable;
|
||||||
|
}
|
||||||
|
if (_appliance2 != null)
|
||||||
|
FullUcControlsToPanel(panelQXList2, _appliance2, _record.InstrumentList2, i2, j2);
|
||||||
}
|
}
|
||||||
if (_appliance != null)
|
|
||||||
FullUcControlsToPanel(panelQXList, _appliance);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 选择器械包
|
#region 选择器械包
|
||||||
private void btnEnter_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (_applianceUseType == null)
|
|
||||||
_applianceUseType = new List<ApplianceUseType>();
|
|
||||||
frmSelectApplianceUseType ReturnApply = new frmSelectApplianceUseType();
|
|
||||||
ReturnApply._SelectApplianceUseType = _applianceUseType;
|
|
||||||
DialogResult ddr = ReturnApply.ShowDialog();
|
|
||||||
_appliance = ReturnApply._appliance;
|
|
||||||
if (ddr == System.Windows.Forms.DialogResult.OK && _appliance != null)
|
|
||||||
{
|
|
||||||
FullUcControlsToPanel(panelQXList, _appliance);
|
|
||||||
//if (_appliance.Rows.Count > 60)
|
|
||||||
// MessageBox.Show("超出打印数量!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
private void FirstbtnEnter()
|
private void FirstbtnEnter()
|
||||||
{
|
{
|
||||||
if (_applianceUseType == null)
|
if (_applianceUseType == null)
|
||||||
@ -1296,13 +1328,14 @@ namespace AIMS.OperationAanesthesia
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
_appliance = newDataTable;
|
_appliance = newDataTable;
|
||||||
FullUcControlsToPanel(panelQXList, _appliance);
|
FullUcControlsToPanel(panelQXList, _appliance, _record.InstrumentList, i1, j1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 加载物品控件
|
#region 加载物品控件
|
||||||
int i = 0, j = 0;
|
int i1 = 0, j1 = 0;
|
||||||
|
int i2 = 0, j2 = 0;
|
||||||
int Incount = 0;
|
int Incount = 0;
|
||||||
int IncRowsount = 25;
|
int IncRowsount = 25;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -1310,7 +1343,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="panel">指定的Panel</param>
|
/// <param name="panel">指定的Panel</param>
|
||||||
/// <param name="dt">物品数据表</param>
|
/// <param name="dt">物品数据表</param>
|
||||||
private void FullUcControlsToPanel(Panel panel, DataTable dt)
|
private void FullUcControlsToPanel(Panel panel, DataTable dt, OperationRecordInstrumentList Instrument, int i, int j)
|
||||||
{
|
{
|
||||||
i = 0; j = 0; Incount = 0;
|
i = 0; j = 0; Incount = 0;
|
||||||
panel.Controls.Clear();
|
panel.Controls.Clear();
|
||||||
@ -1319,9 +1352,9 @@ namespace AIMS.OperationAanesthesia
|
|||||||
if (Incount >= 51)
|
if (Incount >= 51)
|
||||||
break;
|
break;
|
||||||
ApplianceRecord applic = null;
|
ApplianceRecord applic = null;
|
||||||
if (_record.InstrumentList.ApplianceRecordList != null && _record.InstrumentList.ApplianceRecordList.Count > 0)
|
if (Instrument.ApplianceRecordList != null && Instrument.ApplianceRecordList.Count > 0)
|
||||||
{
|
{
|
||||||
foreach (ApplianceRecord app in _record.InstrumentList.ApplianceRecordList)
|
foreach (ApplianceRecord app in Instrument.ApplianceRecordList)
|
||||||
{
|
{
|
||||||
if (app.ApplianceId != null && app.ApplianceId == Convert.ToInt32(dr["Id"]))
|
if (app.ApplianceId != null && app.ApplianceId == Convert.ToInt32(dr["Id"]))
|
||||||
{
|
{
|
||||||
@ -1352,9 +1385,9 @@ namespace AIMS.OperationAanesthesia
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (_record.InstrumentList.ApplianceRecordList != null && _record.InstrumentList.ApplianceRecordList.Count > 0)
|
if (Instrument.ApplianceRecordList != null && Instrument.ApplianceRecordList.Count > 0)
|
||||||
{
|
{
|
||||||
foreach (ApplianceRecord app in _record.InstrumentList.ApplianceRecordList)
|
foreach (ApplianceRecord app in Instrument.ApplianceRecordList)
|
||||||
{
|
{
|
||||||
if (Incount >= 51)
|
if (Incount >= 51)
|
||||||
break;
|
break;
|
||||||
@ -1381,26 +1414,47 @@ namespace AIMS.OperationAanesthesia
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.panelQXList.Height = new UCOperationGoodsBill5().Height * IncRowsount;
|
panel.Height = new UCOperationGoodsBill5().Height * IncRowsount;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void button1_Click(object sender, EventArgs e)
|
private void button1_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
ApplianceRecord app = new ApplianceRecord();
|
if (superTabMain.SelectedTab.Name == "spTabQXQDD")
|
||||||
app.OperationRecordId = _record.Id.Value;
|
|
||||||
UCOperationGoodsBill5 uc = new UCOperationGoodsBill5(app);
|
|
||||||
uc.SelectTextBoxEvent += Uc_SelectTextBoxEvent;
|
|
||||||
uc.lblGoodsName.ReadOnly = false;
|
|
||||||
uc.GoodsNumber = "";
|
|
||||||
uc.Location = new Point((uc.Width) * i, (uc.Height - 1) * j);
|
|
||||||
count++;
|
|
||||||
if (_record.InstrumentList.ApplianceRecordList != null) _record.InstrumentList.ApplianceRecordList.Add(app);
|
|
||||||
panelQXList.Controls.Add(uc);
|
|
||||||
j++;
|
|
||||||
if (j == 25)
|
|
||||||
{
|
{
|
||||||
j = 0;
|
ApplianceRecord app = new ApplianceRecord();
|
||||||
i++;
|
app.OperationRecordId = _record.Id.Value;
|
||||||
|
UCOperationGoodsBill5 uc = new UCOperationGoodsBill5(app);
|
||||||
|
uc.SelectTextBoxEvent += Uc_SelectTextBoxEvent;
|
||||||
|
uc.lblGoodsName.ReadOnly = false;
|
||||||
|
uc.GoodsNumber = "";
|
||||||
|
uc.Location = new Point((uc.Width) * i1, (uc.Height - 1) * j1);
|
||||||
|
if (_record.InstrumentList.ApplianceRecordList != null) _record.InstrumentList.ApplianceRecordList.Add(app);
|
||||||
|
panelQXList.Controls.Add(uc);
|
||||||
|
j1++;
|
||||||
|
if (j1 == 25)
|
||||||
|
{
|
||||||
|
j1 = 0;
|
||||||
|
i1++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ApplianceRecord app = new ApplianceRecord();
|
||||||
|
app.OperationRecordId = _record.Id.Value;
|
||||||
|
UCOperationGoodsBill5 uc = new UCOperationGoodsBill5(app);
|
||||||
|
uc.SelectTextBoxEvent += Uc_SelectTextBoxEvent;
|
||||||
|
uc.lblGoodsName.ReadOnly = false;
|
||||||
|
uc.GoodsNumber = "";
|
||||||
|
uc.Location = new Point((uc.Width) * i2, (uc.Height - 1) * j2);
|
||||||
|
if (_record.InstrumentList2.ApplianceRecordList != null) _record.InstrumentList2.ApplianceRecordList.Add(app);
|
||||||
|
panelQXList2.Controls.Add(uc);
|
||||||
|
j2++;
|
||||||
|
if (j2 == 25)
|
||||||
|
{
|
||||||
|
j2 = 0;
|
||||||
|
i2++;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1510,7 +1564,44 @@ namespace AIMS.OperationAanesthesia
|
|||||||
BApplianceRecord.InsertListData(_record.InstrumentList.ApplianceRecordList);
|
BApplianceRecord.InsertListData(_record.InstrumentList.ApplianceRecordList);
|
||||||
DBManage.AddPerson(_record, SelectOperationDoctorData, 1);
|
DBManage.AddPerson(_record, SelectOperationDoctorData, 1);
|
||||||
DBManage.AddPerson(_record, SelectInstrumentNurseData, 6);
|
DBManage.AddPerson(_record, SelectInstrumentNurseData, 6);
|
||||||
DBManage.AddPerson(_record, SelectTourNurseData, 7);
|
DBManage.AddPerson(_record, SelectTourNurseData, 7);
|
||||||
|
|
||||||
|
if (_applianceUseType2 != null)
|
||||||
|
{
|
||||||
|
if (_record.InstrumentList2 == null)
|
||||||
|
{
|
||||||
|
_record.InstrumentList2 = new OperationRecordInstrumentList();
|
||||||
|
}
|
||||||
|
_record.InstrumentList2.OperationRecordId = this._record.Id;
|
||||||
|
if (_applianceUseType2 != null)
|
||||||
|
{
|
||||||
|
List<int> list = new List<int>();
|
||||||
|
foreach (ApplianceUseType item in _applianceUseType2)
|
||||||
|
{
|
||||||
|
list.Add(item.Id.Value);
|
||||||
|
}
|
||||||
|
_record.InstrumentList2.ApplianceUseType = string.Join(",", list.ToArray());
|
||||||
|
}
|
||||||
|
_record.InstrumentList2.TagPicture = "";// Convert.ToBase64String(PublicToDoument.ImageToBytes(pictureBox1.Image));
|
||||||
|
_record.InstrumentList2.JsonTextData = "";// PublicToDoument.SerializeControl(panel18, _record, new List<string> ());
|
||||||
|
_record.InstrumentList2.InstrumentNurse = txtInstrumentNurse2.Text;
|
||||||
|
_record.InstrumentList2.TourNurse = txtTourNurse2.Text;
|
||||||
|
_record.InstrumentList2.Remark = txtRemark2.Text;
|
||||||
|
_record.InstrumentList2.OperatorNo = PublicMethod.OperatorNo;
|
||||||
|
_record.InstrumentList2.OperatorName = PublicMethod.OperatorName;
|
||||||
|
_record.InstrumentList2.OperateDate = DateTime.Now;
|
||||||
|
if (_record.InstrumentList2.Id == null || _record.InstrumentList2.Id == 0)
|
||||||
|
{
|
||||||
|
_record.InstrumentList2.Id = BOperationRecordInstrumentList.Insert(_record.InstrumentList2);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
BOperationRecordInstrumentList.Update(_record.InstrumentList2);
|
||||||
|
}
|
||||||
|
_record.InstrumentList2.ApplianceRecordList = GetApplianceRecord2();
|
||||||
|
BApplianceRecord.InsertListData(_record.InstrumentList2.ApplianceRecordList);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1523,6 +1614,47 @@ namespace AIMS.OperationAanesthesia
|
|||||||
private void superTabMain_SelectedTabChanged(object sender, DevComponents.DotNetBar.SuperTabStripSelectedTabChangedEventArgs e)
|
private void superTabMain_SelectedTabChanged(object sender, DevComponents.DotNetBar.SuperTabStripSelectedTabChangedEventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (superTabMain.SelectedTab.Name == "spTabQXQDD2")
|
||||||
|
{
|
||||||
|
labdept.Text = _record.ApplyDepartmentName;
|
||||||
|
labpname.Text = _record.Name;
|
||||||
|
labsex.Text = _record.Sex;
|
||||||
|
labage.Text = _record.Age;
|
||||||
|
labopdate.Text = _record.OperationDate;
|
||||||
|
labmno.Text = _record.OperationDate;
|
||||||
|
labroom.Text = BOperationRoom.SelectSingle(_record.RoomId).Name;
|
||||||
|
|
||||||
|
txtOperation.Text = "";
|
||||||
|
SelectOperationData = BFactOperationInfo.GetFactOperationInfoIdList(_record.PatientId.Value);
|
||||||
|
foreach (int RowId in SelectOperationData)
|
||||||
|
{
|
||||||
|
txtOperation.Text += BOperation.SelectSingle(RowId).Name + " ,";
|
||||||
|
}
|
||||||
|
if (txtOperation.Text != "") txtOperation.Text = txtOperation.Text.Substring(0, txtOperation.Text.LastIndexOf(" ,"));
|
||||||
|
|
||||||
|
|
||||||
|
txtOperationPosition.Text = "";
|
||||||
|
SelectOperationPositionData = BFactOperationPosition.GetFactOperationPositionIdList(_record.PatientId.Value);
|
||||||
|
foreach (int RowId in SelectOperationPositionData)
|
||||||
|
{
|
||||||
|
txtOperationPosition.Text += BOperationPosition.SelectSingle(RowId).Name + " ,";
|
||||||
|
}
|
||||||
|
if (txtOperationPosition.Text != "") txtOperationPosition.Text = txtOperationPosition.Text.Substring(0, txtOperationPosition.Text.LastIndexOf(" ,"));
|
||||||
|
|
||||||
|
txtOperationDoctor2.Text = txtOperationDoctor.Text;
|
||||||
|
txtInstrumentNurse2.Text = txtInstrumentNurse.Text;
|
||||||
|
txtTourNurse2.Text = txtTourNurse.Text;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
templateManage.OpeRecord = BOperationRecord.getRecord(_record, PatientId, RecoverId);
|
||||||
|
templateManage.BindOperationRecordValueAll(templateManage.OpeRecord);
|
||||||
|
templateManage.Bind();
|
||||||
|
zgcAnaesRecord.Refresh();
|
||||||
|
txtOperationDoctor.Text = txtOperationDoctor2.Text;
|
||||||
|
txtInstrumentNurse.Text = txtInstrumentNurse2.Text;
|
||||||
|
txtTourNurse.Text = txtTourNurse2.Text;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -1545,7 +1677,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
applianceRecord.OperationRecordId = this._record.Id;
|
applianceRecord.OperationRecordId = this._record.Id;
|
||||||
applianceRecord.ApplianceId = UCOperationGoodsBill5.GoodsId;
|
applianceRecord.ApplianceId = UCOperationGoodsBill5.GoodsId;
|
||||||
applianceRecord.ApplianceName = UCOperationGoodsBill5.GoodsName;
|
applianceRecord.ApplianceName = UCOperationGoodsBill5.GoodsName;
|
||||||
if (_record.InstrumentList != null)
|
if (_record.InstrumentList != null && _record.InstrumentList.Id != null)
|
||||||
{
|
{
|
||||||
applianceRecord.OperationGoodsBillRecord = _record.InstrumentList.Id;
|
applianceRecord.OperationGoodsBillRecord = _record.InstrumentList.Id;
|
||||||
}
|
}
|
||||||
@ -1569,6 +1701,46 @@ namespace AIMS.OperationAanesthesia
|
|||||||
}
|
}
|
||||||
return applianceRecordList;
|
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
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
@ -1654,13 +1826,8 @@ namespace AIMS.OperationAanesthesia
|
|||||||
{
|
{
|
||||||
zgcAnaesRecord.Focus();
|
zgcAnaesRecord.Focus();
|
||||||
}
|
}
|
||||||
if (templateManage != null)
|
SaveInstrument(sender);
|
||||||
{
|
|
||||||
_record.InstrumentList.ApplianceRecordList = GetApplianceRecord();
|
|
||||||
_record.InstrumentList.InstrumentNurse = txtInstrumentNurse.Text;
|
|
||||||
_record.InstrumentList.TourNurse = txtTourNurse.Text;
|
|
||||||
_record.InstrumentList.Remark = txtRemark.Text;
|
|
||||||
}
|
|
||||||
mPanes = new List<MasterPane>();
|
mPanes = new List<MasterPane>();
|
||||||
UpPanes = new List<MasterPane>();
|
UpPanes = new List<MasterPane>();
|
||||||
PrintDocPage(null, null);
|
PrintDocPage(null, null);
|
||||||
@ -1703,6 +1870,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
pdg.Focus();
|
pdg.Focus();
|
||||||
pdg.BringToFront();
|
pdg.BringToFront();
|
||||||
|
|
||||||
|
plRefresh_Click(null, null);
|
||||||
}
|
}
|
||||||
private void PageSetting_Click(object sender, EventArgs e)
|
private void PageSetting_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
@ -1711,8 +1879,30 @@ namespace AIMS.OperationAanesthesia
|
|||||||
|
|
||||||
private void PrintDocPage(object sender, PrintPageEventArgs e)
|
private void PrintDocPage(object sender, PrintPageEventArgs e)
|
||||||
{
|
{
|
||||||
PrintDocPane(e, zgcAnaesRecord, templateManage);
|
if (templateManage != null)
|
||||||
|
{
|
||||||
|
if (superTabMain.SelectedTab.Name == "spTabQXQDD")
|
||||||
|
{
|
||||||
|
_record.InstrumentList.ApplianceRecordList = GetApplianceRecord();
|
||||||
|
_record.InstrumentList.InstrumentNurse = txtInstrumentNurse.Text;
|
||||||
|
_record.InstrumentList.TourNurse = txtTourNurse.Text;
|
||||||
|
_record.InstrumentList.Remark = txtRemark.Text;
|
||||||
|
PrintDocPane(e, zgcAnaesRecord, templateManage);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (_record.InstrumentList2 != null && _record.InstrumentList2.Id != null)
|
||||||
|
{
|
||||||
|
_record.InstrumentList = _record.InstrumentList2;
|
||||||
|
_record.InstrumentList.ApplianceRecordList = GetApplianceRecord2();
|
||||||
|
//_record.InstrumentList.InstrumentNurse = txtInstrumentNurse2.Text;
|
||||||
|
//_record.InstrumentList.TourNurse = txtTourNurse2.Text;
|
||||||
|
_record.InstrumentList.Remark = txtRemark2.Text;
|
||||||
|
PrintDocPane(e, zgcAnaesRecord, templateManage);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void PrintDocPane(PrintPageEventArgs e, ZedGraphControl zedGraph, TemplateManage template)
|
private void PrintDocPane(PrintPageEventArgs e, ZedGraphControl zedGraph, TemplateManage template)
|
||||||
@ -1794,10 +1984,11 @@ namespace AIMS.OperationAanesthesia
|
|||||||
int idxStart = txtTourNurse.Text.LastIndexOf(",");
|
int idxStart = txtTourNurse.Text.LastIndexOf(",");
|
||||||
txtTourNurse.Text = txtTourNurse.Text.Substring(0, idxStart);
|
txtTourNurse.Text = txtTourNurse.Text.Substring(0, idxStart);
|
||||||
}
|
}
|
||||||
|
txtTourNurse2.Text = txtTourNurse.Text;
|
||||||
}
|
}
|
||||||
|
|
||||||
private PublicUI.UI.frmSelectPerson frmInstrumentNurse;
|
|
||||||
private List<int> SelectInstrumentNurseData = new List<int>(); //一助
|
private List<int> SelectInstrumentNurseData = new List<int>(); //一助
|
||||||
|
private PublicUI.UI.frmSelectPerson frmInstrumentNurse;
|
||||||
private void txtInstrumentNurse_Click(object sender, EventArgs e)
|
private void txtInstrumentNurse_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
frmInstrumentNurse = new PublicUI.UI.frmSelectPerson();
|
frmInstrumentNurse = new PublicUI.UI.frmSelectPerson();
|
||||||
@ -1821,6 +2012,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
int idxStart = txtInstrumentNurse.Text.LastIndexOf(",");
|
int idxStart = txtInstrumentNurse.Text.LastIndexOf(",");
|
||||||
txtInstrumentNurse.Text = txtInstrumentNurse.Text.Substring(0, idxStart);
|
txtInstrumentNurse.Text = txtInstrumentNurse.Text.Substring(0, idxStart);
|
||||||
}
|
}
|
||||||
|
txtInstrumentNurse2.Text = txtInstrumentNurse.Text;
|
||||||
}
|
}
|
||||||
|
|
||||||
private PublicUI.UI.frmSelectPerson frmOperationDoctor;
|
private PublicUI.UI.frmSelectPerson frmOperationDoctor;
|
||||||
@ -1832,7 +2024,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
frmOperationDoctor.SelectDepartmentName = _record.ApplyDepartmentName;
|
frmOperationDoctor.SelectDepartmentName = _record.ApplyDepartmentName;
|
||||||
frmOperationDoctor.SelectPersonData = SelectOperationDoctorData;
|
frmOperationDoctor.SelectPersonData = SelectOperationDoctorData;
|
||||||
frmOperationDoctor.FormClosed += new FormClosedEventHandler(frmOperationDoctor_FormClosed);
|
frmOperationDoctor.FormClosed += new FormClosedEventHandler(frmOperationDoctor_FormClosed);
|
||||||
frmOperationDoctor.ShowDialog();
|
frmOperationDoctor.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
void frmOperationDoctor_FormClosed(object sender, FormClosedEventArgs e)
|
void frmOperationDoctor_FormClosed(object sender, FormClosedEventArgs e)
|
||||||
@ -1848,6 +2040,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
int idxStart = txtOperationDoctor.Text.LastIndexOf(",");
|
int idxStart = txtOperationDoctor.Text.LastIndexOf(",");
|
||||||
txtOperationDoctor.Text = txtOperationDoctor.Text.Substring(0, idxStart);
|
txtOperationDoctor.Text = txtOperationDoctor.Text.Substring(0, idxStart);
|
||||||
}
|
}
|
||||||
|
txtOperationDoctor2.Text = txtOperationDoctor.Text;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -1867,16 +2060,18 @@ namespace AIMS.OperationAanesthesia
|
|||||||
{
|
{
|
||||||
controlTextBox.Text = BPerson.GetModel(RowId).Name;
|
controlTextBox.Text = BPerson.GetModel(RowId).Name;
|
||||||
}
|
}
|
||||||
//if (controlTextBox.Text != "")
|
|
||||||
//{
|
|
||||||
// int idxStart = controlTextBox.Text.LastIndexOf(",");
|
|
||||||
// controlTextBox.Text = controlTextBox.Text.Substring(0, idxStart);
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void button9_Click(object sender, EventArgs e)
|
private void button9_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
TextBoxAddEventSources(panelQX, @"/");
|
if (superTabMain.SelectedTab.Name == "spTabQXQDD")
|
||||||
|
{
|
||||||
|
TextBoxAddEventSources(panelQX, @"/");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
TextBoxAddEventSources(panelQX2, @"/");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void TextBoxAddEventSources(Control _panel, string TextValue)
|
private void TextBoxAddEventSources(Control _panel, string TextValue)
|
||||||
@ -1909,13 +2104,63 @@ namespace AIMS.OperationAanesthesia
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private PublicUI.UI.frmOperationPosition frmOperationPosition;
|
||||||
|
private List<int> SelectOperationPositionData = new List<int>(); //手术部位
|
||||||
|
private void txtOperationPosition_DoubleClick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
frmOperationPosition = new PublicUI.UI.frmOperationPosition();
|
||||||
|
frmOperationPosition.FormClosed += new FormClosedEventHandler(frmOperationPosition_FormClosed);
|
||||||
|
frmOperationPosition.SelectOperationPositionData = SelectOperationPositionData;
|
||||||
|
frmOperationPosition.ShowDialog();
|
||||||
|
}
|
||||||
|
|
||||||
|
void frmOperationPosition_FormClosed(object sender, FormClosedEventArgs e)
|
||||||
|
{
|
||||||
|
txtOperationPosition.Text = "";
|
||||||
|
if (frmOperationPosition.SelectOperationPositionData.Count > 0)
|
||||||
|
{
|
||||||
|
SelectOperationPositionData = frmOperationPosition.SelectOperationPositionData;
|
||||||
|
foreach (int RowId in frmOperationPosition.SelectOperationPositionData)
|
||||||
|
{
|
||||||
|
txtOperationPosition.Text += BOperationPosition.SelectSingle(RowId).Name + " ,";
|
||||||
|
}
|
||||||
|
int idxStart = txtOperationPosition.Text.LastIndexOf(" ,");
|
||||||
|
txtOperationPosition.Text = txtOperationPosition.Text.Substring(0, idxStart);
|
||||||
|
}
|
||||||
|
DBManage.AddOperationPosition(_record, SelectOperationPositionData);
|
||||||
|
}
|
||||||
|
private PublicUI.UI.frmSelectOperation frmOperation;
|
||||||
|
private List<int> SelectOperationData = new List<int>(); //手术
|
||||||
|
private void txtOperation_DoubleClick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
frmOperation = new PublicUI.UI.frmSelectOperation();
|
||||||
|
frmOperation.FormClosed += new FormClosedEventHandler(frmOperation_FormClosed);
|
||||||
|
frmOperation.SelectRightData = SelectOperationData;
|
||||||
|
frmOperation.ShowDialog();
|
||||||
|
}
|
||||||
|
|
||||||
|
void frmOperation_FormClosed(object sender, FormClosedEventArgs e)
|
||||||
|
{
|
||||||
|
txtOperation.Text = "";
|
||||||
|
if (frmOperation.SelectRightData.Count > 0)
|
||||||
|
{
|
||||||
|
SelectOperationData = frmOperation.SelectRightData;
|
||||||
|
foreach (int RowId in frmOperation.SelectRightData)
|
||||||
|
{
|
||||||
|
txtOperation.Text += BOperation.SelectSingle(RowId).Name + " ,";
|
||||||
|
}
|
||||||
|
int idxStart = txtOperation.Text.LastIndexOf(" ,");
|
||||||
|
txtOperation.Text = txtOperation.Text.Substring(0, idxStart);
|
||||||
|
}
|
||||||
|
DBManage.AddOperation(_record, SelectOperationData);
|
||||||
|
}
|
||||||
private void frmAnasRecordInstrument_VisibleChanged(object sender, EventArgs e)
|
private void frmAnasRecordInstrument_VisibleChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (this.Visible == false)
|
if (this.Visible == false)
|
||||||
{
|
{
|
||||||
panel8.VerticalScroll.Value = 0;
|
panel8.VerticalScroll.Value = 0;
|
||||||
if (templateManage != null)
|
if (templateManage != null)
|
||||||
templateManage.SetPYL();
|
templateManage.SetPYL();
|
||||||
if (_record != null && _record.StateName == "手术中" && State != AIMSExtension.EditState.BROWSE)
|
if (_record != null && _record.StateName == "手术中" && State != AIMSExtension.EditState.BROWSE)
|
||||||
{
|
{
|
||||||
DisposeTimer();
|
DisposeTimer();
|
||||||
@ -1940,13 +2185,6 @@ namespace AIMS.OperationAanesthesia
|
|||||||
}
|
}
|
||||||
|
|
||||||
SaveInstrument(sender);
|
SaveInstrument(sender);
|
||||||
if (templateManage != null)
|
|
||||||
{
|
|
||||||
_record.InstrumentList.ApplianceRecordList = GetApplianceRecord();
|
|
||||||
_record.InstrumentList.InstrumentNurse = txtInstrumentNurse.Text;
|
|
||||||
_record.InstrumentList.TourNurse = txtTourNurse.Text;
|
|
||||||
_record.InstrumentList.Remark = txtRemark.Text;
|
|
||||||
}
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
mPanes = new List<MasterPane>();
|
mPanes = new List<MasterPane>();
|
||||||
@ -1973,6 +2211,8 @@ namespace AIMS.OperationAanesthesia
|
|||||||
{
|
{
|
||||||
pDoc.Print();
|
pDoc.Print();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
plRefresh_Click(null, null);
|
||||||
}
|
}
|
||||||
catch (Exception exp)
|
catch (Exception exp)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -69,12 +69,12 @@
|
|||||||
this.txtType = new System.Windows.Forms.Label();
|
this.txtType = new System.Windows.Forms.Label();
|
||||||
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.buttonX2 = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.panel1.SuspendLayout();
|
this.panel1.SuspendLayout();
|
||||||
this.groupBox1.SuspendLayout();
|
this.groupBox1.SuspendLayout();
|
||||||
this.panel2.SuspendLayout();
|
this.panel2.SuspendLayout();
|
||||||
this.groupBox2.SuspendLayout();
|
this.groupBox2.SuspendLayout();
|
||||||
this.panel3.SuspendLayout();
|
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// panel1
|
// panel1
|
||||||
@ -229,6 +229,7 @@
|
|||||||
// panel2
|
// panel2
|
||||||
//
|
//
|
||||||
this.panel2.AutoScroll = true;
|
this.panel2.AutoScroll = true;
|
||||||
|
this.panel2.Controls.Add(this.buttonX2);
|
||||||
this.panel2.Controls.Add(this.buttonX1);
|
this.panel2.Controls.Add(this.buttonX1);
|
||||||
this.panel2.Controls.Add(this.txtState);
|
this.panel2.Controls.Add(this.txtState);
|
||||||
this.panel2.Controls.Add(this.txttime);
|
this.panel2.Controls.Add(this.txttime);
|
||||||
@ -526,8 +527,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;
|
||||||
//
|
//
|
||||||
// line1
|
// buttonX2
|
||||||
//
|
//
|
||||||
|
this.buttonX2.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
|
this.buttonX2.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
|
this.buttonX2.Font = new System.Drawing.Font("微软雅黑", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.buttonX2.Location = new System.Drawing.Point(888, 14);
|
||||||
|
this.buttonX2.Name = "buttonX2";
|
||||||
|
this.buttonX2.Size = new System.Drawing.Size(95, 54);
|
||||||
|
this.buttonX2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
|
this.buttonX2.TabIndex = 7;
|
||||||
|
this.buttonX2.Text = "切换手术间";
|
||||||
|
this.buttonX2.Click += new System.EventHandler(this.buttonX2_Click);
|
||||||
//
|
//
|
||||||
// frmSelectPatientNew2
|
// frmSelectPatientNew2
|
||||||
//
|
//
|
||||||
@ -550,7 +561,6 @@
|
|||||||
this.panel2.ResumeLayout(false);
|
this.panel2.ResumeLayout(false);
|
||||||
this.panel2.PerformLayout();
|
this.panel2.PerformLayout();
|
||||||
this.groupBox2.ResumeLayout(false);
|
this.groupBox2.ResumeLayout(false);
|
||||||
this.panel3.ResumeLayout(false);
|
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -598,5 +608,6 @@
|
|||||||
private DevComponents.DotNetBar.Controls.TextBoxX txtquery;
|
private DevComponents.DotNetBar.Controls.TextBoxX txtquery;
|
||||||
private DevComponents.DotNetBar.ButtonX btnQuery;
|
private DevComponents.DotNetBar.ButtonX btnQuery;
|
||||||
private System.Windows.Forms.Label label4;
|
private System.Windows.Forms.Label label4;
|
||||||
|
private DevComponents.DotNetBar.ButtonX buttonX2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -271,7 +271,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
if (tempfrmAnasRecord != null && tempfrmAnasRecord._record != null)
|
if (tempfrmAnasRecord != null && tempfrmAnasRecord._record != null)
|
||||||
{
|
{
|
||||||
frmAnasRecord = tempfrmAnasRecord;
|
frmAnasRecord = tempfrmAnasRecord;
|
||||||
frmAnasRecord.ClearRecordDate();
|
frmAnasRecord.ClearRecordDate();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -297,9 +297,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
FillDgv();
|
FillDgv();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//if (frmAnasRecord._record != null)
|
|
||||||
// frmAnasRecord.ClearRecordDate();
|
|
||||||
this.Close();
|
this.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -310,7 +308,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
if (tempfrmAnasRecord != null && tempfrmAnasRecord._record != null)
|
if (tempfrmAnasRecord != null && tempfrmAnasRecord._record != null)
|
||||||
{
|
{
|
||||||
frmAnasRecord = tempfrmAnasRecord;
|
frmAnasRecord = tempfrmAnasRecord;
|
||||||
frmAnasRecord.ClearRecordDate();
|
frmAnasRecord.ClearRecordDate();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -334,9 +332,7 @@ namespace AIMS.OperationAanesthesia
|
|||||||
FillDgv();
|
FillDgv();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//if (tempfrmAnasRecord._record != null)
|
|
||||||
// tempfrmAnasRecord.ClearRecordDate();
|
|
||||||
this.Close();
|
this.Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -517,5 +513,28 @@ namespace AIMS.OperationAanesthesia
|
|||||||
{
|
{
|
||||||
FillDgv();
|
FillDgv();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void buttonX2_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string RoomStr = txtRoom.Tag.ToString();
|
||||||
|
if (RoomStr != "")
|
||||||
|
{
|
||||||
|
frmSeleteRoom seleteRoom = new frmSeleteRoom();
|
||||||
|
seleteRoom.NowRoomId = RoomStr;
|
||||||
|
seleteRoom.ShowDialog();
|
||||||
|
RoomStr = seleteRoom.RoomId;
|
||||||
|
if (RoomStr != null && RoomStr != "")
|
||||||
|
{
|
||||||
|
txtRoom.Text = seleteRoom.RoomName;
|
||||||
|
txtRoom.Tag = int.Parse(RoomStr);
|
||||||
|
BOperationRecord.Update("RoomId=@RoomId where OperationApplyId=@id ", new AIMSModel.ParameterList("@RoomId", int.Parse(RoomStr), "@id", SelApplyId));
|
||||||
|
BOperationApply.UpdateApplyRoom(SelApplyId, int.Parse(RoomStr), DateTime.Parse(txttime.Text));
|
||||||
|
BOperationApply.UpdteOperationOrder(DateTime.Parse(txttime.Text), int.Parse(RoomStr));
|
||||||
|
FillDgv();
|
||||||
|
panel2.Visible = true;
|
||||||
|
MessageBox.Show("手术间切换成功!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
134
AIMS/OperationAanesthesia/oldSystemCode/frmPrescriptionDocument.Designer.cs
generated
Normal file
134
AIMS/OperationAanesthesia/oldSystemCode/frmPrescriptionDocument.Designer.cs
generated
Normal file
@ -0,0 +1,134 @@
|
|||||||
|
namespace AIMS.OperationAanesthesia.oldSystemCode
|
||||||
|
{
|
||||||
|
partial class frmPrescriptionDocument
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
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.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
|
||||||
|
this.tsbExit = new System.Windows.Forms.ToolStripButton();
|
||||||
|
this.panel1 = new System.Windows.Forms.Panel();
|
||||||
|
this.toolStrip1.SuspendLayout();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// toolStrip1
|
||||||
|
//
|
||||||
|
this.toolStrip1.Font = new System.Drawing.Font("微软雅黑", 10.5F);
|
||||||
|
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(25, 25);
|
||||||
|
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
|
this.tsbSava,
|
||||||
|
this.toolStripSeparator1,
|
||||||
|
this.tsbAdd,
|
||||||
|
this.toolStripSeparator4,
|
||||||
|
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.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);
|
||||||
|
this.tsbSava.Image = global::AIMS.Properties.Resources.图标_保存;
|
||||||
|
this.tsbSava.ImageTransparentColor = System.Drawing.Color.Transparent;
|
||||||
|
this.tsbSava.Name = "tsbSava";
|
||||||
|
this.tsbSava.Size = new System.Drawing.Size(52, 46);
|
||||||
|
this.tsbSava.Text = " 保存 ";
|
||||||
|
this.tsbSava.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||||
|
//
|
||||||
|
// toolStripSeparator4
|
||||||
|
//
|
||||||
|
this.toolStripSeparator4.Name = "toolStripSeparator4";
|
||||||
|
this.toolStripSeparator4.Size = new System.Drawing.Size(6, 49);
|
||||||
|
//
|
||||||
|
// tsbExit
|
||||||
|
//
|
||||||
|
this.tsbExit.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||||
|
this.tsbExit.Image = global::AIMS.Properties.Resources.图标_关闭窗口;
|
||||||
|
this.tsbExit.ImageTransparentColor = System.Drawing.Color.Transparent;
|
||||||
|
this.tsbExit.Name = "tsbExit";
|
||||||
|
this.tsbExit.Size = new System.Drawing.Size(52, 46);
|
||||||
|
this.tsbExit.Text = " 关闭 ";
|
||||||
|
this.tsbExit.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||||
|
//
|
||||||
|
// panel1
|
||||||
|
//
|
||||||
|
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.TabIndex = 10;
|
||||||
|
//
|
||||||
|
// 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.Controls.Add(this.panel1);
|
||||||
|
this.Controls.Add(this.toolStrip1);
|
||||||
|
this.Name = "frmPrescriptionDocument";
|
||||||
|
this.ShowIcon = false;
|
||||||
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||||
|
this.Text = "处方单打印";
|
||||||
|
this.Load += new System.EventHandler(this.frmPrescriptionDocument_Load);
|
||||||
|
this.toolStrip1.ResumeLayout(false);
|
||||||
|
this.toolStrip1.PerformLayout();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public System.Windows.Forms.ToolStrip toolStrip1;
|
||||||
|
private System.Windows.Forms.ToolStripButton tsbSava;
|
||||||
|
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
||||||
|
private System.Windows.Forms.ToolStripButton tsbAdd;
|
||||||
|
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
|
||||||
|
public System.Windows.Forms.ToolStripButton tsbExit;
|
||||||
|
private System.Windows.Forms.Panel panel1;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,29 @@
|
|||||||
|
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.Windows.Forms;
|
||||||
|
|
||||||
|
namespace AIMS.OperationAanesthesia.oldSystemCode
|
||||||
|
{
|
||||||
|
public partial class frmPrescriptionDocument : Form
|
||||||
|
{
|
||||||
|
public OperationRecord _operationRecord;
|
||||||
|
public DataGridViewRow CurrentRow ;
|
||||||
|
public frmPrescriptionDocument()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void frmPrescriptionDocument_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
PrescriptionDocument doc = new PrescriptionDocument(_operationRecord, CurrentRow);
|
||||||
|
doc.Location = new Point(15, 0);
|
||||||
|
panel1.Controls.Add(doc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,123 @@
|
|||||||
|
<?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>
|
||||||
|
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
|
</root>
|
||||||
@ -467,8 +467,8 @@ namespace AIMS.OperationFront.UI
|
|||||||
this.dgvDetail = new DevComponents.DotNetBar.SuperGrid.SuperGridControl();
|
this.dgvDetail = new DevComponents.DotNetBar.SuperGrid.SuperGridControl();
|
||||||
this.ctsThisRoom = new System.Windows.Forms.ContextMenuStrip(this.components);
|
this.ctsThisRoom = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||||
this.mnuChangeOptRoomTo = new System.Windows.Forms.ToolStripMenuItem();
|
this.mnuChangeOptRoomTo = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.mnuCancelINurse = new System.Windows.Forms.ToolStripMenuItem();
|
|
||||||
this.mnuCancelADoctor = new System.Windows.Forms.ToolStripMenuItem();
|
this.mnuCancelADoctor = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.mnuCancelINurse = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.mnuCancelTNurse = new System.Windows.Forms.ToolStripMenuItem();
|
this.mnuCancelTNurse = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.colId = new DevComponents.DotNetBar.SuperGrid.GridColumn();
|
this.colId = new DevComponents.DotNetBar.SuperGrid.GridColumn();
|
||||||
this.colTable = new DevComponents.DotNetBar.SuperGrid.GridColumn();
|
this.colTable = new DevComponents.DotNetBar.SuperGrid.GridColumn();
|
||||||
@ -1748,7 +1748,7 @@ namespace AIMS.OperationFront.UI
|
|||||||
this.navigationPanePanel2.Margin = new System.Windows.Forms.Padding(0);
|
this.navigationPanePanel2.Margin = new System.Windows.Forms.Padding(0);
|
||||||
this.navigationPanePanel2.Name = "navigationPanePanel2";
|
this.navigationPanePanel2.Name = "navigationPanePanel2";
|
||||||
this.navigationPanePanel2.ParentItem = this.buttonItemAnas;
|
this.navigationPanePanel2.ParentItem = this.buttonItemAnas;
|
||||||
this.navigationPanePanel2.Size = new System.Drawing.Size(295, 545);
|
this.navigationPanePanel2.Size = new System.Drawing.Size(295, 735);
|
||||||
this.navigationPanePanel2.Style.Alignment = System.Drawing.StringAlignment.Center;
|
this.navigationPanePanel2.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||||
this.navigationPanePanel2.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground;
|
this.navigationPanePanel2.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground;
|
||||||
this.navigationPanePanel2.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground2;
|
this.navigationPanePanel2.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground2;
|
||||||
@ -1775,7 +1775,7 @@ namespace AIMS.OperationFront.UI
|
|||||||
this.groupBox1.Margin = new System.Windows.Forms.Padding(0);
|
this.groupBox1.Margin = new System.Windows.Forms.Padding(0);
|
||||||
this.groupBox1.Name = "groupBox1";
|
this.groupBox1.Name = "groupBox1";
|
||||||
this.groupBox1.Padding = new System.Windows.Forms.Padding(0);
|
this.groupBox1.Padding = new System.Windows.Forms.Padding(0);
|
||||||
this.groupBox1.Size = new System.Drawing.Size(295, 545);
|
this.groupBox1.Size = new System.Drawing.Size(295, 735);
|
||||||
this.groupBox1.TabIndex = 460;
|
this.groupBox1.TabIndex = 460;
|
||||||
this.groupBox1.TabStop = false;
|
this.groupBox1.TabStop = false;
|
||||||
this.groupBox1.Text = "主麻医师";
|
this.groupBox1.Text = "主麻医师";
|
||||||
@ -1835,7 +1835,7 @@ namespace AIMS.OperationFront.UI
|
|||||||
this.dgvWorkers.RowHeadersVisible = false;
|
this.dgvWorkers.RowHeadersVisible = false;
|
||||||
this.dgvWorkers.RowTemplate.Height = 23;
|
this.dgvWorkers.RowTemplate.Height = 23;
|
||||||
this.dgvWorkers.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
this.dgvWorkers.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||||
this.dgvWorkers.Size = new System.Drawing.Size(295, 453);
|
this.dgvWorkers.Size = new System.Drawing.Size(295, 643);
|
||||||
this.dgvWorkers.TabIndex = 3;
|
this.dgvWorkers.TabIndex = 3;
|
||||||
this.dgvWorkers.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvWorkers_CellDoubleClick);
|
this.dgvWorkers.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvWorkers_CellDoubleClick);
|
||||||
//
|
//
|
||||||
@ -2193,8 +2193,8 @@ namespace AIMS.OperationFront.UI
|
|||||||
//
|
//
|
||||||
// dgvDetail
|
// dgvDetail
|
||||||
//
|
//
|
||||||
this.dgvDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.dgvDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.dgvDetail.BackColor = System.Drawing.SystemColors.Control;
|
this.dgvDetail.BackColor = System.Drawing.SystemColors.Control;
|
||||||
this.dgvDetail.ContextMenuStrip = this.ctsThisRoom;
|
this.dgvDetail.ContextMenuStrip = this.ctsThisRoom;
|
||||||
@ -2251,33 +2251,33 @@ namespace AIMS.OperationFront.UI
|
|||||||
this.mnuCancelINurse,
|
this.mnuCancelINurse,
|
||||||
this.mnuCancelTNurse});
|
this.mnuCancelTNurse});
|
||||||
this.ctsThisRoom.Name = "ctsThisRoom";
|
this.ctsThisRoom.Name = "ctsThisRoom";
|
||||||
this.ctsThisRoom.Size = new System.Drawing.Size(181, 114);
|
this.ctsThisRoom.Size = new System.Drawing.Size(149, 92);
|
||||||
this.ctsThisRoom.Opening += new System.ComponentModel.CancelEventHandler(this.ctsThisRoom_Opening);
|
this.ctsThisRoom.Opening += new System.ComponentModel.CancelEventHandler(this.ctsThisRoom_Opening);
|
||||||
//
|
//
|
||||||
// mnuChangeOptRoomTo
|
// mnuChangeOptRoomTo
|
||||||
//
|
//
|
||||||
this.mnuChangeOptRoomTo.Name = "mnuChangeOptRoomTo";
|
this.mnuChangeOptRoomTo.Name = "mnuChangeOptRoomTo";
|
||||||
this.mnuChangeOptRoomTo.Size = new System.Drawing.Size(180, 22);
|
this.mnuChangeOptRoomTo.Size = new System.Drawing.Size(148, 22);
|
||||||
this.mnuChangeOptRoomTo.Text = "更换手术间至";
|
this.mnuChangeOptRoomTo.Text = "更换手术间至";
|
||||||
//
|
//
|
||||||
// mnuCancelINurse
|
|
||||||
//
|
|
||||||
this.mnuCancelINurse.Name = "mnuCancelINurse";
|
|
||||||
this.mnuCancelINurse.Size = new System.Drawing.Size(180, 22);
|
|
||||||
this.mnuCancelINurse.Text = "È¡ÏûÏ´ÊÖ»¤Ê¿";
|
|
||||||
this.mnuCancelINurse.Click += new System.EventHandler(this.mnuCancelINurse_Click);
|
|
||||||
//
|
|
||||||
// mnuCancelADoctor
|
// mnuCancelADoctor
|
||||||
//
|
//
|
||||||
this.mnuCancelADoctor.Name = "mnuCancelADoctor";
|
this.mnuCancelADoctor.Name = "mnuCancelADoctor";
|
||||||
this.mnuCancelADoctor.Size = new System.Drawing.Size(180, 22);
|
this.mnuCancelADoctor.Size = new System.Drawing.Size(148, 22);
|
||||||
this.mnuCancelADoctor.Text = "取消麻醉排程";
|
this.mnuCancelADoctor.Text = "取消麻醉排程";
|
||||||
this.mnuCancelADoctor.Click += new System.EventHandler(this.mnuCancelADoctor_Click);
|
this.mnuCancelADoctor.Click += new System.EventHandler(this.mnuCancelADoctor_Click);
|
||||||
//
|
//
|
||||||
|
// mnuCancelINurse
|
||||||
|
//
|
||||||
|
this.mnuCancelINurse.Name = "mnuCancelINurse";
|
||||||
|
this.mnuCancelINurse.Size = new System.Drawing.Size(148, 22);
|
||||||
|
this.mnuCancelINurse.Text = "È¡ÏûÏ´ÊÖ»¤Ê¿";
|
||||||
|
this.mnuCancelINurse.Click += new System.EventHandler(this.mnuCancelINurse_Click);
|
||||||
|
//
|
||||||
// mnuCancelTNurse
|
// mnuCancelTNurse
|
||||||
//
|
//
|
||||||
this.mnuCancelTNurse.Name = "mnuCancelTNurse";
|
this.mnuCancelTNurse.Name = "mnuCancelTNurse";
|
||||||
this.mnuCancelTNurse.Size = new System.Drawing.Size(180, 22);
|
this.mnuCancelTNurse.Size = new System.Drawing.Size(148, 22);
|
||||||
this.mnuCancelTNurse.Text = "取消巡回护士";
|
this.mnuCancelTNurse.Text = "取消巡回护士";
|
||||||
this.mnuCancelTNurse.Click += new System.EventHandler(this.mnuCancelTNurse_Click);
|
this.mnuCancelTNurse.Click += new System.EventHandler(this.mnuCancelTNurse_Click);
|
||||||
//
|
//
|
||||||
@ -3593,6 +3593,11 @@ namespace AIMS.OperationFront.UI
|
|||||||
dgvWorkers.AutoGenerateColumns = false;
|
dgvWorkers.AutoGenerateColumns = false;
|
||||||
dgvTourNurse.AutoGenerateColumns = false;
|
dgvTourNurse.AutoGenerateColumns = false;
|
||||||
dgvInstrumentNurse.AutoGenerateColumns = false;
|
dgvInstrumentNurse.AutoGenerateColumns = false;
|
||||||
|
this.dgvApplyOrDoctor.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvApplyOrDoctor_DataError);
|
||||||
|
this.dgvWorkers.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvApplyOrDoctor_DataError);
|
||||||
|
this.dgvInstrumentNurse.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvApplyOrDoctor_DataError);
|
||||||
|
this.dgvTourNurse.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvApplyOrDoctor_DataError);
|
||||||
|
this.dgvDetail.DataError += DgvDetail_DataError;
|
||||||
|
|
||||||
for (int i = 0; i < this.dgvWorkers.Columns.Count; i++)
|
for (int i = 0; i < this.dgvWorkers.Columns.Count; i++)
|
||||||
{
|
{
|
||||||
@ -3617,6 +3622,8 @@ namespace AIMS.OperationFront.UI
|
|||||||
PublicMethod.WriteLog(ex);
|
PublicMethod.WriteLog(ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void frmOperationSchedulePlan_Load(object sender, EventArgs e)
|
private void frmOperationSchedulePlan_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -4874,5 +4881,13 @@ namespace AIMS.OperationFront.UI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void dgvApplyOrDoctor_DataError(object sender, DataGridViewDataErrorEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
private void DgvDetail_DataError(object sender, GridDataErrorEventArgs e)
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -251,7 +251,7 @@
|
|||||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
||||||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
||||||
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD+
|
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD+
|
||||||
CAAAAk1TRnQBSQFMAgEBAgEAAcQBEwHEARMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
CAAAAk1TRnQBSQFMAgEBAgEAAcwBEwHMARMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
||||||
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
|
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
|
||||||
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
|
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
|
||||||
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
|
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
|
||||||
|
|||||||
@ -348,8 +348,7 @@
|
|||||||
this.txtOrderNo.Name = "txtOrderNo";
|
this.txtOrderNo.Name = "txtOrderNo";
|
||||||
this.txtOrderNo.Size = new System.Drawing.Size(120, 16);
|
this.txtOrderNo.Size = new System.Drawing.Size(120, 16);
|
||||||
this.txtOrderNo.TabIndex = 1327;
|
this.txtOrderNo.TabIndex = 1327;
|
||||||
this.txtOrderNo.Tag = "";
|
this.txtOrderNo.Tag = "";
|
||||||
this.txtOrderNo.DoubleClick += new System.EventHandler(this.txtOrderNo_DoubleClick);
|
|
||||||
//
|
//
|
||||||
// label29
|
// label29
|
||||||
//
|
//
|
||||||
|
|||||||
@ -1,8 +1,11 @@
|
|||||||
using AIMSExtension;
|
using AIMSBLL;
|
||||||
|
using AIMSExtension;
|
||||||
using AIMSModel;
|
using AIMSModel;
|
||||||
|
using DCSoftDotfuscate;
|
||||||
using DrawGraph;
|
using DrawGraph;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Data;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
@ -12,17 +15,16 @@ namespace AIMS.OperationAanesthesia
|
|||||||
{
|
{
|
||||||
public string type;
|
public string type;
|
||||||
public Drugs Drug;
|
public Drugs Drug;
|
||||||
public OperationRecord _operationRecord;
|
public OperationRecord _operationRecord;
|
||||||
public List<JsonTextForDoc> list;
|
|
||||||
public DataGridViewRow CurrentRow;
|
public DataGridViewRow CurrentRow;
|
||||||
public int DrugCount;
|
public int DrugCount;
|
||||||
|
|
||||||
public PrescriptionDocument(OperationRecord operationRecord, DataGridViewRow _CurrentRow )
|
public PrescriptionDocument(OperationRecord operationRecord, DataGridViewRow _CurrentRow)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
_operationRecord = operationRecord;
|
_operationRecord = operationRecord;
|
||||||
|
CurrentRow = _CurrentRow;
|
||||||
CurrentRow = _CurrentRow;
|
Drug = BDrugs.SelectSingle(int.Parse(CurrentRow.Cells[2].Tag.ToString()));
|
||||||
InitializeData();
|
InitializeData();
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -31,8 +33,36 @@ namespace AIMS.OperationAanesthesia
|
|||||||
/// 赋值
|
/// 赋值
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeData()
|
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)
|
private void flowLayoutPanel1_Paint(object sender, PaintEventArgs e)
|
||||||
{
|
{
|
||||||
Pen pen = new Pen(Color.Black);
|
Pen pen = new Pen(Color.Black);
|
||||||
@ -40,16 +70,12 @@ namespace AIMS.OperationAanesthesia
|
|||||||
PointF rowPt2 = new PointF(150, 150);
|
PointF rowPt2 = new PointF(150, 150);
|
||||||
e.Graphics.DrawLine(pen, rowPt1, rowPt2);
|
e.Graphics.DrawLine(pen, rowPt1, rowPt2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void labDate_DoubleClick(object sender, EventArgs e)
|
private void labDate_DoubleClick(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
labDate.Text = DateTime.Now.ToString("yyyy年MM月dd日");
|
labDate.Text = DateTime.Now.ToString("yyyy年MM月dd日");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void txtOrderNo_DoubleClick(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -222,14 +222,14 @@ namespace AIMS.OremrUserControl
|
|||||||
app.CloseFront = this.CloseFront;
|
app.CloseFront = this.CloseFront;
|
||||||
app.CloseLast = this.CloseLast;
|
app.CloseLast = this.CloseLast;
|
||||||
app.SkinCloseLast = this.SkinCloseLast;
|
app.SkinCloseLast = this.SkinCloseLast;
|
||||||
if (app.Id == null)
|
//if (app.Id == null)
|
||||||
{
|
//{
|
||||||
this.Id = BApplianceRecord.Insert(app);
|
// this.Id = BApplianceRecord.Insert(app);
|
||||||
}
|
//}
|
||||||
else
|
//else
|
||||||
{
|
//{
|
||||||
BApplianceRecord.Update(app);
|
// BApplianceRecord.Update(app);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void txt_Leave(object sender, EventArgs e)
|
private void txt_Leave(object sender, EventArgs e)
|
||||||
|
|||||||
@ -22,7 +22,7 @@ namespace AIMS.PublicUI.UI
|
|||||||
{
|
{
|
||||||
ControlExtension.SetDgvAttribute(dgvOperationPosition);
|
ControlExtension.SetDgvAttribute(dgvOperationPosition);
|
||||||
this.txtHelpCode.Text = "简拼/汉字/ICD码";
|
this.txtHelpCode.Text = "简拼/汉字/ICD码";
|
||||||
dgvOperationPosition.DataSource = BOperationPosition.GetDataTable("IsValid =1");
|
dgvOperationPosition.DataSource = BOperationPosition.GetDataTable();
|
||||||
dgvOperationPosition.Select();
|
dgvOperationPosition.Select();
|
||||||
|
|
||||||
|
|
||||||
@ -35,8 +35,7 @@ namespace AIMS.PublicUI.UI
|
|||||||
dgvOperationPosition.Rows[i].Cells["CheckBoxColumn"].Value = true;
|
dgvOperationPosition.Rows[i].Cells["CheckBoxColumn"].Value = true;
|
||||||
for (int J = 0; J < dgvOperationPosition.Rows[i].Cells.Count; J++)
|
for (int J = 0; J < dgvOperationPosition.Rows[i].Cells.Count; J++)
|
||||||
{
|
{
|
||||||
dgvOperationPosition.Rows[i].Cells[J].Style.ForeColor = Color.Red;
|
dgvOperationPosition.Rows[i].Cells[J].Style.ForeColor = Color.Red;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -46,7 +45,7 @@ namespace AIMS.PublicUI.UI
|
|||||||
|
|
||||||
private void btnOk_Click(object sender, EventArgs e)
|
private void btnOk_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// SelectOperationPositionData.Clear();
|
//SelectOperationPositionData.Clear();
|
||||||
//for (int i = 0; i < dgvOperationPosition.Rows.Count; i++)
|
//for (int i = 0; i < dgvOperationPosition.Rows.Count; i++)
|
||||||
//{
|
//{
|
||||||
// if (Convert.ToBoolean(dgvOperationPosition.Rows[i].Cells["CheckBoxColumn"].EditedFormattedValue) == true)
|
// if (Convert.ToBoolean(dgvOperationPosition.Rows[i].Cells["CheckBoxColumn"].EditedFormattedValue) == true)
|
||||||
|
|||||||
@ -29,19 +29,33 @@ namespace AIMSBLL
|
|||||||
}
|
}
|
||||||
BOperationRecord.SelectSingle(PatientId, RecoverId, ref _record);
|
BOperationRecord.SelectSingle(PatientId, RecoverId, ref _record);
|
||||||
|
|
||||||
_record.InstrumentList = BOperationRecordInstrumentList.SelectSingle(" OperationRecordId=" + Convert.ToInt32(_record.Id), null);
|
List<OperationRecordInstrumentList> InstrumentLists = BOperationRecordInstrumentList.Select(" OperationRecordId=" + Convert.ToInt32(_record.Id), null);
|
||||||
if (_record.InstrumentList != null)
|
if (InstrumentLists != null && InstrumentLists.Count > 0)
|
||||||
{
|
{
|
||||||
|
_record.InstrumentList = InstrumentLists[0];
|
||||||
|
//if (_record.InstrumentList != null)
|
||||||
|
//{
|
||||||
_record.InstrumentList.ApplianceRecordList = BApplianceRecord.GetApplianceRecordById(Convert.ToInt32(_record.Id), Convert.ToInt32(_record.InstrumentList.Id));
|
_record.InstrumentList.ApplianceRecordList = BApplianceRecord.GetApplianceRecordById(Convert.ToInt32(_record.Id), Convert.ToInt32(_record.InstrumentList.Id));
|
||||||
|
//}
|
||||||
|
//else
|
||||||
|
//{
|
||||||
|
// _record.InstrumentList = new OperationRecordInstrumentList();
|
||||||
|
// _record.InstrumentList.OperationRecordId = _record.Id;
|
||||||
|
// _record.InstrumentList.OperatorNo = PublicMethod.OperatorNo;
|
||||||
|
// _record.InstrumentList.OperatorName = PublicMethod.OperatorName;
|
||||||
|
// _record.InstrumentList.Id = BOperationRecordInstrumentList.Insert(_record.InstrumentList);
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
else
|
if (InstrumentLists != null && InstrumentLists.Count > 1)
|
||||||
{
|
{
|
||||||
_record.InstrumentList = new OperationRecordInstrumentList();
|
_record.InstrumentList2 = InstrumentLists[1];
|
||||||
_record.InstrumentList.OperationRecordId = _record.Id;
|
//if (_record.InstrumentList2 != null)
|
||||||
_record.InstrumentList.OperatorNo = PublicMethod.OperatorNo;
|
//{
|
||||||
_record.InstrumentList.OperatorName = PublicMethod.OperatorName;
|
_record.InstrumentList2.ApplianceRecordList = BApplianceRecord.GetApplianceRecordById(Convert.ToInt32(_record.Id), Convert.ToInt32(_record.InstrumentList2.Id));
|
||||||
_record.InstrumentList.Id = BOperationRecordInstrumentList.Insert(_record.InstrumentList);
|
//}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_record.InRoomTime != null)
|
if (_record.InRoomTime != null)
|
||||||
_record.OperationDate = _record.InRoomTime.Value.ToShortDateString();
|
_record.OperationDate = _record.InRoomTime.Value.ToShortDateString();
|
||||||
|
|
||||||
@ -61,6 +75,7 @@ namespace AIMSBLL
|
|||||||
_record.Name = OperationFrontdt.Rows[0]["PatientName"].ToString();
|
_record.Name = OperationFrontdt.Rows[0]["PatientName"].ToString();
|
||||||
_record.Sex = OperationFrontdt.Rows[0]["Sex"].ToString();
|
_record.Sex = OperationFrontdt.Rows[0]["Sex"].ToString();
|
||||||
_record.Age = OperationFrontdt.Rows[0]["Age"].ToString();
|
_record.Age = OperationFrontdt.Rows[0]["Age"].ToString();
|
||||||
|
//_record.Address = OperationFrontdt.Rows[0]["Address"].ToString();
|
||||||
if (OperationFrontdt.Rows[0]["Height"].ToString() != "")
|
if (OperationFrontdt.Rows[0]["Height"].ToString() != "")
|
||||||
{
|
{
|
||||||
double Height = 0;
|
double Height = 0;
|
||||||
@ -86,7 +101,7 @@ namespace AIMSBLL
|
|||||||
{
|
{
|
||||||
_record.Weight = OperationFrontdt.Rows[0]["Weight"].ToString();
|
_record.Weight = OperationFrontdt.Rows[0]["Weight"].ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_record.Applydiagnose = OperationFrontdt.Rows[0]["ApplyDiagnoseInfoId"].ToString();
|
_record.Applydiagnose = OperationFrontdt.Rows[0]["ApplyDiagnoseInfoId"].ToString();
|
||||||
_record.Applyoperation = OperationFrontdt.Rows[0]["ApplyOperationInfoId"].ToString();
|
_record.Applyoperation = OperationFrontdt.Rows[0]["ApplyOperationInfoId"].ToString();
|
||||||
_record.OperationType = OperationFrontdt.Rows[0]["OperationType"].ToString();
|
_record.OperationType = OperationFrontdt.Rows[0]["OperationType"].ToString();
|
||||||
|
|||||||
@ -684,7 +684,7 @@ namespace AIMSDAL
|
|||||||
public static List<ApplianceRecord> GetApplianceRecordById(int opeRId, int opeGRId)
|
public static List<ApplianceRecord> GetApplianceRecordById(int opeRId, int opeGRId)
|
||||||
{
|
{
|
||||||
List<ApplianceRecord> applianceRecordList = new List<ApplianceRecord>();
|
List<ApplianceRecord> applianceRecordList = new List<ApplianceRecord>();
|
||||||
string sql = "select * from ApplianceRecord where OperationRecordId=" + opeRId + " or OperationGoodsBillRecord = " + opeGRId;
|
string sql = "select * from ApplianceRecord where OperationRecordId=" + opeRId + " and OperationGoodsBillRecord = " + opeGRId;
|
||||||
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
|
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
|
||||||
{
|
{
|
||||||
if (conn.State != ConnectionState.Open)
|
if (conn.State != ConnectionState.Open)
|
||||||
|
|||||||
@ -252,7 +252,7 @@ namespace AIMSDAL
|
|||||||
"of1.VerifyTime, of1.VerifyOperatorName," +
|
"of1.VerifyTime, of1.VerifyOperatorName," +
|
||||||
"of1.PlanOperationTime, of1.OperationRoom, of1.AnesthesiaDoctor," +
|
"of1.PlanOperationTime, of1.OperationRoom, of1.AnesthesiaDoctor," +
|
||||||
"of1.InstrumentNurse, of1.TourNurse, of1.AnesthesiaDoctorSucceed," +
|
"of1.InstrumentNurse, of1.TourNurse, of1.AnesthesiaDoctorSucceed," +
|
||||||
"of1.InstrumentNurseSucceed, of1.TourNurseSucceed,of1.ASA,of1.HeartFunctionLevel,of1.IsFasting, of1.Remark,ApplyDiagnoseInfoId,ApplyOperationInfoId ,of1.PlanOrder,of1.OperationRoomId ,of1.MedicalRecord,of1.PatientType,of1.HISPatientId,of1.VisitTimes " +
|
"of1.InstrumentNurseSucceed, of1.TourNurseSucceed,of1.ASA,of1.HeartFunctionLevel,of1.IsFasting, of1.Remark,ApplyDiagnoseInfoId,ApplyOperationInfoId ,of1.PlanOrder,of1.OperationRoomId ,of1.MedicalRecord,of1.PatientType,of1.HISPatientId,of1.VisitTimes " +//,of1.Address
|
||||||
"FROM V_OperationFront of1 WHERE of1.PatientId='" + PatientId + "'";
|
"FROM V_OperationFront of1 WHERE of1.PatientId='" + PatientId + "'";
|
||||||
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
|
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
|
||||||
}
|
}
|
||||||
|
|||||||
@ -309,6 +309,40 @@ namespace DrawGraph
|
|||||||
}
|
}
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
public static int AddOperation(OperationRecord _operationRecord, List<int> Operation)
|
||||||
|
{
|
||||||
|
int i = 0;
|
||||||
|
if (Operation==null || Operation.Count<=0)
|
||||||
|
{
|
||||||
|
DeleteOperation(_operationRecord.PatientId.Value);
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DeleteOperation(_operationRecord.PatientId.Value);
|
||||||
|
i++;
|
||||||
|
foreach (int OperationId in Operation )
|
||||||
|
{
|
||||||
|
StringBuilder strSql = new StringBuilder();
|
||||||
|
strSql.Append("insert into [FactOperationInfo](");
|
||||||
|
strSql.Append("PatientId,ApplyId,OperationId,OperatorNo,OperatorName,OperateDate,OperationName,LeftRemark,RightRemark");
|
||||||
|
strSql.Append(")");
|
||||||
|
strSql.Append(" values (");
|
||||||
|
strSql.Append("" + _operationRecord.PatientId + ",");
|
||||||
|
strSql.Append("" + _operationRecord.OperationApplyId + ",");
|
||||||
|
strSql.Append("" + OperationId + ",");
|
||||||
|
strSql.Append("'" + AIMSExtension.PublicMethod.OperatorNo + "',");
|
||||||
|
strSql.Append("'" + AIMSExtension.PublicMethod.OperatorName + "',");
|
||||||
|
strSql.Append("'" + DateTime.Now + "',");
|
||||||
|
strSql.Append("'',");//" + FactOperationInfoObj.OperationName + "
|
||||||
|
strSql.Append("'',");//" + FactOperationInfoObj.LeftRemark + "
|
||||||
|
strSql.Append("''");//" + FactOperationInfoObj.RightRemark + "
|
||||||
|
strSql.Append(")");
|
||||||
|
i += HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return i;
|
||||||
|
}
|
||||||
public static int AddApplyOperation(OperationRecord _operationRecord, string Operation)
|
public static int AddApplyOperation(OperationRecord _operationRecord, string Operation)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
@ -438,6 +472,37 @@ namespace DrawGraph
|
|||||||
}
|
}
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
public static int AddOperationPosition(OperationRecord _operationRecord, List<int> OperationPositionIds )
|
||||||
|
{
|
||||||
|
int i = 0;
|
||||||
|
if ( OperationPositionIds==null || OperationPositionIds.Count<=0)
|
||||||
|
{
|
||||||
|
DeleteOperationPosition (_operationRecord.PatientId.Value);
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DeleteOperationPosition(_operationRecord.PatientId.Value);
|
||||||
|
i++;
|
||||||
|
foreach (int OperationPosition in OperationPositionIds )
|
||||||
|
{
|
||||||
|
StringBuilder strSql = new StringBuilder();
|
||||||
|
strSql.Append("insert into [FactOperationPosition](");
|
||||||
|
strSql.Append("PatientId,ApplyId,OperationPositionId,OperatorNo,OperatorName,OperateDate");
|
||||||
|
strSql.Append(")");
|
||||||
|
strSql.Append(" values (");
|
||||||
|
strSql.Append("" + _operationRecord.PatientId + ",");
|
||||||
|
strSql.Append("" + _operationRecord.OperationApplyId + ",");
|
||||||
|
strSql.Append("" + OperationPosition + ",");
|
||||||
|
strSql.Append("'" + AIMSExtension.PublicMethod.OperatorNo + "',");
|
||||||
|
strSql.Append("'" + AIMSExtension.PublicMethod.OperatorName + "',");
|
||||||
|
strSql.Append("'" + DateTime.Now + "'");
|
||||||
|
strSql.Append(")");
|
||||||
|
i += HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return i;
|
||||||
|
}
|
||||||
public static int AddAnaesthesiaMethod(OperationRecord _operationRecord, string AnaesthesiaMethod)
|
public static int AddAnaesthesiaMethod(OperationRecord _operationRecord, string AnaesthesiaMethod)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|||||||
@ -66,6 +66,21 @@ namespace DrawGraph
|
|||||||
private void SetApplianceMethod(List<ApplianceRecord> ApplianceRecordList)
|
private void SetApplianceMethod(List<ApplianceRecord> ApplianceRecordList)
|
||||||
{
|
{
|
||||||
if (tablePackObj == null) return;
|
if (tablePackObj == null) return;
|
||||||
|
if (myOpeRecord != null && myOpeRecord.Id != null)
|
||||||
|
{
|
||||||
|
//if (myOpeRecord.InstrumentList.InstrumentNurse != null && myOpeRecord.InstrumentList.InstrumentNurse != "")
|
||||||
|
//{
|
||||||
|
// template.SetObjValue(myOpeRecord, "OperationRecord.InstrumentList.InstrumentNurse", myOpeRecord.InstrumentList.InstrumentNurse, myOpeRecord.InstrumentList.InstrumentNurse);
|
||||||
|
//}
|
||||||
|
//if (myOpeRecord.InstrumentList.TourNurse != null && myOpeRecord.InstrumentList.TourNurse != "")
|
||||||
|
//{
|
||||||
|
// template.SetObjValue(myOpeRecord, "OperationRecord.InstrumentList.TourNurse", myOpeRecord.InstrumentList.TourNurse, myOpeRecord.InstrumentList.TourNurse);
|
||||||
|
//}
|
||||||
|
if (myOpeRecord.InstrumentList.Remark != null)
|
||||||
|
{
|
||||||
|
template.SetObjValue(myOpeRecord, "OperationRecord.InstrumentList.Remark", myOpeRecord.InstrumentList.Remark, myOpeRecord.InstrumentList.Remark);
|
||||||
|
}
|
||||||
|
}
|
||||||
int Columns = int.Parse(tablePackObj1.Columns.ToString());
|
int Columns = int.Parse(tablePackObj1.Columns.ToString());
|
||||||
double span = tablePackObj.RealX - 0.005;
|
double span = tablePackObj.RealX - 0.005;
|
||||||
double span2 = tablePackObj.RealX * 0.3;
|
double span2 = tablePackObj.RealX * 0.3;
|
||||||
|
|||||||
@ -31,6 +31,7 @@ namespace DrawGraph
|
|||||||
private string contacts;
|
private string contacts;
|
||||||
private string contactsPhone;
|
private string contactsPhone;
|
||||||
private string age;
|
private string age;
|
||||||
|
private string address ;
|
||||||
|
|
||||||
|
|
||||||
[ClassAttributs(Description = "HIS编号")]
|
[ClassAttributs(Description = "HIS编号")]
|
||||||
@ -165,6 +166,13 @@ namespace DrawGraph
|
|||||||
set { contactsPhone = value; }
|
set { contactsPhone = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[ClassAttributs(Description = "地址")]
|
||||||
|
public string Address
|
||||||
|
{
|
||||||
|
get { return address; }
|
||||||
|
set { address = value; }
|
||||||
|
}
|
||||||
|
|
||||||
//申请信息
|
//申请信息
|
||||||
private string patientType;
|
private string patientType;
|
||||||
private int? applyDepartmentId;
|
private int? applyDepartmentId;
|
||||||
@ -1172,6 +1180,7 @@ namespace DrawGraph
|
|||||||
private OperationRecoverInInfo opeRecoverInInfo;
|
private OperationRecoverInInfo opeRecoverInInfo;
|
||||||
private OperationRecoverOutInfo opeRecoverOutInfo;
|
private OperationRecoverOutInfo opeRecoverOutInfo;
|
||||||
private OperationRecordInstrumentList instrumentList;
|
private OperationRecordInstrumentList instrumentList;
|
||||||
|
private OperationRecordInstrumentList instrumentList2;
|
||||||
|
|
||||||
public List<string> EventListstr = new List<string>();
|
public List<string> EventListstr = new List<string>();
|
||||||
public List<string> DrugsListstr = new List<string>();
|
public List<string> DrugsListstr = new List<string>();
|
||||||
@ -1335,6 +1344,18 @@ namespace DrawGraph
|
|||||||
instrumentList = value;
|
instrumentList = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
[NoCreatControlAttributs]
|
||||||
|
public OperationRecordInstrumentList InstrumentList2
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return instrumentList2;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
instrumentList2 = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public OperationRecord()
|
public OperationRecord()
|
||||||
{
|
{
|
||||||
@ -1358,6 +1379,7 @@ namespace DrawGraph
|
|||||||
OpeRecoverInInfo = new OperationRecoverInInfo();
|
OpeRecoverInInfo = new OperationRecoverInInfo();
|
||||||
OpeRecoverOutInfo = new OperationRecoverOutInfo();
|
OpeRecoverOutInfo = new OperationRecoverOutInfo();
|
||||||
InstrumentList = new OperationRecordInstrumentList();
|
InstrumentList = new OperationRecordInstrumentList();
|
||||||
|
InstrumentList2 = new OperationRecordInstrumentList();
|
||||||
FactBloodGasAnalysisList = new List<FactBloodGasAnalysis>();
|
FactBloodGasAnalysisList = new List<FactBloodGasAnalysis>();
|
||||||
SelPhysioConfig = null;
|
SelPhysioConfig = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user