diff --git a/AIMS.sln b/AIMS.sln
index 200f0aa..9d4c887 100644
--- a/AIMS.sln
+++ b/AIMS.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 16
-VisualStudioVersion = 16.0.31424.327
+# Visual Studio Version 17
+VisualStudioVersion = 17.3.32819.101
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocumentManagement", "DocumentManagement\DocumentManagement.csproj", "{80E69D05-8436-4342-B0B1-5ADAA8E83D41}"
EndProject
diff --git a/AIMS/AIMS.csproj b/AIMS/AIMS.csproj
index 27e0282..cb8ab37 100644
--- a/AIMS/AIMS.csproj
+++ b/AIMS/AIMS.csproj
@@ -98,6 +98,10 @@
+
+ False
+ D:\OREMR\oremr_new8 - 副本\KHD_OREMRReport\bin\Debug\WLibGPClass.dll
+
@@ -298,8 +302,6 @@
frmSeleteRoom.cs
-
-
Form
@@ -324,16 +326,16 @@
frmSafetyExamine.cs
-
+
Form
-
+
frmAnasRecoverBillNew.cs
-
+
Form
-
+
frmRecoverPatient.cs
@@ -421,49 +423,49 @@
PrescriptionDocument.cs
-
+
Component
-
+
Form
-
+
frmSchedulePlan2.cs
-
+
Form
-
+
frmSchedulePlan.cs
-
+
Form
-
+
frmPrintingArrangemen.cs
-
+
Form
-
+
FrmScheduling2.cs
-
+
Form
-
+
FrmScheduling2Option.cs
-
+
Form
-
+
frmSelectiveOperationsPrint.cs
-
+
Component
-
+
Component
@@ -582,50 +584,14 @@
frmSelectOperationOne.cs
-
-
Form
frmOperationReview.cs
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Form
@@ -638,94 +604,67 @@
frmSelectPatientNew.cs
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
Form
-
+
frmApplyConfigSet.cs
-
+
Form
-
+
frmExeOperationPlan.cs
-
+
Form
-
+
frmOperationApply.cs
-
+
Form
-
+
frmOperationApplyDetail.cs
-
+
Form
-
+
frmOperationFrontVisit.cs
-
+
Form
-
+
frmOperationPlan.cs
-
+
Form
-
+
frmOperationPlanDetail.cs
-
+
Form
-
+
Form
-
+
frmPlanOrder.cs
-
+
Form
-
+
frmPlanPatientInfo.cs
-
+
Form
-
+
frmStopOperation.cs
@@ -1142,11 +1081,11 @@
frmSafetyExamine.cs
-
+
frmAnasRecoverBillNew.cs
Designer
-
+
frmRecoverPatient.cs
@@ -1191,22 +1130,22 @@
PrescriptionDocument.cs
-
+
frmSchedulePlan2.cs
-
+
frmSchedulePlan.cs
-
+
frmPrintingArrangemen.cs
-
+
FrmScheduling2.cs
-
+
FrmScheduling2Option.cs
-
+
frmSelectiveOperationsPrint.cs
@@ -1270,37 +1209,37 @@
frmSelectPatientNew.cs
-
+
frmApplyConfigSet.cs
-
+
frmExeOperationPlan.cs
-
+
frmOperationApply.cs
-
+
frmOperationApplyDetail.cs
-
+
frmOperationFrontVisit.cs
-
+
frmOperationPlan.cs
-
+
frmOperationPlanDetail.cs
-
+
frmOperationSchedulePlan.cs
-
+
frmPlanOrder.cs
-
+
frmPlanPatientInfo.cs
-
+
frmStopOperation.cs
diff --git a/AIMS/DataDictionary/frmBasicDictionary.cs b/AIMS/DataDictionary/frmBasicDictionary.cs
index 5ecc0fa..afbf938 100644
--- a/AIMS/DataDictionary/frmBasicDictionary.cs
+++ b/AIMS/DataDictionary/frmBasicDictionary.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -12,8 +14,8 @@ namespace DataDictionary.UI
public partial class frmBasicDictionary : Form
{
public AIMSExtension.EditState _state;
- public List BasicDictionaryObjList;
- // private Model.BasicDictionary BasicDictionaryRowData;
+ public List BasicDictionaryObjList;
+ // private BasicDictionary BasicDictionaryRowData;
public frmBasicDictionary()
{
InitializeComponent();
@@ -21,8 +23,8 @@ namespace DataDictionary.UI
private void frmBasicDictionary_Load(object sender, EventArgs e)
{
- BasicDictionaryObjList = BLL.DataDictionary.GetModelParentList();
- BasicDictionaryObjList.Insert(0, new Model.BasicDictionary { Id = -1, Name = "无", ParentId = 0 });
+ BasicDictionaryObjList = BBasicDictionary.GetModelParentList();
+ BasicDictionaryObjList.Insert(0, new BasicDictionary { Id = -1, Name = "无", ParentId = 0 });
this.treeView1.BackColor = System.Drawing.Color.Snow;
AIMSExtension.PublicMethod.SetDgvAttribute(dgvBasicDictionary);
this.cboParent.DataSource = BasicDictionaryObjList;
@@ -39,18 +41,18 @@ namespace DataDictionary.UI
private void InitTreeView()
{
treeView1.Nodes.Clear();
- List BasicDictionaryList = new List();
- Model.BasicDictionary BasicDictionaryObj = new Model.BasicDictionary();
+ List BasicDictionaryList = new List();
+ BasicDictionary BasicDictionaryObj = new BasicDictionary();
- BasicDictionaryList = BLL.DataDictionary.GetModelList(0);
+ BasicDictionaryList = BBasicDictionary.GetModelList(0);
for (int i = 0; i < BasicDictionaryList.Count; i++)
{
- BasicDictionaryObj = BLL.DataDictionary.GetModel(BasicDictionaryList[i].Id);
+ BasicDictionaryObj = BBasicDictionary.GetModel(BasicDictionaryList[i].Id.Value);
TreeNode Node = treeView1.Nodes.Add(BasicDictionaryObj.Id.ToString(), BasicDictionaryObj.Name);
BuildChildNode(BasicDictionaryObj, Node);
}
}
- private void BuildChildNode(Model.BasicDictionary BasicDictionaryObj, TreeNode ParentNode)
+ private void BuildChildNode(BasicDictionary BasicDictionaryObj, TreeNode ParentNode)
{
for (int i = 0; i < BasicDictionaryObj.Children.Count; i++)
{
@@ -114,7 +116,7 @@ namespace DataDictionary.UI
private void tsbSava_Click(object sender, EventArgs e)
{
- Model.BasicDictionary BasicDictionaryObj = new Model.BasicDictionary();
+ BasicDictionary BasicDictionaryObj = new BasicDictionary();
if (ValidInput())
{
BasicDictionaryObj.Name = txtName.Text.Trim();
@@ -137,14 +139,14 @@ namespace DataDictionary.UI
BasicDictionaryObj.Remark = txtRemark.Text.Trim();
if (_state == AIMSExtension.EditState.ADD)
{
- BLL.DataDictionary.Add(BasicDictionaryObj);
+ BBasicDictionary.Add(BasicDictionaryObj);
}
if (_state == AIMSExtension.EditState.EDIT)
{
if (dgvBasicDictionary.Rows.Count > 0)
{
BasicDictionaryObj.Id = int.Parse(dgvBasicDictionary.CurrentRow.Cells["Id"].Value.ToString());
- BLL.DataDictionary.Update(BasicDictionaryObj);
+ BBasicDictionary.Update(BasicDictionaryObj);
}
}
}
@@ -153,7 +155,7 @@ namespace DataDictionary.UI
AIMSExtension.PublicMethod.ClearControl(panel4);
intOrder.Text = "0";
- dgvBasicDictionary.DataSource = BLL.DataDictionary.GetDataDictionaryDataTable(BasicDictionaryObj.ParentId);
+ dgvBasicDictionary.DataSource = BBasicDictionary.GetDataDictionaryDataTable(BasicDictionaryObj.ParentId.Value.ToString());
InitTreeView();
}
@@ -191,7 +193,7 @@ namespace DataDictionary.UI
if (this.treeView1.SelectedNode.Level == 1)
{
- dgvBasicDictionary.DataSource = BLL.DataDictionary.GetDataDictionaryDataTable(int.Parse(treeView1.SelectedNode.Parent.Name));
+ dgvBasicDictionary.DataSource = BBasicDictionary.GetDataDictionaryDataTable(int.Parse(treeView1.SelectedNode.Parent.Name));
}
}
}
diff --git a/AIMS/DataDictionary/frmDisease.cs b/AIMS/DataDictionary/frmDisease.cs
index 2dcfe13..105c903 100644
--- a/AIMS/DataDictionary/frmDisease.cs
+++ b/AIMS/DataDictionary/frmDisease.cs
@@ -6,6 +6,8 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
+using AIMSBLL;
+using AIMSModel;
using HelperDB;
namespace DataDictionary.UI
@@ -25,7 +27,7 @@ namespace DataDictionary.UI
AIMSExtension.PublicMethod.EnabledControl(panel1, false);
AIMSExtension.PublicMethod.ClearControl(panel1);
_state = AIMSExtension.EditState.BROWSE;
- dgvDisease.DataSource = DataDictionary.BLL.Disease.GetDataTable();
+ dgvDisease.DataSource = BDisease.GetDataTable();
}
private void tsbAdd_Click(object sender, EventArgs e)
@@ -84,7 +86,7 @@ namespace DataDictionary.UI
{
if (this.ValidInput())
{
- Model.Disease DiseaseObj = new Model.Disease();
+ Disease DiseaseObj = new Disease();
DiseaseObj.Name = txtName.Text.Trim();
DiseaseObj.IcdCode = txtICDcode.Text.Trim();
DiseaseObj.HelpCode = txtHelpCode.Text;
@@ -94,23 +96,23 @@ namespace DataDictionary.UI
DiseaseObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
if (_state == AIMSExtension.EditState.ADD)
{
- if (BLL.Disease.IsExit(txtName.Text.Trim()))
+ if (BDisease.IsExit(txtName.Text.Trim()))
{
MessageBox.Show("该事件已存在");
return;
}
- BLL.Disease.Add(DiseaseObj);
+ BDisease.Add(DiseaseObj);
}
if (_state == AIMSExtension.EditState.EDIT)
{
DiseaseObj.Id = SelectDiseaseRowId;
- BLL.Disease.Update(DiseaseObj);
+ BDisease.Update(DiseaseObj);
}
}
_state = AIMSExtension.EditState.BROWSE;
AIMSExtension.PublicMethod.EnabledControl(panel1, false);
AIMSExtension.PublicMethod.ClearControl(panel1);
- dgvDisease.DataSource = DataDictionary.BLL.Disease.GetDataTable();
+ dgvDisease.DataSource = BDisease.GetDataTable();
}
private void tsbExit_Click(object sender, EventArgs e)
diff --git a/AIMS/DataDictionary/frmDrugs.cs b/AIMS/DataDictionary/frmDrugs.cs
index 1b8e554..5198d54 100644
--- a/AIMS/DataDictionary/frmDrugs.cs
+++ b/AIMS/DataDictionary/frmDrugs.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -21,7 +23,7 @@ namespace DataDictionary.UI
{
AIMSExtension.PublicMethod.SetDgvAttribute(dgv);
AIMSExtension.PublicMethod.EnabledControl(panel4, false);
- cboDosageUnit.DataSource = BLL.Drugs.GetDosageUnitDataTable(1);
+ cboDosageUnit.DataSource = BDrugs.GetDosageUnitDataTable(1);
cboDosageUnit.DisplayMember = "Name";
cboDosageUnit.ValueMember = "Id";
cboDosageUnit.SelectedIndex = -1;
@@ -77,7 +79,7 @@ namespace DataDictionary.UI
return;
}
- Model.Drugs DrugsObj = new Model.Drugs();
+ Drugs DrugsObj = new Drugs();
DrugsObj.Name = txtName.Text.Trim();
DrugsObj.HelpCode = txtHelpCode.Text.Trim();
DrugsObj.DrugKind = cboDrugKind.Text;
@@ -98,12 +100,12 @@ namespace DataDictionary.UI
}
if (_state == AIMSExtension.EditState.ADD)
{
- BLL.Drugs.Add(DrugsObj);
+ BDrugs.Add(DrugsObj);
}
if (_state == AIMSExtension.EditState.EDIT)
{
DrugsObj.Id = SelectDrugsRowId;
- BLL.Drugs.Update(DrugsObj);
+ BDrugs.Update(DrugsObj);
}
_state = AIMSExtension.EditState.BROWSE;
@@ -124,7 +126,7 @@ namespace DataDictionary.UI
private void GetDrugsDataTable(string DrugKind)
{
dgv.Rows.Clear();
- DataTable dt = BLL.Drugs.GetDataTable(DrugKind);
+ DataTable dt = BDrugs.GetDataTable(DrugKind);
for (int i = 0; i < dt.Rows.Count; i++)
{
dgv.Rows.Add(dt.Rows[i]["Id"].ToString(),
diff --git a/AIMS/DataDictionary/frmEvents.cs b/AIMS/DataDictionary/frmEvents.cs
index 4afde56..89fc4ee 100644
--- a/AIMS/DataDictionary/frmEvents.cs
+++ b/AIMS/DataDictionary/frmEvents.cs
@@ -6,6 +6,8 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
+using AIMSBLL;
+using AIMSModel;
using HelperDB;
namespace DataDictionary.UI
@@ -26,7 +28,7 @@ namespace DataDictionary.UI
AIMSExtension.PublicMethod.EnabledControl(panel1, false);
AIMSExtension.PublicMethod.ClearControl(panel1);
_state = AIMSExtension.EditState.BROWSE;
- dgvEventsKind.DataSource = DataDictionary.BLL.Events.GetDataTable();
+ dgvEventsKind.DataSource = BEvents.GetDataTable();
}
private void tsbAdd_Click(object sender, EventArgs e)
{
@@ -91,7 +93,7 @@ namespace DataDictionary.UI
if (this.ValidInput())
{
- Model.Events EventsObj = new Model.Events();
+ Events EventsObj = new Events();
EventsObj.Name = txtName.Text.Trim();
EventsObj.EventKind = cboEventKind.Text;
EventsObj.HelpCode = txtHelpCode.Text;
@@ -102,23 +104,23 @@ namespace DataDictionary.UI
EventsObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
if (_state == AIMSExtension.EditState.ADD)
{
- if (BLL.Events.IsExit(txtName.Text.Trim()))
+ if (BEvents.IsExit(txtName.Text.Trim()))
{
MessageBox.Show("该事件已存在");
return;
}
- BLL.Events.Add(EventsObj);
+ BEvents.Add(EventsObj);
}
if (_state == AIMSExtension.EditState.EDIT)
{
EventsObj.Id = SelectEventsKindRowId;
- BLL.Events.Update(EventsObj);
+ BEvents.Update(EventsObj);
}
}
_state = AIMSExtension.EditState.BROWSE;
AIMSExtension.PublicMethod.EnabledControl(panel1, false);
AIMSExtension.PublicMethod.ClearControl(panel1);
- dgvEventsKind.DataSource = DataDictionary.BLL.Events.GetDataTable();
+ dgvEventsKind.DataSource = BEvents.GetDataTable();
}
private void txtName_TextChanged(object sender, EventArgs e)
{
diff --git a/AIMS/DataDictionary/frmMedicalItemKind.cs b/AIMS/DataDictionary/frmMedicalItemKind.cs
index deeeff7..793ef46 100644
--- a/AIMS/DataDictionary/frmMedicalItemKind.cs
+++ b/AIMS/DataDictionary/frmMedicalItemKind.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -67,7 +69,7 @@ namespace DataDictionary.UI
{
if (this.ValidInput())
{
- Model.MedicalItemKind MedicalItemKindObj = new Model.MedicalItemKind();
+ MedicalItemKind MedicalItemKindObj = new MedicalItemKind();
MedicalItemKindObj.Name = txtName.Text.Trim();
if(cboIsMed.Text =="药品")
{
@@ -86,12 +88,12 @@ namespace DataDictionary.UI
if (_state == AIMSExtension.EditState.ADD)
{
- BLL.MedicalItemKind.Add(MedicalItemKindObj);
+ BMedicalItemKind.Add(MedicalItemKindObj);
}
if (_state == AIMSExtension.EditState.EDIT)
{
MedicalItemKindObj.Id = SelectMedicalItemKindRowId;
- BLL.MedicalItemKind.Update(MedicalItemKindObj);
+ BMedicalItemKind.Update(MedicalItemKindObj);
}
}
_state = AIMSExtension.EditState.BROWSE;
@@ -102,7 +104,7 @@ namespace DataDictionary.UI
private void GetMedicalItemKindDataTable()
{
dgvMedicalItemKind.Rows.Clear();
- DataTable dt = BLL.MedicalItemKind.GetDataTable();
+ DataTable dt = BMedicalItemKind.GetDataTable();
for (int i = 0; i < dt.Rows.Count; i++)
{
dgvMedicalItemKind.Rows.Add(dt.Rows[i]["Id"].ToString(),
diff --git a/AIMS/DataDictionary/frmOperation.cs b/AIMS/DataDictionary/frmOperation.cs
index 1c76fee..d981d83 100644
--- a/AIMS/DataDictionary/frmOperation.cs
+++ b/AIMS/DataDictionary/frmOperation.cs
@@ -6,6 +6,8 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
+using AIMSBLL;
+using AIMSModel;
using HelperDB;
namespace DataDictionary.UI
@@ -24,7 +26,7 @@ namespace DataDictionary.UI
AIMSExtension.PublicMethod.EnabledControl(panel1, false);
AIMSExtension.PublicMethod.ClearControl(panel1);
_state = AIMSExtension.EditState.BROWSE;
- dgvOperation.DataSource = DataDictionary.BLL.Operation.GetDataTable();
+ dgvOperation.DataSource = BOperation.GetDataTable();
}
private void tsbAdd_Click(object sender, EventArgs e)
{
@@ -75,7 +77,7 @@ namespace DataDictionary.UI
{
if (this.ValidInput())
{
- Model.Operation OperationObj = new Model.Operation();
+ Operation OperationObj = new Operation();
OperationObj.Name = txtName.Text.Trim();
OperationObj.IcdCode = txtICDcode.Text.Trim();
OperationObj.HelpCode = txtHelpCode.Text;
@@ -85,23 +87,23 @@ namespace DataDictionary.UI
OperationObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
if (_state == AIMSExtension.EditState.ADD)
{
- if (BLL.Operation.IsExit(txtName.Text.Trim()))
+ if (BOperation.IsExit(txtName.Text.Trim()))
{
MessageBox.Show("该事件已存在");
return;
}
- BLL.Operation.Add(OperationObj);
+ BOperation.Add(OperationObj);
}
if (_state == AIMSExtension.EditState.EDIT)
{
OperationObj.Id = SelectOperationRowId;
- BLL.Operation.Update(OperationObj);
+ BOperation.Update(OperationObj);
}
}
_state = AIMSExtension.EditState.BROWSE;
AIMSExtension.PublicMethod.EnabledControl(panel1, false);
AIMSExtension.PublicMethod.ClearControl(panel1);
- dgvOperation.DataSource = DataDictionary.BLL.Operation.GetDataTable();
+ dgvOperation.DataSource = BOperation.GetDataTable();
}
private void tsbCancel_Click(object sender, EventArgs e)
diff --git a/AIMS/DataDictionary/frmOutputLiquids.cs b/AIMS/DataDictionary/frmOutputLiquids.cs
index 6247422..ff08fd4 100644
--- a/AIMS/DataDictionary/frmOutputLiquids.cs
+++ b/AIMS/DataDictionary/frmOutputLiquids.cs
@@ -6,6 +6,8 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
+using AIMSBLL;
+using AIMSModel;
using HelperDB;
namespace DataDictionary.UI
@@ -24,7 +26,7 @@ namespace DataDictionary.UI
AIMSExtension.PublicMethod.EnabledControl(panel1, false);
AIMSExtension.PublicMethod.ClearControl(panel1);
_state = AIMSExtension.EditState.BROWSE;
- dgvOutputLiquids.DataSource = DataDictionary.BLL.OutputLiquids.GetDataTable();
+ dgvOutputLiquids.DataSource = BOutputLiquids.GetDataTable();
}
private void tsbAdd_Click(object sender, EventArgs e)
@@ -33,7 +35,7 @@ namespace DataDictionary.UI
AIMSExtension.PublicMethod.EnabledControl(panel1, true);
AIMSExtension.PublicMethod.ClearControl(panel1);
chkIsValid.Checked = true;
- if (BLL.OutputLiquids.IsExit(txtName.Text.Trim()))
+ if (BOutputLiquids.IsExit(txtName.Text.Trim()))
{
MessageBox.Show("该事件已存在");
return;
@@ -72,7 +74,7 @@ namespace DataDictionary.UI
{
if (this.ValidInput())
{
- Model.OutputLiquids OutputLiquidsObj = new Model.OutputLiquids();
+ OutputLiquids OutputLiquidsObj = new OutputLiquids();
OutputLiquidsObj.Name = txtName.Text.Trim();
OutputLiquidsObj.HelpCode = txtHelpCode.Text;
OutputLiquidsObj.IsValid = int.Parse(chkIsValid.Checked ? "1" : "0");
@@ -81,23 +83,23 @@ namespace DataDictionary.UI
OutputLiquidsObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
if (_state == AIMSExtension.EditState.ADD)
{
- if (BLL.OutputLiquids.IsExit(txtName.Text.Trim()))
+ if (BOutputLiquids.IsExit(txtName.Text.Trim()))
{
MessageBox.Show("该事件已存在");
return;
}
- BLL.OutputLiquids.Add(OutputLiquidsObj);
+ BOutputLiquids.Add(OutputLiquidsObj);
}
if (_state == AIMSExtension.EditState.EDIT)
{
OutputLiquidsObj.Id = SelectOutputLiquidsRowId;
- BLL.OutputLiquids.Update(OutputLiquidsObj);
+ BOutputLiquids.Update(OutputLiquidsObj);
}
}
_state = AIMSExtension.EditState.BROWSE;
AIMSExtension.PublicMethod.EnabledControl(panel1, false);
AIMSExtension.PublicMethod.ClearControl(panel1);
- dgvOutputLiquids.DataSource = DataDictionary.BLL.OutputLiquids.GetDataTable();
+ dgvOutputLiquids.DataSource = BOutputLiquids.GetDataTable();
}
private bool ValidInput()
{
diff --git a/AIMS/DataDictionary/frmPatientKind.cs b/AIMS/DataDictionary/frmPatientKind.cs
index a415ac1..f3131d8 100644
--- a/AIMS/DataDictionary/frmPatientKind.cs
+++ b/AIMS/DataDictionary/frmPatientKind.cs
@@ -6,6 +6,8 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
+using AIMSBLL;
+using AIMSModel;
using HelperDB;
namespace DataDictionary.UI
@@ -25,12 +27,12 @@ namespace DataDictionary.UI
AIMSExtension.PublicMethod.EnabledControl(panel1, false);
AIMSExtension.PublicMethod.ClearControl(panel1);
_state = AIMSExtension.EditState.BROWSE;
- dgvPatientKind.DataSource = DataDictionary.BLL.PatientKind.GetDataTable();
+ dgvPatientKind.DataSource = BPatientKind.GetDataTable();
}
private void tsbAdd_Click(object sender, EventArgs e)
{
_state = AIMSExtension.EditState.ADD;
- Model.PatientKind PatientKindObj = new Model.PatientKind();
+ PatientKind PatientKindObj = new PatientKind();
AIMSExtension.PublicMethod.EnabledControl(panel1, true);
AIMSExtension.PublicMethod.ClearControl(panel1);
chkIsValid.Checked = true;
@@ -67,7 +69,7 @@ namespace DataDictionary.UI
{
if (this.ValidInput())
{
- Model.PatientKind PatientKindObj = new Model.PatientKind();
+ PatientKind PatientKindObj = new PatientKind();
PatientKindObj.No = txtNo.Text.Trim();
PatientKindObj.Name = txtName.Text.Trim();
PatientKindObj.HelpCode = txtHelpCode.Text;
@@ -77,24 +79,24 @@ namespace DataDictionary.UI
PatientKindObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
if (_state == AIMSExtension.EditState.ADD)
{
- if (BLL.PatientKind.IsExit(txtNo.Text.Trim()))
+ if (BPatientKind.IsExit(txtNo.Text.Trim()))
{
MessageBox.Show("该事件已存在");
return;
}
- if (BLL.PatientKind.NameExit(txtName.Text.Trim()))
+ if (BPatientKind.NameExit(txtName.Text.Trim()))
{
MessageBox.Show("该事件已存在");
return;
}
- BLL.PatientKind.Add(PatientKindObj);
+ BPatientKind.Add(PatientKindObj);
}
if (_state == AIMSExtension.EditState.EDIT)
{
PatientKindObj.Id = SelectPatientKindRowId;
- BLL.PatientKind.Update(PatientKindObj);
+ BPatientKind.Update(PatientKindObj);
}
}
}
diff --git a/AIMS/DataDictionary/frmSysConfig.cs b/AIMS/DataDictionary/frmSysConfig.cs
index c801349..331025c 100644
--- a/AIMS/DataDictionary/frmSysConfig.cs
+++ b/AIMS/DataDictionary/frmSysConfig.cs
@@ -6,6 +6,8 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
+using AIMSBLL;
+using AIMSModel;
using HelperDB;
namespace DataDictionary.UI
@@ -24,7 +26,7 @@ namespace DataDictionary.UI
AIMSExtension.PublicMethod.EnabledControl(panel1, false);
AIMSExtension.PublicMethod.ClearControl(panel1);
_state = AIMSExtension.EditState.BROWSE;
- dgvSysConfig.DataSource = DataDictionary.BLL.SysConfig.GetDataTable();
+ dgvSysConfig.DataSource = BSysConfig.GetDataTable();
}
private void tsbAdd_Click(object sender, EventArgs e)
{
@@ -32,7 +34,7 @@ namespace DataDictionary.UI
AIMSExtension.PublicMethod.EnabledControl(panel1, true);
AIMSExtension.PublicMethod.ClearControl(panel1);
chkIsValid.Checked = true;
- if (BLL.SysConfig.IsExit(txtName.Text.Trim()))
+ if (BSysConfig.IsExit(txtName.Text.Trim()))
{
MessageBox.Show("该事件已存在");
return;
@@ -86,7 +88,7 @@ namespace DataDictionary.UI
{
if (this.ValidInput())
{
- Model.SysConfig SysConfigObj = new Model.SysConfig();
+ SysConfig SysConfigObj = new SysConfig();
SysConfigObj.Name = txtName.Text.Trim();
SysConfigObj.Value = txtValue.Text.Trim();
SysConfigObj.Note = txtNote.Text;
@@ -96,23 +98,23 @@ namespace DataDictionary.UI
SysConfigObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
if (_state == AIMSExtension.EditState.ADD)
{
- if (BLL.SysConfig.IsExit(txtName.Text.Trim()))
+ if (BSysConfig.IsExit(txtName.Text.Trim()))
{
MessageBox.Show("该事件已存在");
return;
}
- BLL.SysConfig.Add(SysConfigObj);
+ BSysConfig.Add(SysConfigObj);
}
if (_state == AIMSExtension.EditState.EDIT)
{
SysConfigObj.Id = SelectSysConfigRowId;
- BLL.SysConfig.Update(SysConfigObj);
+ BSysConfig.Update(SysConfigObj);
}
}
_state = AIMSExtension.EditState.BROWSE;
AIMSExtension.PublicMethod.EnabledControl(panel1, false);
AIMSExtension.PublicMethod.ClearControl(panel1);
- dgvSysConfig.DataSource = DataDictionary.BLL.SysConfig.GetDataTable();
+ dgvSysConfig.DataSource = BSysConfig.GetDataTable();
}
private void tsbExit_Click(object sender, EventArgs e)
diff --git a/AIMS/DocManager/frmDocument3.cs b/AIMS/DocManager/frmDocument3.cs
index 0d78c97..1dba00a 100644
--- a/AIMS/DocManager/frmDocument3.cs
+++ b/AIMS/DocManager/frmDocument3.cs
@@ -91,7 +91,7 @@ namespace AIMS.OperationAfter.UI
{
DateTime beginTime = Convert.ToDateTime(dtpSearchTime.Value.ToString("yyyy-MM-dd 00:00:00"));
DateTime endTime = Convert.ToDateTime(dtpSearchTime.Value.ToString("yyyy-MM-dd 23:59:59"));
- DataTable vPlanedOpeList = AIMS.OperationFront.BLL.OperationApply.GetOperationFrontDataTable(beginTime.ToString("yyyy-MM-dd 00:00:00"), endTime.ToString("yyyy-MM-dd 23:59:59"));
+ DataTable vPlanedOpeList = BOperationApply.GetOperationFrontDataTable(beginTime.ToString("yyyy-MM-dd 00:00:00"), endTime.ToString("yyyy-MM-dd 23:59:59"));
if (vPlanedOpeList.Rows.Count <= 0) return;
string roomname = "";
diff --git a/AIMS/DrugManagement/frmDosageKind.cs b/AIMS/DrugManagement/frmDosageKind.cs
index ab63f18..baec61b 100644
--- a/AIMS/DrugManagement/frmDosageKind.cs
+++ b/AIMS/DrugManagement/frmDosageKind.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -28,7 +30,7 @@ namespace DrugManagement.UI
private void GetDosageKindDataTable()
{
dgvDosageKind.Rows.Clear();
- DataTable dt = BLL.DosageKind.GetDataTable();
+ DataTable dt = BDosageKind.GetDataTable();
for (int i = 0; i < dt.Rows.Count; i++)
{
dgvDosageKind.Rows.Add(dt.Rows[i]["Id"].ToString(),
@@ -88,7 +90,7 @@ namespace DrugManagement.UI
MessageBox.Show("名称不能为空!");
return;
}
- Model.DosageKind DosageKindObj = new Model.DosageKind();
+ DosageKind DosageKindObj = new DosageKind();
DosageKindObj.Name = txtName.Text.Trim();
DosageKindObj.HelpCode = txtHelpCode.Text.Trim();
DosageKindObj.IsValid = int.Parse(chkIsValid.Checked ? "1" : "0");
@@ -97,13 +99,13 @@ namespace DrugManagement.UI
DosageKindObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
if (_state == AIMSExtension.EditState.ADD)
{
- BLL.DosageKind.Add(DosageKindObj);
+ BDosageKind.Add(DosageKindObj);
}
if (_state == AIMSExtension.EditState.EDIT)
{
DosageKindObj.Id = SelectDosageKindId;
- BLL.DosageKind.Update(DosageKindObj);
+ BDosageKind.Update(DosageKindObj);
}
AIMSExtension.PublicMethod.EnabledControl(panel2, false);
_state = AIMSExtension.EditState.BROWSE;
diff --git a/AIMS/DrugManagement/frmDosageUnit.cs b/AIMS/DrugManagement/frmDosageUnit.cs
index 3b33e90..f1a0a83 100644
--- a/AIMS/DrugManagement/frmDosageUnit.cs
+++ b/AIMS/DrugManagement/frmDosageUnit.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -28,7 +30,7 @@ namespace DrugManagement.UI
private void GetDosageUnitDataTable()
{
dgvDosageUnit.Rows.Clear();
- DataTable dt = BLL.DosageUnit.GetDataTable();
+ DataTable dt = BDosageUnit.GetDataTable();
for (int i = 0; i < dt.Rows.Count; i++)
{
dgvDosageUnit.Rows.Add(dt.Rows[i]["Id"].ToString(),
@@ -95,7 +97,7 @@ namespace DrugManagement.UI
MessageBox.Show("单位类型不能为空!");
return;
}
- Model.DosageUnit DosageUnitObj = new Model.DosageUnit();
+ DosageUnit DosageUnitObj = new DosageUnit();
DosageUnitObj.Name = txtName.Text.Trim();
if (cboUnitType.Text == "剂量单位")
@@ -113,13 +115,13 @@ namespace DrugManagement.UI
DosageUnitObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
if (_state == AIMSExtension.EditState.ADD)
{
- BLL.DosageUnit.Add(DosageUnitObj);
+ BDosageUnit.Add(DosageUnitObj);
}
if (_state == AIMSExtension.EditState.EDIT)
{
DosageUnitObj.Id = SelectDosageUnitId;
- BLL.DosageUnit.Update(DosageUnitObj);
+ BDosageUnit.Update(DosageUnitObj);
}
AIMSExtension.PublicMethod.EnabledControl(panel2, false);
_state = AIMSExtension.EditState.BROWSE;
diff --git a/AIMS/DrugManagement/frmDrugKind.cs b/AIMS/DrugManagement/frmDrugKind.cs
index bc2fc37..fd6f207 100644
--- a/AIMS/DrugManagement/frmDrugKind.cs
+++ b/AIMS/DrugManagement/frmDrugKind.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -12,7 +14,7 @@ namespace DrugManagement.UI
public partial class frmDrugKind : Form
{
public AIMSExtension.EditState _state;
- private List DrugKindObjList = new List();
+ private List DrugKindObjList = new List();
private int SelectRowId = 0;
public frmDrugKind()
{
@@ -24,7 +26,7 @@ namespace DrugManagement.UI
AIMSExtension.PublicMethod.EnabledControl(panel2, false);
AIMSExtension.PublicMethod.SetDgvAttribute(dgvDrugKind);
this.cboMedicalItemKind.DataSource =
- AIMSExtension.PublicMethod.GetNewDataTable(DataDictionary.BLL.MedicalItemKind.GetDataTable(), "IsMed='药品'", "");
+ AIMSExtension.PublicMethod.GetNewDataTable(BMedicalItemKind.GetDataTable(), "IsMed='药品'", "");
this.cboMedicalItemKind.DisplayMember = "Name";
this.cboMedicalItemKind.ValueMember = "Id";
GetDrugKindDataTable();
@@ -33,7 +35,7 @@ namespace DrugManagement.UI
private void GetDrugKindDataTable()
{
dgvDrugKind.Rows.Clear();
- DataTable dt = BLL.DrugKind.GetDataTable();
+ DataTable dt = BDrugKind.GetDataTable();
for (int i = 0; i < dt.Rows.Count; i++)
{
dgvDrugKind.Rows.Add(dt.Rows[i]["Id"].ToString(),
@@ -91,7 +93,7 @@ namespace DrugManagement.UI
{
if (ValidInput())
{
- Model.DrugKind DrugKindObj = new Model.DrugKind();
+ DrugKind DrugKindObj = new DrugKind();
DrugKindObj.Name = txtName.Text.Trim();
DrugKindObj.MedicalItemKindId = int.Parse(cboMedicalItemKind.SelectedValue.ToString());
DrugKindObj.IsValid = int.Parse(chkIsValid.Checked ? "1" : "0");
@@ -101,12 +103,12 @@ namespace DrugManagement.UI
if (_state == AIMSExtension.EditState.ADD)
{
- BLL.DrugKind.Add(DrugKindObj);
+ BDrugKind.Add(DrugKindObj);
}
if (_state == AIMSExtension.EditState.EDIT)
{
DrugKindObj.Id = SelectRowId;
- BLL.DrugKind.Update(DrugKindObj);
+ BDrugKind.Update(DrugKindObj);
}
GetDrugKindDataTable();
AIMSExtension.PublicMethod.EnabledControl(panel2, false);
diff --git a/AIMS/DrugManagement/frmDrugManufacturer.cs b/AIMS/DrugManagement/frmDrugManufacturer.cs
index 05888f6..93794d8 100644
--- a/AIMS/DrugManagement/frmDrugManufacturer.cs
+++ b/AIMS/DrugManagement/frmDrugManufacturer.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -68,7 +70,7 @@ namespace DrugManagement.UI
AIMSExtension.PublicMethod.ValidDataGridViewExistsItemName(dgvDrugManufacturer, "NameColumn", txtName.Text);
- Model.DrugManufacturer DrugManufacturerObj = new Model.DrugManufacturer();
+ DrugManufacturer DrugManufacturerObj = new DrugManufacturer();
DrugManufacturerObj.Name = txtName.Text.Trim();
DrugManufacturerObj.HelpCode = txtHelpCode.Text.Trim();
@@ -82,7 +84,7 @@ namespace DrugManagement.UI
if (!AIMSExtension.PublicMethod.ValidDataGridViewExistsItemName(dgvDrugManufacturer, "NameColumn", txtName.Text))
{
- BLL.DrugManufacturer.Add(DrugManufacturerObj);
+ BDrugManufacturer.Add(DrugManufacturerObj);
}
else
{
@@ -92,7 +94,7 @@ namespace DrugManagement.UI
if (_state == AIMSExtension.EditState.EDIT)
{
DrugManufacturerObj.Id = SelectDrugManufacturerId;
- BLL.DrugManufacturer.Update(DrugManufacturerObj);
+ BDrugManufacturer.Update(DrugManufacturerObj);
}
AIMSExtension.PublicMethod.EnabledControl(panel2, false);
@@ -113,7 +115,7 @@ namespace DrugManagement.UI
{
dgvDrugManufacturer.Rows.Clear();
- DataTable dt = BLL.DrugManufacturer.GetDataTable();
+ DataTable dt = BDrugManufacturer.GetDataTable();
for (int i = 0; i < dt.Rows.Count; i++)
{
dgvDrugManufacturer.Rows.Add(dt.Rows[i]["Id"].ToString(),
diff --git a/AIMS/DrugManagement/frmDrugManufacturerList.cs b/AIMS/DrugManagement/frmDrugManufacturerList.cs
index dfc852c..8fda4e2 100644
--- a/AIMS/DrugManagement/frmDrugManufacturerList.cs
+++ b/AIMS/DrugManagement/frmDrugManufacturerList.cs
@@ -1,4 +1,5 @@
-using System;
+using AIMSBLL;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -26,7 +27,7 @@ namespace DrugManagement.UI
int y = (System.Windows.Forms.SystemInformation.WorkingArea.Height - this.Size.Height) / 2;
this.StartPosition = FormStartPosition.Manual;
this.Location = (Point)new Size(x, y);
- dgvDrugManufacturer.DataSource = BLL.DrugManufacturer.GetDataTable(HelpCode);
+ dgvDrugManufacturer.DataSource = BDrugManufacturer.GetDataTable(HelpCode);
}
private void dgvDrugManufacturer_KeyDown(object sender, KeyEventArgs e)
diff --git a/AIMS/DrugManagement/frmMedicalDict.cs b/AIMS/DrugManagement/frmMedicalDict.cs
index 923b3ed..0455cd3 100644
--- a/AIMS/DrugManagement/frmMedicalDict.cs
+++ b/AIMS/DrugManagement/frmMedicalDict.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -31,13 +33,13 @@ namespace DrugManagement.UI
_state = AIMSExtension.EditState.BROWSE;
AIMSExtension.PublicMethod.EnabledControl(panel6, false);
- DataTable dt = AIMSExtension.PublicMethod.GetNewDataTable(DataDictionary.BLL.MedicalItemKind.GetDataTable(), "IsMed='药品'", "");
+ DataTable dt = AIMSExtension.PublicMethod.GetNewDataTable(BMedicalItemKind.GetDataTable(), "IsMed='药品'", "");
for (int i = 0; i < dt.Rows.Count; i++)
{
TreeNode Node = treeView1.Nodes.Add(dt.Rows[i]["Id"].ToString(), dt.Rows[i]["Name"].ToString());
- DataTable dt1 = BLL.DrugKind.GetDataTable(dt.Rows[i]["Id"].ToString());
+ DataTable dt1 = BDrugKind.GetDataTable(dt.Rows[i]["Id"].ToString());
for (int j = 0; j < dt1.Rows.Count; j++)
{
@@ -45,13 +47,13 @@ namespace DrugManagement.UI
}
}
- cboDrugKind.DataSource = AIMSExtension.PublicMethod.GetNewDataTable(BLL.DrugKind.GetDataTable(), "IsValid='有效'", "");
+ cboDrugKind.DataSource = AIMSExtension.PublicMethod.GetNewDataTable(BDrugKind.GetDataTable(), "IsValid='有效'", "");
cboDrugKind.DisplayMember = "Name";
cboDrugKind.ValueMember = "Id";
cboDrugKind.SelectedIndex = -1;
- cboDosageKind.DataSource = AIMSExtension.PublicMethod.GetNewDataTable(BLL.DosageKind.GetDataTable(), "IsValid='有效'", "");
+ cboDosageKind.DataSource = AIMSExtension.PublicMethod.GetNewDataTable(BDosageKind.GetDataTable(), "IsValid='有效'", "");
cboDosageKind.DisplayMember = "Name";
cboDosageKind.ValueMember = "Id";
@@ -68,7 +70,7 @@ namespace DrugManagement.UI
TreeNode sNode = treeView1.SelectedNode;
if (sNode.Parent != null)
{
- Model.DrugKind DrugKindObj = new Model.DrugKind();
+ DrugKind DrugKindObj = new DrugKind();
cboDrugKind.SelectedValue = sNode.Name;
}
}
@@ -114,7 +116,7 @@ namespace DrugManagement.UI
{
if(ValidInput())
{
- Model.MedicalDict MedicalDictObj = new Model.MedicalDict();
+ MedicalDict MedicalDictObj = new MedicalDict();
MedicalDictObj.No = txtNo.Text.Trim();
MedicalDictObj.Name = txtName.Text.Trim();
MedicalDictObj.HelpCode = txtHelpCode.Text;
@@ -127,13 +129,13 @@ namespace DrugManagement.UI
if (_state == AIMSExtension.EditState.ADD)
{
- BLL.MedicalDict.Add(MedicalDictObj);
+ BMedicalDict.Add(MedicalDictObj);
}
if (_state == AIMSExtension.EditState.EDIT)
{
MedicalDictObj.Id = SelectMedicalDictRowId;
- BLL.MedicalDict.Update(MedicalDictObj);
+ BMedicalDict.Update(MedicalDictObj);
}
}
_state = AIMSExtension.EditState.BROWSE;
@@ -144,9 +146,9 @@ namespace DrugManagement.UI
if (sNode.Parent != null)
{
- Model.DrugKind DrugKindObj = new Model.DrugKind();
+ DrugKind DrugKindObj = new DrugKind();
cboDrugKind.SelectedValue = sNode.Name;
- dgvMedicalDict.DataSource = BLL.MedicalDict.GetDataTable(int.Parse(cboDrugKind.SelectedValue.ToString()));
+ dgvMedicalDict.DataSource = BMedicalDict.GetDataTable(int.Parse(cboDrugKind.SelectedValue.ToString()));
}
}
@@ -170,7 +172,7 @@ namespace DrugManagement.UI
{
MessageBox.Show("剂型不能为空!");
}
- else if (_state == AIMSExtension.EditState.ADD && BLL.MedicalDict.Exists(txtNo.Text))
+ else if (_state == AIMSExtension.EditState.ADD && BMedicalDict.Exists(txtNo.Text))
{
MessageBox.Show("编码不能重复!");
}
@@ -198,16 +200,16 @@ namespace DrugManagement.UI
if (sNode.Parent != null)
{
- Model.DrugKind DrugKindObj = new Model.DrugKind();
+ DrugKind DrugKindObj = new DrugKind();
cboDrugKind.SelectedValue = sNode.Name;
- dgvMedicalDict.DataSource = BLL.MedicalDict.GetDataTable(int.Parse(cboDrugKind.SelectedValue.ToString()));
+ dgvMedicalDict.DataSource = BMedicalDict.GetDataTable(int.Parse(cboDrugKind.SelectedValue.ToString()));
}
}
private void btnFind_Click(object sender, EventArgs e)
{
- dgvMedicalDict.DataSource = BLL.MedicalDict.GetDataTableByName(txtInput.Text.Trim());
+ dgvMedicalDict.DataSource = BMedicalDict.GetDataTableByName(txtInput.Text.Trim());
}
}
}
diff --git a/AIMS/DrugManagement/frmMedicalDictList.cs b/AIMS/DrugManagement/frmMedicalDictList.cs
index 1b69613..2dfb108 100644
--- a/AIMS/DrugManagement/frmMedicalDictList.cs
+++ b/AIMS/DrugManagement/frmMedicalDictList.cs
@@ -1,4 +1,5 @@
-using System;
+using AIMSBLL;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -21,7 +22,7 @@ namespace DrugManagement.UI
private void frmMedicalDictList_Load(object sender, EventArgs e)
{
AIMSExtension.PublicMethod.SetDgvAttribute(dgvMedicalDictList);
- dgvMedicalDictList.DataSource = AIMSExtension.PublicMethod.GetNewDataTable(BLL.MedicalDict.GetDataTableByName(HelpCode), "IsValid='有效'", "");
+ dgvMedicalDictList.DataSource = AIMSExtension.PublicMethod.GetNewDataTable(BMedicalDict.GetDataTableByName(HelpCode), "IsValid='有效'", "");
}
private void dgvMedicalDictList_KeyDown(object sender, KeyEventArgs e)
diff --git a/AIMS/DrugManagement/frmMedicalItem.cs b/AIMS/DrugManagement/frmMedicalItem.cs
index 3f10f3e..8868efa 100644
--- a/AIMS/DrugManagement/frmMedicalItem.cs
+++ b/AIMS/DrugManagement/frmMedicalItem.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -29,11 +31,11 @@ namespace DrugManagement.UI
AIMSExtension.PublicMethod.SetDgvAttribute(dgvMedicalItem);
AIMSExtension.PublicMethod.SetDgvAttribute(dgvMedicamentPrice);
_state = AIMSExtension.EditState.BROWSE;
- DataTable dt = AIMSExtension.PublicMethod.GetNewDataTable(DataDictionary.BLL.MedicalItemKind.GetDataTable(), "IsMed='药品'", "");
+ DataTable dt = AIMSExtension.PublicMethod.GetNewDataTable(BMedicalItemKind.GetDataTable(), "IsMed='药品'", "");
for (int i = 0; i < dt.Rows.Count; i++)
{
TreeNode Node = treeView1.Nodes.Add(dt.Rows[i]["Id"].ToString(), dt.Rows[i]["Name"].ToString());
- DataTable dt1 = BLL.DrugKind.GetDataTable(dt.Rows[i]["Id"].ToString());
+ DataTable dt1 = BDrugKind.GetDataTable(dt.Rows[i]["Id"].ToString());
for (int j = 0; j < dt1.Rows.Count; j++)
{
Node.Nodes.Add(dt1.Rows[j]["Id"].ToString(), dt1.Rows[j]["Name"].ToString());
@@ -49,7 +51,7 @@ namespace DrugManagement.UI
if (sNode != null)
{
- Model.DrugKind DrugKindObj = new Model.DrugKind();
+ DrugKind DrugKindObj = new DrugKind();
frmMedicalItemDetail.DrugKindId =int.Parse(sNode.Name);
}
@@ -78,7 +80,7 @@ namespace DrugManagement.UI
{
IsValid = 1;
}
- dgvMedicalItem.DataSource = BLL.MedicalItem.GetMedicalItemDrugDataTable(txtInput.Text.Trim(), IsValid);
+ dgvMedicalItem.DataSource = BMedicalItem.GetMedicalItemDrugDataTable(txtInput.Text.Trim(), IsValid);
if (dgvMedicalItem.Rows.Count > 0)
{
dgvMedicalItem.ClearSelection();
@@ -94,8 +96,8 @@ namespace DrugManagement.UI
if (sNode != null)
{
- Model.DrugKind DrugKindObj = new Model.DrugKind();
- dgvMedicalItem.DataSource = BLL.MedicalItem.GetMedicalItemByDrugKindId(int.Parse(sNode.Name));
+ DrugKind DrugKindObj = new DrugKind();
+ dgvMedicalItem.DataSource = BMedicalItem.GetMedicalItemByDrugKindId(int.Parse(sNode.Name));
}
}
@@ -111,7 +113,7 @@ namespace DrugManagement.UI
{
frmMedicamentPrice.MedicamentPriceId = int.Parse(dgvMedicamentPrice.CurrentRow.Cells["IdColumn1"].Value.ToString());
}
- frmMedicamentPrice.SelectRowMedicalItemObj = BLL.MedicalItem.GetModel(int.Parse(dgvMedicalItem.CurrentRow.Cells["Id"].Value.ToString()));
+ frmMedicamentPrice.SelectRowMedicalItemObj = BMedicalItem.GetModel(int.Parse(dgvMedicalItem.CurrentRow.Cells["Id"].Value.ToString()));
frmMedicamentPrice.ShowDialog();
}
}
@@ -174,7 +176,7 @@ namespace DrugManagement.UI
if (dgvMedicalItem.Rows.Count > 0)
{
int MedicalItemId = int.Parse(dgvMedicalItem.CurrentRow.Cells["Id"].Value.ToString());
- dgvMedicamentPrice.DataSource = BLL.MedicamentPrice.GetDataTable(MedicalItemId);
+ dgvMedicamentPrice.DataSource = BMedicamentPrice.GetDataTable(MedicalItemId);
}
}
}
diff --git a/AIMS/DrugManagement/frmMedicalItemDetail.cs b/AIMS/DrugManagement/frmMedicalItemDetail.cs
index fbee188..f54eb90 100644
--- a/AIMS/DrugManagement/frmMedicalItemDetail.cs
+++ b/AIMS/DrugManagement/frmMedicalItemDetail.cs
@@ -7,13 +7,16 @@ using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Text.RegularExpressions;
+using AIMSBLL;
+using AIMSModel;
+
namespace DrugManagement.UI
{
public partial class frmMedicalItemDetail : Form
{
public int DrugKindId = 0;
private frmMedicalDictList frmMedicalDictList;
- private Model.MedicalDict MedicalDictObj = new Model.MedicalDict();
+ private MedicalDict MedicalDictObj = new MedicalDict();
public AIMSExtension.EditState _State;
public int MedicalItemEditId = 0;
public frmMedicalItemDetail()
@@ -32,9 +35,9 @@ namespace DrugManagement.UI
Init();
if (DrugKindId != 0)
{
- Model.DrugKind DrugKindObj = BLL.DrugKind.GetModel(DrugKindId);
+ DrugKind DrugKindObj = BDrugKind.GetModel(DrugKindId);
cboDrugKind.Text = DrugKindObj.Name;
- cboDrugKindTotal.Text = DataDictionary.BLL.MedicalItemKind.GetModel(DrugKindObj.MedicalItemKindId).Name;
+ cboDrugKindTotal.Text = BMedicalItemKind.GetModel(DrugKindObj.MedicalItemKindId.Value).Name;
}
chkIsValid.Checked = true;
@@ -45,8 +48,8 @@ namespace DrugManagement.UI
if (_State == AIMSExtension.EditState.EDIT)
{
- Model.MedicalItem MedicalItemObj = new Model.MedicalItem();
- MedicalItemObj = BLL.MedicalItem.GetModel(MedicalItemEditId);
+ MedicalItem MedicalItemObj = new MedicalItem();
+ MedicalItemObj = BMedicalItem.GetModel(MedicalItemEditId);
txtNo.Text = MedicalItemObj.No;
txtName.Text = MedicalItemObj.Name;
txtHelpCode.Text = MedicalItemObj.HelpCode;
@@ -56,7 +59,7 @@ namespace DrugManagement.UI
txtStand.Text = MedicalItemObj.Stand;
txtBarCode.Text = MedicalItemObj.BarCode;
txtMedicalDictNo.Text = MedicalItemObj.MedicalDictNo;
- cboDrugKindTotal.SelectedValue = BLL.DrugKind.GetModel(MedicalItemObj.DrugKindId).MedicalItemKindId;
+ cboDrugKindTotal.SelectedValue = BDrugKind.GetModel(MedicalItemObj.DrugKindId.Value).MedicalItemKindId;
cboDrugKind.SelectedValue = MedicalItemObj.DrugKindId;
cboPharmaCology.SelectedValue = MedicalItemObj.PharmaCologyId;
@@ -93,56 +96,56 @@ namespace DrugManagement.UI
private void Init()
{
- cboDosageKind.DataSource = BLL.DosageKind.GetDataTable();
+ cboDosageKind.DataSource = BDosageKind.GetDataTable();
cboDosageKind.DisplayMember = "Name";
cboDosageKind.ValueMember = "Id";
cboDosageKind.SelectedIndex = -1;
- cboDrugKind.DataSource = BLL.DrugKind.GetDataTable();
+ cboDrugKind.DataSource = BDrugKind.GetDataTable();
cboDrugKind.DisplayMember = "Name";
cboDrugKind.ValueMember = "Id";
cboDrugKind.SelectedIndex = -1;
- cboDrugKindTotal.DataSource = AIMSExtension.PublicMethod.GetNewDataTable(DataDictionary.BLL.MedicalItemKind.GetDataTable(), "IsMed='药品'", "");
+ cboDrugKindTotal.DataSource = AIMSExtension.PublicMethod.GetNewDataTable(BMedicalItemKind.GetDataTable(), "IsMed='药品'", "");
cboDrugKindTotal.DisplayMember = "Name";
cboDrugKindTotal.ValueMember = "Id";
cboDrugKindTotal.SelectedIndex = -1;
cboInsuranceKind.DisplayMember = "Name";
cboInsuranceKind.ValueMember = "Id";
- cboInsuranceKind.DataSource = DataDictionary.BLL.DataDictionary.GetDataDictionaryDataTable(" ParentId IN (SELECT Id FROM BasicDictionary WHERE NAME='医保用药类别')");
+ cboInsuranceKind.DataSource = BBasicDictionary.GetDataDictionaryDataTable(" ParentId IN (SELECT Id FROM BasicDictionary WHERE NAME='医保用药类别')");
cboInsuranceKind.SelectedIndex = -1;
cboInsuranceKindNH.DisplayMember = "Name";
cboInsuranceKindNH.ValueMember = "Id";
- cboInsuranceKindNH.DataSource = DataDictionary.BLL.DataDictionary.GetDataDictionaryDataTable(" ParentId IN (SELECT Id FROM BasicDictionary WHERE NAME='医保用药类别')");
+ cboInsuranceKindNH.DataSource = BBasicDictionary.GetDataDictionaryDataTable(" ParentId IN (SELECT Id FROM BasicDictionary WHERE NAME='医保用药类别')");
cboInsuranceKindNH.SelectedIndex = -1;
- cboDosageUnit.DataSource = BLL.DosageUnit.GetDataTable(1);
+ cboDosageUnit.DataSource = BDosageUnit.GetDataTable(1);
cboDosageUnit.DisplayMember = "Name";
cboDosageUnit.ValueMember = "Id";
cboDosageUnit.SelectedIndex = -1;
- cboPharmaCology.DataSource = AIMSExtension.PublicMethod.GetNewDataTable(BLL.PharmaCology.GetDataTable(), "IsValid='有效'", "");
+ cboPharmaCology.DataSource = AIMSExtension.PublicMethod.GetNewDataTable(BPharmaCology.GetDataTable(), "IsValid='有效'", "");
cboPharmaCology.DisplayMember = "Name";
cboPharmaCology.ValueMember = "Id";
cboPharmaCology.SelectedIndex = -1;
- cboDosageUnit.DataSource = BLL.DosageUnit.GetDataTable(1);
+ cboDosageUnit.DataSource = BDosageUnit.GetDataTable(1);
cboDosageUnit.DisplayMember = "Name";
cboDosageUnit.ValueMember = "Id";
cboDosageUnit.SelectedIndex = -1;
- cboPackingUnit.DataSource = BLL.DosageUnit.GetDataTable(2);
+ cboPackingUnit.DataSource = BDosageUnit.GetDataTable(2);
cboPackingUnit.DisplayMember = "Name";
cboPackingUnit.ValueMember = "Id";
cboPackingUnit.SelectedIndex = -1;
- cboSplitUnit.DataSource = BLL.DosageUnit.GetDataTable(2);
+ cboSplitUnit.DataSource = BDosageUnit.GetDataTable(2);
cboSplitUnit.DisplayMember = "Name";
cboSplitUnit.ValueMember = "Id";
cboSplitUnit.SelectedIndex = -1;
@@ -154,7 +157,7 @@ namespace DrugManagement.UI
frmMedicalDictList.HelpCode = txtName.Text.Trim();
frmMedicalDictList.FormClosed += new FormClosedEventHandler(frmMedicalDictList_FormClosed);
- if (AIMSExtension.PublicMethod.GetNewDataTable(BLL.MedicalDict.GetDataTableByName(txtName.Text.Trim()), "IsValid='有效'", "").Rows.Count > 0)
+ if (AIMSExtension.PublicMethod.GetNewDataTable(BMedicalDict.GetDataTableByName(txtName.Text.Trim()), "IsValid='有效'", "").Rows.Count > 0)
{
frmMedicalDictList.ShowDialog();
}
@@ -162,8 +165,8 @@ namespace DrugManagement.UI
void frmMedicalDictList_FormClosed(object sender, FormClosedEventArgs e)
{
- MedicalDictObj = BLL.MedicalDict.GetModel(frmMedicalDictList.MedicalDictId);
- int RowsCount =BLL.MedicalItem.GetMedicalItemByDictNo(MedicalDictObj.No);
+ MedicalDictObj = BMedicalDict.GetModel(frmMedicalDictList.MedicalDictId);
+ int RowsCount =BMedicalItem.GetMedicalItemByDictNo(MedicalDictObj.No);
if (RowsCount == 0)
{
txtNo.Text = MedicalDictObj.No;
@@ -174,11 +177,11 @@ namespace DrugManagement.UI
txtNo.Text = MedicalDictObj.No + (RowsCount + 1);
}
txtName.Text = MedicalDictObj.Name;
- cboDosageKind.Text = BLL.DosageKind.GetModel(MedicalDictObj.DosageKindId).Name;
+ cboDosageKind.Text = BDosageKind.GetModel(MedicalDictObj.DosageKindId.Value).Name;
txtMedicalDictNo.Text = MedicalDictObj.No;
- cboDrugKind.Text = BLL.DrugKind.GetModel(MedicalDictObj.DrugKindId).Name;
- cboDrugKindTotal.Text = DataDictionary.BLL.MedicalItemKind.GetModel(BLL.DrugKind.GetModel(MedicalDictObj.DrugKindId).MedicalItemKindId).Name;
+ cboDrugKind.Text = BDrugKind.GetModel(MedicalDictObj.DrugKindId.Value).Name;
+ cboDrugKindTotal.Text = BMedicalItemKind.GetModel(BDrugKind.GetModel(MedicalDictObj.DrugKindId.Value).MedicalItemKindId.Value).Name;
chkIsValid.Checked = true;
txtStand.Select();
@@ -190,9 +193,9 @@ namespace DrugManagement.UI
AIMSExtension.PublicMethod.ClearControl(panel1);
if (DrugKindId != 0)
{
- Model.DrugKind DrugKindObj = BLL.DrugKind.GetModel(DrugKindId);
+ DrugKind DrugKindObj = BDrugKind.GetModel(DrugKindId);
cboDrugKind.Text = DrugKindObj.Name;
- cboDrugKindTotal.Text = DataDictionary.BLL.MedicalItemKind.GetModel(DrugKindObj.MedicalItemKindId).Name;
+ cboDrugKindTotal.Text = BMedicalItemKind.GetModel(DrugKindObj.MedicalItemKindId.Value).Name;
}
chkIsValid.Checked = true;
txtName.Select();
@@ -205,7 +208,7 @@ namespace DrugManagement.UI
{
if (ValidInput())
{
- Model.MedicalItem MedicalItemObj = new Model.MedicalItem();
+ MedicalItem MedicalItemObj = new MedicalItem();
MedicalItemObj.No = txtNo.Text.Trim();
MedicalItemObj.Name = txtName.Text.Trim();
MedicalItemObj.HelpCode = txtHelpCode.Text.Trim();
@@ -234,12 +237,12 @@ namespace DrugManagement.UI
if (_State == AIMSExtension.EditState.ADD)
{
- BLL.MedicalItem.Add(MedicalItemObj);
+ BMedicalItem.Add(MedicalItemObj);
}
if (_State == AIMSExtension.EditState.EDIT)
{
MedicalItemObj.Id = MedicalItemEditId;
- BLL.MedicalItem.Update(MedicalItemObj);
+ BMedicalItem.Update(MedicalItemObj);
}
tsbCancel_Click(null, null);
diff --git a/AIMS/DrugManagement/frmMedicamentPrice.cs b/AIMS/DrugManagement/frmMedicamentPrice.cs
index b41391f..9590305 100644
--- a/AIMS/DrugManagement/frmMedicamentPrice.cs
+++ b/AIMS/DrugManagement/frmMedicamentPrice.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -12,7 +14,7 @@ namespace DrugManagement.UI
public partial class frmMedicamentPrice : Form
{
public AIMSExtension.EditState _state;
- public Model.MedicalItem SelectRowMedicalItemObj;
+ public MedicalItem SelectRowMedicalItemObj;
public int DrugManufacturerId =0;
public string DrugManufacturerName;
private frmDrugManufacturerList frmDrugManufacturerList;
@@ -53,13 +55,13 @@ namespace DrugManagement.UI
txtRetailPrice.Enabled = false;
txtDrugManufacturer.Enabled = false;
- Model.MedicamentPrice MedicamentPriceObj = BLL.MedicamentPrice.GetModel(MedicamentPriceId);
- Model.MedicalItem MedicalItemObj = BLL.MedicalItem.GetModel(MedicamentPriceObj.MedicalItemId);
+ MedicamentPrice MedicamentPriceObj = BMedicamentPrice.GetModel(MedicamentPriceId);
+ MedicalItem MedicalItemObj = BMedicalItem.GetModel(MedicamentPriceObj.MedicalItemId.Value);
txtNo.Text = MedicalItemObj.No;
txtName.Text = MedicalItemObj.Name;
txtPackingUnit.Text = MedicalItemObj.PackingUnit;
- txtDrugManufacturer.Text = BLL.DrugManufacturer.GetModel(MedicamentPriceObj.DrugManufacturerId).Name;
+ txtDrugManufacturer.Text = BDrugManufacturer.GetModel(MedicamentPriceObj.DrugManufacturerId.Value).Name;
txtPurchasePrice.Text = MedicamentPriceObj.PurchasePrice.ToString();
txtRetailPrice.Text = MedicamentPriceObj.RetailPrice.ToString();
txtTradePrice.Text = MedicamentPriceObj.TradePrice.ToString();
@@ -126,7 +128,7 @@ namespace DrugManagement.UI
{
if (_state == AIMSExtension.EditState.ADD)
{
- Model.MedicamentPrice MedicamentPriceObj = new Model.MedicamentPrice();
+ MedicamentPrice MedicamentPriceObj = new MedicamentPrice();
MedicamentPriceObj.MedicalItemId = SelectRowMedicalItemObj.Id;
MedicamentPriceObj.DrugManufacturerId = DrugManufacturerId;
MedicamentPriceObj.PurchasePrice = decimal.Parse(txtPurchasePrice.Text.Trim());
@@ -136,7 +138,7 @@ namespace DrugManagement.UI
MedicamentPriceObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
MedicamentPriceObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
MedicamentPriceObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
- BLL.MedicamentPrice.Add(MedicamentPriceObj);
+ BMedicamentPrice.Add(MedicamentPriceObj);
}
else
{
@@ -146,13 +148,13 @@ namespace DrugManagement.UI
if (_state == AIMSExtension.EditState.EDIT)
{
- Model.MedicamentPrice MedicamentPriceObj = new Model.MedicamentPrice();
+ MedicamentPrice MedicamentPriceObj = new MedicamentPrice();
MedicamentPriceObj.Id = MedicamentPriceId;
MedicamentPriceObj.IsValid = int.Parse(chkIsValid.Checked ? "1" : "0");
MedicamentPriceObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
MedicamentPriceObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
MedicamentPriceObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
- BLL.MedicamentPrice.Update(MedicamentPriceObj);
+ BMedicamentPrice.Update(MedicamentPriceObj);
}
Close();
}
diff --git a/AIMS/DrugManagement/frmPharmaCology.cs b/AIMS/DrugManagement/frmPharmaCology.cs
index 42368a1..70f838a 100644
--- a/AIMS/DrugManagement/frmPharmaCology.cs
+++ b/AIMS/DrugManagement/frmPharmaCology.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -70,7 +72,7 @@ namespace DrugManagement.UI
MessageBox.Show("名称不能为空!");
return;
}
- Model.PharmaCology PharmaCologyObj = new Model.PharmaCology();
+ PharmaCology PharmaCologyObj = new PharmaCology();
PharmaCologyObj.Name = txtName.Text.Trim();
PharmaCologyObj.HelpCode = txtHelpCode.Text.Trim();
PharmaCologyObj.IsValid = int.Parse(chkIsValid.Checked ? "1" : "0");
@@ -79,13 +81,13 @@ namespace DrugManagement.UI
PharmaCologyObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
if (_state == AIMSExtension.EditState.ADD)
{
- BLL.PharmaCology.Add(PharmaCologyObj);
+ BPharmaCology.Add(PharmaCologyObj);
}
if (_state == AIMSExtension.EditState.EDIT)
{
PharmaCologyObj.Id = SelectPharmaCologyId;
- BLL.PharmaCology.Update(PharmaCologyObj);
+ BPharmaCology.Update(PharmaCologyObj);
}
AIMSExtension.PublicMethod.EnabledControl(panel2, false);
_state = AIMSExtension.EditState.BROWSE;
@@ -107,7 +109,7 @@ namespace DrugManagement.UI
{
dgvPharmaCology.Rows.Clear();
- DataTable dt = BLL.PharmaCology.GetDataTable();
+ DataTable dt = BPharmaCology.GetDataTable();
for (int i = 0; i < dt.Rows.Count; i++)
{
dgvPharmaCology.Rows.Add(dt.Rows[i]["Id"].ToString(),
diff --git a/AIMS/FormLogin.cs b/AIMS/FormLogin.cs
index 3c60bed..477aade 100644
--- a/AIMS/FormLogin.cs
+++ b/AIMS/FormLogin.cs
@@ -6,6 +6,8 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
+using AIMSBLL;
+using AIMSModel;
using DevComponents.DotNetBar;
namespace AIMS
@@ -27,31 +29,31 @@ namespace AIMS
//label2.Text = "@山西瑞禾康医疗科技有限公司 V" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
txtNo.Select();
txtNo.Focus();
-//#if DEBUG
-// txtNo.Text = "admin";
-// txtPassWord.Text = "1";
-// btnOk_Click(null, null);
-//#endif
+ //#if DEBUG
+ // txtNo.Text = "admin";
+ // txtPassWord.Text = "1";
+ // btnOk_Click(null, null);
+ //#endif
}
private void btnOk_Click(object sender, EventArgs e)
{
- if (AIMS.PublicUI.BLL.Person.Login(txtNo.Text, txtPassWord.Text))
+ if (BPerson.Login(txtNo.Text, txtPassWord.Text))
{
- AIMS.PublicUI.Model.Person PersonObj = AIMS.PublicUI.BLL.Person.GetModelByNo(txtNo.Text);
- AIMSExtension.PublicMethod.OperatorId = PersonObj.Id;
+ Person PersonObj = BPerson.GetModelByNo(txtNo.Text);
+ AIMSExtension.PublicMethod.OperatorId = PersonObj.Id.Value;
AIMSExtension.PublicMethod.OperatorNo = PersonObj.No;
AIMSExtension.PublicMethod.OperatorName = PersonObj.Name;
- AIMSExtension.PublicMethod.RoleId = PersonObj.RoleId;
- AIMSExtension.PublicMethod.DepId = PersonObj.DepId;
- AIMSExtension.PublicMethod.DeptName = AIMS.PublicUI.BLL.Department.GetModel(PersonObj.DepId).Name;
- AIMS.PublicUI.Model.Role role = AIMS.PublicUI.BLL.Role.GetModel(PersonObj.RoleId);
- AIMSExtension.PublicMethod.PermissionLevel = role.PermissionLevel;
+ AIMSExtension.PublicMethod.RoleId = PersonObj.RoleId.Value;
+ AIMSExtension.PublicMethod.DepId = PersonObj.DepId.Value;
+ AIMSExtension.PublicMethod.DeptName = BDepartment.GetModel(PersonObj.DepId.Value).Name;
+ Role role = BRole.GetModel(PersonObj.RoleId.Value);
+ AIMSExtension.PublicMethod.PermissionLevel = role.PermissionLevel == null ? 0 : role.PermissionLevel.Value;
Hide();
//在这里为编辑器注册
new System.Threading.Thread(Reg).Start();
//DevComponents.DotNetBar.StyleManager.MetroColorGeneratorParameters = DevComponents.DotNetBar.Metro.ColorTables.MetroColorGeneratorParameters.Office2016Blue;
- new FormMainManage().ShowDialog();
+ new FormMainManage().ShowDialog();
}
else
{
diff --git a/AIMS/FormMainManage.cs b/AIMS/FormMainManage.cs
index 56de477..42ddb2d 100644
--- a/AIMS/FormMainManage.cs
+++ b/AIMS/FormMainManage.cs
@@ -1,17 +1,14 @@
+using AIMS.DocManager;
+using AIMSBLL;
+using AIMSModel;
+using DevComponents.DotNetBar;
using System;
using System.Collections.Generic;
-using System.ComponentModel;
using System.Data;
using System.Drawing;
-using System.Linq;
using System.Reflection;
-using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
-using AIMS.DocManager;
-using AIMS.OperationDoing.AnasRecordBill.UI;
-using AIMS.PublicUI.Model;
-using DevComponents.DotNetBar;
namespace AIMS
{
@@ -126,9 +123,9 @@ namespace AIMS
lv7.Size = new Size(PanelWidth - 5, PanelHeight - 35);
lv7.Location = new Point(2, 28);
- List menuListP = new List();
- AIMS.PublicUI.Model.Menu menu = new AIMS.PublicUI.Model.Menu();
- menuListP = AIMS.PublicUI.BLL.Menu.GetMenuRootListManage(AIMSExtension.PublicMethod.RoleId, "0");
+ List menuListP = new List();
+ AIMSModel.Menu menu = new AIMSModel.Menu();
+ menuListP = BMenu.GetMenuRootListManage(AIMSExtension.PublicMethod.RoleId, "0");
for (int i = 0; i < menuListP.Count; i++)
{
var menuSec = menuListP[i];
@@ -207,7 +204,7 @@ namespace AIMS
public void BindOperationsList(DevComponents.DotNetBar.Controls.DataGridViewX lvex, DateTime beginTime, DateTime endTime, bool isLoginPerson, bool isEnOpe = false)
{
lvex.Rows.Clear();
- DataTable dt = OperationDoing.AnasRecordBill.BLL.SelectPatient.GetSelectPatientDataTable
+ DataTable dt = SelectPatient.GetSelectPatientDataTable
(beginTime, endTime, isLoginPerson, AIMSExtension.PublicMethod.OperatorName, isEnOpe);
for (int i = 0; i < dt.Rows.Count; i++)
@@ -246,7 +243,7 @@ namespace AIMS
{
try
{
- DataTable dt = OperationDoing.AnasRecordBill.BLL.SelectPatient.GetSelectPatientChart();
+ DataTable dt = SelectPatient.GetSelectPatientChart();
List xData = new List();
List yData = new List();
@@ -263,7 +260,7 @@ namespace AIMS
}
public void BindOperationsListChart2()
{
- DataTable dt = OperationDoing.AnasRecordBill.BLL.SelectPatient.GetSelectPatientChart2();
+ DataTable dt = SelectPatient.GetSelectPatientChart2();
List xData = new List();
List yData = new List();
@@ -284,7 +281,7 @@ namespace AIMS
if (sideNavItem.Tag == null) return;
selsideNavItem = sideNavItem;
sideNavItem.Text = sideNavItem.Text + " ";
- AIMS.PublicUI.Model.Menu menu = sideNavItem.Tag as AIMS.PublicUI.Model.Menu;
+ AIMSModel.Menu menu = sideNavItem.Tag as AIMSModel.Menu;
string path = menu.Path;
if (path.Length > 0)
{
@@ -384,14 +381,14 @@ namespace AIMS
public void BindfrmNoticeMain()
{
- List NoticeList = PublicUI.BLL.NoticeTemplate.HistoryNoticeData();
+ List NoticeList = BNotice.HistoryNoticeData();
System.Windows.Forms.ListViewItem[] lists = new System.Windows.Forms.ListViewItem[NoticeList.Count];
lv7.Items.Clear();
for (int i = 0; i < NoticeList.Count; i++)
{
- lists[i] = new System.Windows.Forms.ListViewItem(new string[] { NoticeList[i].Id.ToString(), NoticeList[i].Contents, NoticeList[i].OperateDate.ToString("yyyy-MM-dd") }, i);
+ lists[i] = new System.Windows.Forms.ListViewItem(new string[] { NoticeList[i].Id.ToString(), NoticeList[i].Contents, NoticeList[i].OperateDate.Value.ToString("yyyy-MM-dd") }, i);
}
lv7.Items.AddRange(lists);
@@ -471,10 +468,10 @@ namespace AIMS
int SelApplyId = int.Parse(dataGridView.CurrentRow.Cells[0].Value.ToString());
if (SelApplyId != 0)
{
- AIMS.OperationFront.Model.OperationApply apply = AIMS.OperationFront.BLL.OperationApply.GetModel(SelApplyId);
- AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBillNew frmAnasRecord = new frmAnasRecordBillNew();
- frmAnasRecord.PatientId = apply.Oris_PatientId;
- frmAnasRecord.ApplyId = apply.Id;
+ OperationApply apply = BOperationApply.GetModel(SelApplyId);
+ AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew frmAnasRecord = new OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew();
+ frmAnasRecord.PatientId = apply.OrisPatientId.Value;
+ frmAnasRecord.ApplyId = apply.Id.Value;
frmAnasRecord.State = AIMSExtension.EditState.BROWSE;
frmAnasRecord.Show();
}
diff --git a/AIMS/OperationAfter/OperationReview.cs b/AIMS/OperationAfter/OperationReview.cs
deleted file mode 100644
index 73c10f7..0000000
--- a/AIMS/OperationAfter/OperationReview.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationAfter.BLL
-{
- public class OperationReview
- {
- public static DataTable GetOperationReviewDataTable(string MdrecNo, string PatientName, string OperationBeginTime, string OperationEndTime)
- {
- return new DAL.OperationReviewDB().GetOperationReviewDataTable(MdrecNo, PatientName, OperationBeginTime, OperationEndTime);
- }
- }
-}
diff --git a/AIMS/OperationAfter/OperationReviewDB.cs b/AIMS/OperationAfter/OperationReviewDB.cs
deleted file mode 100644
index fafaf93..0000000
--- a/AIMS/OperationAfter/OperationReviewDB.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationAfter.DAL
-{
- public class OperationReviewDB
- {
- public DataTable GetOperationReviewDataTable(string MdrecNo, string PatientName, string OperationBeginTime, string OperationEndTime)
- {
- string strSql = " SELECT of1.PatientId, of1.ApplyId, of1.MdrecNo, of1.ArchivesNo, of1.PatientName,of1.ApplyDepName, of1.PatientKind,"+
- " of1.Sex, of1.BirthDay, of1.Height, of1.[Weight], of1.BloodType,"+
- " of1.RHBloodType, of1.Illdistrict, of1.SickBed, of1.OperationType,"+
- " of1.[State],od.DiagnoseInfoName, od.OperationInfoName,"+
- " od.OperationBeginTime,od.OperationEndTime,"+
- " od.AnaesthesiaMethodName, od.OperationCutTypeName,"+
- " od.OperationBodyPositionName, od.OperationPositionName,"+
- " od.OperationDoctor, od.Assistant, od.AnesthesiaDoctor,"+
- " od.Nurse, od.Remarks,of1.MedicalRecord,of1.MedicalRecordTime FROM V_OperationDoing od" +
- " LEFT JOIN V_OperationFront of1 ON of1.PatientId = od.PatientId WHERE (of1.MdrecNo ='" + MdrecNo + "' OR of1.PatientName LIKE '" + PatientName + "%')" +
- " AND od.OperationBeginTime >='" + OperationBeginTime + "' AND od.OperationBeginTime <'" + OperationEndTime + "' AND " +
- " od.[State] IN ('手术结束','麻醉恢复结束')";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
- }
-}
diff --git a/AIMS/OperationAfter/frmOperationManage.cs b/AIMS/OperationAfter/frmOperationManage.cs
index 87f2468..0c5e424 100644
--- a/AIMS/OperationAfter/frmOperationManage.cs
+++ b/AIMS/OperationAfter/frmOperationManage.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -29,9 +31,9 @@ namespace AIMS.OperationAfter.UI
AIMSExtension.PublicMethod.SetDgvAttribute(dgv);
dgv.BackgroundColor = System.Drawing.Color.Snow;
- List list = new List();
- list = AIMS.PublicUI.BLL.Department.GetDepartmentAllList("诊疗部门");
- list.Insert(0, new AIMS.PublicUI.Model.Department
+ List list = new List();
+ list = BDepartment.GetDepartmentAllList("诊疗部门");
+ list.Insert(0, new Department
{
Id = -1,
Name = "全部科室"
@@ -55,7 +57,7 @@ namespace AIMS.OperationAfter.UI
tokenEditor1.SelectedTokens.Add(tokenEditor1.Tokens[1]);
- List rooms = DataDictionary.BLL.OperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'");
+ List rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'");
foreach (var item in rooms)
{
tokenEditor2.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken(item.Id.ToString(), item.Name));
@@ -100,7 +102,7 @@ namespace AIMS.OperationAfter.UI
string name = txtName.Text;
- DataTable dt = OperationFront.BLL.OperationApply.GetOperationFrontDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.AddDays(1).ToString("yyyy-MM-dd"));
+ DataTable dt = BOperationApply.GetOperationFrontDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.AddDays(1).ToString("yyyy-MM-dd"));
dgv.DataSource = AIMSExtension.PublicMethod.GetNewDataTable(dt, "State IN ('已排程','已访视') and ApplyDepName LIKE '%" + Department + "%'", "");
for (int i = 0; i < dgv.Rows.Count; i++)
diff --git a/AIMS/OperationAfter/frmOperationReview.cs b/AIMS/OperationAfter/frmOperationReview.cs
index cb92128..b73eded 100644
--- a/AIMS/OperationAfter/frmOperationReview.cs
+++ b/AIMS/OperationAfter/frmOperationReview.cs
@@ -30,7 +30,7 @@ namespace AIMS.OperationAfter.UI
toolStripSeparator2.Visible = false;
tsbSet.Visible = false;
}
- dgv.DataSource = AIMS.OperationAfter.BLL.OperationReview.GetOperationReviewDataTable(txtMdrecNo.Text.Trim(), txtPatientName.Text.Trim(),
+ dgv.DataSource = BOperationReview.GetOperationReviewDataTable(txtMdrecNo.Text.Trim(), txtPatientName.Text.Trim(),
dtpOperationBeginTime.Value.ToString("yyyy-MM-dd"),
dtpOperationEndTime.Value.AddDays(1).ToString("yyyy-MM-dd")
);
@@ -80,10 +80,10 @@ namespace AIMS.OperationAfter.UI
int PatientId = int.Parse(dgv.CurrentRow.Cells["PatientId"].Value.ToString());
int ApplyId = int.Parse(dgv.CurrentRow.Cells["ApplyId"].Value.ToString());
- DataTable OperationDoingdt = AIMS.OperationDoing.AnasRecordBill.BLL.OperationRecord.GetOperationDoingDataTableByPatientId(PatientId, 2);
+ DataTable OperationDoingdt = BOperationRecord.GetOperationDoingDataTableByPatientId(PatientId, 2);
if (OperationDoingdt.Rows.Count > 0)
{
- AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecoverBillNew frmAnasRecord = new AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecoverBillNew();
+ AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew frmAnasRecord = new AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew();
frmAnasRecord.PatientId = PatientId;
frmAnasRecord.ApplyId = ApplyId;
frmAnasRecord.State = AIMSExtension.EditState.BROWSE;
@@ -108,7 +108,7 @@ namespace AIMS.OperationAfter.UI
private void btnFind_Click(object sender, EventArgs e)
{
- dgv.DataSource = AIMS.OperationAfter.BLL.OperationReview.GetOperationReviewDataTable(txtMdrecNo.Text.Trim(), txtPatientName.Text.Trim(),
+ dgv.DataSource = BOperationReview.GetOperationReviewDataTable(txtMdrecNo.Text.Trim(), txtPatientName.Text.Trim(),
dtpOperationBeginTime.Value.ToString("yyyy-MM-dd"),
dtpOperationEndTime.Value.AddDays(1).ToString("yyyy-MM-dd")
);
diff --git a/AIMS/OperationAfter/frmPhysiologyLargeScreen.cs b/AIMS/OperationAfter/frmPhysiologyLargeScreen.cs
index 5bda3f9..bfefd4e 100644
--- a/AIMS/OperationAfter/frmPhysiologyLargeScreen.cs
+++ b/AIMS/OperationAfter/frmPhysiologyLargeScreen.cs
@@ -8,6 +8,7 @@ using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
using AIMSModel;
+using AIMSBLL;
namespace AIMS.OperationAfter.UI
{
@@ -27,7 +28,7 @@ namespace AIMS.OperationAfter.UI
///
private void Initial()
{
- List rooms = DataDictionary.BLL.OperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'");
+ List rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'");
SetTabPages(rooms );
//DataTable dt = BLL.BPatients.GetPatientOperationInfo();
//FullUCControlData(dt);
@@ -38,7 +39,7 @@ namespace AIMS.OperationAfter.UI
///
/// 根据手术间数量设置有多少个TabPages,每个TabPages显示10个手术间
///
- private void SetTabPages(List list)
+ private void SetTabPages(List list)
{
tabControl.TabPages.Clear();
if (list.Count > 0 && list.Count <= 10)
@@ -68,10 +69,10 @@ namespace AIMS.OperationAfter.UI
///
///
///
- private void FullControlToTabPages(int tabPagesIndex, List roomlist)
+ private void FullControlToTabPages(int tabPagesIndex, List roomlist)
{
int i = 0, j = 0;
- foreach (DataDictionary.Model.OperationRoom room in roomlist)
+ foreach (OperationRoom room in roomlist)
{
AIMS.OremrUserControl.UCPatientPhysiology uc = new AIMS.OremrUserControl.UCPatientPhysiology();
uc.OperationRoom = room.Name;
diff --git a/AIMS/OperationAfter/frmQualityControlViewParent.cs b/AIMS/OperationAfter/frmQualityControlViewParent.cs
index 78ed2ec..b541e38 100644
--- a/AIMS/OperationAfter/frmQualityControlViewParent.cs
+++ b/AIMS/OperationAfter/frmQualityControlViewParent.cs
@@ -85,7 +85,7 @@ namespace AIMS.OperationAfter.UI
{
DateTime beginTime = Convert.ToDateTime(dtpSearchTime.Value.ToString("yyyy-MM-dd 00:00:00"));
DateTime endTime = Convert.ToDateTime(dtpSearchTime.Value.ToString("yyyy-MM-dd 23:59:59"));
- DataTable vPlanedOpeList = AIMS.OperationFront.BLL.OperationApply.GetOperationFrontDataTable(beginTime.ToString("yyyy-MM-dd 00:00:00"), endTime.ToString("yyyy-MM-dd 23:59:59"));
+ DataTable vPlanedOpeList = BOperationApply.GetOperationFrontDataTable(beginTime.ToString("yyyy-MM-dd 00:00:00"), endTime.ToString("yyyy-MM-dd 23:59:59"));
if (vPlanedOpeList.Rows.Count <= 0) return;
string roomname = "";
diff --git a/AIMS/OperationDoing/AnasRecordBill/BLL/FactAnaesthesiaMethod.cs b/AIMS/OperationDoing/AnasRecordBill/BLL/FactAnaesthesiaMethod.cs
deleted file mode 100644
index 344721d..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/BLL/FactAnaesthesiaMethod.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.BLL
-{
- public class FactAnaesthesiaMethod
- {
- public static void Add(Model.FactAnaesthesiaMethod FactAnaesthesiaMethodObj)
- {
- new DAL.FactAnaesthesiaMethodDB().Add(FactAnaesthesiaMethodObj);
- }
-
- public static void Update(Model.FactAnaesthesiaMethod FactAnaesthesiaMethodObj)
- {
- new DAL.FactAnaesthesiaMethodDB().Update(FactAnaesthesiaMethodObj);
- }
-
-
- public static void Delete(int PatientId)
- {
- new DAL.FactAnaesthesiaMethodDB().Delete(PatientId);
- }
-
- public static Model.FactAnaesthesiaMethod GetModel(int Id)
- {
- return new DAL.FactAnaesthesiaMethodDB().GetModel(Id);
- }
-
- public static DataTable GetDataTable(string strWhere)
- {
- return new DAL.FactAnaesthesiaMethodDB().GetDataTable(strWhere);
- }
-
- public static List GetFactAnaesthesiaMethodIdList(int PatientId)
- {
- return new DAL.FactAnaesthesiaMethodDB().GetFactAnaesthesiaMethodIdList(PatientId);
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/BLL/FactDiagnoseInfo.cs b/AIMS/OperationDoing/AnasRecordBill/BLL/FactDiagnoseInfo.cs
deleted file mode 100644
index 51f2923..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/BLL/FactDiagnoseInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.BLL
-{
- public class FactDiagnoseInfo
- {
- public static void Add(Model.FactDiagnoseInfo FactDiagnoseInfoObj)
- {
- new DAL.FactDiagnoseInfoDB().Add(FactDiagnoseInfoObj);
- }
-
- public static void Delete(int PatientId)
- {
- new DAL.FactDiagnoseInfoDB().Delete(PatientId);
- }
-
- public static Model.FactDiagnoseInfo GetModel(int Id)
- {
- return new DAL.FactDiagnoseInfoDB().GetModel(Id);
- }
-
- public static DataTable GetDataTable(string strWhere)
- {
- return new DAL.FactDiagnoseInfoDB().GetDataTable(strWhere);
- }
-
- public static List GetFactDiagnoseInfoIdList(int PatientId)
- {
- return new DAL.FactDiagnoseInfoDB().GetFactDiagnoseInfoIdList(PatientId);
- }
-
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/BLL/FactOperationBodyPosition.cs b/AIMS/OperationDoing/AnasRecordBill/BLL/FactOperationBodyPosition.cs
deleted file mode 100644
index 9d8c940..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/BLL/FactOperationBodyPosition.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.BLL
-{
- public class FactOperationBodyPosition
- {
- public static void Add(Model.FactOperationBodyPosition FactOperationBodyPositionObj)
- {
- new DAL.FactOperationBodyPositionDB().Add(FactOperationBodyPositionObj);
- }
-
- public static void Delete(int PatientId)
- {
- new DAL.FactOperationBodyPositionDB().Delete(PatientId);
- }
-
- public static Model.FactOperationBodyPosition GetModel(int Id)
- {
- return new DAL.FactOperationBodyPositionDB().GetModel(Id);
- }
-
- public static DataTable GetDataTable(string strWhere)
- {
- return new DAL.FactOperationBodyPositionDB().GetDataTable(strWhere);
- }
- public static List GetFactOperationBodyPositionIdList(int PatientId)
- {
- return new DAL.FactOperationBodyPositionDB().GetFactOperationBodyPositionIdList(PatientId);
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/BLL/FactOperationCutType.cs b/AIMS/OperationDoing/AnasRecordBill/BLL/FactOperationCutType.cs
deleted file mode 100644
index 2a6e0fa..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/BLL/FactOperationCutType.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.BLL
-{
- public class FactOperationCutType
- {
- public static void Add(Model.FactOperationCutType FactOperationCutTypeObj)
- {
- new DAL.FactOperationCutTypeDB().Add(FactOperationCutTypeObj);
- }
- public static void Delete(int PatientId)
- {
- new DAL.FactOperationCutTypeDB().Delete(PatientId);
- }
- public static Model.FactOperationCutType GetModel(int Id)
- {
- return new DAL.FactOperationCutTypeDB().GetModel(Id);
- }
- public static DataTable GetDataTable(string strWhere)
- {
- return new DAL.FactOperationCutTypeDB().GetDataTable(strWhere);
- }
- public static List GetFactOperationCutTypeIdList(int PatientId)
- {
- return new DAL.FactOperationCutTypeDB().GetFactOperationCutTypeIdList(PatientId);
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/BLL/FactOperationInfo.cs b/AIMS/OperationDoing/AnasRecordBill/BLL/FactOperationInfo.cs
deleted file mode 100644
index 9a2f5ac..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/BLL/FactOperationInfo.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.BLL
-{
- public class FactOperationInfo
- {
- public static void Add(Model.FactOperationInfo FactOperationInfoObj)
- {
- new DAL.FactOperationInfoDB().Add(FactOperationInfoObj);
- }
-
- public static void Delete(int PatientId)
- {
- new DAL.FactOperationInfoDB().Delete(PatientId);
- }
-
- public static Model.FactOperationInfo GetModel(int Id)
- {
- return new DAL.FactOperationInfoDB().GetModel(Id);
- }
-
- public static DataTable GetDataTable(string strWhere)
- {
- return new DAL.FactOperationInfoDB().GetDataTable(strWhere);
- }
- public static List GetFactOperationInfoIdList(int PatientId)
- {
- return new DAL.FactOperationInfoDB().GetFactOperationInfoIdList(PatientId);
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/BLL/FactOperationPosition.cs b/AIMS/OperationDoing/AnasRecordBill/BLL/FactOperationPosition.cs
deleted file mode 100644
index edcb7af..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/BLL/FactOperationPosition.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.BLL
-{
- class FactOperationPosition
- {
- public static void Add(Model.FactOperationPosition FactOperationPositionObj)
- {
- new DAL.FactOperationPositionDB().Add(FactOperationPositionObj);
- }
- public static void Delete(int PatientId)
- {
- new DAL.FactOperationPositionDB().Delete(PatientId);
- }
- public static Model.FactOperationPosition GetModel(int Id)
- {
- return new DAL.FactOperationPositionDB().GetModel(Id);
- }
- public static DataTable GetDataTable(string strWhere)
- {
- return new DAL.FactOperationPositionDB().GetDataTable(strWhere);
- }
- public static List GetFactOperationPositionIdList(int PatientId)
- {
- return new DAL.FactOperationPositionDB().GetFactOperationPositionIdList(PatientId);
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/BLL/FactPersonDuty.cs b/AIMS/OperationDoing/AnasRecordBill/BLL/FactPersonDuty.cs
deleted file mode 100644
index fc28d2f..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/BLL/FactPersonDuty.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.BLL
-{
- public class FactPersonDuty
- {
- public static void Add(Model.FactPersonDuty FactPersonDutyObj)
- {
- new DAL.FactPersonDutyDB().Add(FactPersonDutyObj);
- }
-
- public static void Delete(int PatientId, int PersonDutyId)
- {
- new DAL.FactPersonDutyDB().Delete(PatientId, PersonDutyId);
- }
-
- public static Model.FactPersonDuty GetModel(int Id)
- {
- return new DAL.FactPersonDutyDB().GetModel(Id);
- }
-
- public static DataTable GetDataTable(string strWhere)
- {
- return new DAL.FactPersonDutyDB().GetDataTable(strWhere);
- }
- public static List GetPersonIdList(int PatientId, int PersonDutyId)
- {
- return new DAL.FactPersonDutyDB().GetPersonIdList(PatientId, PersonDutyId);
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/BLL/FillAnasRecordBillData.cs b/AIMS/OperationDoing/AnasRecordBill/BLL/FillAnasRecordBillData.cs
deleted file mode 100644
index 24f1ebe..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/BLL/FillAnasRecordBillData.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-using AIMS.OperationDoing.AnasRecordBill.Model;
-using DrawGraph;
-using AIMSBLL;
-
-namespace AIMS.OperationDoing.AnasRecordBill.BLL
-{
- public class FillAnasRecordBillData
- {
- public static DateTime GetMaxTime(int PatientId,int Type)
- {
- return new DAL.FillAnasRecordBillDataDB().GetMaxTime(PatientId, Type);
- }
- public static int GetDataCount(int RecorId,int PatientId, int Type)
- {
- return new DAL.FillAnasRecordBillDataDB().GetDataCount( RecorId,PatientId, Type);
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/BLL/InRoom.cs b/AIMS/OperationDoing/AnasRecordBill/BLL/InRoom.cs
deleted file mode 100644
index 113959c..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/BLL/InRoom.cs
+++ /dev/null
@@ -1,137 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-using DrawGraph;
-using AIMSBLL;
-
-namespace AIMS.OperationDoing.AnasRecordBill.BLL
-{
- public class InRoom
- {
- public static void UpdateApplyState(int PatientId, int ApplyId)
- {
- try
- {
- HelperDB.DbHelperSQL.BeginTrans();
- AIMS.OperationFront.BLL.OperationApply.UpdateApplyState(ApplyId, 6); //修改状态为手术中
-
- //手术诊断
- List ApplyDiagnoseIdList = AIMS.OperationFront.BLL.ApplyDiagnoseInfo.GetApplyDiagnoseIdList(ApplyId);
- for (int i = 0; i < ApplyDiagnoseIdList.Count; i++)
- {
- OperationDoing.AnasRecordBill.Model.FactDiagnoseInfo FactDiagnoseInfoObj = new OperationDoing.AnasRecordBill.Model.FactDiagnoseInfo();
- FactDiagnoseInfoObj.PatientId = PatientId;
- FactDiagnoseInfoObj.ApplyId = ApplyId;
- FactDiagnoseInfoObj.DiagnoseId = ApplyDiagnoseIdList[i];
- FactDiagnoseInfoObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
- FactDiagnoseInfoObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
- FactDiagnoseInfoObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
- OperationDoing.AnasRecordBill.BLL.FactDiagnoseInfo.Add(FactDiagnoseInfoObj);
- }
- //实施手术
- List ApplyOperationInfoList = AIMS.OperationFront.BLL.ApplyOperationInfo.GetApplyOperationIdList(ApplyId);
- for (int i = 0; i < ApplyOperationInfoList.Count; i++)
- {
- OperationDoing.AnasRecordBill.Model.FactOperationInfo FactOperationInfoObj = new OperationDoing.AnasRecordBill.Model.FactOperationInfo();
- FactOperationInfoObj.PatientId = PatientId;
- FactOperationInfoObj.ApplyId = ApplyId;
- FactOperationInfoObj.OperationId = ApplyOperationInfoList[i].OperationId;
- FactOperationInfoObj.OperationName = ApplyOperationInfoList[i].OperationName;
- FactOperationInfoObj.LeftRemark = ApplyOperationInfoList[i].LeftRemark;
- FactOperationInfoObj.RightRemark = ApplyOperationInfoList[i].RightRemark;
- FactOperationInfoObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
- FactOperationInfoObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
- FactOperationInfoObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
- OperationDoing.AnasRecordBill.BLL.FactOperationInfo.Add(FactOperationInfoObj);
- }
- //实施麻醉
- List ApplyAnaesthesiaMethodList = AIMS.OperationFront.BLL.ApplyAnaesthesiaMethod.GetApplyAnaesthesiaMethodList(ApplyId);
- for (int i = 0; i < ApplyAnaesthesiaMethodList.Count; i++)
- {
- OperationDoing.AnasRecordBill.Model.FactAnaesthesiaMethod FactAnaesthesiaMethodObj = new Model.FactAnaesthesiaMethod();
- FactAnaesthesiaMethodObj.PatientId = PatientId;
- FactAnaesthesiaMethodObj.ApplyId = ApplyId;
- FactAnaesthesiaMethodObj.AnaesthesiaMethodId = ApplyAnaesthesiaMethodList[i];
- FactAnaesthesiaMethodObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
- FactAnaesthesiaMethodObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
- FactAnaesthesiaMethodObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
- OperationDoing.AnasRecordBill.BLL.FactAnaesthesiaMethod.Add(FactAnaesthesiaMethodObj);
- }
-
- //手术部位
- List ApplyOperationPositionList = AIMS.OperationFront.BLL.ApplyOperationPosition.GetApplyOperationPositionIdList(ApplyId);
- for (int i = 0; i < ApplyOperationPositionList.Count; i++)
- {
- OperationDoing.AnasRecordBill.Model.FactOperationPosition FactOperationPositionObj = new Model.FactOperationPosition();
- FactOperationPositionObj.PatientId = PatientId;
- FactOperationPositionObj.ApplyId = ApplyId;
- FactOperationPositionObj.OperationPositionId = ApplyOperationPositionList[i];
- FactOperationPositionObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
- FactOperationPositionObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
- FactOperationPositionObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
- OperationDoing.AnasRecordBill.BLL.FactOperationPosition.Add(FactOperationPositionObj);
- }
-
- //手术切口
- List ApplyOperationCutTypeList = AIMS.OperationFront.BLL.ApplyOperationCutType.GetApplyOperationCutTypeIdList(ApplyId);
- for (int i = 0; i < ApplyOperationCutTypeList.Count; i++)
- {
- OperationDoing.AnasRecordBill.Model.FactOperationCutType FactOperationCutTypeObj = new Model.FactOperationCutType();
- FactOperationCutTypeObj.PatientId = PatientId;
- FactOperationCutTypeObj.ApplyId = ApplyId;
- FactOperationCutTypeObj.OperationCutTypeId = ApplyOperationCutTypeList[i];
- FactOperationCutTypeObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
- FactOperationCutTypeObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
- FactOperationCutTypeObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
- OperationDoing.AnasRecordBill.BLL.FactOperationCutType.Add(FactOperationCutTypeObj);
- }
- //医生信息
-
- DataTable dt = OperationFront.BLL.ApplyPersonDuty.GetPersonDataTable(ApplyId);
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- Model.FactPersonDuty FactPersonDutyObj = new Model.FactPersonDuty();
- FactPersonDutyObj.PatientId = PatientId;
- FactPersonDutyObj.ApplyId = ApplyId;
- FactPersonDutyObj.PersonDutyId = int.Parse(dt.Rows[i]["PersonDutyId"].ToString());
- FactPersonDutyObj.PersonId = int.Parse(dt.Rows[i]["PersonId"].ToString());
- FactPersonDutyObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
- FactPersonDutyObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
- FactPersonDutyObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
- BLL.FactPersonDuty.Add(FactPersonDutyObj);
- }
-
- //增加入室事件
- DataDictionary.Model.Events EventsObj = DataDictionary.BLL.Events.GetModelByName("入室");
-
- if (EventsObj.Name != null)
- {
- FactEvents FactEventsObj = new FactEvents();
- FactEventsObj.EventId = EventsObj.Id;
- FactEventsObj.EventTypeId = 1;
- FactEventsObj.EventBeginTime = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm:00"));
- FactEventsObj.EventEndTime = FactEventsObj.EventBeginTime;
- FactEventsObj.IsContinue = 0;
- FactEventsObj.PatientId = PatientId;
- FactEventsObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
- FactEventsObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
- FactEventsObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
-
- BFactEvents.Add(FactEventsObj);
- }
-
-
-
- HelperDB.DbHelperSQL.CommitTrans();
-
- }
- catch
- {
- HelperDB.DbHelperSQL.RollbackTrans();
- }
- }
-
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/BLL/OperationRecord.cs b/AIMS/OperationDoing/AnasRecordBill/BLL/OperationRecord.cs
deleted file mode 100644
index 84d3a79..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/BLL/OperationRecord.cs
+++ /dev/null
@@ -1,101 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-using System.Windows.Forms;
-namespace AIMS.OperationDoing.AnasRecordBill.BLL
-{
- public class OperationRecord
- {
- public static int AddTitleTime(int PatientId, int ApplyId, int RecoverId, string TableColumnName, DateTime Time,int RoomId)
- {
- return new DAL.OperationRecordDB().AddTitleTime(PatientId, ApplyId, RecoverId, TableColumnName, Time, RoomId);
- }
- public static void UpdateTitleTime(int PatientId, string TableColumnName, DateTime Time)
- {
- new DAL.OperationRecordDB().UpdateTitleTime(PatientId, TableColumnName, Time);
- }
-
- public static Model.TitleTime GetTitleTime(int PatientId,int RecoverId)
- {
- return new DAL.OperationRecordDB().GetTitleTime(PatientId, RecoverId);
- }
- public static void Update(Model.OperationRecord OperationRecordObj)
- {
- new DAL.OperationRecordDB().Update(OperationRecordObj);
- }
- public static void UpdateState(int PatientId, int TypeId, int State)
- {
- new DAL.OperationRecordDB().UpdateState(PatientId,TypeId, State);
- }
- public static void DeleteOperationRecordData(int RecorId,int PatientId, int TypeId)
- {
- new DAL.OperationRecordDB().DeleteOperationRecordData(RecorId,PatientId, TypeId);
- }
- public static void DeleteOperationRecorvreData(int PatientId, int TypeId)
- {
- new DAL.OperationRecordDB().DeleteOperationRecorvreData(PatientId, TypeId);
- }
- public static void DeleteEvent(int PatientId, int eventId)
- {
- new DAL.OperationRecordDB().DeleteEvent(PatientId, eventId);
- }
- public static Model.OperationRecord GetModel(int PatientId)
- {
- return new DAL.OperationRecordDB().GetModel(PatientId);
- }
- public static DataTable GetOperationDoingDataTableByPatientId(int PatientId, int TypeId)
- {
- return new DAL.OperationRecordDB().GetOperationDoingMainInfo(PatientId, TypeId);
- }
- public static bool ValidInput(int PatientId, int TypeId)
- {
-
- bool result = false;
- DataTable dt = new DAL.OperationRecordDB().GetOperationDoingMainInfo(PatientId, TypeId);
- if (dt.Rows[0]["InRoomTime"].ToString().Length < 1)
- {
- MessageBox.Show("入室不能为空!");
- }
- else if (dt.Rows[0]["OutRoomTime"].ToString().Length < 1)
- {
- MessageBox.Show("出室不能为空!");
- }
- else if (dt.Rows[0]["OperationBeginTime"].ToString().Length < 1)
- {
- MessageBox.Show("手术开始时间不能为空!");
- }
- else if (dt.Rows[0]["OperationEndTime"].ToString().Length < 1)
- {
- MessageBox.Show("手术结束时间不能为空!");
- }
- else if (dt.Rows[0]["DiagnoseInfoName"].ToString().Length < 1)
- {
- MessageBox.Show("术后诊断不能为空!");
- }
- else if (dt.Rows[0]["OperationInfoName"].ToString().Length < 1)
- {
- MessageBox.Show("实施手术不能为空!");
- }
- else if (dt.Rows[0]["AnaesthesiaMethodName"].ToString().Length < 1)
- {
- MessageBox.Show("麻醉方式不能为空!");
- }
- else if (dt.Rows[0]["OperationDoctor"].ToString().Length < 1)
- {
- MessageBox.Show("手术医生不能为空!");
- }
- else if (dt.Rows[0]["AnesthesiaDoctor"].ToString().Length < 1)
- {
- MessageBox.Show("麻醉医生不能为空!");
- }
- else
- {
- result = true;
- }
- return result;
- }
- }
-}
-
diff --git a/AIMS/OperationDoing/AnasRecordBill/BLL/SelectPatient.cs b/AIMS/OperationDoing/AnasRecordBill/BLL/SelectPatient.cs
deleted file mode 100644
index 9965343..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/BLL/SelectPatient.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.BLL
-{
- public class SelectPatient
- {
- public static DataTable GetSelectPatientDataTable(DateTime BeginDate)
- {
- return new DAL.SelectPatient().GetSelectPatientDataTable(BeginDate);
- }
-
- public static DataTable GetSelectPatientDataTable(DateTime BeginDate,string Room)
- {
- return new DAL.SelectPatient().GetSelectPatientDataTable(BeginDate,Room);
- }
-
- public static DataTable GetRelieveLockingPatientDataTable(DateTime BeginDate)
- {
- return new DAL.SelectPatient().GetRelieveLockingPatientDataTable(BeginDate);
- }
- public static DataTable GetRelieveLockingPatientDataTable(DateTime BeginDate,string Room)
- {
- return new DAL.SelectPatient().GetRelieveLockingPatientDataTable(BeginDate,Room);
- }
- public static DataTable GetRecoverPatientDataTable(DateTime BeginDate )
- {
- return new DAL.SelectPatient().GetRecoverPatientDataTable(BeginDate);
- }
- public static DataTable GetSelectPatientDataTable(DateTime BeginDate, DateTime EndDate, bool isLoginPerson, string person, bool isEnOpe)
- {
- return new DAL.SelectPatient().GetSelectPatientDataTable(BeginDate, EndDate, isLoginPerson, person, isEnOpe);
- }
- public static DataTable GetSelectPatientChart()
- {
- return new DAL.SelectPatient().GetSelectPatientChart();
- }
- public static DataTable GetSelectPatientChart2()
- {
- return new DAL.SelectPatient().GetSelectPatientChart2();
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/DAL/AddPhysioParamDB.cs b/AIMS/OperationDoing/AnasRecordBill/DAL/AddPhysioParamDB.cs
deleted file mode 100644
index b3b474b..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/DAL/AddPhysioParamDB.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.DAL
-{
- public class AddPhysioParamDB
- {
- public List AddPhysioParamList()
- {
- List AddPhysioParamList = new List();
- string strSql = "SELECT pc.Id, pc.Name, pc.Color, pc.imgPath, pc.decHighLimit, pc.decLowLimit,pc.IsValid" +
- " FROM PhysioDataConfig pc WHERE pc.IsValid=1";
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql);
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- Model.AddPhysioParam AddPhysioParam = new Model.AddPhysioParam();
- AddPhysioParam.Id = int.Parse(dt.Rows[i]["Id"].ToString());
- AddPhysioParam.Name = dt.Rows[i]["Name"].ToString();
- AddPhysioParam.ImgPath = dt.Rows[i]["imgPath"].ToString();
- AddPhysioParam.Color = dt.Rows[i]["Color"].ToString();
- AddPhysioParam.DecHighLimit = double.Parse(dt.Rows[i]["decHighLimit"].ToString());
- AddPhysioParam.DecLowLimit = double.Parse(dt.Rows[i]["decLowLimit"].ToString());
- AddPhysioParamList.Add(AddPhysioParam);
- }
- return AddPhysioParamList;
- }
- public List AddOtherPhysioParamList()
- {
- List AddPhysioParamList = new List();
- string strSql = "SELECT pc.Id, pc.Name, pc.Color, pc.imgPath, pc.decHighLimit, pc.decLowLimit,pc.IsValid" +
- " FROM PhysioDataConfig pc WHERE pc.NAME IN ('入室','麻醉开始','手术开始','手术结束','麻醉完成','出室','插管','拔管')";
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql);
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- Model.AddPhysioParam AddPhysioParam = new Model.AddPhysioParam();
- AddPhysioParam.Id = int.Parse(dt.Rows[i]["Id"].ToString());
- AddPhysioParam.Name = dt.Rows[i]["Name"].ToString();
- AddPhysioParam.ImgPath = dt.Rows[i]["imgPath"].ToString();
- AddPhysioParam.Color = dt.Rows[i]["Color"].ToString();
- AddPhysioParam.DecHighLimit = double.Parse(dt.Rows[i]["decHighLimit"].ToString());
- AddPhysioParam.DecLowLimit = double.Parse(dt.Rows[i]["decLowLimit"].ToString());
- AddPhysioParamList.Add(AddPhysioParam);
- }
- return AddPhysioParamList;
- }
-
- public DataTable GetPhysioData(int PatientId, int PhysioDataType)
- {
- string strSql = "SELECT p.PhysioDataConfigId, pdc.Name, p.RecordTime,p.VALUE FROM dbo.PhysioData p " +
- "LEFT JOIN PhysioDataConfig pdc ON pdc.Id = p.PhysioDataConfigId where p.PatientId='" + PatientId + "' and p.PhysioDataType='" + PhysioDataType + "' ORDER BY p.RecordTime";
- return HelperDB.DbHelperSQL.GetDataTable(strSql); ;
- }
-
- public void Add(Model.PhysioData PhysioDataObj)
- {
- StringBuilder strSql = new StringBuilder();
- strSql.Append("insert into [PhysioData](");
- strSql.Append("PatientId,PhysioDataType,PhysioDataConfigId,RecordTime,Value,IsValid,OperatorNo,OperatorName,OperateDate");
- strSql.Append(")");
- strSql.Append(" values (");
- strSql.Append("" + PhysioDataObj.PatientId + ",");
- strSql.Append("" + PhysioDataObj.PhysioDataType + ",");
- strSql.Append("" + PhysioDataObj.PhysioParamID + ",");
- strSql.Append("'" + PhysioDataObj.RecordTime + "',");
- strSql.Append("" + PhysioDataObj.Value + ",");
- strSql.Append("" + 1 + ",");
- strSql.Append("'" + AIMSExtension.PublicMethod.OperatorNo + "',");
- strSql.Append("'" + AIMSExtension.PublicMethod.OperatorName + "',");
- strSql.Append("'" + AIMSExtension.PublicMethod.SystemDate() + "'");
- strSql.Append(")");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/DAL/FactAnaesthesiaMethodDB.cs b/AIMS/OperationDoing/AnasRecordBill/DAL/FactAnaesthesiaMethodDB.cs
deleted file mode 100644
index 2c6d92d..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/DAL/FactAnaesthesiaMethodDB.cs
+++ /dev/null
@@ -1,113 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.DAL
-{
- public class FactAnaesthesiaMethodDB
- {
- public void Add(Model.FactAnaesthesiaMethod FactAnaesthesiaMethodObj)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("insert into [FactAnaesthesiaMethod](");
- strSql.Append("PatientId,ApplyId,AnaesthesiaMethodId,OperatorNo,OperatorName,OperateDate");
- strSql.Append(")");
- strSql.Append(" values (");
- strSql.Append(""+FactAnaesthesiaMethodObj.PatientId+",");
- strSql.Append(""+FactAnaesthesiaMethodObj.ApplyId+",");
- strSql.Append(""+FactAnaesthesiaMethodObj.AnaesthesiaMethodId+",");
- strSql.Append("'"+FactAnaesthesiaMethodObj.OperatorNo+"',");
- strSql.Append("'"+FactAnaesthesiaMethodObj.OperatorName+"',");
- strSql.Append("'"+FactAnaesthesiaMethodObj.OperateDate+"'");
- strSql.Append(")");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void Update(Model.FactAnaesthesiaMethod FactAnaesthesiaMethodObj)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("update FactAnaesthesiaMethod set ");
- strSql.Append("PatientId="+FactAnaesthesiaMethodObj.PatientId+",");
- strSql.Append("ApplyId="+FactAnaesthesiaMethodObj.ApplyId+",");
- strSql.Append("AnaesthesiaMethodId="+FactAnaesthesiaMethodObj.AnaesthesiaMethodId+",");
- strSql.Append("OperatorNo='"+FactAnaesthesiaMethodObj.OperatorNo+"',");
- strSql.Append("OperatorName='"+FactAnaesthesiaMethodObj.OperatorName+"',");
- strSql.Append("OperateDate='"+FactAnaesthesiaMethodObj.OperateDate+"'");
- strSql.Append(" where Id="+FactAnaesthesiaMethodObj.Id+" ");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void Delete(int PatientId)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("delete FactAnaesthesiaMethod ");
- strSql.Append(" where PatientId=" + PatientId + "");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public Model.FactAnaesthesiaMethod GetModel(int Id)
- {
- Model.FactAnaesthesiaMethod FactAnaesthesiaMethodObj = new Model.FactAnaesthesiaMethod();
- StringBuilder strSql=new StringBuilder();
- strSql.Append("select ");
- strSql.Append("Id,PatientId,ApplyId,AnaesthesiaMethodId,OperatorNo,OperatorName,OperateDate ");
- strSql.Append(" from FactAnaesthesiaMethod ");
- strSql.Append(" where Id="+Id+"" );
- DataSet ds = HelperDB.DbHelperSQL.GetDataSet(strSql.ToString());
- if(ds.Tables[0].Rows.Count>0)
- {
- if(ds.Tables[0].Rows[0]["Id"].ToString()!="")
- {
- FactAnaesthesiaMethodObj.Id = int.Parse(ds.Tables[0].Rows[0]["Id"].ToString());
- }
- if(ds.Tables[0].Rows[0]["PatientId"].ToString()!="")
- {
- FactAnaesthesiaMethodObj.PatientId = int.Parse(ds.Tables[0].Rows[0]["PatientId"].ToString());
- }
- if(ds.Tables[0].Rows[0]["ApplyId"].ToString()!="")
- {
- FactAnaesthesiaMethodObj.ApplyId = int.Parse(ds.Tables[0].Rows[0]["ApplyId"].ToString());
- }
- if(ds.Tables[0].Rows[0]["AnaesthesiaMethodId"].ToString()!="")
- {
- FactAnaesthesiaMethodObj.AnaesthesiaMethodId = int.Parse(ds.Tables[0].Rows[0]["AnaesthesiaMethodId"].ToString());
- }
- FactAnaesthesiaMethodObj.OperatorNo = ds.Tables[0].Rows[0]["OperatorNo"].ToString();
- FactAnaesthesiaMethodObj.OperatorName = ds.Tables[0].Rows[0]["OperatorName"].ToString();
- if(ds.Tables[0].Rows[0]["OperateDate"].ToString()!="")
- {
- FactAnaesthesiaMethodObj.OperateDate = DateTime.Parse(ds.Tables[0].Rows[0]["OperateDate"].ToString());
- }
- }
- return FactAnaesthesiaMethodObj;
- }
-
- public DataTable GetDataTable(string strWhere)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("select [Id],[PatientId],[ApplyId],[AnaesthesiaMethodId],[OperatorNo],[OperatorName],[OperateDate] ");
- strSql.Append(" FROM FactAnaesthesiaMethod ");
- if(strWhere.Trim()!="")
- {
-
- strSql.Append(" where "+strWhere);
- }
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public List GetFactAnaesthesiaMethodIdList(int PatientId)
- {
- List AnaesthesiaMethodIdList = new List();
- string strSql = "SELECT AnaesthesiaMethodId FROM FactAnaesthesiaMethod WHERE PatientId='" + PatientId + "'";
-
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- AnaesthesiaMethodIdList.Add(int.Parse(dt.Rows[i]["AnaesthesiaMethodId"].ToString()));
-
- }
- return AnaesthesiaMethodIdList;
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/DAL/FactDiagnoseInfoDB.cs b/AIMS/OperationDoing/AnasRecordBill/DAL/FactDiagnoseInfoDB.cs
deleted file mode 100644
index 70513c0..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/DAL/FactDiagnoseInfoDB.cs
+++ /dev/null
@@ -1,100 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.DAL
-{
- public class FactDiagnoseInfoDB
- {
- public void Add(Model.FactDiagnoseInfo FactDiagnoseInfoObj)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("insert into [FactDiagnoseInfo](");
- strSql.Append("PatientId,ApplyId,DiagnoseId,OperatorNo,OperatorName,OperateDate");
- strSql.Append(")");
- strSql.Append(" values (");
- strSql.Append(""+FactDiagnoseInfoObj.PatientId+",");
- strSql.Append(""+FactDiagnoseInfoObj.ApplyId+",");
- strSql.Append(""+FactDiagnoseInfoObj.DiagnoseId+",");
- strSql.Append("'"+FactDiagnoseInfoObj.OperatorNo+"',");
- strSql.Append("'"+FactDiagnoseInfoObj.OperatorName+"',");
- strSql.Append("'"+FactDiagnoseInfoObj.OperateDate+"'");
- strSql.Append(")");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void Delete(int PatientId)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("delete FactDiagnoseInfo ");
- strSql.Append(" where PatientId="+PatientId+"" );
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public Model.FactDiagnoseInfo GetModel(int Id)
- {
- Model.FactDiagnoseInfo FactDiagnoseInfoObj = new Model.FactDiagnoseInfo();
- StringBuilder strSql=new StringBuilder();
- strSql.Append("select ");
- strSql.Append("Id,PatientId,ApplyId,DiagnoseId,OperatorNo,OperatorName,OperateDate ");
- strSql.Append(" from FactDiagnoseInfo ");
- strSql.Append(" where Id="+Id+"" );
- DataSet ds = HelperDB.DbHelperSQL.GetDataSet(strSql.ToString());
- if(ds.Tables[0].Rows.Count>0)
- {
- if(ds.Tables[0].Rows[0]["Id"].ToString()!="")
- {
- FactDiagnoseInfoObj.Id = int.Parse(ds.Tables[0].Rows[0]["Id"].ToString());
- }
- if(ds.Tables[0].Rows[0]["PatientId"].ToString()!="")
- {
- FactDiagnoseInfoObj.PatientId = int.Parse(ds.Tables[0].Rows[0]["PatientId"].ToString());
- }
- if(ds.Tables[0].Rows[0]["ApplyId"].ToString()!="")
- {
- FactDiagnoseInfoObj.ApplyId = int.Parse(ds.Tables[0].Rows[0]["ApplyId"].ToString());
- }
- if(ds.Tables[0].Rows[0]["DiagnoseId"].ToString()!="")
- {
- FactDiagnoseInfoObj.DiagnoseId = int.Parse(ds.Tables[0].Rows[0]["DiagnoseId"].ToString());
- }
- FactDiagnoseInfoObj.OperatorNo = ds.Tables[0].Rows[0]["OperatorNo"].ToString();
- FactDiagnoseInfoObj.OperatorName = ds.Tables[0].Rows[0]["OperatorName"].ToString();
- if(ds.Tables[0].Rows[0]["OperateDate"].ToString()!="")
- {
- FactDiagnoseInfoObj.OperateDate = DateTime.Parse(ds.Tables[0].Rows[0]["OperateDate"].ToString());
- }
- }
- return FactDiagnoseInfoObj;
- }
-
- public DataTable GetDataTable(string strWhere)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("select [Id],[PatientId],[ApplyId],[DiagnoseId],[OperatorNo],[OperatorName],[OperateDate] ");
- strSql.Append(" FROM FactDiagnoseInfo ");
- if(strWhere.Trim()!="")
- {
-
- strSql.Append(" where "+strWhere);
- }
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public List GetFactDiagnoseInfoIdList(int PatientId)
- {
- List DiagnoseIdList = new List();
- string strSql = "SELECT DiagnoseId FROM FactDiagnoseInfo WHERE PatientId='" + PatientId + "'";
-
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- DiagnoseIdList.Add(int.Parse(dt.Rows[i]["DiagnoseId"].ToString()));
-
- }
- return DiagnoseIdList;
- }
-
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/DAL/FactOperationBodyPositionDB.cs b/AIMS/OperationDoing/AnasRecordBill/DAL/FactOperationBodyPositionDB.cs
deleted file mode 100644
index da613b8..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/DAL/FactOperationBodyPositionDB.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.DAL
-{
- public class FactOperationBodyPositionDB
- {
- public void Add(Model.FactOperationBodyPosition FactOperationBodyPositionObj)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("insert into [FactOperationBodyPosition](");
- strSql.Append("PatientId,ApplyId,OperationBodyPositionId,OperatorNo,OperatorName,OperateDate");
- strSql.Append(")");
- strSql.Append(" values (");
- strSql.Append(""+FactOperationBodyPositionObj.PatientId+",");
- strSql.Append(""+FactOperationBodyPositionObj.ApplyId+",");
- strSql.Append(""+FactOperationBodyPositionObj.OperationBodyPositionId+",");
- strSql.Append("'"+FactOperationBodyPositionObj.OperatorNo+"',");
- strSql.Append("'"+FactOperationBodyPositionObj.OperatorName+"',");
- strSql.Append("'"+FactOperationBodyPositionObj.OperateDate+"'");
- strSql.Append(")");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void Delete(int PatientId)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("delete FactOperationBodyPosition ");
- strSql.Append(" where PatientId="+PatientId+"" );
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public Model.FactOperationBodyPosition GetModel(int Id)
- {
- StringBuilder strSql=new StringBuilder();
- Model.FactOperationBodyPosition FactOperationBodyPositionObj = new Model.FactOperationBodyPosition();
- strSql.Append("select ");
- strSql.Append("Id,PatientId,ApplyId,OperationBodyPositionId,OperatorNo,OperatorName,OperateDate ");
- strSql.Append(" from FactOperationBodyPosition ");
- strSql.Append(" where Id="+Id+"" );
- DataSet ds = HelperDB.DbHelperSQL.GetDataSet(strSql.ToString());
- if(ds.Tables[0].Rows.Count>0)
- {
- if(ds.Tables[0].Rows[0]["Id"].ToString()!="")
- {
- FactOperationBodyPositionObj.Id = int.Parse(ds.Tables[0].Rows[0]["Id"].ToString());
- }
- if(ds.Tables[0].Rows[0]["PatientId"].ToString()!="")
- {
- FactOperationBodyPositionObj.PatientId = int.Parse(ds.Tables[0].Rows[0]["PatientId"].ToString());
- }
- if(ds.Tables[0].Rows[0]["ApplyId"].ToString()!="")
- {
- FactOperationBodyPositionObj.ApplyId = int.Parse(ds.Tables[0].Rows[0]["ApplyId"].ToString());
- }
- if(ds.Tables[0].Rows[0]["OperationBodyPositionId"].ToString()!="")
- {
- FactOperationBodyPositionObj.OperationBodyPositionId = int.Parse(ds.Tables[0].Rows[0]["OperationBodyPositionId"].ToString());
- }
- FactOperationBodyPositionObj.OperatorNo = ds.Tables[0].Rows[0]["OperatorNo"].ToString();
- FactOperationBodyPositionObj.OperatorName = ds.Tables[0].Rows[0]["OperatorName"].ToString();
- if(ds.Tables[0].Rows[0]["OperateDate"].ToString()!="")
- {
- FactOperationBodyPositionObj.OperateDate = DateTime.Parse(ds.Tables[0].Rows[0]["OperateDate"].ToString());
- }
- }
- return FactOperationBodyPositionObj;
- }
-
- public DataTable GetDataTable(string strWhere)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("select [Id],[PatientId],[ApplyId],[OperationBodyPositionId],[OperatorNo],[OperatorName],[OperateDate] ");
- strSql.Append(" FROM FactOperationBodyPosition ");
- if(strWhere.Trim()!="")
- {
-
- strSql.Append(" where "+strWhere);
- }
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public List GetFactOperationBodyPositionIdList(int PatientId)
- {
- List FactOperationBodyPositionIdList = new List();
- string strSql = "SELECT OperationBodyPositionId FROM FactOperationBodyPosition WHERE PatientId='" + PatientId + "'";
-
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- FactOperationBodyPositionIdList.Add(int.Parse(dt.Rows[i]["OperationBodyPositionId"].ToString()));
-
- }
- return FactOperationBodyPositionIdList;
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/DAL/FactOperationCutTypeDB.cs b/AIMS/OperationDoing/AnasRecordBill/DAL/FactOperationCutTypeDB.cs
deleted file mode 100644
index 955472a..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/DAL/FactOperationCutTypeDB.cs
+++ /dev/null
@@ -1,96 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.DAL
-{
- public class FactOperationCutTypeDB
- {
- public void Add(Model.FactOperationCutType FactOperationCutTypeObj)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("insert into [FactOperationCutType](");
- strSql.Append("PatientId,ApplyId,OperationCutTypeId,OperatorNo,OperatorName,OperateDate");
- strSql.Append(")");
- strSql.Append(" values (");
- strSql.Append(""+FactOperationCutTypeObj.PatientId+",");
- strSql.Append(""+FactOperationCutTypeObj.ApplyId+",");
- strSql.Append(""+FactOperationCutTypeObj.OperationCutTypeId+",");
- strSql.Append("'"+FactOperationCutTypeObj.OperatorNo+"',");
- strSql.Append("'"+FactOperationCutTypeObj.OperatorName+"',");
- strSql.Append("'"+FactOperationCutTypeObj.OperateDate+"'");
- strSql.Append(")");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
- public void Delete(int PatientId)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("delete FactOperationCutType ");
- strSql.Append(" where PatientId="+PatientId+"" );
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
- public Model.FactOperationCutType GetModel(int Id)
- {
- Model.FactOperationCutType FactOperationCutTypeObj = new Model.FactOperationCutType();
- StringBuilder strSql=new StringBuilder();
- strSql.Append("select ");
- strSql.Append("Id,PatientId,ApplyId,OperationCutTypeId,OperatorNo,OperatorName,OperateDate ");
- strSql.Append(" from FactOperationCutType ");
- strSql.Append(" where Id="+Id+"" );
- DataSet ds = HelperDB.DbHelperSQL.GetDataSet(strSql.ToString());
- if(ds.Tables[0].Rows.Count>0)
- {
- if(ds.Tables[0].Rows[0]["Id"].ToString()!="")
- {
- FactOperationCutTypeObj.Id = int.Parse(ds.Tables[0].Rows[0]["Id"].ToString());
- }
- if(ds.Tables[0].Rows[0]["PatientId"].ToString()!="")
- {
- FactOperationCutTypeObj.PatientId = int.Parse(ds.Tables[0].Rows[0]["PatientId"].ToString());
- }
- if(ds.Tables[0].Rows[0]["ApplyId"].ToString()!="")
- {
- FactOperationCutTypeObj.ApplyId = int.Parse(ds.Tables[0].Rows[0]["ApplyId"].ToString());
- }
- if(ds.Tables[0].Rows[0]["OperationCutTypeId"].ToString()!="")
- {
- FactOperationCutTypeObj.OperationCutTypeId = int.Parse(ds.Tables[0].Rows[0]["OperationCutTypeId"].ToString());
- }
- FactOperationCutTypeObj.OperatorNo = ds.Tables[0].Rows[0]["OperatorNo"].ToString();
- FactOperationCutTypeObj.OperatorName = ds.Tables[0].Rows[0]["OperatorName"].ToString();
- if(ds.Tables[0].Rows[0]["OperateDate"].ToString()!="")
- {
- FactOperationCutTypeObj.OperateDate = DateTime.Parse(ds.Tables[0].Rows[0]["OperateDate"].ToString());
- }
- }
- return FactOperationCutTypeObj;
- }
- public DataTable GetDataTable(string strWhere)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("select [Id],[PatientId],[ApplyId],[OperationCutTypeId],[OperatorNo],[OperatorName],[OperateDate] ");
- strSql.Append(" FROM FactOperationCutType ");
- if(strWhere.Trim()!="")
- {
-
- strSql.Append(" where "+strWhere);
- }
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public List GetFactOperationCutTypeIdList(int PatientId)
- {
- List FactOperationCutTypeIdList = new List();
- string strSql = "SELECT OperationCutTypeId FROM FactOperationCutType WHERE PatientId='" + PatientId + "'";
-
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- FactOperationCutTypeIdList.Add(int.Parse(dt.Rows[i]["OperationCutTypeId"].ToString()));
-
- }
- return FactOperationCutTypeIdList;
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/DAL/FactOperationInfoDB.cs b/AIMS/OperationDoing/AnasRecordBill/DAL/FactOperationInfoDB.cs
deleted file mode 100644
index af9a463..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/DAL/FactOperationInfoDB.cs
+++ /dev/null
@@ -1,102 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.DAL
-{
- public class FactOperationInfoDB
- {
- public void Add(Model.FactOperationInfo FactOperationInfoObj)
- {
- 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("" + FactOperationInfoObj.PatientId + ",");
- strSql.Append("" + FactOperationInfoObj.ApplyId + ",");
- strSql.Append("" + FactOperationInfoObj.OperationId + ",");
- strSql.Append("'" + FactOperationInfoObj.OperatorNo + "',");
- strSql.Append("'" + FactOperationInfoObj.OperatorName + "',");
- strSql.Append("'" + FactOperationInfoObj.OperateDate + "',");
- strSql.Append("'" + FactOperationInfoObj.OperationName + "',");
- strSql.Append("'" + FactOperationInfoObj.LeftRemark + "',");
- strSql.Append("'" + FactOperationInfoObj.RightRemark + "'");
- strSql.Append(")");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void Delete(int PatientId)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("delete FactOperationInfo ");
- strSql.Append(" where PatientId="+PatientId+"" );
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public Model.FactOperationInfo GetModel(int Id)
- {
- Model.FactOperationInfo FactOperationInfoObj = new Model.FactOperationInfo();
- StringBuilder strSql=new StringBuilder();
- strSql.Append("select * from FactOperationInfo ");
- strSql.Append(" where Id="+Id+"" );
- DataSet ds = HelperDB.DbHelperSQL.GetDataSet(strSql.ToString());
- if(ds.Tables[0].Rows.Count>0)
- {
- if(ds.Tables[0].Rows[0]["Id"].ToString()!="")
- {
- FactOperationInfoObj.Id = int.Parse(ds.Tables[0].Rows[0]["Id"].ToString());
- }
- if(ds.Tables[0].Rows[0]["PatientId"].ToString()!="")
- {
- FactOperationInfoObj.PatientId = int.Parse(ds.Tables[0].Rows[0]["PatientId"].ToString());
- }
- if(ds.Tables[0].Rows[0]["ApplyId"].ToString()!="")
- {
- FactOperationInfoObj.ApplyId = int.Parse(ds.Tables[0].Rows[0]["ApplyId"].ToString());
- }
- if(ds.Tables[0].Rows[0]["OperationId"].ToString()!="")
- {
- FactOperationInfoObj.OperationId = int.Parse(ds.Tables[0].Rows[0]["OperationId"].ToString());
- }
- FactOperationInfoObj.OperatorNo = ds.Tables[0].Rows[0]["OperatorNo"].ToString();
- FactOperationInfoObj.OperatorName = ds.Tables[0].Rows[0]["OperatorName"].ToString();
- FactOperationInfoObj.OperationName = ds.Tables[0].Rows[0]["OperationName"].ToString();
- FactOperationInfoObj.LeftRemark = ds.Tables[0].Rows[0]["LeftRemark"].ToString();
- FactOperationInfoObj.RightRemark = ds.Tables[0].Rows[0]["RightRemark"].ToString();
- if(ds.Tables[0].Rows[0]["OperateDate"].ToString()!="")
- {
- FactOperationInfoObj.OperateDate = DateTime.Parse(ds.Tables[0].Rows[0]["OperateDate"].ToString());
- }
- }
- return FactOperationInfoObj;
- }
-
- public DataTable GetDataTable(string strWhere)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("select * ");
- strSql.Append(" FROM FactOperationInfo ");
- if(strWhere.Trim()!="")
- {
- strSql.Append(" where "+strWhere);
- }
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public List GetFactOperationInfoIdList(int PatientId)
- {
- List OperationIdList = new List();
- string strSql = "SELECT OperationId FROM FactOperationInfo WHERE PatientId='" + PatientId + "'";
-
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- OperationIdList.Add(int.Parse(dt.Rows[i]["OperationId"].ToString()));
-
- }
- return OperationIdList;
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/DAL/FactOperationPositionDB.cs b/AIMS/OperationDoing/AnasRecordBill/DAL/FactOperationPositionDB.cs
deleted file mode 100644
index ee10fba..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/DAL/FactOperationPositionDB.cs
+++ /dev/null
@@ -1,96 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.DAL
-{
- public class FactOperationPositionDB
- {
- public void Add(Model.FactOperationPosition FactOperationPositionObj)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("insert into [FactOperationPosition](");
- strSql.Append("PatientId,ApplyId,OperationPositionId,OperatorNo,OperatorName,OperateDate");
- strSql.Append(")");
- strSql.Append(" values (");
- strSql.Append(""+FactOperationPositionObj.PatientId+",");
- strSql.Append(""+FactOperationPositionObj.ApplyId+",");
- strSql.Append(""+FactOperationPositionObj.OperationPositionId+",");
- strSql.Append("'"+FactOperationPositionObj.OperatorNo+"',");
- strSql.Append("'"+FactOperationPositionObj.OperatorName+"',");
- strSql.Append("'"+FactOperationPositionObj.OperateDate+"'");
- strSql.Append(")");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
- public void Delete(int PatientId)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("delete FactOperationPosition ");
- strSql.Append(" where PatientId="+PatientId+"" );
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
- public Model.FactOperationPosition GetModel(int Id)
- {
- Model.FactOperationPosition FactOperationPositionObj = new Model.FactOperationPosition();
- StringBuilder strSql=new StringBuilder();
- strSql.Append("select ");
- strSql.Append("Id,PatientId,ApplyId,OperationPositionId,OperatorNo,OperatorName,OperateDate ");
- strSql.Append(" from FactOperationPosition ");
- strSql.Append(" where Id="+Id+"" );
- DataSet ds = HelperDB.DbHelperSQL.GetDataSet(strSql.ToString());
- if(ds.Tables[0].Rows.Count>0)
- {
- if(ds.Tables[0].Rows[0]["Id"].ToString()!="")
- {
- FactOperationPositionObj.Id = int.Parse(ds.Tables[0].Rows[0]["Id"].ToString());
- }
- if(ds.Tables[0].Rows[0]["PatientId"].ToString()!="")
- {
- FactOperationPositionObj.PatientId = int.Parse(ds.Tables[0].Rows[0]["PatientId"].ToString());
- }
- if(ds.Tables[0].Rows[0]["ApplyId"].ToString()!="")
- {
- FactOperationPositionObj.ApplyId = int.Parse(ds.Tables[0].Rows[0]["ApplyId"].ToString());
- }
- if(ds.Tables[0].Rows[0]["OperationPositionId"].ToString()!="")
- {
- FactOperationPositionObj.OperationPositionId = int.Parse(ds.Tables[0].Rows[0]["OperationPositionId"].ToString());
- }
- FactOperationPositionObj.OperatorNo = ds.Tables[0].Rows[0]["OperatorNo"].ToString();
- FactOperationPositionObj.OperatorName = ds.Tables[0].Rows[0]["OperatorName"].ToString();
- if(ds.Tables[0].Rows[0]["OperateDate"].ToString()!="")
- {
- FactOperationPositionObj.OperateDate = DateTime.Parse(ds.Tables[0].Rows[0]["OperateDate"].ToString());
- }
- }
- return FactOperationPositionObj;
- }
- public DataTable GetDataTable(string strWhere)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("select [Id],[PatientId],[ApplyId],[OperationPositionId],[OperatorNo],[OperatorName],[OperateDate] ");
- strSql.Append(" FROM FactOperationPosition ");
- if(strWhere.Trim()!="")
- {
-
- strSql.Append(" where "+strWhere);
- }
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public List GetFactOperationPositionIdList(int PatientId)
- {
- List FactOperationPositionIdList = new List();
- string strSql = "SELECT OperationPositionId FROM FactOperationPosition WHERE PatientId='" + PatientId + "'";
-
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- FactOperationPositionIdList.Add(int.Parse(dt.Rows[i]["OperationPositionId"].ToString()));
-
- }
- return FactOperationPositionIdList;
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/DAL/FactPersonDutyDB.cs b/AIMS/OperationDoing/AnasRecordBill/DAL/FactPersonDutyDB.cs
deleted file mode 100644
index 67ba7e0..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/DAL/FactPersonDutyDB.cs
+++ /dev/null
@@ -1,103 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.DAL
-{
- public class FactPersonDutyDB
- {
- public void Add(Model.FactPersonDuty FactPersonDutyObj)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("insert into [FactPersonDuty](");
- strSql.Append("PatientId,ApplyId,PersonDutyId,PersonId,OperatorNo,OperatorName,OperateDate");
- strSql.Append(")");
- strSql.Append(" values (");
- strSql.Append(""+FactPersonDutyObj.PatientId+",");
- strSql.Append(""+FactPersonDutyObj.ApplyId+",");
- strSql.Append(""+FactPersonDutyObj.PersonDutyId+",");
- strSql.Append(""+FactPersonDutyObj.PersonId+",");
- strSql.Append("'"+FactPersonDutyObj.OperatorNo+"',");
- strSql.Append("'"+FactPersonDutyObj.OperatorName+"',");
- strSql.Append("'"+FactPersonDutyObj.OperateDate+"'");
- strSql.Append(")");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void Delete(int PatientId, int PersonDutyId)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("delete FactPersonDuty ");
- strSql.Append(" where PatientId=" + PatientId + " and PersonDutyId=" + PersonDutyId + "");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public Model.FactPersonDuty GetModel(int Id)
- {
- Model.FactPersonDuty FactPersonDutyObj = new Model.FactPersonDuty();
- StringBuilder strSql=new StringBuilder();
- strSql.Append("select ");
- strSql.Append("Id,PatientId,ApplyId,PersonDutyId,PersonId,OperatorNo,OperatorName,OperateDate ");
- strSql.Append(" from FactPersonDuty ");
- strSql.Append(" where Id="+Id+"" );
- DataSet ds = HelperDB.DbHelperSQL.GetDataSet(strSql.ToString());
- if(ds.Tables[0].Rows.Count>0)
- {
- if(ds.Tables[0].Rows[0]["Id"].ToString()!="")
- {
- FactPersonDutyObj.Id = int.Parse(ds.Tables[0].Rows[0]["Id"].ToString());
- }
- if(ds.Tables[0].Rows[0]["PatientId"].ToString()!="")
- {
- FactPersonDutyObj.PatientId = int.Parse(ds.Tables[0].Rows[0]["PatientId"].ToString());
- }
- if(ds.Tables[0].Rows[0]["ApplyId"].ToString()!="")
- {
- FactPersonDutyObj.ApplyId = int.Parse(ds.Tables[0].Rows[0]["ApplyId"].ToString());
- }
- if(ds.Tables[0].Rows[0]["PersonDutyId"].ToString()!="")
- {
- FactPersonDutyObj.PersonDutyId = int.Parse(ds.Tables[0].Rows[0]["PersonDutyId"].ToString());
- }
- if(ds.Tables[0].Rows[0]["PersonId"].ToString()!="")
- {
- FactPersonDutyObj.PersonId = int.Parse(ds.Tables[0].Rows[0]["PersonId"].ToString());
- }
- FactPersonDutyObj.OperatorNo = ds.Tables[0].Rows[0]["OperatorNo"].ToString();
- FactPersonDutyObj.OperatorName = ds.Tables[0].Rows[0]["OperatorName"].ToString();
- if(ds.Tables[0].Rows[0]["OperateDate"].ToString()!="")
- {
- FactPersonDutyObj.OperateDate=DateTime.Parse(ds.Tables[0].Rows[0]["OperateDate"].ToString());
- }
- }
- return FactPersonDutyObj;
- }
-
- public DataTable GetDataTable(string strWhere)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("select [Id],[PatientId],[ApplyId],[PersonDutyId],[PersonId],[OperatorNo],[OperatorName],[OperateDate] ");
- strSql.Append(" FROM FactPersonDuty ");
- if(strWhere.Trim()!="")
- {
- strSql.Append(" where "+strWhere);
- }
- return HelperDB.DbHelperSQL.GetDataTable(strWhere.ToString());
- }
-
- public List GetPersonIdList(int PatientId, int PersonDutyId)
- {
- List PersonIdList = new List();
- string strSql = "SELECT PersonId FROM FactPersonDuty WHERE PatientId=" + PatientId + " AND PersonDutyId =" + PersonDutyId + "";
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql);
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- PersonIdList.Add(int.Parse(dt.Rows[i]["PersonId"].ToString()));
- }
-
- return PersonIdList;
-
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/DAL/FillAnasRecordBillDataDB.cs b/AIMS/OperationDoing/AnasRecordBill/DAL/FillAnasRecordBillDataDB.cs
deleted file mode 100644
index bb08c11..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/DAL/FillAnasRecordBillDataDB.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.DAL
-{
- public class FillAnasRecordBillDataDB
- {
- public DataTable FillDrugData(int PatientId, int DrugTypeId)
- {
- string strSql = " SELECT fd.Id,d.Id as DrugsId, d.Name AS DrugName ,fd.IsContinue,fd.Dosage,fd.DosageUnit,fd.DrugBeginTime, fd.DrugEndTime,fd.DrugChannel,fd.GiveDrugType,fd.Remark,d.DrugKind,[Density],[DensityUnit],[Velocity],[VelocityUnit],[BloodType] ,fd.[OperatorNo],fd.[OperatorName],fd.[OperateDate],fd.ParentId FROM FactDrug fd " +
- "LEFT JOIN Drugs d ON d.Id = fd.DrugId " +
- "WHERE fd.PatientId=" + PatientId + " AND fd.DrugTypeId=" + DrugTypeId + " ";
-
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public DataTable FillOutFluid(int PatientId, int DrugTypeId)
- {
- string strSql = "SELECT fol.Id, fol.OutputLiquidsId,ol.Name AS OutputLiquidsName, fol.BeginTime, fol.EndTime, fol.Dosage, fol.DosageUnit,fol.Remark " +
- "FROM FactOutputLiquids fol " +
- "LEFT JOIN OutputLiquids ol ON ol.Id = fol.OutputLiquidsId " +
- "WHERE fol.PatientId=" + PatientId + " AND fol.OutputLiquidsTypeId=" + DrugTypeId + " ";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public DateTime GetMaxTime(int PatientId, int TypeId)
- {
- string strSql = "SELECT ISNULL(MAX(A.MaxTime),GETDATE()) MaxTime FROM ( " +
- "SELECT fd.DrugEndTime AS MaxTime FROM FactDrug fd WHERE fd.DrugTypeId=" + TypeId + " and fd.PatientId=" + PatientId + " " +
- "UNION ALL " +
- "SELECT fe.EventEndTime AS MaxTime FROM FactEvents fe LEFT JOIN Events e ON e.Id =fe.EventId WHERE fe.EventTypeId=" + TypeId + " and fe.PatientId=" + PatientId + " " +
- "UNION ALL " +
- "SELECT fol.EndTime AS MaxTime FROM FactOutputLiquids fol WHERE fol.OutputLiquidsTypeId=" + TypeId + " and fol.PatientId=" + PatientId + " )A ";
-
-
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql);
-
- return DateTime.Parse(dt.Rows[0]["MaxTime"].ToString());
- }
- public int GetDataCount(int RecorId,int PatientId, int TypeId)
- {
- string strSql = "SELECT SUM(A.RowCounts) AS RowCounts FROM ( " +
- "SELECT COUNT(*) AS RowCounts FROM FactDrug fd WHERE fd.DrugTypeId =" + TypeId + " and fd.PatientId=" + PatientId + " UNION ALL " +
- "SELECT COUNT(*) AS RowCounts FROM FactEvents fe WHERE fe.EventTypeId=" + TypeId + " and fe.PatientId=" + PatientId + " and EventId<>7 UNION ALL " +
- "SELECT COUNT(*) AS RowCounts FROM FactOutputLiquids fol WHERE OutputLiquidsTypeId=" + TypeId + " and fol.PatientId=" + PatientId + " UNION ALL " +
- "SELECT COUNT(*) AS RowCounts FROM FactBloodGasAnalysis fol WHERE OperationRecordId=" + RecorId + " )A ";
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql);
-
- return int.Parse(dt.Rows[0]["RowCounts"].ToString());
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/DAL/OperationRecordDB.cs b/AIMS/OperationDoing/AnasRecordBill/DAL/OperationRecordDB.cs
deleted file mode 100644
index 7e5511c..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/DAL/OperationRecordDB.cs
+++ /dev/null
@@ -1,243 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.DAL
-{
- public class OperationRecordDB
- {
- public int AddTitleTime(int PatientId, int ApplyId, int RecoverId, string TableColumnName, DateTime Time, int RoomId)
- {
- string strSql = "INSERT INTO OperationRecord(PatientId,OperationApplyId,RecoverId," + TableColumnName + ",OperatorNo,OperatorName,OperateDate,RoomId)" +
- "VALUES (" + PatientId + "," + ApplyId + "," + RecoverId + ",'" + Time + "','" + AIMSExtension.PublicMethod.OperatorNo + "','"
- + AIMSExtension.PublicMethod.OperatorName + "','" + AIMSExtension.PublicMethod.SystemDate() + "','" + RoomId + "');select @@identity ";
- return Convert.ToInt32(HelperDB.DbHelperSQL.ExecNonQuery(strSql));
- ;
- }
-
- public void UpdateTitleTime(int PatientId, string TableColumnName, DateTime Time)
- {
- string strSql = "Update OperationRecord Set " + TableColumnName + "='" + Time.ToString("yyyy-MM-dd HH:mm:ss") +
- "',OperatorNo='" + AIMSExtension.PublicMethod.OperatorNo +
- "',OperatorName='" + AIMSExtension.PublicMethod.OperatorName + "' WHERE PatientId=" + PatientId + "";
- HelperDB.DbHelperSQL.ExecNonQuery(strSql);
- }
-
- public Model.TitleTime GetTitleTime(int PatientId, int RecoverId)
- {
- Model.TitleTime TitleTimeObj = new Model.TitleTime();
- string strSql = "SELECT OperationApplyId,ISNULL((SELECT TOP 1 fe.EventBeginTime FROM FactEvents fe LEFT JOIN Events e ON e.Id =fe.EventId WHERE fe.EventTypeId=1 and e.Name='入室' and PatientId=" + PatientId + " ),getdate()) as InRoomTime, OutRoomTime, OperationBeginTime,OperationEndTime " +
- "FROM OperationRecord WHERE PatientId='" + PatientId + "' and RecoverId='" + RecoverId + "'";
-
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql);
-
- if (dt.Rows.Count > 0)
- {
- if (dt.Rows[0]["OperationApplyId"].ToString() != "")
- {
- TitleTimeObj.OperationApplyId = int.Parse(dt.Rows[0]["OperationApplyId"].ToString());
- }
-
- if (dt.Rows[0]["InRoomTime"].ToString() != "")
- {
- TitleTimeObj.InRoomTime = DateTime.Parse(DateTime.Parse(dt.Rows[0]["InRoomTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss"));
- }
-
- if (dt.Rows[0]["OutRoomTime"].ToString() != "")
- {
- TitleTimeObj.OutRoomTime = DateTime.Parse(dt.Rows[0]["OutRoomTime"].ToString());
- }
- if (dt.Rows[0]["OperationBeginTime"].ToString() != "")
- {
- TitleTimeObj.OperationBeginTime = DateTime.Parse(dt.Rows[0]["OperationBeginTime"].ToString());
- }
- if (dt.Rows[0]["OperationEndTime"].ToString() != "")
- {
- TitleTimeObj.OperationEndTime = DateTime.Parse(dt.Rows[0]["OperationEndTime"].ToString());
- }
-
- }
- return TitleTimeObj;
- }
-
- public void Update(Model.OperationRecord OperationRecordObj)
- {
- StringBuilder strSql = new StringBuilder();
- strSql.Append("update OperationRecord set ");
- strSql.Append("OperationLevelId=" + OperationRecordObj.OperationLevelId + ",");
- strSql.Append("OpeAfterMode='" + OperationRecordObj.OpeAfterMode + "',");
- strSql.Append("SpecialSituation='" + OperationRecordObj.SpecialSituation + "',");
- strSql.Append("PunctureBodyPosition='" + OperationRecordObj.PunctureBodyPosition + "',");
- strSql.Append("PuncturePosition='" + OperationRecordObj.PuncturePosition + "',");
- strSql.Append("CatheterDepth='" + OperationRecordObj.CatheterDepth + "',");
- strSql.Append("NeedleSize='" + OperationRecordObj.NeedleSize + "',");
- strSql.Append("NeedleDirection='" + OperationRecordObj.NeedleDirection + "',");
- strSql.Append("AnaesthesiaPlane='" + OperationRecordObj.AnaesthesiaPlane + "',");
- strSql.Append("AnaesthesiaEffect='" + OperationRecordObj.AnaesthesiaEffect + "',");
- strSql.Append("CannulaOrLaryngealMaskType='" + OperationRecordObj.CannulaOrLaryngealMaskType + "',");
- strSql.Append("TubeNumber='" + OperationRecordObj.TubeNumber + "',");
- strSql.Append("Depth='" + OperationRecordObj.Depth + "',");
- strSql.Append("TracheaInner=" + OperationRecordObj.TracheaInner + ",");
- strSql.Append("BronchialInner=" + OperationRecordObj.BronchialInner + ",");
- strSql.Append("FastAnaesthesia=" + OperationRecordObj.FastAnaesthesia + ",");
- strSql.Append("PlaneAnaesthesia=" + OperationRecordObj.PlaneAnaesthesia + ",");
- strSql.Append("Mouth=" + OperationRecordObj.Mouth + ",");
- strSql.Append("NoseLeft=" + OperationRecordObj.NoseLeft + ",");
- strSql.Append("NoseRight=" + OperationRecordObj.NoseRight + ",");
- strSql.Append("Photopic=" + OperationRecordObj.Photopic + ",");
- strSql.Append("Cuff=" + OperationRecordObj.Cuff + ",");
- strSql.Append("StopperFabric=" + OperationRecordObj.StopperFabric + ",");
- strSql.Append("Remarks='" + OperationRecordObj.Remarks + "',");
- strSql.Append("OperatorNo='" + OperationRecordObj.OperatorNo + "',");
- strSql.Append("OperatorName='" + OperationRecordObj.OperatorName + "',");
- strSql.Append("OperateDate='" + OperationRecordObj.OperateDate + "'");
- strSql.Append(" where PatientId=" + OperationRecordObj.PatientId + " ");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public Model.OperationRecord GetModel(int PatientId)
- {
- Model.OperationRecord OperationRecordObj = new Model.OperationRecord();
- StringBuilder strSql = new StringBuilder();
- strSql.Append("select ");
- strSql.Append("Id,PatientId,OperationApplyId,State,OperationLevelId,OpeAfterMode,SpecialSituation,PunctureBodyPosition,PuncturePosition,CatheterDepth,NeedleSize,NeedleDirection,AnaesthesiaPlane,AnaesthesiaEffect,CannulaOrLaryngealMaskType,TubeNumber,Depth,TracheaInner,BronchialInner,FastAnaesthesia,PlaneAnaesthesia,Mouth,NoseLeft,NoseRight,Photopic,Cuff,StopperFabric,Remarks,OperatorNo,OperatorName,OperateDate ");
- strSql.Append(" from OperationRecord ");
- strSql.Append(" where PatientId=" + PatientId + "");
- DataSet ds = HelperDB.DbHelperSQL.GetDataSet(strSql.ToString());
- if (ds.Tables[0].Rows.Count > 0)
- {
- if (ds.Tables[0].Rows[0]["Id"].ToString() != "")
- {
- OperationRecordObj.Id = int.Parse(ds.Tables[0].Rows[0]["Id"].ToString());
- }
- if (ds.Tables[0].Rows[0]["PatientId"].ToString() != "")
- {
- OperationRecordObj.PatientId = int.Parse(ds.Tables[0].Rows[0]["PatientId"].ToString());
- }
- if (ds.Tables[0].Rows[0]["OperationApplyId"].ToString() != "")
- {
- OperationRecordObj.OperationApplyId = int.Parse(ds.Tables[0].Rows[0]["OperationApplyId"].ToString());
- }
- if (ds.Tables[0].Rows[0]["OperationLevelId"].ToString() != "")
- {
- OperationRecordObj.OperationLevelId = int.Parse(ds.Tables[0].Rows[0]["OperationLevelId"].ToString());
- }
- OperationRecordObj.OpeAfterMode = ds.Tables[0].Rows[0]["OpeAfterMode"].ToString();
- OperationRecordObj.SpecialSituation = ds.Tables[0].Rows[0]["SpecialSituation"].ToString();
- OperationRecordObj.PunctureBodyPosition = ds.Tables[0].Rows[0]["PunctureBodyPosition"].ToString();
- OperationRecordObj.PuncturePosition = ds.Tables[0].Rows[0]["PuncturePosition"].ToString();
- OperationRecordObj.CatheterDepth = ds.Tables[0].Rows[0]["CatheterDepth"].ToString();
- OperationRecordObj.NeedleSize = ds.Tables[0].Rows[0]["NeedleSize"].ToString();
- OperationRecordObj.NeedleDirection = ds.Tables[0].Rows[0]["NeedleDirection"].ToString();
- OperationRecordObj.AnaesthesiaPlane = ds.Tables[0].Rows[0]["AnaesthesiaPlane"].ToString();
- OperationRecordObj.AnaesthesiaEffect = ds.Tables[0].Rows[0]["AnaesthesiaEffect"].ToString();
- OperationRecordObj.CannulaOrLaryngealMaskType = ds.Tables[0].Rows[0]["CannulaOrLaryngealMaskType"].ToString();
- OperationRecordObj.TubeNumber = ds.Tables[0].Rows[0]["TubeNumber"].ToString();
- OperationRecordObj.Depth = ds.Tables[0].Rows[0]["Depth"].ToString();
- if (ds.Tables[0].Rows[0]["TracheaInner"].ToString() != "")
- {
- OperationRecordObj.TracheaInner = int.Parse(ds.Tables[0].Rows[0]["TracheaInner"].ToString());
- }
- if (ds.Tables[0].Rows[0]["BronchialInner"].ToString() != "")
- {
- OperationRecordObj.BronchialInner = int.Parse(ds.Tables[0].Rows[0]["BronchialInner"].ToString());
- }
- if (ds.Tables[0].Rows[0]["FastAnaesthesia"].ToString() != "")
- {
- OperationRecordObj.FastAnaesthesia = int.Parse(ds.Tables[0].Rows[0]["FastAnaesthesia"].ToString());
- }
- if (ds.Tables[0].Rows[0]["PlaneAnaesthesia"].ToString() != "")
- {
- OperationRecordObj.PlaneAnaesthesia = int.Parse(ds.Tables[0].Rows[0]["PlaneAnaesthesia"].ToString());
- }
- if (ds.Tables[0].Rows[0]["Mouth"].ToString() != "")
- {
- OperationRecordObj.Mouth = int.Parse(ds.Tables[0].Rows[0]["Mouth"].ToString());
- }
- if (ds.Tables[0].Rows[0]["NoseLeft"].ToString() != "")
- {
- OperationRecordObj.NoseLeft = int.Parse(ds.Tables[0].Rows[0]["NoseLeft"].ToString());
- }
- if (ds.Tables[0].Rows[0]["NoseRight"].ToString() != "")
- {
- OperationRecordObj.NoseRight = int.Parse(ds.Tables[0].Rows[0]["NoseRight"].ToString());
- }
- if (ds.Tables[0].Rows[0]["Photopic"].ToString() != "")
- {
- OperationRecordObj.Photopic = int.Parse(ds.Tables[0].Rows[0]["Photopic"].ToString());
- }
- if (ds.Tables[0].Rows[0]["Cuff"].ToString() != "")
- {
- OperationRecordObj.Cuff = int.Parse(ds.Tables[0].Rows[0]["Cuff"].ToString());
- }
- if (ds.Tables[0].Rows[0]["StopperFabric"].ToString() != "")
- {
- OperationRecordObj.StopperFabric = int.Parse(ds.Tables[0].Rows[0]["StopperFabric"].ToString());
- }
- OperationRecordObj.Remarks = ds.Tables[0].Rows[0]["Remarks"].ToString();
- OperationRecordObj.OperatorNo = ds.Tables[0].Rows[0]["OperatorNo"].ToString();
- OperationRecordObj.OperatorName = ds.Tables[0].Rows[0]["OperatorName"].ToString();
- if (ds.Tables[0].Rows[0]["OperateDate"].ToString() != "")
- {
- OperationRecordObj.OperateDate = DateTime.Parse(ds.Tables[0].Rows[0]["OperateDate"].ToString());
- }
- }
- return OperationRecordObj;
- }
-
- public DataTable GetOperationDoingMainInfo(int PatientId, int TypeId)
- {
- string strSql = "SELECT od.Id,od.PatientId, od.ApplyId,(SELECT TOP 1 fe.EventBeginTime FROM FactEvents fe LEFT JOIN Events e ON e.Id =fe.EventId WHERE e.Name='入室' and PatientId=" + PatientId + " and EventTypeId=" + TypeId + " ) as InRoomTime,"
- + "(SELECT TOP 1 fe.EventBeginTime FROM FactEvents fe LEFT JOIN Events e ON e.Id =fe.EventId WHERE e.Name='出室' and PatientId=" + PatientId + " and EventTypeId=" + TypeId + " ) as OutRoomTime, "
- + "(SELECT TOP 1 fe.EventBeginTime FROM FactEvents fe LEFT JOIN Events e ON e.Id =fe.EventId WHERE e.Name='手术开始' and PatientId=" + PatientId + " and EventTypeId=" + TypeId + " ) as OperationBeginTime, "
- + "(SELECT TOP 1 fe.EventBeginTime FROM FactEvents fe LEFT JOIN Events e ON e.Id =fe.EventId WHERE e.Name='手术结束' and PatientId=" + PatientId + " and EventTypeId=" + TypeId + " ) as OperationEndTime, " +
- "od.OperationLevelName, od.OpeAfterMode, od.SpecialSituation," +
- "od.PunctureBodyPosition, od.PuncturePosition, od.CatheterDepth,od.NeedleSize, od.NeedleDirection, od.AnaesthesiaPlane," +
- "od.AnaesthesiaEffect, od.DiagnoseInfoName, od.OperationInfoName,od.AnaesthesiaMethodName, od.OperationCutTypeName," +
- "od.OperationBodyPositionName, od.OperationPositionName, od.OperationDoctor,od.Assistant, od.AnesthesiaDoctor, od.Nurse,od.Nurse2," +
- "od.OperatorNo,od.OperatorName,od.OperateDate,od.Remarks,od.State,OperationDoctorId ,[AssistantId] ,[AnesthesiaDoctorId] ,[InstrumentNurseId],[TourNurseId],DiagnoseInfoId,OperationInfoId,AnaesthesiaMethodId,OrtherDoctor,OrtherDoctorId,OperationPositionId,OperationBodyPositionId,ASALevel,SpecialCase,Fasting,BloodType FROM V_OperationDoing od WHERE od.PatientId=" + PatientId + " and od.RecoverId='" + TypeId + "'";
- return HelperDB.DbHelperSQL.GetDataTable(strSql);
- }
-
- public void UpdateState(int PatientId, int TypeId, int State)
- {
- string strSql = "UPDATE OperationRecord SET " + (State == 1 ? " OutRoomTime=null, " : "") + " [State] = " + State +
- ",OperatorNo = '" + AIMSExtension.PublicMethod.OperatorNo +
- "',OperatorName = '" + AIMSExtension.PublicMethod.OperatorName +
- "',OperateDate = '" + AIMSExtension.PublicMethod.SystemDate() +
- "' WHERE PatientId=" + PatientId + " and RecoverId='" + TypeId + "'";
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void DeleteOperationRecordData(int RecorId, int PatientId, int TypeId)
- {
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactAnaesthesiaMethod WHERE PatientId=" + PatientId + "");
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactBloodGasAnalysis WHERE OperationRecordId=" + RecorId + "");
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactDiagnoseInfo WHERE PatientId=" + PatientId + "");
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactDrug WHERE DrugTypeId=" + TypeId + " and PatientId=" + PatientId + "");
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactEvents WHERE EventTypeId=" + TypeId + " and PatientId=" + PatientId + "");
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactOperationBodyPosition WHERE PatientId=" + PatientId + "");
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactOperationCutType WHERE PatientId=" + PatientId + "");
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactOperationInfo WHERE PatientId=" + PatientId + "");
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactOperationPosition WHERE PatientId=" + PatientId + "");
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactOutputLiquids WHERE OutputLiquidsTypeId=" + TypeId + " and PatientId=" + PatientId + "");
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactPersonDuty WHERE PatientId=" + PatientId + " and PersonDutyId=" + TypeId + "");
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM OperationRecordInfo WHERE OperationRecordId=" + RecorId);
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM PhysioData WHERE PatientId =" + RecorId);
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM OperationRecord WHERE id=" + RecorId);
- }
- public void DeleteOperationRecorvreData(int PatientId, int TypeId)
- {
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactDrug WHERE DrugTypeId=" + TypeId + " and PatientId=" + PatientId + "");
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactEvents WHERE EventTypeId=" + TypeId + " and PatientId=" + PatientId + "");
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactOutputLiquids WHERE OutputLiquidsTypeId=" + TypeId + " and PatientId=" + PatientId + "");
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactPersonDuty WHERE PatientId=" + PatientId + " and PersonDutyId=" + TypeId + "");
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM OperationRecord WHERE id=" + PatientId + " and RecoverId=" + TypeId + "");
- }
- public void DeleteEvent(int PatientId, int EventId)
- {
- HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactEvents WHERE EventTypeId=1 and EventId =" + EventId + " and PatientId=" + PatientId + "");
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/DAL/SelectPatientDB.cs b/AIMS/OperationDoing/AnasRecordBill/DAL/SelectPatientDB.cs
deleted file mode 100644
index f046a53..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/DAL/SelectPatientDB.cs
+++ /dev/null
@@ -1,68 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecordBill.DAL
-{
- public class SelectPatient
- {
- public DataTable GetSelectPatientDataTable(DateTime BeginDate)
- {
- string strSql = "SELECT of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, " +
- "of1.ApplyOperationInfoName, of1.OperationDoctor, " +
- "of1.AnesthesiaDoctor,of1.OperationRoomId " +
- "FROM V_OperationFront of1 WHERE of1.State in('已排程','已访视') and of1.PlanOperationTime>='" + BeginDate + "' AND of1.PlanOperationTime<'" + BeginDate.AddDays(1) + "'";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public DataTable GetSelectPatientDataTable(DateTime BeginDate, string Room)
- {
- string strSql = "SELECT of1.ApplyId Id, of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, " +
- "of1.ApplyOperationInfoName, of1.OperationDoctor, " +
- "of1.AnesthesiaDoctor,of1.OperationRoomId , of1.State ,of1.Sex,[dbo].[funGetAge](of1.BirthDay,getdate()) age,of1.PlanOperationTime,of1.InstrumentNurse,of1.TourNurse,of1.ApplyDiagnoseInfoName,of1.OperationRoom " +
- "FROM V_OperationFront of1 WHERE of1.State in('已审核','预排程','已排程','已访视') and of1.OrderOperationTime>='" + BeginDate + "' AND of1.OrderOperationTime<'" + BeginDate.AddDays(1) + "'";
- if (Room != "" && Room != "-1") strSql += " and of1.OperationRoomId='" + Room + "'";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public DataTable GetRelieveLockingPatientDataTable(DateTime BeginDate)
- {
- string strSql = "SELECT of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, of1.ApplyOperationInfoName, of1.OperationDoctor, of1.AnesthesiaDoctor,of1.OperationRoomId,of2.State FROM V_OperationDoing of2 left join[dbo].[V_OperationFront] of1 on of1.PatientId = of2.PatientId WHERE of1.State in( '手术中','手术结束') and of2.InRoomTime >= '" + BeginDate + "' AND of2.InRoomTime<'" + BeginDate.AddDays(1) + "'";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
- public DataTable GetRelieveLockingPatientDataTable(DateTime BeginDate, string Room)
- {
- string strSql = "SELECT of2.Id,of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, of2.OperationInfoNames ApplyOperationInfoName, of2.OperationDoctor, of2.AnesthesiaDoctor,of2.OperationRoomId,of2.State ,of1.Sex,[dbo].[funGetAge](of1.BirthDay,getdate()) age,of2.InRoomTime PlanOperationTime,of2.Nurse InstrumentNurse,of2.Nurse2 TourNurse,of2.DiagnoseInfoName ApplyDiagnoseInfoName ,of2.OperationRoom FROM V_OperationDoing of2 left join[dbo].[V_OperationFront] of1 on of1.PatientId = of2.PatientId WHERE of2.State in( '手术中','手术结束') and of2.InRoomTime >= '" + BeginDate + "' AND of2.InRoomTime<'" + BeginDate.AddDays(1) + "' and RecoverId=1";
- if (Room != "" && Room != "-1") strSql += " and of1.OperationRoomId='" + Room + "'";
- strSql += " order by [StateId] asc";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
- public DataTable GetRecoverPatientDataTable(DateTime BeginDate)
- {
- string strSql = "SELECT of2.Id,of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, of2.OperationInfoNames ApplyOperationInfoName, of2.OperationDoctor, of2.AnesthesiaDoctor,of2.OperationRoomId,of2.State ,of1.Sex,[dbo].[funGetAge](of1.BirthDay,getdate()) age,of2.OutRoomTime PlanOperationTime,of2.Nurse InstrumentNurse,of2.Nurse2 TourNurse,of2.DiagnoseInfoName ApplyDiagnoseInfoName ,of2.OperationRoom FROM V_OperationDoing of2 left join[dbo].[V_OperationFront] of1 on of1.PatientId = of2.PatientId WHERE of1.State in( '手术结束') and of2.OutRoomTime >= '" + BeginDate + "' AND of2.OutRoomTime<'" + BeginDate.AddDays(1) + "' and RecoverId=1 and of2.Id not in (select iD from OperationRecord where RecoverId<>1)";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
- public DataTable GetSelectPatientDataTable(DateTime BeginDate, DateTime EndDate, bool isLoginPerson, string person, bool isEnOpe)
- {
- string strSql = "SELECT of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, " +
- "of1.ApplyOperationInfoName, of1.OperationDoctor, of1.State ," +
- "of1.AnesthesiaDoctor,of1.OperationRoomId,of1.InstrumentNurse,of1.TourNurse " +
- "FROM V_OperationFront of1 WHERE of1.OrderOperationTime>='" + BeginDate + "' AND of1.OrderOperationTime<'" + EndDate + "' ";
- if (isLoginPerson == true) strSql += " and AnesthesiaDoctor like '%" + person + "%'";
- if (isEnOpe == true) strSql += " and state ='手术结束'";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public DataTable GetSelectPatientChart()
- {
- string strSql = "select CONVERT(nvarchar(7), InRoomTime,120) dat, SUM(ROUND((DATEDIFF(minute, OperationBeginTime, OperationEndTime)) / CONVERT(FLOAT, 60), 1)) AS DiffDate from V_OperationDoing group by CONVERT(nvarchar(7), InRoomTime, 120)";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
- public DataTable GetSelectPatientChart2()
- {
- string strSql = "select CONVERT(nvarchar(7), InRoomTime,120) dat,COUNT(*) con from V_OperationDoing group by CONVERT(nvarchar(7), InRoomTime,120) ";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/FillAnasReordBill.cs b/AIMS/OperationDoing/AnasRecordBill/FillAnasReordBill.cs
index 6dc75fc..0b2d321 100644
--- a/AIMS/OperationDoing/AnasRecordBill/FillAnasReordBill.cs
+++ b/AIMS/OperationDoing/AnasRecordBill/FillAnasReordBill.cs
@@ -1,4 +1,5 @@
using AIMSBLL;
+using AIMSModel;
using DrawGraph;
using HelperDB;
using System;
@@ -15,20 +16,20 @@ namespace AIMS.OperationDoing.AnasRecordBill
{
return _record;
}
- Model.TitleTime TitleTime = BLL.OperationRecord.GetTitleTime(PatientId, RecoverId);
+ TitleTime titleTime = BOperationRecord.GetTitleTime(PatientId, RecoverId);
_record.PatientId = PatientId;
- _record.OperationApplyId = TitleTime.OperationApplyId;
- _record.InRoomTime = TitleTime.InRoomTime;
- _record.OperationBeginTime = TitleTime.OperationBeginTime;
- _record.OperationEndTime = TitleTime.OperationEndTime;
- _record.OutRoomTime = TitleTime.OutRoomTime;
+ _record.OperationApplyId = titleTime.OperationApplyId;
+ _record.InRoomTime = titleTime.InRoomTime;
+ _record.OperationBeginTime = titleTime.OperationBeginTime;
+ _record.OperationEndTime = titleTime.OperationEndTime;
+ _record.OutRoomTime = titleTime.OutRoomTime;
- DataTable OperationFrontdt = OperationFront.BLL.OperationApply.GetOperationFrontDataTableByPatientId(PatientId);
+ DataTable OperationFrontdt = BOperationApply.GetOperationFrontDataTableByPatientId(PatientId);
if (OperationFrontdt.Rows.Count > 0)
{
- _record.DepartmentId = int.Parse( OperationFrontdt.Rows[0]["DepartmentId"].ToString());
+ _record.DepartmentId = int.Parse(OperationFrontdt.Rows[0]["DepartmentId"].ToString());
_record.ApplyDepartmentName = OperationFrontdt.Rows[0]["ApplyDepName"].ToString() + " " + OperationFrontdt.Rows[0]["SickBed"].ToString();
- _record.ApplyDepName = OperationFrontdt.Rows[0]["ApplyDepName"].ToString() ;
+ _record.ApplyDepName = OperationFrontdt.Rows[0]["ApplyDepName"].ToString();
_record.EndemicArea = OperationFrontdt.Rows[0]["Illdistrict"].ToString();
_record.Bed = OperationFrontdt.Rows[0]["SickBed"].ToString();
_record.InHospitalNo = OperationFrontdt.Rows[0]["MdrecNo"].ToString();
@@ -48,7 +49,7 @@ namespace AIMS.OperationDoing.AnasRecordBill
}
- DataTable OperationDoingdt = BLL.OperationRecord.GetOperationDoingDataTableByPatientId(PatientId, RecoverId);
+ DataTable OperationDoingdt = BOperationRecord.GetOperationDoingDataTableByPatientId(PatientId, RecoverId);
if (OperationDoingdt.Rows.Count > 0)
{
_record.Id = int.Parse(OperationDoingdt.Rows[0]["Id"].ToString().Trim());
@@ -96,7 +97,7 @@ namespace AIMS.OperationDoing.AnasRecordBill
{
//药品
_record.FactDrugList.Clear();
- DataTable DrugAllData = new DAL.FillAnasRecordBillDataDB().FillDrugData(PatientId, TypeId);
+ DataTable DrugAllData = BOperationRecord.FillDrugData(PatientId, TypeId);
for (int i = 0; i < DrugAllData.Rows.Count; i++)
{
FactDrug FactDrug = new FactDrug();
@@ -186,7 +187,7 @@ namespace AIMS.OperationDoing.AnasRecordBill
{
//出量
_record.FactOutputLiquidsList.Clear();
- DataTable OutputLiquidsDistinct = new DAL.FillAnasRecordBillDataDB().FillOutFluid(PatientId, TypeId);
+ DataTable OutputLiquidsDistinct = BOperationRecord.FillOutFluid(PatientId, TypeId);
for (int i = 0; i < OutputLiquidsDistinct.Rows.Count; i++)
{
diff --git a/AIMS/OperationDoing/AnasRecordBill/Model/AddPhysioParam.cs b/AIMS/OperationDoing/AnasRecordBill/Model/AddPhysioParam.cs
deleted file mode 100644
index 20690b1..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/Model/AddPhysioParam.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationDoing.AnasRecordBill.Model
-{
- public class AddPhysioParam
- {
- public int Id { get; set; }//编号
- public string Name { get; set; } //名称
- public int yAisx { get; set; }//归属那条Y轴
- public string Color { get; set; } //线条颜色
- public string ImgPath { get; set; }//图片路径
- public double DecHighLimit { get; set; }//最高限制
- public double DecLowLimit { get; set; }//最低限制
- public int IsValid { get; set; }//是否有效 1有效 0无效
- public string OperatorNo { get; set; }//操作员编号
- public string OperatorName { get; set; }//操作员姓名
- public DateTime OperateDate { get; set; }//操作时间
- public int YAisx;
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/Model/AnasRecordBillRemark.cs b/AIMS/OperationDoing/AnasRecordBill/Model/AnasRecordBillRemark.cs
deleted file mode 100644
index 2e591c2..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/Model/AnasRecordBillRemark.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationDoing.AnasRecordBill.Model
-{
- public class AnasRecordBillRemark
- {
- ///
- /// 术后镇痛方式
- ///
- public string OpeAfterModeStr = "";
- ///
- /// 穿刺
- ///
- public string PunctureStr = "";
-
- ///
- /// 插管
- ///
- public string CannulaStr = "";
-
- ///
- /// 麻醉单备注
- ///
- public string RemarksStr ="";
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/Model/DistinctFactDrug.cs b/AIMS/OperationDoing/AnasRecordBill/Model/DistinctFactDrug.cs
deleted file mode 100644
index d471c3f..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/Model/DistinctFactDrug.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationDoing.AnasRecordBill.Model
-{
- public class DistinctFactDrug
- {
- public int PatientId;
- public int DrugTypeId;
- public int DrugId;
- public string DrugName;
- public string DosageUnit;
- public List DrugItem = new List();
- }
-
- public class FactDrugItem
- {
- public int DrugId;
- public DateTime DrugBeginTime;
- public DateTime DrugEndTime;
- public decimal Dosage;
- public string DosageUnit;
- public string DrugChannel;
- public string GiveDrugType;
- public string Remark;
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/Model/FactAnaesthesiaMethod.cs b/AIMS/OperationDoing/AnasRecordBill/Model/FactAnaesthesiaMethod.cs
deleted file mode 100644
index 281b326..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/Model/FactAnaesthesiaMethod.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationDoing.AnasRecordBill.Model
-{
- public class FactAnaesthesiaMethod
- {
- private int _id;
- private int _patientid;
- private int _applyid;
- private int _anaesthesiamethodid;
- private string _operatorno;
- private string _operatorname;
- private DateTime _operatedate;
- ///
- ///
- ///
- public int Id
- {
- set { _id = value; }
- get { return _id; }
- }
- ///
- ///
- ///
- public int PatientId
- {
- set { _patientid = value; }
- get { return _patientid; }
- }
- ///
- ///
- ///
- public int ApplyId
- {
- set { _applyid = value; }
- get { return _applyid; }
- }
- ///
- ///
- ///
- public int AnaesthesiaMethodId
- {
- set { _anaesthesiamethodid = value; }
- get { return _anaesthesiamethodid; }
- }
- ///
- ///
- ///
- public string OperatorNo
- {
- set { _operatorno = value; }
- get { return _operatorno; }
- }
- ///
- ///
- ///
- public string OperatorName
- {
- set { _operatorname = value; }
- get { return _operatorname; }
- }
- ///
- ///
- ///
- public DateTime OperateDate
- {
- set { _operatedate = value; }
- get { return _operatedate; }
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/Model/FactDiagnoseInfo.cs b/AIMS/OperationDoing/AnasRecordBill/Model/FactDiagnoseInfo.cs
deleted file mode 100644
index 306221f..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/Model/FactDiagnoseInfo.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationDoing.AnasRecordBill.Model
-{
- public class FactDiagnoseInfo
- {
- #region Model
- private int _id;
- private int _patientid;
- private int _applyid;
- private int _diagnoseid;
- private string _operatorno;
- private string _operatorname;
- private DateTime _operatedate;
- ///
- ///
- ///
- public int Id
- {
- set { _id = value; }
- get { return _id; }
- }
- ///
- ///
- ///
- public int PatientId
- {
- set { _patientid = value; }
- get { return _patientid; }
- }
- ///
- ///
- ///
- public int ApplyId
- {
- set { _applyid = value; }
- get { return _applyid; }
- }
- ///
- ///
- ///
- public int DiagnoseId
- {
- set { _diagnoseid = value; }
- get { return _diagnoseid; }
- }
- ///
- ///
- ///
- public string OperatorNo
- {
- set { _operatorno = value; }
- get { return _operatorno; }
- }
- ///
- ///
- ///
- public string OperatorName
- {
- set { _operatorname = value; }
- get { return _operatorname; }
- }
- ///
- ///
- ///
- public DateTime OperateDate
- {
- set { _operatedate = value; }
- get { return _operatedate; }
- }
- #endregion Model
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/Model/FactOperationBodyPosition.cs b/AIMS/OperationDoing/AnasRecordBill/Model/FactOperationBodyPosition.cs
deleted file mode 100644
index d95294a..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/Model/FactOperationBodyPosition.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationDoing.AnasRecordBill.Model
-{
- public class FactOperationBodyPosition
- {
- private int _id;
- private int _patientid;
- private int _applyid;
- private int _operationbodypositionid;
- private string _operatorno;
- private string _operatorname;
- private DateTime _operatedate;
- ///
- ///
- ///
- public int Id
- {
- set { _id = value; }
- get { return _id; }
- }
- ///
- ///
- ///
- public int PatientId
- {
- set { _patientid = value; }
- get { return _patientid; }
- }
- ///
- ///
- ///
- public int ApplyId
- {
- set { _applyid = value; }
- get { return _applyid; }
- }
- ///
- ///
- ///
- public int OperationBodyPositionId
- {
- set { _operationbodypositionid = value; }
- get { return _operationbodypositionid; }
- }
- ///
- ///
- ///
- public string OperatorNo
- {
- set { _operatorno = value; }
- get { return _operatorno; }
- }
- ///
- ///
- ///
- public string OperatorName
- {
- set { _operatorname = value; }
- get { return _operatorname; }
- }
- ///
- ///
- ///
- public DateTime OperateDate
- {
- set { _operatedate = value; }
- get { return _operatedate; }
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/Model/FactOperationCutType.cs b/AIMS/OperationDoing/AnasRecordBill/Model/FactOperationCutType.cs
deleted file mode 100644
index 9a7ea9b..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/Model/FactOperationCutType.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationDoing.AnasRecordBill.Model
-{
- public class FactOperationCutType
- {
- private int _id;
- private int _patientid;
- private int _applyid;
- private int _operationcuttypeid;
- private string _operatorno;
- private string _operatorname;
- private DateTime _operatedate;
- ///
- ///
- ///
- public int Id
- {
- set { _id = value; }
- get { return _id; }
- }
- ///
- ///
- ///
- public int PatientId
- {
- set { _patientid = value; }
- get { return _patientid; }
- }
- ///
- ///
- ///
- public int ApplyId
- {
- set { _applyid = value; }
- get { return _applyid; }
- }
- ///
- ///
- ///
- public int OperationCutTypeId
- {
- set { _operationcuttypeid = value; }
- get { return _operationcuttypeid; }
- }
- ///
- ///
- ///
- public string OperatorNo
- {
- set { _operatorno = value; }
- get { return _operatorno; }
- }
- ///
- ///
- ///
- public string OperatorName
- {
- set { _operatorname = value; }
- get { return _operatorname; }
- }
- ///
- ///
- ///
- public DateTime OperateDate
- {
- set { _operatedate = value; }
- get { return _operatedate; }
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/Model/FactOperationInfo.cs b/AIMS/OperationDoing/AnasRecordBill/Model/FactOperationInfo.cs
deleted file mode 100644
index d404a0b..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/Model/FactOperationInfo.cs
+++ /dev/null
@@ -1,103 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationDoing.AnasRecordBill.Model
-{
- public class FactOperationInfo
- {
- #region Model
- private int _id;
- private int _patientid;
- private int _applyid;
- private int _operationid;
- private string _operatorno;
- private string _operatorname;
- private DateTime _operatedate;
- private string operationName;
- private string leftRemark;
- private string rightRemark;
- ///
- ///
- ///
- public int Id
- {
- set { _id = value; }
- get { return _id; }
- }
- ///
- ///
- ///
- public int PatientId
- {
- set { _patientid = value; }
- get { return _patientid; }
- }
- ///
- ///
- ///
- public int ApplyId
- {
- set { _applyid = value; }
- get { return _applyid; }
- }
- ///
- ///
- ///
- public int OperationId
- {
- set { _operationid = value; }
- get { return _operationid; }
- }
- ///
- ///
- ///
- public string OperatorNo
- {
- set { _operatorno = value; }
- get { return _operatorno; }
- }
- ///
- ///
- ///
- public string OperatorName
- {
- set { _operatorname = value; }
- get { return _operatorname; }
- }
- ///
- ///
- ///
- public DateTime OperateDate
- {
- set { _operatedate = value; }
- get { return _operatedate; }
- }
- ///
- ///
- ///
- public string OperationName
- {
- get { return operationName; }
- set { operationName = value; }
- }
- ///
- ///
- ///
- public string LeftRemark
- {
- get { return leftRemark; }
- set { leftRemark = value; }
- }
- ///
- ///
- ///
- public string RightRemark
- {
- get { return rightRemark; }
- set { rightRemark = value; }
- }
- #endregion Model
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/Model/FactOperationPosition.cs b/AIMS/OperationDoing/AnasRecordBill/Model/FactOperationPosition.cs
deleted file mode 100644
index a40b0e7..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/Model/FactOperationPosition.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationDoing.AnasRecordBill.Model
-{
- public class FactOperationPosition
- {
- private int _id;
- private int _patientid;
- private int _applyid;
- private int _operationpositionid;
- private string _operatorno;
- private string _operatorname;
- private DateTime _operatedate;
- ///
- ///
- ///
- public int Id
- {
- set { _id = value; }
- get { return _id; }
- }
- ///
- ///
- ///
- public int PatientId
- {
- set { _patientid = value; }
- get { return _patientid; }
- }
- ///
- ///
- ///
- public int ApplyId
- {
- set { _applyid = value; }
- get { return _applyid; }
- }
- ///
- ///
- ///
- public int OperationPositionId
- {
- set { _operationpositionid = value; }
- get { return _operationpositionid; }
- }
- ///
- ///
- ///
- public string OperatorNo
- {
- set { _operatorno = value; }
- get { return _operatorno; }
- }
- ///
- ///
- ///
- public string OperatorName
- {
- set { _operatorname = value; }
- get { return _operatorname; }
- }
- ///
- ///
- ///
- public DateTime OperateDate
- {
- set { _operatedate = value; }
- get { return _operatedate; }
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/Model/FactPersonDuty.cs b/AIMS/OperationDoing/AnasRecordBill/Model/FactPersonDuty.cs
deleted file mode 100644
index cf304bb..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/Model/FactPersonDuty.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationDoing.AnasRecordBill.Model
-{
- public class FactPersonDuty
- {
- private int _id;
- private int _patientid;
- private int _applyid;
- private int _persondutyid;
- private int _personid;
- private string _operatorno;
- private string _operatorname;
- private DateTime? _operatedate;
- ///
- ///
- ///
- public int Id
- {
- set { _id = value; }
- get { return _id; }
- }
- ///
- ///
- ///
- public int PatientId
- {
- set { _patientid = value; }
- get { return _patientid; }
- }
- ///
- ///
- ///
- public int ApplyId
- {
- set { _applyid = value; }
- get { return _applyid; }
- }
- ///
- ///
- ///
- public int PersonDutyId
- {
- set { _persondutyid = value; }
- get { return _persondutyid; }
- }
- ///
- ///
- ///
- public int PersonId
- {
- set { _personid = value; }
- get { return _personid; }
- }
- ///
- ///
- ///
- public string OperatorNo
- {
- set { _operatorno = value; }
- get { return _operatorno; }
- }
- ///
- ///
- ///
- public string OperatorName
- {
- set { _operatorname = value; }
- get { return _operatorname; }
- }
- ///
- ///
- ///
- public DateTime? OperateDate
- {
- set { _operatedate = value; }
- get { return _operatedate; }
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/Model/OperationRecord.cs b/AIMS/OperationDoing/AnasRecordBill/Model/OperationRecord.cs
deleted file mode 100644
index 3d2b86a..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/Model/OperationRecord.cs
+++ /dev/null
@@ -1,283 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationDoing.AnasRecordBill.Model
-{
- public class OperationRecord
- {
- #region Model
- private int _id;
- private int _patientid;
- private int _operationapplyid;
- private int _operationlevelid;
- private string _opeaftermode;
- private string _specialsituation;
- private string _puncturebodyposition;
- private string _punctureposition;
- private string _catheterdepth;
- private string _needlesize;
- private string _needledirection;
- private string _anaesthesiaplane;
- private string _anaesthesiaeffect;
- private string _cannulaorlaryngealmasktype;
- private string _tubenumber;
- private string _depth;
- private int _tracheainner;
- private int _bronchialinner;
- private int _fastanaesthesia;
- private int _planeanaesthesia;
- private int _mouth;
- private int _noseleft;
- private int _noseright;
- private int _photopic;
- private int _cuff;
- private int _stopperfabric;
- private string _remarks;
- private string _operatorno;
- private string _operatorname;
- private DateTime _operatedate;
- ///
- ///
- ///
- public int Id
- {
- set{ _id=value;}
- get{return _id;}
- }
- ///
- ///
- ///
- public int PatientId
- {
- set{ _patientid=value;}
- get{return _patientid;}
- }
- ///
- ///
- ///
- public int OperationApplyId
- {
- set{ _operationapplyid=value;}
- get{return _operationapplyid;}
- }
- ///
- /// 手术分级
- ///
- public int OperationLevelId
- {
- set{ _operationlevelid=value;}
- get{return _operationlevelid;}
- }
- ///
- /// 术后镇痛方式
- ///
- public string OpeAfterMode
- {
- set{ _opeaftermode=value;}
- get{return _opeaftermode;}
- }
- ///
- /// 特殊情况
- ///
- public string SpecialSituation
- {
- set{ _specialsituation=value;}
- get{return _specialsituation;}
- }
- ///
- /// 穿刺体位
- ///
- public string PunctureBodyPosition
- {
- set{ _puncturebodyposition=value;}
- get{return _puncturebodyposition;}
- }
- ///
- /// 穿刺部位
- ///
- public string PuncturePosition
- {
- set{ _punctureposition=value;}
- get{return _punctureposition;}
- }
- ///
- /// 导管深度
- ///
- public string CatheterDepth
- {
- set{ _catheterdepth=value;}
- get{return _catheterdepth;}
- }
- ///
- /// 针号
- ///
- public string NeedleSize
- {
- set{ _needlesize=value;}
- get{return _needlesize;}
- }
- ///
- /// 针向
- ///
- public string NeedleDirection
- {
- set{ _needledirection=value;}
- get{return _needledirection;}
- }
- ///
- /// 麻醉平面
- ///
- public string AnaesthesiaPlane
- {
- set{ _anaesthesiaplane=value;}
- get{return _anaesthesiaplane;}
- }
- ///
- /// 麻醉效果
- ///
- public string AnaesthesiaEffect
- {
- set{ _anaesthesiaeffect=value;}
- get{return _anaesthesiaeffect;}
- }
- ///
- ///
- ///
- public string CannulaOrLaryngealMaskType
- {
- set{ _cannulaorlaryngealmasktype=value;}
- get{return _cannulaorlaryngealmasktype;}
- }
- ///
- /// 管号
- ///
- public string TubeNumber
- {
- set{ _tubenumber=value;}
- get{return _tubenumber;}
- }
- ///
- /// 深度
- ///
- public string Depth
- {
- set{ _depth=value;}
- get{return _depth;}
- }
- ///
- /// 气管内
- ///
- public int TracheaInner
- {
- set{ _tracheainner=value;}
- get{return _tracheainner;}
- }
- ///
- /// 支气管内
- ///
- public int BronchialInner
- {
- set{ _bronchialinner=value;}
- get{return _bronchialinner;}
- }
- ///
- /// 快速麻醉
- ///
- public int FastAnaesthesia
- {
- set{ _fastanaesthesia=value;}
- get{return _fastanaesthesia;}
- }
- ///
- /// 表面麻醉
- ///
- public int PlaneAnaesthesia
- {
- set{ _planeanaesthesia=value;}
- get{return _planeanaesthesia;}
- }
- ///
- /// 经口
- ///
- public int Mouth
- {
- set{ _mouth=value;}
- get{return _mouth;}
- }
- ///
- ///
- ///
- public int NoseLeft
- {
- set{ _noseleft=value;}
- get{return _noseleft;}
- }
- ///
- ///
- ///
- public int NoseRight
- {
- set{ _noseright=value;}
- get{return _noseright;}
- }
- ///
- /// 明视
- ///
- public int Photopic
- {
- set{ _photopic=value;}
- get{return _photopic;}
- }
- ///
- /// 套囊
- ///
- public int Cuff
- {
- set{ _cuff=value;}
- get{return _cuff;}
- }
- ///
- /// 塞布
- ///
- public int StopperFabric
- {
- set{ _stopperfabric=value;}
- get{return _stopperfabric;}
- }
- ///
- ///
- ///
- public string Remarks
- {
- set{ _remarks=value;}
- get{return _remarks;}
- }
- ///
- ///
- ///
- public string OperatorNo
- {
- set{ _operatorno=value;}
- get{return _operatorno;}
- }
- ///
- ///
- ///
- public string OperatorName
- {
- set{ _operatorname=value;}
- get{return _operatorname;}
- }
- ///
- ///
- ///
- public DateTime OperateDate
- {
- set{ _operatedate=value;}
- get{return _operatedate;}
- }
- #endregion Model
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/Model/PhysioData.cs b/AIMS/OperationDoing/AnasRecordBill/Model/PhysioData.cs
deleted file mode 100644
index 89b7a1d..0000000
--- a/AIMS/OperationDoing/AnasRecordBill/Model/PhysioData.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-using DrawGraph;
-using System.Windows.Forms;
-using System.Drawing;
-
-namespace AIMS.OperationDoing.AnasRecordBill.Model
-{
- public class PhysioData : PointPair
- {
- private int _Id;
- private int _PhysioParamID;
- private int _physiodatatype;
- private int _PatientId;
- private DateTime _RecordTime;
- private Double _Value;
-
- #region 属性
- public int Id
- {
- get { return _Id; }
- set { _Id = value; }
- }
- public int PhysioParamID
- {
- get { return _PhysioParamID; }
- set { _PhysioParamID = value; }
- }
- public int PhysioDataType
- {
- get { return _physiodatatype; }
- set { _physiodatatype = value; }
- }
-
- public int PatientId
- {
- get { return _PatientId; }
- set { _PatientId = value; }
- }
- public DateTime RecordTime
- {
- get { return _RecordTime; }
- set
- {
- _RecordTime = value;
- this.X = new XDate(value);
- }
- }
- public Double Value
- {
- get { return this._Value; }
- set
- {
- this._Value = value;
- this.Y = value;
- }
- }
-
- #endregion
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBillNew.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBillNew.cs
index d8eaed7..ec3e71c 100644
--- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBillNew.cs
+++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBillNew.cs
@@ -3,6 +3,7 @@ using AIMS.OperationFront.UI;
using AIMS.PublicUI.UI;
using AIMSBLL;
using AIMSExtension;
+using AIMSModel;
using DevComponents.Editors.DateTimeAdv;
using DrawGraph;
using Newtonsoft.Json;
@@ -122,7 +123,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
{
int pylWidth = 3;
- PrintDocument pDoc = new PrintDocument();
+ System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();
pDoc.DefaultPageSettings.Landscape = false;
pDoc.OriginAtMargins = true;
pDoc.DefaultPageSettings.Margins = new Margins(pylWidth, 0, 0, 0);//8, 0);
@@ -244,7 +245,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
count = 0;
int pylWidth = 3;
- PrintDocument pDoc = new PrintDocument();
+ System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();
pDoc.DefaultPageSettings.Landscape = false;
pDoc.OriginAtMargins = true;
pDoc.DefaultPageSettings.PrinterResolution.Kind = PrinterResolutionKind.High;
@@ -772,8 +773,8 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
_record.OperationApplyId = ApplyId;
_record.PatientId = PatientId;
_record.RecoverId = RecoverId;
- _record.Id = BLL.OperationRecord.AddTitleTime(PatientId, ApplyId, RecoverId, "InRoomTime", DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm:00")), NowRoom.Id.Value);
- BLL.OperationRecord.UpdateState(PatientId, RecoverId, 1);
+ _record.Id = BOperationRecord.AddTitleTime(PatientId, ApplyId, RecoverId, "InRoomTime", DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm:00")), NowRoom.Id.Value);
+ BOperationRecord.UpdateState(PatientId, RecoverId, 1);
HelperDB.DbHelperSQL.CommitTrans();
//_record.currentPage = 1;
ClearTimeText();
@@ -922,7 +923,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
MessageBox.Show("请选择患者!");
return;
}
- if (BLL.FillAnasRecordBillData.GetDataCount(_record.Id.Value, PatientId, RecoverId) > 0)
+ if (BOperationRecord.GetDataCount(_record.Id.Value, PatientId, RecoverId) > 0)
{
MessageBox.Show("清除数据在进行作废手术操作!");
return;
@@ -933,9 +934,9 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
{
HelperDB.DbHelperSQL.BeginTrans();
- OperationFront.BLL.OperationApply.UpdateApplyState(ApplyId, 11);
- //BLL.OperationRecord.DeleteOperationRecordData(PatientId, RecoverId);
- BLL.OperationRecord.UpdateState(PatientId, 1, 5);
+ BOperationApply.UpdateApplyState(ApplyId, 11);
+ //BOperationRecord.DeleteOperationRecordData(PatientId, RecoverId);
+ BOperationRecord.UpdateState(PatientId, 1, 5);
HelperDB.DbHelperSQL.CommitTrans();
//ClearData();
@@ -954,7 +955,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
MessageBox.Show("请选择患者!");
return;
}
- if (BLL.FillAnasRecordBillData.GetDataCount(_record.Id.Value, PatientId, RecoverId) > 0)
+ if (BOperationRecord.GetDataCount(_record.Id.Value, PatientId, RecoverId) > 0)
{
MessageBox.Show("清除数据在进行取消转入操作!");
return;
@@ -964,8 +965,8 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
try
{
HelperDB.DbHelperSQL.BeginTrans();
- OperationFront.BLL.OperationApply.UpdateApplyState(ApplyId, 5);
- BLL.OperationRecord.DeleteOperationRecordData(_record.Id.Value, PatientId, RecoverId);
+ BOperationApply.UpdateApplyState(ApplyId, 5);
+ BOperationRecord.DeleteOperationRecordData(_record.Id.Value, PatientId, RecoverId);
HelperDB.DbHelperSQL.CommitTrans();
DisposeTimer();
@@ -1820,8 +1821,8 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
}
}
_record.State = "手术结束";
- OperationFront.BLL.OperationApply.UpdateApplyState(ApplyId, 8);
- BLL.OperationRecord.UpdateState(PatientId, 1, 2);
+ BOperationApply.UpdateApplyState(ApplyId, 8);
+ BOperationRecord.UpdateState(PatientId, 1, 2);
//PublicMethod.WriteLog("结束转出手术: " + _record.Id);
//TipBox.Hidden(true);
diff --git a/AIMS/OperationDoing/AnasRecordBill/frmFactDrugNew.cs b/AIMS/OperationDoing/AnasRecordBill/frmFactDrugNew.cs
index f1edd2a..a5bfeeb 100644
--- a/AIMS/OperationDoing/AnasRecordBill/frmFactDrugNew.cs
+++ b/AIMS/OperationDoing/AnasRecordBill/frmFactDrugNew.cs
@@ -165,7 +165,7 @@ namespace AIMS.PublicUI.UI
_VelocityUnit.Insert(0, new BasicDictionary() { Id = -1, Name = "" });
_DensityUnit = BBasicDictionary.GetBasicDictionaryByName("浓度单位").SubItem;
_DensityUnit.Insert(0, new BasicDictionary() { Id = -1, Name = "" });
- DataTable dt = DataDictionary.BLL.Drugs.GetDrugsDataTable();
+ DataTable dt = BDrugs.GetDrugsDataTable();
FullCommonlyDrugs(dt, AnesPanel);
}
@@ -1260,7 +1260,7 @@ namespace AIMS.PublicUI.UI
if (TabSelDrugs.SelectedTab.Name == "AnesTab")
{
panel = AnesPanel;
- dt = DataDictionary.BLL.Drugs.GetDrugsDataTable();
+ dt = BDrugs.GetDrugsDataTable();
}
if (Superitem.Tag != null && Superitem.Tag.ToString() != "")
{
diff --git a/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquids.cs b/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquids.cs
index 9f1332e..8407d41 100644
--- a/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquids.cs
+++ b/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquids.cs
@@ -28,13 +28,13 @@ namespace AIMS.PublicUI.UI
rbSingle.Checked = true;
- cboName.DataSource = DataDictionary.BLL.OutputLiquids.GetDataTable();
+ cboName.DataSource = BOutputLiquids.GetDataTable();
cboName.DisplayMember = "Name";
cboName.ValueMember = "Id";
cboName.SelectedIndex = -1;
- cboDosageUnit.DataSource = DrugManagement.BLL.DosageUnit.GetDataTable(1);
+ cboDosageUnit.DataSource = BDosageUnit.GetDataTable(1);
cboDosageUnit.DisplayMember = "Name";
cboDosageUnit.ValueMember = "Id";
cboDosageUnit.SelectedIndex = -1;
@@ -52,7 +52,7 @@ namespace AIMS.PublicUI.UI
MessageBox.Show("剂量不能为空!");
return;
}
- if (OperationDoing.AnasRecordBill.BLL.OperationRecord.GetTitleTime(PatientId, OutputLiquidTypeId).InRoomTime > dtpBegin.Value)
+ if (BOperationRecord.GetTitleTime(PatientId, OutputLiquidTypeId).InRoomTime > dtpBegin.Value)
{
MessageBox.Show("不能早于入室时间!");
return;
diff --git a/AIMS/OperationDoing/AnasRecordBill/frmOperationInfoNew.cs b/AIMS/OperationDoing/AnasRecordBill/frmOperationInfoNew.cs
index 693bfc2..348ab91 100644
--- a/AIMS/OperationDoing/AnasRecordBill/frmOperationInfoNew.cs
+++ b/AIMS/OperationDoing/AnasRecordBill/frmOperationInfoNew.cs
@@ -93,7 +93,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
cboOperationLevel.DisplayMember = "Name";
cboOperationLevel.ValueMember = "Id";
- cboOperationLevel.DataSource = DataDictionary.BLL.OperationLevel.GetDataTable("IsValid=1");
+ cboOperationLevel.DataSource = BOperationLevel.GetDataTable("IsValid=1");
cboOperationLevel.SelectedIndex = -1;
if (txtOperationCut.DataSource == null) BindBasicDictionaryToComboBox(txtOperationCut, "手术切口");
@@ -525,7 +525,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
foreach (int RowId in frmOperationDoctor.SelectPersonData)
{
- controlTextBox.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ controlTextBox.Text += BPerson.GetModel(RowId).Name + " ,";
}
if (controlTextBox.Text != "")
{
@@ -1215,7 +1215,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
SelectAnaesthesiaMethodData = frmAnaesthesia.SelectAnaesthesiaMethodData;
foreach (int RowId in frmAnaesthesia.SelectAnaesthesiaMethodData)
{
- txtAnaesthesiaMethod.Text += DataDictionary.BLL.AnaesthesiaMethod.GetModel(RowId).Name + " ,";
+ txtAnaesthesiaMethod.Text += BAnaesthesiaMethod.GetModel(RowId).Name + " ,";
}
int idxStart = txtAnaesthesiaMethod.Text.LastIndexOf(" ,");
txtAnaesthesiaMethod.Text = txtAnaesthesiaMethod.Text.Substring(0, idxStart);
diff --git a/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew.cs b/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew.cs
index 2510887..f744241 100644
--- a/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew.cs
+++ b/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew.cs
@@ -27,8 +27,8 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
private void frmSelectPatientNew_Load(object sender, EventArgs e)
{
- List rooms = DataDictionary.BLL.OperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'");
- rooms.Insert(0, new DataDictionary.Model.OperationRoom() { Id = -1, Name = "" });
+ List rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'");
+ rooms.Insert(0, new OperationRoom() { Id = -1, Name = "" });
cboRoom.DataSource = rooms;
cboRoom.DisplayMember = "Name";
cboRoom.ValueMember = "Id";
@@ -65,7 +65,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
panel2.Visible = false;
int i = 0, j = 0;
- DataTable dt = OperationDoing.AnasRecordBill.BLL.SelectPatient.GetSelectPatientDataTable
+ DataTable dt = SelectPatient.GetSelectPatientDataTable
(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoom.SelectedValue.ToString());
foreach (DataRow dr in dt.Rows)
{
@@ -85,7 +85,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
if (i >= 5) break;
}
- DataTable dt2 = OperationDoing.AnasRecordBill.BLL.SelectPatient.GetRelieveLockingPatientDataTable
+ DataTable dt2 = SelectPatient.GetRelieveLockingPatientDataTable
(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoom.SelectedValue.ToString());
foreach (DataRow dr in dt2.Rows)
{
@@ -160,7 +160,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
opeapply.State = 4;
opeapply.OperationRoomId = int.Parse(seleteRoom.RoomId);
opeapply.PlanOperationTime = dtpSelectPatientTime.Value;
- opeapply.PlanOrder = AIMS.OperationFront.BLL.OperationApply.GetMaxPlanOrder(opeapply.PlanOperationTime.Value, opeapply.OperationRoomId.Value) + 1;
+ opeapply.PlanOrder = BOperationApply.GetMaxPlanOrder(opeapply.PlanOperationTime.Value, opeapply.OperationRoomId.Value) + 1;
BOperationApply.Update(opeapply);
}
}
@@ -180,7 +180,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
frmAnasRecord.ApplyId = applyId;
frmAnasRecord.NowRoom = AIMSBLL.BOperationRoom.SelectSingle(RoomId);
frmAnasRecord.State = AIMSExtension.EditState.ADD;
- OperationDoing.AnasRecordBill.BLL.InRoom.UpdateApplyState(PatientId, applyId); //修改状态
+ SelectPatient.UpdateApplyState(PatientId, applyId); //修改状态
if (isMainOpen == false)
{
@@ -231,7 +231,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
{
if (uc.buttonX2.Text == "取消手术")
{
- if (BLL.FillAnasRecordBillData.GetDataCount(RecorId, PatientId, 1) > 0)
+ if (BOperationRecord.GetDataCount(RecorId, PatientId, 1) > 0)
{
MessageBox.Show("清除数据在进行取消转入操作!");
return;
@@ -241,8 +241,8 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
try
{
HelperDB.DbHelperSQL.BeginTrans();
- OperationFront.BLL.OperationApply.UpdateApplyState(applyId, 4);
- BLL.OperationRecord.DeleteOperationRecordData(RecorId, PatientId, 1);
+ BOperationApply.UpdateApplyState(applyId, 4);
+ BOperationRecord.DeleteOperationRecordData(RecorId, PatientId, 1);
HelperDB.DbHelperSQL.CommitTrans();
if (isMainOpen == false)
@@ -267,9 +267,9 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
try
{
HelperDB.DbHelperSQL.BeginTrans();
- OperationFront.BLL.OperationApply.UpdateApplyState(applyId, 6);
- BLL.OperationRecord.UpdateState(PatientId, 1, 1);
- BLL.OperationRecord.DeleteEvent(PatientId, 8);
+ BOperationApply.UpdateApplyState(applyId, 6);
+ BOperationRecord.UpdateState(PatientId, 1, 1);
+ BOperationRecord.DeleteEvent(PatientId, 8);
HelperDB.DbHelperSQL.CommitTrans();
AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBillNew frmAnasRecord = new frmAnasRecordBillNew();
@@ -326,7 +326,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
opeapply.State = 4;
opeapply.OperationRoomId = int.Parse(seleteRoom.RoomId);
opeapply.PlanOperationTime = dtpSelectPatientTime.Value;
- opeapply.PlanOrder = AIMS.OperationFront.BLL.OperationApply.GetMaxPlanOrder(opeapply.PlanOperationTime.Value, opeapply.OperationRoomId.Value) + 1;
+ opeapply.PlanOrder = BOperationApply.GetMaxPlanOrder(opeapply.PlanOperationTime.Value, opeapply.OperationRoomId.Value) + 1;
BOperationApply.Update(opeapply);
}
}
diff --git a/AIMS/OperationDoing/AnasRecordBill/frmSeleteRoom.cs b/AIMS/OperationDoing/AnasRecordBill/frmSeleteRoom.cs
index 2408eab..4d2b5c1 100644
--- a/AIMS/OperationDoing/AnasRecordBill/frmSeleteRoom.cs
+++ b/AIMS/OperationDoing/AnasRecordBill/frmSeleteRoom.cs
@@ -1,4 +1,6 @@
-using DrawGraph;
+using AIMSBLL;
+using AIMSModel;
+using DrawGraph;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -21,12 +23,12 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
private void frmDeletePhysio_Load(object sender, EventArgs e)
{
- List rooms = DataDictionary.BLL.OperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'");
+ List rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'");
panel1.Controls.Clear();
int rows = 0;
//循环加载CheckBox控件
- foreach (DataDictionary.Model.OperationRoom ade in rooms )
+ foreach (OperationRoom ade in rooms )
{
if (NowRoomId!=null && ade.Id.ToString() == NowRoomId) continue;
RadioButton cb = new RadioButton ();
@@ -47,7 +49,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
//判断CheckBox被选中时
if (((RadioButton)sender).Checked)
{
- RoomId = (((RadioButton)sender).Tag as DataDictionary.Model.OperationRoom).Id.ToString();
+ RoomId = (((RadioButton)sender).Tag as OperationRoom).Id.ToString();
}
}
diff --git a/AIMS/OperationDoing/AnasRecoverBill/BLL/SelectPatient.cs b/AIMS/OperationDoing/AnasRecoverBill/BLL/SelectPatient.cs
deleted file mode 100644
index e84b568..0000000
--- a/AIMS/OperationDoing/AnasRecoverBill/BLL/SelectPatient.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecoverBill.BLL
-{
- public class SelectPatient
- {
- public static DataTable GetSelectPatientDataTable(DateTime BeginDate)
- {
- return new DAL.SelectPatientDB().GetSelectPatientDataTable(BeginDate);
- }
-
- public static DataTable GetRecoverLockingPatientDataTable(DateTime BeginDate)
- {
- return new DAL.SelectPatientDB().GetRecoverLockingPatientDataTable(BeginDate);
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecoverBill/DAL/SelectPatientDB.cs b/AIMS/OperationDoing/AnasRecoverBill/DAL/SelectPatientDB.cs
deleted file mode 100644
index 8eab961..0000000
--- a/AIMS/OperationDoing/AnasRecoverBill/DAL/SelectPatientDB.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationDoing.AnasRecoverBill.DAL
-{
- public class SelectPatientDB
- {
- public DataTable GetSelectPatientDataTable(DateTime BeginDate)
- {
- string strSql = "SELECT of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, " +
- "or2.OperationInfoName AS ApplyOperationInfoName,or2.OperationDoctor,or2.AnesthesiaDoctor,of1.OperationRoomId " +
- "FROM V_OperationFront of1 "+
- "LEFT JOIN V_OperationDoing or2 ON or2.PatientId =of1.PatientId " +
- "WHERE of1.State ='手术结束' and or2.InRoomTime>='" + BeginDate + "' AND or2.InRoomTime<'" + BeginDate.AddDays(1) + "'";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public DataTable GetRecoverLockingPatientDataTable(DateTime BeginDate)
- {
- string strSql = "SELECT of2.Id,of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, of2.OperationInfoNames ApplyOperationInfoName, of2.OperationDoctor, of2.AnesthesiaDoctor,of2.OperationRoomId,of2.State ,of1.Sex,[dbo].[funGetAge](of1.BirthDay,getdate()) age,of2.InRoomTime,of2.Nurse InstrumentNurse,of2.Nurse2 TourNurse,of2.DiagnoseInfoName ApplyDiagnoseInfoName ,of2.OperationRoom,(select OutRoomTime from OperationRecord where OperationRecord.RecoverId=1 and OperationRecord.PatientId=of2.PatientId) OutRoomTime FROM V_OperationDoing of2 left join[dbo].[V_OperationFront] of1 on of1.PatientId = of2.PatientId WHERE of2.State in( '麻醉恢复中') and of2.InRoomTime >= '" + BeginDate + "' AND of2.InRoomTime<'" + BeginDate.AddDays(1) + "' and RecoverId=2 ";
- strSql += " order by [StateId] asc";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecoverBill/Model/TitleTime.cs b/AIMS/OperationDoing/AnasRecoverBill/Model/TitleTime.cs
deleted file mode 100644
index b0f4218..0000000
--- a/AIMS/OperationDoing/AnasRecoverBill/Model/TitleTime.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationDoing.AnasRecoverBill.Model
-{
- public class TitleTime
- {
- private DateTime? _inroomtime;
- private DateTime? _outroomtime;
-
- public DateTime? InRoomTime
- {
- set { _inroomtime = value; }
- get { return _inroomtime; }
- }
-
- public DateTime? OutRoomTime
- {
- set { _outroomtime = value; }
- get { return _outroomtime; }
- }
-
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecoverBill/UI/frmAnasRecoverBillNew.cs b/AIMS/OperationDoing/AnasRecoverBill/UI/frmAnasRecoverBillNew.cs
deleted file mode 100644
index 500a3e4..0000000
--- a/AIMS/OperationDoing/AnasRecoverBill/UI/frmAnasRecoverBillNew.cs
+++ /dev/null
@@ -1,1579 +0,0 @@
-using AIMS.DocManager;
-using AIMS.OperationFront.UI;
-using AIMSBLL;
-using DevComponents.Editors.DateTimeAdv;
-using DrawGraph;
-using Newtonsoft.Json;
-using AIMSExtension;
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Drawing.Printing;
-using System.Linq;
-using System.Reflection;
-using System.Windows.Forms;
-
-namespace AIMS.OperationDoing.AnasRecordBill.UI
-{
- public partial class frmAnasRecoverBillNew : Form
- {
- public OperationRecord _record;
- public TemplateManage templateManage;
- public AIMSModel.OperationRoom NowRoom;
- public int PatientId = 0;
- public int ApplyId = 0;
- public int RecoverId = 2;
- private System.Windows.Forms.Timer timerGetTextCollectorData;
-
- public AIMSExtension.EditState State;
-
- public frmAnasRecoverBillNew()
- {
- InitializeComponent();
- #region 时间轴事件
- txtInRoom.MouseDown += new MouseEventHandler(txtDateTime_MouseDown);
- txtOutRoom.MouseDown += new MouseEventHandler(txtDateTime_MouseDown);
- txtAnaesthesiaEnd.MouseDown += new MouseEventHandler(txtDateTime_MouseDown);
- txtBG.MouseDown += new MouseEventHandler(txtDateTime_MouseDown);
-
- txtInRoom.KeyPress += new KeyPressEventHandler(txtInRoom_KeyPress);
- txtOutRoom.KeyPress += new KeyPressEventHandler(txtInRoom_KeyPress);
- txtAnaesthesiaEnd.KeyPress += new KeyPressEventHandler(dateTimePicker_KeyPress);
- txtBG.KeyPress += new KeyPressEventHandler(dateTimePicker_KeyPress);
-
- txtInRoom.LostFocus += new EventHandler(txtDateTime_LostFocus);
- txtOutRoom.LostFocus += new EventHandler(txtDateTime_LostFocus);
- txtAnaesthesiaEnd.LostFocus += new EventHandler(txtDateTime_LostFocus);
- txtBG.LostFocus += new EventHandler(txtDateTime_LostFocus);
- //txtInRoom.Enabled = false;
- //txtOutRoom.Enabled = false;
- //txtAnaesthesiaBegin.Enabled = false;
- //txtAnaesthesiaEnd.Enabled = false;
- //txtOperationBegin.Enabled = false;
- //txtOperationEnd.Enabled = false;
- #endregion
- }
-
- private void frmAnasRecoverBillNew_Load(object sender, EventArgs e)
- {
- AIMSExtension.PublicMethod.SetLocalDateTime();
- labOperatorName.Text = "(" + AIMSExtension.PublicMethod.OperatorNo + ")" + " " + AIMSExtension.PublicMethod.OperatorName;
-
- DrawAnasReordBill.IniDrawAnasReordBill3(_record, zgcAnaesRecord, ref templateManage); //初始化麻醉记录单界面
-
- //if (PatientId > 0 && State == AIMSExtension.EditState.BROWSE)
- //{
- // btnSelectPatient.Enabled = false;
- // btnCancelIn.Enabled = false;
- // btnCancelOperation.Enabled = false;
- // btnOutPrint.Enabled = false;
- //}
-
- frmSelectPatient_FormClosed(null, null);
- }
-
-
- #region 打印
- public int printWidth = Convert.ToInt32(800 * 0.98);
- public int printHeight = 1160;
- private void pDoc_PrintPage(object sender, PrintPageEventArgs e)
- {
- try
- {
-
- int zgcAnaesRecordWidth = zgcAnaesRecord.Size.Width;
- int zgcAnaesRecordHeight = zgcAnaesRecord.Size.Height;
-
- //zgcAnaesRecord.Size = new Size((sender as PrintDocument).DefaultPageSettings.PaperSize.Width, (sender as PrintDocument).DefaultPageSettings.PaperSize.Height);
-
- printHeight = Convert.ToInt32(printWidth * 1.414) + 2;
- zgcAnaesRecord.Size = new Size(printWidth, printHeight);
-
- MasterPane mPane = zgcAnaesRecord.MasterPane; //this.MasterPane;
- mPane.Border.IsVisible = false;
- //GraphPane cPane = mPane.PaneList[0]; //graphPane;
- //cPane.Border.IsVisible = false;
-
- //当前窗体中的矩形区域大小
- RectangleF saveRect = mPane.Rect;
-
- templateManage.initChart();
- if (e != null)
- mPane.Draw(e.Graphics); //在打印文档中画出MasterPane内容
- using (Graphics g = zgcAnaesRecord.CreateGraphics())
- {
- mPane.ReSize(g, saveRect);
- }
-
- zgcAnaesRecord.Size = new Size(zgcAnaesRecordWidth, zgcAnaesRecordHeight);
- templateManage.initChart();
-
-
- }
- catch (Exception ex)
- {
- Console.Write(ex.ToString());
- }
- }
-
- private void plPrintBrowse_Click(object sender, EventArgs e)
- {
- PrintDocument pDoc = new PrintDocument();
- pDoc.DefaultPageSettings.Landscape = false;
- pDoc.OriginAtMargins = true;
- pDoc.DefaultPageSettings.PrinterResolution.Kind = PrinterResolutionKind.High;
- pDoc.DefaultPageSettings.Margins = new Margins(0, 0, 0, 0);
- pDoc.PrintPage -= new PrintPageEventHandler(pDoc_PrintPage);
- pDoc.PrintPage += new PrintPageEventHandler(pDoc_PrintPage);
- PrintPreviewDialog printPreviewDialog = new PrintPreviewDialog();
- printPreviewDialog.ClientSize = new Size(800, 1100);
- printPreviewDialog.Document = pDoc;
- printPreviewDialog.PrintPreviewControl.Zoom = 1.0;
- printPreviewDialog.ShowDialog();
-
- }
-
- private void plPrint_Click(object sender, EventArgs e)
- {
- PrintDocument pDoc = new PrintDocument();
- pDoc.DefaultPageSettings.Landscape = false;
- pDoc.OriginAtMargins = true;
- pDoc.DefaultPageSettings.PrinterResolution.Kind = PrinterResolutionKind.High;
- pDoc.DefaultPageSettings.Margins = new Margins(0, 0, 0, 0);
- pDoc.PrintPage -= new PrintPageEventHandler(pDoc_PrintPage);
- pDoc.PrintPage += new PrintPageEventHandler(pDoc_PrintPage);
-
- System.Windows.Forms.PrintDialog pDlg = new System.Windows.Forms.PrintDialog();
- pDlg.Document = pDoc;
- if (pDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- {
- pDoc.Print();
- }
- }
- #endregion
-
- #region 界面上方按钮
-
- private void tsbEditApply_Click(object sender, EventArgs e)
- {
- if (PatientId > 0)
- {
- AIMS.OperationFront.UI.frmOperationApplyDetail frmOperationApplyDetail = new OperationFront.UI.frmOperationApplyDetail();
- frmOperationApplyDetail.State = AIMSExtension.EditState.EDIT;
- frmOperationApplyDetail.EditApplyId = ApplyId;
- frmOperationApplyDetail.FormClosed += new FormClosedEventHandler(frmOperationApplyDetail_FormClosed);
- frmOperationApplyDetail.ShowDialog();
- }
- else
- {
- MessageBox.Show("请选择患者");
- }
- }
-
- void frmOperationApplyDetail_FormClosed(object sender, FormClosedEventArgs e)
- {
- plRefresh_Click(null, null);
- }
-
-
- #endregion
-
- #region 界面下方按钮
- private void panel8_Scroll(object sender, ScrollEventArgs e)
- {
- //SetPanelLocation();
- templateManage.SetPYL();
- }
-
-
- #endregion
-
- #region 界面左按钮
- private void btnSelectPatient_Click(object sender, EventArgs e)
- {
- OperationDoing.AnasRecordBill.UI.frmRecoverPatient frmSelectPatient = new UI.frmRecoverPatient();
- frmSelectPatient.FormClosed += new FormClosedEventHandler(frmSelectPatient_FormClosed);
- frmSelectPatient.ShowDialog();
-
- }
-
- void frmSelectPatient_FormClosed(object sender, FormClosedEventArgs e)
- {
- try
- {
- if (PatientId > 0 && State == AIMSExtension.EditState.ADD)
- {
- try
- {
- HelperDB.DbHelperSQL.BeginTrans();
- _record = new OperationRecord();
- _record.OperationApplyId = ApplyId;
- _record.PatientId = PatientId;
- _record.RecoverId = RecoverId;
- _record.Id = BLL.OperationRecord.AddTitleTime(PatientId, ApplyId, RecoverId, "InRoomTime", DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm:00")), NowRoom.Id.Value);
- BLL.OperationRecord.UpdateState(PatientId, RecoverId, 3);
- HelperDB.DbHelperSQL.CommitTrans();
- //_record.currentPage = 1;
- btnSelectPatient.Enabled = false;
- }
- catch
- {
- HelperDB.DbHelperSQL.RollbackTrans();
- }
- }
- else if (PatientId > 0 && State == AIMSExtension.EditState.EDIT)
- {
- _record = new OperationRecord();
- btnSelectPatient.Enabled = false; //清空记录点并重新加载
- ClearTimeText();
- if (templateManage != null)
- {
- templateManage.ControlClear();
- }
- DrawAnasReordBill.IniDrawAnasReordBill3(_record, zgcAnaesRecord, ref templateManage); //初始化麻醉记录单界面
- }
- else if (PatientId > 0 && State == AIMSExtension.EditState.BROWSE)
- {
- _record = new OperationRecord();
- btnSelectPatient.Enabled = true;
- btnCancelOperation.Enabled = false;
- btnTemplate.Enabled = false;
- ClearTimeText();
- if (templateManage != null)
- {
- templateManage.ControlClear();
- }
- DrawAnasReordBill.IniDrawAnasReordBill3(_record, zgcAnaesRecord, ref templateManage); //初始化麻醉记录单界面
- }
- plRefresh_Click(null, null);
- }
- catch (Exception ex)
- {
- throw ex;
- }
- }
- private void btnOperationInfo_Click(object sender, EventArgs e)
- {
- if (PatientId != 0)
- {
- AIMS.OperationDoing.AnasRecordBill.UI.frmOperationInfoNew frmOperationInfo = new frmOperationInfoNew();
- frmOperationInfo._record = _record;
- frmOperationInfo.FormClosed += new FormClosedEventHandler(plRefresh_Click);
- frmOperationInfo.ShowDialog();
- }
- else
- {
- MessageBox.Show("请选择患者");
- }
- }
- #endregion
-
- private void plRefresh_Click(object sender, EventArgs e)
- {
- if (PatientId == 0) return;
- //刷新到当前页
- ReviewEvent();
- }
-
- private void ReviewEvent()
- {
- if (PatientId != 0)
- {
- templateManage.OpeRecord = FillAnasReordBill.getRecord(_record, PatientId, RecoverId);
- templateManage.BindOperationRecordValueAll(templateManage.OpeRecord);
- reDrawEvent();
- templateManage.Bind();
- zgcAnaesRecord.Refresh();
- }
- }
- private void DrawEvent()
- {
- reDrawEvent();
- templateManage.Bind("IconManage");
- templateManage.Bind("RemarkManage");
- zgcAnaesRecord.Refresh();
- }
-
- private void reDrawEvent()
- {
- ClearTimeText();
- if (_record.InRoomTime != null)
- {
- txtInRoom.CustomFormat = "MM-dd HH:mm";
- txtInRoom.ButtonDropDown.Visible = false;
- txtInRoom.Tag = _record.InRoomTime.Value;
- txtInRoom.Value = _record.InRoomTime.Value;
- }
- if (_record.OutCGTime != null)
- {
- txtBG.CustomFormat = "HH:mm";
- txtBG.ButtonDropDown.Visible = false;
- txtBG.Tag = _record.OutCGTime.Value;
- txtBG.Value = _record.OutCGTime.Value;
- }
- if (_record.AnesthesiaEndTime != null)
- {
- txtAnaesthesiaEnd.CustomFormat = "HH:mm";
- txtAnaesthesiaEnd.ButtonDropDown.Visible = false;
- txtAnaesthesiaEnd.Tag = _record.AnesthesiaEndTime.Value;
- txtAnaesthesiaEnd.Value = _record.AnesthesiaEndTime.Value;
- }
- if (_record.OutRoomTime != null)
- {
- txtOutRoom.CustomFormat = "MM-dd HH:mm";
- txtOutRoom.ButtonDropDown.Visible = false;
- txtOutRoom.Tag = _record.OutRoomTime.Value;
- txtOutRoom.Value = _record.OutRoomTime.Value;
- }
-
- if (_record.OutRoomTime != null && _record.State == "麻醉恢复中")
- {
- txtOutRoom.CustomFormat = "MM-dd HH:mm";
- txtOutRoom.ButtonDropDown.Visible = false;
- txtOutRoom.Tag = _record.OutRoomTime.Value;
- txtOutRoom.Value = _record.OutRoomTime.Value;
- EndOperationOutRoom();
- }
- }
- private void ClearTimeText()
- {
- txtInRoom.CustomFormat = " ";
- txtBG.CustomFormat = " ";
- txtAnaesthesiaEnd.CustomFormat = " ";
- txtOutRoom.CustomFormat = " ";
- txtInRoom.Tag = null;
- txtBG.Tag = null;
- txtAnaesthesiaEnd.Tag = null;
- txtOutRoom.Tag = null;
- txtInRoom.Text = "";
- txtBG.Text = "";
- txtAnaesthesiaEnd.Text = "";
- txtOutRoom.Text = "";
- }
-
- private void btnUpPage_Click(object sender, EventArgs e)
- {
- if (PatientId == 0) return;
- if (_record.pageCount == 1) return;
- SetUpPageTime();
- ReviewEvent();
- }
- private void btnNextPage_Click(object sender, EventArgs e)
- {
- if (PatientId == 0) return;
- if (_record.pageCount == _record.currentPage) return;
- SetNextPageTime();
- ReviewEvent();
- }
- public void SetUpPageTime()
- {
- if (_record.pageBegin < _record.sharpBegin) return;
- _record.lastPageBegin = _record.pageBegin;
- _record.pageBegin = _record.pageBegin.AddMinutes(-240);
- _record.pageCount--;
- if (_record.pageCount < 1) _record.pageCount = 1;
- }
- public void SetNextPageTime()
- {
- //当下一页的开始时间,小于当前最大时间
- DateTime curTimeTemp = getOpeMaxTime(_record);
- if (_record.lastPageBegin > curTimeTemp) return;
- //先设置新页的开始时间
- _record.pageBegin = _record.lastPageBegin;
- _record.lastPageBegin = _record.pageBegin.AddMinutes(240);
- _record.pageCount++;
- if (_record.pageCount > _record.currentPage) _record.pageCount = _record.currentPage;
- }
-
-
- private void tsbExit_Click(object sender, EventArgs e)
- {
- Close();
-
- }
-
- private void frmAnasRecoverBillNew_FormClosing(object sender, FormClosingEventArgs e)
- {
- PatientId = 0;
- ApplyId = 0;
- State = AIMSExtension.EditState.BROWSE;
- }
-
- private void btnDrug_Click(object sender, EventArgs e)
- {
- if (PatientId != 0)
- {
- PublicUI.UI.frmFactDrugNew frmFactDrug = new PublicUI.UI.frmFactDrugNew();
- frmFactDrug._record = _record;
- frmFactDrug.zgcAnaesRecord = zgcAnaesRecord;
- frmFactDrug.DrugTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单
- frmFactDrug.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed);
- frmFactDrug.ShowDialog();
- }
- else
- {
- MessageBox.Show("请选择患者");
- }
- }
- private void btnAddEvents_Click(object sender, EventArgs e)
- {
- if (PatientId != 0)
- {
- PublicUI.UI.frmFactEventsNew frmFactEventsNew = new PublicUI.UI.frmFactEventsNew();
- frmFactEventsNew._record = _record;
- frmFactEventsNew.zgcAnaesRecord = zgcAnaesRecord;
- frmFactEventsNew.EventTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单
- frmFactEventsNew.EventParam += ReferEventDrugs;
- frmFactEventsNew.ShowDialog();
- }
- else
- {
- MessageBox.Show("请选择患者");
- }
- }
- private void btnOutputLiquids_Click(object sender, EventArgs e)
- {
- if (PatientId != 0)
- {
- PublicUI.UI.frmFactOutputLiquidsNew frmFactOutputLiquids = new PublicUI.UI.frmFactOutputLiquidsNew();
- frmFactOutputLiquids._record = _record;
- frmFactOutputLiquids.OutputLiquidTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单
- frmFactOutputLiquids.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed);
- frmFactOutputLiquids.ShowDialog();
- }
- else
- {
- MessageBox.Show("请选择患者");
- }
- }
-
- private void btnBloodGasAnalysis_Click(object sender, EventArgs e)
- {
- if (PatientId != 0)
- {
- frmBloodGasAnalysisNew frmFactBloodGasAnalysis = new frmBloodGasAnalysisNew();
- frmFactBloodGasAnalysis._record = _record;
- frmFactBloodGasAnalysis.zgcAnaesRecord = zgcAnaesRecord;
- frmFactBloodGasAnalysis.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed);
- frmFactBloodGasAnalysis.ShowDialog();
- }
- else
- {
- MessageBox.Show("请选择患者");
- }
- }
-
- public void ReferEventDrugs()
- {
- //if (IsReadOnly == false)
- //BOperationRecord.Update(_operationRecord);
- if (txtInRoom.Value != _record.InRoomTime)
- {
- _record.pageCount = 0;
- ReviewEvent();
- }
- else
- {
- plRefresh_Click(null, null);
- }
- }
- void frmFactEventsNew_FormClosed(object sender, FormClosedEventArgs e)
- {
- plRefresh_Click(null, null);
- }
-
-
- private void btnCancelOperation_Click(object sender, EventArgs e)
- {
- if (PatientId == 0)
- {
- MessageBox.Show("请选择患者!");
- return;
- }
- if (BLL.FillAnasRecordBillData.GetDataCount(_record.Id.Value, PatientId, RecoverId) > 0)
- {
- MessageBox.Show("清除数据在进行作废手术操作!");
- return;
- }
- if (MessageBox.Show("确认要取消转入恢复吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
- {
- try
- {
- HelperDB.DbHelperSQL.BeginTrans();
- OperationFront.BLL.OperationApply.UpdateApplyState(ApplyId, 8);
- BLL.OperationRecord.DeleteOperationRecorvreData(PatientId, RecoverId);
- HelperDB.DbHelperSQL.CommitTrans();
-
- //ClearData();
- this.Close();
- }
- catch
- {
- HelperDB.DbHelperSQL.RollbackTrans();
- }
- }
- }
-
- private void btnTemplate_Click(object sender, EventArgs e)
- {
- if (PatientId == 0)
- {
- MessageBox.Show("请选择患者!");
- return;
- }
- PublicUI.UI.frmTemplate frmTemplateObj = new PublicUI.UI.frmTemplate();
- frmTemplateObj.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed);
- frmTemplateObj.InRoomTime = _record.InRoomTime.Value;
- frmTemplateObj.PatientId = PatientId;
- frmTemplateObj.TypeId = RecoverId;
- frmTemplateObj.ShowDialog();
-
- }
-
- private void tsbBigScreen_Click(object sender, EventArgs e)
- {
- PublicUI.UI.frmNotice frmNoticeObj = new PublicUI.UI.frmNotice();
- frmNoticeObj.ShowDialog();
- }
-
- private void tsbExePlan_Click(object sender, EventArgs e)
- {
- if (PatientId == 0)
- {
- MessageBox.Show("请先选择患者!");
- return;
- }
- PatientRecord patient = PatientRecord.GetPatientRecord(PatientId);
- frmDocument frmDocument = new frmDocument(patient);
- frmDocument.StartPosition = FormStartPosition.CenterScreen;
- frmDocument.WindowState = FormWindowState.Maximized;
- frmDocument.ShowDialog();
- }
-
- #region 采集程序
- public DateTime? LastMonitorDataTime = null;
- //public List TempPhysioDatas;
- private void timerGetCollectorData_Tick(bool isOpen)
- {
- if (_record.State != "3") return;
- //if (!PublicMethod.RoleId.Operator.RoleRef.Name.Contains("麻醉") && PublicMethod.Operator.Id != _record.OperatorId
- // && _record.OperatorId != 1 && PublicMethod.Operator.Name != "系统管理员") return;
- if (_record.OutRoomTime != null && DateTime.Now >= _record.OutRoomTime) return;
- DateTime dtTime = DateTime.Now;
-
- double span = ((TimeSpan)(dtTime - _record.InRoomTime.Value)).TotalSeconds % 300;
- if (span < 10 || span > 12)
- return;
- if (LastMonitorDataTime != null && LastMonitorDataTime.Value.ToString("yyyy-MM-dd HH:mm") == dtTime.ToString("yyyy-MM-dd HH:mm")) return;
- if (LastMonitorDataTime != null && LastMonitorDataTime.Value > dtTime) return;
- try
- {
- //bool isNowRoom = isOpeRoom();
- //if (isNowRoom == false)
- //{
- // return;
- //}
-
- LastMonitorDataTime = dtTime;
- DateTime InsertTime = Convert.ToDateTime(dtTime.ToString("yyyy-MM-dd HH:mm:00.000"));
- int date = 0;
-
- List physioDatas = new List();
- foreach (PhysioDataConfig addPP in _record.addPhysioList)
- {
- string key = addPP.Name;
- string value = addPP.Enname;
- if (addPP.IsValid == false) continue;
- //if (addPP.StopCollect == true) continue;
- if (key == "机控呼吸") continue;
- if (value == null || value == "") continue;
-
- int minMinutes = -5;
- DataTable dtPhysioData = BOperationRecord.getPhysioDataByTimeName(NowRoom.Ip, value, InsertTime.AddMinutes(minMinutes), InsertTime.AddSeconds(1));
- if (dtPhysioData != null && dtPhysioData.Rows.Count > 0)
- {
- foreach (DataRow dr in dtPhysioData.Rows)
- {
- try
- {
- if (Double.Parse(dr["ParamValue"].ToString()) <= 1) continue;
- if (key.Contains("压") && Double.Parse(dr["ParamValue"].ToString()) <= 30) continue;
- if (isCgtime(addPP.Name, dtTime)) continue;
- PhysioData pdTemp = new PhysioData();
- pdTemp.RecordTime = dtTime;
- pdTemp.Value = Double.Parse(dr["ParamValue"].ToString());
- pdTemp.YAisx = addPP.YAisx;
- pdTemp.PhysioDataConfigId = addPP.Id;
- pdTemp.PatientId = _record.Id.Value;
- physioDatas.Add(pdTemp);
- continue;
- }
- catch (Exception)
- {
- continue;
- }
- }
- }
- }
-
- ////有有创清空无创
- //foreach (var pdTemp in physioDatas)
- //{
- // if (pdTemp.PhysioDataConfigId == 13)
- // {
- // foreach (var temp in physioDatas)
- // {
- // if (temp.PhysioDataConfigId == 5)
- // {
- // temp.Value = 0;
- // }
- // }
- // }
- // if (pdTemp.PhysioDataConfigId == 14)
- // {
- // foreach (var temp in physioDatas)
- // {
- // if (temp.PhysioDataConfigId == 6)
- // {
- // temp.Value = 0;
- // }
- // }
- // }
- // if (pdTemp.PhysioDataConfigId == 18)
- // {
- // foreach (var temp in physioDatas)
- // {
- // if (temp.PhysioDataConfigId == 5)
- // {
- // temp.Value = 0;
- // }
- // }
- // }
- // if (pdTemp.PhysioDataConfigId == 19)
- // {
- // foreach (var temp in physioDatas)
- // {
- // if (temp.PhysioDataConfigId == 6)
- // {
- // temp.Value = 0;
- // }
- // }
- // }
- //}
- //TempPhysioDatas = new List();
- foreach (var pdTemp in physioDatas)
- {
- if (pdTemp.Value < 1) continue;
- PhysioDataConfig addPP = _record.addPhysioList.Where(a => pdTemp.PhysioDataConfigId == a.Id).ToList()[0];
- addPP.AddOrDelItem(pdTemp, 5);
- date++;
- }
-
- //if (dtTime > lastPageBegin && ((TimeSpan)(dtTime - lastPageBegin)).TotalHours < 24 && date > 0)
- //{
- // currentPage++;
- // btnendpage_Click(null, null);
- //}
- //else
- //{
- // DrawDrugAndSap();
- // if ((DrugsListstr != null && DrugsListstr.Count > 1))
- // DrawRemarkDate();
- // DrawEvent();
- //}
-
- }
- catch (Exception)
- {
- //getPhysioData_Click(null, null);
- }
- }
-
- public string szy;//舒张压
- public string ssy;//收缩压
- public DateTime? LastRespMonitorDataTime;
- private void timerGetTextCollectorData_Tick(object sender, EventArgs e)
- {
- try
- {
- if (((TimeSpan)(DateTime.Now - _record.lastPageBegin)).TotalHours > 24) return;
- timerGetCollectorData_Tick(false);
- ShowMonitorDataToRight();
- }
- catch (Exception )
- {
- //PublicMethod.WriteLog(ex);
- }
- }
-
- private BackgroundWorker backgroundWorker1;
- public void ShowMonitorDataToRight()
- {
- this.backgroundWorker1 = new BackgroundWorker();
- this.backgroundWorker1.WorkerReportsProgress = true;
- this.backgroundWorker1.WorkerSupportsCancellation = true;
- this.backgroundWorker1.DoWork += new DoWorkEventHandler(this.backgroundWorker1_DoWork);
- this.backgroundWorker1.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this.backgroundWorker1_RunWorkerCompleted);
- this.backgroundWorker1.RunWorkerAsync();
- }
- private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
- {
- BackgroundWorker worker = sender as BackgroundWorker;
- List lists = DeviceCacheData.Select(" IPAddress='" + NowRoom.Ip + "' and UpdateTime>='" + DateTime.Now.AddSeconds(-300) + "'");
- e.Result = lists;
- }
- private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
- {
- List lists = e.Result as List;
- if (lists != null && lists.Count > 0)
- {
- DeviceCacheData deviceCacheData = lists[0];
- NowPhysioData nowPhysioData = JsonConvert.DeserializeObject(deviceCacheData.JsonData);
- foreach (PropertyInfo p in nowPhysioData.GetType().GetProperties())
- {
- foreach (PhysioDataConfig keyValuePair in _record.addPhysioList)
- {
- if (keyValuePair.Enname.ToUpper() == p.Name.ToUpper())
- {
- try
- {
- object paramValue = p.GetValue(nowPhysioData, null);
- if (paramValue != null && paramValue.ToString() != string.Empty && paramValue.ToString() != "NaN" && paramValue.ToString() != "NULL")
- {
- double value = Double.Parse(paramValue.ToString());
- value = Convert.ToInt32(value);
-
- if (keyValuePair.Name == "心率")
- {
- lblHR.Text = value <= 0 ? "- -" : value.ToString();
- }
- if (keyValuePair.Name == "自主呼吸")
- {
- lblRESP.Text = value <= 0 ? "- -" : value.ToString();
- }
- if (keyValuePair.Name == "氧饱和度")
- {
- lblSpo2.Text = value <= 0 ? "- -" : value.ToString();
- }
- if (keyValuePair.Name == "脉率")
- {
- lblPR.Text = value <= 0 ? "- -" : value.ToString();
- }
- if (keyValuePair.Name == "无创舒张压")
- {
- szy = value <= 0 ? "" : value.ToString();
- }
- if (keyValuePair.Name == "无创收缩压")
- {
- ssy = value <= 0 ? "" : value.ToString();
- }
- if (keyValuePair.Name == "有创舒张压")
- {
- szy = value <= 0 ? "" : value.ToString();
- }
- if (keyValuePair.Name == "有创收缩压")
- {
- ssy = value <= 0 ? "" : value.ToString();
- }
- break;
- }
- }
- catch (Exception )
- {
- //PublicMethod.WriteLog(ex);
- }
- }
- }
- }
- string szyssy = ssy + "/" + szy;
- lblDia.Text = szyssy == "/" ? "--/--" : szyssy;
- }
- else
- {
- lblHR.Text = "- -";
- lblRESP.Text = "- -";
- lblSpo2.Text = "- -";
- lblPR.Text = "- -";
- lblDia.Text = "--/--";
- }
- }
-
- public bool isCgtime(string key, DateTime time)
- {
- bool b = false;
- try
- {
- if (key == "自主呼吸")
- {
- if (_record.InCGTime != null && _record.OutCGTime != null)
- {
- if (time > _record.InCGTime && time < _record.OutCGTime)
- b = true;
- }
- if (_record.InCGTime != null && _record.OutCGTime == null)
- {
- if (time > _record.InCGTime)
- b = true;
- }
- }
- else
- {
- b = false;
- }
- }
- catch (Exception ex)
- {
- PublicMethod.WriteLog(ex);
- }
- return b;
- }
-
- private void StartTimer()
- {
- if (timerGetTextCollectorData == null)
- timerGetTextCollectorData = new System.Windows.Forms.Timer(components);
- timerGetTextCollectorData.Enabled = true;//调试时设置为FALSE ,
- timerGetTextCollectorData.Interval = 2000;
- timerGetTextCollectorData.Tick -= new System.EventHandler(timerGetTextCollectorData_Tick);
- timerGetTextCollectorData.Tick += new System.EventHandler(timerGetTextCollectorData_Tick);
- timerGetTextCollectorData.Start();
- }
-
- private void DisposeTimer()
- {
- if (timerGetTextCollectorData != null)
- {
- timerGetTextCollectorData.Enabled = false;
- timerGetTextCollectorData.Stop();
- }
- }
-
- public void StarttimerGetTextCollectorData()
- {
- if (timerGetTextCollectorData == null) return;
- timerGetTextCollectorData.Start();
- }
-
- #endregion
- private void zgcAnaesRecord_KeyUp(object sender, KeyEventArgs e)
- {
- if (templateManage != null)
- {
- ZedGraphControl send = sender as ZedGraphControl;
- templateManage.zedControl_KeyUp(send, e);
- }
- }
-
- private bool zgcAnaesRecord_MouseDownEvent(ZedGraphControl sender, MouseEventArgs e)
- {
- if (templateManage != null)
- {
- templateManage.zedControl_MouseDownEvent(sender, e);
- }
- return default(bool);
- }
-
- private bool zgcAnaesRecord_MouseUpEvent(ZedGraphControl sender, MouseEventArgs e)
- {
- if (templateManage != null)
- {
- templateManage.zedControl_MouseUpEvent(sender, e);
- }
- return default(bool);
- }
-
- private bool zgcAnaesRecord_MouseMoveEvent(ZedGraphControl sender, MouseEventArgs e)
- {
- if (templateManage != null)
- {
- templateManage.zedControl_MouseMoveEvent(sender, e);
- }
- return default(bool);
- }
-
- private void zgcAnaesRecord_MouseDoubleClick(object sender, MouseEventArgs e)
- {
- if (templateManage != null)
- {
- ZedGraphControl send = sender as ZedGraphControl;
- templateManage.zedControl_MouseDoubleClick(send, e);
- }
- }
- #region 鼠标右键
- void toolStripMenuItem2_Click(object sender, EventArgs e)
- {
- if (PatientId > 0)
- {
- //PublicUI.UI.frmPhysioData frmPhysioData = new PublicUI.UI.frmPhysioData();
- //frmPhysioData.FormClosed += new FormClosedEventHandler(plRefresh_Click);
- //frmPhysioData.PatientId = PatientId;
- //frmPhysioData.TypeId = 1;
- //frmPhysioData.ShowDialog();
- }
- }
-
-
-
- #endregion
-
-
- #region 手术特殊事件
- ///
- /// 手术特殊事件时间点处理事件
- ///
- ///
- ///
- public void txtDateTime_MouseDown(object sender, MouseEventArgs e)
- {
- if (PatientId == 0) return;
- DateTimeInput tb = sender as DateTimeInput;
- if (_record != null && _record.OutRoomTime != null)
- {
- if ((tb.Name == "txtBG" || tb.Name == "txtCG") && tb.Text.Trim() == "")
- {
- return;
- }
- }
-
- if (tb.Text.Trim() == "" && tb.CustomFormat == " ")
- {
- tb.BackColor = Color.White;
- SetPic(sender);
- }
- else
- {
- tb.CustomFormat = "HH:mm";
- tb.ButtonDropDown.Visible = true;
- }
- }
- void txtInRoom_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (PatientId == 0) return;
- DateTimeInput dtpak = (DateTimeInput)sender;
- if (e.KeyChar == 8 || e.KeyChar == 127)
- {
- if (dtpak.CustomFormat != " " && dtpak.Tag != null)
- { return; }
- }
- }
- private void txtDateTime_LostFocus(object sender, EventArgs e)
- {
- if (PatientId == 0) return;
- DateTimeInput tb = sender as DateTimeInput;
- if (tb.CustomFormat == "HH:mm")
- {
- if (tb.Name == "txtInRoom" || tb.Name == "txtOutRoom")
- {
- tb.CustomFormat = "MM-dd HH:mm";
- }
- tb.ButtonDropDown.Visible = false;
- }
- if (tb.Text.Trim() != "" && tb.Value.ToString() != tb.Tag.ToString())
- {
- try
- {
- SetPic(sender, tb.Value);
- tb.BackColor = Color.White;
- }
- catch (Exception)
- {
- tb.Focus();
- tb.Value = DateTime.Parse(tb.Tag.ToString());
- return;
- }
- }
- else
- {
- if (tb.Tag != null && tb.Tag.ToString() != "")
- tb.Value = DateTime.Parse(tb.Tag.ToString());
- }
- }
- private void dateTimePicker_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (PatientId == 0) return;
- DateTimeInput dtpak = (DateTimeInput)sender;
- if (e.KeyChar == 8 || e.KeyChar == 127)
- {
- if (dtpak.CustomFormat != " " && dtpak.Tag != null)
- {
- try
- {
- SetPic((DateTimeInput)sender);
- }
- catch (Exception)
- {
- //PublicMethod.ShowMessage("输入的时间格式不符合规范(HH:mm)!");
- return;
- }
- }
-
- }
- }
- ///
- /// 特殊事件触发时设置图片
- ///
- /// 显示时间的控件
- private void SetPic(Object obj)
- {
- DrawGraph.FactEvents Inevent = null;
- DateTimeInput tb = obj as DateTimeInput;
- DateTime nowtime = DateTime.Now;// getOpeMaxTime();
- DateTime curTimeTemp = new DateTime(nowtime.Year, nowtime.Month, nowtime.Day, nowtime.Hour, nowtime.Minute, 0);
- InsertOrUpdateEventTime(0, "txtInRoom", "入室", tb, curTimeTemp, ref Inevent);
- curTimeTemp = curTimeTemp.AddSeconds(2);
- InsertOrUpdateEventTime(0, "txtBG", "拔管", tb, curTimeTemp, ref Inevent);
- curTimeTemp = curTimeTemp.AddSeconds(2);
- InsertOrUpdateEventTime(0, "txtAnaesthesiaEnd", "麻醉完成", tb, curTimeTemp, ref Inevent);
- curTimeTemp = curTimeTemp.AddSeconds(2);
- InsertOrUpdateEventTime(0, "txtOutRoom", "出室", tb, curTimeTemp, ref Inevent);
-
- if (Inevent != null)
- {
- _record.FactEventsList.Add(Inevent);
- if (Inevent.EventName == "入室")
- {
- _record.pageCount = 0;
- ReviewEvent();
- }
- else if (Inevent.EventName == "手术开始" || Inevent.EventName == "出室" || Inevent.EventBeginTime > _record.lastPageBegin)
- {
- ReviewEvent();
- }
- else
- {
- DrawEvent();
- }
- }
- }
- ///
- /// 特殊事件触发时设置图片
- ///
- /// 显示时间的控件
- private void SetPic(Object obj, DateTime curTimeTemp)
- {
- DrawGraph.FactEvents Inevent = null;
- DateTimeInput tb = obj as DateTimeInput;
- 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);
- curTimeTemp = curTimeTemp.AddSeconds(2);
- InsertOrUpdateEventTime(1, "txtBG", "拔管", tb, curTimeTemp, ref Inevent);
- curTimeTemp = curTimeTemp.AddSeconds(2);
- InsertOrUpdateEventTime(1, "txtAnaesthesiaEnd", "麻醉完成", tb, curTimeTemp, ref Inevent);
- curTimeTemp = curTimeTemp.AddSeconds(2);
- InsertOrUpdateEventTime(1, "txtOutRoom", "出室", tb, curTimeTemp, ref Inevent);
-
- if (Inevent != null)
- {
- if (Inevent.EventName == "入室")
- {
- _record.pageCount = 0;
- ReviewEvent();
- }
- else if (Inevent.EventName == "出室" || Inevent.EventName == "手术开始" || Inevent.EventBeginTime > _record.lastPageBegin)
- {
- ReviewEvent();
- }
- else
- {
- DrawEvent();
- }
- }
- }
- ///
- /// 特殊事件触发时设置图片
- ///
- /// 显示时间的控件
- private void SetPic(DateTimeInput obj)
- {
- DrawGraph.FactEvents Inevent = null;
- DateTimeInput tb = obj as DateTimeInput;
- if (_record.State == "麻醉恢复中")
- {
- DeleteEventTime("txtAnaesthesiaEnd", "麻醉完成", tb, ref Inevent);
- DeleteEventTime("txtBG", "拔管", tb, ref Inevent);
- }
- else
- {
- MessageBox.Show("选择的事件不可删除 只可修改!");
- }
-
- if (Inevent != null)
- {
- tb.ButtonDropDown.Visible = false;
- _record.FactEventsList.Remove(Inevent);
- DrawEvent();
- }
- }
- ///
- /// 判断控件对应的事件 删除事件
- ///
- /// 事件对应的控件名称
- /// 事件名称
- /// 控件
- private void DeleteEventTime(string EventTxtName, string EventName, DateTimeInput tb, ref DrawGraph.FactEvents Inevent)
- {
- if (tb.Name.Equals(EventTxtName))
- {
- List list = _record.FactEventsList.Where(c => c.EventName == EventName).ToList();
- if (list.Count <= 0) return;
- Inevent = list[0];
- if ((EventName == "入室") || EventName == "出室")
- {
- //PublicMethod.ShowMessage("该事件为主要事件 不可删除 只可修改!!");
- tb.Value = Inevent.EventBeginTime.Value;
- Inevent = null;
- return;
- }
-
- BFactEvents.DeleteById(Inevent.Id.ToString());
- Inevent.clearAddObj(zgcAnaesRecord);
- tb.CustomFormat = " ";
- tb.Value = DateTime.Now;
- tb.Tag = null;
-
- if (Inevent != null && Inevent.EventName == "麻醉完成") _record.AnesthesiaEndTime = null;
- if (Inevent != null && Inevent.EventName == "出室") _record.OutRoomTime = null;
- if (Inevent != null && Inevent.EventName == "拔管") _record.OutCGTime = null;
- 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));
- }
- }
- }
- ///
- /// 判断控件对应的事件 插入事件
- ///
- /// 0插入 1更新
- /// 事件对应的控件名称
- /// 事件名称
- /// 事件对应的对象时间
- /// 控件
- /// 事件时间
- /// 事件对象
- private void InsertOrUpdateEventTime(int state, string EventTxtName, string EventName, DateTimeInput tb, DateTime curTimeTemp, ref DrawGraph.FactEvents Inevent)
- {
- if (tb.Name.Equals(EventTxtName))
- {
- string messing = "";
- bool timeistrue = true;
- // timeistrue = BOperationRecord.IfTimeisTrue(true, _record, EventName, curTimeTemp, ref messing);
- //if (_record.State != null && _record.State != 2)
- //{
- // if (messing != "")
- // {
- // PublicMethod.ShowMessage(messing);
- // }
- //}
- //else
- //{ timeistrue = true; }
- if (EventName == "出室" && _record.State == "麻醉恢复中" && state == 3)
- {
- if (GetOpeState(ref messing) == false)
- {
- if (messing != "") MessageBox.Show(messing);
- //if (messing == "请填写手术不良事件!")
- // btnAdverseFactEvents_Click(null, null);
- return;
- }
- }
- if (timeistrue == false)
- {
- if (tb.Tag != null) tb.Value = DateTime.Parse(tb.Tag.ToString());
- return;
- }
- if (EventName == "出室" && curTimeTemp.ToString("yyyy-MM-dd HH:mm") == _record.lastPageBegin.ToString("yyyy-MM-dd HH:mm"))
- {
- curTimeTemp = _record.lastPageBegin;
- }
- if (state != 1)
- {
- Inevent = BFactEvents.Insert(PatientId, EventName, curTimeTemp, curTimeTemp, RecoverId);
- }
- else
- {
- updateEventTime(EventName, curTimeTemp, ref Inevent);
- }
- tb.Value = curTimeTemp;
- tb.Tag = curTimeTemp;
-
- if (Inevent != null && Inevent.EventName == "入室" && _record.InRoomTime != Inevent.EventBeginTime)
- {
- _record.InRoomTime = Inevent.EventBeginTime;
- }
- if (Inevent != null && Inevent.EventName == "拔管" && _record.OutCGTime != Inevent.EventBeginTime) _record.OutCGTime = Inevent.EventBeginTime;
- if (Inevent != null && Inevent.EventName == "麻醉完成" && _record.AnesthesiaEndTime != Inevent.EventBeginTime)
- _record.AnesthesiaEndTime = Inevent.EventBeginTime;
- if (Inevent != null && Inevent.EventName == "出室" && _record.OutRoomTime != Inevent.EventBeginTime) _record.OutRoomTime = Inevent.EventBeginTime;
- if (Inevent != null)
- {
- BOperationRecord.Update("InRoomTime=@InRoom,OperationBeginTime=@OperationBegin,OperationEndTime=@OperationEnd,OutRoomTime=@OutRoom where Id=@id ", new AIMSModel.ParameterList("@InRoom", _record.InRoomTime.HasValue ? (object)_record.InRoomTime.Value : (object)DateTime.Now, "@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));
- }
- }
- }
- ///
- /// 修改事件时间
- ///
- ///
- ///
- public void updateEventTime(string eventName, DateTime dt, ref DrawGraph.FactEvents elist)
- {
- List list = _record.FactEventsList.Where(c => c.EventName == eventName).ToList();
- if (list.Count <= 0) return;
- elist = list[0];
- if (elist.EventBeginTime != dt)
- {
- elist.EventBeginTime = dt;
- elist.EventEndTime = dt;
- BFactEvents.Update("EventBeginTime=@EventBeginTime,EventEndTime=@EventEndTime where id=@id ", new AIMSModel.ParameterList("@EventBeginTime", elist.EventBeginTime, "@EventEndTime", elist.EventEndTime, "@id", elist.Id));
- }
- }
- #endregion
-
- public DateTime getOpeMaxTime(OperationRecord myOpeRecord)
- {
- try
- {
- DateTime dts = BOperationRecord.lastMaxOperationDate(myOpeRecord.Id.Value);
- DateTime nowDate = DateTime.Now;
- TimeSpan tsp = nowDate - dts;
- if (tsp.TotalHours <= 12 && tsp.TotalDays <= 1 && dts < nowDate)//&& IsReview == false
- {
- dts = nowDate;
- }
- if (dts.ToString("yyyy-MM-dd HH:mm") == myOpeRecord.pageBegin.AddMinutes(240).ToString("yyyy-MM-dd HH:mm"))
- {
- dts = myOpeRecord.pageBegin.AddMinutes(240);
- }
- if (myOpeRecord.OutRoomTime != null)
- {
- DateTime outRoomTime = DateTime.Parse(myOpeRecord.OutRoomTime.ToString());
- if (DateTime.Compare(dts, outRoomTime) > 0)
- {
- dts = outRoomTime;
- }
- }
- return dts;
- }
- catch (Exception)
- {
- return DateTime.Now;
- }
- }
-
- private bool GetOpeState(ref string message)
- {
- bool isTrue = true;
- //bool isJM = false;
- //if (_record.AnaesthesiaMethodId != null && _record.AnaesthesiaMethodId.ToString().Trim() != "")
- //{
- // List anes = BAnaesthesiaMethod.Select(" Id=3 or ParentId=3 or Id=59 ", null, RecursiveType.None, 0);
- // foreach (var item in anes)
- // {
- // if (_record.AnaesthesiaMethodId.Contains(item.Id.ToString()))
- // {
- // isJM = true;
- // break;
- // }
- // }
- //}
- //string OpeEndStr = "";
- //if (ConfigSource.OpeEndSyc != null && ConfigSource.OpeEndSyc.IsValid == 1)
- // OpeEndStr = ConfigSource.OpeEndSyc.Value;
-
-
- ////身高|术后诊断|不良事件|质控指标|记录小结|ASA分级|术者|麻醉方式
- //if (OpeEndStr.Contains("身高") && isJM == false)
- // if (_record.PatientRef.Height == null || _record.PatientRef.Height.ToString() == "")
- // {
- // message = "请添加患者身高!";
- // isTrue = false;
- // }
-
- //if (OpeEndStr.Contains("术后诊断"))
- // if (_record.Diagnose == null || _record.Diagnose.Trim() == "")
- // {
- // message = "请填写术后诊断";
- // isTrue = false;
- // }
-
- //if (OpeEndStr.Contains("质控指标") && isJM == false)
- // if (_record.AnaseDataQualityRecordList == null || _record.AnaseDataQualityRecordList.Count <= 0)
- // {
- // message = "请填写麻醉质量质控指标";
- // isTrue = false;
- // }
-
- //if (OpeEndStr.Contains("记录小结") && isJM == false)
- // if (_record.Remark == null || _record.Remark == "")
- // {
- // message = "请填写手术记录小结";
- // isTrue = false;
- // }
-
- //if (OpeEndStr.Contains("ASA分级") && isJM == false)
- // if (_record.AnesthesiaDoctor != null && _record.AnesthesiaDoctor.Trim() != "")
- // if (_record.ASALevel == null || _record.ASALevel == 0)
- // {
- // message = "请添ASA分级!";
- // isTrue = false;
- // }
-
- //if (OpeEndStr.Contains("麻醉方式"))
- // if (_record.AnaesthesiaMethodId == null || _record.AnaesthesiaMethodId.ToString().Trim() == "")
- // {
- // message = "请添加麻醉方式!";
- // isTrue = false;
- // }
-
- //if (OpeEndStr.Contains("术者"))
- // if (_record.OperationDoctor == null || _record.OperationDoctor.Trim() == "")
- // {
- // message = "请添加术者!";
- // isTrue = false;
- // }
-
- //if (OpeEndStr.Contains("手术部位"))
- // if (_record.OperationPositionId == null || _record.OperationPositionId.Trim() == "")
- // {
- // message = "请添加手术部位!";
- // isTrue = false;
- // }
-
- //if (OpeEndStr.Contains("手术切口"))
- // if (_record.OperationCutId == null || _record.OperationCutId.Trim() == "")
- // {
- // message = "请添加手术切口!";
- // isTrue = false;
- // }
-
- //if (_record.OperationEndTime != null && _record.OperationBeginTime != null && _record.OperationEndTime < _record.OperationBeginTime.Value.AddMinutes(10))
- //{
- // System.Windows.Forms.DialogResult dr = System.Windows.Forms.MessageBox.Show("手术时长小于十分钟,请再次确认【手术开始-结束时间】!", "系统提示", System.Windows.Forms.MessageBoxButtons.YesNo, System.Windows.Forms.MessageBoxIcon.Information);
- // if (dr == System.Windows.Forms.DialogResult.No)
- // {
- // isTrue = false;
- // }
- //}
- return isTrue;
- }
- private void EndOperationOutRoom()
- {
- if (_record == null || _record.State != "麻醉恢复中") return;
- try
- {
- //CloseOtherFrom();
- //保存持续加药未结束药品
- foreach (FactDrug temp in _record.FactDrugList)
- {
- if (temp.IsContinue == 1 && temp.DrugBeginTime == temp.DrugEndTime)
- {
- temp.DrugEndTime = _record.OutRoomTime.Value;
- BFactDrug.Update(temp);
- }
- }
- //保存持续事件未结束事件
- foreach (FactEvents temp in _record.FactEventsList)
- {
- if (temp.IsContinue == 1 && temp.EventBeginTime == temp.EventEndTime)
- {
- temp.EventEndTime = _record.OutRoomTime;
- BFactEvents.Update(temp);
- }
- }
- _record.State = "麻醉恢复结束";
- OperationFront.BLL.OperationApply.UpdateApplyState(ApplyId, 9);
- BLL.OperationRecord.UpdateState(PatientId, RecoverId, 4);
-
- //PublicMethod.WriteLog("结束转出手术: " + _record.Id);
- //TipBox.Hidden(true);
- State = AIMSExtension.EditState.BROWSE;
- btnCancelOperation.Enabled = false;
- btnSelectPatient.Enabled = true;
- ReviewEvent();
- }
- catch (Exception exp)
- {
- PublicMethod.WriteLog(exp, "");
- }
-
- }
-
- private void zgcAnaesRecord_ContextMenuBuilder(ZedGraphControl sender, ContextMenuStrip menuStrip, Point mousePt, ZedGraphControl.ContextMenuObjectState objState)
- {
-
- if (PatientId == 0) return;
- //ZedGraph自带的右键菜单键值表
- //StringID Menu Item
- //copy Copy
- //page_setup Page Setup...
- //print Print...
- //save_as Save Image As...
- //set_default Set Scale to Default
- //show_val Show Point Values
- //undo_all Undo All Zoom/Pan
- //unzoom Un-Zoom, Un-Pan, Undo Scroll
- //删除或者禁用右键菜单
- foreach (ToolStripMenuItem item in menuStrip.Items)
- {
- //禁用菜单 & 汉化
- switch ((string)item.Tag)
- {
- case "copy":
- item.Text = "复制";
- item.Visible = false;
- break;
- case "page_setup":
- item.Text = "打印设置...";
- item.Visible = false;
- break;
- case "print":
- item.Text = "打印...";
- item.Visible = false;
- break;
- case "save_as":
- item.Text = "另存为...";
- item.Enabled = false;
- item.Visible = false;
- break;
- case "set_default":
- item.Text = "默认设置";
- item.Visible = false;
- item.Enabled = false;
- break;
- case "show_val":
- item.Text = "显示点值";
- item.Visible = false;
- break;
- case "undo_all":
- item.Text = "撤销所有操作";
- item.Visible = false;
- item.Enabled = false;
- break;
- case "unzoom":
- item.Text = "撤销缩放";
- item.Enabled = false;
- item.Visible = false;
- break;
- default:
- break;
- }
-
- }
-
- //添加自定义的新菜单
- ToolStripMenuItem getPhysioData = new ToolStripMenuItem();
- getPhysioData.Name = "getPhysioData";
- getPhysioData.Tag = "getPhysioData";
- getPhysioData.Text = "重新获取生命体征";
- getPhysioData.Click += getPhysioData_Click;
- menuStrip.Items.Add(getPhysioData);
-
- ToolStripMenuItem clearSelectCouve = new ToolStripMenuItem();
- clearSelectCouve.Name = "clear_SelectCouve";
- clearSelectCouve.Tag = "clear_SelectCouve";
- clearSelectCouve.Text = "清空选中曲线";
- clearSelectCouve.Click += new EventHandler(clearSelectCouve_Click);
- menuStrip.Items.Add(clearSelectCouve);
-
- ToolStripMenuItem ModifyApply = new ToolStripMenuItem();
- ModifyApply.Name = "ModifyApply";
- ModifyApply.Tag = "ModifyApply";
- ModifyApply.Text = "手术申请信息";
- ModifyApply.Click += ModifyApply_Click;
- menuStrip.Items.Add(ModifyApply);
-
- //ToolStripMenuItem btnSyatemSetup = new ToolStripMenuItem();
- //btnSyatemSetup.Name = "btnSyatemSetup";
- //btnSyatemSetup.Tag = "btnSyatemSetup";
- //btnSyatemSetup.Text = "参数设置";
- //btnSyatemSetup.Click += new EventHandler(btnSyatemSetup_Click);
- //menuStrip.Items.Add(btnSyatemSetup);
-
- ToolStripMenuItem toolStripMenuItem1 = new ToolStripMenuItem();
- toolStripMenuItem1.Name = "refresh";
- toolStripMenuItem1.Tag = "refresh";
- toolStripMenuItem1.Text = "刷新";
- toolStripMenuItem1.Click += new EventHandler(plRefresh_Click);
- menuStrip.Items.Add(toolStripMenuItem1);
-
- }
- private void getPhysioData_Click(object sender, EventArgs e)
- {
- //if (this.IsReview == false && _operationRecord.State == 0 && IsReadOnly == false)
- //{
- // //没有IP判断
- // DataTable dtPhysioData = BOperationRecord.getPhysioDataByIp(NowRoom.Ip1, _operationRecord.Id.Value, _operationRecord.InRoomTime.Value, getOpeMaxTime(), 5);
- // //同步未画点数据
- // DrawFillPhysioData(dtPhysioData);
-
- // #region 画生理数据
- // DrawPhysioData();
- // #endregion
-
- //}
- }
- private void clearSelectCouve_Click(Object sender, EventArgs e)
- {
- templateManage.ClearSelectCouve();
- }
- private void ModifyApply_Click(object sender, EventArgs e)
- {
- if (PatientId == 0) return;
-
- frmOperationApplyDetail frm = new frmOperationApplyDetail();
- frm.State = AIMSExtension.EditState.EDIT;
- frm.EditApplyId = ApplyId;
-
- bool wExist = this.CheckFormIsOpen(frm.Name);
-
- if (!wExist)
- {
- frm.FormBorderStyle = FormBorderStyle.None; // 无边框
- frm.TopLevel = false;
- frm.Dock = DockStyle.Fill;
- frm.FormClosed += (s, er) =>
- {
- ReviewEvent();
- };
- panel8.Controls.Add(frm);
- }
- else
- {
- frm = (frmOperationApplyDetail)Application.OpenForms[frm.Name];
- }
- frm.Show();
- frm.Focus();
- frm.BringToFront();
-
-
- }
-
- private bool CheckFormIsOpen(string Forms)
- {
- bool bResult = false;
- foreach (Form frm in Application.OpenForms)
- {
- if (frm.Name == Forms)
- {
- bResult = true;
- break;
- }
- }
- return bResult;
- }
- }
-}
diff --git a/AIMS/OperationDoing/AnasRecoverBill/UI/frmAnasRecoverBillNew.Designer.cs b/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBillNew.Designer.cs
similarity index 64%
rename from AIMS/OperationDoing/AnasRecoverBill/UI/frmAnasRecoverBillNew.Designer.cs
rename to AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBillNew.Designer.cs
index 8923c54..83c152a 100644
--- a/AIMS/OperationDoing/AnasRecoverBill/UI/frmAnasRecoverBillNew.Designer.cs
+++ b/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBillNew.Designer.cs
@@ -1,4 +1,4 @@
-namespace AIMS.OperationDoing.AnasRecordBill.UI
+namespace AIMS.OperationDoing.AnasRecoverBill.UI
{
partial class frmAnasRecoverBillNew
{
@@ -33,54 +33,72 @@
this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.panel14 = new System.Windows.Forms.Panel();
+ this.button8 = new System.Windows.Forms.Button();
+ this.button7 = new System.Windows.Forms.Button();
+ this.btnCancelIn = new System.Windows.Forms.Button();
this.btnCancelOperation = new System.Windows.Forms.Button();
this.btnTemplate = new System.Windows.Forms.Button();
- this.button6 = new System.Windows.Forms.Button();
+ this.btnBloodGasAnalysis = new System.Windows.Forms.Button();
this.btnOutputLiquids = new System.Windows.Forms.Button();
this.btnAddEvents = new System.Windows.Forms.Button();
this.btnDrug = new System.Windows.Forms.Button();
this.btnOperationInfo = new System.Windows.Forms.Button();
this.btnSelectPatient = new System.Windows.Forms.Button();
this.panel4 = new System.Windows.Forms.Panel();
- this.label9 = new System.Windows.Forms.Label();
+ this.btnChage = new System.Windows.Forms.Button();
this.lblSpo2 = new System.Windows.Forms.Label();
- this.label8 = new System.Windows.Forms.Label();
this.lblRESP = new System.Windows.Forms.Label();
this.lblDia = new System.Windows.Forms.Label();
- this.label6 = new System.Windows.Forms.Label();
this.lblPR = new System.Windows.Forms.Label();
- this.label4 = new System.Windows.Forms.Label();
this.lblHR = new System.Windows.Forms.Label();
+ this.btnsjzx = new System.Windows.Forms.Button();
+ this.btnzsk = new System.Windows.Forms.Button();
+ this.btndptz = new System.Windows.Forms.Button();
+ this.btnsbwh = new System.Windows.Forms.Button();
+ this.label9 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label10 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label4 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.panel5 = new System.Windows.Forms.Panel();
this.panel8 = new AIMS.PublicUI.UI.DrawPanel();
+ this.circularProgress1 = new DevComponents.DotNetBar.Controls.CircularProgress();
this.zgcAnaesRecord = new DrawGraph.ZedGraphControl();
this.panel7 = new System.Windows.Forms.Panel();
this.panel21 = new System.Windows.Forms.Panel();
+ this.panel17 = new System.Windows.Forms.Panel();
this.btnNextPage = new System.Windows.Forms.Panel();
this.plPrintBrowse = new System.Windows.Forms.Panel();
this.plPrint = new System.Windows.Forms.Panel();
+ this.panel18 = new System.Windows.Forms.Panel();
this.btnUpPage = new System.Windows.Forms.Panel();
this.plRefresh = new System.Windows.Forms.Panel();
+ this.lblRoom = new System.Windows.Forms.Label();
this.label22 = new System.Windows.Forms.Label();
this.labOperatorName = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
this.plTitleEventTime = new System.Windows.Forms.Panel();
this.panel13 = new System.Windows.Forms.Panel();
this.txtOutRoom = new DevComponents.Editors.DateTimeAdv.DateTimeInput();
- this.pictureBox6 = new System.Windows.Forms.PictureBox();
+ this.picOutRoom = new System.Windows.Forms.PictureBox();
this.button5 = new System.Windows.Forms.Button();
- this.panel10 = new System.Windows.Forms.Panel();
+ this.panel16 = new System.Windows.Forms.Panel();
this.txtBG = new DevComponents.Editors.DateTimeAdv.DateTimeInput();
- this.button2 = new System.Windows.Forms.Button();
+ this.picBG = new System.Windows.Forms.PictureBox();
+ this.button9 = new System.Windows.Forms.Button();
this.panel12 = new System.Windows.Forms.Panel();
this.txtAnaesthesiaEnd = new DevComponents.Editors.DateTimeAdv.DateTimeInput();
- this.pictureBox5 = new System.Windows.Forms.PictureBox();
+ this.picAnesEnd = new System.Windows.Forms.PictureBox();
this.button4 = new System.Windows.Forms.Button();
this.panel6 = new System.Windows.Forms.Panel();
this.txtInRoom = new DevComponents.Editors.DateTimeAdv.DateTimeInput();
- this.pictureBox2 = new System.Windows.Forms.PictureBox();
+ this.picInRoom = new System.Windows.Forms.PictureBox();
this.txtInRoom1 = new System.Windows.Forms.Button();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.panel3.SuspendLayout();
@@ -94,15 +112,16 @@
this.plTitleEventTime.SuspendLayout();
this.panel13.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtOutRoom)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit();
- this.panel10.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.picOutRoom)).BeginInit();
+ this.panel16.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtBG)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picBG)).BeginInit();
this.panel12.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtAnaesthesiaEnd)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picAnesEnd)).BeginInit();
this.panel6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtInRoom)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picInRoom)).BeginInit();
this.SuspendLayout();
//
// panel2
@@ -123,15 +142,18 @@
this.panel3.Font = new System.Drawing.Font("宋体", 12F);
this.panel3.Location = new System.Drawing.Point(0, 10);
this.panel3.Name = "panel3";
- this.panel3.Size = new System.Drawing.Size(160, 729);
+ this.panel3.Size = new System.Drawing.Size(160, 859);
this.panel3.TabIndex = 2;
//
// panel14
//
this.panel14.BackColor = System.Drawing.Color.White;
+ this.panel14.Controls.Add(this.button8);
+ this.panel14.Controls.Add(this.button7);
+ this.panel14.Controls.Add(this.btnCancelIn);
this.panel14.Controls.Add(this.btnCancelOperation);
this.panel14.Controls.Add(this.btnTemplate);
- this.panel14.Controls.Add(this.button6);
+ this.panel14.Controls.Add(this.btnBloodGasAnalysis);
this.panel14.Controls.Add(this.btnOutputLiquids);
this.panel14.Controls.Add(this.btnAddEvents);
this.panel14.Controls.Add(this.btnDrug);
@@ -140,9 +162,69 @@
this.panel14.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel14.Location = new System.Drawing.Point(0, 0);
this.panel14.Name = "panel14";
- this.panel14.Size = new System.Drawing.Size(160, 729);
+ this.panel14.Size = new System.Drawing.Size(160, 859);
this.panel14.TabIndex = 5;
//
+ // button8
+ //
+ this.button8.BackColor = System.Drawing.Color.Transparent;
+ this.button8.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
+ this.button8.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.button8.Dock = System.Windows.Forms.DockStyle.Top;
+ this.button8.FlatAppearance.BorderSize = 0;
+ this.button8.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.button8.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.button8.ForeColor = System.Drawing.Color.DimGray;
+ this.button8.Image = global::AIMS.Properties.Resources.系统设置;
+ this.button8.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.button8.Location = new System.Drawing.Point(0, 500);
+ this.button8.Name = "button8";
+ this.button8.Size = new System.Drawing.Size(160, 50);
+ this.button8.TabIndex = 15;
+ this.button8.Text = " 系统设置";
+ this.button8.UseVisualStyleBackColor = false;
+ this.button8.Click += new System.EventHandler(this.toolStripMenuItem2_Click);
+ //
+ // button7
+ //
+ this.button7.BackColor = System.Drawing.Color.Transparent;
+ this.button7.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
+ this.button7.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.button7.Dock = System.Windows.Forms.DockStyle.Top;
+ this.button7.FlatAppearance.BorderSize = 0;
+ this.button7.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.button7.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.button7.ForeColor = System.Drawing.Color.DimGray;
+ this.button7.Image = global::AIMS.Properties.Resources.文书编辑;
+ this.button7.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.button7.Location = new System.Drawing.Point(0, 450);
+ this.button7.Name = "button7";
+ this.button7.Size = new System.Drawing.Size(160, 50);
+ this.button7.TabIndex = 14;
+ this.button7.Text = " 文书记录";
+ this.button7.UseVisualStyleBackColor = false;
+ this.button7.Click += new System.EventHandler(this.tsbExePlan_Click);
+ //
+ // btnCancelIn
+ //
+ this.btnCancelIn.BackColor = System.Drawing.Color.Transparent;
+ this.btnCancelIn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
+ this.btnCancelIn.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnCancelIn.Dock = System.Windows.Forms.DockStyle.Top;
+ this.btnCancelIn.FlatAppearance.BorderSize = 0;
+ this.btnCancelIn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnCancelIn.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.btnCancelIn.ForeColor = System.Drawing.Color.DimGray;
+ this.btnCancelIn.Image = global::AIMS.Properties.Resources.显示切换;
+ this.btnCancelIn.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.btnCancelIn.Location = new System.Drawing.Point(0, 400);
+ this.btnCancelIn.Name = "btnCancelIn";
+ this.btnCancelIn.Size = new System.Drawing.Size(160, 50);
+ this.btnCancelIn.TabIndex = 12;
+ this.btnCancelIn.Text = " 取消恢复";
+ this.btnCancelIn.UseVisualStyleBackColor = false;
+ this.btnCancelIn.Click += new System.EventHandler(this.btnCancelIn_Click);
+ //
// btnCancelOperation
//
this.btnCancelOperation.BackColor = System.Drawing.Color.Transparent;
@@ -159,7 +241,7 @@
this.btnCancelOperation.Name = "btnCancelOperation";
this.btnCancelOperation.Size = new System.Drawing.Size(160, 50);
this.btnCancelOperation.TabIndex = 11;
- this.btnCancelOperation.Text = " 取消转入";
+ this.btnCancelOperation.Text = " 停止恢复";
this.btnCancelOperation.UseVisualStyleBackColor = false;
this.btnCancelOperation.Click += new System.EventHandler(this.btnCancelOperation_Click);
//
@@ -183,24 +265,25 @@
this.btnTemplate.UseVisualStyleBackColor = false;
this.btnTemplate.Click += new System.EventHandler(this.btnTemplate_Click);
//
- // button6
+ // btnBloodGasAnalysis
//
- this.button6.BackColor = System.Drawing.Color.Transparent;
- this.button6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
- this.button6.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button6.Dock = System.Windows.Forms.DockStyle.Top;
- this.button6.FlatAppearance.BorderSize = 0;
- this.button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.button6.Font = new System.Drawing.Font("微软雅黑", 11F);
- this.button6.ForeColor = System.Drawing.Color.DimGray;
- this.button6.Image = global::AIMS.Properties.Resources.不良事件;
- this.button6.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.button6.Location = new System.Drawing.Point(0, 250);
- this.button6.Name = "button6";
- this.button6.Size = new System.Drawing.Size(160, 50);
- this.button6.TabIndex = 9;
- this.button6.Text = " 不良事件";
- this.button6.UseVisualStyleBackColor = false;
+ this.btnBloodGasAnalysis.BackColor = System.Drawing.Color.Transparent;
+ this.btnBloodGasAnalysis.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
+ this.btnBloodGasAnalysis.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnBloodGasAnalysis.Dock = System.Windows.Forms.DockStyle.Top;
+ this.btnBloodGasAnalysis.FlatAppearance.BorderSize = 0;
+ this.btnBloodGasAnalysis.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnBloodGasAnalysis.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.btnBloodGasAnalysis.ForeColor = System.Drawing.Color.DimGray;
+ this.btnBloodGasAnalysis.Image = global::AIMS.Properties.Resources.血气分析;
+ this.btnBloodGasAnalysis.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.btnBloodGasAnalysis.Location = new System.Drawing.Point(0, 250);
+ this.btnBloodGasAnalysis.Name = "btnBloodGasAnalysis";
+ this.btnBloodGasAnalysis.Size = new System.Drawing.Size(160, 50);
+ this.btnBloodGasAnalysis.TabIndex = 8;
+ this.btnBloodGasAnalysis.Text = " 血气分析";
+ this.btnBloodGasAnalysis.UseVisualStyleBackColor = false;
+ this.btnBloodGasAnalysis.Click += new System.EventHandler(this.btnBloodGasAnalysis_Click);
//
// btnOutputLiquids
//
@@ -298,109 +381,291 @@
this.btnSelectPatient.Name = "btnSelectPatient";
this.btnSelectPatient.Size = new System.Drawing.Size(160, 50);
this.btnSelectPatient.TabIndex = 3;
- this.btnSelectPatient.Text = " 患者列表";
+ this.btnSelectPatient.Text = " 恢复列表";
this.btnSelectPatient.UseVisualStyleBackColor = false;
this.btnSelectPatient.Click += new System.EventHandler(this.btnSelectPatient_Click);
//
// panel4
//
this.panel4.BackColor = System.Drawing.Color.White;
- this.panel4.Controls.Add(this.label9);
+ this.panel4.Controls.Add(this.btnChage);
this.panel4.Controls.Add(this.lblSpo2);
- this.panel4.Controls.Add(this.label8);
this.panel4.Controls.Add(this.lblRESP);
this.panel4.Controls.Add(this.lblDia);
- this.panel4.Controls.Add(this.label6);
this.panel4.Controls.Add(this.lblPR);
- this.panel4.Controls.Add(this.label4);
this.panel4.Controls.Add(this.lblHR);
+ this.panel4.Controls.Add(this.btnsjzx);
+ this.panel4.Controls.Add(this.btnzsk);
+ this.panel4.Controls.Add(this.btndptz);
+ this.panel4.Controls.Add(this.btnsbwh);
+ this.panel4.Controls.Add(this.label9);
+ this.panel4.Controls.Add(this.label8);
+ this.panel4.Controls.Add(this.label6);
+ this.panel4.Controls.Add(this.label10);
+ this.panel4.Controls.Add(this.label7);
+ this.panel4.Controls.Add(this.label5);
+ this.panel4.Controls.Add(this.label3);
+ this.panel4.Controls.Add(this.label2);
+ this.panel4.Controls.Add(this.label4);
this.panel4.Controls.Add(this.label1);
this.panel4.Dock = System.Windows.Forms.DockStyle.Right;
this.panel4.Font = new System.Drawing.Font("宋体", 10.5F);
this.panel4.Location = new System.Drawing.Point(1200, 10);
this.panel4.Name = "panel4";
- this.panel4.Size = new System.Drawing.Size(160, 729);
+ this.panel4.Size = new System.Drawing.Size(160, 859);
this.panel4.TabIndex = 3;
//
+ // btnChage
+ //
+ this.btnChage.BackColor = System.Drawing.Color.Transparent;
+ this.btnChage.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
+ this.btnChage.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnChage.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.btnChage.FlatAppearance.BorderSize = 0;
+ this.btnChage.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnChage.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.btnChage.ForeColor = System.Drawing.Color.DimGray;
+ this.btnChage.Image = global::AIMS.Properties.Resources.麻醉医嘱;
+ this.btnChage.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.btnChage.Location = new System.Drawing.Point(0, 609);
+ this.btnChage.Name = "btnChage";
+ this.btnChage.Size = new System.Drawing.Size(160, 50);
+ this.btnChage.TabIndex = 24;
+ this.btnChage.Text = " 收费记录";
+ this.btnChage.UseVisualStyleBackColor = false;
+ this.btnChage.Visible = false;
+ this.btnChage.Click += new System.EventHandler(this.btnChage_Click);
+ //
+ // lblSpo2
+ //
+ this.lblSpo2.AutoSize = true;
+ this.lblSpo2.Font = new System.Drawing.Font("微软雅黑", 23F);
+ this.lblSpo2.ForeColor = System.Drawing.Color.Teal;
+ this.lblSpo2.Location = new System.Drawing.Point(63, 399);
+ this.lblSpo2.Name = "lblSpo2";
+ this.lblSpo2.Size = new System.Drawing.Size(43, 40);
+ this.lblSpo2.TabIndex = 9;
+ this.lblSpo2.Text = "--";
+ //
+ // lblRESP
+ //
+ this.lblRESP.AutoSize = true;
+ this.lblRESP.Font = new System.Drawing.Font("微软雅黑", 23F);
+ this.lblRESP.ForeColor = System.Drawing.Color.Teal;
+ this.lblRESP.Location = new System.Drawing.Point(63, 308);
+ this.lblRESP.Name = "lblRESP";
+ this.lblRESP.Size = new System.Drawing.Size(43, 40);
+ this.lblRESP.TabIndex = 7;
+ this.lblRESP.Text = "--";
+ //
+ // lblDia
+ //
+ this.lblDia.AutoSize = true;
+ this.lblDia.Font = new System.Drawing.Font("微软雅黑", 23F);
+ this.lblDia.ForeColor = System.Drawing.Color.Teal;
+ this.lblDia.Location = new System.Drawing.Point(43, 217);
+ this.lblDia.Name = "lblDia";
+ this.lblDia.Size = new System.Drawing.Size(82, 40);
+ this.lblDia.TabIndex = 5;
+ this.lblDia.Text = "--/--";
+ //
+ // lblPR
+ //
+ this.lblPR.AutoSize = true;
+ this.lblPR.Font = new System.Drawing.Font("微软雅黑", 23F);
+ this.lblPR.ForeColor = System.Drawing.Color.Teal;
+ this.lblPR.Location = new System.Drawing.Point(63, 126);
+ this.lblPR.Name = "lblPR";
+ this.lblPR.Size = new System.Drawing.Size(43, 40);
+ this.lblPR.TabIndex = 3;
+ this.lblPR.Text = "--";
+ //
+ // lblHR
+ //
+ this.lblHR.AutoSize = true;
+ this.lblHR.Font = new System.Drawing.Font("微软雅黑", 23F);
+ this.lblHR.ForeColor = System.Drawing.Color.Teal;
+ this.lblHR.Location = new System.Drawing.Point(63, 35);
+ this.lblHR.Name = "lblHR";
+ this.lblHR.Size = new System.Drawing.Size(43, 40);
+ this.lblHR.TabIndex = 1;
+ this.lblHR.Text = "--";
+ //
+ // btnsjzx
+ //
+ this.btnsjzx.BackColor = System.Drawing.Color.Transparent;
+ this.btnsjzx.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
+ this.btnsjzx.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnsjzx.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.btnsjzx.FlatAppearance.BorderSize = 0;
+ this.btnsjzx.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnsjzx.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.btnsjzx.ForeColor = System.Drawing.Color.DimGray;
+ this.btnsjzx.Image = global::AIMS.Properties.Resources.工作列表;
+ this.btnsjzx.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.btnsjzx.Location = new System.Drawing.Point(0, 659);
+ this.btnsjzx.Name = "btnsjzx";
+ this.btnsjzx.Size = new System.Drawing.Size(160, 50);
+ this.btnsjzx.TabIndex = 22;
+ this.btnsjzx.Text = " 数据中心";
+ this.btnsjzx.UseVisualStyleBackColor = false;
+ this.btnsjzx.Click += new System.EventHandler(this.btnsjzx_Click);
+ //
+ // btnzsk
+ //
+ this.btnzsk.BackColor = System.Drawing.Color.Transparent;
+ this.btnzsk.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
+ this.btnzsk.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnzsk.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.btnzsk.FlatAppearance.BorderSize = 0;
+ this.btnzsk.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnzsk.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.btnzsk.ForeColor = System.Drawing.Color.DimGray;
+ this.btnzsk.Image = global::AIMS.Properties.Resources.知识库;
+ this.btnzsk.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.btnzsk.Location = new System.Drawing.Point(0, 709);
+ this.btnzsk.Name = "btnzsk";
+ this.btnzsk.Size = new System.Drawing.Size(160, 50);
+ this.btnzsk.TabIndex = 20;
+ this.btnzsk.Text = " 知识库";
+ this.btnzsk.UseVisualStyleBackColor = false;
+ this.btnzsk.Click += new System.EventHandler(this.btnzsk_Click);
+ //
+ // btndptz
+ //
+ this.btndptz.BackColor = System.Drawing.Color.Transparent;
+ this.btndptz.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
+ this.btndptz.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btndptz.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.btndptz.FlatAppearance.BorderSize = 0;
+ this.btndptz.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btndptz.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.btndptz.ForeColor = System.Drawing.Color.DimGray;
+ this.btndptz.Image = global::AIMS.Properties.Resources.文书状态;
+ this.btndptz.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.btndptz.Location = new System.Drawing.Point(0, 759);
+ this.btndptz.Name = "btndptz";
+ this.btndptz.Size = new System.Drawing.Size(160, 50);
+ this.btndptz.TabIndex = 19;
+ this.btndptz.Text = " 大屏通知";
+ this.btndptz.UseVisualStyleBackColor = false;
+ this.btndptz.Click += new System.EventHandler(this.btndptz_Click);
+ //
+ // btnsbwh
+ //
+ this.btnsbwh.BackColor = System.Drawing.Color.Transparent;
+ this.btnsbwh.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
+ this.btnsbwh.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnsbwh.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.btnsbwh.FlatAppearance.BorderSize = 0;
+ this.btnsbwh.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnsbwh.Font = new System.Drawing.Font("微软雅黑", 11F);
+ this.btnsbwh.ForeColor = System.Drawing.Color.DimGray;
+ this.btnsbwh.Image = global::AIMS.Properties.Resources.耗材管理;
+ this.btnsbwh.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.btnsbwh.Location = new System.Drawing.Point(0, 809);
+ this.btnsbwh.Name = "btnsbwh";
+ this.btnsbwh.Size = new System.Drawing.Size(160, 50);
+ this.btnsbwh.TabIndex = 16;
+ this.btnsbwh.Text = " 设备维护";
+ this.btnsbwh.UseVisualStyleBackColor = false;
+ this.btnsbwh.Click += new System.EventHandler(this.btnsbwh_Click);
+ //
// label9
//
this.label9.AutoSize = true;
this.label9.BackColor = System.Drawing.Color.White;
this.label9.Font = new System.Drawing.Font("微软雅黑", 12.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label9.ForeColor = System.Drawing.Color.DimGray;
- this.label9.Location = new System.Drawing.Point(31, 371);
+ this.label9.Location = new System.Drawing.Point(37, 376);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(95, 24);
this.label9.TabIndex = 10;
this.label9.Text = "SPO2( % )";
//
- // lblSpo2
- //
- this.lblSpo2.AutoSize = true;
- this.lblSpo2.Font = new System.Drawing.Font("宋体", 13F);
- this.lblSpo2.ForeColor = System.Drawing.Color.Yellow;
- this.lblSpo2.Location = new System.Drawing.Point(56, 409);
- this.lblSpo2.Name = "lblSpo2";
- this.lblSpo2.Size = new System.Drawing.Size(26, 18);
- this.lblSpo2.TabIndex = 9;
- this.lblSpo2.Text = "--";
- //
// label8
//
this.label8.AutoSize = true;
this.label8.BackColor = System.Drawing.Color.White;
this.label8.Font = new System.Drawing.Font("微软雅黑", 12.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label8.ForeColor = System.Drawing.Color.DimGray;
- this.label8.Location = new System.Drawing.Point(23, 293);
+ this.label8.Location = new System.Drawing.Point(29, 285);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(110, 24);
this.label8.TabIndex = 8;
this.label8.Text = "呼吸( 次/分 )";
//
- // lblRESP
- //
- this.lblRESP.AutoSize = true;
- this.lblRESP.Font = new System.Drawing.Font("宋体", 13F);
- this.lblRESP.ForeColor = System.Drawing.Color.Yellow;
- this.lblRESP.Location = new System.Drawing.Point(56, 333);
- this.lblRESP.Name = "lblRESP";
- this.lblRESP.Size = new System.Drawing.Size(26, 18);
- this.lblRESP.TabIndex = 7;
- this.lblRESP.Text = "--";
- //
- // lblDia
- //
- this.lblDia.AutoSize = true;
- this.lblDia.Font = new System.Drawing.Font("宋体", 13F);
- this.lblDia.ForeColor = System.Drawing.Color.Red;
- this.lblDia.Location = new System.Drawing.Point(56, 252);
- this.lblDia.Name = "lblDia";
- this.lblDia.Size = new System.Drawing.Size(26, 18);
- this.lblDia.TabIndex = 5;
- this.lblDia.Text = "--";
- //
// label6
//
this.label6.AutoSize = true;
this.label6.BackColor = System.Drawing.Color.White;
this.label6.Font = new System.Drawing.Font("微软雅黑", 12.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.ForeColor = System.Drawing.Color.DimGray;
- this.label6.Location = new System.Drawing.Point(15, 213);
+ this.label6.Location = new System.Drawing.Point(21, 194);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(127, 24);
this.label6.TabIndex = 4;
this.label6.Text = "血压( mmHg )";
//
- // lblPR
+ // label10
//
- this.lblPR.AutoSize = true;
- this.lblPR.Font = new System.Drawing.Font("宋体", 13F);
- this.lblPR.ForeColor = System.Drawing.Color.Aqua;
- this.lblPR.Location = new System.Drawing.Point(56, 173);
- this.lblPR.Name = "lblPR";
- this.lblPR.Size = new System.Drawing.Size(26, 18);
- this.lblPR.TabIndex = 3;
- this.lblPR.Text = "--";
+ this.label10.AutoSize = true;
+ this.label10.BackColor = System.Drawing.Color.White;
+ this.label10.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label10.ForeColor = System.Drawing.Color.DimGray;
+ this.label10.Location = new System.Drawing.Point(49, 441);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(70, 17);
+ this.label10.TabIndex = 2;
+ this.label10.Text = "90%-100%";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.BackColor = System.Drawing.Color.White;
+ this.label7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label7.ForeColor = System.Drawing.Color.DimGray;
+ this.label7.Location = new System.Drawing.Point(47, 350);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(74, 17);
+ this.label7.TabIndex = 2;
+ this.label7.Text = "16-20 次/分";
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.BackColor = System.Drawing.Color.White;
+ this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label5.ForeColor = System.Drawing.Color.DimGray;
+ this.label5.Location = new System.Drawing.Point(39, 259);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(91, 17);
+ this.label5.TabIndex = 2;
+ this.label5.Text = "60-140 mmHg";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.BackColor = System.Drawing.Color.White;
+ this.label3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label3.ForeColor = System.Drawing.Color.DimGray;
+ this.label3.Location = new System.Drawing.Point(44, 168);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(81, 17);
+ this.label3.TabIndex = 2;
+ this.label3.Text = "60-100 次/分";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.White;
+ this.label2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label2.ForeColor = System.Drawing.Color.DimGray;
+ this.label2.Location = new System.Drawing.Point(44, 77);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(81, 17);
+ this.label2.TabIndex = 2;
+ this.label2.Text = "60-100 次/分";
//
// label4
//
@@ -408,30 +673,19 @@
this.label4.BackColor = System.Drawing.Color.White;
this.label4.Font = new System.Drawing.Font("微软雅黑", 12.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label4.ForeColor = System.Drawing.Color.DimGray;
- this.label4.Location = new System.Drawing.Point(23, 135);
+ this.label4.Location = new System.Drawing.Point(29, 103);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(110, 24);
this.label4.TabIndex = 2;
this.label4.Text = "脉搏( 次/分 )";
//
- // lblHR
- //
- this.lblHR.AutoSize = true;
- this.lblHR.Font = new System.Drawing.Font("宋体", 13F);
- this.lblHR.ForeColor = System.Drawing.Color.Lime;
- this.lblHR.Location = new System.Drawing.Point(56, 94);
- this.lblHR.Name = "lblHR";
- this.lblHR.Size = new System.Drawing.Size(26, 18);
- this.lblHR.TabIndex = 1;
- this.lblHR.Text = "--";
- //
// label1
//
this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.Color.White;
this.label1.Font = new System.Drawing.Font("微软雅黑", 12.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.ForeColor = System.Drawing.Color.DimGray;
- this.label1.Location = new System.Drawing.Point(23, 55);
+ this.label1.Location = new System.Drawing.Point(29, 12);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(110, 24);
this.label1.TabIndex = 0;
@@ -446,7 +700,7 @@
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(1360, 739);
+ this.panel1.Size = new System.Drawing.Size(1360, 869);
this.panel1.TabIndex = 0;
//
// panel5
@@ -459,21 +713,42 @@
this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel5.Location = new System.Drawing.Point(160, 10);
this.panel5.Name = "panel5";
- this.panel5.Size = new System.Drawing.Size(1040, 729);
+ this.panel5.Size = new System.Drawing.Size(1040, 859);
this.panel5.TabIndex = 4;
//
// panel8
//
this.panel8.AutoScroll = true;
this.panel8.BackColor = System.Drawing.Color.White;
+ this.panel8.Controls.Add(this.circularProgress1);
this.panel8.Controls.Add(this.zgcAnaesRecord);
this.panel8.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel8.Location = new System.Drawing.Point(0, 58);
this.panel8.Name = "panel8";
- this.panel8.Size = new System.Drawing.Size(1038, 634);
+ this.panel8.Size = new System.Drawing.Size(1038, 759);
this.panel8.TabIndex = 2;
this.panel8.Scroll += new System.Windows.Forms.ScrollEventHandler(this.panel8_Scroll);
//
+ // circularProgress1
+ //
+ this.circularProgress1.AnimationSpeed = 50;
+ //
+ //
+ //
+ this.circularProgress1.BackgroundStyle.BackgroundImageAlpha = ((byte)(0));
+ this.circularProgress1.BackgroundStyle.BackgroundImagePosition = DevComponents.DotNetBar.eStyleBackgroundImage.Zoom;
+ this.circularProgress1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.circularProgress1.FocusCuesEnabled = false;
+ this.circularProgress1.Font = new System.Drawing.Font("微软雅黑", 9F);
+ this.circularProgress1.Location = new System.Drawing.Point(361, 252);
+ this.circularProgress1.Margin = new System.Windows.Forms.Padding(4);
+ this.circularProgress1.Name = "circularProgress1";
+ this.circularProgress1.ProgressColor = System.Drawing.Color.DodgerBlue;
+ this.circularProgress1.Size = new System.Drawing.Size(389, 239);
+ this.circularProgress1.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP;
+ this.circularProgress1.TabIndex = 6;
+ this.circularProgress1.Value = 100;
+ //
// zgcAnaesRecord
//
this.zgcAnaesRecord.Location = new System.Drawing.Point(3, 0);
@@ -487,6 +762,7 @@
this.zgcAnaesRecord.ScrollMinY2 = 0D;
this.zgcAnaesRecord.Size = new System.Drawing.Size(800, 1000);
this.zgcAnaesRecord.TabIndex = 0;
+ this.zgcAnaesRecord.Visible = false;
this.zgcAnaesRecord.ContextMenuBuilder += new DrawGraph.ZedGraphControl.ContextMenuBuilderEventHandler(this.zgcAnaesRecord_ContextMenuBuilder);
this.zgcAnaesRecord.MouseDownEvent += new DrawGraph.ZedGraphControl.ZedMouseEventHandler(this.zgcAnaesRecord_MouseDownEvent);
this.zgcAnaesRecord.MouseUpEvent += new DrawGraph.ZedGraphControl.ZedMouseEventHandler(this.zgcAnaesRecord_MouseUpEvent);
@@ -498,85 +774,122 @@
//
this.panel7.BackColor = System.Drawing.SystemColors.Control;
this.panel7.Controls.Add(this.panel21);
+ this.panel7.Controls.Add(this.lblRoom);
this.panel7.Controls.Add(this.label22);
this.panel7.Controls.Add(this.labOperatorName);
this.panel7.Controls.Add(this.label19);
this.panel7.Dock = System.Windows.Forms.DockStyle.Bottom;
- this.panel7.Location = new System.Drawing.Point(0, 692);
+ this.panel7.Location = new System.Drawing.Point(0, 817);
this.panel7.Name = "panel7";
- this.panel7.Size = new System.Drawing.Size(1038, 35);
+ this.panel7.Size = new System.Drawing.Size(1038, 40);
this.panel7.TabIndex = 1;
//
// panel21
//
+ this.panel21.Controls.Add(this.panel17);
this.panel21.Controls.Add(this.btnNextPage);
this.panel21.Controls.Add(this.plPrintBrowse);
this.panel21.Controls.Add(this.plPrint);
+ this.panel21.Controls.Add(this.panel18);
this.panel21.Controls.Add(this.btnUpPage);
this.panel21.Controls.Add(this.plRefresh);
this.panel21.Dock = System.Windows.Forms.DockStyle.Right;
this.panel21.Location = new System.Drawing.Point(697, 0);
this.panel21.Name = "panel21";
- this.panel21.Size = new System.Drawing.Size(341, 35);
+ this.panel21.Size = new System.Drawing.Size(341, 40);
this.panel21.TabIndex = 10;
//
+ // panel17
+ //
+ this.panel17.BackgroundImage = global::AIMS.Properties.Resources.图标_末尾页;
+ this.panel17.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.panel17.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.panel17.Location = new System.Drawing.Point(126, 4);
+ this.panel17.Name = "panel17";
+ this.panel17.Size = new System.Drawing.Size(28, 28);
+ this.panel17.TabIndex = 4;
+ this.panel17.Tag = "下一页";
+ this.panel17.Click += new System.EventHandler(this.btnNextEndPage_Click);
+ //
// btnNextPage
//
- this.btnNextPage.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnNextPage.BackgroundImage")));
- this.btnNextPage.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
+ this.btnNextPage.BackgroundImage = global::AIMS.Properties.Resources.图标_后一页;
+ this.btnNextPage.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.btnNextPage.Cursor = System.Windows.Forms.Cursors.Hand;
- this.btnNextPage.Location = new System.Drawing.Point(63, 4);
+ this.btnNextPage.Location = new System.Drawing.Point(85, 4);
this.btnNextPage.Name = "btnNextPage";
- this.btnNextPage.Size = new System.Drawing.Size(32, 25);
+ this.btnNextPage.Size = new System.Drawing.Size(28, 28);
this.btnNextPage.TabIndex = 4;
this.btnNextPage.Tag = "下一页";
this.btnNextPage.Click += new System.EventHandler(this.btnNextPage_Click);
//
// plPrintBrowse
//
- this.plPrintBrowse.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("plPrintBrowse.BackgroundImage")));
+ this.plPrintBrowse.BackgroundImage = global::AIMS.Properties.Resources.图标_预览;
this.plPrintBrowse.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.plPrintBrowse.Cursor = System.Windows.Forms.Cursors.Hand;
- this.plPrintBrowse.Location = new System.Drawing.Point(140, 4);
+ this.plPrintBrowse.Location = new System.Drawing.Point(208, 4);
this.plPrintBrowse.Name = "plPrintBrowse";
- this.plPrintBrowse.Size = new System.Drawing.Size(32, 25);
+ this.plPrintBrowse.Size = new System.Drawing.Size(28, 28);
this.plPrintBrowse.TabIndex = 4;
this.plPrintBrowse.Click += new System.EventHandler(this.plPrintBrowse_Click);
//
// plPrint
//
- this.plPrint.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("plPrint.BackgroundImage")));
+ this.plPrint.BackgroundImage = global::AIMS.Properties.Resources.图标_打印;
this.plPrint.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.plPrint.Cursor = System.Windows.Forms.Cursors.Hand;
- this.plPrint.Location = new System.Drawing.Point(102, 4);
+ this.plPrint.Location = new System.Drawing.Point(167, 4);
this.plPrint.Name = "plPrint";
- this.plPrint.Size = new System.Drawing.Size(32, 25);
+ this.plPrint.Size = new System.Drawing.Size(28, 28);
this.plPrint.TabIndex = 3;
this.plPrint.Click += new System.EventHandler(this.plPrint_Click);
//
+ // panel18
+ //
+ this.panel18.BackgroundImage = global::AIMS.Properties.Resources.图标_第一页;
+ this.panel18.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.panel18.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.panel18.Location = new System.Drawing.Point(3, 4);
+ this.panel18.Name = "panel18";
+ this.panel18.Size = new System.Drawing.Size(28, 28);
+ this.panel18.TabIndex = 3;
+ this.panel18.Tag = "上一页";
+ this.panel18.Click += new System.EventHandler(this.btnUpFsPage_Click);
+ //
// btnUpPage
//
- this.btnUpPage.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnUpPage.BackgroundImage")));
- this.btnUpPage.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
+ this.btnUpPage.BackgroundImage = global::AIMS.Properties.Resources.图标_前一页;
+ this.btnUpPage.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.btnUpPage.Cursor = System.Windows.Forms.Cursors.Hand;
- this.btnUpPage.Location = new System.Drawing.Point(34, 4);
+ this.btnUpPage.Location = new System.Drawing.Point(44, 4);
this.btnUpPage.Name = "btnUpPage";
- this.btnUpPage.Size = new System.Drawing.Size(32, 25);
+ this.btnUpPage.Size = new System.Drawing.Size(28, 28);
this.btnUpPage.TabIndex = 3;
this.btnUpPage.Tag = "上一页";
this.btnUpPage.Click += new System.EventHandler(this.btnUpPage_Click);
//
// plRefresh
//
- this.plRefresh.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("plRefresh.BackgroundImage")));
+ this.plRefresh.BackgroundImage = global::AIMS.Properties.Resources.图标_刷新;
this.plRefresh.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.plRefresh.Cursor = System.Windows.Forms.Cursors.Hand;
- this.plRefresh.Location = new System.Drawing.Point(178, 4);
+ this.plRefresh.Location = new System.Drawing.Point(249, 4);
this.plRefresh.Name = "plRefresh";
- this.plRefresh.Size = new System.Drawing.Size(30, 25);
+ this.plRefresh.Size = new System.Drawing.Size(28, 28);
this.plRefresh.TabIndex = 2;
this.plRefresh.Click += new System.EventHandler(this.plRefresh_Click);
//
+ // lblRoom
+ //
+ this.lblRoom.AutoSize = true;
+ this.lblRoom.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.lblRoom.Location = new System.Drawing.Point(312, 8);
+ this.lblRoom.Name = "lblRoom";
+ this.lblRoom.Size = new System.Drawing.Size(13, 20);
+ this.lblRoom.TabIndex = 9;
+ this.lblRoom.Text = " ";
+ //
// label22
//
this.label22.AutoSize = true;
@@ -585,7 +898,7 @@
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(68, 20);
this.label22.TabIndex = 8;
- this.label22.Text = "当前时间:";
+ this.label22.Text = "当前床位:";
//
// labOperatorName
//
@@ -611,7 +924,7 @@
//
this.plTitleEventTime.BackColor = System.Drawing.Color.White;
this.plTitleEventTime.Controls.Add(this.panel13);
- this.plTitleEventTime.Controls.Add(this.panel10);
+ this.plTitleEventTime.Controls.Add(this.panel16);
this.plTitleEventTime.Controls.Add(this.panel12);
this.plTitleEventTime.Controls.Add(this.panel6);
this.plTitleEventTime.Dock = System.Windows.Forms.DockStyle.Top;
@@ -624,9 +937,9 @@
//
this.panel13.BackColor = System.Drawing.Color.AliceBlue;
this.panel13.Controls.Add(this.txtOutRoom);
- this.panel13.Controls.Add(this.pictureBox6);
+ this.panel13.Controls.Add(this.picOutRoom);
this.panel13.Controls.Add(this.button5);
- this.panel13.Location = new System.Drawing.Point(702, 3);
+ this.panel13.Location = new System.Drawing.Point(491, 3);
this.panel13.Name = "panel13";
this.panel13.Padding = new System.Windows.Forms.Padding(3, 0, 3, 6);
this.panel13.Size = new System.Drawing.Size(150, 53);
@@ -686,16 +999,16 @@
this.txtOutRoom.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.txtOutRoom.TabIndex = 43;
//
- // pictureBox6
+ // picOutRoom
//
- this.pictureBox6.BackColor = System.Drawing.Color.Transparent;
- this.pictureBox6.BackgroundImage = global::AIMS.Properties.Resources.出手术室;
- this.pictureBox6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
- this.pictureBox6.Location = new System.Drawing.Point(5, 12);
- this.pictureBox6.Name = "pictureBox6";
- this.pictureBox6.Size = new System.Drawing.Size(28, 28);
- this.pictureBox6.TabIndex = 42;
- this.pictureBox6.TabStop = false;
+ this.picOutRoom.BackColor = System.Drawing.Color.Transparent;
+ this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室;
+ this.picOutRoom.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.picOutRoom.Location = new System.Drawing.Point(5, 12);
+ this.picOutRoom.Name = "picOutRoom";
+ this.picOutRoom.Size = new System.Drawing.Size(28, 28);
+ this.picOutRoom.TabIndex = 42;
+ this.picOutRoom.TabStop = false;
//
// button5
//
@@ -713,16 +1026,17 @@
this.button5.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.button5.UseVisualStyleBackColor = false;
//
- // panel10
+ // panel16
//
- this.panel10.BackColor = System.Drawing.Color.AliceBlue;
- this.panel10.Controls.Add(this.txtBG);
- this.panel10.Controls.Add(this.button2);
- this.panel10.Location = new System.Drawing.Point(244, 3);
- this.panel10.Name = "panel10";
- this.panel10.Padding = new System.Windows.Forms.Padding(3, 0, 3, 6);
- this.panel10.Size = new System.Drawing.Size(150, 53);
- this.panel10.TabIndex = 51;
+ this.panel16.BackColor = System.Drawing.Color.AliceBlue;
+ this.panel16.Controls.Add(this.txtBG);
+ this.panel16.Controls.Add(this.picBG);
+ this.panel16.Controls.Add(this.button9);
+ this.panel16.Location = new System.Drawing.Point(167, 3);
+ this.panel16.Name = "panel16";
+ this.panel16.Padding = new System.Windows.Forms.Padding(3, 0, 3, 6);
+ this.panel16.Size = new System.Drawing.Size(150, 53);
+ this.panel16.TabIndex = 51;
//
// txtBG
//
@@ -739,7 +1053,7 @@
this.txtBG.Format = DevComponents.Editors.eDateTimePickerFormat.Custom;
this.txtBG.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center;
this.txtBG.IsPopupCalendarOpen = false;
- this.txtBG.Location = new System.Drawing.Point(31, 23);
+ this.txtBG.Location = new System.Drawing.Point(40, 26);
this.txtBG.Margin = new System.Windows.Forms.Padding(6, 0, 6, 6);
//
//
@@ -778,29 +1092,40 @@
this.txtBG.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.txtBG.TabIndex = 43;
//
- // button2
+ // picBG
//
- this.button2.BackColor = System.Drawing.Color.Transparent;
- this.button2.FlatAppearance.BorderSize = 0;
- this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.button2.Font = new System.Drawing.Font("微软雅黑", 10.5F);
- this.button2.ImageAlign = System.Drawing.ContentAlignment.BottomLeft;
- this.button2.Location = new System.Drawing.Point(30, -3);
- this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(100, 25);
- this.button2.TabIndex = 41;
- this.button2.Tag = "";
- this.button2.Text = "拔管";
- this.button2.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
- this.button2.UseVisualStyleBackColor = false;
+ this.picBG.BackColor = System.Drawing.Color.Transparent;
+ this.picBG.BackgroundImage = global::AIMS.Properties.Resources.拔管;
+ this.picBG.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.picBG.Location = new System.Drawing.Point(5, 12);
+ this.picBG.Name = "picBG";
+ this.picBG.Size = new System.Drawing.Size(28, 28);
+ this.picBG.TabIndex = 42;
+ this.picBG.TabStop = false;
+ //
+ // button9
+ //
+ this.button9.BackColor = System.Drawing.Color.Transparent;
+ this.button9.FlatAppearance.BorderSize = 0;
+ this.button9.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.button9.Font = new System.Drawing.Font("微软雅黑", 10.5F);
+ this.button9.ImageAlign = System.Drawing.ContentAlignment.BottomLeft;
+ this.button9.Location = new System.Drawing.Point(39, -3);
+ this.button9.Name = "button9";
+ this.button9.Size = new System.Drawing.Size(100, 25);
+ this.button9.TabIndex = 41;
+ this.button9.Tag = "";
+ this.button9.Text = "拔管";
+ this.button9.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
+ this.button9.UseVisualStyleBackColor = false;
//
// panel12
//
this.panel12.BackColor = System.Drawing.Color.AliceBlue;
this.panel12.Controls.Add(this.txtAnaesthesiaEnd);
- this.panel12.Controls.Add(this.pictureBox5);
+ this.panel12.Controls.Add(this.picAnesEnd);
this.panel12.Controls.Add(this.button4);
- this.panel12.Location = new System.Drawing.Point(473, 3);
+ this.panel12.Location = new System.Drawing.Point(329, 3);
this.panel12.Name = "panel12";
this.panel12.Padding = new System.Windows.Forms.Padding(3, 0, 3, 6);
this.panel12.Size = new System.Drawing.Size(150, 53);
@@ -860,16 +1185,16 @@
this.txtAnaesthesiaEnd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.txtAnaesthesiaEnd.TabIndex = 43;
//
- // pictureBox5
+ // picAnesEnd
//
- this.pictureBox5.BackColor = System.Drawing.Color.Transparent;
- this.pictureBox5.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束;
- this.pictureBox5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
- this.pictureBox5.Location = new System.Drawing.Point(5, 12);
- this.pictureBox5.Name = "pictureBox5";
- this.pictureBox5.Size = new System.Drawing.Size(28, 28);
- this.pictureBox5.TabIndex = 42;
- this.pictureBox5.TabStop = false;
+ this.picAnesEnd.BackColor = System.Drawing.Color.Transparent;
+ this.picAnesEnd.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束;
+ this.picAnesEnd.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.picAnesEnd.Location = new System.Drawing.Point(5, 12);
+ this.picAnesEnd.Name = "picAnesEnd";
+ this.picAnesEnd.Size = new System.Drawing.Size(28, 28);
+ this.picAnesEnd.TabIndex = 42;
+ this.picAnesEnd.TabStop = false;
//
// button4
//
@@ -883,7 +1208,7 @@
this.button4.Size = new System.Drawing.Size(100, 25);
this.button4.TabIndex = 41;
this.button4.Tag = "";
- this.button4.Text = "麻醉结束";
+ this.button4.Text = "麻醉完成";
this.button4.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.button4.UseVisualStyleBackColor = false;
//
@@ -891,9 +1216,9 @@
//
this.panel6.BackColor = System.Drawing.Color.AliceBlue;
this.panel6.Controls.Add(this.txtInRoom);
- this.panel6.Controls.Add(this.pictureBox2);
+ this.panel6.Controls.Add(this.picInRoom);
this.panel6.Controls.Add(this.txtInRoom1);
- this.panel6.Location = new System.Drawing.Point(15, 3);
+ this.panel6.Location = new System.Drawing.Point(7, 3);
this.panel6.Name = "panel6";
this.panel6.Padding = new System.Windows.Forms.Padding(3, 0, 3, 6);
this.panel6.Size = new System.Drawing.Size(150, 53);
@@ -953,16 +1278,16 @@
this.txtInRoom.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.txtInRoom.TabIndex = 43;
//
- // pictureBox2
+ // picInRoom
//
- this.pictureBox2.BackColor = System.Drawing.Color.Transparent;
- this.pictureBox2.BackgroundImage = global::AIMS.Properties.Resources.入手术室;
- this.pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
- this.pictureBox2.Location = new System.Drawing.Point(5, 12);
- this.pictureBox2.Name = "pictureBox2";
- this.pictureBox2.Size = new System.Drawing.Size(28, 28);
- this.pictureBox2.TabIndex = 42;
- this.pictureBox2.TabStop = false;
+ this.picInRoom.BackColor = System.Drawing.Color.Transparent;
+ this.picInRoom.BackgroundImage = global::AIMS.Properties.Resources.入手术室;
+ this.picInRoom.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.picInRoom.Location = new System.Drawing.Point(5, 12);
+ this.picInRoom.Name = "picInRoom";
+ this.picInRoom.Size = new System.Drawing.Size(28, 28);
+ this.picInRoom.TabIndex = 42;
+ this.picInRoom.TabStop = false;
//
// txtInRoom1
//
@@ -975,7 +1300,7 @@
this.txtInRoom1.Name = "txtInRoom1";
this.txtInRoom1.Size = new System.Drawing.Size(100, 25);
this.txtInRoom1.TabIndex = 41;
- this.txtInRoom1.Tag = "进恢复间";
+ this.txtInRoom1.Tag = "进恢复室";
this.txtInRoom1.Text = "进恢复室";
this.txtInRoom1.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.txtInRoom1.UseVisualStyleBackColor = false;
@@ -991,15 +1316,14 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1360, 739);
+ this.ClientSize = new System.Drawing.Size(1360, 869);
this.Controls.Add(this.panel1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "frmAnasRecoverBillNew";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "恢复记录单";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
- this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmAnasRecoverBillNew_FormClosing);
- this.Load += new System.EventHandler(this.frmAnasRecoverBillNew_Load);
+ this.Load += new System.EventHandler(this.frmAnasRecordBillNew_Load);
this.panel3.ResumeLayout(false);
this.panel14.ResumeLayout(false);
this.panel4.ResumeLayout(false);
@@ -1013,15 +1337,16 @@
this.plTitleEventTime.ResumeLayout(false);
this.panel13.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.txtOutRoom)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit();
- this.panel10.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.picOutRoom)).EndInit();
+ this.panel16.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.txtBG)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picBG)).EndInit();
this.panel12.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.txtAnaesthesiaEnd)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picAnesEnd)).EndInit();
this.panel6.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.txtInRoom)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.picInRoom)).EndInit();
this.ResumeLayout(false);
}
@@ -1040,14 +1365,13 @@
private System.Windows.Forms.Panel btnUpPage;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label lblSpo2;
- private System.Windows.Forms.Label label8;
- private System.Windows.Forms.Label lblRESP;
private System.Windows.Forms.Label lblDia;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label lblPR;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label lblHR;
- private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Label lblRoom;
private System.Windows.Forms.Label label22;
private System.Windows.Forms.Label labOperatorName;
private System.Windows.Forms.Label label19;
@@ -1062,24 +1386,43 @@
private System.Windows.Forms.Button btnOperationInfo;
private System.Windows.Forms.Button btnAddEvents;
private System.Windows.Forms.Button btnTemplate;
- private System.Windows.Forms.Button button6;
+ private System.Windows.Forms.Button btnBloodGasAnalysis;
private System.Windows.Forms.Button btnOutputLiquids;
private DrawGraph.ZedGraphControl zgcAnaesRecord;
private System.Windows.Forms.Panel panel6;
private DevComponents.Editors.DateTimeAdv.DateTimeInput txtInRoom;
- private System.Windows.Forms.PictureBox pictureBox2;
+ private System.Windows.Forms.PictureBox picInRoom;
private System.Windows.Forms.Button txtInRoom1;
private System.Windows.Forms.Panel panel13;
private DevComponents.Editors.DateTimeAdv.DateTimeInput txtOutRoom;
- private System.Windows.Forms.PictureBox pictureBox6;
+ private System.Windows.Forms.PictureBox picOutRoom;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Panel panel12;
private DevComponents.Editors.DateTimeAdv.DateTimeInput txtAnaesthesiaEnd;
- private System.Windows.Forms.PictureBox pictureBox5;
+ private System.Windows.Forms.PictureBox picAnesEnd;
private System.Windows.Forms.Button button4;
+ private System.Windows.Forms.Button button8;
+ private System.Windows.Forms.Button button7;
+ private System.Windows.Forms.Button btnCancelIn;
private System.Windows.Forms.Button btnCancelOperation;
- private System.Windows.Forms.Panel panel10;
+ private System.Windows.Forms.Panel panel16;
private DevComponents.Editors.DateTimeAdv.DateTimeInput txtBG;
- private System.Windows.Forms.Button button2;
+ private System.Windows.Forms.PictureBox picBG;
+ private System.Windows.Forms.Button button9;
+ public DevComponents.DotNetBar.Controls.CircularProgress circularProgress1;
+ private System.Windows.Forms.Button btnsbwh;
+ private System.Windows.Forms.Button btnzsk;
+ private System.Windows.Forms.Button btndptz;
+ private System.Windows.Forms.Panel panel17;
+ private System.Windows.Forms.Panel panel18;
+ private System.Windows.Forms.Button btnsjzx;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label lblRESP;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label7;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Button btnChage;
}
}
\ No newline at end of file
diff --git a/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBillNew.cs b/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBillNew.cs
new file mode 100644
index 0000000..d0593be
--- /dev/null
+++ b/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBillNew.cs
@@ -0,0 +1,1748 @@
+using AIMS.DocManager;
+using AIMS.OperationFront.UI;
+using AIMS.PublicUI.UI;
+using AIMSBLL;
+using AIMSExtension;
+using DevComponents.Editors.DateTimeAdv;
+using DrawGraph;
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Printing;
+using System.Linq;
+using System.Reflection;
+using System.Windows.Forms;
+
+namespace AIMS.OperationDoing.AnasRecoverBill.UI
+{
+ public partial class frmAnasRecoverBillNew : Form
+ {
+ #region 初始化
+ public OperationRecord _record;
+ public TemplateManage templateManage;
+ public AIMSModel.OperationRoom NowRoom;
+ public int PatientId = 0;
+ public int ApplyId = 0;
+ public int RecoverId = 1;
+ private System.Windows.Forms.Timer timerGetTextCollectorData;
+ public AIMSExtension.EditState State;
+ public bool isReadOnly = false;
+
+ public frmAnasRecoverBillNew()
+ {
+ InitializeComponent();
+ #region 时间轴事件
+ txtInRoom.MouseDown += new MouseEventHandler(txtDateTime_MouseDown);
+ txtOutRoom.MouseDown += new MouseEventHandler(txtDateTime_MouseDown);
+ txtAnaesthesiaEnd.MouseDown += new MouseEventHandler(txtDateTime_MouseDown);
+ txtBG.MouseDown += new MouseEventHandler(txtDateTime_MouseDown);
+
+ txtAnaesthesiaEnd.KeyUp += new KeyEventHandler(dateTimePicker_KeyUp);
+ txtBG.KeyUp += new KeyEventHandler(dateTimePicker_KeyUp);
+
+ txtInRoom.LostFocus += new EventHandler(txtDateTime_LostFocus);
+ txtOutRoom.LostFocus += new EventHandler(txtDateTime_LostFocus);
+ txtAnaesthesiaEnd.LostFocus += new EventHandler(txtDateTime_LostFocus);
+ txtBG.LostFocus += new EventHandler(txtDateTime_LostFocus);
+
+ this.picInRoom.BackgroundImage = global::AIMS.Properties.Resources.入手术室;
+ this.picBG.BackgroundImage = global::AIMS.Properties.Resources.拔管;
+ this.picAnesEnd.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束;
+ this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室;
+ #endregion
+ //AIMSExtension.PublicMethod.SetLocalDateTime();
+ }
+
+ private void frmAnasRecordBillNew_Load(object sender, EventArgs e)
+ {
+ //系统演示 收费功能
+ if (PublicMethod.OperatorNo == "admin")
+ {
+ btnChage.Visible = true;
+ }
+
+ labOperatorName.Text = "(" + AIMSExtension.PublicMethod.OperatorNo + ")" + " " + AIMSExtension.PublicMethod.OperatorName;
+ if (NowRoom != null) lblRoom.Text = NowRoom.Name;
+ circularProgress1.Location = new Point((panel8.Width - circularProgress1.Width) / 2, (panel8.Height - circularProgress1.Height) / 2);
+
+ LoadAnesRescue();
+ }
+
+ #endregion
+
+ #region 打印方法
+ public List mPanes = new List();
+ public List UpPanes = new List();
+ public int printWidth = 800;
+ public int printHeight = 1160;
+ int count = 0;
+ private void pDoc_PrintPage(object sender, PrintPageEventArgs e)
+ {
+ Font f = new Font("宋体", 10, FontStyle.Regular);
+ decimal Chinese_OneWidth = Convert.ToDecimal(e.Graphics.MeasureString("测", f).Width);
+ int pageWidth = Convert.ToInt32(Math.Round(e.PageSettings.PrintableArea.Width, 0)) - 1;//打印机可打印区域的宽度
+ int onePageHeight = Convert.ToInt32(Math.Round(e.PageSettings.PrintableArea.Height, 0)) - 1;//打印机可打印区域的高度
+
+ int printCount = mPanes.Count;
+ if (mPanes.Count > 0 && count < printCount)
+ {
+ mPanes[count].Draw(e.Graphics);
+ count++;
+ if (count < printCount)
+ {
+ e.HasMorePages = true;
+ }
+ }
+ else
+ {
+ e.HasMorePages = false;
+ }
+ }
+
+ private void plPrintBrowse_Click(object sender, EventArgs e)
+ {
+ int pylWidth = 3;
+
+ PrintDocument pDoc = new PrintDocument();
+ pDoc.DefaultPageSettings.Landscape = false;
+ pDoc.OriginAtMargins = true;
+ pDoc.DefaultPageSettings.Margins = new Margins(pylWidth, 0, 0, 0);//8, 0);
+ pDoc.DefaultPageSettings.PrinterResolution.Kind = PrinterResolutionKind.High;
+ pDoc.PrintPage -= new PrintPageEventHandler(PrintDocPage);
+ pDoc.PrintPage += new PrintPageEventHandler(PrintDocPage);
+
+ PrintPreviewDialog pdg = new PrintPreviewDialog();
+ pdg.Width = zgcAnaesRecord.Width;
+ Form f = (Form)pdg;
+ f.WindowState = FormWindowState.Maximized;
+ pdg.Document = pDoc;
+ pdg.PrintPreviewControl.Zoom = 1;
+ pdg.ShowDialog(this);
+ pdg.Focus();
+ pdg.BringToFront();
+
+ }
+
+ private void PrintDocPage(object sender, PrintPageEventArgs e)
+ {
+ if (_record == null) return;
+
+ int zgcAnaesRecordWidth = zgcAnaesRecord.Size.Width;
+ int zgcAnaesRecordHeight = zgcAnaesRecord.Size.Height;
+
+ printHeight = Convert.ToInt32(printWidth * 1.414) + 2;
+ zgcAnaesRecord.Size = new Size(printWidth, printHeight);
+
+ foreach (PhysioDataConfig pp in _record.addPhysioList)
+ {
+ if (pp.showStyle == "显示数值")
+ {
+ pp.IsValid = false;
+ ///重新设置曲线属性
+ pp.reSetCurveSpo2();
+ }
+ }
+ TipBox.Hidden();
+
+ MasterPane mPane = zgcAnaesRecord.MasterPane; //this.MasterPane;
+ mPane.Border.IsVisible = false;
+ //GraphPane cPane = mPane.PaneList[0]; //graphPane;
+ //cPane.Border.IsVisible = false;
+
+ //当前窗体中的矩形区域大小
+ RectangleF saveRect = mPane.Rect;
+
+ templateManage.initChart();
+ mPanes.Add(mPane.Clone());
+ if (e != null)
+ mPane.Draw(e.Graphics); //在打印文档中画出MasterPane内容
+ using (Graphics g = zgcAnaesRecord.CreateGraphics())
+ {
+ mPane.ReSize(g, saveRect);
+ }
+
+ zgcAnaesRecord.Size = new Size(zgcAnaesRecordWidth, zgcAnaesRecordHeight);
+ templateManage.initChart();
+ UpPanes.Add(mPane.Clone());
+ foreach (PhysioDataConfig pp in _record.addPhysioList)
+ {
+ if (pp.showStyle == "显示数值")
+ {
+ pp.IsValid = true;
+ ///重新设置曲线属性
+ pp.reSetCurveSpo2();
+ }
+ }
+ }
+ private void plPrint_Click(object sender, EventArgs e)
+ {
+ if (_record == null || _record.Id == 0) return;
+ if (txtOutRoom.Focused)
+ {
+ zgcAnaesRecord.Focus();
+ }
+ if (_record.State == "手术中")
+ {
+ if (txtOutRoom.CustomFormat == " ")
+ {
+ txtOutRoom.BackColor = Color.Red;
+ MessageBox.Show("手术还没有结束,请填写出室时间!", "系统提示");
+ return;
+ }
+ }
+
+ try
+ {
+ mPanes = new List();
+ UpPanes = new List();
+ int printrcount = 0;
+
+ while (_record.pageCount != 1)
+ {
+ btnUpPage_Click(null, null);
+ }
+ while (_record.currentPage != _record.pageCount)
+ {
+ PrintDocPage(null, null);
+ printrcount++;
+ btnNextPage_Click(null, null);
+ if (printrcount > 10) break;
+ }
+ PrintDocPage(null, null);
+
+ count = 0;
+ int pylWidth = 3;
+ PrintDocument pDoc = new PrintDocument();
+ pDoc.DefaultPageSettings.Landscape = false;
+ pDoc.OriginAtMargins = true;
+ pDoc.DefaultPageSettings.PrinterResolution.Kind = PrinterResolutionKind.High;
+ pDoc.DefaultPageSettings.Margins = new Margins(pylWidth, 0, 0, 0);
+ pDoc.PrintPage -= new PrintPageEventHandler(pDoc_PrintPage);
+ pDoc.PrintPage += new PrintPageEventHandler(pDoc_PrintPage);
+
+ System.Windows.Forms.PrintDialog pDlg = new System.Windows.Forms.PrintDialog();
+ pDlg.Document = pDoc;
+ if (pDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
+ {
+ pDoc.Print();
+ }
+
+ count = 0;
+ }
+ catch (Exception exp)
+ {
+ PublicMethod.WriteLog(exp, "");
+ }
+ }
+ #endregion
+
+ #region 上方按钮
+ ///
+ /// 手术特殊事件时间点处理事件
+ ///
+ ///
+ ///
+ public void txtDateTime_MouseDown(object sender, MouseEventArgs e)
+ {
+ if (PatientId == 0) return;
+ DateTimeInput tb = sender as DateTimeInput;
+ if (_record != null && _record.OutRoomTime != null)
+ {
+ if ((tb.Name == "txtBG" || tb.Name == "txtCG") && tb.Text.Trim() == "")
+ {
+ return;
+ }
+ }
+
+ if (tb.Text.Trim() == "" && tb.CustomFormat == " ")
+ {
+ tb.BackColor = Color.White;
+ SetPic(sender);
+ }
+ else
+ {
+ tb.CustomFormat = "HH:mm";
+ tb.ButtonDropDown.Visible = true;
+ }
+ }
+ private void txtDateTime_LostFocus(object sender, EventArgs e)
+ {
+ if (PatientId == 0) return;
+ DateTimeInput tb = sender as DateTimeInput;
+ if (tb.CustomFormat == "HH:mm")
+ {
+ if (tb.Name == "txtInRoom" || tb.Name == "txtOutRoom")
+ {
+ tb.CustomFormat = "MM-dd HH:mm";
+ }
+ tb.ButtonDropDown.Visible = false;
+ }
+ if (tb.Text.Trim() != "" && tb.Value.ToString() != tb.Tag.ToString())
+ {
+ try
+ {
+ SetPic(sender, tb.Value);
+ tb.BackColor = Color.White;
+ }
+ catch (Exception)
+ {
+ tb.Focus();
+ tb.Value = DateTime.Parse(tb.Tag.ToString());
+ return;
+ }
+ }
+ else
+ {
+ if (tb.Tag != null && tb.Tag.ToString() != "")
+ tb.Value = DateTime.Parse(tb.Tag.ToString());
+ }
+ }
+ private void dateTimePicker_KeyUp(object sender, KeyEventArgs e)
+ {
+ if (PatientId == 0) return;
+ DateTimeInput dtpak = (DateTimeInput)sender;
+ if (e.KeyCode == Keys.Delete || e.KeyCode == Keys.Back)
+ {
+ if (dtpak.CustomFormat != " " && dtpak.Tag != null)
+ {
+ try
+ {
+ SetPic((DateTimeInput)sender);
+ }
+ catch (Exception)
+ {
+ //PublicMethod.ShowMessage("输入的时间格式不符合规范(HH:mm)!");
+ return;
+ }
+ }
+
+ }
+ }
+ ///
+ /// 特殊事件触发时设置图片
+ ///
+ /// 显示时间的控件
+ private void SetPic(Object obj)
+ {
+ DrawGraph.FactEvents Inevent = null;
+ DateTimeInput tb = obj as DateTimeInput;
+ DateTime nowtime = DateTime.Now;// getOpeMaxTime();
+ DateTime curTimeTemp = new DateTime(nowtime.Year, nowtime.Month, nowtime.Day, nowtime.Hour, nowtime.Minute, 0);
+ InsertOrUpdateEventTime(0, "txtInRoom", "入室", tb, curTimeTemp, ref Inevent);
+ curTimeTemp = curTimeTemp.AddSeconds(2);
+ InsertOrUpdateEventTime(0, "txtBG", "拔管", tb, curTimeTemp, ref Inevent);
+ curTimeTemp = curTimeTemp.AddSeconds(2);
+ InsertOrUpdateEventTime(0, "txtAnaesthesiaEnd", "麻醉完成", tb, curTimeTemp, ref Inevent);
+ curTimeTemp = curTimeTemp.AddSeconds(2);
+ InsertOrUpdateEventTime(0, "txtOutRoom", "出室", tb, curTimeTemp, ref Inevent);
+
+ if (Inevent != null)
+ {
+ _record.FactEventsList.Add(Inevent);
+ if (Inevent.EventName == "入室")
+ {
+ _record.pageCount = 0;
+ ReviewEvent();
+ }
+ else if (Inevent.EventName == "手术开始" || Inevent.EventName == "出室" || Inevent.EventBeginTime > _record.lastPageBegin)
+ {
+ ReviewEvent();
+ }
+ else
+ {
+ DrawEvent();
+ }
+ }
+ }
+ ///
+ /// 特殊事件触发时设置图片
+ ///
+ /// 显示时间的控件
+ private void SetPic(Object obj, DateTime curTimeTemp)
+ {
+ DrawGraph.FactEvents Inevent = null;
+ DateTimeInput tb = obj as DateTimeInput;
+ 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);
+ curTimeTemp = curTimeTemp.AddSeconds(2);
+ InsertOrUpdateEventTime(1, "txtBG", "拔管", tb, curTimeTemp, ref Inevent);
+ curTimeTemp = curTimeTemp.AddSeconds(2);
+ InsertOrUpdateEventTime(1, "txtAnaesthesiaEnd", "麻醉完成", tb, curTimeTemp, ref Inevent);
+ curTimeTemp = curTimeTemp.AddSeconds(2);
+ InsertOrUpdateEventTime(1, "txtOutRoom", "出室", tb, curTimeTemp, ref Inevent);
+
+ if (Inevent != null)
+ {
+ if (Inevent.EventName == "入室")
+ {
+ _record.pageCount = 0;
+ ReviewEvent();
+ }
+ else if (Inevent.EventName == "出室" || Inevent.EventName == "手术开始" || Inevent.EventBeginTime > _record.lastPageBegin)
+ {
+ ReviewEvent();
+ }
+ else
+ {
+ DrawEvent();
+ }
+ }
+ }
+ ///
+ /// 特殊事件触发时设置图片
+ ///
+ /// 显示时间的控件
+ private void SetPic(DateTimeInput obj)
+ {
+ DrawGraph.FactEvents Inevent = null;
+ DateTimeInput tb = obj as DateTimeInput;
+ if (_record.State == "手术中")
+ {
+ DeleteEventTime("txtAnaesthesiaEnd", "麻醉完成", tb, ref Inevent);
+ DeleteEventTime("txtBG", "拔管", tb, ref Inevent);
+ }
+ else
+ {
+ MessageBox.Show("选择的事件不可删除 只可修改!");
+ }
+
+ if (Inevent != null)
+ {
+ tb.ButtonDropDown.Visible = false;
+ _record.FactEventsList.Remove(Inevent);
+ DrawEvent();
+ }
+ }
+ ///
+ /// 判断控件对应的事件 删除事件
+ ///
+ /// 事件对应的控件名称
+ /// 事件名称
+ /// 控件
+ private void DeleteEventTime(string EventTxtName, string EventName, DateTimeInput tb, ref DrawGraph.FactEvents Inevent)
+ {
+ if (tb.Name.Equals(EventTxtName))
+ {
+ List list = _record.FactEventsList.Where(c => c.EventName == EventName).ToList();
+ if (list.Count <= 0) return;
+ Inevent = list[0];
+ if (EventName == "入室" || EventName == "出室")
+ {
+ //PublicMethod.ShowMessage("该事件为主要事件 不可删除 只可修改!!");
+ tb.Value = Inevent.EventBeginTime.Value;
+ Inevent = null;
+ return;
+ }
+
+ BFactEvents.DeleteById(Inevent.Id.ToString());
+ Inevent.clearAddObj(zgcAnaesRecord);
+ tb.CustomFormat = " ";
+ tb.Value = DateTime.Now;
+ tb.Tag = null;
+
+ if (Inevent != null && Inevent.EventName == "麻醉完成")
+ {
+ _record.AnesthesiaEndTime = null;
+ this.picAnesEnd.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束;
+ }
+ if (Inevent != null && Inevent.EventName == "拔管")
+ {
+ _record.OutCGTime = null;
+ this.picBG.BackgroundImage = global::AIMS.Properties.Resources.拔管;
+ }
+
+ 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));
+ }
+ }
+ }
+ ///
+ /// 判断控件对应的事件 插入事件
+ ///
+ /// 0插入 1更新
+ /// 事件对应的控件名称
+ /// 事件名称
+ /// 事件对应的对象时间
+ /// 控件
+ /// 事件时间
+ /// 事件对象
+ private void InsertOrUpdateEventTime(int state, string EventTxtName, string EventName, DateTimeInput tb, DateTime curTimeTemp, ref DrawGraph.FactEvents Inevent)
+ {
+ //if (tb.Name.Equals(EventTxtName))
+ //{
+ // string messing = "";
+ // bool timeistrue = true;
+ // timeistrue = FillAnasReordBill.IfTimeisTrue(true, _record, EventName, curTimeTemp, ref messing);
+ // if (_record.State != null && _record.State != "5")
+ // {
+ // if (messing != "")
+ // {
+ // MessageBox.Show(messing);
+ // }
+ // }
+ // else
+ // { timeistrue = true; }
+ // if (EventName == "出室" && _record.State == "手术中" && state == 0)
+ // {
+ // if (GetOpeState(ref messing) == false)
+ // {
+ // if (messing != "") MessageBox.Show(messing, "系统提示");
+ // //if (messing == "请填写手术不良事件!")
+ // // btnAdverseFactEvents_Click(null, null);
+ // return;
+ // }
+ // }
+ // if (timeistrue == false)
+ // {
+ // if (tb.Tag != null) tb.Value = DateTime.Parse(tb.Tag.ToString());
+ // return;
+ // }
+ // if (EventName == "出室" && curTimeTemp.ToString("yyyy-MM-dd HH:mm") == _record.lastPageBegin.ToString("yyyy-MM-dd HH:mm"))
+ // {
+ // curTimeTemp = _record.lastPageBegin;
+ // }
+ // if (state != 1)
+ // {
+ // Inevent = BFactEvents.Insert(PatientId, EventName, curTimeTemp, curTimeTemp, RecoverId);
+ // }
+ // else
+ // {
+ // updateEventTime(EventName, curTimeTemp, ref Inevent);
+ // }
+ // tb.Value = curTimeTemp;
+ // tb.Tag = curTimeTemp;
+
+ // if (Inevent != null && Inevent.EventName == "入室" && _record.InRoomTime != Inevent.EventBeginTime)
+ // {
+ // _record.InRoomTime = Inevent.EventBeginTime;
+ // this.picInRoom.BackgroundImage = global::AIMS.Properties.Resources.入手术室_select;
+ // }
+ // if (Inevent != null && Inevent.EventName == "麻醉开始" && _record.AnesthesiaBeginTime != Inevent.EventBeginTime)
+ // {
+ // _record.AnesthesiaBeginTime = Inevent.EventBeginTime;
+ // this.picAnesBegin.BackgroundImage = global::AIMS.Properties.Resources.麻醉开始_select;
+ // }
+ // if (Inevent != null && Inevent.EventName == "手术开始" && _record.OperationBeginTime != Inevent.EventBeginTime)
+ // {
+ // _record.OperationBeginTime = Inevent.EventBeginTime;
+ // this.picOpeBegin.BackgroundImage = global::AIMS.Properties.Resources.手术开始_select;
+ // }
+ // if (Inevent != null && Inevent.EventName == cmbCGType.Text && _record.InCGTime != Inevent.EventBeginTime)
+ // {
+ // _record.InCGType = cmbCGType.Text;
+ // _record.InCGTime = Inevent.EventBeginTime;
+ // this.picCG.BackgroundImage = global::AIMS.Properties.Resources.置管_select;
+ // }
+ // if (Inevent != null && Inevent.EventName == "拔管" && _record.OutCGTime != Inevent.EventBeginTime)
+ // {
+ // _record.OutCGTime = Inevent.EventBeginTime;
+ // this.picBG.BackgroundImage = global::AIMS.Properties.Resources.拔管_select;
+ // }
+ // if (Inevent != null && Inevent.EventName == "手术结束" && _record.OperationEndTime != Inevent.EventBeginTime)
+ // {
+ // _record.OperationEndTime = Inevent.EventBeginTime;
+ // this.picOpeEnd.BackgroundImage = global::AIMS.Properties.Resources.手术结束_select;
+ // }
+ // if (Inevent != null && Inevent.EventName == "麻醉完成" && _record.AnesthesiaEndTime != Inevent.EventBeginTime)
+ // {
+ // _record.AnesthesiaEndTime = Inevent.EventBeginTime;
+ // this.picAnesEnd.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束_select;
+ // }
+ // if (Inevent != null && Inevent.EventName == "出室" && _record.OutRoomTime != Inevent.EventBeginTime)
+ // {
+ // _record.OutRoomTime = Inevent.EventBeginTime;
+ // this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室_select;
+ // }
+ // if (Inevent != null)
+ // {
+ // BOperationRecord.Update("InRoomTime=@InRoom,OperationBeginTime=@OperationBegin,OperationEndTime=@OperationEnd,OutRoomTime=@OutRoom where Id=@id ", new AIMSModel.ParameterList("@InRoom", _record.InRoomTime.HasValue ? (object)_record.InRoomTime.Value : (object)DateTime.Now, "@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));
+ // }
+ //}
+ }
+ ///
+ /// 修改事件时间
+ ///
+ ///
+ ///
+ public void updateEventTime(string eventName, DateTime dt, ref DrawGraph.FactEvents elist)
+ {
+ List list = _record.FactEventsList.Where(c => c.EventName == eventName).ToList();
+ if (list.Count <= 0) return;
+ elist = list[0];
+ if (elist.EventBeginTime != dt)
+ {
+ elist.EventBeginTime = dt;
+ elist.EventEndTime = dt;
+ BFactEvents.Update("EventBeginTime=@EventBeginTime,EventEndTime=@EventEndTime where id=@id ", new AIMSModel.ParameterList("@EventBeginTime", elist.EventBeginTime, "@EventEndTime", elist.EventEndTime, "@id", elist.Id));
+ }
+ }
+ #endregion
+
+ #region 下方按钮
+ private void panel8_Scroll(object sender, ScrollEventArgs e)
+ {
+ templateManage.SetPYL();
+ }
+
+ private void plRefresh_Click(object sender, EventArgs e)
+ {
+ if (PatientId == 0) return;
+ //刷新到当前页
+ ReviewEvent();
+ }
+ private void btnUpPage_Click(object sender, EventArgs e)
+ {
+ if (PatientId == 0) return;
+ if (_record.pageCount == 1) return;
+ SetUpPageTime();
+ ReviewEvent();
+ }
+ private void btnNextPage_Click(object sender, EventArgs e)
+ {
+ if (PatientId == 0) return;
+ if (_record.pageCount == _record.currentPage) return;
+ SetNextPageTime();
+ ReviewEvent();
+ }
+
+ private void btnUpFsPage_Click(object sender, EventArgs e)
+ {
+ while (_record.pageCount != 1)
+ {
+ btnUpPage_Click(null, null);
+ }
+ }
+
+ private void btnNextEndPage_Click(object sender, EventArgs e)
+ {
+ while (_record.currentPage != _record.pageCount)
+ {
+ btnNextPage_Click(null, null);
+ }
+ }
+ public void SetUpPageTime()
+ {
+ if (_record.pageBegin < _record.sharpBegin) return;
+ _record.lastPageBegin = _record.pageBegin;
+ _record.pageBegin = _record.pageBegin.AddMinutes(-240);
+ _record.pageCount--;
+ if (_record.pageCount < 1) _record.pageCount = 1;
+ }
+ public void SetNextPageTime()
+ {
+ //当下一页的开始时间,小于当前最大时间
+ DateTime curTimeTemp = getOpeMaxTime(_record);
+ if (_record.lastPageBegin > curTimeTemp) return;
+ //先设置新页的开始时间
+ _record.pageBegin = _record.lastPageBegin;
+ _record.lastPageBegin = _record.pageBegin.AddMinutes(240);
+ _record.pageCount++;
+ if (_record.pageCount > _record.currentPage) _record.pageCount = _record.currentPage;
+ }
+
+ #endregion
+
+ #region 左侧按钮
+ private void btnSelectPatient_Click(object sender, EventArgs e)
+ {
+ OperationDoing.AnasRecordBill.UI.frmRecoverPatient frmSelectPatient = new AnasRecordBill.UI.frmRecoverPatient();
+ //frmSelectPatient.isMainOpen = true;
+ frmSelectPatient.FormClosed += new FormClosedEventHandler(frmSelectPatient_FormClosed);
+ frmSelectPatient.ShowDialog();
+
+ }
+ void frmSelectPatient_FormClosed(object sender, FormClosedEventArgs e)
+ {
+ LoadAnesRescue();
+ }
+
+
+ private System.Windows.Forms.Timer timerLoadAnesRescue;
+
+ public void LoadAnesRescue()
+ {
+ circularProgress1.IsRunning = true;
+ circularProgress1.Visible = true;
+ zgcAnaesRecord.Visible = false;
+ timerLoadAnesRescue = new System.Windows.Forms.Timer(components);
+ timerLoadAnesRescue.Enabled = true;//调试时设置为FALSE ,
+ timerLoadAnesRescue.Interval = 300;
+ timerLoadAnesRescue.Tick -= TimerLoadAnesRescue_Tick;
+ timerLoadAnesRescue.Tick += TimerLoadAnesRescue_Tick;
+ timerLoadAnesRescue.Start();
+ }
+ private void TimerLoadAnesRescue_Tick(object sender, EventArgs e)
+ {
+ //try
+ //{
+ // timerLoadAnesRescue.Dispose();
+ // if (PatientId > 0 && State == AIMSExtension.EditState.ADD)
+ // {
+ // try
+ // {
+ // HelperDB.DbHelperSQL.BeginTrans();
+ // _record = new OperationRecord();
+ // _record.OperationApplyId = ApplyId;
+ // _record.PatientId = PatientId;
+ // _record.RecoverId = RecoverId;
+ // _record.Id = BOperationRecord.AddTitleTime(PatientId, ApplyId, RecoverId, "InRoomTime", DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm:00")), NowRoom.Id.Value);
+ // BOperationRecord.UpdateState(PatientId, RecoverId, 1);
+ // HelperDB.DbHelperSQL.CommitTrans();
+ // //_record.currentPage = 1;
+ // ClearTimeText();
+ // btnSelectPatient.Enabled = false;
+ // DrawAnasReordBill.IniDrawAnasReordBill2(_record, zgcAnaesRecord, ref templateManage); //初始化麻醉记录单界
+ // StartTimer();
+ // }
+ // catch
+ // {
+ // HelperDB.DbHelperSQL.RollbackTrans();
+ // }
+ // }
+ // else if (PatientId > 0 && State == AIMSExtension.EditState.EDIT)
+ // {
+ // _record = new OperationRecord();
+ // btnSelectPatient.Enabled = false; //清空记录点并重新加载
+ // ClearTimeText();
+ // if (templateManage != null)
+ // {
+ // templateManage.ControlClear();
+ // }
+ // DrawAnasReordBill.IniDrawAnasReordBill2(_record, zgcAnaesRecord, ref templateManage); //初始化麻醉记录单界面
+ // StartTimer();
+ // }
+ // else if (PatientId > 0 && State == AIMSExtension.EditState.BROWSE)
+ // {
+ // _record = new OperationRecord();
+ // btnSelectPatient.Enabled = true;
+ // btnCancelOperation.Enabled = false;
+ // btnCancelIn.Enabled = false;
+ // btnTemplate.Enabled = false;
+ // ClearTimeText();
+ // if (templateManage != null)
+ // {
+ // templateManage.ControlClear();
+ // }
+ // DrawAnasReordBill.IniDrawAnasReordBill2(_record, zgcAnaesRecord, ref templateManage); //初始化麻醉记录单界面
+ // DisposeTimer();
+ // }
+ // plRefresh_Click(null, null);
+ // if (_record.MedicalRecord != null && _record.MedicalRecord != "")
+ // {
+ // btnOperationInfo.Enabled = false;
+ // btnOutputLiquids.Enabled = false;
+ // btnDrug.Enabled = false;
+ // btnAddEvents.Enabled = false;
+ // button6.Enabled = false;
+ // btnBloodGasAnalysis.Enabled = false;
+ // txtInRoom.Enabled = false;
+ // txtAnaesthesiaBegin.Enabled = false;
+ // txtOperationBegin.Enabled = false;
+ // txtOperationEnd.Enabled = false;
+ // txtAnaesthesiaEnd.Enabled = false;
+ // txtOutRoom.Enabled = false;
+ // txtCG.Enabled = false;
+ // txtBG.Enabled = false;
+ // isReadOnly = true;
+ // }
+ //}
+ //catch (Exception ex)
+ //{
+ // throw ex;
+ //}
+ //circularProgress1.IsRunning = false;
+ //circularProgress1.Visible = false;
+ //zgcAnaesRecord.Visible = true;
+
+ }
+
+ private void btnOperationInfo_Click(object sender, EventArgs e)
+ {
+ //if (PatientId != 0)
+ //{
+ // AIMS.OperationDoing.AnasRecordBill.UI.frmOperationInfoNew frmOperationInfo = new frmOperationInfoNew();
+ // frmOperationInfo._record = _record;
+ // frmOperationInfo.FormClosed += new FormClosedEventHandler(plRefresh_Click);
+ // frmOperationInfo.ShowDialog();
+ //}
+ //else
+ //{
+ // MessageBox.Show("请选择患者");
+ //}
+ }
+
+ private void btnDrug_Click(object sender, EventArgs e)
+ {
+ if (PatientId != 0)
+ {
+ PublicUI.UI.frmFactDrugNew frmFactDrug = new PublicUI.UI.frmFactDrugNew();
+ frmFactDrug._record = _record;
+ frmFactDrug.zgcAnaesRecord = zgcAnaesRecord;
+ frmFactDrug.DrugTypeId = 1; // 事件类型 1 麻醉单事件 2 麻醉恢复单
+ frmFactDrug.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed);
+ frmFactDrug.ShowDialog();
+ }
+ else
+ {
+ MessageBox.Show("请选择患者");
+ }
+ }
+ private void btnAddEvents_Click(object sender, EventArgs e)
+ {
+ if (PatientId != 0)
+ {
+ PublicUI.UI.frmFactEventsNew frmFactEventsNew = new PublicUI.UI.frmFactEventsNew();
+ frmFactEventsNew._record = _record;
+ frmFactEventsNew.zgcAnaesRecord = zgcAnaesRecord;
+ frmFactEventsNew.EventTypeId = 1; // 事件类型 1 麻醉单事件 2 麻醉恢复单
+ frmFactEventsNew.EventParam += ReferEventDrugs;
+ frmFactEventsNew.ShowDialog();
+ }
+ else
+ {
+ MessageBox.Show("请选择患者");
+ }
+ }
+ private void btnOutputLiquids_Click(object sender, EventArgs e)
+ {
+ if (PatientId != 0)
+ {
+ PublicUI.UI.frmFactOutputLiquidsNew frmFactOutputLiquids = new PublicUI.UI.frmFactOutputLiquidsNew();
+ frmFactOutputLiquids._record = _record;
+ frmFactOutputLiquids.OutputLiquidTypeId = 1; // 事件类型 1 麻醉单事件 2 麻醉恢复单
+ frmFactOutputLiquids.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed);
+ frmFactOutputLiquids.ShowDialog();
+ }
+ else
+ {
+ MessageBox.Show("请选择患者");
+ }
+ }
+ private void button6_Click(object sender, EventArgs e)
+ {
+ frmAnaseDataQualityRecord frmAnaseDataQuality = new frmAnaseDataQualityRecord();
+ frmAnaseDataQuality._record = _record;
+ frmAnaseDataQuality.ShowDialog();
+ }
+ void frmFactEventsNew_FormClosed(object sender, FormClosedEventArgs e)
+ {
+ plRefresh_Click(null, null);
+ }
+ private void btnCancelOperation_Click(object sender, EventArgs e)
+ {
+ if (PatientId == 0)
+ {
+ MessageBox.Show("请选择患者!");
+ return;
+ }
+ //if (BLL.FillAnasRecordBillData.GetDataCount(_record.Id.Value, PatientId, RecoverId) > 0)
+ //{
+ // MessageBox.Show("清除数据在进行作废手术操作!");
+ // return;
+ //}
+ //if (MessageBox.Show("确认要停止手术吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
+ //{
+ // try
+ // {
+
+ // HelperDB.DbHelperSQL.BeginTrans();
+ // BOperationApply.UpdateApplyState(ApplyId, 11);
+ // //BOperationRecord.DeleteOperationRecordData(PatientId, RecoverId);
+ // BOperationRecord.UpdateState(PatientId, 1, 5);
+ // HelperDB.DbHelperSQL.CommitTrans();
+
+ // //ClearData();
+ // this.Close();
+ // }
+ // catch
+ // {
+ // HelperDB.DbHelperSQL.RollbackTrans();
+ // }
+ //}
+ }
+ private void btnCancelIn_Click(object sender, EventArgs e)
+ {
+ if (PatientId == 0)
+ {
+ MessageBox.Show("请选择患者!");
+ return;
+ }
+ //if (BLL.FillAnasRecordBillData.GetDataCount(_record.Id.Value, PatientId, RecoverId) > 0)
+ //{
+ // MessageBox.Show("清除数据在进行取消转入操作!");
+ // return;
+ //}
+ //if (MessageBox.Show("确认要取消转入吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
+ //{
+ // try
+ // {
+ // HelperDB.DbHelperSQL.BeginTrans();
+ // BOperationApply.UpdateApplyState(ApplyId, 5);
+ // BOperationRecord.DeleteOperationRecordData(_record.Id.Value, PatientId, RecoverId);
+ // HelperDB.DbHelperSQL.CommitTrans();
+
+ // DisposeTimer();
+ // //ClearData();
+ // this.Close();
+ // }
+ // catch
+ // {
+ // HelperDB.DbHelperSQL.RollbackTrans();
+ // }
+ //}
+ }
+ private void btnTemplate_Click(object sender, EventArgs e)
+ {
+ if (PatientId == 0)
+ {
+ MessageBox.Show("请选择患者!");
+ return;
+ }
+ PublicUI.UI.frmTemplate frmTemplateObj = new PublicUI.UI.frmTemplate();
+ frmTemplateObj.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed);
+ frmTemplateObj.InRoomTime = _record.InRoomTime.Value;
+ frmTemplateObj.PatientId = PatientId;
+ frmTemplateObj.TypeId = 1;
+ frmTemplateObj.ShowDialog();
+
+ }
+ private void tsbExePlan_Click(object sender, EventArgs e)
+ {
+ if (PatientId == 0)
+ {
+ MessageBox.Show("请先选择患者!");
+ return;
+ }
+ if (_record.Applydiagnose == null || _record.Applydiagnose == "")
+ {
+ MessageBox.Show("请选择诊断后再填写文书!", "系统提示");
+ ModifyApply_Click(null, null);
+ return;
+ }
+ PatientRecord patient = PatientRecord.GetPatientRecord(PatientId);
+ frmDocument frmDocument = new frmDocument(patient);
+ frmDocument.StartPosition = FormStartPosition.CenterScreen;
+ frmDocument.WindowState = FormWindowState.Maximized;
+ frmDocument.ShowDialog();
+ }
+ void toolStripMenuItem2_Click(object sender, EventArgs e)
+ {
+ frmPhysiosSetting frm = new frmPhysiosSetting();
+ frm.ConfigParam += new frmPhysiosSetting.ConfigParamHandler(templateManage.frmInstance_ConfigParam);
+ frm._record = _record;
+ frm.ShowDialog();
+ }
+ private void reDrawAnalysis()
+ {
+ try
+ {
+ //图表的对象
+ TextPackObj janCePack = templateManage.GetPackObjectOTag("PhysioDataManage_TextPackObj_17");
+ LinePackObj H5pack = templateManage.GetPackObjectOTag("IconManage_LinePackObj_5");
+ RectangleFramePackObj IconPpack = templateManage.GetPackObjectOTag("IconManage_RectangleFramePackObj_2");
+ foreach (FactBloodGasAnalysis analysis in _record.FactBloodGasAnalysisList)
+ {
+ analysis.clearAddObj(zgcAnaesRecord);
+ if (analysis.RecordTime.Value >= _record.pageBegin && analysis.RecordTime.Value < _record.lastPageBegin)
+ {
+ analysis.setAnasArr(zgcAnaesRecord, H5pack.RealX, IconPpack.RealY, _record.pageBegin, _record.pageBegin.AddMinutes(240));
+ analysis.drawText(janCePack.RealEndX, janCePack.RealY);
+ }
+ }
+ if (_record.FactBloodGasAnalysisList != null && _record.FactBloodGasAnalysisList.Count > 0)
+ zgcAnaesRecord.Refresh();
+ }
+ catch (Exception exp)
+ {
+ PublicMethod.WriteLog(exp, "");
+ }
+ }
+
+ #endregion
+
+ #region 采集程序
+ public DateTime? LastMonitorDataTime = null;
+ private void timerGetCollectorData_Tick(bool isOpen)
+ {
+ if (State == AIMSExtension.EditState.BROWSE || _record.State != "手术中" || NowRoom == null || isReadOnly == true) return;
+ //if (!PublicMethod.RoleId.Operator.RoleRef.Name.Contains("麻醉") && PublicMethod.Operator.Id != _record.OperatorId
+ // && _record.OperatorId != 1 && PublicMethod.Operator.Name != "系统管理员") return;
+ if (_record.OutRoomTime != null && DateTime.Now >= _record.OutRoomTime) return;
+ DateTime dtTime = DateTime.Now;
+
+ double span = ((TimeSpan)(dtTime - _record.InRoomTime.Value)).TotalSeconds % 300;
+ if (span < 10 || span > 12)
+ return;
+ if (LastMonitorDataTime != null && LastMonitorDataTime.Value.ToString("yyyy-MM-dd HH:mm") == dtTime.ToString("yyyy-MM-dd HH:mm")) return;
+ if (LastMonitorDataTime != null && LastMonitorDataTime.Value > dtTime) return;
+ try
+ {
+ //bool isNowRoom = isOpeRoom();
+ //if (isNowRoom == false)
+ //{
+ // return;
+ //}
+
+ LastMonitorDataTime = dtTime;
+ DateTime InsertTime = Convert.ToDateTime(dtTime.ToString("yyyy-MM-dd HH:mm:00.000"));
+ int date = 0;
+
+ List physioDatas = new List();
+ foreach (PhysioDataConfig addPP in _record.addPhysioList)
+ {
+ string key = addPP.Name;
+ string value = addPP.Enname;
+ if (addPP.IsValid == false) continue;
+ //if (addPP.StopCollect == true) continue;
+ if (key == "机控呼吸") continue;
+ if (value == null || value == "") continue;
+
+ int minMinutes = -5;
+ DataTable dtPhysioData = BOperationRecord.getPhysioDataByTimeName(NowRoom.Ip, value, InsertTime.AddMinutes(minMinutes), InsertTime.AddSeconds(1));
+ if (dtPhysioData != null && dtPhysioData.Rows.Count > 0)
+ {
+ foreach (DataRow dr in dtPhysioData.Rows)
+ {
+ try
+ {
+ if (Double.Parse(dr["ParamValue"].ToString()) <= 1) continue;
+ if (key.Contains("压") && Double.Parse(dr["ParamValue"].ToString()) <= 30) continue;
+ if (isCgtime(addPP.Name, dtTime)) continue;
+ PhysioData pdTemp = new PhysioData();
+ pdTemp.RecordTime = dtTime;
+ pdTemp.Value = Double.Parse(dr["ParamValue"].ToString());
+ pdTemp.YAisx = addPP.YAisx;
+ pdTemp.PhysioDataConfigId = addPP.Id;
+ pdTemp.PatientId = _record.Id.Value;
+ physioDatas.Add(pdTemp);
+ continue;
+ }
+ catch (Exception)
+ {
+ continue;
+ }
+ }
+ }
+ }
+
+ //有有创清空无创
+ foreach (var pdTemp in physioDatas)
+ {
+ if (pdTemp.PhysioDataConfigId == 7)
+ {
+ foreach (var temp in physioDatas)
+ {
+ if (temp.PhysioDataConfigId == 5)
+ {
+ temp.Value = 0;
+ }
+ }
+ }
+ if (pdTemp.PhysioDataConfigId == 8)
+ {
+ foreach (var temp in physioDatas)
+ {
+ if (temp.PhysioDataConfigId == 6)
+ {
+ temp.Value = 0;
+ }
+ }
+ }
+ }
+
+ foreach (var pdTemp in physioDatas)
+ {
+ if (pdTemp.Value < 1) continue;
+ PhysioDataConfig addPP = _record.addPhysioList.Where(a => pdTemp.PhysioDataConfigId == a.Id).ToList()[0];
+ addPP.AddOrDelItem(pdTemp, 5);
+ date++;
+ }
+
+ if (dtTime > _record.lastPageBegin && ((TimeSpan)(dtTime - _record.lastPageBegin)).TotalHours < 24 && date > 0)
+ {
+ _record.currentPage++;
+ btnNextPage_Click(null, null);
+ }
+
+ }
+ catch (Exception)
+ {
+ //getPhysioData_Click(null, null);
+ }
+ }
+
+ public string szy;//舒张压
+ public string ssy;//收缩压
+ public DateTime? LastRespMonitorDataTime;
+ private void timerGetTextCollectorData_Tick(object sender, EventArgs e)
+ {
+ try
+ {
+ if (((TimeSpan)(DateTime.Now - _record.lastPageBegin)).TotalHours > 24 || NowRoom == null) return;
+ timerGetCollectorData_Tick(false);
+ ShowMonitorDataToRight();
+ }
+ catch (Exception)
+ {
+ //PublicMethod.WriteLog(ex);
+ }
+ }
+
+ private BackgroundWorker backgroundWorker1;
+ public void ShowMonitorDataToRight()
+ {
+ this.backgroundWorker1 = new BackgroundWorker();
+ this.backgroundWorker1.WorkerReportsProgress = true;
+ this.backgroundWorker1.WorkerSupportsCancellation = true;
+ this.backgroundWorker1.DoWork += new DoWorkEventHandler(this.backgroundWorker1_DoWork);
+ this.backgroundWorker1.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this.backgroundWorker1_RunWorkerCompleted);
+ this.backgroundWorker1.RunWorkerAsync();
+ }
+ private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
+ {
+ //BackgroundWorker worker = sender as BackgroundWorker;
+ //List lists = DeviceCacheData.Select(" IPAddress='" + NowRoom.Ip + "' and UpdateTime>='" + DateTime.Now.AddSeconds(-300) + "'");
+ //e.Result = lists;
+ }
+ private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
+ {
+ //List lists = e.Result as List;
+ //if (lists != null && lists.Count > 0)
+ //{
+ // DeviceCacheData deviceCacheData = lists[0];
+ // NowPhysioData nowPhysioData = JsonConvert.DeserializeObject(deviceCacheData.JsonData);
+ // foreach (PropertyInfo p in nowPhysioData.GetType().GetProperties())
+ // {
+ // bool iswar = false;
+ // foreach (PhysioDataConfig keyValuePair in _record.addPhysioList)
+ // {
+ // if (keyValuePair.Enname.ToUpper() == p.Name.ToUpper())
+ // {
+ // try
+ // {
+ // object paramValue = p.GetValue(nowPhysioData, null);
+ // if (paramValue != null && paramValue.ToString() != string.Empty && paramValue.ToString() != "NaN" && paramValue.ToString() != "NULL")
+ // {
+ // double value = Double.Parse(paramValue.ToString());
+ // value = Convert.ToInt32(value);
+ // if (value < keyValuePair.WarningLowLimit || value > keyValuePair.WarningHighLimit)
+ // {
+ // iswar = true;
+ // }
+
+ // if (keyValuePair.Name == "心率")
+ // {
+ // lblHR.Text = value <= 0 ? "- -" : value.ToString();
+ // if (iswar == true) lblHR.ForeColor = Color.Red; else lblHR.ForeColor = Color.Green;
+ // }
+ // if (keyValuePair.Name == "自主呼吸")
+ // {
+ // lblRESP.Text = value <= 0 ? "- -" : value.ToString();
+ // if (iswar == true) lblRESP.ForeColor = Color.Red; else lblRESP.ForeColor = Color.Green;
+ // }
+ // if (keyValuePair.Name == "氧饱和度")
+ // {
+ // lblSpo2.Text = value <= 0 ? "- -" : value.ToString();
+ // if (iswar == true) lblSpo2.ForeColor = Color.Red; else lblSpo2.ForeColor = Color.Green;
+ // }
+ // if (keyValuePair.Name == "脉率")
+ // {
+ // lblPR.Text = value <= 0 ? "- -" : value.ToString();
+ // if (iswar == true) lblPR.ForeColor = Color.Red; else lblPR.ForeColor = Color.Green;
+ // }
+ // if (keyValuePair.Name == "无创舒张压")
+ // {
+ // szy = value <= 0 ? "" : value.ToString();
+ // if (iswar == true) lblDia.ForeColor = Color.Red; else lblDia.ForeColor = Color.Green;
+ // }
+ // if (keyValuePair.Name == "无创收缩压")
+ // {
+ // ssy = value <= 0 ? "" : value.ToString();
+ // if (iswar == true) lblDia.ForeColor = Color.Red; else lblDia.ForeColor = Color.Green;
+ // }
+ // if (keyValuePair.Name == "有创舒张压")
+ // {
+ // szy = value <= 0 ? "" : value.ToString();
+ // if (iswar == true) lblDia.ForeColor = Color.Red; else lblDia.ForeColor = Color.Green;
+ // }
+ // if (keyValuePair.Name == "有创收缩压")
+ // {
+ // ssy = value <= 0 ? "" : value.ToString();
+ // if (iswar == true) lblDia.ForeColor = Color.Red; else lblDia.ForeColor = Color.Green;
+ // }
+ // break;
+ // }
+ // }
+ // catch (Exception)
+ // {
+ // //PublicMethod.WriteLog(ex);
+ // }
+ // }
+ // }
+ // }
+ // string szyssy = ssy + "/" + szy;
+ // lblDia.Text = szyssy == "/" ? "--/--" : szyssy;
+ //}
+ //else
+ //{
+ // lblHR.Text = "- -";
+ // lblRESP.Text = "- -";
+ // lblSpo2.Text = "- -";
+ // lblPR.Text = "- -";
+ // lblDia.Text = "--/--";
+ // lblHR.ForeColor = Color.Green;
+ // lblRESP.ForeColor = Color.Green;
+ // lblSpo2.ForeColor = Color.Green;
+ // lblPR.ForeColor = Color.Green;
+ // lblDia.ForeColor = Color.Green;
+ //}
+ }
+
+ public bool isCgtime(string key, DateTime time)
+ {
+ bool b = false;
+ try
+ {
+ if (key == "自主呼吸")
+ {
+ if (_record.InCGTime != null && _record.OutCGTime != null)
+ {
+ if (time > _record.InCGTime && time < _record.OutCGTime)
+ b = true;
+ }
+ if (_record.InCGTime != null && _record.OutCGTime == null)
+ {
+ if (time > _record.InCGTime)
+ b = true;
+ }
+ }
+ else
+ {
+ b = false;
+ }
+ }
+ catch (Exception ex)
+ {
+ PublicMethod.WriteLog(ex);
+ }
+ return b;
+ }
+
+ private void StartTimer()
+ {
+ if (timerGetTextCollectorData == null)
+ timerGetTextCollectorData = new System.Windows.Forms.Timer(components);
+ timerGetTextCollectorData.Enabled = true;//调试时设置为FALSE ,
+ timerGetTextCollectorData.Interval = 2000;
+ timerGetTextCollectorData.Tick -= new System.EventHandler(timerGetTextCollectorData_Tick);
+ timerGetTextCollectorData.Tick += new System.EventHandler(timerGetTextCollectorData_Tick);
+ timerGetTextCollectorData.Start();
+ }
+
+ private void DisposeTimer()
+ {
+ if (timerGetTextCollectorData != null)
+ {
+ timerGetTextCollectorData.Enabled = false;
+ timerGetTextCollectorData.Stop();
+ }
+ }
+
+ public void StarttimerGetTextCollectorData()
+ {
+ if (timerGetTextCollectorData == null) return;
+ timerGetTextCollectorData.Start();
+ }
+
+ #endregion
+
+ #region 鼠标右键
+
+ private void zgcAnaesRecord_KeyUp(object sender, KeyEventArgs e)
+ {
+ if (templateManage != null)
+ {
+ ZedGraphControl send = sender as ZedGraphControl;
+ templateManage.zedControl_KeyUp(send, e);
+ }
+ }
+
+ private bool zgcAnaesRecord_MouseDownEvent(ZedGraphControl sender, MouseEventArgs e)
+ {
+ if (templateManage != null && isReadOnly == false)
+ {
+ SelectWorkerValue.Hidden();
+ SelectDictValue.Hidden();
+ templateManage.zedControl_MouseDownEvent(sender, e);
+
+ }
+ return default(bool);
+ }
+
+ private bool zgcAnaesRecord_MouseUpEvent(ZedGraphControl sender, MouseEventArgs e)
+ {
+ if (templateManage != null && isReadOnly == false)
+ {
+ templateManage.zedControl_MouseUpEvent(sender, e);
+ }
+ return default(bool);
+ }
+
+ private bool zgcAnaesRecord_MouseMoveEvent(ZedGraphControl sender, MouseEventArgs e)
+ {
+ if (templateManage != null)
+ {
+ templateManage.zedControl_MouseMoveEvent(sender, e);
+ }
+ return default(bool);
+ }
+
+ private void zgcAnaesRecord_MouseDoubleClick(object sender, MouseEventArgs e)
+ {
+ if (templateManage != null && isReadOnly == false)
+ {
+ ZedGraphControl send = sender as ZedGraphControl;
+ templateManage.zedControl_MouseDoubleClick(send, e);
+ }
+ }
+ //public ucStripMenuItem menuItem = new ucStripMenuItem();
+ private void zgcAnaesRecord_ContextMenuBuilder(ZedGraphControl sender, ContextMenuStrip menuStrip, Point mousePt, ZedGraphControl.ContextMenuObjectState objState)
+ {
+
+ //if (PatientId == 0) return;
+ //menuStrip.Width = 1;
+ //menuItem.Visible = true;
+ //menuItem.Location = mousePt;
+ //menuItem.BringToFront();
+ //if (menuItem.isAdd == false)
+ //{
+ // menuItem.isAdd = true;
+ // zgcAnaesRecord.Controls.Add(menuItem);
+ //}
+
+ //添加自定义的新菜单
+ ToolStripMenuItem clearSelectCouve = new ToolStripMenuItem();
+ clearSelectCouve.Text = "清空选中曲线";
+ clearSelectCouve.Click += new EventHandler(clearSelectCouve_Click);
+ menuStrip.Items.Add(clearSelectCouve);
+
+ if (NowRoom != null)
+ {
+ ToolStripMenuItem getPhysioData = new ToolStripMenuItem();
+ getPhysioData.Text = "添加监护仪数据";
+ getPhysioData.Click += getPhysioData_Click;
+ menuStrip.Items.Add(getPhysioData);
+ }
+
+ ToolStripMenuItem ModifyApply = new ToolStripMenuItem();
+ ModifyApply.Text = "手术申请信息";
+ ModifyApply.Click += ModifyApply_Click;
+ menuStrip.Items.Add(ModifyApply);
+
+ ToolStripMenuItem btnSyatemPhysion = new ToolStripMenuItem();
+ btnSyatemPhysion.Name = "btnSyatemPhysion";
+ btnSyatemPhysion.Tag = "btnSyatemPhysion";
+ btnSyatemPhysion.Text = "修改痕迹";
+ btnSyatemPhysion.Click += new EventHandler(btnSyatemPhysion_Click);
+ menuStrip.Items.Add(btnSyatemPhysion);
+
+ }
+
+ ///
+ /// 生命体征修改痕迹
+ ///
+ ///
+ ///
+ private void btnSyatemPhysion_Click(object sender, EventArgs e)
+ {
+ if (PatientId == 0) return;
+ //frmPhysioDataUpdateLog Log = new frmPhysioDataUpdateLog();
+ //Log.OperationRecordId = _record.Id.Value;
+ //Log.ShowDialog();
+ }
+
+ private void getPhysioData_Click(object sender, EventArgs e)
+ {
+ if (State != AIMSExtension.EditState.BROWSE && _record.State == "手术中" && NowRoom != null && isReadOnly == false)
+ {
+ //没有IP判断
+ DataTable dtPhysioData = BOperationRecord.getPhysioDataByIp(NowRoom.Ip, _record.Id.Value, _record.InRoomTime.Value, getOpeMaxTime(_record), 5);
+
+ //同步未画点数据
+ DrawFillPhysioData(dtPhysioData);
+
+ templateManage.Bind("PhysioDataManage");
+ zgcAnaesRecord.Refresh();
+
+ }
+ }
+ private void DrawFillPhysioData(DataTable dtPhysioData)
+ {
+ if (dtPhysioData.Rows.Count <= 0)
+ return;
+ if (dtPhysioData != null && dtPhysioData.Rows.Count > 0)
+ {
+ foreach (var addPP in _record.addPhysioList)
+ {
+ if (addPP.IsValid == false) continue;
+ foreach (DataRow dr in dtPhysioData.Rows)
+ {
+ if (Double.Parse(dr["ParamValue"].ToString()) <= 0) continue;
+ if (dr["ParameterName"] != null && dr["ParameterName"].ToString() != "" && dr["ParameterName"].ToString().Equals(addPP.Id.ToString()))
+ {
+ PhysioData pdTemp = new PhysioData();
+ pdTemp.RecordTime = DateTime.Parse(dr["InsertTime"].ToString());
+ pdTemp.Value = Double.Parse(dr["ParamValue"].ToString());
+ pdTemp.YAisx = addPP.YAisx;
+ pdTemp.PhysioDataConfigId = addPP.Id;
+ pdTemp.PatientId = _record.Id.Value;
+ addPP.AddItemByTime(pdTemp);
+ }
+ }
+ }
+ }
+ }
+ private void clearSelectCouve_Click(Object sender, EventArgs e)
+ {
+ templateManage.ClearSelectCouve();
+ }
+ private void ModifyApply_Click(object sender, EventArgs e)
+ {
+ if (PatientId == 0) return;
+
+ frmOperationApplyDetail frm = new frmOperationApplyDetail();
+ frm.State = AIMSExtension.EditState.EDIT;
+ frm.EditApplyId = ApplyId;
+ frm.tsbExit.Visible = true;
+ frm.tsbCancel.Visible = false;
+ frm.FormClosed += (s, er) =>
+ {
+ ReviewEvent();
+ };
+ //frm.FormBorderStyle = FormBorderStyle.None; // 无边框
+ //frm.TopLevel = false;
+ //frm.Dock = DockStyle.Fill;
+ //panel8.Controls.Add(frm);
+ frm.Show();
+ frm.Focus();
+ frm.BringToFront();
+ }
+
+ #endregion
+
+ #region 公共方法
+ private void ReviewEvent()
+ {
+ //if (PatientId != 0)
+ //{
+ // templateManage.OpeRecord = FillAnasReordBill.getRecord(_record, PatientId, RecoverId);
+ // templateManage.BindOperationRecordValueAll(templateManage.OpeRecord);
+ // reDrawEvent();
+ // templateManage.Bind();
+ // reDrawAnalysis();
+ // zgcAnaesRecord.Refresh();
+ //}
+ }
+ private void DrawEvent()
+ {
+ reDrawEvent();
+ templateManage.Bind("IconManage");
+ templateManage.Bind("RemarkManage");
+ zgcAnaesRecord.Refresh();
+ }
+
+ private void reDrawEvent()
+ {
+ ClearTimeText();
+ if (_record.InRoomTime != null)
+ {
+ txtInRoom.CustomFormat = "MM-dd HH:mm";
+ txtInRoom.ButtonDropDown.Visible = false;
+ txtInRoom.Tag = _record.InRoomTime.Value;
+ txtInRoom.Value = _record.InRoomTime.Value;
+ this.picInRoom.BackgroundImage = global::AIMS.Properties.Resources.入手术室_select;
+ }
+ if (_record.AnesthesiaEndTime != null)
+ {
+ txtAnaesthesiaEnd.CustomFormat = "HH:mm";
+ txtAnaesthesiaEnd.ButtonDropDown.Visible = false;
+ txtAnaesthesiaEnd.Tag = _record.AnesthesiaEndTime.Value;
+ txtAnaesthesiaEnd.Value = _record.AnesthesiaEndTime.Value;
+ this.picAnesEnd.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束_select;
+ }
+ if (_record.OutRoomTime != null)
+ {
+ txtOutRoom.CustomFormat = "MM-dd HH:mm";
+ txtOutRoom.ButtonDropDown.Visible = false;
+ txtOutRoom.Tag = _record.OutRoomTime.Value;
+ txtOutRoom.Value = _record.OutRoomTime.Value;
+ this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室_select;
+ }
+
+ if (_record.OutRoomTime != null && _record.State == "手术中")
+ {
+ txtOutRoom.CustomFormat = "MM-dd HH:mm";
+ txtOutRoom.ButtonDropDown.Visible = false;
+ txtOutRoom.Tag = _record.OutRoomTime.Value;
+ txtOutRoom.Value = _record.OutRoomTime.Value;
+ EndOperationOutRoom();
+ }
+ }
+ public void ReferEventDrugs()
+ {
+ //if (IsReadOnly == false)
+ //BOperationRecord.Update(_record);
+ if (txtInRoom.Value != _record.InRoomTime)
+ {
+ _record.pageCount = 0;
+ ReviewEvent();
+ }
+ else
+ {
+ plRefresh_Click(null, null);
+ }
+ }
+ private void ClearTimeText()
+ {
+ txtInRoom.CustomFormat = " ";
+ txtAnaesthesiaEnd.CustomFormat = " ";
+ txtOutRoom.CustomFormat = " ";
+ txtBG.CustomFormat = " ";
+ txtInRoom.Tag = null;
+ txtAnaesthesiaEnd.Tag = null;
+ txtOutRoom.Tag = null;
+ txtBG.Tag = null;
+ txtInRoom.Text = "";
+ txtAnaesthesiaEnd.Text = "";
+ txtOutRoom.Text = "";
+ txtBG.Text = "";
+
+ this.picInRoom.BackgroundImage = global::AIMS.Properties.Resources.入手术室;
+ this.picBG.BackgroundImage = global::AIMS.Properties.Resources.拔管;
+ this.picAnesEnd.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束;
+ this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室;
+ }
+
+ public DateTime getOpeMaxTime(OperationRecord myOpeRecord)
+ {
+ try
+ {
+ DateTime dts = BOperationRecord.lastMaxOperationDate(myOpeRecord.Id.Value);
+ DateTime nowDate = DateTime.Now;
+ TimeSpan tsp = nowDate - dts;
+ if (tsp.TotalHours <= 12 && tsp.TotalDays <= 1 && dts < nowDate)//&& IsReview == false
+ {
+ dts = nowDate;
+ }
+ if (dts.ToString("yyyy-MM-dd HH:mm") == myOpeRecord.pageBegin.AddMinutes(240).ToString("yyyy-MM-dd HH:mm"))
+ {
+ dts = myOpeRecord.pageBegin.AddMinutes(240);
+ }
+ if (myOpeRecord.OutRoomTime != null)
+ {
+ DateTime outRoomTime = DateTime.Parse(myOpeRecord.OutRoomTime.ToString());
+ if (DateTime.Compare(dts, outRoomTime) > 0)
+ {
+ dts = outRoomTime;
+ }
+ }
+ return dts;
+ }
+ catch (Exception)
+ {
+ return DateTime.Now;
+ }
+ }
+ private bool GetOpeState(ref string message)
+ {
+ bool isTrue = true;
+ string anaesName = DBManage.GetDictionaryValuesById(_record.AnaesthesiaMethodId, "麻醉方式");
+
+ if (_record.AnaesthesiaMethodId == null || _record.AnaesthesiaMethodId.ToString().Trim() == "")
+ {
+ message = "请添加麻醉方式!";
+ isTrue = false;
+ }
+
+ if (anaesName.Contains("全身麻醉"))
+ {
+ if (_record.AnaseDataQualityRecordList == null || _record.AnaseDataQualityRecordList.Count <= 0)
+ {
+ message = "请填写麻醉质量质控指标";
+ isTrue = false;
+ }
+
+ if (_record.opeRecordInfo.StewardNumber == null || _record.opeRecordInfo.StewardNumber.ToString().Trim() == "")
+ {
+ message = "请与手术信息选择患者Steward评分!";
+ isTrue = false;
+ }
+ if (_record.opeRecordInfo.Whereabouts == null || _record.opeRecordInfo.Whereabouts.ToString().Trim() == "")
+ {
+ message = "请与手术信息选择患者去向!";
+ isTrue = false;
+ }
+
+ if (_record.AnesthesiaDoctor != null && _record.AnesthesiaDoctor.Trim() != "")
+ if (_record.ASALevel == null || _record.ASALevel == "")
+ {
+ message = "请添写ASA分级!";
+ isTrue = false;
+ }
+
+ if (_record.OperationDoctor == null || _record.OperationDoctor.Trim() == "")
+ {
+ message = "请添加术者!";
+ isTrue = false;
+ }
+
+ }
+
+ return isTrue;
+ }
+ private void EndOperationOutRoom()
+ {
+ //if (_record == null || _record.State != "手术中") return;
+ //try
+ //{
+ // //CloseOtherFrom();
+ // //保存持续加药未结束药品
+ // foreach (FactDrug temp in _record.FactDrugList)
+ // {
+ // if (temp.IsContinue == 1 && temp.DrugBeginTime == temp.DrugEndTime)
+ // {
+ // temp.DrugEndTime = _record.OutRoomTime.Value;
+ // temp.OperatorNo = PublicMethod.OperatorNo;
+ // temp.OperatorName = PublicMethod.OperatorName;
+ // temp.OperateDate = DateTime.Now;
+ // BFactDrug.Update(temp);
+ // }
+ // }
+ // //保存持续事件未结束事件
+ // foreach (FactEvents temp in _record.FactEventsList)
+ // {
+ // if (temp.IsContinue == 1 && temp.EventBeginTime == temp.EventEndTime)
+ // {
+ // temp.EventEndTime = _record.OutRoomTime;
+ // temp.OperatorNo = PublicMethod.OperatorNo;
+ // temp.OperatorName = PublicMethod.OperatorName;
+ // temp.OperateDate = DateTime.Now;
+ // BFactEvents.Update(temp);
+ // }
+ // }
+ // _record.State = "手术结束";
+ // BOperationApply.UpdateApplyState(ApplyId, 8);
+ // BOperationRecord.UpdateState(PatientId, 1, 2);
+
+ // //PublicMethod.WriteLog("结束转出手术: " + _record.Id);
+ // //TipBox.Hidden(true);
+ // State = AIMSExtension.EditState.BROWSE;
+ // btnCancelOperation.Enabled = false;
+ // btnCancelIn.Enabled = false;
+ // btnSelectPatient.Enabled = true;
+ // DisposeTimer();
+ // ReviewEvent();
+ //}
+ //catch (Exception exp)
+ //{
+ // PublicMethod.WriteLog(exp, "");
+ //}
+
+ }
+ #endregion
+
+ #region 右侧按钮
+ private void btnyldj_Click(object sender, EventArgs e)
+ {
+ //FormUseDrugsReport formUseDrugsReport = new FormUseDrugsReport(1);
+ //if (_record != null) formUseDrugsReport._record = _record;
+ //formUseDrugsReport.Show();
+ }
+
+ private void btnzsk_Click(object sender, EventArgs e)
+ {
+ //frmKnowledgeBase frm = new frmKnowledgeBase();
+ //frm.Show();
+ }
+
+ private void btndptz_Click(object sender, EventArgs e)
+ {
+ //frmNoticeLargeScreen fnc = new frmNoticeLargeScreen();
+ //if (_record != null)
+ //{
+ // fnc.lblName.Text = _record.Name;
+ // fnc.textBox2.Focus();
+ // fnc.groupBox1.Visible = false;
+ //}
+ //fnc.ShowDialog();
+ }
+
+ private void btnxldlx_Click(object sender, EventArgs e)
+ {
+ //frmHemodynamics frm = new frmHemodynamics();
+ //frm.Show();
+ }
+
+ private void btnsbwh_Click(object sender, EventArgs e)
+ {
+ //frmInstrumentRegistration frm = new frmInstrumentRegistration();
+ //frm.Show();
+ }
+
+ private void btnsjzx_Click(object sender, EventArgs e)
+ {
+ MessageBox.Show("未连接到服务器 请联系管理员或稍后再试!", "系统提示");
+ }
+ private void btnqxqd_Click(object sender, EventArgs e)
+ {
+ //if (PatientId != 0 && _record.Id != 0)
+ //{
+ // frmGoodsBillRecord frm = new frmGoodsBillRecord();
+ // frm._record = _record;
+ // frm.Show();
+ // frm.Focus();
+ // frm.BringToFront();
+ //}
+ }
+ private void btnChage_Click(object sender, EventArgs e)
+ {
+ //frmChargRecordPrint frmchargRecord = new frmChargRecordPrint(_record);
+ //frmchargRecord.TemplateType = "麻醉";
+ //frmchargRecord.Show();
+ //frmchargRecord.BringToFront();
+ }
+ private void btnBloodGasAnalysis_Click(object sender, EventArgs e)
+ {
+ //if (PatientId != 0)
+ //{
+ // frmBloodGasAnalysisNew frmFactBloodGasAnalysis = new frmBloodGasAnalysisNew();
+ // frmFactBloodGasAnalysis._record = _record;
+ // frmFactBloodGasAnalysis.zgcAnaesRecord = zgcAnaesRecord;
+ // frmFactBloodGasAnalysis.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed);
+ // frmFactBloodGasAnalysis.ShowDialog();
+ //}
+ //else
+ //{
+ // MessageBox.Show("请选择患者");
+ //}
+ }
+ #endregion
+
+ }
+}
diff --git a/AIMS/OperationDoing/AnasRecoverBill/UI/frmAnasRecoverBillNew.resx b/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBillNew.resx
similarity index 54%
rename from AIMS/OperationDoing/AnasRecoverBill/UI/frmAnasRecoverBillNew.resx
rename to AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBillNew.resx
index 7fb4bc4..35348c8 100644
--- a/AIMS/OperationDoing/AnasRecoverBill/UI/frmAnasRecoverBillNew.resx
+++ b/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBillNew.resx
@@ -117,315 +117,10 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
-
- 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
- eJEAAAAASUVORK5CYII=
-
-
-
-
- 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
- RU5ErkJggg==
-
-
-
-
- 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
- SUVORK5CYII=
-
-
62
+
AAABAAEAQEAAAAEAIAAoQgAAFgAAACgAAABAAAAAgAAAAAEAIAAAAAAAAEAAABMLAAATCwAAAAAAAAAA
diff --git a/AIMS/OperationDoing/AnasRecoverBill/UI/frmRecoverPatient.Designer.cs b/AIMS/OperationDoing/AnasRecoverBill/frmRecoverPatient.Designer.cs
similarity index 100%
rename from AIMS/OperationDoing/AnasRecoverBill/UI/frmRecoverPatient.Designer.cs
rename to AIMS/OperationDoing/AnasRecoverBill/frmRecoverPatient.Designer.cs
diff --git a/AIMS/OperationDoing/AnasRecoverBill/UI/frmRecoverPatient.cs b/AIMS/OperationDoing/AnasRecoverBill/frmRecoverPatient.cs
similarity index 87%
rename from AIMS/OperationDoing/AnasRecoverBill/UI/frmRecoverPatient.cs
rename to AIMS/OperationDoing/AnasRecoverBill/frmRecoverPatient.cs
index c4411d0..32fd2f4 100644
--- a/AIMS/OperationDoing/AnasRecoverBill/UI/frmRecoverPatient.cs
+++ b/AIMS/OperationDoing/AnasRecoverBill/frmRecoverPatient.cs
@@ -9,12 +9,13 @@ using System.Linq;
using System.Text;
using System.Windows.Forms;
using AIMSBLL;
+using AIMSModel;
namespace AIMS.OperationDoing.AnasRecordBill.UI
{
public partial class frmRecoverPatient : Form
{
- List rooms;
+ List rooms;
public frmRecoverPatient()
{
InitializeComponent();
@@ -30,7 +31,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
dgv.DataError += new DataGridViewDataErrorEventHandler(dgv_DataError);
- rooms = DataDictionary.BLL.OperationRoom.GetOperationRooms("IsValid=1 and Site='恢复室'");
+ rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='恢复室'");
FillDgv();
dgv.ClearSelection();
@@ -60,7 +61,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
private void FillDgv()
{
dgv.Rows.Clear();
- DataTable dt = OperationDoing.AnasRecordBill.BLL.SelectPatient.GetRecoverPatientDataTable
+ DataTable dt = SelectPatient.GetRecoverPatientDataTable
(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()));
foreach (DataRow dr in dt.Rows)
{
@@ -77,11 +78,11 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
}
panel3.Controls.Clear();
- DataTable dt2 = OperationDoing.AnasRecoverBill.BLL.SelectPatient.GetRecoverLockingPatientDataTable
+ DataTable dt2 = SelectPatient.GetRecoverLockingPatientDataTable
(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()));
int i = 0, j = 0;
- foreach (DataDictionary.Model.OperationRoom room in rooms)
+ foreach (OperationRoom room in rooms)
{
ucPatientRecoverCard uc = new ucPatientRecoverCard(room);
uc.InRoom += Uc_InRoom;
@@ -126,7 +127,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
{
if (uc.buttonX1.Text == "转入恢复")
{
- AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecoverBillNew frmAnasRecord = new frmAnasRecoverBillNew();
+ AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew frmAnasRecord = new AnasRecoverBill.UI.frmAnasRecoverBillNew();
frmAnasRecord.PatientId = SelPatientId;
frmAnasRecord.ApplyId = SelApplyId;
frmAnasRecord.RecoverId = RecoverId;
@@ -135,10 +136,10 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
try
{
HelperDB.DbHelperSQL.BeginTrans();
- OperationFront.BLL.OperationApply.UpdateApplyState(SelApplyId, 7);// 7 麻醉恢复中
+ BOperationApply.UpdateApplyState(SelApplyId, 7);// 7 麻醉恢复中
//增加入室事件
- DataDictionary.Model.Events EventsObj = DataDictionary.BLL.Events.GetModelByName("入室");
+ Events EventsObj = BEvents.GetModelByName("入室");
if (EventsObj.Name != null)
{
FactEvents FactEventsObj = new FactEvents();
@@ -164,7 +165,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
}
else
{
- AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecoverBillNew frmAnasRecord = new frmAnasRecoverBillNew();
+ AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew frmAnasRecord = new AnasRecoverBill.UI.frmAnasRecoverBillNew();
frmAnasRecord.PatientId = PatientId;
frmAnasRecord.ApplyId = applyId;
frmAnasRecord.NowRoom = AIMSBLL.BOperationRoom.SelectSingle(int.Parse(uc.Tag.ToString()));
diff --git a/AIMS/OperationDoing/AnasRecoverBill/UI/frmRecoverPatient.resx b/AIMS/OperationDoing/AnasRecoverBill/frmRecoverPatient.resx
similarity index 100%
rename from AIMS/OperationDoing/AnasRecoverBill/UI/frmRecoverPatient.resx
rename to AIMS/OperationDoing/AnasRecoverBill/frmRecoverPatient.resx
diff --git a/AIMS/OperationDoing/oldSystemCode/frmChargRecordPrint.cs b/AIMS/OperationDoing/oldSystemCode/frmChargRecordPrint.cs
index 1e23370..834ca49 100644
--- a/AIMS/OperationDoing/oldSystemCode/frmChargRecordPrint.cs
+++ b/AIMS/OperationDoing/oldSystemCode/frmChargRecordPrint.cs
@@ -1,13 +1,7 @@
-using AIMS.PublicUI.BLL;
-using DevComponents.DotNetBar;
+using AIMSModel;
using DrawGraph;
using System;
-using System.Collections.Generic;
-using System.Data;
-using System.Diagnostics;
using System.Drawing;
-using System.Drawing.Printing;
-using System.Linq;
using System.Windows.Forms;
namespace AIMS.OperationDoing.AnasRecordBill
diff --git a/AIMS/OperationDoing/oldSystemCode/frmGoodsBillRecord.cs b/AIMS/OperationDoing/oldSystemCode/frmGoodsBillRecord.cs
index ebc9b40..6687e41 100644
--- a/AIMS/OperationDoing/oldSystemCode/frmGoodsBillRecord.cs
+++ b/AIMS/OperationDoing/oldSystemCode/frmGoodsBillRecord.cs
@@ -839,7 +839,7 @@ namespace AIMS.OperationDoing.AnasRecordBill
SelectOperationDoctor = frmOperationDoctor.SelectPersonData;
foreach (int RowId in frmOperationDoctor.SelectPersonData)
{
- uTextCA1.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ uTextCA1.Text += BPerson.GetModel(RowId).Name + " ,";
}
int idxStart = uTextCA1.Text.LastIndexOf(" ,");
uTextCA1.Text = uTextCA1.Text.Substring(0, idxStart);
@@ -865,7 +865,7 @@ namespace AIMS.OperationDoing.AnasRecordBill
SelectOperationDoctor = frmOperationDoctor.SelectPersonData;
foreach (int RowId in frmOperationDoctor.SelectPersonData)
{
- uTextCA2.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ uTextCA2.Text += BPerson.GetModel(RowId).Name + " ,";
}
int idxStart = uTextCA2.Text.LastIndexOf(" ,");
uTextCA2.Text = uTextCA2.Text.Substring(0, idxStart);
@@ -892,7 +892,7 @@ namespace AIMS.OperationDoing.AnasRecordBill
SelectOperationDoctor = frmOperationDoctor.SelectPersonData;
foreach (int RowId in frmOperationDoctor.SelectPersonData)
{
- uTextCA4.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ uTextCA4.Text += BPerson.GetModel(RowId).Name + " ,";
}
int idxStart = uTextCA4.Text.LastIndexOf(" ,");
uTextCA4.Text = uTextCA4.Text.Substring(0, idxStart);
diff --git a/AIMS/OperationDoing/oldSystemCode/frmSelectPatientGoodsBill.cs b/AIMS/OperationDoing/oldSystemCode/frmSelectPatientGoodsBill.cs
index 5e75593..586ba08 100644
--- a/AIMS/OperationDoing/oldSystemCode/frmSelectPatientGoodsBill.cs
+++ b/AIMS/OperationDoing/oldSystemCode/frmSelectPatientGoodsBill.cs
@@ -1,4 +1,6 @@
using AIMS.OremrUserControl;
+using AIMSBLL;
+using AIMSModel;
using DrawGraph;
using System;
using System.Collections.Generic;
@@ -22,8 +24,8 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
private void frmSelectPatientGoodsBill_Load(object sender, EventArgs e)
{
- List rooms = DataDictionary.BLL.OperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'");
- rooms.Insert(0, new DataDictionary.Model.OperationRoom() { Id = -1, Name = "" });
+ List rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'");
+ rooms.Insert(0, new OperationRoom() { Id = -1, Name = "" });
cboRoom.DataSource = rooms;
cboRoom.DisplayMember = "Name";
cboRoom.ValueMember = "Id";
@@ -60,7 +62,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
panel2.Visible = false;
int i = 0, j = 0;
- DataTable dt2 = OperationDoing.AnasRecordBill.BLL.SelectPatient.GetRelieveLockingPatientDataTable
+ DataTable dt2 = SelectPatient.GetRelieveLockingPatientDataTable
(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoom.SelectedValue.ToString());
foreach (DataRow dr in dt2.Rows)
{
diff --git a/AIMS/OperationFront/BLL/ApplyAnaesthesiaMethod.cs b/AIMS/OperationFront/BLL/ApplyAnaesthesiaMethod.cs
deleted file mode 100644
index c4e07b1..0000000
--- a/AIMS/OperationFront/BLL/ApplyAnaesthesiaMethod.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationFront.BLL
-{
- public class ApplyAnaesthesiaMethod
- {
- public static void Add(Model.ApplyAnaesthesiaMethod ApplyAnaesthesiaMethodObj)
- {
- new DAL.ApplyAnaesthesiaMethodDB().Add(ApplyAnaesthesiaMethodObj);
- }
-
- public static void Delete(int OperationApplyId)
- {
- new DAL.ApplyAnaesthesiaMethodDB().Delete(OperationApplyId);
- }
- public static List GetApplyAnaesthesiaMethodList(int OperationApplyId)
- {
- return new DAL.ApplyAnaesthesiaMethodDB().GetApplyAnaesthesiaMethodList(OperationApplyId);
- }
- }
-}
diff --git a/AIMS/OperationFront/BLL/ApplyDiagnoseInfo.cs b/AIMS/OperationFront/BLL/ApplyDiagnoseInfo.cs
deleted file mode 100644
index eadd486..0000000
--- a/AIMS/OperationFront/BLL/ApplyDiagnoseInfo.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationFront.BLL
-{
- public class ApplyDiagnoseInfo
- {
- public static void Add(Model.ApplyDiagnoseInfo ApplyDiagnoseInfoObj)
- {
- new DAL.ApplyDiagnoseInfoDB().Add(ApplyDiagnoseInfoObj);
- }
-
- public static void Delete(int OperationApplyId)
- {
- new DAL.ApplyDiagnoseInfoDB().Delete(OperationApplyId);
- }
- public static List GetApplyDiagnoseIdList(int OperationApplyId)
- {
- return new DAL.ApplyDiagnoseInfoDB().GetApplyDiagnoseIdList(OperationApplyId);
- }
- }
-}
diff --git a/AIMS/OperationFront/BLL/ApplyOperationCutType..cs b/AIMS/OperationFront/BLL/ApplyOperationCutType..cs
deleted file mode 100644
index f7823bf..0000000
--- a/AIMS/OperationFront/BLL/ApplyOperationCutType..cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationFront.BLL
-{
- public class ApplyOperationCutType
- {
- public static void Add(Model.ApplyOperationCutType ApplyOperationCutTypeObj)
- {
- new DAL.ApplyOperationCutTypeDB().Add(ApplyOperationCutTypeObj);
- }
-
- public static void Delete(int OperationApplyId)
- {
- new DAL.ApplyOperationCutTypeDB().Delete(OperationApplyId);
- }
- public static List GetApplyOperationCutTypeIdList(int OperationApplyId)
- {
- return new DAL.ApplyOperationCutTypeDB().GetApplyOperationCutTypeIdList(OperationApplyId);
- }
- }
-}
diff --git a/AIMS/OperationFront/BLL/ApplyOperationInfo.cs b/AIMS/OperationFront/BLL/ApplyOperationInfo.cs
deleted file mode 100644
index cb460bd..0000000
--- a/AIMS/OperationFront/BLL/ApplyOperationInfo.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationFront.BLL
-{
- public class ApplyOperationInfo
- {
- public static void Add(Model.ApplyOperationInfo ApplyOperationInfoObj)
- {
- new DAL.ApplyOperationInfoDB().Add(ApplyOperationInfoObj);
- }
-
- public static void Delete(int OperationApplyId)
- {
- new DAL.ApplyOperationInfoDB().Delete(OperationApplyId);
- }
- public static List GetApplyOperationIdList(int OperationApplyId)
- {
- return new DAL.ApplyOperationInfoDB().GetApplyOperationIdList(OperationApplyId);
- }
- }
-}
diff --git a/AIMS/OperationFront/BLL/ApplyOperationPosition.cs b/AIMS/OperationFront/BLL/ApplyOperationPosition.cs
deleted file mode 100644
index 8f22084..0000000
--- a/AIMS/OperationFront/BLL/ApplyOperationPosition.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationFront.BLL
-{
- public class ApplyOperationPosition
- {
- public static void Add(Model.ApplyOperationPosition ApplyOperationPositionObj)
- {
- new DAL.ApplyOperationPositionDB().Add(ApplyOperationPositionObj);
- }
-
- public static void Delete(int OperationApplyId)
- {
- new DAL.ApplyOperationPositionDB().Delete(OperationApplyId);
- }
- public static List GetApplyOperationPositionIdList(int OperationApplyId)
- {
- return new DAL.ApplyOperationPositionDB().GetApplyOperationPositionIdList(OperationApplyId);
- }
- }
-}
diff --git a/AIMS/OperationFront/BLL/ApplyPersonDuty.cs b/AIMS/OperationFront/BLL/ApplyPersonDuty.cs
deleted file mode 100644
index 57bbfd2..0000000
--- a/AIMS/OperationFront/BLL/ApplyPersonDuty.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationFront.BLL
-{
- public class ApplyPersonDuty
- {
- public static int Add(Model.ApplyPersonDuty ApplyPersonDutyObj)
- {
- return new DAL.ApplyPersonDutyDB().Add(ApplyPersonDutyObj);
- }
-
- public static void Delete(int OperationApplyId, int PersonDutyId)
- {
- new DAL.ApplyPersonDutyDB().Delete(OperationApplyId, PersonDutyId);
- }
- public static List GetPersonIdList(int OperationApplyId, int PersonDutyId)
- {
- return new DAL.ApplyPersonDutyDB().GetPersonIdList(OperationApplyId, PersonDutyId);
- }
- public static DataTable GetPersonDataTable(int OperationApplyId)
- {
- return new DAL.ApplyPersonDutyDB().GetPersonDataTable(OperationApplyId);
- }
- }
-}
diff --git a/AIMS/OperationFront/BLL/OperationApply.cs b/AIMS/OperationFront/BLL/OperationApply.cs
deleted file mode 100644
index f044de5..0000000
--- a/AIMS/OperationFront/BLL/OperationApply.cs
+++ /dev/null
@@ -1,125 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-using HelperDB;
-
-namespace AIMS.OperationFront.BLL
-{
- public class OperationApply
- {
- public static void Add(Model.OperationApply OperationApplyObj)
- {
- new DAL.OperationApplyDB().Add(OperationApplyObj);
- }
-
- public static void Update(Model.OperationApply OperationApplyObj)
- {
- new DAL.OperationApplyDB().Update(OperationApplyObj);
- }
- public static void UpdatePlanOrder(int ApplyId, int PlanOrder)
- {
- new DAL.OperationApplyDB().UpdatePlanOrder(ApplyId, PlanOrder);
- }
- public static void UpdateOperationRoom(int ApplyId, int OperationRoomId, int MaxPlanOrder)
- {
- new DAL.OperationApplyDB().UpdateOperationRoom(ApplyId, OperationRoomId, MaxPlanOrder);
- }
- public static void UpdateASA(int ApplyId, string ASA, string HeartFunctionLevel, int IsFasting)
- {
- new DAL.OperationApplyDB().UpdateASA(ApplyId, ASA, HeartFunctionLevel, IsFasting);
- }
- public static void UpdateASA(int ApplyId, string ASA, string HeartFunctionLevel)
- {
- new DAL.OperationApplyDB().UpdateASA(ApplyId, ASA, HeartFunctionLevel);
- }
- public static int GetMaxPlanOrder(DateTime PlanOperationTime, int OperationRoomId)
- {
- return new DAL.OperationApplyDB().GetMaxPlanOrder(PlanOperationTime, OperationRoomId);
- }
-
- public static Model.OperationApply GetModel(int Id)
- {
- return new DAL.OperationApplyDB().GetModel(Id);
- }
-
- public static DataTable GetDataTable(string strWhere)
- {
- return new DAL.OperationApplyDB().GetDataTable(strWhere);
- }
- public static int GetOperationApplyMaxId()
- {
- return new DAL.OperationApplyDB().GetOperationApplyMaxId();
- }
- public static DataTable GetOperationFrontDataTableByPatientId(int PatientId)
- {
- return new DAL.OperationApplyDB().GetOperationFrontDataTableByPatientId(PatientId);
- }
- public static DataTable GetOperationFrontDataTable(string BegInData, string EndData)
- {
- return new DAL.OperationApplyDB().GetOperationFrontDataTable(BegInData, EndData);
- }
- public static DataTable GetOperationFrontDataTableByPlanOperationTime(string BegInData, string EndData)
- {
- return new DAL.OperationApplyDB().GetOperationFrontDataTableByPlanOperationTime(BegInData, EndData);
- }
- public static void UpdateVerifyTime(int ApplyId, string VerifyTime, string VerifyOperatorNo)
- {
- new DAL.OperationApplyDB().UpdateVerifyTime(ApplyId, VerifyTime, VerifyOperatorNo);
- }
- public static void UpdateApplyState(int ApplyId, int State)
- {
- new DAL.OperationApplyDB().UpdateApplyState(ApplyId, State);
- }
- public static void UpdateApplyRoom(int ApplyId, int room)
- {
- new DAL.OperationApplyDB().UpdateApplyRoom(ApplyId, room);
- }
- public static void UpdatePlanOperationTime(int ApplyId, string PlanOperationTime, int OperationRoomId, int State)
- {
- new DAL.OperationApplyDB().UpdatePlanOperationTime(ApplyId, PlanOperationTime, OperationRoomId, State);
- }
- public static void UpdateStopOperation(int ApplyId, string Content)
- {
- new DAL.OperationApplyDB().UpdateStopOperation(ApplyId, Content);
- }
- public static DataTable GetOperationFrontByApplyId(List ApplyIdList)
- {
- return new DAL.OperationApplyDB().GetOperationFrontByApplyId(ApplyIdList);
- }
- ///
- /// 排程手术小卡片数据集
- ///
- ///
- ///
- ///
- public static DataTable GetOperationRoomDataTable(DateTime PlanOperationTime, int OperationRoomId)
- {
- return new DAL.OperationApplyDB().GetOperationRoomDataTable(PlanOperationTime, OperationRoomId);
- }
- public static DataTable GetPlanOperationDataTable(DateTime PlanOperationTime, int OperationRoomId)
- {
- return new DAL.OperationApplyDB().GetPlanOperationDataTable(PlanOperationTime, OperationRoomId);
- }
-
- public static void UpdateOperationRoom(int ApplyId, int OperationRoomId)
- {
- new DAL.OperationApplyDB().UpdateOperationRoom(ApplyId, OperationRoomId);
- }
-
- public static DataTable SelectPlanedOpeByRoom(string whereSql)
- {
- try
- {
- string sql = @" SELECT * FROM V_OperationFront where " + whereSql + " ";
- return DBHelper.GetDataTable(sql);
- }
- catch (Exception)
- {
- return null;
- }
- }
-
- }
-}
diff --git a/AIMS/OperationFront/BLL/Oris_Patient.cs b/AIMS/OperationFront/BLL/Oris_Patient.cs
deleted file mode 100644
index 418fce9..0000000
--- a/AIMS/OperationFront/BLL/Oris_Patient.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationFront.BLL
-{
- public class Oris_Patient
- {
- public static void Add(Model.Oris_Patient Oris_PatientObj)
- {
- new DAL.Oris_PatientDB().Add(Oris_PatientObj);
- }
-
- public static void Update(Model.Oris_Patient Oris_PatientObj)
- {
- new DAL.Oris_PatientDB().Update(Oris_PatientObj);
- }
-
- public static Model.Oris_Patient GetModel(int Id)
- {
- return new DAL.Oris_PatientDB().GetModel(Id);
- }
-
- public static DataTable GetDataTable(string strWhere)
- {
- return new DAL.Oris_PatientDB().GetDataTable(strWhere);
- }
- public static int GetOris_PatientMaxId()
- {
- return new DAL.Oris_PatientDB().GetOris_PatientMaxId();
- }
- }
-}
diff --git a/AIMS/OperationFront/UI/ButtonCustomItem.cs b/AIMS/OperationFront/ButtonCustomItem.cs
similarity index 100%
rename from AIMS/OperationFront/UI/ButtonCustomItem.cs
rename to AIMS/OperationFront/ButtonCustomItem.cs
diff --git a/AIMS/OperationFront/DAL/ApplyAnaesthesiaMethodDB.cs b/AIMS/OperationFront/DAL/ApplyAnaesthesiaMethodDB.cs
deleted file mode 100644
index 730b34a..0000000
--- a/AIMS/OperationFront/DAL/ApplyAnaesthesiaMethodDB.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationFront.DAL
-{
- public class ApplyAnaesthesiaMethodDB
- {
- public void Add(Model.ApplyAnaesthesiaMethod ApplyAnaesthesiaMethodObj)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("insert into [ApplyAnaesthesiaMethod](");
- strSql.Append("OperationApplyId,AnaesthesiaMethodId,OperatorNo,OperatorName,OperateDate");
- strSql.Append(")");
- strSql.Append(" values (");
- strSql.Append(""+ApplyAnaesthesiaMethodObj.OperationApplyId+",");
- strSql.Append(""+ApplyAnaesthesiaMethodObj.AnaesthesiaMethodId+",");
- strSql.Append("'"+ApplyAnaesthesiaMethodObj.OperatorNo+"',");
- strSql.Append("'"+ApplyAnaesthesiaMethodObj.OperatorName+"',");
- strSql.Append("'"+ApplyAnaesthesiaMethodObj.OperateDate+"'");
- strSql.Append(")");
-
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void Delete(int OperationApplyId)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("delete ApplyAnaesthesiaMethod ");
- strSql.Append(" where OperationApplyId=" + OperationApplyId + "");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
- public List GetApplyAnaesthesiaMethodList(int OperationApplyId)
- {
- List ApplyAnaesthesiaMethodIdList = new List();
- string strSql = "SELECT AnaesthesiaMethodId FROM ApplyAnaesthesiaMethod WHERE OperationApplyId='" + OperationApplyId + "'";
-
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- ApplyAnaesthesiaMethodIdList.Add(int.Parse(dt.Rows[i]["AnaesthesiaMethodId"].ToString()));
-
- }
- return ApplyAnaesthesiaMethodIdList;
- }
- }
-}
diff --git a/AIMS/OperationFront/DAL/ApplyDiagnoseInfoDB.cs b/AIMS/OperationFront/DAL/ApplyDiagnoseInfoDB.cs
deleted file mode 100644
index 8732898..0000000
--- a/AIMS/OperationFront/DAL/ApplyDiagnoseInfoDB.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationFront.DAL
-{
- public class ApplyDiagnoseInfoDB
- {
- public void Add(Model.ApplyDiagnoseInfo ApplyDiagnoseInfoObj)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("insert into [ApplyDiagnoseInfo](");
- strSql.Append("OperationApplyId,DiagnoseId,OperatorNo,OperatorName,OperateDate");
- strSql.Append(")");
- strSql.Append(" values (");
- strSql.Append("" + ApplyDiagnoseInfoObj.OperationApplyId + ",");
- strSql.Append("" + ApplyDiagnoseInfoObj.DiagnoseId + ",");
- strSql.Append("'" + ApplyDiagnoseInfoObj.OperatorNo + "',");
- strSql.Append("'" + ApplyDiagnoseInfoObj.OperatorName + "',");
- strSql.Append("'" + ApplyDiagnoseInfoObj.OperateDate + "'");
- strSql.Append(")");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void Delete(int OperationApplyId)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("delete ApplyDiagnoseInfo ");
- strSql.Append(" where OperationApplyId=" + OperationApplyId + "");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
- public List GetApplyDiagnoseIdList(int OperationApplyId)
- {
- List DiagnoseIdList = new List();
- string strSql = "SELECT DiagnoseId FROM ApplyDiagnoseInfo WHERE OperationApplyId='" + OperationApplyId + "'";
-
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- DiagnoseIdList.Add(int.Parse(dt.Rows[i]["DiagnoseId"].ToString()));
-
- }
- return DiagnoseIdList;
- }
- }
-}
diff --git a/AIMS/OperationFront/DAL/ApplyOperationCutTypeDB.cs b/AIMS/OperationFront/DAL/ApplyOperationCutTypeDB.cs
deleted file mode 100644
index a600284..0000000
--- a/AIMS/OperationFront/DAL/ApplyOperationCutTypeDB.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationFront.DAL
-{
- public class ApplyOperationCutTypeDB
- {
- public void Add(Model.ApplyOperationCutType ApplyOperationCutTypeObj )
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("insert into [ApplyOperationCutType](");
- strSql.Append("OperationApplyId,OperationCutTypeId,OperatorNo,OperatorName,OperateDate");
- strSql.Append(")");
- strSql.Append(" values (");
- strSql.Append(""+ApplyOperationCutTypeObj.OperationApplyId+",");
- strSql.Append(""+ApplyOperationCutTypeObj.OperationCutTypeId+",");
- strSql.Append("'"+ApplyOperationCutTypeObj.OperatorNo+"',");
- strSql.Append("'"+ApplyOperationCutTypeObj.OperatorName+"',");
- strSql.Append("'"+ApplyOperationCutTypeObj.OperateDate+"'");
- strSql.Append(")");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
-
- }
-
- public void Delete(int OperationApplyId)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("delete ApplyOperationCutType ");
- strSql.Append(" where OperationApplyId=" + OperationApplyId + "");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public List GetApplyOperationCutTypeIdList(int OperationApplyId)
- {
- List ApplyOperationCutTypeIdList = new List();
- string strSql = "SELECT OperationCutTypeId FROM ApplyOperationCutType WHERE OperationApplyId='" + OperationApplyId + "'";
-
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql);
-
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- ApplyOperationCutTypeIdList.Add(int.Parse(dt.Rows[i]["OperationCutTypeId"].ToString()));
- }
- return ApplyOperationCutTypeIdList;
- }
- }
-}
diff --git a/AIMS/OperationFront/DAL/ApplyOperationInfoDB.cs b/AIMS/OperationFront/DAL/ApplyOperationInfoDB.cs
deleted file mode 100644
index 8456da2..0000000
--- a/AIMS/OperationFront/DAL/ApplyOperationInfoDB.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationFront.DAL
-{
- public class ApplyOperationInfoDB
- {
- public void Add(Model.ApplyOperationInfo ApplyOperationInfoObj)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("insert into [ApplyOperationInfo](");
- strSql.Append("OperationApplyId,OperationId,OperatorNo,OperatorName,OperateDate,OperationName,LeftRemark,RightRemark");
- strSql.Append(")");
- strSql.Append(" values (");
- strSql.Append(""+ApplyOperationInfoObj.OperationApplyId+",");
- strSql.Append(""+ApplyOperationInfoObj.OperationId+",");
- strSql.Append("'"+ApplyOperationInfoObj.OperatorNo+"',");
- strSql.Append("'"+ApplyOperationInfoObj.OperatorName+"',");
- strSql.Append("'"+ApplyOperationInfoObj.OperateDate+"',");
- strSql.Append("'"+ApplyOperationInfoObj.OperationName+"',");
- strSql.Append("'"+ApplyOperationInfoObj.LeftRemark+"',");
- strSql.Append("'"+ApplyOperationInfoObj.RightRemark+"'");
- strSql.Append(")");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void Delete(int OperationApplyId)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("delete ApplyOperationInfo ");
- strSql.Append(" where OperationApplyId=" + OperationApplyId + "");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public List GetApplyOperationIdList(int OperationApplyId)
- {
- List OperationIdList = new List();
- string strSql = "SELECT * FROM ApplyOperationInfo WHERE OperationApplyId='" + OperationApplyId + "'";
-
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- Model.ApplyOperationInfo info = new Model.ApplyOperationInfo();
- info.OperationId = int.Parse(dt.Rows[i]["OperationId"].ToString());
- info.OperationName = dt.Rows[i]["OperationName"].ToString();
- info.LeftRemark = dt.Rows[i]["LeftRemark"].ToString();
- info.RightRemark = dt.Rows[i]["RightRemark"].ToString();
- OperationIdList.Add(info);
- }
- return OperationIdList;
- }
-
- }
-}
diff --git a/AIMS/OperationFront/DAL/ApplyOperationPositionDB.cs b/AIMS/OperationFront/DAL/ApplyOperationPositionDB.cs
deleted file mode 100644
index e79dcd6..0000000
--- a/AIMS/OperationFront/DAL/ApplyOperationPositionDB.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationFront.DAL
-{
- public class ApplyOperationPositionDB
- {
- public void Add(Model.ApplyOperationPosition ApplyOperationPositionObj)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("insert into [ApplyOperationPosition](");
- strSql.Append("OperationApplyId,OperationPositionId,OperatorNo,OperatorName,OperateDate");
- strSql.Append(")");
- strSql.Append(" values (");
- strSql.Append(""+ApplyOperationPositionObj.OperationApplyId+",");
- strSql.Append(""+ApplyOperationPositionObj.OperationPositionId+",");
- strSql.Append("'"+ApplyOperationPositionObj.OperatorNo+"',");
- strSql.Append("'"+ApplyOperationPositionObj.OperatorName+"',");
- strSql.Append("'"+ApplyOperationPositionObj.OperateDate+"'");
- strSql.Append(")");
-
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void Delete(int OperationApplyId)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("delete ApplyOperationPosition ");
- strSql.Append(" where OperationApplyId=" + OperationApplyId + "");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
- public List GetApplyOperationPositionIdList(int OperationApplyId)
- {
- List ApplyOperationPositionIdList = new List();
- string strSql = "SELECT OperationPositionId FROM ApplyOperationPosition WHERE OperationApplyId='" + OperationApplyId + "'";
-
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql);
-
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- ApplyOperationPositionIdList.Add(int.Parse(dt.Rows[i]["OperationPositionId"].ToString()));
- }
- return ApplyOperationPositionIdList;
- }
- }
-}
diff --git a/AIMS/OperationFront/DAL/ApplyPersonDutyDB.cs b/AIMS/OperationFront/DAL/ApplyPersonDutyDB.cs
deleted file mode 100644
index 88b0db6..0000000
--- a/AIMS/OperationFront/DAL/ApplyPersonDutyDB.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationFront.DAL
-{
- public class ApplyPersonDutyDB
- {
- public int Add(Model.ApplyPersonDuty ApplyPersonDutyObj)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("insert into [ApplyPersonDuty](");
- strSql.Append("OperationApplyId,PersonDutyId,PersonId,OperatorNo,OperatorName,OperateDate");
- strSql.Append(")");
- strSql.Append(" values (");
- strSql.Append(""+ApplyPersonDutyObj.OperationApplyId+",");
- strSql.Append(""+ApplyPersonDutyObj.PersonDutyId+",");
- strSql.Append(""+ApplyPersonDutyObj.PersonId+",");
- strSql.Append("'"+ApplyPersonDutyObj.OperatorNo+"',");
- strSql.Append("'"+ApplyPersonDutyObj.OperatorName+"',");
- strSql.Append("'"+ApplyPersonDutyObj.OperateDate+"'");
- strSql.Append(")");
- return HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void Delete(int OperationApplyId, int PersonDutyId)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("delete ApplyPersonDuty ");
- strSql.Append(" where PersonDutyId ="+PersonDutyId+" and OperationApplyId=" + OperationApplyId + "");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
- public List GetPersonIdList(int OperationApplyId,int PersonDutyId)
- {
- List PersonIdList = new List();
- string strSql = "SELECT PersonId FROM ApplyPersonDuty WHERE OperationApplyId=" + OperationApplyId + " AND PersonDutyId =" + PersonDutyId + "";
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql);
- for (int i = 0; i < dt.Rows.Count; i++)
- {
- PersonIdList.Add(int.Parse(dt.Rows[i]["PersonId"].ToString()));
- }
-
- return PersonIdList;
- }
- public DataTable GetPersonDataTable(int OperationApplyId)
- {
- List PersonIdList = new List();
- string strSql = "SELECT PersonDutyId,PersonId FROM ApplyPersonDuty WHERE OperationApplyId=" + OperationApplyId + "";
- return HelperDB.DbHelperSQL.GetDataTable(strSql);
- }
- }
-}
diff --git a/AIMS/OperationFront/DAL/OperationApplyDB.cs b/AIMS/OperationFront/DAL/OperationApplyDB.cs
deleted file mode 100644
index 3b51f18..0000000
--- a/AIMS/OperationFront/DAL/OperationApplyDB.cs
+++ /dev/null
@@ -1,375 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-namespace AIMS.OperationFront.DAL
-{
- public class OperationApplyDB
- {
- public void Add(Model.OperationApply OperationApplyObj)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("insert into [OperationApply](");
- strSql.Append("Oris_PatientId,ApplyDepId,OperationType,OrderOperationTime,OperationTimeLeight,IsReturnOperation,IsPlanReturnOperation,IsNotPlanReturnOperation,DiagnoseRemark,OperationRemark,OperationLevelId,Contagion,Intern,Other,ApplyTime,ApplyOperatorNo,State,Remark,OperatorNo,OperatorName,OperateDate");
- strSql.Append(")");
- strSql.Append(" values (");
- strSql.Append(""+OperationApplyObj.Oris_PatientId+",");
- strSql.Append(""+OperationApplyObj.ApplyDepId+",");
- strSql.Append("'"+OperationApplyObj.OperationType+"',");
- strSql.Append("'"+OperationApplyObj.OrderOperationTime+"',");
- strSql.Append(""+OperationApplyObj.OperationTimeLeight+",");
- strSql.Append(""+OperationApplyObj.IsReturnOperation+",");
- strSql.Append(""+OperationApplyObj.IsPlanReturnOperation+",");
- strSql.Append(""+OperationApplyObj.IsNotPlanReturnOperation+",");
- strSql.Append("'"+OperationApplyObj.DiagnoseRemark+"',");
- strSql.Append("'"+OperationApplyObj.OperationRemark+"',");
- strSql.Append(""+OperationApplyObj.OperationLevelId+",");
- strSql.Append("'"+OperationApplyObj.Contagion+"',");
- strSql.Append("'"+OperationApplyObj.Intern+"',");
- strSql.Append("'"+OperationApplyObj.Other+"',");
- strSql.Append("'"+OperationApplyObj.ApplyTime+"',");
- strSql.Append("'"+OperationApplyObj.ApplyOperatorNo+"',");
- //strSql.Append("'"+OperationApplyObj.PlanOperationTime+"',");
- //strSql.Append(""+OperationApplyObj.OperationRoomId+",");
- strSql.Append(""+OperationApplyObj.State+",");
- strSql.Append("'"+OperationApplyObj.Remark+"',");
- strSql.Append("'"+OperationApplyObj.OperatorNo+"',");
- strSql.Append("'"+OperationApplyObj.OperatorName+"',");
- strSql.Append("'"+OperationApplyObj.OperateDate+"'");
- strSql.Append(")");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void Update(Model.OperationApply OperationApplyObj)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("update OperationApply set ");
- strSql.Append("ApplyDepId="+OperationApplyObj.ApplyDepId+",");
- strSql.Append("OperationType='"+OperationApplyObj.OperationType+"',");
- strSql.Append("OrderOperationTime='"+OperationApplyObj.OrderOperationTime+"',");
- if (OperationApplyObj.PlanOperationTime.Year != 1)
- strSql.Append("PlanOperationTime='" + OperationApplyObj.PlanOperationTime+"',");
- strSql.Append("OperationTimeLeight="+OperationApplyObj.OperationTimeLeight+",");
- strSql.Append("IsReturnOperation="+OperationApplyObj.IsReturnOperation+",");
- strSql.Append("IsPlanReturnOperation="+OperationApplyObj.IsPlanReturnOperation+",");
- strSql.Append("IsNotPlanReturnOperation="+OperationApplyObj.IsNotPlanReturnOperation+",");
- strSql.Append("DiagnoseRemark='"+OperationApplyObj.DiagnoseRemark+"',");
- strSql.Append("OperationRemark='"+OperationApplyObj.OperationRemark+"',");
- strSql.Append("OperationLevelId="+OperationApplyObj.OperationLevelId+",");
- strSql.Append("Contagion='"+OperationApplyObj.Contagion+"',");
- strSql.Append("Intern='"+OperationApplyObj.Intern+"',");
- strSql.Append("Other='"+OperationApplyObj.Other+"',");
- strSql.Append("Remark='"+OperationApplyObj.Remark+"',");
- strSql.Append("OperatorNo='"+OperationApplyObj.OperatorNo+"',");
- strSql.Append("OperatorName='"+OperationApplyObj.OperatorName+"',");
- strSql.Append("OperateDate='"+OperationApplyObj.OperateDate+"'");
- strSql.Append(" where Id="+OperationApplyObj.Id+" ");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void UpdateVerifyTime(int ApplyId, string VerifyTime, string VerifyOperatorNo)
- {
- string strSql = "UPDATE OperationApply SET VerifyTime ='" + VerifyTime +
- "',VerifyOperatorNo = '" + VerifyOperatorNo +
- "' ,[State] = 2 WHERE Id =" + ApplyId + "";
-
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void UpdateApplyState(int ApplyId, int State)
- {
- string strSql = "UPDATE OperationApply SET [State] = " + State + ","+
- "OperatorNo='"+AIMSExtension.PublicMethod.OperatorNo+"',"+
- "OperatorName='"+AIMSExtension.PublicMethod.OperatorName+"',"+
- "OperateDate='"+AIMSExtension.PublicMethod.SystemDate()+"' WHERE Id =" + ApplyId + "";
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void UpdateApplyRoom(int ApplyId, int room)
- {
- string strSql = "UPDATE OperationApply SET OperationRoomId = " + room + " WHERE Id =" + ApplyId + "";
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
- public void UpdatePlanOperationTime(int ApplyId, string PlanOperationTime, int OperationRoomId,int State)
- {
- //HHe 申请状态从 4改为3 3. 预排程 4 已排程
- string strSql = "UPDATE OperationApply SET PlanOperationTime ='" + PlanOperationTime + "'," +
- "OperationRoomId = '" + OperationRoomId +"',"+
- "[State] = " + State + " ," +
- "OperatorNo='"+AIMSExtension.PublicMethod.OperatorNo+"',"+
- "OperatorName='"+AIMSExtension.PublicMethod.OperatorName+"',"+
- "OperateDate='"+AIMSExtension.PublicMethod.SystemDate()+"' "+
- "WHERE Id =" + ApplyId + "";
-
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void UpdateStopOperation(int ApplyId, string Content)
- {
- string strSql = "UPDATE OperationApply SET [State] = 10 ," +
- "Remark ='" + Content + "'," +
- "OperatorNo='" + AIMSExtension.PublicMethod.OperatorNo + "'," +
- "OperatorName='" + AIMSExtension.PublicMethod.OperatorName + "'," +
- "OperateDate='" + AIMSExtension.PublicMethod.SystemDate() + "' WHERE Id =" + ApplyId + "";
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void UpdatePlanOrder(int ApplyId, int PlanOrder)
- {
- string strSql = "UPDATE OperationApply SET PlanOrder = " + PlanOrder + " WHERE Id='" + ApplyId + "'";
- HelperDB.DbHelperSQL.ExecNonQuery(strSql);
- }
-
- public void UpdateOperationRoom(int ApplyId, int OperationRoomId, int MaxPlanOrder)
- {
- string strSql = "UPDATE OperationApply SET OperationRoomId = " + OperationRoomId + ",PlanOrder=" + MaxPlanOrder + " WHERE Id=" + ApplyId + "";
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void UpdateASA(int ApplyId, string ASA, string HeartFunctionLevel, int IsFasting)
- {
- string strSql = "UPDATE OperationApply SET ASA ='" + ASA + "',HeartFunctionLevel='" + HeartFunctionLevel + "',IsFasting=" + IsFasting + " WHERE id='" + ApplyId + "'";
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void UpdateASA(int ApplyId, string ASA, string HeartFunctionLevel)
- {
- //string strSql = "UPDATE OperationApply SET ASA ='" + ASA + "',HeartFunctionLevel='" + HeartFunctionLevel + "' WHERE id='" + ApplyId + "'";
- StringBuilder sb = new StringBuilder();
- sb.Append(" UPDATE OperationApply SET");
- sb.Append(" ASA ='" + ASA + "'");
- sb.Append(" ,HeartFunctionLevel='" + HeartFunctionLevel + "'");
- sb.Append(" ,[State] = case [State] when 4 then 5 else [State] end");
- sb.Append(" WHERE id='" + ApplyId + "'");
- HelperDB.DbHelperSQL.ExecNonQuery(sb.ToString());
- }
-
- public int GetMaxPlanOrder(DateTime PlanOperationTime, int OperationRoomId)
- {
- string strSql = "SELECT ISNULL((Max(PlanOrder)),0) AS PlanOrder FROM V_OperationFront of1 WHERE of1.[State] in('已排程','预排程','已访视') AND of1.OrderOperationTime>='" + PlanOperationTime.ToString("yyyy-MM-dd 00:00:00") + "' AND of1.OrderOperationTime<'"
- + PlanOperationTime.AddDays(1).ToString("yyyy-MM-dd 00:00:00") + "' AND OperationRoomId=" + OperationRoomId + " ";
-
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- return int.Parse(dt.Rows[0]["PlanOrder"].ToString());
- }
-
- public Model.OperationApply GetModel(int Id)
- {
- Model.OperationApply OperationApplyObj = new Model.OperationApply();
- StringBuilder strSql=new StringBuilder();
- strSql.Append("select ");
- strSql.Append("Id,Oris_PatientId,ApplyDepId,OperationType,OrderOperationTime,OperationTimeLeight,IsReturnOperation,IsPlanReturnOperation,IsNotPlanReturnOperation,DiagnoseRemark,OperationRemark,OperationLevelId,Contagion,Intern,Other,ApplyTime,ApplyOperatorNo,PlanOperationTime,OperationRoomId,State,Remark,OperatorNo,OperatorName,OperateDate,PlanOrder ");
- strSql.Append(" from OperationApply ");
- strSql.Append(" where Id="+Id+"" );
- DataSet ds = HelperDB.DbHelperSQL.GetDataSet(strSql.ToString());
- if(ds.Tables[0].Rows.Count>0)
- {
- if(ds.Tables[0].Rows[0]["Id"].ToString()!="")
- {
- OperationApplyObj.Id = int.Parse(ds.Tables[0].Rows[0]["Id"].ToString());
- }
- if(ds.Tables[0].Rows[0]["Oris_PatientId"].ToString()!="")
- {
- OperationApplyObj.Oris_PatientId = int.Parse(ds.Tables[0].Rows[0]["Oris_PatientId"].ToString());
- }
- if(ds.Tables[0].Rows[0]["ApplyDepId"].ToString()!="")
- {
- OperationApplyObj.ApplyDepId = int.Parse(ds.Tables[0].Rows[0]["ApplyDepId"].ToString());
- }
- OperationApplyObj.OperationType = ds.Tables[0].Rows[0]["OperationType"].ToString();
- if(ds.Tables[0].Rows[0]["OrderOperationTime"].ToString()!="")
- {
- OperationApplyObj.OrderOperationTime = DateTime.Parse(ds.Tables[0].Rows[0]["OrderOperationTime"].ToString());
- }
- if(ds.Tables[0].Rows[0]["OperationTimeLeight"].ToString()!="")
- {
- OperationApplyObj.OperationTimeLeight = int.Parse(ds.Tables[0].Rows[0]["OperationTimeLeight"].ToString());
- }
- if(ds.Tables[0].Rows[0]["IsReturnOperation"].ToString()!="")
- {
- OperationApplyObj.IsReturnOperation = int.Parse(ds.Tables[0].Rows[0]["IsReturnOperation"].ToString());
- }
- if(ds.Tables[0].Rows[0]["IsPlanReturnOperation"].ToString()!="")
- {
- OperationApplyObj.IsPlanReturnOperation = int.Parse(ds.Tables[0].Rows[0]["IsPlanReturnOperation"].ToString());
- }
- if(ds.Tables[0].Rows[0]["IsNotPlanReturnOperation"].ToString()!="")
- {
- OperationApplyObj.IsNotPlanReturnOperation = int.Parse(ds.Tables[0].Rows[0]["IsNotPlanReturnOperation"].ToString());
- }
- OperationApplyObj.DiagnoseRemark = ds.Tables[0].Rows[0]["DiagnoseRemark"].ToString();
- OperationApplyObj.OperationRemark = ds.Tables[0].Rows[0]["OperationRemark"].ToString();
- if(ds.Tables[0].Rows[0]["OperationLevelId"].ToString()!="")
- {
- OperationApplyObj.OperationLevelId = int.Parse(ds.Tables[0].Rows[0]["OperationLevelId"].ToString());
- }
- OperationApplyObj.Contagion = ds.Tables[0].Rows[0]["Contagion"].ToString();
- OperationApplyObj.Intern = ds.Tables[0].Rows[0]["Intern"].ToString();
- OperationApplyObj.Other = ds.Tables[0].Rows[0]["Other"].ToString();
- if(ds.Tables[0].Rows[0]["ApplyTime"].ToString()!="")
- {
- OperationApplyObj.ApplyTime = DateTime.Parse(ds.Tables[0].Rows[0]["ApplyTime"].ToString());
- }
- OperationApplyObj.ApplyOperatorNo = ds.Tables[0].Rows[0]["ApplyOperatorNo"].ToString();
- if(ds.Tables[0].Rows[0]["PlanOperationTime"].ToString()!="")
- {
- OperationApplyObj.PlanOperationTime = DateTime.Parse(ds.Tables[0].Rows[0]["PlanOperationTime"].ToString());
- }
- if(ds.Tables[0].Rows[0]["OperationRoomId"].ToString()!="")
- {
- OperationApplyObj.OperationRoomId = int.Parse(ds.Tables[0].Rows[0]["OperationRoomId"].ToString());
- }
- if(ds.Tables[0].Rows[0]["State"].ToString()!="")
- {
- OperationApplyObj.State = int.Parse(ds.Tables[0].Rows[0]["State"].ToString());
- }
- OperationApplyObj.Remark = ds.Tables[0].Rows[0]["Remark"].ToString();
- OperationApplyObj.PlanOrder = ds.Tables[0].Rows[0]["PlanOrder"].ToString();
- OperationApplyObj.OperatorNo = ds.Tables[0].Rows[0]["OperatorNo"].ToString();
- OperationApplyObj.OperatorName = ds.Tables[0].Rows[0]["OperatorName"].ToString();
- if(ds.Tables[0].Rows[0]["OperateDate"].ToString()!="")
- {
- OperationApplyObj.OperateDate = DateTime.Parse(ds.Tables[0].Rows[0]["OperateDate"].ToString());
- }
- }
- return OperationApplyObj;
- }
-
- public DataTable GetDataTable(string strWhere)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("select [Id],[Oris_PatientId],[ApplyDepId],[OperationType],[OrderOperationTime],[OperationTimeLeight],[IsReturnOperation],[IsPlanReturnOperation],[IsNotPlanReturnOperation],[DiagnoseRemark],[OperationRemark],[OperationLevelId],[Contagion],[Intern],[Other],[ApplyTime],[ApplyTimeOperatorNo],[PlanOperationTime],[OperationRoomId],[State],of1.StateId,[Remark],[OperatorNo],[OperatorName],[OperateDate] ");
- strSql.Append(" FROM OperationApply ");
- if(strWhere.Trim()!="")
- {
-
- strSql.Append(" where "+strWhere);
- }
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public int GetOperationApplyMaxId()
- {
- string strSql = "SELECT (ISNULL(MAX(Id),0)) AS Id FROM OperationApply";
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql);
- return int.Parse(dt.Rows[0]["Id"].ToString());
- }
-
- public DataTable GetOperationFrontDataTableByPatientId(int PatientId)
- {
- string strSql = "SELECT of1.ApplyId, of1.MdrecNo, of1.ArchivesNo, of1.PatientName,of1.DepartmentId,of1.ApplyDepName, of1.PatientKind," +
- "of1.Sex, of1.BirthDay, of1.Height, of1.[Weight], of1.BloodType," +
- "of1.RHBloodType, of1.Illdistrict, of1.SickBed, of1.OperationType," +
- "of1.OrderOperationTime, of1.OperationTimeLeight, of1.[State],of1.StateId," +
- "of1.IsReturnOperation, of1.IsPlanReturnOperation, of1.ApplyDiagnoseInfoName," +
- "of1.DiagnoseRemark, of1.ApplyOperationInfoName, of1.OperationRemark," +
- "of1.OperationLevelName, of1.ApplyOperationCutTypeName," +
- "of1.ApplyOperationPositionName, of1.AnaesthesiaMethodName, of1.Contagion," +
- "of1.OperationDoctor, of1.Assistant1, of1.Assistant2, of1.Assistant3," +
- "of1.Intern, of1.Other, of1.ApplyTime, of1.ApplyOperatorName," +
- "of1.VerifyTime, of1.VerifyOperatorName," +
- "of1.PlanOperationTime, of1.OperationRoom, of1.AnesthesiaDoctor," +
- "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 " +
- "FROM V_OperationFront of1 WHERE of1.PatientId='" + PatientId + "'";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public DataTable GetOperationFrontDataTable(string BegInData,string EndData)
- {
- string strSql = "SELECT of1.ApplyId, of1.PatientId,of1.MdrecNo, of1.ArchivesNo, of1.PatientName,of1.ApplyDepName, of1.PatientKind," +
- "of1.Sex, of1.BirthDay, of1.Height, of1.[Weight], of1.BloodType,"+
- "of1.RHBloodType, of1.Illdistrict, of1.SickBed, of1.OperationType,"+
- "of1.OrderOperationTime, of1.OperationTimeLeight, of1.[State],of1.StateId," +
- "of1.IsReturnOperation, of1.IsPlanReturnOperation, of1.ApplyDiagnoseInfoName," +
- "of1.DiagnoseRemark, of1.ApplyOperationInfoName, of1.OperationRemark,"+
- "of1.OperationLevelName, of1.ApplyOperationCutTypeName,"+
- "of1.ApplyOperationPositionName, of1.AnaesthesiaMethodName, of1.Contagion,"+
- "of1.OperationDoctor,[dbo].[fun_getPY](of1.OperationDoctor) OperationDoctorcode, of1.Assistant1, of1.Assistant2, of1.Assistant3," +
- "of1.Intern, of1.Other, of1.ApplyTime, of1.ApplyOperatorName,"+
- "of1.VerifyTime, of1.VerifyOperatorName," +
- "of1.PlanOperationTime, of1.OperationRoom, of1.OperationRoomId, of1.AnesthesiaDoctor," +
- "of1.InstrumentNurse, of1.TourNurse, of1.AnesthesiaDoctorSucceed,"+
- "of1.InstrumentNurseSucceed, of1.TourNurseSucceed,of1.Remark,of1.PlanOrder " +
- "FROM V_OperationFront of1 WHERE of1.OrderOperationTime>='" + BegInData + "' and of1.OrderOperationTime<'" + EndData + "' order by OperationRoomId,PlanOrder asc";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public DataTable GetOperationFrontDataTableByPlanOperationTime(string BegInData, string EndData)
- {
- string strSql = "SELECT of1.ApplyId,of1.PatientId, of1.MdrecNo, of1.ArchivesNo, of1.PatientName,of1.ApplyDepName, of1.PatientKind," +
- "of1.Sex, of1.BirthDay, of1.Height, of1.[Weight], of1.BloodType," +
- "of1.RHBloodType, of1.Illdistrict, of1.SickBed, of1.OperationType," +
- "of1.OrderOperationTime, of1.OperationTimeLeight, of1.[State],of1.StateId," +
- "of1.IsReturnOperation, of1.IsPlanReturnOperation, of1.ApplyDiagnoseInfoName," +
- "of1.DiagnoseRemark, of1.ApplyOperationInfoName, of1.OperationRemark," +
- "of1.OperationLevelName, of1.ApplyOperationCutTypeName," +
- "of1.ApplyOperationPositionName, of1.AnaesthesiaMethodName, of1.Contagion," +
- "of1.OperationDoctor, of1.Assistant1, of1.Assistant2, of1.Assistant3," +
- "of1.Intern, of1.Other, of1.ApplyTime, of1.ApplyOperatorName," +
- "of1.VerifyTime, of1.VerifyOperatorName," +
- "of1.PlanOperationTime, of1.OperationRoom, of1.AnesthesiaDoctor," +
- "of1.InstrumentNurse, of1.TourNurse, of1.AnesthesiaDoctorSucceed," +
- "of1.InstrumentNurseSucceed, of1.TourNurseSucceed,of1.Remark,of1.PlanOrder " +
- "FROM V_OperationFront of1 WHERE of1.PlanOperationTime>='" + BegInData + "' and of1.PlanOperationTime<'" + EndData + "' order by OperationRoomId,PlanOrder asc";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public DataTable GetOperationFrontByApplyId(List ApplyIdList)
- {
- string Temp = "";
- for (int i = 0; i < ApplyIdList.Count; i++)
- {
- Temp += ApplyIdList[i].ToString() + ",";
- }
- Temp = Temp.Substring(0, Temp.LastIndexOf(","));
-
- string strSql = "SELECT of1.ApplyId, of1.MdrecNo, of1.ArchivesNo, of1.PatientName,of1.ApplyDepName, of1.PatientKind," +
- "of1.Sex, of1.BirthDay, of1.Height, of1.[Weight], of1.BloodType," +
- "of1.RHBloodType, of1.Illdistrict, of1.SickBed, of1.OperationType," +
- "of1.OrderOperationTime, of1.OperationTimeLeight, of1.[State],of1.StateId," +
- "of1.IsReturnOperation, of1.IsPlanReturnOperation, of1.ApplyDiagnoseInfoName," +
- "of1.DiagnoseRemark, of1.ApplyOperationInfoName, of1.OperationRemark," +
- "of1.OperationLevelName, of1.ApplyOperationCutTypeName," +
- "of1.ApplyOperationPositionName, of1.AnaesthesiaMethodName, of1.Contagion," +
- "of1.OperationDoctor, of1.Assistant1, of1.Assistant2, of1.Assistant3," +
- "of1.Intern, of1.Other, of1.ApplyTime, of1.ApplyOperatorName," +
- "of1.VerifyTime, of1.VerifyOperatorName," +
- "of1.PlanOperationTime, of1.OperationRoom, of1.AnesthesiaDoctor," +
- "of1.InstrumentNurse, of1.TourNurse, of1.AnesthesiaDoctorSucceed," +
- "of1.InstrumentNurseSucceed, of1.TourNurseSucceed ,of1.PlanOrder " +
- "FROM V_OperationFront of1 WHERE of1.ApplyId in (" + Temp + ")";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public DataTable GetOperationRoomDataTable(DateTime PlanOperationTime, int OperationRoomId)
- {
- string strSql = "SELECT of1.ApplyId, of1.ApplyDepName, of1.MdrecNo, of1.PatientName, of1.Sex, of1.BirthDay," +
- "of1.ApplyDiagnoseInfoName, of1.ApplyOperationInfoName, " +
- "of1.AnaesthesiaMethodName,of1.OperationDoctor ,of1.OperationType ,of1.PlanOrder " +
- "FROM V_OperationFront of1 WHERE of1.PlanOperationTime>='" + PlanOperationTime + "' AND of1.PlanOperationTime<'"
- + PlanOperationTime.AddDays(1) + "' AND OperationRoomId=" + OperationRoomId + " AND of1.[State]='已排程' order by OperationRoomId,PlanOrder asc";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public DataTable GetPlanOperationDataTable(DateTime PlanOperationTime, int OperationRoomId)
- {
- string strSql = "SELECT of1.ApplyId, of1.OperationType, of1.OrderOperationTime ,of1.PlanOperationTime, of1.ApplyDepName, of1.MdrecNo, of1.PatientName," +
- "of1.Sex, of1.BirthDay,of1.ApplyDiagnoseInfoName, of1.ApplyOperationInfoName," +
- "of1.AnaesthesiaMethodName ,of1.OperationDoctor, of1.Assistant1, of1.Assistant2, of1.Assistant3,of1.AnesthesiaDoctor," +
- "of1.InstrumentNurse, of1.TourNurse, of1.AnesthesiaDoctorSucceed," +
- "of1.InstrumentNurseSucceed, of1.TourNurseSucceed, " +
- "of1.[State], of1.StateId, of1.Remark ,of1.PlanOrder " +
- "FROM V_OperationFront of1 WHERE of1.PlanOperationTime>='"+PlanOperationTime+"' AND " +
- "of1.PlanOperationTime<'" + PlanOperationTime.AddDays(1) + "' AND of1.OperationRoomId=" + OperationRoomId + " AND of1.[State]='已排程' order by OperationRoomId,PlanOrder asc";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public void UpdateOperationRoom(int ApplyId, int OperationRoomId)
- {
- string strSql = "UPDATE OperationApply SET OperationRoomId =" + OperationRoomId + " WHERE Id=" + ApplyId + "";
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
- }
-}
diff --git a/AIMS/OperationFront/DAL/Oris_PatientDB.cs b/AIMS/OperationFront/DAL/Oris_PatientDB.cs
deleted file mode 100644
index d5b9ec4..0000000
--- a/AIMS/OperationFront/DAL/Oris_PatientDB.cs
+++ /dev/null
@@ -1,139 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Data;
-using System.Windows.Forms;
-namespace AIMS.OperationFront.DAL
-{
- public class Oris_PatientDB
- {
- public void Add(Model.Oris_Patient Oris_PatientObj)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("insert into [Oris_Patient](");
- strSql.Append("MdrecNo,ArchivesNo,Name,Sex,BirthDay,Height,Weight,DepId,Illdistrict,SickBed,BloodType,RHBloodType,PatientKind,InHosDate,IdentityCard,Contacts,ContactsPhone,OperatorNo,OperatorName,OperateDate");
- strSql.Append(")");
- strSql.Append(" values (");
- strSql.Append("'"+Oris_PatientObj.MdrecNo+"',");
- strSql.Append("'"+Oris_PatientObj.ArchivesNo+"',");
- strSql.Append("'"+Oris_PatientObj.Name+"',");
- strSql.Append("'"+Oris_PatientObj.Sex+"',");
- strSql.Append("'"+Oris_PatientObj.BirthDay+"',");
- strSql.Append("'"+Oris_PatientObj.Height+"',");
- strSql.Append("'"+Oris_PatientObj.Weight+"',");
- strSql.Append(""+Oris_PatientObj.DepId+",");
- strSql.Append("'"+Oris_PatientObj.Illdistrict+"',");
- strSql.Append("'"+Oris_PatientObj.SickBed+"',");
- strSql.Append("'"+Oris_PatientObj.BloodType+"',");
- strSql.Append("'"+Oris_PatientObj.RHBloodType+"',");
- strSql.Append("'"+Oris_PatientObj.PatientKind+"',");
- strSql.Append("'"+Oris_PatientObj.InHosDate+"',");
- strSql.Append("'"+Oris_PatientObj.IdentityCard+"',");
- strSql.Append("'"+Oris_PatientObj.Contacts+"',");
- strSql.Append("'"+Oris_PatientObj.ContactsPhone+"',");
- strSql.Append("'"+Oris_PatientObj.OperatorNo+"',");
- strSql.Append("'"+Oris_PatientObj.OperatorName+"',");
- strSql.Append("'"+Oris_PatientObj.OperateDate+"'");
- strSql.Append(")");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public void Update(Model.Oris_Patient Oris_PatientObj)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("update Oris_Patient set ");
- strSql.Append("MdrecNo='"+Oris_PatientObj.MdrecNo+"',");
- strSql.Append("ArchivesNo='"+Oris_PatientObj.ArchivesNo+"',");
- strSql.Append("Name='"+Oris_PatientObj.Name+"',");
- strSql.Append("Sex='"+Oris_PatientObj.Sex+"',");
- strSql.Append("BirthDay='"+Oris_PatientObj.BirthDay+"',");
- strSql.Append("Height='"+Oris_PatientObj.Height+"',");
- strSql.Append("Weight='"+Oris_PatientObj.Weight+"',");
- strSql.Append("DepId="+Oris_PatientObj.DepId+",");
- strSql.Append("Illdistrict='"+Oris_PatientObj.Illdistrict+"',");
- strSql.Append("SickBed='"+Oris_PatientObj.SickBed+"',");
- strSql.Append("BloodType='"+Oris_PatientObj.BloodType+"',");
- strSql.Append("RHBloodType='"+Oris_PatientObj.RHBloodType+"',");
- strSql.Append("PatientKind='"+Oris_PatientObj.PatientKind+"',");
- strSql.Append("InHosDate='"+Oris_PatientObj.InHosDate+"',");
- strSql.Append("IdentityCard='"+Oris_PatientObj.IdentityCard+"',");
- strSql.Append("Contacts='"+Oris_PatientObj.Contacts+"',");
- strSql.Append("ContactsPhone='"+Oris_PatientObj.ContactsPhone+"',");
- strSql.Append("OperatorNo='"+Oris_PatientObj.OperatorNo+"',");
- strSql.Append("OperatorName='"+Oris_PatientObj.OperatorName+"',");
- strSql.Append("OperateDate='"+Oris_PatientObj.OperateDate+"'");
- strSql.Append(" where Id="+Oris_PatientObj.Id+" ");
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public Model.Oris_Patient GetModel(int Id)
- {
- Model.Oris_Patient Oris_PatientObj = new Model.Oris_Patient();
- StringBuilder strSql=new StringBuilder();
- strSql.Append("select ");
- strSql.Append("Id,MdrecNo,ArchivesNo,Name,Sex,BirthDay,Height,Weight,DepId,Illdistrict,SickBed,BloodType,RHBloodType,PatientKind,InHosDate,IdentityCard,Contacts,ContactsPhone,OperatorNo,OperatorName,OperateDate ");
- strSql.Append(" from Oris_Patient ");
- strSql.Append(" where Id="+Id+"" );
- DataSet ds=HelperDB.DbHelperSQL.GetDataSet(strSql.ToString());
- if(ds.Tables[0].Rows.Count>0)
- {
- if(ds.Tables[0].Rows[0]["Id"].ToString()!="")
- {
- Oris_PatientObj.Id = int.Parse(ds.Tables[0].Rows[0]["Id"].ToString());
- }
- Oris_PatientObj.MdrecNo = ds.Tables[0].Rows[0]["MdrecNo"].ToString();
- Oris_PatientObj.ArchivesNo = ds.Tables[0].Rows[0]["ArchivesNo"].ToString();
- Oris_PatientObj.Name = ds.Tables[0].Rows[0]["Name"].ToString();
- Oris_PatientObj.Sex = ds.Tables[0].Rows[0]["Sex"].ToString();
- if(ds.Tables[0].Rows[0]["BirthDay"].ToString()!="")
- {
- Oris_PatientObj.BirthDay = DateTime.Parse(ds.Tables[0].Rows[0]["BirthDay"].ToString());
- }
- Oris_PatientObj.Height = ds.Tables[0].Rows[0]["Height"].ToString();
- Oris_PatientObj.Weight = ds.Tables[0].Rows[0]["Weight"].ToString();
- if(ds.Tables[0].Rows[0]["DepId"].ToString()!="")
- {
- Oris_PatientObj.DepId = int.Parse(ds.Tables[0].Rows[0]["DepId"].ToString());
- }
- Oris_PatientObj.Illdistrict = ds.Tables[0].Rows[0]["Illdistrict"].ToString();
- Oris_PatientObj.SickBed = ds.Tables[0].Rows[0]["SickBed"].ToString();
- Oris_PatientObj.BloodType = ds.Tables[0].Rows[0]["BloodType"].ToString();
- Oris_PatientObj.RHBloodType = ds.Tables[0].Rows[0]["RHBloodType"].ToString();
- Oris_PatientObj.PatientKind = ds.Tables[0].Rows[0]["PatientKind"].ToString();
- if(ds.Tables[0].Rows[0]["InHosDate"].ToString()!="")
- {
- Oris_PatientObj.InHosDate = DateTime.Parse(ds.Tables[0].Rows[0]["InHosDate"].ToString());
- }
- Oris_PatientObj.IdentityCard = ds.Tables[0].Rows[0]["IdentityCard"].ToString();
- Oris_PatientObj.Contacts = ds.Tables[0].Rows[0]["Contacts"].ToString();
- Oris_PatientObj.ContactsPhone = ds.Tables[0].Rows[0]["ContactsPhone"].ToString();
- Oris_PatientObj.OperatorNo = ds.Tables[0].Rows[0]["OperatorNo"].ToString();
- Oris_PatientObj.OperatorName = ds.Tables[0].Rows[0]["OperatorName"].ToString();
- if(ds.Tables[0].Rows[0]["OperateDate"].ToString()!="")
- {
- Oris_PatientObj.OperateDate = DateTime.Parse(ds.Tables[0].Rows[0]["OperateDate"].ToString());
- }
- }
- return Oris_PatientObj;
- }
-
- public DataTable GetDataTable(string strWhere)
- {
- StringBuilder strSql=new StringBuilder();
- strSql.Append("select [Id],[MdrecNo],[ArchivesNo],[Name],[Sex],[BirthDay],[Height],[Weight],[DepId],[Illdistrict],[SickBed],[BloodType],[RHBloodType],[PatientKind],[InHosDate],[IdentityCard],[Contacts],[ContactsPhone] ");
- strSql.Append(" FROM Oris_Patient ");
- if(strWhere.Trim()!="")
- {
- strSql.Append(" where "+strWhere);
- }
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
- public int GetOris_PatientMaxId()
- {
- string strSql = "SELECT (ISNULL(MAX(Id),0)) AS Id FROM Oris_Patient";
- DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql);
- return int.Parse(dt.Rows[0]["Id"].ToString());
- }
- }
-}
diff --git a/AIMS/OperationFront/UI/FrmScheduling2.cs b/AIMS/OperationFront/FrmScheduling2.cs
similarity index 98%
rename from AIMS/OperationFront/UI/FrmScheduling2.cs
rename to AIMS/OperationFront/FrmScheduling2.cs
index 5ae71d6..19c183b 100644
--- a/AIMS/OperationFront/UI/FrmScheduling2.cs
+++ b/AIMS/OperationFront/FrmScheduling2.cs
@@ -323,7 +323,7 @@ namespace AIMS.OperationFront.UI
dtDoctors = dbHelper.GetDataTable(sql);
/*读取手术麻醉科护士信息 WorkersType=1*/
- sql = "select w.Id, w.[Name], w.[HelpCode] HCode, w.[PersonOrder] Orderby from Person as w where w.PersonType='护士' and w.IsValid=1 order by w.[PersonOrder] ";
+ sql = "select w.Id, w.[Name], w.[HelpCode] HCode, w.[PersonOrder] Orderby from Person as w where w.PersonType='手术室护士' and w.IsValid=1 order by w.[PersonOrder] ";
dtNurses = dbHelper.GetDataTable(sql);
/*读取手术间信息*/
@@ -603,21 +603,22 @@ namespace AIMS.OperationFront.UI
}
else
{
- dv2.RowFilter = string.Format("ScheduleMonth={0} and WorkerId={1}", strMonth, workerId);
- if (dv2.Count > 0)
- {
- dr2["OperationRoom"] = getOperationRoomName((int)dv2[0]["OperationRoomId"]);
- dr2["Role"] = dv2[0]["nurseType"];
- dr2["BeginDate"] = dv2[0]["BeginTime"];
- dr2["EndDate"] = dv2[0]["EndTime"];
- }
- else
- {
- dr2["OperationRoom"] = getOperationRoomName(int.Parse(dr["OperationRoomId"].ToString()));
- dr2["Role"] = dr["NurseRole"].ToString();
- dr2["BeginDate"] = beginTime;
- dr2["EndDate"] = endTime;
- }
+ dr2["Role"] = "手术室护士";
+ //dv2.RowFilter = string.Format("ScheduleMonth={0} and WorkerId={1}", strMonth, workerId);
+ //if (dv2.Count > 0)
+ //{
+ // dr2["OperationRoom"] = getOperationRoomName((int)dv2[0]["OperationRoomId"]);
+ // dr2["Role"] = dv2[0]["nurseType"];
+ // dr2["BeginDate"] = dv2[0]["BeginTime"];
+ // dr2["EndDate"] = dv2[0]["EndTime"];
+ //}
+ //else
+ //{
+ // //dr2["OperationRoom"] = "";// getOperationRoomName(int.Parse(dr["OperationRoomId"].ToString()));
+ // //dr2["Role"] = dr["NurseRole"].ToString();
+ // //dr2["BeginDate"] = beginTime;
+ // //dr2["EndDate"] = endTime;
+ //}
}
dv1.RowFilter = string.Format("ScheduleMonth={0} and WorkerId={1}", strMonth, workerId);
int n = dv1.Count;
diff --git a/AIMS/OperationFront/UI/FrmScheduling2.designer.cs b/AIMS/OperationFront/FrmScheduling2.designer.cs
similarity index 100%
rename from AIMS/OperationFront/UI/FrmScheduling2.designer.cs
rename to AIMS/OperationFront/FrmScheduling2.designer.cs
diff --git a/AIMS/OperationFront/UI/FrmScheduling2.resx b/AIMS/OperationFront/FrmScheduling2.resx
similarity index 100%
rename from AIMS/OperationFront/UI/FrmScheduling2.resx
rename to AIMS/OperationFront/FrmScheduling2.resx
diff --git a/AIMS/OperationFront/UI/FrmScheduling2Option.cs b/AIMS/OperationFront/FrmScheduling2Option.cs
similarity index 100%
rename from AIMS/OperationFront/UI/FrmScheduling2Option.cs
rename to AIMS/OperationFront/FrmScheduling2Option.cs
diff --git a/AIMS/OperationFront/UI/FrmScheduling2Option.designer.cs b/AIMS/OperationFront/FrmScheduling2Option.designer.cs
similarity index 100%
rename from AIMS/OperationFront/UI/FrmScheduling2Option.designer.cs
rename to AIMS/OperationFront/FrmScheduling2Option.designer.cs
diff --git a/AIMS/OperationFront/UI/FrmScheduling2Option.resx b/AIMS/OperationFront/FrmScheduling2Option.resx
similarity index 100%
rename from AIMS/OperationFront/UI/FrmScheduling2Option.resx
rename to AIMS/OperationFront/FrmScheduling2Option.resx
diff --git a/AIMS/OperationFront/UI/GlossyCustomItem.cs b/AIMS/OperationFront/GlossyCustomItem.cs
similarity index 100%
rename from AIMS/OperationFront/UI/GlossyCustomItem.cs
rename to AIMS/OperationFront/GlossyCustomItem.cs
diff --git a/AIMS/OperationFront/Model/ApplyAnaesthesiaMethod.cs b/AIMS/OperationFront/Model/ApplyAnaesthesiaMethod.cs
deleted file mode 100644
index a45a41c..0000000
--- a/AIMS/OperationFront/Model/ApplyAnaesthesiaMethod.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationFront.Model
-{
- public class ApplyAnaesthesiaMethod
- {
- private int _id;
- private int _operationapplyid;
- private int _anaesthesiamethodid;
- private string _operatorno;
- private string _operatorname;
- private DateTime _operatedate;
- ///
- ///
- ///
- public int Id
- {
- set { _id = value; }
- get { return _id; }
- }
- ///
- ///
- ///
- public int OperationApplyId
- {
- set { _operationapplyid = value; }
- get { return _operationapplyid; }
- }
- ///
- ///
- ///
- public int AnaesthesiaMethodId
- {
- set { _anaesthesiamethodid = value; }
- get { return _anaesthesiamethodid; }
- }
- ///
- ///
- ///
- public string OperatorNo
- {
- set { _operatorno = value; }
- get { return _operatorno; }
- }
- ///
- ///
- ///
- public string OperatorName
- {
- set { _operatorname = value; }
- get { return _operatorname; }
- }
- ///
- ///
- ///
- public DateTime OperateDate
- {
- set { _operatedate = value; }
- get { return _operatedate; }
- }
- }
-}
diff --git a/AIMS/OperationFront/Model/ApplyDiagnoseInfo.cs b/AIMS/OperationFront/Model/ApplyDiagnoseInfo.cs
deleted file mode 100644
index ebee0f7..0000000
--- a/AIMS/OperationFront/Model/ApplyDiagnoseInfo.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationFront.Model
-{
- public class ApplyDiagnoseInfo
- {
- private int _id;
- private int _operationapplyid;
- private int _diagnoseid;
- private string _operatorno;
- private string _operatorname;
- private DateTime _operatedate;
- ///
- ///
- ///
- public int Id
- {
- set { _id = value; }
- get { return _id; }
- }
- ///
- ///
- ///
- public int OperationApplyId
- {
- set { _operationapplyid = value; }
- get { return _operationapplyid; }
- }
- ///
- ///
- ///
- public int DiagnoseId
- {
- set { _diagnoseid = value; }
- get { return _diagnoseid; }
- }
- ///
- ///
- ///
- public string OperatorNo
- {
- set { _operatorno = value; }
- get { return _operatorno; }
- }
- ///
- ///
- ///
- public string OperatorName
- {
- set { _operatorname = value; }
- get { return _operatorname; }
- }
- ///
- ///
- ///
- public DateTime OperateDate
- {
- set { _operatedate = value; }
- get { return _operatedate; }
- }
- }
-}
diff --git a/AIMS/OperationFront/Model/ApplyOperationCutType.cs b/AIMS/OperationFront/Model/ApplyOperationCutType.cs
deleted file mode 100644
index adb8322..0000000
--- a/AIMS/OperationFront/Model/ApplyOperationCutType.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationFront.Model
-{
- public class ApplyOperationCutType
- {
- private int _id;
- private int _operationapplyid;
- private int _operationcuttypeid;
- private string _operatorno;
- private string _operatorname;
- private DateTime _operatedate;
- ///
- ///
- ///
- public int Id
- {
- set { _id = value; }
- get { return _id; }
- }
- ///
- ///
- ///
- public int OperationApplyId
- {
- set { _operationapplyid = value; }
- get { return _operationapplyid; }
- }
- ///
- ///
- ///
- public int OperationCutTypeId
- {
- set { _operationcuttypeid = value; }
- get { return _operationcuttypeid; }
- }
- ///
- ///
- ///
- public string OperatorNo
- {
- set { _operatorno = value; }
- get { return _operatorno; }
- }
- ///
- ///
- ///
- public string OperatorName
- {
- set { _operatorname = value; }
- get { return _operatorname; }
- }
- ///
- ///
- ///
- public DateTime OperateDate
- {
- set { _operatedate = value; }
- get { return _operatedate; }
- }
- }
-}
diff --git a/AIMS/OperationFront/Model/ApplyOperationInfo.cs b/AIMS/OperationFront/Model/ApplyOperationInfo.cs
deleted file mode 100644
index 7f08abe..0000000
--- a/AIMS/OperationFront/Model/ApplyOperationInfo.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationFront.Model
-{
- public class ApplyOperationInfo
- {
- private int _id;
- private int _operationapplyid;
- private int _operationid;
- private string _operatorno;
- private string _operatorname;
- private DateTime _operatedate;
- private string operationName;
- private string leftRemark;
- private string rightRemark;
- ///
- ///
- ///
- public int Id
- {
- set { _id = value; }
- get { return _id; }
- }
- ///
- ///
- ///
- public int OperationApplyId
- {
- set { _operationapplyid = value; }
- get { return _operationapplyid; }
- }
- ///
- ///
- ///
- public int OperationId
- {
- set { _operationid = value; }
- get { return _operationid; }
- }
- ///
- ///
- ///
- public string OperatorNo
- {
- set { _operatorno = value; }
- get { return _operatorno; }
- }
- ///
- ///
- ///
- public string OperatorName
- {
- set { _operatorname = value; }
- get { return _operatorname; }
- }
- ///
- ///
- ///
- public DateTime OperateDate
- {
- set { _operatedate = value; }
- get { return _operatedate; }
- }
- ///
- ///
- ///
- public string OperationName
- {
- get { return operationName; }
- set { operationName = value; }
- }
- ///
- ///
- ///
- public string LeftRemark
- {
- get { return leftRemark; }
- set { leftRemark = value; }
- }
- ///
- ///
- ///
- public string RightRemark
- {
- get { return rightRemark; }
- set { rightRemark = value; }
- }
- }
-}
diff --git a/AIMS/OperationFront/Model/ApplyOperationPosition.cs b/AIMS/OperationFront/Model/ApplyOperationPosition.cs
deleted file mode 100644
index 353b262..0000000
--- a/AIMS/OperationFront/Model/ApplyOperationPosition.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationFront.Model
-{
- public class ApplyOperationPosition
- {
- private int _id;
- private int _operationapplyid;
- private int _operationpositionid;
- private string _operatorno;
- private string _operatorname;
- private DateTime _operatedate;
- ///
- ///
- ///
- public int Id
- {
- set { _id = value; }
- get { return _id; }
- }
- ///
- ///
- ///
- public int OperationApplyId
- {
- set { _operationapplyid = value; }
- get { return _operationapplyid; }
- }
- ///
- ///
- ///
- public int OperationPositionId
- {
- set { _operationpositionid = value; }
- get { return _operationpositionid; }
- }
- ///
- ///
- ///
- public string OperatorNo
- {
- set { _operatorno = value; }
- get { return _operatorno; }
- }
- ///
- ///
- ///
- public string OperatorName
- {
- set { _operatorname = value; }
- get { return _operatorname; }
- }
- ///
- ///
- ///
- public DateTime OperateDate
- {
- set { _operatedate = value; }
- get { return _operatedate; }
- }
- }
-}
diff --git a/AIMS/OperationFront/Model/ApplyPersonDuty.cs b/AIMS/OperationFront/Model/ApplyPersonDuty.cs
deleted file mode 100644
index 570af97..0000000
--- a/AIMS/OperationFront/Model/ApplyPersonDuty.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationFront.Model
-{
- public class ApplyPersonDuty
- {
- private int _id;
- private int _operationapplyid;
- private int _persondutyid;
- private int _personid;
- private string _operatorno;
- private string _operatorname;
- private DateTime _operatedate;
- ///
- ///
- ///
- public int Id
- {
- set { _id = value; }
- get { return _id; }
- }
- ///
- ///
- ///
- public int OperationApplyId
- {
- set { _operationapplyid = value; }
- get { return _operationapplyid; }
- }
- ///
- ///
- ///
- public int PersonDutyId
- {
- set { _persondutyid = value; }
- get { return _persondutyid; }
- }
- ///
- ///
- ///
- public int PersonId
- {
- set { _personid = value; }
- get { return _personid; }
- }
- ///
- ///
- ///
- public string OperatorNo
- {
- set { _operatorno = value; }
- get { return _operatorno; }
- }
- ///
- ///
- ///
- public string OperatorName
- {
- set { _operatorname = value; }
- get { return _operatorname; }
- }
- ///
- ///
- ///
- public DateTime OperateDate
- {
- set { _operatedate = value; }
- get { return _operatedate; }
- }
- }
-}
diff --git a/AIMS/OperationFront/Model/OperationApply.cs b/AIMS/OperationFront/Model/OperationApply.cs
deleted file mode 100644
index 86d7c90..0000000
--- a/AIMS/OperationFront/Model/OperationApply.cs
+++ /dev/null
@@ -1,260 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationFront.Model
-{
- public class OperationApply
- {
- private int _id;
- private int _oris_patientid;
- private int _applydepid;
- private string _operationtype;
- private DateTime _orderoperationtime;
- private int _operationtimeleight;
- private int _isreturnoperation;
- private int _isplanreturnoperation;
- private int _isnotplanreturnoperation;
- private string _diagnoseremark;
- private string _operationremark;
- private int _operationlevelid;
- private string _contagion;
- private string _intern;
- private string _other;
- private DateTime _applytime;
- private string _applyoperatorno;
- private DateTime _verifytime;
- private string _verifypperatorno;
- private DateTime _planoperationtime;
- private int _operationroomid;
- private int _state;
- private string _remark;
- private string _planOrder;
- private string _operatorno;
- private string _operatorname;
- private DateTime _operatedate;
-
- ///
- ///
- ///
- public int Id
- {
- set{ _id=value;}
- get{return _id;}
- }
- ///
- ///
- ///
- public int Oris_PatientId
- {
- set{ _oris_patientid=value;}
- get{return _oris_patientid;}
- }
- ///
- /// 手术申请科室
- ///
- public int ApplyDepId
- {
- set{ _applydepid=value;}
- get{return _applydepid;}
- }
- ///
- /// 手术类型(急诊或择期)
- ///
- public string OperationType
- {
- set{ _operationtype=value;}
- get{return _operationtype;}
- }
- ///
- /// 预约时间
- ///
- public DateTime OrderOperationTime
- {
- set{ _orderoperationtime=value;}
- get{return _orderoperationtime;}
- }
- ///
- ///
- ///
- public int OperationTimeLeight
- {
- set{ _operationtimeleight=value;}
- get{return _operationtimeleight;}
- }
- ///
- /// 是否重返再手术
- ///
- public int IsReturnOperation
- {
- set{ _isreturnoperation=value;}
- get{return _isreturnoperation;}
- }
- ///
- /// 计划手术
- ///
- public int IsPlanReturnOperation
- {
- set{ _isplanreturnoperation=value;}
- get{return _isplanreturnoperation;}
- }
- ///
- /// 非计划手术
- ///
- public int IsNotPlanReturnOperation
- {
- set{ _isnotplanreturnoperation=value;}
- get{return _isnotplanreturnoperation;}
- }
- ///
- ///
- ///
- public string DiagnoseRemark
- {
- set{ _diagnoseremark=value;}
- get{return _diagnoseremark;}
- }
- ///
- ///
- ///
- public string OperationRemark
- {
- set{ _operationremark=value;}
- get{return _operationremark;}
- }
- ///
- /// 手术分级
- ///
- public int OperationLevelId
- {
- set{ _operationlevelid=value;}
- get{return _operationlevelid;}
- }
- ///
- /// 术前感染筛查
- ///
- public string Contagion
- {
- set{ _contagion=value;}
- get{return _contagion;}
- }
- ///
- ///
- ///
- public string Intern
- {
- set{ _intern=value;}
- get{return _intern;}
- }
- ///
- ///
- ///
- public string Other
- {
- set{ _other=value;}
- get{return _other;}
- }
- ///
- /// 手术申请时间
- ///
- public DateTime ApplyTime
- {
- set{ _applytime=value;}
- get{return _applytime;}
- }
- ///
- ///
- ///
- public string ApplyOperatorNo
- {
- set{ _applyoperatorno=value;}
- get{return _applyoperatorno;}
- }
- ///
- /// 审核时间
- ///
- public DateTime VerifyTime
- {
- set { _verifytime = value; }
- get { return _verifytime; }
- }
- ///
- /// 审核医生
- ///
- public string VerifyOperatorNo
- {
- set { _verifypperatorno = value; }
- get { return _verifypperatorno; }
- }
- ///
- /// 计划时间
- ///
- public DateTime PlanOperationTime
- {
- set{ _planoperationtime=value;}
- get{return _planoperationtime;}
- }
- ///
- ///
- ///
- public int OperationRoomId
- {
- set{ _operationroomid=value;}
- get{return _operationroomid;}
- }
- ///
- //1 待申请审核
- //2 已审核
- //3 已排程
- //4 已访视
- //5.手术中
- //6.手术结束
- //7.已归档
- //8.手术终止
-
- ///
- public int State
- {
- set{ _state=value;}
- get{return _state;}
- }
- ///
- ///
- ///
- public string Remark
- {
- set{ _remark=value;}
- get{return _remark;}
- }
- public string PlanOrder
- {
- set{ _planOrder = value;}
- get{return _planOrder; }
- }
- ///
- ///
- ///
- public string OperatorNo
- {
- set{ _operatorno=value;}
- get{return _operatorno;}
- }
- ///
- ///
- ///
- public string OperatorName
- {
- set{ _operatorname=value;}
- get{return _operatorname;}
- }
- ///
- ///
- ///
- public DateTime OperateDate
- {
- set{ _operatedate=value;}
- get{return _operatedate;}
- }
- }
-}
diff --git a/AIMS/OperationFront/Model/Oris_Patient.cs b/AIMS/OperationFront/Model/Oris_Patient.cs
deleted file mode 100644
index 1483fed..0000000
--- a/AIMS/OperationFront/Model/Oris_Patient.cs
+++ /dev/null
@@ -1,201 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace AIMS.OperationFront.Model
-{
- public class Oris_Patient
- {
- private int _id;
- private string _mdrecno;
- private string _archivesno;
- private string _name;
- private string _sex;
- private DateTime _birthday;
- private string _height;
- private string _weight;
- private int _depid;
- private string _illdistrict;
- private string _sickbed;
- private string _bloodtype;
- private string _rhbloodtype;
- private string _patientkind;
- private DateTime _inhosdate;
- private string _identitycard;
- private string _contacts;
- private string _contactsphone;
- private string _operatorno;
- private string _operatorname;
- private DateTime _operatedate;
- ///
- ///
- ///
- public int Id
- {
- set { _id = value; }
- get { return _id; }
- }
- ///
- ///
- ///
- public string MdrecNo
- {
- set { _mdrecno = value; }
- get { return _mdrecno; }
- }
- ///
- ///
- ///
- public string ArchivesNo
- {
- set { _archivesno = value; }
- get { return _archivesno; }
- }
- ///
- ///
- ///
- public string Name
- {
- set { _name = value; }
- get { return _name; }
- }
- ///
- ///
- ///
- public string Sex
- {
- set { _sex = value; }
- get { return _sex; }
- }
- ///
- ///
- ///
- public DateTime BirthDay
- {
- set { _birthday = value; }
- get { return _birthday; }
- }
- ///
- ///
- ///
- public string Height
- {
- set { _height = value; }
- get { return _height; }
- }
- ///
- ///
- ///
- public string Weight
- {
- set { _weight = value; }
- get { return _weight; }
- }
- ///
- ///
- ///
- public int DepId
- {
- set { _depid = value; }
- get { return _depid; }
- }
- ///
- ///
- ///
- public string Illdistrict
- {
- set { _illdistrict = value; }
- get { return _illdistrict; }
- }
- ///
- ///
- ///
- public string SickBed
- {
- set { _sickbed = value; }
- get { return _sickbed; }
- }
- ///
- ///
- ///
- public string BloodType
- {
- set { _bloodtype = value; }
- get { return _bloodtype; }
- }
- ///
- ///
- ///
- public string RHBloodType
- {
- set { _rhbloodtype = value; }
- get { return _rhbloodtype; }
- }
- ///
- ///
- ///
- public string PatientKind
- {
- set { _patientkind = value; }
- get { return _patientkind; }
- }
- ///
- ///
- ///
- public DateTime InHosDate
- {
- set { _inhosdate = value; }
- get { return _inhosdate; }
- }
- ///
- ///
- ///
- public string IdentityCard
- {
- set { _identitycard = value; }
- get { return _identitycard; }
- }
- ///
- ///
- ///
- public string Contacts
- {
- set { _contacts = value; }
- get { return _contacts; }
- }
- ///
- ///
- ///
- public string ContactsPhone
- {
- set { _contactsphone = value; }
- get { return _contactsphone; }
- }
- ///
- ///
- ///
- public string OperatorNo
- {
- set { _operatorno = value; }
- get { return _operatorno; }
- }
- ///
- ///
- ///
- public string OperatorName
- {
- set { _operatorname = value; }
- get { return _operatorname; }
- }
- ///
- ///
- ///
- public DateTime OperateDate
- {
- set { _operatedate = value; }
- get { return _operatedate; }
- }
-
- }
-}
diff --git a/AIMS/OperationFront/UI/NoteCustomItem.cs b/AIMS/OperationFront/NoteCustomItem.cs
similarity index 100%
rename from AIMS/OperationFront/UI/NoteCustomItem.cs
rename to AIMS/OperationFront/NoteCustomItem.cs
diff --git a/AIMS/OperationFront/UI/frmApplyConfigSet.Designer.cs b/AIMS/OperationFront/frmApplyConfigSet.Designer.cs
similarity index 100%
rename from AIMS/OperationFront/UI/frmApplyConfigSet.Designer.cs
rename to AIMS/OperationFront/frmApplyConfigSet.Designer.cs
diff --git a/AIMS/OperationFront/UI/frmApplyConfigSet.cs b/AIMS/OperationFront/frmApplyConfigSet.cs
similarity index 100%
rename from AIMS/OperationFront/UI/frmApplyConfigSet.cs
rename to AIMS/OperationFront/frmApplyConfigSet.cs
diff --git a/AIMS/OperationFront/UI/frmApplyConfigSet.resx b/AIMS/OperationFront/frmApplyConfigSet.resx
similarity index 100%
rename from AIMS/OperationFront/UI/frmApplyConfigSet.resx
rename to AIMS/OperationFront/frmApplyConfigSet.resx
diff --git a/AIMS/OperationFront/UI/frmExeOperationPlan.Designer.cs b/AIMS/OperationFront/frmExeOperationPlan.Designer.cs
similarity index 100%
rename from AIMS/OperationFront/UI/frmExeOperationPlan.Designer.cs
rename to AIMS/OperationFront/frmExeOperationPlan.Designer.cs
diff --git a/AIMS/OperationFront/UI/frmExeOperationPlan.cs b/AIMS/OperationFront/frmExeOperationPlan.cs
similarity index 88%
rename from AIMS/OperationFront/UI/frmExeOperationPlan.cs
rename to AIMS/OperationFront/frmExeOperationPlan.cs
index be3ab2f..d314377 100644
--- a/AIMS/OperationFront/UI/frmExeOperationPlan.cs
+++ b/AIMS/OperationFront/frmExeOperationPlan.cs
@@ -1,4 +1,5 @@
-using System;
+using AIMSBLL;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -32,7 +33,7 @@ namespace AIMS.OperationFront.UI
{
int ApplyId = int.Parse(dgv1.Rows[i].Cells["ApplyIdColumn1"].Value.ToString());
- BLL.OperationApply.UpdateApplyState(ApplyId, 4);
+ BOperationApply.UpdateApplyState(ApplyId, 4);
}
}
MessageBox.Show("执行成功!", "系统提示");
@@ -50,7 +51,7 @@ namespace AIMS.OperationFront.UI
private void btnFind_Click(object sender, EventArgs e)
{
- DataTable dt = BLL.OperationApply.GetOperationFrontDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.ToString("yyyy-MM-dd"));
+ DataTable dt = BOperationApply.GetOperationFrontDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.ToString("yyyy-MM-dd"));
DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(dt, "OperationType <>'特急' and State IN ('预排程')", "");
dgv1.DataSource = Newdt;
for (int i = 0; i < dgv1.Rows.Count; i++)
diff --git a/AIMS/OperationFront/UI/frmExeOperationPlan.resx b/AIMS/OperationFront/frmExeOperationPlan.resx
similarity index 100%
rename from AIMS/OperationFront/UI/frmExeOperationPlan.resx
rename to AIMS/OperationFront/frmExeOperationPlan.resx
diff --git a/AIMS/OperationFront/UI/frmOperationApply.Designer.cs b/AIMS/OperationFront/frmOperationApply.Designer.cs
similarity index 100%
rename from AIMS/OperationFront/UI/frmOperationApply.Designer.cs
rename to AIMS/OperationFront/frmOperationApply.Designer.cs
diff --git a/AIMS/OperationFront/UI/frmOperationApply.cs b/AIMS/OperationFront/frmOperationApply.cs
similarity index 88%
rename from AIMS/OperationFront/UI/frmOperationApply.cs
rename to AIMS/OperationFront/frmOperationApply.cs
index b6b9f19..ceb2913 100644
--- a/AIMS/OperationFront/UI/frmOperationApply.cs
+++ b/AIMS/OperationFront/frmOperationApply.cs
@@ -32,10 +32,10 @@ namespace AIMS.OperationFront.UI
cboDepartment.DisplayMember = "Name";
cboDepartment.ValueMember = "Id";
- cboDepartment.DataSource = AIMS.PublicUI.BLL.Department.GetDepartmentDataTable("IsValid=1 ");
+ cboDepartment.DataSource = BDepartment.GetDepartmentDataTable("IsValid=1 ");
cboDepartment.SelectedIndex = -1;
- cboDepartment.Text = AIMS.PublicUI.BLL.Department.GetModel(AIMSExtension.PublicMethod.DepId).Name;
+ cboDepartment.Text = BDepartment.GetModel(AIMSExtension.PublicMethod.DepId).Name;
btnFind_Click(null, null);
}
@@ -74,7 +74,7 @@ namespace AIMS.OperationFront.UI
private void btnFind_Click(object sender, EventArgs e)
{
- DataTable dt = BLL.OperationApply.GetOperationFrontDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.ToString("yyyy-MM-dd"));
+ DataTable dt = BOperationApply.GetOperationFrontDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.ToString("yyyy-MM-dd"));
DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(dt, "State IN ('已申请','已审核') and ApplyDepName LIKE '%" + cboDepartment.Text + "%' AND MdrecNo LIKE '%" + txtMdrecNo.Text.Trim() + "%'", "");
dgv.DataSource = Newdt;
@@ -111,12 +111,12 @@ namespace AIMS.OperationFront.UI
if (dgv.Rows[i].Cells["OperationTypeColumn"].Value.ToString() == "特急")
{
- BLL.OperationApply.UpdatePlanOperationTime(ApplyId, AIMSExtension.PublicMethod.SystemDate().ToString(), 1, 4); //状态4 已排程
+ BOperationApply.UpdatePlanOperationTime(ApplyId, AIMSExtension.PublicMethod.SystemDate().ToString(), 1, 4); //状态4 已排程
}
else
{
- BLL.OperationApply.UpdateVerifyTime(ApplyId, AIMSExtension.PublicMethod.SystemDate().ToString(), AIMSExtension.PublicMethod.OperatorNo);
+ BOperationApply.UpdateVerifyTime(ApplyId, AIMSExtension.PublicMethod.SystemDate().ToString(), AIMSExtension.PublicMethod.OperatorNo);
}
}
}
@@ -148,7 +148,7 @@ namespace AIMS.OperationFront.UI
{
try
{
- BLL.OperationApply.UpdateApplyState(ApplyId, 11);
+ BOperationApply.UpdateApplyState(ApplyId, 11);
MessageBox.Show("作废成功!");
btnFind_Click(null, null);
}
diff --git a/AIMS/OperationFront/UI/frmOperationApply.resx b/AIMS/OperationFront/frmOperationApply.resx
similarity index 100%
rename from AIMS/OperationFront/UI/frmOperationApply.resx
rename to AIMS/OperationFront/frmOperationApply.resx
diff --git a/AIMS/OperationFront/UI/frmOperationApplyDetail.Designer.cs b/AIMS/OperationFront/frmOperationApplyDetail.Designer.cs
similarity index 100%
rename from AIMS/OperationFront/UI/frmOperationApplyDetail.Designer.cs
rename to AIMS/OperationFront/frmOperationApplyDetail.Designer.cs
diff --git a/AIMS/OperationFront/UI/frmOperationApplyDetail.cs b/AIMS/OperationFront/frmOperationApplyDetail.cs
similarity index 84%
rename from AIMS/OperationFront/UI/frmOperationApplyDetail.cs
rename to AIMS/OperationFront/frmOperationApplyDetail.cs
index e561600..79266ea 100644
--- a/AIMS/OperationFront/UI/frmOperationApplyDetail.cs
+++ b/AIMS/OperationFront/frmOperationApplyDetail.cs
@@ -1,16 +1,11 @@
-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;
-using System.Configuration;
-using HelperDB;
+using AIMSBLL;
using AIMSExtension;
using AIMSModel;
-using AIMSBLL;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Drawing;
+using System.Windows.Forms;
namespace AIMS.OperationFront.UI
{
@@ -30,7 +25,7 @@ namespace AIMS.OperationFront.UI
private PublicUI.UI.frmSelectPerson frmAssistant2;
private PublicUI.UI.frmSelectPerson frmAssistant3;
private List SelectDiseaseData = new List(); //选择后的诊断信息
- private List SelectOperationData = new List();//选择后的手术信息
+ private List SelectOperationData = new List();//选择后的手术信息
private List SelectOperationCutTypeData = new List(); //切口类型
private List SelectOperationPositionData = new List(); //手术部位
private List SelectAnaesthesiaMethodData = new List(); //拟施麻醉
@@ -63,8 +58,8 @@ namespace AIMS.OperationFront.UI
}
- Model.OperationApply EditOperationApplyObj = new Model.OperationApply();
- Model.Oris_Patient EditOris_PatientObj = new Model.Oris_Patient();
+ OperationApply EditOperationApplyObj = new OperationApply();
+ OrisPatient EditOris_PatientObj = new OrisPatient();
private void frmOperationApplyDetail_Load(object sender, EventArgs e)
{
Initial();
@@ -75,14 +70,14 @@ namespace AIMS.OperationFront.UI
{
#region 修改给界面赋值
- EditOperationApplyObj = BLL.OperationApply.GetModel(EditApplyId);
- EditOris_PatientObj = BLL.Oris_Patient.GetModel(EditOperationApplyObj.Oris_PatientId);
+ EditOperationApplyObj = BOperationApply.GetModel(EditApplyId);
+ EditOris_PatientObj = BOrisPatient.GetModel(EditOperationApplyObj.OrisPatientId.Value);
txtMdrecNo.Text = EditOris_PatientObj.MdrecNo;
txtArchivesNo.Text = EditOris_PatientObj.ArchivesNo;
txtName.Text = EditOris_PatientObj.Name;
cboSex.Text = EditOris_PatientObj.Sex;
- dtpBirthDay.Value = EditOris_PatientObj.BirthDay;
+ dtpBirthDay.Value = EditOris_PatientObj.BirthDay.Value;
txtHeight.Text = EditOris_PatientObj.Height;
txtWeight.Text = EditOris_PatientObj.Weight;
cboDepartment.SelectedValue = EditOris_PatientObj.DepId;
@@ -91,7 +86,7 @@ namespace AIMS.OperationFront.UI
cboBloodType.Text = EditOris_PatientObj.BloodType;
cboRHBloodType.Text = EditOris_PatientObj.RHBloodType;
cboPatientKind.Text = EditOris_PatientObj.PatientKind;
- dtpInHosDate.Value = EditOris_PatientObj.InHosDate;
+ dtpInHosDate.Value = EditOris_PatientObj.InHosDate.Value;
txtIdentityCard.Text = EditOris_PatientObj.IdentityCard;
txtContacts.Text = EditOris_PatientObj.Contacts;
txtContactsPhone.Text = EditOris_PatientObj.ContactsPhone;
@@ -101,7 +96,8 @@ namespace AIMS.OperationFront.UI
rboZQ.Checked = true;
else
rboJZ.Checked = true;
- dtpOrderOperationTime.Value = EditOperationApplyObj.OrderOperationTime;
+ if (EditOperationApplyObj.OrderOperationTime != null)
+ dtpOrderOperationTime.Value = EditOperationApplyObj.OrderOperationTime.Value;
//txtOperationTimeLeight.Text = EditOperationApplyObj.OperationTimeLeight.ToString();
if (EditOperationApplyObj.IsReturnOperation == 1)
@@ -131,11 +127,11 @@ namespace AIMS.OperationFront.UI
rdbIsNotPlanReturnOperation.Checked = false;
}
//诊断
- SelectDiseaseData = BLL.ApplyDiagnoseInfo.GetApplyDiagnoseIdList(EditApplyId);
+ SelectDiseaseData = BApplyDiagnoseInfo.GetApplyDiagnoseIdList(EditApplyId);
foreach (int RowId in SelectDiseaseData)
{
- txtDisease.Text += DataDictionary.BLL.Disease.GetModel(RowId).Name + " ,";
+ txtDisease.Text += BDisease.SelectSingle(RowId).Name + " ,";
}
if (txtDisease.Text != "") txtDisease.Text = txtDisease.Text.Substring(0, txtDisease.Text.LastIndexOf(" ,"));
@@ -143,14 +139,14 @@ namespace AIMS.OperationFront.UI
txtDiseaseRemark.Text = EditOperationApplyObj.DiagnoseRemark;
//手术
- SelectOperationData = BLL.ApplyOperationInfo.GetApplyOperationIdList(EditApplyId);
+ SelectOperationData = BApplyOperationInfo.GetApplyOperationIdList(EditApplyId);
for (int i = 0; i < SelectOperationData.Count; i++)
{
- Model.ApplyOperationInfo info = SelectOperationData[i];
+ ApplyOperationInfo info = SelectOperationData[i];
if (i == 0)
{
- txtOperation.Text = DataDictionary.BLL.Operation.GetModel(info.OperationId).Name;
+ txtOperation.Text = BOperation.SelectSingle(info.OperationId).Name;
txtOperation.Tag = info.OperationId;
txtLeft.Text = info.LeftRemark;
txtRight.Text = info.RightRemark;
@@ -159,7 +155,7 @@ namespace AIMS.OperationFront.UI
}
if (i == 1)
{
- txtOperation2.Text = DataDictionary.BLL.Operation.GetModel(info.OperationId).Name;
+ txtOperation2.Text = BOperation.SelectSingle(info.OperationId).Name;
txtOperation2.Tag = info.OperationId;
txtLeft2.Text = info.LeftRemark;
txtRight2.Text = info.RightRemark;
@@ -168,7 +164,7 @@ namespace AIMS.OperationFront.UI
}
if (i == 2)
{
- txtOperation3.Text = DataDictionary.BLL.Operation.GetModel(info.OperationId).Name;
+ txtOperation3.Text = BOperation.SelectSingle(info.OperationId).Name;
txtOperation3.Tag = info.OperationId;
txtLeft3.Text = info.LeftRemark;
txtRight3.Text = info.RightRemark;
@@ -177,7 +173,7 @@ namespace AIMS.OperationFront.UI
}
if (i == 3)
{
- txtOperation4.Text = DataDictionary.BLL.Operation.GetModel(info.OperationId).Name;
+ txtOperation4.Text = BOperation.SelectSingle(info.OperationId).Name;
txtOperation4.Tag = info.OperationId;
txtLeft4.Text = info.LeftRemark;
txtRight4.Text = info.RightRemark;
@@ -186,7 +182,7 @@ namespace AIMS.OperationFront.UI
}
if (i == 4)
{
- txtOperation5.Text = DataDictionary.BLL.Operation.GetModel(info.OperationId).Name;
+ txtOperation5.Text = BOperation.SelectSingle(info.OperationId).Name;
txtOperation5.Tag = info.OperationId;
txtLeft5.Text = info.LeftRemark;
txtRight5.Text = info.RightRemark;
@@ -196,7 +192,7 @@ namespace AIMS.OperationFront.UI
}
//foreach (int RowId in SelectOperationData)
//{
- // string name = DataDictionary.BLL.Operation.GetModel(RowId).Name;
+ // string name = BOperation.SelectSingle(RowId).Name;
// // Create one token and select it for keywords TokenEditor
// //tokenEditor1.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken(name));
@@ -207,26 +203,26 @@ namespace AIMS.OperationFront.UI
cboOperationLevel.SelectedValue = EditOperationApplyObj.OperationLevelId;
//切口类型
- SelectOperationCutTypeData = BLL.ApplyOperationCutType.GetApplyOperationCutTypeIdList(EditApplyId);
+ SelectOperationCutTypeData = BApplyOperationCutType.GetApplyOperationCutTypeIdList(EditApplyId);
foreach (int RowId in SelectOperationCutTypeData)
{
- txtOperationCutType.Text += DataDictionary.BLL.OperationCutType.GetModel(RowId).Name + " ,";
+ txtOperationCutType.Text += BOperationCutType.SelectSingle(RowId).Name + " ,";
}
if (txtOperationCutType.Text != "") txtOperationCutType.Text = txtOperationCutType.Text.Substring(0, txtOperationCutType.Text.LastIndexOf(" ,"));
//手术部位
- SelectOperationPositionData = BLL.ApplyOperationPosition.GetApplyOperationPositionIdList(EditApplyId);
+ SelectOperationPositionData = BApplyOperationPosition.GetApplyOperationPositionIdList(EditApplyId);
foreach (int RowId in SelectOperationPositionData)
{
- txtOperationPosition.Text += DataDictionary.BLL.OperationPosition.GetModel(RowId).Name + " ,";
+ txtOperationPosition.Text += BOperationPosition.SelectSingle(RowId).Name + " ,";
}
if (txtOperationPosition.Text != "") txtOperationPosition.Text = txtOperationPosition.Text.Substring(0, txtOperationPosition.Text.LastIndexOf(" ,"));
//麻醉方式
- SelectAnaesthesiaMethodData = BLL.ApplyAnaesthesiaMethod.GetApplyAnaesthesiaMethodList(EditApplyId);
+ SelectAnaesthesiaMethodData = BApplyAnaesthesiaMethod.GetApplyAnaesthesiaMethodList(EditApplyId);
foreach (int RowId in SelectAnaesthesiaMethodData)
{
- txtAnaesthesiaMethod.Text += DataDictionary.BLL.AnaesthesiaMethod.GetModel(RowId).Name + " ,";
+ txtAnaesthesiaMethod.Text += BAnaesthesiaMethod.SelectSingle(RowId).Name + " ,";
}
if (txtAnaesthesiaMethod.Text != "") txtAnaesthesiaMethod.Text = txtAnaesthesiaMethod.Text.Substring(0, txtAnaesthesiaMethod.Text.LastIndexOf(" ,"));
@@ -235,20 +231,20 @@ namespace AIMS.OperationFront.UI
txtContagion.Text = EditOperationApplyObj.Contagion;
txtRemark.Text = EditOperationApplyObj.Remark;
//术者
- SelectOperationDoctor = BLL.ApplyPersonDuty.GetPersonIdList(EditApplyId, 1);
+ SelectOperationDoctor = BApplyPersonDuty.GetPersonIdList(EditApplyId, 1);
foreach (int RowId in SelectOperationDoctor)
{
- string name = AIMS.PublicUI.BLL.Person.GetModel(RowId).Name;
+ string name = BPerson.SelectSingle(RowId).Name;
txtOperationDoctor.Text += name + " ,";
}
if (txtOperationDoctor.Text != "") txtOperationDoctor.Text = txtOperationDoctor.Text.Substring(0, txtOperationDoctor.Text.LastIndexOf(" ,"));
//一助
- SelectAssistant1Data = BLL.ApplyPersonDuty.GetPersonIdList(EditApplyId, 2);
+ SelectAssistant1Data = BApplyPersonDuty.GetPersonIdList(EditApplyId, 2);
foreach (int RowId in SelectAssistant1Data)
{
- txtAssistant1.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtAssistant1.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
if (SelectAssistant1Data.Count > 0)
{
@@ -256,10 +252,10 @@ namespace AIMS.OperationFront.UI
}
//二助
- SelectAssistant2Data = BLL.ApplyPersonDuty.GetPersonIdList(EditApplyId, 3);
+ SelectAssistant2Data = BApplyPersonDuty.GetPersonIdList(EditApplyId, 3);
foreach (int RowId in SelectAssistant2Data)
{
- txtAssistant2.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtAssistant2.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
if (SelectAssistant2Data.Count > 0)
{
@@ -267,10 +263,10 @@ namespace AIMS.OperationFront.UI
}
//三助
- SelectAssistant3Data = BLL.ApplyPersonDuty.GetPersonIdList(EditApplyId, 4);
+ SelectAssistant3Data = BApplyPersonDuty.GetPersonIdList(EditApplyId, 4);
foreach (int RowId in SelectAssistant3Data)
{
- txtAssistant3.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtAssistant3.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
if (SelectAssistant3Data.Count > 0)
{
@@ -295,46 +291,46 @@ namespace AIMS.OperationFront.UI
{
cboOperationRoom.DisplayMember = "Name";
cboOperationRoom.ValueMember = "Id";
- cboOperationRoom.DataSource = DataDictionary.BLL.OperationRoom.GetDataTable("IsValid=1");
+ cboOperationRoom.DataSource = BOperationRoom.GetDataTable("IsValid=1");
cboOperationRoom.SelectedIndex = -1;
-
- dtpPlanOperationTime.Value = EditOperationApplyObj.PlanOperationTime;
+ if (EditOperationApplyObj.PlanOperationTime != null)
+ dtpPlanOperationTime.Value = EditOperationApplyObj.PlanOperationTime.Value;
cboOperationRoom.SelectedValue = int.Parse(EditOperationApplyObj.OperationRoomId.ToString());
- SelectAnesthesiaDoctorData = BLL.ApplyPersonDuty.GetPersonIdList(EditApplyId, 5);
+ SelectAnesthesiaDoctorData = BApplyPersonDuty.GetPersonIdList(EditApplyId, 5);
foreach (int RowId in SelectAnesthesiaDoctorData)
{
- txtAnesthesiaDoctor.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtAnesthesiaDoctor.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
if (SelectAnesthesiaDoctorData.Count > 0)
{
txtAnesthesiaDoctor.Text = txtAnesthesiaDoctor.Text.Substring(0, txtAnesthesiaDoctor.Text.LastIndexOf(" ,"));
}
- SelectInstrumentNurseData = BLL.ApplyPersonDuty.GetPersonIdList(EditApplyId, 6);
+ SelectInstrumentNurseData = BApplyPersonDuty.GetPersonIdList(EditApplyId, 6);
foreach (int RowId in SelectInstrumentNurseData)
{
- txtInstrumentNurse.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtInstrumentNurse.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
if (SelectInstrumentNurseData.Count > 0)
{
txtInstrumentNurse.Text = txtInstrumentNurse.Text.Substring(0, txtInstrumentNurse.Text.LastIndexOf(" ,"));
}
- SelectTourNurseData = BLL.ApplyPersonDuty.GetPersonIdList(EditApplyId, 7);
+ SelectTourNurseData = BApplyPersonDuty.GetPersonIdList(EditApplyId, 7);
foreach (int RowId in SelectTourNurseData)
{
- txtTourNurse.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtTourNurse.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
if (SelectTourNurseData.Count > 0)
{
txtTourNurse.Text = txtTourNurse.Text.Substring(0, txtTourNurse.Text.LastIndexOf(" ,"));
}
- SelectAnesthesiaDoctorSucceedData = BLL.ApplyPersonDuty.GetPersonIdList(EditApplyId, 8);
+ SelectAnesthesiaDoctorSucceedData = BApplyPersonDuty.GetPersonIdList(EditApplyId, 8);
foreach (int RowId in SelectAnesthesiaDoctorSucceedData)
{
- txtAnesthesiaDoctorSucceed.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtAnesthesiaDoctorSucceed.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
if (SelectAnesthesiaDoctorSucceedData.Count > 0)
{
@@ -342,10 +338,10 @@ namespace AIMS.OperationFront.UI
}
- SelectInstrumentNurseSucceedData = BLL.ApplyPersonDuty.GetPersonIdList(EditApplyId, 9);
+ SelectInstrumentNurseSucceedData = BApplyPersonDuty.GetPersonIdList(EditApplyId, 9);
foreach (int RowId in SelectInstrumentNurseSucceedData)
{
- txtInstrumentNurseSucceed.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtInstrumentNurseSucceed.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
if (SelectInstrumentNurseSucceedData.Count > 0)
{
@@ -353,10 +349,10 @@ namespace AIMS.OperationFront.UI
}
- SelectTourNurseSucceedData = BLL.ApplyPersonDuty.GetPersonIdList(EditApplyId, 10);
+ SelectTourNurseSucceedData = BApplyPersonDuty.GetPersonIdList(EditApplyId, 10);
foreach (int RowId in SelectTourNurseSucceedData)
{
- txtTourNurseSucceed.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtTourNurseSucceed.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
if (SelectTourNurseSucceedData.Count > 0)
{
@@ -400,28 +396,28 @@ namespace AIMS.OperationFront.UI
cboDepartment.DisplayMember = "Name";
cboDepartment.ValueMember = "Id";
- cboDepartment.DataSource = AIMS.PublicUI.BLL.Department.GetDepartmentDataTable("IsValid=1 ");
+ cboDepartment.DataSource = BDepartment.GetDepartmentDataTable("IsValid=1 ");
cboDepartment.SelectedIndex = -1;
cboApplyDepId.DisplayMember = "Name";
cboApplyDepId.ValueMember = "Id";
- cboApplyDepId.DataSource = AIMS.PublicUI.BLL.Department.GetDepartmentDataTable("IsValid=1 ");
+ cboApplyDepId.DataSource = BDepartment.GetDepartmentDataTable("IsValid=1 ");
cboApplyDepId.SelectedIndex = -1;
cboPatientKind.DisplayMember = "Name";
cboPatientKind.ValueMember = "Id";
- cboPatientKind.DataSource = DataDictionary.BLL.PatientKind.GetDataTable("IsValid=1");
+ cboPatientKind.DataSource = BPatientKind.GetDataTable("IsValid=1");
cboPatientKind.SelectedIndex = -1;
cboOperationLevel.DisplayMember = "Name";
cboOperationLevel.ValueMember = "Id";
- cboOperationLevel.DataSource = DataDictionary.BLL.OperationLevel.GetDataTable("IsValid=1");
+ cboOperationLevel.DataSource = BOperationLevel.GetDataTable("IsValid=1");
cboOperationLevel.SelectedIndex = -1;
if (State == AIMSExtension.EditState.ADD)
{
Text = Text + " 增加";
- cboApplyDepId.Text = AIMS.PublicUI.BLL.Department.GetModel(AIMSExtension.PublicMethod.DepId).Name;
+ cboApplyDepId.Text = BDepartment.SelectSingle(AIMSExtension.PublicMethod.DepId).Name;
cboApplyDepId.SelectedValue = AIMSExtension.PublicMethod.DepId;
}
if (State == AIMSExtension.EditState.EDIT)
@@ -449,7 +445,7 @@ namespace AIMS.OperationFront.UI
foreach (int RowId in frmSelectDisease.SelectRightData)
{
- txtDisease.Text += DataDictionary.BLL.Disease.GetModel(RowId).Name + " ,";
+ txtDisease.Text += BDisease.SelectSingle(RowId).Name + " ,";
}
int idxStart = txtDisease.Text.LastIndexOf(" ,");
@@ -474,7 +470,7 @@ namespace AIMS.OperationFront.UI
if (frmSelectOperation.SelectRightData.Count > 0)
{
- txtOperation.Text = DataDictionary.BLL.Operation.GetModel(frmSelectOperation.SelectRightData[0]).Name;
+ txtOperation.Text = BOperation.SelectSingle(frmSelectOperation.SelectRightData[0]).Name;
txtOperation.Tag = frmSelectOperation.SelectRightData[0];
txtLeft.Enabled = true;
txtRight.Enabled = true;
@@ -505,7 +501,7 @@ namespace AIMS.OperationFront.UI
if (frmSelectOperation.SelectRightData.Count > 0)
{
- txtOperation2.Text = DataDictionary.BLL.Operation.GetModel(frmSelectOperation.SelectRightData[0]).Name;
+ txtOperation2.Text = BOperation.SelectSingle(frmSelectOperation.SelectRightData[0]).Name;
txtOperation2.Tag = frmSelectOperation.SelectRightData[0];
txtLeft2.Enabled = true;
txtRight2.Enabled = true;
@@ -536,7 +532,7 @@ namespace AIMS.OperationFront.UI
if (frmSelectOperation.SelectRightData.Count > 0)
{
- txtOperation3.Text = DataDictionary.BLL.Operation.GetModel(frmSelectOperation.SelectRightData[0]).Name;
+ txtOperation3.Text = BOperation.SelectSingle(frmSelectOperation.SelectRightData[0]).Name;
txtOperation3.Tag = frmSelectOperation.SelectRightData[0];
txtLeft3.Enabled = true;
@@ -569,7 +565,7 @@ namespace AIMS.OperationFront.UI
if (frmSelectOperation.SelectRightData.Count > 0)
{
- txtOperation4.Text = DataDictionary.BLL.Operation.GetModel(frmSelectOperation.SelectRightData[0]).Name;
+ txtOperation4.Text = BOperation.SelectSingle(frmSelectOperation.SelectRightData[0]).Name;
txtOperation4.Tag = frmSelectOperation.SelectRightData[0];
txtLeft4.Enabled = true;
@@ -602,7 +598,7 @@ namespace AIMS.OperationFront.UI
if (frmSelectOperation.SelectRightData.Count > 0)
{
- txtOperation5.Text = DataDictionary.BLL.Operation.GetModel(frmSelectOperation.SelectRightData[0]).Name;
+ txtOperation5.Text = BOperation.SelectSingle(frmSelectOperation.SelectRightData[0]).Name;
txtOperation5.Tag = frmSelectOperation.SelectRightData[0];
txtLeft5.Enabled = true;
@@ -635,7 +631,7 @@ namespace AIMS.OperationFront.UI
SelectOperationCutTypeData = frmOperationCutType.SelectOperationCutTypeData;
foreach (int RowId in frmOperationCutType.SelectOperationCutTypeData)
{
- txtOperationCutType.Text += DataDictionary.BLL.OperationCutType.GetModel(RowId).Name + " ,";
+ txtOperationCutType.Text += BOperationCutType.SelectSingle(RowId).Name + " ,";
}
int idxStart = txtOperationCutType.Text.LastIndexOf(" ,");
txtOperationCutType.Text = txtOperationCutType.Text.Substring(0, idxStart);
@@ -658,7 +654,7 @@ namespace AIMS.OperationFront.UI
SelectOperationPositionData = frmOperationPosition.SelectOperationPositionData;
foreach (int RowId in frmOperationPosition.SelectOperationPositionData)
{
- txtOperationPosition.Text += DataDictionary.BLL.OperationPosition.GetModel(RowId).Name + " ,";
+ txtOperationPosition.Text += BOperationPosition.SelectSingle(RowId).Name + " ,";
}
int idxStart = txtOperationPosition.Text.LastIndexOf(" ,");
txtOperationPosition.Text = txtOperationPosition.Text.Substring(0, idxStart);
@@ -682,7 +678,7 @@ namespace AIMS.OperationFront.UI
SelectAnaesthesiaMethodData = frmAnaesthesiaMethod.SelectAnaesthesiaMethodData;
foreach (int RowId in frmAnaesthesiaMethod.SelectAnaesthesiaMethodData)
{
- txtAnaesthesiaMethod.Text += DataDictionary.BLL.AnaesthesiaMethod.GetModel(RowId).Name + " ,";
+ txtAnaesthesiaMethod.Text += BAnaesthesiaMethod.SelectSingle(RowId).Name + " ,";
}
int idxStart = txtAnaesthesiaMethod.Text.LastIndexOf(" ,");
txtAnaesthesiaMethod.Text = txtAnaesthesiaMethod.Text.Substring(0, idxStart);
@@ -707,7 +703,7 @@ namespace AIMS.OperationFront.UI
SelectContagionData = frmContagion.SelectContagionData;
foreach (int RowId in frmContagion.SelectContagionData)
{
- txtContagion.Text += DataDictionary.BLL.DataDictionary.GetModel(RowId).Name + " ,";
+ txtContagion.Text += BBasicDictionary.GetModel(RowId).Name + " ,";
}
int idxStart = txtContagion.Text.LastIndexOf(" ,");
txtContagion.Text = txtContagion.Text.Substring(0, idxStart);
@@ -732,7 +728,7 @@ namespace AIMS.OperationFront.UI
SelectOperationDoctor = frmOperationDoctor.SelectPersonData;
foreach (int RowId in frmOperationDoctor.SelectPersonData)
{
- txtOperationDoctor.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtOperationDoctor.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
int idxStart = txtOperationDoctor.Text.LastIndexOf(" ,");
txtOperationDoctor.Text = txtOperationDoctor.Text.Substring(0, idxStart);
@@ -757,7 +753,7 @@ namespace AIMS.OperationFront.UI
SelectAssistant1Data = frmAssistant1.SelectPersonData;
foreach (int RowId in frmAssistant1.SelectPersonData)
{
- txtAssistant1.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtAssistant1.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
int idxStart = txtAssistant1.Text.LastIndexOf(" ,");
txtAssistant1.Text = txtAssistant1.Text.Substring(0, idxStart);
@@ -782,7 +778,7 @@ namespace AIMS.OperationFront.UI
SelectAssistant2Data = frmAssistant2.SelectPersonData;
foreach (int RowId in frmAssistant2.SelectPersonData)
{
- txtAssistant2.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtAssistant2.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
int idxStart = txtAssistant2.Text.LastIndexOf(" ,");
txtAssistant2.Text = txtAssistant2.Text.Substring(0, idxStart);
@@ -809,7 +805,7 @@ namespace AIMS.OperationFront.UI
SelectAssistant3Data = frmAssistant3.SelectPersonData;
foreach (int RowId in frmAssistant3.SelectPersonData)
{
- txtAssistant3.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtAssistant3.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
int idxStart = txtAssistant3.Text.LastIndexOf(" ,");
txtAssistant3.Text = txtAssistant3.Text.Substring(0, idxStart);
@@ -863,7 +859,7 @@ namespace AIMS.OperationFront.UI
SelectAssistant2Data.Clear();
SelectAssistant3Data.Clear();
txtMdrecNo.Select();
- cboApplyDepId.Text = AIMS.PublicUI.BLL.Department.GetModel(AIMSExtension.PublicMethod.DepId).Name;
+ cboApplyDepId.Text = BDepartment.SelectSingle(AIMSExtension.PublicMethod.DepId).Name;
}
@@ -879,7 +875,7 @@ namespace AIMS.OperationFront.UI
}
}
- Model.Oris_Patient Oris_PatientObj = new Model.Oris_Patient();
+ OrisPatient Oris_PatientObj = new OrisPatient();
if (State == AIMSExtension.EditState.EDIT)
{
Oris_PatientObj = EditOris_PatientObj;
@@ -905,7 +901,7 @@ namespace AIMS.OperationFront.UI
Oris_PatientObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
Oris_PatientObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
- Model.OperationApply OperationApplyObj = new Model.OperationApply();
+ OperationApply OperationApplyObj = new OperationApply();
if (State == AIMSExtension.EditState.EDIT)
{
OperationApplyObj = EditOperationApplyObj;
@@ -950,10 +946,10 @@ namespace AIMS.OperationFront.UI
HelperDB.DbHelperSQL.BeginTrans();
- BLL.Oris_Patient.Add(Oris_PatientObj);
- OperationApplyObj.Oris_PatientId = BLL.Oris_Patient.GetOris_PatientMaxId();
- BLL.OperationApply.Add(OperationApplyObj);
- SaveSelectItem(BLL.OperationApply.GetOperationApplyMaxId(), OperationApplyObj.OperateDate);
+ BOrisPatient.Add(Oris_PatientObj);
+ OperationApplyObj.OrisPatientId = BOrisPatient.GetOris_PatientMaxId();
+ BOperationApply.Add(OperationApplyObj);
+ SaveSelectItem(BOperationApply.GetOperationApplyMaxId(), OperationApplyObj.OperateDate.Value );
HelperDB.DbHelperSQL.CommitTrans();
MessageBox.Show("提交成功!", "系统提示");
@@ -967,16 +963,16 @@ namespace AIMS.OperationFront.UI
//{
HelperDB.DbHelperSQL.BeginTrans();
- //Oris_PatientObj.Id = BLL.OperationApply.GetModel(EditApplyId).Oris_PatientId;
+ //Oris_PatientObj.Id = BOperationApply.SelectSingle(EditApplyId).Oris_PatientId;
//OperationApplyObj.Id = EditApplyId;
- if (OperationApplyObj.PlanOperationTime.Year != 1)
- if (OperationApplyObj.OrderOperationTime.Day != OperationApplyObj.PlanOperationTime.Day)
+ if (OperationApplyObj.PlanOperationTime.Value.Year != 1)
+ if (OperationApplyObj.OrderOperationTime.Value.Day != OperationApplyObj.PlanOperationTime.Value.Day)
{
OperationApplyObj.PlanOperationTime = OperationApplyObj.OrderOperationTime;
}
- BLL.Oris_Patient.Update(Oris_PatientObj);
- BLL.OperationApply.Update(OperationApplyObj);
- SaveSelectItem(EditApplyId, OperationApplyObj.OperateDate);
+ BOrisPatient.Update(Oris_PatientObj);
+ BOperationApply.Update(OperationApplyObj);
+ SaveSelectItem(EditApplyId, OperationApplyObj.OperateDate.Value);
HelperDB.DbHelperSQL.CommitTrans();
MessageBox.Show("修改成功!", "系统提示");
@@ -993,7 +989,7 @@ namespace AIMS.OperationFront.UI
string PlanOperationTime = dtpPlanOperationTime.Value.ToString("yyyy-MM-dd HH:mm");
int OperationRoomId = int.Parse(cboOperationRoom.SelectedValue.ToString());
- BLL.OperationApply.UpdatePlanOperationTime(ApplyId, PlanOperationTime, OperationRoomId, 4); //状态4 已排程
+ BOperationApply.UpdatePlanOperationTime(ApplyId, PlanOperationTime, OperationRoomId, 4); //状态4 已排程
SaveSelectItem2(ApplyId, AIMSExtension.PublicMethod.SystemDate());
HelperDB.DbHelperSQL.CommitTrans();
@@ -1018,8 +1014,8 @@ namespace AIMS.OperationFront.UI
private void SaveSelectItem(int OperationApplyId, DateTime OperateDate)
{
//诊断
- Model.ApplyDiagnoseInfo ApplyDiagnoseInfoObj = new Model.ApplyDiagnoseInfo();
- BLL.ApplyDiagnoseInfo.Delete(OperationApplyId);
+ ApplyDiagnoseInfo ApplyDiagnoseInfoObj = new ApplyDiagnoseInfo();
+ BApplyDiagnoseInfo.Delete(OperationApplyId);
foreach (int DiseaseId in SelectDiseaseData)
{
ApplyDiagnoseInfoObj.OperationApplyId = OperationApplyId;
@@ -1027,14 +1023,14 @@ namespace AIMS.OperationFront.UI
ApplyDiagnoseInfoObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyDiagnoseInfoObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyDiagnoseInfoObj.OperateDate = OperateDate;
- BLL.ApplyDiagnoseInfo.Add(ApplyDiagnoseInfoObj);
+ BApplyDiagnoseInfo.Add(ApplyDiagnoseInfoObj);
}
//手术
- BLL.ApplyOperationInfo.Delete(OperationApplyId);
+ BApplyOperationInfo.Delete(OperationApplyId);
if (txtOperation.Tag != null && txtOperation.Text != "")
{
- Model.ApplyOperationInfo ApplyOperationInfoObj = new Model.ApplyOperationInfo();
+ ApplyOperationInfo ApplyOperationInfoObj = new ApplyOperationInfo();
ApplyOperationInfoObj.OperationApplyId = OperationApplyId;
ApplyOperationInfoObj.OperationId = int.Parse(txtOperation.Tag.ToString());
ApplyOperationInfoObj.OperationName = txtLeft.Text + txtOperation.Text + txtRight.Text;
@@ -1043,11 +1039,11 @@ namespace AIMS.OperationFront.UI
ApplyOperationInfoObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyOperationInfoObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyOperationInfoObj.OperateDate = OperateDate;
- BLL.ApplyOperationInfo.Add(ApplyOperationInfoObj);
+ BApplyOperationInfo.Add(ApplyOperationInfoObj);
}
if (txtOperation2.Tag != null && txtOperation2.Text != "")
{
- Model.ApplyOperationInfo ApplyOperationInfoObj = new Model.ApplyOperationInfo();
+ ApplyOperationInfo ApplyOperationInfoObj = new ApplyOperationInfo();
ApplyOperationInfoObj.OperationApplyId = OperationApplyId;
ApplyOperationInfoObj.OperationId = int.Parse(txtOperation2.Tag.ToString());
ApplyOperationInfoObj.OperationName = txtLeft2.Text + txtOperation2.Text + txtRight2.Text;
@@ -1056,11 +1052,11 @@ namespace AIMS.OperationFront.UI
ApplyOperationInfoObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyOperationInfoObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyOperationInfoObj.OperateDate = OperateDate;
- BLL.ApplyOperationInfo.Add(ApplyOperationInfoObj);
+ BApplyOperationInfo.Add(ApplyOperationInfoObj);
}
if (txtOperation3.Tag != null && txtOperation3.Text != "")
{
- Model.ApplyOperationInfo ApplyOperationInfoObj = new Model.ApplyOperationInfo();
+ ApplyOperationInfo ApplyOperationInfoObj = new ApplyOperationInfo();
ApplyOperationInfoObj.OperationApplyId = OperationApplyId;
ApplyOperationInfoObj.OperationId = int.Parse(txtOperation3.Tag.ToString());
ApplyOperationInfoObj.OperationName = txtLeft3.Text + txtOperation3.Text + txtRight3.Text;
@@ -1069,11 +1065,11 @@ namespace AIMS.OperationFront.UI
ApplyOperationInfoObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyOperationInfoObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyOperationInfoObj.OperateDate = OperateDate;
- BLL.ApplyOperationInfo.Add(ApplyOperationInfoObj);
+ BApplyOperationInfo.Add(ApplyOperationInfoObj);
}
if (txtOperation4.Tag != null && txtOperation4.Text != "")
{
- Model.ApplyOperationInfo ApplyOperationInfoObj = new Model.ApplyOperationInfo();
+ ApplyOperationInfo ApplyOperationInfoObj = new ApplyOperationInfo();
ApplyOperationInfoObj.OperationApplyId = OperationApplyId;
ApplyOperationInfoObj.OperationId = int.Parse(txtOperation4.Tag.ToString());
ApplyOperationInfoObj.OperationName = txtLeft4.Text + txtOperation4.Text + txtRight4.Text;
@@ -1082,11 +1078,11 @@ namespace AIMS.OperationFront.UI
ApplyOperationInfoObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyOperationInfoObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyOperationInfoObj.OperateDate = OperateDate;
- BLL.ApplyOperationInfo.Add(ApplyOperationInfoObj);
+ BApplyOperationInfo.Add(ApplyOperationInfoObj);
}
if (txtOperation5.Tag != null && txtOperation5.Text != "")
{
- Model.ApplyOperationInfo ApplyOperationInfoObj = new Model.ApplyOperationInfo();
+ ApplyOperationInfo ApplyOperationInfoObj = new ApplyOperationInfo();
ApplyOperationInfoObj.OperationApplyId = OperationApplyId;
ApplyOperationInfoObj.OperationId = int.Parse(txtOperation5.Tag.ToString());
ApplyOperationInfoObj.OperationName = txtLeft5.Text + txtOperation5.Text + txtRight5.Text;
@@ -1095,11 +1091,11 @@ namespace AIMS.OperationFront.UI
ApplyOperationInfoObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyOperationInfoObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyOperationInfoObj.OperateDate = OperateDate;
- BLL.ApplyOperationInfo.Add(ApplyOperationInfoObj);
+ BApplyOperationInfo.Add(ApplyOperationInfoObj);
}
//切口类型
- Model.ApplyOperationCutType ApplyOperationCutTypeObj = new Model.ApplyOperationCutType();
- BLL.ApplyOperationCutType.Delete(OperationApplyId);
+ ApplyOperationCutType ApplyOperationCutTypeObj = new ApplyOperationCutType();
+ BApplyOperationCutType.Delete(OperationApplyId);
foreach (int OperationCutTypeId in SelectOperationCutTypeData)
{
@@ -1108,11 +1104,11 @@ namespace AIMS.OperationFront.UI
ApplyOperationCutTypeObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyOperationCutTypeObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyOperationCutTypeObj.OperateDate = OperateDate;
- BLL.ApplyOperationCutType.Add(ApplyOperationCutTypeObj);
+ BApplyOperationCutType.Add(ApplyOperationCutTypeObj);
}
//手术部位
- Model.ApplyOperationPosition ApplyOperationPositionObj = new Model.ApplyOperationPosition();
- BLL.ApplyOperationPosition.Delete(OperationApplyId);
+ ApplyOperationPosition ApplyOperationPositionObj = new ApplyOperationPosition();
+ BApplyOperationPosition.Delete(OperationApplyId);
foreach (int OperationPositionId in SelectOperationPositionData)
{
ApplyOperationPositionObj.OperationApplyId = OperationApplyId;
@@ -1120,11 +1116,11 @@ namespace AIMS.OperationFront.UI
ApplyOperationPositionObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyOperationPositionObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyOperationPositionObj.OperateDate = OperateDate;
- BLL.ApplyOperationPosition.Add(ApplyOperationPositionObj);
+ BApplyOperationPosition.Add(ApplyOperationPositionObj);
}
//拟施麻醉
- Model.ApplyAnaesthesiaMethod ApplyAnaesthesiaMethodObj = new Model.ApplyAnaesthesiaMethod();
- BLL.ApplyAnaesthesiaMethod.Delete(OperationApplyId);
+ ApplyAnaesthesiaMethod ApplyAnaesthesiaMethodObj = new ApplyAnaesthesiaMethod();
+ BApplyAnaesthesiaMethod.Delete(OperationApplyId);
foreach (int AnaesthesiaMethodId in SelectAnaesthesiaMethodData)
{
ApplyAnaesthesiaMethodObj.OperationApplyId = OperationApplyId;
@@ -1132,11 +1128,11 @@ namespace AIMS.OperationFront.UI
ApplyAnaesthesiaMethodObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyAnaesthesiaMethodObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyAnaesthesiaMethodObj.OperateDate = OperateDate;
- BLL.ApplyAnaesthesiaMethod.Add(ApplyAnaesthesiaMethodObj);
+ BApplyAnaesthesiaMethod.Add(ApplyAnaesthesiaMethodObj);
}
//术者
- Model.ApplyPersonDuty ApplyPersonDutyOperationDoctor = new Model.ApplyPersonDuty();
- BLL.ApplyPersonDuty.Delete(OperationApplyId, 1);
+ ApplyPersonDuty ApplyPersonDutyOperationDoctor = new ApplyPersonDuty();
+ BApplyPersonDuty.Delete(OperationApplyId, 1);
foreach (int PersonId in SelectOperationDoctor)
{
ApplyPersonDutyOperationDoctor.OperationApplyId = OperationApplyId;
@@ -1145,12 +1141,12 @@ namespace AIMS.OperationFront.UI
ApplyPersonDutyOperationDoctor.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyOperationDoctor.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyOperationDoctor.OperateDate = OperateDate;
- BLL.ApplyPersonDuty.Add(ApplyPersonDutyOperationDoctor);
+ BApplyPersonDuty.Add(ApplyPersonDutyOperationDoctor);
}
//一助
- Model.ApplyPersonDuty ApplyPersonDutyAssistant1 = new Model.ApplyPersonDuty();
- BLL.ApplyPersonDuty.Delete(OperationApplyId, 2);
+ ApplyPersonDuty ApplyPersonDutyAssistant1 = new ApplyPersonDuty();
+ BApplyPersonDuty.Delete(OperationApplyId, 2);
foreach (int PersonId in SelectAssistant1Data)
{
ApplyPersonDutyAssistant1.OperationApplyId = OperationApplyId;
@@ -1159,11 +1155,11 @@ namespace AIMS.OperationFront.UI
ApplyPersonDutyAssistant1.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyAssistant1.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyAssistant1.OperateDate = OperateDate;
- BLL.ApplyPersonDuty.Add(ApplyPersonDutyAssistant1);
+ BApplyPersonDuty.Add(ApplyPersonDutyAssistant1);
}
//二助
- Model.ApplyPersonDuty ApplyPersonDutyAssistant2 = new Model.ApplyPersonDuty();
- BLL.ApplyPersonDuty.Delete(OperationApplyId, 3);
+ ApplyPersonDuty ApplyPersonDutyAssistant2 = new ApplyPersonDuty();
+ BApplyPersonDuty.Delete(OperationApplyId, 3);
foreach (int PersonId in SelectAssistant2Data)
{
ApplyPersonDutyAssistant2.OperationApplyId = OperationApplyId;
@@ -1172,11 +1168,11 @@ namespace AIMS.OperationFront.UI
ApplyPersonDutyAssistant2.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyAssistant2.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyAssistant2.OperateDate = OperateDate;
- BLL.ApplyPersonDuty.Add(ApplyPersonDutyAssistant2);
+ BApplyPersonDuty.Add(ApplyPersonDutyAssistant2);
}
//
- Model.ApplyPersonDuty ApplyPersonDutyAssistant3 = new Model.ApplyPersonDuty();
- BLL.ApplyPersonDuty.Delete(OperationApplyId, 4);
+ ApplyPersonDuty ApplyPersonDutyAssistant3 = new ApplyPersonDuty();
+ BApplyPersonDuty.Delete(OperationApplyId, 4);
foreach (int PersonId in SelectAssistant3Data)
{
ApplyPersonDutyAssistant3.OperationApplyId = OperationApplyId;
@@ -1185,7 +1181,7 @@ namespace AIMS.OperationFront.UI
ApplyPersonDutyAssistant3.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyAssistant3.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyAssistant3.OperateDate = OperateDate;
- BLL.ApplyPersonDuty.Add(ApplyPersonDutyAssistant3);
+ BApplyPersonDuty.Add(ApplyPersonDutyAssistant3);
}
}
@@ -1210,8 +1206,8 @@ namespace AIMS.OperationFront.UI
}
private void SaveSelectItem2(int OperationApplyId, DateTime OperateDate)
{
- Model.ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctor = new Model.ApplyPersonDuty();
- BLL.ApplyPersonDuty.Delete(OperationApplyId, 5);
+ ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctor = new ApplyPersonDuty();
+ BApplyPersonDuty.Delete(OperationApplyId, 5);
foreach (int PersonId in SelectAnesthesiaDoctorData)
{
ApplyPersonDutyAnesthesiaDoctor.OperationApplyId = OperationApplyId;
@@ -1220,11 +1216,11 @@ namespace AIMS.OperationFront.UI
ApplyPersonDutyAnesthesiaDoctor.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyAnesthesiaDoctor.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyAnesthesiaDoctor.OperateDate = OperateDate;
- BLL.ApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctor);
+ BApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctor);
}
- Model.ApplyPersonDuty ApplyPersonDutyInstrumentNurse = new Model.ApplyPersonDuty();
- BLL.ApplyPersonDuty.Delete(OperationApplyId, 6);
+ ApplyPersonDuty ApplyPersonDutyInstrumentNurse = new ApplyPersonDuty();
+ BApplyPersonDuty.Delete(OperationApplyId, 6);
foreach (int PersonId in SelectInstrumentNurseData)
{
ApplyPersonDutyInstrumentNurse.OperationApplyId = OperationApplyId;
@@ -1233,11 +1229,11 @@ namespace AIMS.OperationFront.UI
ApplyPersonDutyInstrumentNurse.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyInstrumentNurse.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyInstrumentNurse.OperateDate = OperateDate;
- BLL.ApplyPersonDuty.Add(ApplyPersonDutyInstrumentNurse);
+ BApplyPersonDuty.Add(ApplyPersonDutyInstrumentNurse);
}
- Model.ApplyPersonDuty ApplyPersonDutyTourNurse = new Model.ApplyPersonDuty();
- BLL.ApplyPersonDuty.Delete(OperationApplyId, 7);
+ ApplyPersonDuty ApplyPersonDutyTourNurse = new ApplyPersonDuty();
+ BApplyPersonDuty.Delete(OperationApplyId, 7);
foreach (int PersonId in SelectTourNurseData)
{
ApplyPersonDutyTourNurse.OperationApplyId = OperationApplyId;
@@ -1246,11 +1242,11 @@ namespace AIMS.OperationFront.UI
ApplyPersonDutyTourNurse.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyTourNurse.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyTourNurse.OperateDate = OperateDate;
- BLL.ApplyPersonDuty.Add(ApplyPersonDutyTourNurse);
+ BApplyPersonDuty.Add(ApplyPersonDutyTourNurse);
}
- Model.ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctorSucceed = new Model.ApplyPersonDuty();
- BLL.ApplyPersonDuty.Delete(OperationApplyId, 8);
+ ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctorSucceed = new ApplyPersonDuty();
+ BApplyPersonDuty.Delete(OperationApplyId, 8);
foreach (int PersonId in SelectAnesthesiaDoctorSucceedData)
{
ApplyPersonDutyAnesthesiaDoctorSucceed.OperationApplyId = OperationApplyId;
@@ -1259,11 +1255,11 @@ namespace AIMS.OperationFront.UI
ApplyPersonDutyAnesthesiaDoctorSucceed.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyAnesthesiaDoctorSucceed.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyAnesthesiaDoctorSucceed.OperateDate = OperateDate;
- BLL.ApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctorSucceed);
+ BApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctorSucceed);
}
- Model.ApplyPersonDuty ApplyPersonDutyInstrumentNurseSucceed = new Model.ApplyPersonDuty();
- BLL.ApplyPersonDuty.Delete(OperationApplyId, 9);
+ ApplyPersonDuty ApplyPersonDutyInstrumentNurseSucceed = new ApplyPersonDuty();
+ BApplyPersonDuty.Delete(OperationApplyId, 9);
foreach (int PersonId in SelectInstrumentNurseSucceedData)
{
ApplyPersonDutyInstrumentNurseSucceed.OperationApplyId = OperationApplyId;
@@ -1272,11 +1268,11 @@ namespace AIMS.OperationFront.UI
ApplyPersonDutyInstrumentNurseSucceed.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyInstrumentNurseSucceed.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyInstrumentNurseSucceed.OperateDate = OperateDate;
- BLL.ApplyPersonDuty.Add(ApplyPersonDutyInstrumentNurseSucceed);
+ BApplyPersonDuty.Add(ApplyPersonDutyInstrumentNurseSucceed);
}
- Model.ApplyPersonDuty ApplyPersonDutyTourNurseSucceed = new Model.ApplyPersonDuty();
- BLL.ApplyPersonDuty.Delete(OperationApplyId, 10);
+ ApplyPersonDuty ApplyPersonDutyTourNurseSucceed = new ApplyPersonDuty();
+ BApplyPersonDuty.Delete(OperationApplyId, 10);
foreach (int PersonId in SelectTourNurseSucceedData)
{
ApplyPersonDutyTourNurseSucceed.OperationApplyId = OperationApplyId;
@@ -1285,7 +1281,7 @@ namespace AIMS.OperationFront.UI
ApplyPersonDutyTourNurseSucceed.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyTourNurseSucceed.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyTourNurseSucceed.OperateDate = OperateDate;
- BLL.ApplyPersonDuty.Add(ApplyPersonDutyTourNurseSucceed);
+ BApplyPersonDuty.Add(ApplyPersonDutyTourNurseSucceed);
}
}
@@ -1430,7 +1426,7 @@ namespace AIMS.OperationFront.UI
SelectAnesthesiaDoctorData = frmAnesthesiaDoctor.SelectPersonData;
foreach (int RowId in frmAnesthesiaDoctor.SelectPersonData)
{
- txtAnesthesiaDoctor.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtAnesthesiaDoctor.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
txtAnesthesiaDoctor.Text = txtAnesthesiaDoctor.Text.Substring(0, txtAnesthesiaDoctor.Text.LastIndexOf(" ,"));
}
@@ -1455,7 +1451,7 @@ namespace AIMS.OperationFront.UI
SelectAnesthesiaDoctorSucceedData = frmAnesthesiaDoctorSucceed.SelectPersonData;
foreach (int RowId in frmAnesthesiaDoctorSucceed.SelectPersonData)
{
- txtAnesthesiaDoctorSucceed.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtAnesthesiaDoctorSucceed.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
txtAnesthesiaDoctorSucceed.Text = txtAnesthesiaDoctorSucceed.Text.Substring(0, txtAnesthesiaDoctorSucceed.Text.LastIndexOf(" ,"));
}
@@ -1481,7 +1477,7 @@ namespace AIMS.OperationFront.UI
SelectInstrumentNurseData = frmInstrumentNurse.SelectPersonData;
foreach (int RowId in frmInstrumentNurse.SelectPersonData)
{
- txtInstrumentNurse.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtInstrumentNurse.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
txtInstrumentNurse.Text = txtInstrumentNurse.Text.Substring(0, txtInstrumentNurse.Text.LastIndexOf(" ,"));
}
@@ -1506,7 +1502,7 @@ namespace AIMS.OperationFront.UI
SelectInstrumentNurseSucceedData = frmInstrumentNurseSucceed.SelectPersonData;
foreach (int RowId in frmInstrumentNurseSucceed.SelectPersonData)
{
- txtInstrumentNurseSucceed.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtInstrumentNurseSucceed.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
txtInstrumentNurseSucceed.Text = txtInstrumentNurseSucceed.Text.Substring(0, txtInstrumentNurseSucceed.Text.LastIndexOf(" ,"));
}
@@ -1531,7 +1527,7 @@ namespace AIMS.OperationFront.UI
SelectTourNurseData = frmTourNurse.SelectPersonData;
foreach (int RowId in frmTourNurse.SelectPersonData)
{
- txtTourNurse.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtTourNurse.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
txtTourNurse.Text = txtTourNurse.Text.Substring(0, txtTourNurse.Text.LastIndexOf(" ,"));
}
@@ -1556,7 +1552,7 @@ namespace AIMS.OperationFront.UI
SelectTourNurseSucceedData = frmTourNurseSucceed.SelectPersonData;
foreach (int RowId in frmTourNurseSucceed.SelectPersonData)
{
- txtTourNurseSucceed.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtTourNurseSucceed.Text += BPerson.SelectSingle(RowId).Name + " ,";
}
txtTourNurseSucceed.Text = txtTourNurseSucceed.Text.Substring(0, txtTourNurseSucceed.Text.LastIndexOf(" ,"));
}
diff --git a/AIMS/OperationFront/UI/frmOperationApplyDetail.resx b/AIMS/OperationFront/frmOperationApplyDetail.resx
similarity index 100%
rename from AIMS/OperationFront/UI/frmOperationApplyDetail.resx
rename to AIMS/OperationFront/frmOperationApplyDetail.resx
diff --git a/AIMS/OperationFront/UI/frmOperationFrontVisit.Designer.cs b/AIMS/OperationFront/frmOperationFrontVisit.Designer.cs
similarity index 100%
rename from AIMS/OperationFront/UI/frmOperationFrontVisit.Designer.cs
rename to AIMS/OperationFront/frmOperationFrontVisit.Designer.cs
diff --git a/AIMS/OperationFront/UI/frmOperationFrontVisit.cs b/AIMS/OperationFront/frmOperationFrontVisit.cs
similarity index 89%
rename from AIMS/OperationFront/UI/frmOperationFrontVisit.cs
rename to AIMS/OperationFront/frmOperationFrontVisit.cs
index 94f96c1..ba32a3a 100644
--- a/AIMS/OperationFront/UI/frmOperationFrontVisit.cs
+++ b/AIMS/OperationFront/frmOperationFrontVisit.cs
@@ -8,6 +8,8 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
+using AIMSModel;
+using AIMSBLL;
namespace AIMS.OperationFront.UI
{
@@ -29,9 +31,9 @@ namespace AIMS.OperationFront.UI
dtpBegInDate2.Value = DateTime.Parse(dtpBegInDate2.Value.ToString("yyyy-MM-dd"));
dtpEndDate2.Value = DateTime.Parse(dtpEndDate2.Value.ToString("yyyy-MM-dd")).AddDays(4);
- List list = new List();
- list = AIMS.PublicUI.BLL.Department.GetDepartmentAllList("诊疗部门");
- list.Insert(0, new AIMS.PublicUI.Model.Department
+ List list = new List();
+ list = BDepartment.GetDepartmentAllList("诊疗部门");
+ list.Insert(0, new Department
{
Id = -1,
Name = "全部科室"
@@ -46,9 +48,9 @@ namespace AIMS.OperationFront.UI
dtpEndDate2.Value = DateTime.Parse(dtpEndDate2.Value.ToString("yyyy-MM-dd")).AddDays(4);
- List list2 = new List();
- list2 = AIMS.PublicUI.BLL.Department.GetDepartmentAllList("诊疗部门");
- list2.Insert(0, new AIMS.PublicUI.Model.Department
+ List list2 = new List();
+ list2 = BDepartment.GetDepartmentAllList("诊疗部门");
+ list2.Insert(0, new Department
{
Id = -1,
Name = "全部科室"
@@ -71,7 +73,7 @@ namespace AIMS.OperationFront.UI
{
Department = "";
}
- DataTable dt = BLL.OperationApply.GetOperationFrontDataTableByPlanOperationTime(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.ToString("yyyy-MM-dd"));
+ DataTable dt = BOperationApply.GetOperationFrontDataTableByPlanOperationTime(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.ToString("yyyy-MM-dd"));
DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(dt, "State IN ('已排程') and ApplyDepName LIKE '%" + Department + "%' AND MdrecNo LIKE '%" + txtMdrecNo.Text.Trim() + "%'", "");
dgv1.DataSource = Newdt;
for (int i = 0; i < dgv1.Rows.Count; i++)
@@ -94,7 +96,7 @@ namespace AIMS.OperationFront.UI
{
Department = "";
}
- DataTable dt = BLL.OperationApply.GetOperationFrontDataTableByPlanOperationTime(dtpBegInDate2.Value.ToString("yyyy-MM-dd"), dtpEndDate2.Value.ToString("yyyy-MM-dd"));
+ DataTable dt = BOperationApply.GetOperationFrontDataTableByPlanOperationTime(dtpBegInDate2.Value.ToString("yyyy-MM-dd"), dtpEndDate2.Value.ToString("yyyy-MM-dd"));
DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(dt, "State IN ('已访视') and ApplyDepName LIKE '%" + Department + "%' AND MdrecNo LIKE '%" + txtMdrecNo.Text.Trim() + "%'", "");
dgv2.DataSource = Newdt;
for (int i = 0; i < dgv2.Rows.Count; i++)
diff --git a/AIMS/OperationFront/UI/frmOperationFrontVisit.resx b/AIMS/OperationFront/frmOperationFrontVisit.resx
similarity index 100%
rename from AIMS/OperationFront/UI/frmOperationFrontVisit.resx
rename to AIMS/OperationFront/frmOperationFrontVisit.resx
diff --git a/AIMS/OperationFront/UI/frmOperationPlan.Designer.cs b/AIMS/OperationFront/frmOperationPlan.Designer.cs
similarity index 100%
rename from AIMS/OperationFront/UI/frmOperationPlan.Designer.cs
rename to AIMS/OperationFront/frmOperationPlan.Designer.cs
diff --git a/AIMS/OperationFront/UI/frmOperationPlan.cs b/AIMS/OperationFront/frmOperationPlan.cs
similarity index 91%
rename from AIMS/OperationFront/UI/frmOperationPlan.cs
rename to AIMS/OperationFront/frmOperationPlan.cs
index 177e57f..abbd389 100644
--- a/AIMS/OperationFront/UI/frmOperationPlan.cs
+++ b/AIMS/OperationFront/frmOperationPlan.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -37,9 +39,9 @@ namespace AIMS.OperationFront.UI
dtpBegInDate.Value = DateTime.Parse(dtpBegInDate.Value.ToString("yyyy-MM-dd"));
dtpEndDate.Value = DateTime.Parse(dtpEndDate.Value.ToString("yyyy-MM-dd")).AddDays(4);
- List list = new List();
- list = AIMS.PublicUI.BLL.Department.GetDepartmentAllList("诊疗部门");
- list.Insert(0, new AIMS.PublicUI.Model.Department
+ List list = new List();
+ list = BDepartment.GetDepartmentAllList("诊疗部门");
+ list.Insert(0, new Department
{
Id = -1,
Name = "全部科室"
@@ -55,9 +57,9 @@ namespace AIMS.OperationFront.UI
dtpEndDate2.Value = DateTime.Parse(dtpEndDate2.Value.ToString("yyyy-MM-dd")).AddDays(4);
- List list2 = new List();
- list2 = AIMS.PublicUI.BLL.Department.GetDepartmentAllList("诊疗部门");
- list2.Insert(0, new AIMS.PublicUI.Model.Department
+ List list2 = new List();
+ list2 = BDepartment.GetDepartmentAllList("诊疗部门");
+ list2.Insert(0, new Department
{
Id = -1,
Name = "全部科室"
@@ -88,7 +90,7 @@ namespace AIMS.OperationFront.UI
{
Department = "";
}
- DataTable dt = BLL.OperationApply.GetOperationFrontDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.ToString("yyyy-MM-dd"));
+ DataTable dt = BOperationApply.GetOperationFrontDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.ToString("yyyy-MM-dd"));
DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(dt, "OperationType <>'特急' and State IN ('已审核') and ApplyDepName LIKE '%" + Department + "%' AND MdrecNo LIKE '%" + txtMdrecNo.Text.Trim() + "%'", "");
dgv1.DataSource = Newdt;
for (int i = 0; i < dgv1.Rows.Count; i++)
@@ -180,7 +182,7 @@ namespace AIMS.OperationFront.UI
{
Department = "";
}
- DataTable dt = BLL.OperationApply.GetOperationFrontDataTable(dtpBegInDate2.Value.ToString("yyyy-MM-dd"), dtpEndDate2.Value.ToString("yyyy-MM-dd"));
+ DataTable dt = BOperationApply.GetOperationFrontDataTable(dtpBegInDate2.Value.ToString("yyyy-MM-dd"), dtpEndDate2.Value.ToString("yyyy-MM-dd"));
DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(dt, "OperationType <>'特急' and State IN ('已排程') and ApplyDepName LIKE '%" + Department + "%' AND MdrecNo LIKE '%" + txtMdrecNo.Text.Trim() + "%'", "");
dgv2.DataSource = Newdt;
for (int i = 0; i < dgv2.Rows.Count; i++)
diff --git a/AIMS/OperationFront/UI/frmOperationPlan.resx b/AIMS/OperationFront/frmOperationPlan.resx
similarity index 100%
rename from AIMS/OperationFront/UI/frmOperationPlan.resx
rename to AIMS/OperationFront/frmOperationPlan.resx
diff --git a/AIMS/OperationFront/UI/frmOperationPlanDetail.Designer.cs b/AIMS/OperationFront/frmOperationPlanDetail.Designer.cs
similarity index 100%
rename from AIMS/OperationFront/UI/frmOperationPlanDetail.Designer.cs
rename to AIMS/OperationFront/frmOperationPlanDetail.Designer.cs
diff --git a/AIMS/OperationFront/UI/frmOperationPlanDetail.cs b/AIMS/OperationFront/frmOperationPlanDetail.cs
similarity index 83%
rename from AIMS/OperationFront/UI/frmOperationPlanDetail.cs
rename to AIMS/OperationFront/frmOperationPlanDetail.cs
index 67fd970..61bdd5f 100644
--- a/AIMS/OperationFront/UI/frmOperationPlanDetail.cs
+++ b/AIMS/OperationFront/frmOperationPlanDetail.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -37,12 +39,12 @@ namespace AIMS.OperationFront.UI
{
cboOperationRoom.DisplayMember = "Name";
cboOperationRoom.ValueMember = "Id";
- cboOperationRoom.DataSource = DataDictionary.BLL.OperationRoom.GetDataTable("IsValid=1");
+ cboOperationRoom.DataSource = BOperationRoom.GetDataTable("IsValid=1");
cboOperationRoom.SelectedIndex = -1;
if (CheckBoxApplyIdList.Count > 0)
{
- DataTable dt = BLL.OperationApply.GetOperationFrontByApplyId(CheckBoxApplyIdList);
+ DataTable dt = BOperationApply.GetOperationFrontByApplyId(CheckBoxApplyIdList);
for (int i = 0; i < dt.Rows.Count; i++)
{
dgv.Rows.Add(dt.Rows[i]["ApplyId"],
@@ -66,44 +68,44 @@ namespace AIMS.OperationFront.UI
if (CheckBoxApplyIdList.Count > 0)
{
int ApplyId = int.Parse(CheckBoxApplyIdList[0].ToString());
- Model.OperationApply OperationApplyObj = BLL.OperationApply.GetModel(ApplyId);
- dtpPlanOperationTime.Value = OperationApplyObj.PlanOperationTime;
+ OperationApply OperationApplyObj = BOperationApply.GetModel(ApplyId);
+ dtpPlanOperationTime.Value = OperationApplyObj.PlanOperationTime.Value;
cboOperationRoom.SelectedValue = int.Parse(OperationApplyObj.OperationRoomId.ToString());
- SelectAnesthesiaDoctorData = BLL.ApplyPersonDuty.GetPersonIdList(ApplyId, 5);
+ SelectAnesthesiaDoctorData = BApplyPersonDuty.GetPersonIdList(ApplyId, 5);
foreach (int RowId in SelectAnesthesiaDoctorData)
{
- txtAnesthesiaDoctor.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtAnesthesiaDoctor.Text += BPerson.GetModel(RowId).Name + " ,";
}
if (SelectAnesthesiaDoctorData.Count > 0)
{
txtAnesthesiaDoctor.Text = txtAnesthesiaDoctor.Text.Substring(0, txtAnesthesiaDoctor.Text.LastIndexOf(" ,"));
}
- SelectInstrumentNurseData = BLL.ApplyPersonDuty.GetPersonIdList(ApplyId, 6);
+ SelectInstrumentNurseData = BApplyPersonDuty.GetPersonIdList(ApplyId, 6);
foreach (int RowId in SelectInstrumentNurseData)
{
- txtInstrumentNurse.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtInstrumentNurse.Text += BPerson.GetModel(RowId).Name + " ,";
}
if (SelectInstrumentNurseData.Count > 0)
{
txtInstrumentNurse.Text = txtInstrumentNurse.Text.Substring(0, txtInstrumentNurse.Text.LastIndexOf(" ,"));
}
- SelectTourNurseData = BLL.ApplyPersonDuty.GetPersonIdList(ApplyId, 7);
+ SelectTourNurseData = BApplyPersonDuty.GetPersonIdList(ApplyId, 7);
foreach (int RowId in SelectTourNurseData)
{
- txtTourNurse.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtTourNurse.Text += BPerson.GetModel(RowId).Name + " ,";
}
if (SelectTourNurseData.Count > 0)
{
txtTourNurse.Text = txtTourNurse.Text.Substring(0, txtTourNurse.Text.LastIndexOf(" ,"));
}
- SelectAnesthesiaDoctorSucceedData = BLL.ApplyPersonDuty.GetPersonIdList(ApplyId, 8);
+ SelectAnesthesiaDoctorSucceedData = BApplyPersonDuty.GetPersonIdList(ApplyId, 8);
foreach (int RowId in SelectAnesthesiaDoctorSucceedData)
{
- txtAnesthesiaDoctorSucceed.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtAnesthesiaDoctorSucceed.Text += BPerson.GetModel(RowId).Name + " ,";
}
if (SelectAnesthesiaDoctorSucceedData.Count > 0)
{
@@ -111,10 +113,10 @@ namespace AIMS.OperationFront.UI
}
- SelectInstrumentNurseSucceedData = BLL.ApplyPersonDuty.GetPersonIdList(ApplyId, 9);
+ SelectInstrumentNurseSucceedData = BApplyPersonDuty.GetPersonIdList(ApplyId, 9);
foreach (int RowId in SelectInstrumentNurseSucceedData)
{
- txtInstrumentNurseSucceed.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtInstrumentNurseSucceed.Text += BPerson.GetModel(RowId).Name + " ,";
}
if (SelectInstrumentNurseSucceedData.Count > 0)
{
@@ -122,10 +124,10 @@ namespace AIMS.OperationFront.UI
}
- SelectTourNurseSucceedData = BLL.ApplyPersonDuty.GetPersonIdList(ApplyId, 10);
+ SelectTourNurseSucceedData = BApplyPersonDuty.GetPersonIdList(ApplyId, 10);
foreach (int RowId in SelectTourNurseSucceedData)
{
- txtTourNurseSucceed.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtTourNurseSucceed.Text += BPerson.GetModel(RowId).Name + " ,";
}
if (SelectTourNurseSucceedData.Count > 0)
{
@@ -154,11 +156,11 @@ namespace AIMS.OperationFront.UI
if (State == AIMSExtension.EditState.ADD)
{
- BLL.OperationApply.UpdatePlanOperationTime(ApplyId, PlanOperationTime, OperationRoomId, 3); //状态3 预排程
+ BOperationApply.UpdatePlanOperationTime(ApplyId, PlanOperationTime, OperationRoomId, 3); //状态3 预排程
}
if (State == AIMSExtension.EditState.EDIT)
{
- BLL.OperationApply.UpdatePlanOperationTime(ApplyId, PlanOperationTime, OperationRoomId, 4); //状态4 已排程
+ BOperationApply.UpdatePlanOperationTime(ApplyId, PlanOperationTime, OperationRoomId, 4); //状态4 已排程
}
SaveSelectItem(ApplyId, AIMSExtension.PublicMethod.SystemDate());
@@ -176,8 +178,8 @@ namespace AIMS.OperationFront.UI
private void SaveSelectItem(int OperationApplyId, DateTime OperateDate)
{
- Model.ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctor = new Model.ApplyPersonDuty();
- BLL.ApplyPersonDuty.Delete(OperationApplyId, 5);
+ ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctor = new ApplyPersonDuty();
+ BApplyPersonDuty.Delete(OperationApplyId, 5);
foreach (int PersonId in SelectAnesthesiaDoctorData)
{
ApplyPersonDutyAnesthesiaDoctor.OperationApplyId = OperationApplyId;
@@ -186,11 +188,11 @@ namespace AIMS.OperationFront.UI
ApplyPersonDutyAnesthesiaDoctor.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyAnesthesiaDoctor.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyAnesthesiaDoctor.OperateDate = OperateDate;
- BLL.ApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctor);
+ BApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctor);
}
- Model.ApplyPersonDuty ApplyPersonDutyInstrumentNurse = new Model.ApplyPersonDuty();
- BLL.ApplyPersonDuty.Delete(OperationApplyId, 6);
+ ApplyPersonDuty ApplyPersonDutyInstrumentNurse = new ApplyPersonDuty();
+ BApplyPersonDuty.Delete(OperationApplyId, 6);
foreach (int PersonId in SelectInstrumentNurseData)
{
ApplyPersonDutyInstrumentNurse.OperationApplyId = OperationApplyId;
@@ -199,11 +201,11 @@ namespace AIMS.OperationFront.UI
ApplyPersonDutyInstrumentNurse.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyInstrumentNurse.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyInstrumentNurse.OperateDate = OperateDate;
- BLL.ApplyPersonDuty.Add(ApplyPersonDutyInstrumentNurse);
+ BApplyPersonDuty.Add(ApplyPersonDutyInstrumentNurse);
}
- Model.ApplyPersonDuty ApplyPersonDutyTourNurse = new Model.ApplyPersonDuty();
- BLL.ApplyPersonDuty.Delete(OperationApplyId, 7);
+ ApplyPersonDuty ApplyPersonDutyTourNurse = new ApplyPersonDuty();
+ BApplyPersonDuty.Delete(OperationApplyId, 7);
foreach (int PersonId in SelectTourNurseData)
{
ApplyPersonDutyTourNurse.OperationApplyId = OperationApplyId;
@@ -212,11 +214,11 @@ namespace AIMS.OperationFront.UI
ApplyPersonDutyTourNurse.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyTourNurse.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyTourNurse.OperateDate = OperateDate;
- BLL.ApplyPersonDuty.Add(ApplyPersonDutyTourNurse);
+ BApplyPersonDuty.Add(ApplyPersonDutyTourNurse);
}
- Model.ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctorSucceed = new Model.ApplyPersonDuty();
- BLL.ApplyPersonDuty.Delete(OperationApplyId, 8);
+ ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctorSucceed = new ApplyPersonDuty();
+ BApplyPersonDuty.Delete(OperationApplyId, 8);
foreach (int PersonId in SelectAnesthesiaDoctorSucceedData)
{
ApplyPersonDutyAnesthesiaDoctorSucceed.OperationApplyId = OperationApplyId;
@@ -225,11 +227,11 @@ namespace AIMS.OperationFront.UI
ApplyPersonDutyAnesthesiaDoctorSucceed.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyAnesthesiaDoctorSucceed.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyAnesthesiaDoctorSucceed.OperateDate = OperateDate;
- BLL.ApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctorSucceed);
+ BApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctorSucceed);
}
- Model.ApplyPersonDuty ApplyPersonDutyInstrumentNurseSucceed = new Model.ApplyPersonDuty();
- BLL.ApplyPersonDuty.Delete(OperationApplyId, 9);
+ ApplyPersonDuty ApplyPersonDutyInstrumentNurseSucceed = new ApplyPersonDuty();
+ BApplyPersonDuty.Delete(OperationApplyId, 9);
foreach (int PersonId in SelectInstrumentNurseSucceedData)
{
ApplyPersonDutyInstrumentNurseSucceed.OperationApplyId = OperationApplyId;
@@ -238,11 +240,11 @@ namespace AIMS.OperationFront.UI
ApplyPersonDutyInstrumentNurseSucceed.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyInstrumentNurseSucceed.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyInstrumentNurseSucceed.OperateDate = OperateDate;
- BLL.ApplyPersonDuty.Add(ApplyPersonDutyInstrumentNurseSucceed);
+ BApplyPersonDuty.Add(ApplyPersonDutyInstrumentNurseSucceed);
}
- Model.ApplyPersonDuty ApplyPersonDutyTourNurseSucceed = new Model.ApplyPersonDuty();
- BLL.ApplyPersonDuty.Delete(OperationApplyId, 10);
+ ApplyPersonDuty ApplyPersonDutyTourNurseSucceed = new ApplyPersonDuty();
+ BApplyPersonDuty.Delete(OperationApplyId, 10);
foreach (int PersonId in SelectTourNurseSucceedData)
{
ApplyPersonDutyTourNurseSucceed.OperationApplyId = OperationApplyId;
@@ -251,7 +253,7 @@ namespace AIMS.OperationFront.UI
ApplyPersonDutyTourNurseSucceed.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyTourNurseSucceed.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyTourNurseSucceed.OperateDate = OperateDate;
- BLL.ApplyPersonDuty.Add(ApplyPersonDutyTourNurseSucceed);
+ BApplyPersonDuty.Add(ApplyPersonDutyTourNurseSucceed);
}
}
@@ -300,7 +302,7 @@ namespace AIMS.OperationFront.UI
SelectAnesthesiaDoctorData = frmAnesthesiaDoctor.SelectPersonData;
foreach (int RowId in frmAnesthesiaDoctor.SelectPersonData)
{
- txtAnesthesiaDoctor.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtAnesthesiaDoctor.Text += BPerson.GetModel(RowId).Name + " ,";
}
txtAnesthesiaDoctor.Text = txtAnesthesiaDoctor.Text.Substring(0, txtAnesthesiaDoctor.Text.LastIndexOf(" ,"));
}
@@ -324,7 +326,7 @@ namespace AIMS.OperationFront.UI
SelectAnesthesiaDoctorSucceedData = frmAnesthesiaDoctorSucceed.SelectPersonData;
foreach (int RowId in frmAnesthesiaDoctorSucceed.SelectPersonData)
{
- txtAnesthesiaDoctorSucceed.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtAnesthesiaDoctorSucceed.Text += BPerson.GetModel(RowId).Name + " ,";
}
txtAnesthesiaDoctorSucceed.Text = txtAnesthesiaDoctorSucceed.Text.Substring(0, txtAnesthesiaDoctorSucceed.Text.LastIndexOf(" ,"));
}
@@ -349,7 +351,7 @@ namespace AIMS.OperationFront.UI
SelectInstrumentNurseData = frmInstrumentNurse.SelectPersonData ;
foreach (int RowId in frmInstrumentNurse.SelectPersonData)
{
- txtInstrumentNurse.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtInstrumentNurse.Text += BPerson.GetModel(RowId).Name + " ,";
}
txtInstrumentNurse.Text = txtInstrumentNurse.Text.Substring(0, txtInstrumentNurse.Text.LastIndexOf(" ,"));
}
@@ -373,7 +375,7 @@ namespace AIMS.OperationFront.UI
SelectInstrumentNurseSucceedData = frmInstrumentNurseSucceed.SelectPersonData;
foreach (int RowId in frmInstrumentNurseSucceed.SelectPersonData)
{
- txtInstrumentNurseSucceed.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtInstrumentNurseSucceed.Text += BPerson.GetModel(RowId).Name + " ,";
}
txtInstrumentNurseSucceed.Text = txtInstrumentNurseSucceed.Text.Substring(0, txtInstrumentNurseSucceed.Text.LastIndexOf(" ,"));
}
@@ -397,7 +399,7 @@ namespace AIMS.OperationFront.UI
SelectTourNurseData = frmTourNurse.SelectPersonData;
foreach (int RowId in frmTourNurse.SelectPersonData)
{
- txtTourNurse.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtTourNurse.Text += BPerson.GetModel(RowId).Name + " ,";
}
txtTourNurse.Text = txtTourNurse.Text.Substring(0, txtTourNurse.Text.LastIndexOf(" ,"));
}
@@ -421,7 +423,7 @@ namespace AIMS.OperationFront.UI
SelectTourNurseSucceedData = frmTourNurseSucceed.SelectPersonData;
foreach (int RowId in frmTourNurseSucceed.SelectPersonData)
{
- txtTourNurseSucceed.Text += AIMS.PublicUI.BLL.Person.GetModel(RowId).Name + " ,";
+ txtTourNurseSucceed.Text += BPerson.GetModel(RowId).Name + " ,";
}
txtTourNurseSucceed.Text = txtTourNurseSucceed.Text.Substring(0, txtTourNurseSucceed.Text.LastIndexOf(" ,"));
}
diff --git a/AIMS/OperationFront/UI/frmOperationPlanDetail.resx b/AIMS/OperationFront/frmOperationPlanDetail.resx
similarity index 100%
rename from AIMS/OperationFront/UI/frmOperationPlanDetail.resx
rename to AIMS/OperationFront/frmOperationPlanDetail.resx
diff --git a/AIMS/OperationFront/UI/frmOperationSchedulePlan.cs b/AIMS/OperationFront/frmOperationSchedulePlan.cs
similarity index 98%
rename from AIMS/OperationFront/UI/frmOperationSchedulePlan.cs
rename to AIMS/OperationFront/frmOperationSchedulePlan.cs
index 3ac8ce0..fba9a7f 100644
--- a/AIMS/OperationFront/UI/frmOperationSchedulePlan.cs
+++ b/AIMS/OperationFront/frmOperationSchedulePlan.cs
@@ -3787,7 +3787,7 @@ namespace AIMS.OperationFront.UI
public void LoadOperationInfo(int UpdateRoom)
{
- NowPatientDataTable = BLL.OperationApply.GetOperationFrontDataTable(dtpSearchTime.Value.ToString("yyyy-MM-dd 00:00:00"), dtpSearchTime.Value.ToString("yyyy-MM-dd 23:59:59"));
+ NowPatientDataTable = BOperationApply.GetOperationFrontDataTable(dtpSearchTime.Value.ToString("yyyy-MM-dd 00:00:00"), dtpSearchTime.Value.ToString("yyyy-MM-dd 23:59:59"));
foreach (ucPlanOperationRoomCard item in ucOpeRooms)
{
if (item.operationRoom.Id.Value != UpdateRoom) continue;
@@ -3799,7 +3799,7 @@ namespace AIMS.OperationFront.UI
}
public void LoadOperationInfoDgv(int UpdateRoom)
{
- NowPatientDataTable = BLL.OperationApply.GetOperationFrontDataTable(dtpSearchTime.Value.ToString("yyyy-MM-dd 00:00:00"), dtpSearchTime.Value.ToString("yyyy-MM-dd 23:59:59"));
+ NowPatientDataTable = BOperationApply.GetOperationFrontDataTable(dtpSearchTime.Value.ToString("yyyy-MM-dd 00:00:00"), dtpSearchTime.Value.ToString("yyyy-MM-dd 23:59:59"));
foreach (ucPlanOperationRoomCard item in ucOpeRooms)
{
if (item.operationRoom.Id.Value != UpdateRoom) continue;
@@ -3817,7 +3817,7 @@ namespace AIMS.OperationFront.UI
///
public void LoadSelectDate(string selname)
{
- NowPatientDataTable = BLL.OperationApply.GetOperationFrontDataTable(dtpSearchTime.Value.ToString("yyyy-MM-dd 00:00:00"), dtpSearchTime.Value.ToString("yyyy-MM-dd 23:59:59"));
+ NowPatientDataTable = BOperationApply.GetOperationFrontDataTable(dtpSearchTime.Value.ToString("yyyy-MM-dd 00:00:00"), dtpSearchTime.Value.ToString("yyyy-MM-dd 23:59:59"));
DataTable Newdt = new DataTable();
if (selname == "")
Newdt = AIMSExtension.PublicMethod.GetNewDataTable(NowPatientDataTable, "State IN ('') ", "");
@@ -3945,7 +3945,7 @@ namespace AIMS.OperationFront.UI
}
opeapply.OperationRoomId = room;
opeapply.PlanOperationTime = dtpSearchTime.Value;
- opeapply.PlanOrder = BLL.OperationApply.GetMaxPlanOrder(opeapply.PlanOperationTime.Value, opeapply.OperationRoomId.Value) + 1;
+ opeapply.PlanOrder = BOperationApply.GetMaxPlanOrder(opeapply.PlanOperationTime.Value, opeapply.OperationRoomId.Value) + 1;
return BOperationApply.Update(opeapply);
}
///
@@ -3960,41 +3960,41 @@ namespace AIMS.OperationFront.UI
if (_workerType == workerType.AnesthesiaDoctor)
{
//BLL.ApplyPersonDuty.Delete(applyId, 5);
- Model.ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctor = new Model.ApplyPersonDuty();
+ ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctor = new ApplyPersonDuty();
ApplyPersonDutyAnesthesiaDoctor.OperationApplyId = applyId;
ApplyPersonDutyAnesthesiaDoctor.PersonDutyId = 5; // ҽ
ApplyPersonDutyAnesthesiaDoctor.PersonId = int.Parse(dnIDs);
ApplyPersonDutyAnesthesiaDoctor.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyAnesthesiaDoctor.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyAnesthesiaDoctor.OperateDate = DateTime.Now;
- res += BLL.ApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctor);
+ res += BApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctor);
}
else
{
if (_workerType == workerType.InstrumentNurse)
{
//BLL.ApplyPersonDuty.Delete(applyId, 6);
- Model.ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctor = new Model.ApplyPersonDuty();
+ ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctor = new ApplyPersonDuty();
ApplyPersonDutyAnesthesiaDoctor.OperationApplyId = applyId;
ApplyPersonDutyAnesthesiaDoctor.PersonDutyId = 6;
ApplyPersonDutyAnesthesiaDoctor.PersonId = int.Parse(dnIDs);
ApplyPersonDutyAnesthesiaDoctor.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyAnesthesiaDoctor.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyAnesthesiaDoctor.OperateDate = DateTime.Now;
- res += BLL.ApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctor);
+ res += BApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctor);
}
if (_workerType == workerType.TourNurse)
{
//BLL.ApplyPersonDuty.Delete(applyId, 7);
- Model.ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctor = new Model.ApplyPersonDuty();
+ ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctor = new ApplyPersonDuty();
ApplyPersonDutyAnesthesiaDoctor.OperationApplyId = applyId;
ApplyPersonDutyAnesthesiaDoctor.PersonDutyId = 7;
ApplyPersonDutyAnesthesiaDoctor.PersonId = int.Parse(dnIDs);
ApplyPersonDutyAnesthesiaDoctor.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
ApplyPersonDutyAnesthesiaDoctor.OperatorName = AIMSExtension.PublicMethod.OperatorName;
ApplyPersonDutyAnesthesiaDoctor.OperateDate = DateTime.Now;
- res += BLL.ApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctor);
+ res += BApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctor);
}
}
return res;
@@ -4048,7 +4048,7 @@ namespace AIMS.OperationFront.UI
{
try
{
- BLL.OperationApply.UpdateApplyState(int.Parse(selApply), 10);
+ BOperationApply.UpdateApplyState(int.Parse(selApply), 10);
outMsg = string.Format("{2} ֹͣ :{0} :{1} ɹ", grCurrentSub.Cells["Patient"].Value, grCurrentSub.Cells["OperationName"].Value, RoomCardManage.lastSelectOpeRoom.operationRoom.Name);
RoomCardManage.WriteMsg(rtbLog, outMsg);
@@ -4071,7 +4071,7 @@ namespace AIMS.OperationFront.UI
try
{
OperationRoom opeRoom = (sender as ToolStripItem).Tag as OperationRoom;
- BLL.OperationApply.UpdateApplyRoom(int.Parse(selApply), opeRoom.Id.Value);
+ BOperationApply.UpdateApplyRoom(int.Parse(selApply), opeRoom.Id.Value);
outMsg = string.Format("{2} :{0} {1} ɹ", grCurrentSub.Cells["Patient"].Value, opeRoom, RoomCardManage.lastSelectOpeRoom.operationRoom.Name);
RoomCardManage.WriteMsg(rtbLog, outMsg);
LoadOperationInfo(RoomCardManage.lastSelectOpeRoom.operationRoom.Id.Value);
@@ -4087,7 +4087,7 @@ namespace AIMS.OperationFront.UI
private void ȡųͨToolStripMenuItem_Click(object sender, EventArgs e)
{
- DataTable dt = BLL.OperationApply.GetOperationFrontDataTable(dtpSearchTime.Value.ToString("yyyy-MM-dd"), dtpSearchTime.Value.AddDays(1).ToString("yyyy-MM-dd"));
+ DataTable dt = BOperationApply.GetOperationFrontDataTable(dtpSearchTime.Value.ToString("yyyy-MM-dd"), dtpSearchTime.Value.AddDays(1).ToString("yyyy-MM-dd"));
DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(dt, "OperationType <>'ؼ' and State IN ('Ԥų','ų')", "");
if (Newdt.Rows.Count > 0)
{
@@ -4095,7 +4095,7 @@ namespace AIMS.OperationFront.UI
{
int ApplyId = int.Parse(Newdt.Rows[i]["ApplyId"].ToString());
- BLL.OperationApply.UpdateApplyState(ApplyId, 3);
+ BOperationApply.UpdateApplyState(ApplyId, 3);
}
MessageBox.Show("ȡͨɹ", "ϵͳʾ");
@@ -4106,7 +4106,7 @@ namespace AIMS.OperationFront.UI
private void btnPlan_Click(object sender, EventArgs e)
{
- NowPatientDataTable = BLL.OperationApply.GetOperationFrontDataTable(dtpSearchTime.Value.ToString("yyyy-MM-dd 00:00:00"), dtpSearchTime.Value.ToString("yyyy-MM-dd 23:59:59"));
+ NowPatientDataTable = BOperationApply.GetOperationFrontDataTable(dtpSearchTime.Value.ToString("yyyy-MM-dd 00:00:00"), dtpSearchTime.Value.ToString("yyyy-MM-dd 23:59:59"));
DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(NowPatientDataTable, " State <> '˻' ", "");
if (Newdt == null || Newdt.Rows.Count <= 0) return;
frmSelectiveOperationsPrint frm = new frmSelectiveOperationsPrint();
@@ -4118,7 +4118,7 @@ namespace AIMS.OperationFront.UI
private void button3_Click(object sender, EventArgs e)
{
- NowPatientDataTable = BLL.OperationApply.GetOperationFrontDataTable(dtpSearchTime.Value.ToString("yyyy-MM-dd 00:00:00"), dtpSearchTime.Value.ToString("yyyy-MM-dd 23:59:59"));
+ NowPatientDataTable = BOperationApply.GetOperationFrontDataTable(dtpSearchTime.Value.ToString("yyyy-MM-dd 00:00:00"), dtpSearchTime.Value.ToString("yyyy-MM-dd 23:59:59"));
DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(NowPatientDataTable, " State <> '˻' ", "");
if (Newdt == null || Newdt.Rows.Count <= 0) return;
frmPrintingArrangemen frm = new frmPrintingArrangemen();
@@ -4267,12 +4267,12 @@ namespace AIMS.OperationFront.UI
}
if (_workerType == workerType.AnesthesiaDoctor)
{
- SchedulingTable = AIMS.PublicUI.BLL.Person.GetSchedulingForSelect(dtpSearchTime.Value, "ҽ");//MZKDept[0].Id.Value
+ SchedulingTable = BPerson.GetSchedulingForSelect(dtpSearchTime.Value, "ҽ");//MZKDept[0].Id.Value
RoomCardManage.SelectDgv.DataSource = SchedulingTable;
}
else
{
- SchedulingTable = AIMS.PublicUI.BLL.Person.GetSchedulingForSelect(dtpSearchTime.Value, "ʿ");//SSSDept[0].Id.Value
+ SchedulingTable = BPerson.GetSchedulingForSelect(dtpSearchTime.Value, "ʿ");//SSSDept[0].Id.Value
RoomCardManage.SelectDgv.DataSource = SchedulingTable;
}
}
@@ -4435,8 +4435,8 @@ namespace AIMS.OperationFront.UI
if (SelGridRow == null)
return;
- BLL.OperationApply.UpdatePlanOrder(Convert.ToInt32(SelGridRow.Cells[0].Value), Convert.ToInt32(stepGridRow.Cells[1].Value));
- BLL.OperationApply.UpdatePlanOrder(Convert.ToInt32(stepGridRow.Cells[0].Value), Convert.ToInt32(SelGridRow.Cells[1].Value));
+ BOperationApply.UpdatePlanOrder(Convert.ToInt32(SelGridRow.Cells[0].Value), Convert.ToInt32(stepGridRow.Cells[1].Value));
+ BOperationApply.UpdatePlanOrder(Convert.ToInt32(stepGridRow.Cells[0].Value), Convert.ToInt32(SelGridRow.Cells[1].Value));
//int tempIndex = Convert.ToInt32(SelGridRow.Cells[1].Value);
//SelGridRow.Cells[1].Value = stepGridRow.Cells[1].Value;
@@ -4546,7 +4546,7 @@ namespace AIMS.OperationFront.UI
private void button1_Click(object sender, EventArgs e)
{
- DataTable dt = BLL.OperationApply.GetOperationFrontDataTable(dtpSearchTime.Value.ToString("yyyy-MM-dd"), dtpSearchTime.Value.AddDays(1).ToString("yyyy-MM-dd"));
+ DataTable dt = BOperationApply.GetOperationFrontDataTable(dtpSearchTime.Value.ToString("yyyy-MM-dd"), dtpSearchTime.Value.AddDays(1).ToString("yyyy-MM-dd"));
DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(dt, "OperationType <>'ؼ' and State IN ('Ԥų')", "");
if (Newdt.Rows.Count > 0)
{
@@ -4554,7 +4554,7 @@ namespace AIMS.OperationFront.UI
{
int ApplyId = int.Parse(Newdt.Rows[i]["ApplyId"].ToString());
- BLL.OperationApply.UpdateApplyState(ApplyId, 4);
+ BOperationApply.UpdateApplyState(ApplyId, 4);
}
LoadSelectDate("");
LoadOperationInfo();
diff --git a/AIMS/OperationFront/UI/frmOperationSchedulePlan.resx b/AIMS/OperationFront/frmOperationSchedulePlan.resx
similarity index 100%
rename from AIMS/OperationFront/UI/frmOperationSchedulePlan.resx
rename to AIMS/OperationFront/frmOperationSchedulePlan.resx
diff --git a/AIMS/OperationFront/UI/frmPlanOrder.Designer.cs b/AIMS/OperationFront/frmPlanOrder.Designer.cs
similarity index 100%
rename from AIMS/OperationFront/UI/frmPlanOrder.Designer.cs
rename to AIMS/OperationFront/frmPlanOrder.Designer.cs
diff --git a/AIMS/OperationFront/UI/frmPlanOrder.cs b/AIMS/OperationFront/frmPlanOrder.cs
similarity index 93%
rename from AIMS/OperationFront/UI/frmPlanOrder.cs
rename to AIMS/OperationFront/frmPlanOrder.cs
index 74003ca..695fa91 100644
--- a/AIMS/OperationFront/UI/frmPlanOrder.cs
+++ b/AIMS/OperationFront/frmPlanOrder.cs
@@ -1,4 +1,5 @@
-using System;
+using AIMSBLL;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -25,7 +26,7 @@ namespace AIMS.OperationFront.UI
int y = (System.Windows.Forms.SystemInformation.WorkingArea.Height - this.Size.Height) / 2 - 60;
this.StartPosition = FormStartPosition.Manual;
this.Location = (Point)new Size(x, y);
- dgv.DataSource = AIMS.OperationFront.BLL.OperationApply.GetOperationRoomDataTable(Time, RoomId);
+ dgv.DataSource = BOperationApply.GetOperationRoomDataTable(Time, RoomId);
}
private void btnUp_Click(object sender, EventArgs e)
@@ -76,7 +77,7 @@ namespace AIMS.OperationFront.UI
{
int ApplyId = int.Parse(dgv.Rows[i].Cells["ApplyId"].Value.ToString());
- BLL.OperationApply.UpdatePlanOrder(ApplyId, i + 1);
+ BOperationApply.UpdatePlanOrder(ApplyId, i + 1);
}
Close();
}
diff --git a/AIMS/OperationFront/UI/frmPlanOrder.resx b/AIMS/OperationFront/frmPlanOrder.resx
similarity index 100%
rename from AIMS/OperationFront/UI/frmPlanOrder.resx
rename to AIMS/OperationFront/frmPlanOrder.resx
diff --git a/AIMS/OperationFront/UI/frmPlanPatientInfo.Designer.cs b/AIMS/OperationFront/frmPlanPatientInfo.Designer.cs
similarity index 100%
rename from AIMS/OperationFront/UI/frmPlanPatientInfo.Designer.cs
rename to AIMS/OperationFront/frmPlanPatientInfo.Designer.cs
diff --git a/AIMS/OperationFront/UI/frmPlanPatientInfo.cs b/AIMS/OperationFront/frmPlanPatientInfo.cs
similarity index 86%
rename from AIMS/OperationFront/UI/frmPlanPatientInfo.cs
rename to AIMS/OperationFront/frmPlanPatientInfo.cs
index f444d57..9f9daa4 100644
--- a/AIMS/OperationFront/UI/frmPlanPatientInfo.cs
+++ b/AIMS/OperationFront/frmPlanPatientInfo.cs
@@ -1,10 +1,6 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
+using AIMSBLL;
+using System;
using System.Drawing;
-using System.Linq;
-using System.Text;
using System.Windows.Forms;
namespace AIMS.OperationFront.UI
@@ -26,7 +22,7 @@ namespace AIMS.OperationFront.UI
this.StartPosition = FormStartPosition.Manual;
this.Location = (Point)new Size(x, y);
- dgv.DataSource = AIMS.OperationFront.BLL.OperationApply.GetOperationRoomDataTable(Time, RoomId);
+ dgv.DataSource = BOperationApply.GetOperationRoomDataTable(Time, RoomId);
for (int i = 0; i < dgv.Rows.Count; i++)
{
diff --git a/AIMS/OperationFront/UI/frmPlanPatientInfo.resx b/AIMS/OperationFront/frmPlanPatientInfo.resx
similarity index 100%
rename from AIMS/OperationFront/UI/frmPlanPatientInfo.resx
rename to AIMS/OperationFront/frmPlanPatientInfo.resx
diff --git a/AIMS/OperationFront/UI/frmPrintingArrangemen.cs b/AIMS/OperationFront/frmPrintingArrangemen.cs
similarity index 93%
rename from AIMS/OperationFront/UI/frmPrintingArrangemen.cs
rename to AIMS/OperationFront/frmPrintingArrangemen.cs
index ff07268..acaccb5 100644
--- a/AIMS/OperationFront/UI/frmPrintingArrangemen.cs
+++ b/AIMS/OperationFront/frmPrintingArrangemen.cs
@@ -1,4 +1,6 @@
using AIMS.OremrUserControl;
+using AIMSBLL;
+using AIMSModel;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -48,11 +50,11 @@ namespace AIMS.OperationFront.UI
{
if (cboOperationRoom.SelectedIndex > 0)
{
- dt = BLL.OperationApply.SelectPlanedOpeByRoom("OrderOperationTime>='" + dtpTime.Value.ToString("yyyy-MM-dd 00:00:00") + "' and OrderOperationTime<='" + dtpTime.Value.ToString("yyyy-MM-dd 23:59:59") + "' and OperationRoom = '" + cboOperationRoom.Text + "' Order By OperationRoomID ,PlanOrder");
+ dt = BOperationApply.SelectPlanedOpeByRoom("OrderOperationTime>='" + dtpTime.Value.ToString("yyyy-MM-dd 00:00:00") + "' and OrderOperationTime<='" + dtpTime.Value.ToString("yyyy-MM-dd 23:59:59") + "' and OperationRoom = '" + cboOperationRoom.Text + "' Order By OperationRoomID ,PlanOrder");
}
else if (cboOperationRoom.SelectedIndex <= 0)
{
- dt = BLL.OperationApply.SelectPlanedOpeByRoom("OrderOperationTime>='" + dtpTime.Value.ToString("yyyy-MM-dd 00:00:00") + "' and OrderOperationTime<='" + dtpTime.Value.ToString("yyyy-MM-dd 23:59:59") + "' Order By OperationRoomID ,PlanOrder");
+ dt = BOperationApply.SelectPlanedOpeByRoom("OrderOperationTime>='" + dtpTime.Value.ToString("yyyy-MM-dd 00:00:00") + "' and OrderOperationTime<='" + dtpTime.Value.ToString("yyyy-MM-dd 23:59:59") + "' Order By OperationRoomID ,PlanOrder");
}
if (dt == null) return;
FullDgv(dt);
@@ -186,7 +188,7 @@ namespace AIMS.OperationFront.UI
string Ids = string.Join(",", SelectIds);
dt = null;
flowLayoutPanel1.Controls.Clear();
- dt = BLL.OperationApply.SelectPlanedOpeByRoom(" [ApplyId] in (" + Ids + ") ");
+ dt = BOperationApply.SelectPlanedOpeByRoom(" [ApplyId] in (" + Ids + ") ");
ReportData();
}
else
@@ -246,8 +248,8 @@ namespace AIMS.OperationFront.UI
///
private void Initial()
{
- List rooms = DataDictionary.BLL.OperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'");
- rooms.Insert(0, new DataDictionary.Model.OperationRoom() { Id = -1, Name = "" });
+ List rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'");
+ rooms.Insert(0, new OperationRoom() { Id = -1, Name = "" });
cboOperationRoom.DataSource = rooms;
cboOperationRoom.DisplayMember = "Name";
cboOperationRoom.ValueMember = "Id";
@@ -317,7 +319,7 @@ namespace AIMS.OperationFront.UI
string Ids = string.Join(",", SelectIds);
dt = null;
flowLayoutPanel1.Controls.Clear();
- dt = BLL.OperationApply.SelectPlanedOpeByRoom(" [OperationApplyId] in (" + Ids + ") Order By OperationRoom.OrderBy,TableIndex");
+ dt = BOperationApply.SelectPlanedOpeByRoom(" [OperationApplyId] in (" + Ids + ") Order By OperationRoom.OrderBy,TableIndex");
ReportData();
}
}
diff --git a/AIMS/OperationFront/UI/frmPrintingArrangemen.designer.cs b/AIMS/OperationFront/frmPrintingArrangemen.designer.cs
similarity index 100%
rename from AIMS/OperationFront/UI/frmPrintingArrangemen.designer.cs
rename to AIMS/OperationFront/frmPrintingArrangemen.designer.cs
diff --git a/AIMS/OperationFront/UI/frmPrintingArrangemen.resx b/AIMS/OperationFront/frmPrintingArrangemen.resx
similarity index 100%
rename from AIMS/OperationFront/UI/frmPrintingArrangemen.resx
rename to AIMS/OperationFront/frmPrintingArrangemen.resx
diff --git a/AIMS/OperationFront/UI/frmSchedulePlan.cs b/AIMS/OperationFront/frmSchedulePlan.cs
similarity index 100%
rename from AIMS/OperationFront/UI/frmSchedulePlan.cs
rename to AIMS/OperationFront/frmSchedulePlan.cs
diff --git a/AIMS/OperationFront/UI/frmSchedulePlan.designer.cs b/AIMS/OperationFront/frmSchedulePlan.designer.cs
similarity index 100%
rename from AIMS/OperationFront/UI/frmSchedulePlan.designer.cs
rename to AIMS/OperationFront/frmSchedulePlan.designer.cs
diff --git a/AIMS/OperationFront/UI/frmSchedulePlan.resx b/AIMS/OperationFront/frmSchedulePlan.resx
similarity index 100%
rename from AIMS/OperationFront/UI/frmSchedulePlan.resx
rename to AIMS/OperationFront/frmSchedulePlan.resx
diff --git a/AIMS/OperationFront/UI/frmSchedulePlan2.cs b/AIMS/OperationFront/frmSchedulePlan2.cs
similarity index 100%
rename from AIMS/OperationFront/UI/frmSchedulePlan2.cs
rename to AIMS/OperationFront/frmSchedulePlan2.cs
diff --git a/AIMS/OperationFront/UI/frmSchedulePlan2.designer.cs b/AIMS/OperationFront/frmSchedulePlan2.designer.cs
similarity index 100%
rename from AIMS/OperationFront/UI/frmSchedulePlan2.designer.cs
rename to AIMS/OperationFront/frmSchedulePlan2.designer.cs
diff --git a/AIMS/OperationFront/UI/frmSchedulePlan2.resx b/AIMS/OperationFront/frmSchedulePlan2.resx
similarity index 100%
rename from AIMS/OperationFront/UI/frmSchedulePlan2.resx
rename to AIMS/OperationFront/frmSchedulePlan2.resx
diff --git a/AIMS/OperationFront/UI/frmSelectiveOperationsPrint.cs b/AIMS/OperationFront/frmSelectiveOperationsPrint.cs
similarity index 93%
rename from AIMS/OperationFront/UI/frmSelectiveOperationsPrint.cs
rename to AIMS/OperationFront/frmSelectiveOperationsPrint.cs
index 8e259b9..91b4eaa 100644
--- a/AIMS/OperationFront/UI/frmSelectiveOperationsPrint.cs
+++ b/AIMS/OperationFront/frmSelectiveOperationsPrint.cs
@@ -8,6 +8,7 @@ using System.Text;
using System.Windows.Forms;
using Microsoft.Reporting.WinForms;
using System.IO;
+using AIMSBLL;
namespace AIMS.OperationFront.UI
{
@@ -132,11 +133,11 @@ namespace AIMS.OperationFront.UI
{
if (cboOperationRoom.SelectedIndex > 0)
{
- dt = BLL.OperationApply.SelectPlanedOpeByRoom("OrderOperationTime>='" + dtpTime.Value.ToString("yyyy-MM-dd 00:00:00") + "' and OrderOperationTime<='" + dtpTime.Value.ToString("yyyy-MM-dd 23:59:59") + "' and OperationRoom = '" + cboOperationRoom.Text + "' Order By OperationRoomID ,PlanOrder");
+ dt = BOperationApply.SelectPlanedOpeByRoom("OrderOperationTime>='" + dtpTime.Value.ToString("yyyy-MM-dd 00:00:00") + "' and OrderOperationTime<='" + dtpTime.Value.ToString("yyyy-MM-dd 23:59:59") + "' and OperationRoom = '" + cboOperationRoom.Text + "' Order By OperationRoomID ,PlanOrder");
}
else if (cboOperationRoom.SelectedIndex <= 0)
{
- dt = BLL.OperationApply.SelectPlanedOpeByRoom("OrderOperationTime>='" + dtpTime.Value.ToString("yyyy-MM-dd 00:00:00") + "' and OrderOperationTime<='" + dtpTime.Value.ToString("yyyy-MM-dd 23:59:59") + "' Order By OperationRoomID ,PlanOrder");
+ dt = BOperationApply.SelectPlanedOpeByRoom("OrderOperationTime>='" + dtpTime.Value.ToString("yyyy-MM-dd 00:00:00") + "' and OrderOperationTime<='" + dtpTime.Value.ToString("yyyy-MM-dd 23:59:59") + "' Order By OperationRoomID ,PlanOrder");
}
if (dt == null) return;
FullDgv(dt);
diff --git a/AIMS/OperationFront/UI/frmSelectiveOperationsPrint.designer.cs b/AIMS/OperationFront/frmSelectiveOperationsPrint.designer.cs
similarity index 100%
rename from AIMS/OperationFront/UI/frmSelectiveOperationsPrint.designer.cs
rename to AIMS/OperationFront/frmSelectiveOperationsPrint.designer.cs
diff --git a/AIMS/OperationFront/UI/frmSelectiveOperationsPrint.resx b/AIMS/OperationFront/frmSelectiveOperationsPrint.resx
similarity index 100%
rename from AIMS/OperationFront/UI/frmSelectiveOperationsPrint.resx
rename to AIMS/OperationFront/frmSelectiveOperationsPrint.resx
diff --git a/AIMS/OperationFront/UI/frmStopOperation.Designer.cs b/AIMS/OperationFront/frmStopOperation.Designer.cs
similarity index 100%
rename from AIMS/OperationFront/UI/frmStopOperation.Designer.cs
rename to AIMS/OperationFront/frmStopOperation.Designer.cs
diff --git a/AIMS/OperationFront/UI/frmStopOperation.cs b/AIMS/OperationFront/frmStopOperation.cs
similarity index 90%
rename from AIMS/OperationFront/UI/frmStopOperation.cs
rename to AIMS/OperationFront/frmStopOperation.cs
index d0f5a79..e1bcc91 100644
--- a/AIMS/OperationFront/UI/frmStopOperation.cs
+++ b/AIMS/OperationFront/frmStopOperation.cs
@@ -1,4 +1,5 @@
-using System;
+using AIMSBLL;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -36,7 +37,7 @@ namespace AIMS.OperationFront.UI
{
for (int i = 0; i < ApplyIdList.Count; i++)
{
- BLL.OperationApply.UpdateStopOperation(ApplyIdList[i], txtContent.Text.Trim());
+ BOperationApply.UpdateStopOperation(ApplyIdList[i], txtContent.Text.Trim());
}
MessageBox.Show("退回成功!");
Close();
diff --git a/AIMS/OperationFront/UI/frmStopOperation.resx b/AIMS/OperationFront/frmStopOperation.resx
similarity index 100%
rename from AIMS/OperationFront/UI/frmStopOperation.resx
rename to AIMS/OperationFront/frmStopOperation.resx
diff --git a/AIMS/OremrUserControl/PrescriptionDocument.cs b/AIMS/OremrUserControl/PrescriptionDocument.cs
index d7c0b9c..2a1c5d7 100644
--- a/AIMS/OremrUserControl/PrescriptionDocument.cs
+++ b/AIMS/OremrUserControl/PrescriptionDocument.cs
@@ -1,17 +1,9 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Drawing;
-using System.Data;
-using System.Linq;
-using System.Text;
-using System.Windows.Forms;
-using System.Drawing.Printing;
-using Newtonsoft.Json;
-using System.IO;
+using AIMSModel;
using DrawGraph;
-using AIMS.PublicUI.BLL;
-using AIMSModel;
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Windows.Forms;
namespace AIMS.OperationDoing.AnasRecordBill
{
diff --git a/AIMS/OremrUserControl/ucDocument.cs b/AIMS/OremrUserControl/ucDocument.cs
index 3be612c..b91efed 100644
--- a/AIMS/OremrUserControl/ucDocument.cs
+++ b/AIMS/OremrUserControl/ucDocument.cs
@@ -1,19 +1,14 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Drawing;
+using AIMS.DocManager;
+using AIMSBLL;
+using DCSoft.Writer;
+using DCSoft.Writer.Data;
+using DCSoft.Writer.Dom;
+using DocumentManagement;
+using System;
using System.Data;
using System.Linq;
-using System.Text;
-using System.Windows.Forms;
-using DCSoft.Writer;
-using DocumentManagement;
-using DCSoft.Writer.Data;
-using DCSoft.Writer.Security;
-using AIMS.DocManager;
-using DCSoft.Writer.Dom;
using System.Reflection;
-using DevComponents.DotNetBar;
+using System.Windows.Forms;
using System.Xml;
namespace AIMS.OremrUserControl
@@ -298,7 +293,7 @@ namespace AIMS.OremrUserControl
var hf = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).ToolTip == "心功能分级").FirstOrDefault();
string strH = hf == null ? "" : hf.Text;
- AIMS.OperationFront.BLL.OperationApply.UpdateASA(Patient.ApplyId, strASA, strH);
+ BOperationApply.UpdateASA(Patient.ApplyId, strASA, strH);
}
}
catch
diff --git a/AIMS/OremrUserControl/ucPatientRecoverCard.cs b/AIMS/OremrUserControl/ucPatientRecoverCard.cs
index df7b3fa..7b07478 100644
--- a/AIMS/OremrUserControl/ucPatientRecoverCard.cs
+++ b/AIMS/OremrUserControl/ucPatientRecoverCard.cs
@@ -51,7 +51,7 @@ namespace AIMS.OremrUserControl
lblSys.Text = "--";
lblT.Text = "--";
}
- public ucPatientRecoverCard(DataDictionary.Model.OperationRoom room)
+ public ucPatientRecoverCard(OperationRoom room)
{
InitializeComponent();
this.Tag = room.Id;
diff --git a/AIMS/PublicUI/MainFormManage.cs b/AIMS/PublicUI/MainFormManage.cs
index 10d9d27..1bf2fda 100644
--- a/AIMS/PublicUI/MainFormManage.cs
+++ b/AIMS/PublicUI/MainFormManage.cs
@@ -1,17 +1,8 @@
-using System;
+using AIMSBLL;
+using System;
using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Text;
-using System.Windows.Forms;
-using DevComponents.DotNetBar.Metro;
-using DevComponents.DotNetBar;
-using System.Diagnostics;
-using DevComponents.AdvTree;
-using DevComponents.DotNetBar.Metro.ColorTables;
using System.Reflection;
-using System.Linq;
+using System.Windows.Forms;
namespace AIMS
{
@@ -24,11 +15,11 @@ namespace AIMS
private void MainFormNew_Load(object sender, EventArgs e)
{
- List menuListP = new List();
- menuListP = AIMS.PublicUI.BLL.Menu.GetMenuRootListManage(AIMSExtension.PublicMethod.RoleId, "1,3,4");
+ List menuListP = new List();
+ menuListP = BMenu.GetMenuRootListManage(AIMSExtension.PublicMethod.RoleId, "1,3,4");
for (int i = 0; i < menuListP.Count; i++)
{
- AIMS.PublicUI.Model.Menu menuSec = menuListP[i];
+ AIMSModel.Menu menuSec = menuListP[i];
DevComponents.DotNetBar.Controls.SideNavPanel sideNavPanel = new DevComponents.DotNetBar.Controls.SideNavPanel();
sideNavPanel.AutoScroll = true;
sideNavPanel.Dock = System.Windows.Forms.DockStyle.Fill;
@@ -53,7 +44,7 @@ namespace AIMS
{
DevComponents.DotNetBar.Controls.SideNavItem sideNavItem = sideNav1.SelectedItem;
if (sideNavItem.Tag == null) return;
- AIMS.PublicUI.Model.Menu menu = sideNavItem.Tag as AIMS.PublicUI.Model.Menu;
+ AIMSModel.Menu menu = sideNavItem.Tag as AIMSModel.Menu;
string path = menu.Path;
if (path.Length > 0)
{
diff --git a/AIMS/PublicUI/frmAnaesthesiaMethod.cs b/AIMS/PublicUI/frmAnaesthesiaMethod.cs
index c93aa0b..4f5c7de 100644
--- a/AIMS/PublicUI/frmAnaesthesiaMethod.cs
+++ b/AIMS/PublicUI/frmAnaesthesiaMethod.cs
@@ -1,4 +1,5 @@
-using System;
+using AIMSBLL;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -21,7 +22,7 @@ namespace AIMS.PublicUI.UI
{
AIMSExtension.PublicMethod.SetDgvAttribute(dgvAnaesthesiaMethod);
this.txtHelpCode.Text = "简拼/汉字/ICD码";
- dgvAnaesthesiaMethod.DataSource = DataDictionary.BLL.AnaesthesiaMethod.GetDataTable("IsValid =1");
+ dgvAnaesthesiaMethod.DataSource = BAnaesthesiaMethod.GetDataTable("IsValid =1");
dgvAnaesthesiaMethod.Select();
if (SelectAnaesthesiaMethodData.Count > 0)
@@ -70,7 +71,7 @@ namespace AIMS.PublicUI.UI
private void txtHelpCode_TextChanged(object sender, EventArgs e)
{
dgvAnaesthesiaMethod.DataSource =
- DataDictionary.BLL.AnaesthesiaMethod.GetDataTable("IsValid =1 AND (Name LIKE '%" + txtHelpCode.Text.Trim() + "%' or helpCode LIKE '%" + txtHelpCode.Text.Trim() + "%')");
+ BAnaesthesiaMethod.GetDataTable("IsValid =1 AND (Name LIKE '%" + txtHelpCode.Text.Trim() + "%' or helpCode LIKE '%" + txtHelpCode.Text.Trim() + "%')");
}
}
}
diff --git a/AIMS/PublicUI/frmContagion.cs b/AIMS/PublicUI/frmContagion.cs
index 683fa3b..cf5adf7 100644
--- a/AIMS/PublicUI/frmContagion.cs
+++ b/AIMS/PublicUI/frmContagion.cs
@@ -1,4 +1,5 @@
-using System;
+using AIMSBLL;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -21,7 +22,7 @@ namespace AIMS.PublicUI.UI
{
AIMSExtension.PublicMethod.SetDgvAttribute(dgvContagion);
this.txtHelpCode.Text = "简拼/汉字/ICD码";
- dgvContagion.DataSource = DataDictionary.BLL.DataDictionary.GetDataDictionaryDataTableByParentName("术前感染筛查", "");
+ dgvContagion.DataSource = BBasicDictionary.GetDataDictionaryDataTableByParentName("术前感染筛查", "");
dgvContagion.Select();
@@ -54,7 +55,7 @@ namespace AIMS.PublicUI.UI
}
private void txtHelpCode_TextChanged(object sender, EventArgs e)
{
- dgvContagion.DataSource = DataDictionary.BLL.DataDictionary.GetDataDictionaryDataTableByParentName("术前感染筛查", txtHelpCode.Text.Trim());
+ dgvContagion.DataSource = BBasicDictionary.GetDataDictionaryDataTableByParentName("术前感染筛查", txtHelpCode.Text.Trim());
}
private void dgvContagion_Click(object sender, EventArgs e)
diff --git a/AIMS/PublicUI/frmCreateTemplate.cs b/AIMS/PublicUI/frmCreateTemplate.cs
index e934702..af9910c 100644
--- a/AIMS/PublicUI/frmCreateTemplate.cs
+++ b/AIMS/PublicUI/frmCreateTemplate.cs
@@ -1,4 +1,5 @@
-using System;
+using AIMSBLL;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -26,7 +27,7 @@ namespace AIMS.PublicUI.UI
MessageBox.Show("模板名称不能为空!");
return;
}
- if(BLL.OperationTemplate.Exists(txtName.Text.Trim(),TypeId))
+ if(BOperationTemplate.Exists(txtName.Text.Trim(),TypeId))
{
MessageBox.Show("名称不能重复!");
return;
@@ -34,7 +35,7 @@ namespace AIMS.PublicUI.UI
try
{
int IsPublic = radioButton1.Checked == true ? 1 : 0;
- BLL.OperationTemplate.Add(InRoomTime,txtName.Text.Trim(), PatientId, TypeId,IsPublic);
+ BOperationTemplate.Add(InRoomTime,txtName.Text.Trim(), PatientId, TypeId,IsPublic);
MessageBox.Show("保存成功!");
Close();
}
diff --git a/AIMS/PublicUI/frmDepartment.cs b/AIMS/PublicUI/frmDepartment.cs
index b967d88..7fa64a8 100644
--- a/AIMS/PublicUI/frmDepartment.cs
+++ b/AIMS/PublicUI/frmDepartment.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -12,7 +14,7 @@ namespace AIMS.PublicUI.UI
public partial class frmDepartment : Form
{
public AIMSExtension.EditState _state;
- private Model.Department SelectDepartmentRow = new Model.Department();
+ private Department SelectDepartmentRow = new Department();
public frmDepartment()
{
InitializeComponent();
@@ -92,7 +94,7 @@ namespace AIMS.PublicUI.UI
{
if (this.ValidInput())
{
- Model.Department DepartmentObj = new Model.Department();
+ Department DepartmentObj = new Department();
DepartmentObj.Name = txtName.Text.Trim();
DepartmentObj.HelpCode = AIMSExtension.PublicMethod.GetFirstLetter(txtName.Text.Trim());
DepartmentObj.Kind = cboKind.Text;
@@ -107,12 +109,12 @@ namespace AIMS.PublicUI.UI
if (_state == AIMSExtension.EditState.ADD)
{
- BLL.Department.Add(DepartmentObj);
+ BDepartment.Add(DepartmentObj);
}
if (_state == AIMSExtension.EditState.EDIT)
{
DepartmentObj.Id = SelectDepartmentRow.Id;
- BLL.Department.Update(DepartmentObj);
+ BDepartment.Update(DepartmentObj);
}
}
_state = AIMSExtension.EditState.BROWSE;
@@ -153,7 +155,7 @@ namespace AIMS.PublicUI.UI
private void GetDepartmentDataTable()
{
dgvDepartment.Rows.Clear();
- DataTable dt = BLL.Department.GetDepartmentDataTable("");
+ DataTable dt = BDepartment.GetDepartmentDataTable("");
for (int i = 0; i < dt.Rows.Count; i++)
{
dgvDepartment.Rows.Add(dt.Rows[i]["Id"].ToString(),
diff --git a/AIMS/PublicUI/frmEditPassWord.cs b/AIMS/PublicUI/frmEditPassWord.cs
index c9da531..655fb08 100644
--- a/AIMS/PublicUI/frmEditPassWord.cs
+++ b/AIMS/PublicUI/frmEditPassWord.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -25,11 +27,11 @@ namespace AIMS.PublicUI.UI
{
if (txtNewPassWord.Text.Trim() == txtConfirmPassWord.Text.Trim())
{
- if (BLL.Person.Login(AIMSExtension.PublicMethod.OperatorNo, txtOldPassWord.Text))
+ if (BPerson.Login(AIMSExtension.PublicMethod.OperatorNo, txtOldPassWord.Text))
{
- Model.Person PersonObj = BLL.Person.GetModelByNo(AIMSExtension.PublicMethod.OperatorNo);
+ Person PersonObj = BPerson.GetModelByNo(AIMSExtension.PublicMethod.OperatorNo);
PersonObj.PassWord = txtNewPassWord.Text;
- BLL.Person.Update(PersonObj);
+ BPerson.Update(PersonObj);
}
else
{
diff --git a/AIMS/PublicUI/frmMenu.cs b/AIMS/PublicUI/frmMenu.cs
index 8ee205f..c010146 100644
--- a/AIMS/PublicUI/frmMenu.cs
+++ b/AIMS/PublicUI/frmMenu.cs
@@ -9,13 +9,15 @@ using System.Windows.Forms;
using AIMSExtension;
using System.Reflection;
using DevComponents.DotNetBar;
+using AIMSBLL;
+
namespace AIMS.PublicUI.UI
{
public partial class frmMenu : Form
{
public AIMSExtension.EditState _state;
- public List MenuObjList;
- private Model.Menu MenuRowData;
+ public List MenuObjList;
+ private AIMSModel.Menu MenuRowData;
public frmMenu()
{
InitializeComponent();
@@ -72,13 +74,13 @@ namespace AIMS.PublicUI.UI
private void Initial()
{
InitTreeView();
- MenuObjList = BLL.Menu.GetModelList();
- MenuObjList.Insert(0, new Model.Menu{ Id = -1,Name = "无", ParentId = 0});
+ MenuObjList = BMenu.GetModelList();
+ MenuObjList.Insert(0, new AIMSModel.Menu{ Id = -1,Name = "无", ParentId = 0});
this.cboParent.DataSource = MenuObjList;
this.cboParent.DisplayMember = "Name";
this.cboParent.ValueMember = "Id";
- DataTable dt = BLL.Menu.GetDateTable("");
+ DataTable dt = BMenu.GetDateTable("");
dgvMenu.DataSource = dt;
foreach (ButtonItem fite in this.galleryContainer2.SubItems)
{
@@ -90,18 +92,18 @@ namespace AIMS.PublicUI.UI
{
treeView1.Nodes.Clear();
- List MenuList = new List();
- Model.Menu Menu = new Model.Menu();
- MenuList = BLL.Menu.GetMenuRootList(0);
+ List MenuList = new List();
+ AIMSModel.Menu Menu = new AIMSModel.Menu();
+ MenuList = BMenu.GetMenuRootList(0);
for (int i = 0; i < MenuList.Count; i++)
{
- Menu = BLL.Menu.GetMenuById(MenuList[i].Id,AIMSExtension.PublicMethod.RoleId,1);
+ Menu = BMenu.GetMenuById(MenuList[i].Id.Value,AIMSExtension.PublicMethod.RoleId,1);
TreeNode Node = treeView1.Nodes.Add(Menu.Id.ToString(), Menu.Name);
BuildChildNode(Menu, Node);
}
}
- private void BuildChildNode(Model.Menu Menu, TreeNode ParentNode)
+ private void BuildChildNode(AIMSModel.Menu Menu, TreeNode ParentNode)
{
for (int i = 0; i < Menu.Children.Count; i++)
{
@@ -141,7 +143,7 @@ namespace AIMS.PublicUI.UI
if (dgvMenu.Rows.Count > 0)
{
- MenuRowData = BLL.Menu.GetModel(int.Parse(dgvMenu.CurrentRow.Cells["Id"].Value.ToString()));
+ MenuRowData = BMenu.GetModel(int.Parse(dgvMenu.CurrentRow.Cells["Id"].Value.ToString()));
txtName.Text = MenuRowData.Name;
txtPath.Text = MenuRowData.Path;
@@ -193,7 +195,7 @@ namespace AIMS.PublicUI.UI
AIMSExtension.PublicMethod.EnabledControl(panel4, false);
if (this.ValidInput())
{
- Model.Menu MenuObj = new Model.Menu();
+ AIMSModel.Menu MenuObj = new AIMSModel.Menu();
if (System.Convert.ToInt32(this.cboParent.SelectedValue) > -1)
{
MenuObj.ParentId = System.Convert.ToInt32(this.cboParent.SelectedValue);
@@ -214,7 +216,7 @@ namespace AIMS.PublicUI.UI
MenuObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
if (this._state == EditState.ADD)
{
- BLL.Menu.Add(MenuObj);
+ BMenu.Add(MenuObj);
AIMSExtension.PublicMethod.ClearControl(panel4);
}
@@ -224,7 +226,7 @@ namespace AIMS.PublicUI.UI
if (dgvMenu.Rows.Count > 0)
{
MenuObj.Id = MenuRowData.Id;
- BLL.Menu.Update(MenuObj);
+ BMenu.Update(MenuObj);
AIMSExtension.PublicMethod.ClearControl(panel4);
this._state = EditState.BROWSE;
}
diff --git a/AIMS/PublicUI/frmNotice.cs b/AIMS/PublicUI/frmNotice.cs
index 6321f1b..dfb6831 100644
--- a/AIMS/PublicUI/frmNotice.cs
+++ b/AIMS/PublicUI/frmNotice.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -22,8 +24,8 @@ namespace AIMS.PublicUI.UI
AIMSExtension.PublicMethod.EnabledControl(groupBox2, false);
AIMSExtension.PublicMethod.ClearControl(groupBox2);
_state = AIMSExtension.EditState.BROWSE;
- dgvOperation.DataSource = PublicUI.BLL.NoticeTemplate.GetOperation();
- dgvNoticeTemplate.DataSource = PublicUI.BLL.NoticeTemplate.GetOperationList();
+ dgvOperation.DataSource = BNotice.GetOperation();
+ dgvNoticeTemplate.DataSource = BNotice.GetOperationList();
}
private void tsbAdd_Click(object sender, EventArgs e)
{
@@ -35,20 +37,20 @@ namespace AIMS.PublicUI.UI
{
if (this.txtContentTemplate.Text.Trim().Length > 0)
{
- Model.Notice NoticeObj = new Model.Notice();
+ Notice NoticeObj = new Notice();
NoticeObj.Contents = txtContentTemplate.Text.Trim();
NoticeObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
NoticeObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
NoticeObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
if (_state == AIMSExtension.EditState.ADD)
{
- BLL.NoticeTemplate.Add(NoticeObj);
+ BNotice.Add(NoticeObj);
}
_state = AIMSExtension.EditState.BROWSE;
AIMSExtension.PublicMethod.EnabledControl(panel1, false);
AIMSExtension.PublicMethod.ClearControl(panel1);
- dgvOperation.DataSource = PublicUI.BLL.NoticeTemplate.GetOperation();
- dgvNoticeTemplate.DataSource = PublicUI.BLL.NoticeTemplate.GetOperationList();
+ dgvOperation.DataSource = BNotice.GetOperation();
+ dgvNoticeTemplate.DataSource = BNotice.GetOperationList();
}
}
private void tsbExit_Click(object sender, EventArgs e)
@@ -78,8 +80,8 @@ namespace AIMS.PublicUI.UI
if (MessageBox.Show("您确认需要删除该名联系人吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == System.Windows.Forms.DialogResult.Yes)
{
int Id = int.Parse(dgvNoticeTemplate.CurrentRow.Cells["NoticeTemplateIdColumn"].Value.ToString());
- BLL.NoticeTemplate.Delete(Id);
- dgvNoticeTemplate.DataSource = PublicUI.BLL.NoticeTemplate.GetOperationList();
+ BNotice.Delete(Id);
+ dgvNoticeTemplate.DataSource = BNotice.GetOperationList();
}
}
}
@@ -89,13 +91,13 @@ namespace AIMS.PublicUI.UI
if (this.txtConcent.Text.Trim().Length > 0)
{
- Model.Notice NoticeObj = new Model.Notice();
+ Notice NoticeObj = new Notice();
NoticeObj.Contents = txtConcent.Text.Trim();
- NoticeObj.SendState = "1";
+ NoticeObj.SendState = 1;
NoticeObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
NoticeObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
NoticeObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
- BLL.NoticeTemplate.sendout(NoticeObj);
+ BNotice.sendout(NoticeObj);
}
txtMdrecNo.Clear();
txtPatientName.Clear();
@@ -106,7 +108,7 @@ namespace AIMS.PublicUI.UI
{
dgvHistory.Rows.Clear();
- List NoticeList = PublicUI.BLL.NoticeTemplate.HistoryNoticeData();
+ List NoticeList = BNotice.HistoryNoticeData();
for(int i=0;i NoticeList = PublicUI.BLL.NoticeTemplate.HistoryNoticeData();
+ List NoticeList = BNotice.HistoryNoticeData();
for (int i = 0; i < NoticeList.Count; i++)
{
@@ -38,12 +40,12 @@ namespace AIMS.PublicUI.UI
{
if (this.txtConcent.Text.Trim().Length > 0)
{
- Model.Notice NoticeObj = new Model.Notice();
+ Notice NoticeObj = new Notice();
NoticeObj.Contents = txtConcent.Text.Trim();
NoticeObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
NoticeObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
NoticeObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
- BLL.NoticeTemplate.Add(NoticeObj);
+ BNotice.Add(NoticeObj);
BindDate();
}
}
@@ -58,7 +60,7 @@ namespace AIMS.PublicUI.UI
if (MessageBox.Show("您确认需要删除该公告吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == System.Windows.Forms.DialogResult.Yes)
{
int Id = int.Parse(dgvHistory.CurrentRow.Cells["Id"].Value.ToString());
- BLL.NoticeTemplate.Delete(Id);
+ BNotice.Delete(Id);
BindDate();
}
}
diff --git a/AIMS/PublicUI/frmOperationBodyPosition.cs b/AIMS/PublicUI/frmOperationBodyPosition.cs
index d2ffcd5..e7f1e55 100644
--- a/AIMS/PublicUI/frmOperationBodyPosition.cs
+++ b/AIMS/PublicUI/frmOperationBodyPosition.cs
@@ -1,4 +1,5 @@
-using System;
+using AIMSBLL;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -21,7 +22,7 @@ namespace AIMS.PublicUI.UI
{
AIMSExtension.PublicMethod.SetDgvAttribute(dgvOperationBodyPosition);
this.txtHelpCode.Text = "简拼/汉字/ICD码";
- dgvOperationBodyPosition.DataSource = DataDictionary.BLL.OperationBodyPosition.GetDataTable("IsValid =1");
+ dgvOperationBodyPosition.DataSource = BOperationBodyPosition.GetDataTable("IsValid =1");
dgvOperationBodyPosition.Select();
@@ -60,7 +61,7 @@ namespace AIMS.PublicUI.UI
private void txtHelpCode_TextChanged(object sender, EventArgs e)
{
dgvOperationBodyPosition.DataSource =
- DataDictionary.BLL.OperationBodyPosition.GetDataTable("IsValid =1 AND (Name LIKE '%" + txtHelpCode.Text.Trim() + "%' or helpCode LIKE '%" + txtHelpCode.Text.Trim() + "%')");
+ BOperationBodyPosition.GetDataTable("IsValid =1 AND (Name LIKE '%" + txtHelpCode.Text.Trim() + "%' or helpCode LIKE '%" + txtHelpCode.Text.Trim() + "%')");
}
private void txtHelpCode_Click(object sender, EventArgs e)
diff --git a/AIMS/PublicUI/frmOperationCutType.cs b/AIMS/PublicUI/frmOperationCutType.cs
index 920dfd2..e41a319 100644
--- a/AIMS/PublicUI/frmOperationCutType.cs
+++ b/AIMS/PublicUI/frmOperationCutType.cs
@@ -1,4 +1,5 @@
-using System;
+using AIMSBLL;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -21,7 +22,7 @@ namespace AIMS.PublicUI.UI
{
AIMSExtension.PublicMethod.SetDgvAttribute(dgvOperationCutType);
this.txtHelpCode.Text = "简拼/汉字/ICD码";
- dgvOperationCutType.DataSource = DataDictionary.BLL.OperationCutType.GetDataTable("IsValid =1");
+ dgvOperationCutType.DataSource = BOperationCutType.GetDataTable("IsValid =1");
dgvOperationCutType.Select();
if (SelectOperationCutTypeData.Count > 0)
@@ -69,7 +70,7 @@ namespace AIMS.PublicUI.UI
private void txtHelpCode_TextChanged(object sender, EventArgs e)
{
dgvOperationCutType.DataSource =
- DataDictionary.BLL.OperationCutType.GetDataTable("IsValid =1 AND (Name LIKE '%" + txtHelpCode.Text.Trim() + "%' or helpCode LIKE '%" + txtHelpCode.Text.Trim() + "%')");
+ BOperationCutType.GetDataTable("IsValid =1 AND (Name LIKE '%" + txtHelpCode.Text.Trim() + "%' or helpCode LIKE '%" + txtHelpCode.Text.Trim() + "%')");
}
}
diff --git a/AIMS/PublicUI/frmOperationPosition.cs b/AIMS/PublicUI/frmOperationPosition.cs
index 291f1ea..7718adb 100644
--- a/AIMS/PublicUI/frmOperationPosition.cs
+++ b/AIMS/PublicUI/frmOperationPosition.cs
@@ -1,4 +1,5 @@
-using System;
+using AIMSBLL;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -21,7 +22,7 @@ namespace AIMS.PublicUI.UI
{
AIMSExtension.PublicMethod.SetDgvAttribute(dgvOperationPosition);
this.txtHelpCode.Text = "简拼/汉字/ICD码";
- dgvOperationPosition.DataSource = DataDictionary.BLL.OperationPosition.GetDataTable("IsValid =1");
+ dgvOperationPosition.DataSource = BOperationPosition.GetDataTable("IsValid =1");
dgvOperationPosition.Select();
@@ -79,7 +80,7 @@ namespace AIMS.PublicUI.UI
private void txtHelpCode_TextChanged(object sender, EventArgs e)
{
dgvOperationPosition.DataSource =
- DataDictionary.BLL.OperationPosition.GetDataTable("IsValid =1 AND (Name LIKE '%" + txtHelpCode.Text.Trim() + "%' or helpCode LIKE '%" + txtHelpCode.Text.Trim() + "%')");
+ BOperationPosition.GetDataTable("IsValid =1 AND (Name LIKE '%" + txtHelpCode.Text.Trim() + "%' or helpCode LIKE '%" + txtHelpCode.Text.Trim() + "%')");
}
}
}
diff --git a/AIMS/PublicUI/frmPerson.cs b/AIMS/PublicUI/frmPerson.cs
index 3759f7c..70f5e30 100644
--- a/AIMS/PublicUI/frmPerson.cs
+++ b/AIMS/PublicUI/frmPerson.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -12,7 +14,7 @@ namespace AIMS.PublicUI.UI
public partial class frmPerson : Form
{
public AIMSExtension.EditState _state;
- private Model.Person SelectPerson = new Model.Person();
+ private Person SelectPerson = new Person();
public frmPerson()
{
InitializeComponent();
@@ -31,29 +33,29 @@ namespace AIMS.PublicUI.UI
{
cboDepartment.DisplayMember = "Name";
cboDepartment.ValueMember = "Id";
- cboDepartment.DataSource = BLL.Department.GetDepartmentDataTable("");
+ cboDepartment.DataSource = BDepartment.GetDepartmentDataTable("");
cboDepartment.SelectedIndex = -1;
cboRole.DisplayMember = "RoleName";
cboRole.ValueMember = "Id";
- cboRole.DataSource = BLL.Role.GetDataTable();
+ cboRole.DataSource = BRole.GetDataTable();
cboRole.SelectedIndex = -1;
cboDiploma.DisplayMember = "Name";
cboDiploma.ValueMember = "Id";
- cboDiploma.DataSource = DataDictionary.BLL.DataDictionary.GetDataDictionaryDataTable(" ParentId IN (SELECT Id FROM BasicDictionary WHERE NAME='学历')");
+ cboDiploma.DataSource = BBasicDictionary.GetDataDictionaryDataTable(" ParentId IN (SELECT Id FROM BasicDictionary WHERE NAME='学历')");
cboDiploma.SelectedIndex = -1;
cboJobTitle.DisplayMember = "Name";
cboJobTitle.ValueMember = "Id";
- cboJobTitle.DataSource = DataDictionary.BLL.DataDictionary.GetDataDictionaryDataTable(" ParentId IN (SELECT Id FROM BasicDictionary WHERE NAME='工作职称')");
+ cboJobTitle.DataSource = BBasicDictionary.GetDataDictionaryDataTable(" ParentId IN (SELECT Id FROM BasicDictionary WHERE NAME='工作职称')");
cboJobTitle.SelectedIndex = -1;
cboPersonType.DisplayMember = "Name";
cboPersonType.ValueMember = "Id";
- cboPersonType.DataSource = DataDictionary.BLL.DataDictionary.GetDataDictionaryDataTable(" ParentId IN (SELECT Id FROM BasicDictionary WHERE NAME='人员类型')");
+ cboPersonType.DataSource = BBasicDictionary.GetDataDictionaryDataTable(" ParentId IN (SELECT Id FROM BasicDictionary WHERE NAME='人员类型')");
cboPersonType.SelectedIndex = -1;
this.txtName.Enabled = true;
@@ -130,7 +132,7 @@ namespace AIMS.PublicUI.UI
{
if (ValidInput())
{
- Model.Person PersonObj = new Model.Person();
+ Person PersonObj = new Person();
PersonObj.DepId = int.Parse(cboDepartment.SelectedValue.ToString());
PersonObj.No = txtNo.Text;
PersonObj.Name = txtName.Text.Trim();
@@ -152,7 +154,7 @@ namespace AIMS.PublicUI.UI
if (_state == AIMSExtension.EditState.ADD)
{
- BLL.Person.Add(PersonObj);
+ BPerson.Add(PersonObj);
dgvPerson.CurrentRow.Cells["DepNameColumn"].Value = cboDepartment.Text;
dgvPerson.CurrentRow.Cells["NoColumn"].Value = txtNo.Text;
@@ -172,7 +174,7 @@ namespace AIMS.PublicUI.UI
if (_state == AIMSExtension.EditState.EDIT)
{
PersonObj.Id = SelectPerson.Id;
- BLL.Person.Update(PersonObj);
+ BPerson.Update(PersonObj);
dgvPerson.CurrentRow.Cells["DepNameColumn"].Value = cboDepartment.Text;
dgvPerson.CurrentRow.Cells["NoColumn"].Value = txtNo.Text;
@@ -238,7 +240,7 @@ namespace AIMS.PublicUI.UI
private void GetPersonDataTable(string name, string DepartName)
{
dgvPerson.Rows.Clear();
- DataTable dt = BLL.Person.GetPersonDataTable(name,DepartName);
+ DataTable dt = BPerson.GetPersonDataTable(name,DepartName);
for (int i = 0; i < dt.Rows.Count; i++)
{
dgvPerson.Rows.Add(dt.Rows[i]["Id"].ToString(),
diff --git a/AIMS/PublicUI/frmSelectDisease.cs b/AIMS/PublicUI/frmSelectDisease.cs
index eac8a8e..b23b902 100644
--- a/AIMS/PublicUI/frmSelectDisease.cs
+++ b/AIMS/PublicUI/frmSelectDisease.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -27,7 +29,7 @@ namespace AIMS.PublicUI.UI
AIMSExtension.PublicMethod.SetDgvAttribute(dgvDisease);
AIMSExtension.PublicMethod.SetDgvAttribute(dgvSelectDisease);
- SelectLeftdt = DataDictionary.BLL.Disease.GetDataTable("");
+ SelectLeftdt = BDisease.GetDataTable("");
this.currentPage = 0;
this.total = SelectLeftdt.Rows.Count;
@@ -46,7 +48,7 @@ namespace AIMS.PublicUI.UI
{
foreach (int RowId in SelectRightData)
{
- DataDictionary.Model.Disease DiseaseObj = DataDictionary.BLL.Disease.GetModel(RowId);
+ Disease DiseaseObj = BDisease.GetModel(RowId);
dgvSelectDisease.Rows.Add(DiseaseObj.Id, DiseaseObj.IcdCode, DiseaseObj.Name);
}
}
@@ -70,7 +72,7 @@ namespace AIMS.PublicUI.UI
private void txtHelpCode_TextChanged(object sender, EventArgs e)
{
this.dgvDisease.AutoGenerateColumns = false;
- this.SelectLeftdt = DataDictionary.BLL.Disease.GetDataTable(txtHelpCode.Text.Trim());
+ this.SelectLeftdt = BDisease.GetDataTable(txtHelpCode.Text.Trim());
this.dgvDisease.DataSource = this.SelectLeftdt;
this.currentPage = 0;
@@ -163,7 +165,7 @@ namespace AIMS.PublicUI.UI
private void btnAddDisease_Click(object sender, EventArgs e)
{
- DataDictionary.Model.Disease DiseaseObj = new DataDictionary.Model.Disease();
+ Disease DiseaseObj = new Disease();
DiseaseObj.Name = txtHelpCode.Text.Trim();
DiseaseObj.IcdCode = "";
DiseaseObj.HelpCode = AIMSExtension.PublicMethod.GetFirstLetter(DiseaseObj.Name);
@@ -176,12 +178,12 @@ namespace AIMS.PublicUI.UI
MessageBox.Show("名称不能为空!");
return;
}
- if (DataDictionary.BLL.Disease.IsExit(DiseaseObj.Name))
+ if (BDisease.IsExit(DiseaseObj.Name))
{
MessageBox.Show("该事件已存在");
return;
}
- DataDictionary.BLL.Disease.Add(DiseaseObj);
+ BDisease.Add(DiseaseObj);
txtHelpCode_TextChanged(null, null);
}
diff --git a/AIMS/PublicUI/frmSelectOperation.cs b/AIMS/PublicUI/frmSelectOperation.cs
index c7ef513..d2e3001 100644
--- a/AIMS/PublicUI/frmSelectOperation.cs
+++ b/AIMS/PublicUI/frmSelectOperation.cs
@@ -1,10 +1,8 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+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.PublicUI.UI
@@ -26,7 +24,7 @@ namespace AIMS.PublicUI.UI
AIMSExtension.PublicMethod.SetDgvAttribute(dgvOperation);
AIMSExtension.PublicMethod.SetDgvAttribute(dgvSelectOperation);
- SelectLeftdt = DataDictionary.BLL.Operation.GetDataTable("");
+ SelectLeftdt = BOperation.GetDataTable("");
this.currentPage = 0;
this.total = SelectLeftdt.Rows.Count;
@@ -45,7 +43,7 @@ namespace AIMS.PublicUI.UI
{
foreach (int RowId in SelectRightData)
{
- DataDictionary.Model.Operation OperationObj = DataDictionary.BLL.Operation.GetModel(RowId);
+ Operation OperationObj = BOperation.GetModel(RowId);
dgvSelectOperation.Rows.Add(OperationObj.Id, OperationObj.IcdCode, OperationObj.Name);
}
@@ -104,7 +102,7 @@ namespace AIMS.PublicUI.UI
private void txtHelpCode_TextChanged(object sender, EventArgs e)
{
this.dgvOperation.AutoGenerateColumns = false;
- this.SelectLeftdt = DataDictionary.BLL.Operation.GetDataTable(txtHelpCode.Text.Trim());
+ this.SelectLeftdt = BOperation.GetDataTable(txtHelpCode.Text.Trim());
this.dgvOperation.DataSource = this.SelectLeftdt;
this.currentPage = 0;
@@ -166,7 +164,7 @@ namespace AIMS.PublicUI.UI
}
private void btnAddOperation_Click(object sender, EventArgs e)
{
- DataDictionary.Model.Operation OperationObj = new DataDictionary.Model.Operation();
+ Operation OperationObj = new Operation();
OperationObj.Name = txtHelpCode.Text.Trim();
OperationObj.IcdCode = "";
OperationObj.HelpCode = AIMSExtension.PublicMethod.GetFirstLetter(OperationObj.Name);
@@ -179,12 +177,12 @@ namespace AIMS.PublicUI.UI
MessageBox.Show("名称不能为空!");
return;
}
- if (DataDictionary.BLL.Operation.IsExit(OperationObj.Name))
+ if (BOperation.IsExit(OperationObj.Name))
{
MessageBox.Show("该事件已存在");
return;
}
- DataDictionary.BLL.Operation.Add(OperationObj);
+ BOperation.Add(OperationObj);
txtHelpCode_TextChanged(null, null);
diff --git a/AIMS/PublicUI/frmSelectOperationOne.cs b/AIMS/PublicUI/frmSelectOperationOne.cs
index 188fb00..b77b3ff 100644
--- a/AIMS/PublicUI/frmSelectOperationOne.cs
+++ b/AIMS/PublicUI/frmSelectOperationOne.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -26,7 +28,7 @@ namespace AIMS.PublicUI.UI
AIMSExtension.PublicMethod.SetDgvAttribute(dgvOperation);
//AIMSExtension.PublicMethod.SetDgvAttribute(dgvSelectOperation);
- SelectLeftdt = DataDictionary.BLL.Operation.GetDataTable("");
+ SelectLeftdt = BOperation.GetDataTable("");
this.currentPage = 0;
this.total = SelectLeftdt.Rows.Count;
@@ -45,7 +47,7 @@ namespace AIMS.PublicUI.UI
//{
// foreach (int RowId in SelectRightData)
// {
- // DataDictionary.Model.Operation OperationObj = DataDictionary.BLL.Operation.GetModel(RowId);
+ // Operation OperationObj = BOperation.GetModel(RowId);
// dgvSelectOperation.Rows.Add(OperationObj.Id, OperationObj.IcdCode, OperationObj.Name);
// }
@@ -87,7 +89,7 @@ namespace AIMS.PublicUI.UI
private void txtHelpCode_TextChanged(object sender, EventArgs e)
{
this.dgvOperation.AutoGenerateColumns = false;
- this.SelectLeftdt = DataDictionary.BLL.Operation.GetDataTable(txtHelpCode.Text.Trim());
+ this.SelectLeftdt = BOperation.GetDataTable(txtHelpCode.Text.Trim());
this.dgvOperation.DataSource = this.SelectLeftdt;
this.currentPage = 0;
@@ -135,7 +137,7 @@ namespace AIMS.PublicUI.UI
}
private void btnAddOperation_Click(object sender, EventArgs e)
{
- DataDictionary.Model.Operation OperationObj = new DataDictionary.Model.Operation();
+ Operation OperationObj = new Operation();
OperationObj.Name = txtHelpCode.Text.Trim();
OperationObj.IcdCode = "";
OperationObj.HelpCode = AIMSExtension.PublicMethod.GetFirstLetter(OperationObj.Name);
@@ -148,12 +150,12 @@ namespace AIMS.PublicUI.UI
MessageBox.Show("名称不能为空!");
return;
}
- if (DataDictionary.BLL.Operation.IsExit(OperationObj.Name))
+ if (BOperation.IsExit(OperationObj.Name))
{
MessageBox.Show("该事件已存在");
return;
}
- DataDictionary.BLL.Operation.Add(OperationObj);
+ BOperation.Add(OperationObj);
txtHelpCode_TextChanged(null, null);
diff --git a/AIMS/PublicUI/frmSelectPerson.cs b/AIMS/PublicUI/frmSelectPerson.cs
index 0f37ff5..b522d16 100644
--- a/AIMS/PublicUI/frmSelectPerson.cs
+++ b/AIMS/PublicUI/frmSelectPerson.cs
@@ -1,11 +1,8 @@
-using AIMS.PublicUI.Model;
+using AIMSBLL;
+using AIMSModel;
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.PublicUI.UI
@@ -30,7 +27,7 @@ namespace AIMS.PublicUI.UI
AIMSExtension.PublicMethod.SetDgvAttribute(dgvSelectPerson);
- listOnit = AIMS.PublicUI.BLL.Department.GetDepartmentAllListBYSql("");
+ listOnit = BDepartment.GetDepartmentAllListBYSql("");
listOnit.Insert(0, new Department() { Id = -1, Name = "全部科室" });
this.cboDept.Items.AddRange(listOnit.ToArray());
cboDept.ValueMember = "Id";
@@ -42,8 +39,8 @@ namespace AIMS.PublicUI.UI
if (SelectPersonData.Count > 0)
{
- int DepId = AIMS.PublicUI.BLL.Person.GetModel(int.Parse(SelectPersonData[0].ToString())).DepId;
- cboDept.Text = AIMS.PublicUI.BLL.Department.GetModel(DepId).Name;
+ int DepId = BPerson.GetModel(int.Parse(SelectPersonData[0].ToString())).DepId.Value;
+ cboDept.Text = BDepartment.GetModel(DepId).Name;
for (int i = 0; i < dgvSelectPerson.Rows.Count; i++)
{
@@ -79,16 +76,16 @@ namespace AIMS.PublicUI.UI
{
Department dt = cboDept.SelectedItem as Department;
if (dt != null)
- _deptId = dt.Id;
+ _deptId = dt.Id.Value;
else
- _deptId = AIMS.PublicUI.BLL.Department.GetModelName(cboDept.Text).Id;
+ _deptId = BDepartment.GetModelName(cboDept.Text).Id.Value;
}
catch (Exception)
{
- _deptId = AIMS.PublicUI.BLL.Department.GetModelName(cboDept.Text).Id;
+ _deptId = BDepartment.GetModelName(cboDept.Text).Id.Value;
}
}
- dgvSelectPerson.DataSource = AIMS.PublicUI.BLL.Person.GetPersonDataTableByDepId( _deptId, txtHelpCode.Text.Trim(), PersonType);
+ dgvSelectPerson.DataSource = BPerson.GetPersonDataTableByDepId( _deptId, txtHelpCode.Text.Trim(), PersonType);
}
private void dgvSelectPerson_CellClick(object sender, DataGridViewCellEventArgs e)
@@ -112,10 +109,10 @@ namespace AIMS.PublicUI.UI
//清空listNew
listNew.Clear();
//遍历全部备查数据
- listNew = AIMS.PublicUI.BLL.Department.GetDepartmentAllListBYSql(" and (HelpCode like '%" + cboDept.Text + "%' or Name like '%" + cboDept.Text + "%' ) ");
+ listNew = BDepartment.GetDepartmentAllListBYSql(" and (HelpCode like '%" + cboDept.Text + "%' or Name like '%" + cboDept.Text + "%' ) ");
if (cboDept.Text.Trim() == "" || listNew == null || listNew.Count <= 0)
{
- listNew = AIMS.PublicUI.BLL.Department.GetDepartmentAllListBYSql("");
+ listNew = BDepartment.GetDepartmentAllListBYSql("");
listNew.Insert(0, new Department() { Id = -1, Name = "全部科室" });
}
//combobox添加已经查到的关键词
@@ -137,16 +134,16 @@ namespace AIMS.PublicUI.UI
{
Department dt = cboDept.SelectedItem as Department;
if (dt != null)
- _deptId = dt.Id;
+ _deptId = dt.Id.Value;
else
- _deptId = AIMS.PublicUI.BLL.Department.GetModelName(cboDept.Text).Id;
+ _deptId = BDepartment.GetModelName(cboDept.Text).Id.Value;
}
catch (Exception)
{
- _deptId = AIMS.PublicUI.BLL.Department.GetModelName(cboDept.Text).Id;
+ _deptId = BDepartment.GetModelName(cboDept.Text).Id.Value;
}
}
- dgvSelectPerson.DataSource = AIMS.PublicUI.BLL.Person.GetPersonDataTableByDepId(_deptId, txtHelpCode.Text.Trim(), PersonType);
+ dgvSelectPerson.DataSource = BPerson.GetPersonDataTableByDepId(_deptId, txtHelpCode.Text.Trim(), PersonType);
}
}
}
diff --git a/AIMS/PublicUI/frmTemplate.cs b/AIMS/PublicUI/frmTemplate.cs
index 8e4b530..5a181c6 100644
--- a/AIMS/PublicUI/frmTemplate.cs
+++ b/AIMS/PublicUI/frmTemplate.cs
@@ -1,4 +1,5 @@
-using System;
+using AIMSBLL;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -38,7 +39,7 @@ namespace AIMS.PublicUI.UI
}
private void GetTemplateDataTable()
{
- dgv.DataSource = BLL.OperationTemplate.GetDataTable(TypeId);
+ dgv.DataSource = BOperationTemplate.GetDataTable(TypeId);
}
void frmCreateTemplateObj_FormClosed(object sender, FormClosedEventArgs e)
@@ -57,8 +58,8 @@ namespace AIMS.PublicUI.UI
{
if (MessageBox.Show("确认要导入[" + dgv.CurrentRow.Cells["TemplateNameColumn"].Value.ToString() + "]模板吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
{
- //BLL.OperationTemplate.ClearData(PatientId, TypeId);
- BLL.OperationTemplate.InputData(dgv.CurrentRow.Cells["TemplateNameColumn"].Value.ToString(), PatientId, InRoomTime, TypeId);
+ //BOperationTemplate.ClearData(PatientId, TypeId);
+ BOperationTemplate.InputData(dgv.CurrentRow.Cells["TemplateNameColumn"].Value.ToString(), PatientId, InRoomTime, TypeId);
Close();
}
}
@@ -78,7 +79,7 @@ namespace AIMS.PublicUI.UI
if (MessageBox.Show("确认要删除[" + dgv.CurrentRow.Cells["TemplateNameColumn"].Value.ToString() + "]模板吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
{
- BLL.OperationTemplate.Delete(dgv.CurrentRow.Cells["TemplateNameColumn"].Value.ToString(), TypeId);
+ BOperationTemplate.Delete(dgv.CurrentRow.Cells["TemplateNameColumn"].Value.ToString(), TypeId);
GetTemplateDataTable();
}
}
diff --git a/AIMS/PublicUI/frmUserPurview.cs b/AIMS/PublicUI/frmUserPurview.cs
index a58d32f..9a8ebfc 100644
--- a/AIMS/PublicUI/frmUserPurview.cs
+++ b/AIMS/PublicUI/frmUserPurview.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -12,7 +14,7 @@ namespace AIMS.PublicUI.UI
public partial class frmUserPurview : Form
{
public AIMSExtension.EditState _state;
- private Model.Role RoleRowData;
+ private Role RoleRowData;
public frmUserPurview()
{
InitializeComponent();
@@ -29,7 +31,7 @@ namespace AIMS.PublicUI.UI
AIMSExtension.PublicMethod.EnabledControl(panel2, false);
_state = AIMSExtension.EditState.BROWSE;
- dgvUserPurview.DataSource = BLL.Role.GetDataTable();
+ dgvUserPurview.DataSource = BRole.GetDataTable();
}
private void tsbAdd_Click(object sender, EventArgs e)
@@ -53,7 +55,7 @@ namespace AIMS.PublicUI.UI
AIMSExtension.PublicMethod.EnabledControl(panel2, true);
_state = AIMSExtension.EditState.EDIT;
- RoleRowData = BLL.Role.GetModel(int.Parse(dgvUserPurview.CurrentRow.Cells["Id"].Value.ToString()));
+ RoleRowData = BRole.GetModel(int.Parse(dgvUserPurview.CurrentRow.Cells["Id"].Value.ToString()));
txtRoleName.Text = RoleRowData.RoleName;
if (RoleRowData.IsValid == 1)
{
@@ -70,7 +72,7 @@ namespace AIMS.PublicUI.UI
{
if (this.ValidInput())
{
- Model.Role RoleObj = new Model.Role();
+ Role RoleObj = new Role();
RoleObj.RoleName = txtRoleName.Text.Trim();
RoleObj.IsValid = System.Convert.ToInt32(chkIsValid.Checked ? "1" : "0");
@@ -80,14 +82,14 @@ namespace AIMS.PublicUI.UI
if (_state == AIMSExtension.EditState.ADD)
{
- BLL.Role.Add(RoleObj);
+ BRole.Add(RoleObj);
}
if (this._state == AIMSExtension.EditState.EDIT)
{
if (dgvUserPurview.Rows.Count > 0)
{
RoleObj.Id= RoleRowData.Id;
- BLL.Role.Update(RoleObj);
+ BRole.Update(RoleObj);
AIMSExtension.PublicMethod.ClearControl(panel2);
this._state = AIMSExtension.EditState.BROWSE;
}
@@ -96,7 +98,7 @@ namespace AIMS.PublicUI.UI
AIMSExtension.PublicMethod.EnabledControl(panel2, false);
AIMSExtension.PublicMethod.ClearControl(panel2);
- dgvUserPurview.DataSource = BLL.Role.GetDataTable();
+ dgvUserPurview.DataSource = BRole.GetDataTable();
}
private bool ValidInput()
{
diff --git a/AIMS/PublicUI/frmUserPurviewDetail.cs b/AIMS/PublicUI/frmUserPurviewDetail.cs
index bdd4b8c..7c808ae 100644
--- a/AIMS/PublicUI/frmUserPurviewDetail.cs
+++ b/AIMS/PublicUI/frmUserPurviewDetail.cs
@@ -1,4 +1,6 @@
-using System;
+using AIMSBLL;
+using AIMSModel;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -27,13 +29,13 @@ namespace AIMS.PublicUI.UI
{
treeView1.Nodes.Clear();
- List MenuList = new List();
- Model.Menu Menu = new Model.Menu();
- MenuList = BLL.Menu.GetMenuRootList(0);
+ List