diff --git a/AIMS/AIMS.csproj b/AIMS/AIMS.csproj
index 1f8f152..e513da0 100644
--- a/AIMS/AIMS.csproj
+++ b/AIMS/AIMS.csproj
@@ -159,8 +159,6 @@
frmTemplateD.cs
-
-
Form
@@ -828,6 +826,7 @@
FormLogin.cs
+ Designer
frmCommonLargeScreen.cs
diff --git a/AIMS/DocManager/frmDocument.cs b/AIMS/DocManager/frmDocument.cs
index 7c8dbae..8ae9d61 100644
--- a/AIMS/DocManager/frmDocument.cs
+++ b/AIMS/DocManager/frmDocument.cs
@@ -1,15 +1,11 @@
-using System;
+using AIMS.OremrUserControl;
+using AIMSModel;
+using DevComponents.DotNetBar;
+using DocumentManagement;
+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 DocumentManagement;
-using DCSoft.Writer.Security;
-using DevComponents.DotNetBar;
-using AIMS.OremrUserControl;
namespace AIMS.DocManager
{
diff --git a/AIMS/DocManager/frmDocument3.cs b/AIMS/DocManager/frmDocument3.cs
index 1dba00a..ac01bcb 100644
--- a/AIMS/DocManager/frmDocument3.cs
+++ b/AIMS/DocManager/frmDocument3.cs
@@ -1,21 +1,15 @@
-using System;
+using AIMS.OremrUserControl;
+using AIMSBLL;
+using AIMSExtension;
+using AIMSModel;
+using DevComponents.DotNetBar;
+using DocumentManagement;
+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.Reflection;
-using DevComponents.DotNetBar;
-using System.IO;
-using System.Threading.Tasks;
-using AIMSModel;
-using AIMSExtension;
-using AIMSBLL;
-using DocumentManagement;
-using AIMS.DocManager;
-using AIMS.OremrUserControl;
namespace AIMS.OperationAfter.UI
{
@@ -27,7 +21,7 @@ namespace AIMS.OperationAfter.UI
private PatientRecord Patient;
const int CLOSE_SIZE = 18; //关闭图标尺寸
- public string PerortName;
+ public string PerortName;
//患者信息
DataRow vPatient = null;
@@ -35,7 +29,7 @@ namespace AIMS.OperationAfter.UI
///
/// 声明保存数据时的状态
///
- public EditState _state;
+ public EditState _state;
public frmDocument3()
{
@@ -66,7 +60,7 @@ namespace AIMS.OperationAfter.UI
///
private void frmDocument3_Load_1(object sender, EventArgs e)
{
- System.Drawing.Size mSize = SystemInformation.WorkingArea.Size;
+ System.Drawing.Size mSize = SystemInformation.WorkingArea.Size;
txtnameOrHnum.Text = "姓名或住院号关键字";
txtnameOrHnum.ForeColor = Color.FromArgb(164, 164, 164);
dtpSearchTime.Value = DateTime.Now;
@@ -95,12 +89,6 @@ namespace AIMS.OperationAfter.UI
if (vPlanedOpeList.Rows.Count <= 0) return;
string roomname = "";
- TreeNode roomnodenull = new TreeNode("空白单");
- TreeNode nonode = new TreeNode("无患者");
- nonode.ImageIndex = 2;
- roomnodenull.Nodes.Add(nonode);
- roomnodenull.Tag = -1;
- treeViewPatient.Nodes.Add(roomnodenull);
foreach (DataRow po in vPlanedOpeList.Rows)
{
if (po["OperationRoom"].ToString() != roomname)
@@ -120,6 +108,17 @@ namespace AIMS.OperationAfter.UI
}
}
}
+ TreeNode roomnodenull = new TreeNode("未排程");
+ foreach (DataRow vpo in vPlanedOpeList.Rows)
+ {
+ if (vpo["OperationRoom"].ToString() == "")
+ {
+ TreeNode sNode = new TreeNode(vpo["PatientName"].ToString() + "-" + vpo["MdrecNo"].ToString());
+ sNode.Tag = vpo;
+ roomnodenull.Nodes.Add(sNode);
+ }
+ }
+ treeViewPatient.Nodes.Add(roomnodenull);
}
catch (Exception exp)
{
@@ -212,7 +211,7 @@ namespace AIMS.OperationAfter.UI
vPatient = treeViewPatient.SelectedNode.Tag as DataRow;
//如果有患者就是读患者的记录,否则以日期为条件取记录
if (vPatient != null)
- {
+ {
//关闭打开的文档
while (tsbDoc.Tabs.Count > 0)
{
@@ -229,15 +228,15 @@ namespace AIMS.OperationAfter.UI
//sb.Append("状态:" + Patient.State + t);
this.lblPatient.Text = sb.ToString();
this.ucClassify.RefreshTree(this.Patient.PatientId);
- }
+ }
}
public void GetPatinentRecord(string Patientid)
- {
+ {
this.Patient = PatientRecord.GetPatientRecord(int.Parse(Patientid));
-
+
}
void tsbDoc_TabItemClose(object sender, TabStripActionEventArgs e)
@@ -381,14 +380,14 @@ namespace AIMS.OperationAfter.UI
}
}
}
- for (int i = 0; i < ucClassify.tv.Nodes.Count ; i++)
+ for (int i = 0; i < ucClassify.tv.Nodes.Count; i++)
{
- TreeNode item = ucClassify.tv.Nodes[i];
- if (item != null )
+ TreeNode item = ucClassify.tv.Nodes[i];
+ if (item != null)
{
foreach (TreeNode node in item.Nodes)
{
- if (Ids.Contains( int.Parse(node.Tag.ToString()) ))
+ if (Ids.Contains(int.Parse(node.Tag.ToString())))
{
//创建该文书标签
TabItem tb = this.tsbDoc.CreateTab(node.Text);
diff --git a/AIMS/FormMainManage.cs b/AIMS/FormMainManage.cs
index 3ae611d..f9fc776 100644
--- a/AIMS/FormMainManage.cs
+++ b/AIMS/FormMainManage.cs
@@ -1,7 +1,10 @@
using AIMS.DocManager;
+using AIMS.OperationDoing.AnasRecordBill.UI;
using AIMSBLL;
using AIMSModel;
+using DCSoftDotfuscate;
using DevComponents.DotNetBar;
+using DocumentManagement;
using System;
using System.Collections.Generic;
using System.Data;
@@ -36,8 +39,12 @@ namespace AIMS
eStyle.OfficeMobile2014 });
comboBoxEx1.SelectedIndex = 1;
-
-
+ SetGridAlternatingRows(lv1);
+ SetGridAlternatingRows(lv2);
+ SetGridAlternatingRows(lv3);
+ SetGridAlternatingRows(lv4);
+ SetGridAlternatingRows(lv5);
+ SetGridAlternatingRows(lv6);
}
private void switchButton1_ValueChanged(object sender, EventArgs e)
@@ -189,9 +196,9 @@ namespace AIMS
Task.Factory.StartNew(() =>
{
- BindOperationsList(lv1, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), true);
- BindOperationsList(lv3, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(2), true);
- BindOperationsList(lv5, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(-7), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), true, true);
+ BindOperationsList(lv1, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), labTa, true);
+ BindOperationsList(lv3, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(2), labTo, true);
+ BindOperationsList(lv5, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(-7), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), labWeek, true, true);
});
Task.Factory.StartNew(() =>
@@ -203,34 +210,33 @@ namespace AIMS
}
- public void BindOperationsList(DevComponents.DotNetBar.Controls.DataGridViewX lvex, DateTime beginTime, DateTime endTime, bool isLoginPerson, bool isEnOpe = false)
+ public void BindOperationsList(DevComponents.DotNetBar.Controls.DataGridViewX lvex, DateTime beginTime, DateTime endTime, DevComponents.DotNetBar.LabelX labCount, bool isLoginPerson, bool isEnOpe = false)
{
lvex.Rows.Clear();
DataTable dt = SelectPatient.GetSelectPatientDataTable
(beginTime, endTime, isLoginPerson, AIMSExtension.PublicMethod.OperatorName, isEnOpe);
-
+ if (dt.Rows.Count == 0) labCount.Visible = false;
+ else labCount.Visible = true;
+ labCount.Text = dt.Rows.Count.ToString() + "̨";
for (int i = 0; i < dt.Rows.Count; i++)
{
DataRow dr = dt.Rows[i];
- string message = dr["MdrecNo"].ToString() + " " +
- dr["PatientName"].ToString() + " :" +
- dr["AnesthesiaDoctor"].ToString();
- if (AIMSExtension.PublicMethod.RoleId == 7 || AIMSExtension.PublicMethod.RoleId == 10)
- {
- message = dr["MdrecNo"].ToString() + " " +
- dr["PatientName"].ToString() + " :" +
- dr["AnesthesiaDoctor"].ToString() + " ʿ:" +
- dr["InstrumentNurse"].ToString() + " " + dr["TourNurse"].ToString(); ;
- }
- else if (AIMSExtension.PublicMethod.RoleId == 6 || AIMSExtension.PublicMethod.RoleId == 8)
- {
- message = dr["MdrecNo"].ToString() + " " +
- dr["PatientName"].ToString() + " ʿ:" +
- dr["InstrumentNurse"].ToString() + " " + dr["TourNurse"].ToString();
- }
- //lists[i] = new System.Windows.Forms.ListViewItem(new string[] { dr["ApplyId"].ToString(),
- // message,
- //dr["State"].ToString() }, i);// dr["ApplyDepName"].ToString()+" "+
+ string patient = dr["OperationRoom"].ToString() + (dr["PlanOrder"].ToString() == "" ? "" : ("-" + dr["PlanOrder"].ToString() + " ")) + dr["MdrecNo"].ToString() + " " +
+ dr["PatientName"].ToString();
+ if (isEnOpe == true) patient = dr["InRoomTime"].ToString() + " " + patient;
+ string AnesthesiaDoctor = dr["AnesthesiaDoctor"].ToString() == "" ? "" : (" :" +
+ dr["AnesthesiaDoctor"].ToString());
+ string Nurse = (dr["InstrumentNurse"].ToString() == "" & dr["TourNurse"].ToString() == "") ? "" : (" ʿ:" + dr["InstrumentNurse"].ToString() + " " + dr["TourNurse"].ToString());
+
+ string message = patient + AnesthesiaDoctor + Nurse;
+ //if (AIMSExtension.PublicMethod.RoleId == 7 || AIMSExtension.PublicMethod.RoleId == 10)
+ //{
+ // message = patient + AnesthesiaDoctor + Nurse;
+ //}
+ //else if (AIMSExtension.PublicMethod.RoleId == 6 || AIMSExtension.PublicMethod.RoleId == 8)
+ //{
+ // message = patient + Nurse;
+ //}
DataGridViewRow drc = new DataGridViewRow();
drc.CreateCells(lvex);
@@ -239,6 +245,7 @@ namespace AIMS
drc.Cells[2].Value = message;
drc.Cells[3].Value = dr["State"].ToString();
lvex.Rows.Insert(i, drc);
+ lvex.ClearSelection();
}
}
public void BindOperationsListChart()
@@ -399,11 +406,10 @@ namespace AIMS
private void buttonX3_Click(object sender, EventArgs e)
{
AIMS.OperationFront.UI.frmOperationApplyDetail frmOperationApplyDetail = new AIMS.OperationFront.UI.frmOperationApplyDetail();
- frmOperationApplyDetail.State = AIMSExtension.EditState.ADD;
- frmOperationApplyDetail.IsJZ = true;
+ frmOperationApplyDetail.State = AIMSExtension.EditState.ADD;
frmOperationApplyDetail.FormClosed += (ee, err) =>
{
- BindOperationsList(lv1, DateTime.Now, DateTime.Now.AddDays(1), true);
+ BindOperationsList(lv1, DateTime.Now, DateTime.Now.AddDays(1), labTa, true);
};
frmOperationApplyDetail.ShowDialog();
@@ -414,11 +420,11 @@ namespace AIMS
if (superTabControl1.SelectedTab.Name == "P1")
{
- BindOperationsList(lv1, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), true);
+ BindOperationsList(lv1, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), labTa, true);
}
if (superTabControl1.SelectedTab.Name == "P2")
{
- BindOperationsList(lv2, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), false);
+ BindOperationsList(lv2, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), labTa, false);
}
}
@@ -426,11 +432,11 @@ namespace AIMS
{
if (superTabControl2.SelectedTab.Name == "P3")
{
- BindOperationsList(lv3, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(2), true);
+ BindOperationsList(lv3, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(2), labTo, true);
}
if (superTabControl2.SelectedTab.Name == "P4")
{
- BindOperationsList(lv4, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(2), false);
+ BindOperationsList(lv4, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(2), labTo, false);
}
}
@@ -439,11 +445,11 @@ namespace AIMS
{
if (superTabControl3.SelectedTab.Name == "P5")
{
- BindOperationsList(lv5, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(-7), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), true, true);
+ BindOperationsList(lv5, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(-7), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), labWeek, true, true);
}
if (superTabControl3.SelectedTab.Name == "P6")
{
- BindOperationsList(lv6, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(-7), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), false, true);
+ BindOperationsList(lv6, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(-7), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), labWeek, false, true);
}
}
@@ -471,13 +477,20 @@ namespace AIMS
if (SelApplyId != 0)
{
OperationApply apply = BOperationApply.GetModel(SelApplyId);
- AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBill frmAnasRecord = new OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBill();
+ frmAnasRecordBill2 frmAnasRecord = new frmAnasRecordBill2();
frmAnasRecord.PatientId = apply.OrisPatientId.Value;
frmAnasRecord.ApplyId = apply.Id.Value;
frmAnasRecord.State = AIMSExtension.EditState.BROWSE;
frmAnasRecord.Show();
}
}
-
+ public void SetGridAlternatingRows(DataGridView dg)
+ {
+ if (dg != null)
+ {
+ dg.RowsDefaultCellStyle.BackColor = Color.FromArgb(255, 255, 255);
+ dg.AlternatingRowsDefaultCellStyle.BackColor = Color.AliceBlue;
+ }
+ }
}
}
\ No newline at end of file
diff --git a/AIMS/FormMainManage.designer.cs b/AIMS/FormMainManage.designer.cs
index ce43d35..510d6cb 100644
Binary files a/AIMS/FormMainManage.designer.cs and b/AIMS/FormMainManage.designer.cs differ
diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill.cs
index be8f791..25e8d76 100644
--- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill.cs
+++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill.cs
@@ -5,6 +5,7 @@ using AIMSBLL;
using AIMSExtension;
using AIMSModel;
using DevComponents.Editors.DateTimeAdv;
+using DocumentManagement;
using DrawGraph;
using Newtonsoft.Json;
using System;
diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs
index 0d82aa4..3266d0e 100644
--- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs
+++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs
@@ -6,6 +6,7 @@ using AIMSBLL;
using AIMSExtension;
using AIMSModel;
using DevComponents.Editors.DateTimeAdv;
+using DocumentManagement;
using DrawGraph;
using KHD_OREMRInterface;
using Newtonsoft.Json;
@@ -19,7 +20,6 @@ using System.IO;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;
-//using static System.Windows.Forms.VisualStyles.VisualStyleElement.TaskbarClock;
namespace AIMS.OperationDoing.AnasRecordBill.UI
{
@@ -261,6 +261,12 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
PrintDocPane(e, zgcAnaesRecord2, templateManage2, false);
}
btnNextPage_Click(null, null);
+ if (i != 1)
+ {
+ MasterPane mPane = new MasterPane();
+ mPane.Border.IsVisible = false;
+ mPanes.Add(mPane);
+ }
}
}
@@ -350,61 +356,76 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
m_startPrintPage = pDoc.PrinterSettings.FromPage;
m_endPrintPage = pDoc.PrinterSettings.ToPage;
- if (m_startPrintPage == 0 && m_endPrintPage == 0)
+ int printCount = mPanes.Count;
+ if (mPanes.Count > 0 && count < printCount)
{
- int printCount = mPanes.Count;
- if (mPanes.Count > 0 && count < printCount)
+ mPanes[count].Draw(e.Graphics);
+ count++;
+ if (count < printCount)
{
- mPanes[count].Draw(e.Graphics);
- count++;
- if (count < printCount)
- {
- e.HasMorePages = true;
- }
- }
- else
- {
- e.HasMorePages = false;
+ e.HasMorePages = true;
}
}
else
{
- try
- {
- //如果当前打印页小于打印起始页码,就递增一页,直至等于打印起始页码
- if (m_startPrintPage > 0)
- {
- while (m_PageIndex < m_startPrintPage)
- {
- m_PageIndex++;
- }
- }
-
- mPanes[m_PageIndex - 1].Draw(e.Graphics);
- //当前打印页加1
- m_PageIndex++;
-
- if (m_PageIndex <= m_endPrintPage)
- {
- e.HasMorePages = true;
- }
-
- //如果设置了打印页码范围并且当前打印页大于打印终止页码,终止打印,设置e.HasMorePages参数,初始化相关变量
- if ((m_startPrintPage > 0) && (m_PageIndex > m_endPrintPage))
- {
- e.HasMorePages = false;
- m_PageIndex = 1;
- return;
- }
-
- }
- catch (Exception ex)
- {
- //出错处理,终止打印,设置e.HasMorePages参数,初始化相关变量
- e.HasMorePages = false;
- m_PageIndex = 1;
- }
+ e.HasMorePages = false;
}
+
+ //if (m_startPrintPage == 0 && m_endPrintPage == 0)
+ //{
+ // 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;
+ // }
+ //}
+ //else
+ //{
+ // try
+ // {
+ // //如果当前打印页小于打印起始页码,就递增一页,直至等于打印起始页码
+ // if (m_startPrintPage > 0)
+ // {
+ // while (m_PageIndex < m_startPrintPage)
+ // {
+ // m_PageIndex++;
+ // }
+ // }
+
+ // mPanes[m_PageIndex - 1].Draw(e.Graphics);
+ // //当前打印页加1
+ // m_PageIndex++;
+
+ // if (m_PageIndex <= m_endPrintPage)
+ // {
+ // e.HasMorePages = true;
+ // }
+
+ // //如果设置了打印页码范围并且当前打印页大于打印终止页码,终止打印,设置e.HasMorePages参数,初始化相关变量
+ // if ((m_startPrintPage > 0) && (m_PageIndex > m_endPrintPage))
+ // {
+ // e.HasMorePages = false;
+ // m_PageIndex = 1;
+ // return;
+ // }
+
+ // }
+ // catch (Exception ex)
+ // {
+ // //出错处理,终止打印,设置e.HasMorePages参数,初始化相关变量
+ // e.HasMorePages = false;
+ // m_PageIndex = 1;
+ // }
+ //}
}
#endregion
@@ -995,6 +1016,8 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
HelperDB.DbHelperSQL.CommitTrans();
ClearTimeText();
btnSelectPatient.Enabled = false;
+ btnCancelOperation.Enabled = true;
+ btnCancelIn.Enabled = true;
DrawAnasReordBill.IniDrawAnasReordBill5(_record, zgcAnaesRecord, zgcAnaesRecord2, ref templateManage, ref templateManage2);
StartTimer();
}
@@ -1007,6 +1030,8 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
{
_record = new OperationRecord();
btnSelectPatient.Enabled = false; //清空记录点并重新加载
+ btnCancelOperation.Enabled = true;
+ btnCancelIn.Enabled = true;
ClearTimeText();
if (templateManage != null)
{
@@ -1710,6 +1735,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
_record.RoomId = int.Parse(RoomStr);
BOperationRecord.Update("RoomId=@RoomId where Id=@id ", new AIMSModel.ParameterList("@RoomId", _record.RoomId, "@id", _record.Id));
BOperationApply.UpdateApplyRoom(_record.OperationApplyId.Value, _record.RoomId.Value, _record.PlanOperationTime);
+ BOperationApply.UpdteOperationOrder(_record.PlanOperationTime, NowRoom.Id.Value);
NowRoom = AIMSBLL.BOperationRoom.SelectSingle(_record.RoomId);
lblRoom.Text = NowRoom.Name;
}
@@ -1872,7 +1898,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
private void ReviewEvent()
{
if (PatientId != 0)
- {
+ {
templateManage.OpeRecord = BOperationRecord.getRecord(_record, PatientId, RecoverId);
templateManage2.OpeRecord = templateManage.OpeRecord;
templateManage.BindOperationRecordValueAll(templateManage.OpeRecord);
@@ -1886,10 +1912,10 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
templateManage.Bind();
templateManage2.Bind();
reDrawAnalysis();
-
- SelectWorkerValue.Hidden();
- SelectDictValue.Hidden();
- SelectDictText.Hidden();
+
+ //SelectWorkerValue.Hidden();
+ //SelectDictValue.Hidden();
+ //SelectDictText.Hidden();
zgcAnaesRecord.Refresh();
zgcAnaesRecord2.Refresh();
@@ -2252,13 +2278,16 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
}
private void frmAnasRecordBill2_VisibleChanged(object sender, EventArgs e)
{
-
if (this.Visible == false)
{
+ panel8.VerticalScroll.Value = 0;
+ panel82.VerticalScroll.Value = 0;
+ if (templateManage != null)
+ templateManage.SetPYL();
+ if (templateManage2 != null)
+ templateManage2.SetPYL();
if (_record != null && _record.StateName == "手术中" && State != AIMSExtension.EditState.BROWSE)
{
- panel8.VerticalScroll.Value = 0;
- panel82.VerticalScroll.Value = 0;
DisposeTimer();
}
}
diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs
index 321c57f..6d54478 100644
--- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs
+++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs
@@ -8,6 +8,7 @@ using AIMSModel;
using AxNsoOfficeLib;
using DCSoftDotfuscate;
using DevComponents.Editors.DateTimeAdv;
+using DocumentManagement;
using DrawGraph;
using KHD_OREMRInterface;
using Newtonsoft.Json;
diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument2.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument2.cs
index 5505dd8..53ae450 100644
--- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument2.cs
+++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument2.cs
@@ -6,6 +6,7 @@ using AIMSBLL;
using AIMSExtension;
using AIMSModel;
using DevComponents.Editors.DateTimeAdv;
+using DocumentManagement;
using DrawGraph;
using Newtonsoft.Json;
using System;
diff --git a/AIMS/OperationDoing/AnasRecordBill/frmFactDrugNew.Designer.cs b/AIMS/OperationDoing/AnasRecordBill/frmFactDrugNew.Designer.cs
index b650557..ff7fdef 100644
--- a/AIMS/OperationDoing/AnasRecordBill/frmFactDrugNew.Designer.cs
+++ b/AIMS/OperationDoing/AnasRecordBill/frmFactDrugNew.Designer.cs
@@ -29,105 +29,44 @@
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmFactDrugNew));
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel();
this.panel5 = new System.Windows.Forms.Panel();
this.tabDrugs = new DevComponents.DotNetBar.SuperTabControl();
this.superTabControlPanel4 = new DevComponents.DotNetBar.SuperTabControlPanel();
this.dgvDrugsSQ = new DevComponents.DotNetBar.Controls.DataGridViewX();
- this.dataGridViewImageColumn5 = new System.Windows.Forms.DataGridViewImageColumn();
- this.dataGridViewTextBoxColumn37 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn38 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn39 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewComboEditBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewComboBoxColumn17 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewTextBoxColumn40 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewComboBoxColumn18 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewTextBoxColumn41 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewComboBoxColumn19 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewTextBoxColumn42 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewComboBoxColumn20 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewComboBoxColumn21 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewComboBoxColumn22 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewDateTimeInputColumn1 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
- this.dataGridViewTextBoxColumn43 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewDateTimeInputColumn2 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
- this.dataGridViewTextBoxColumn44 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.P1 = new DevComponents.DotNetBar.SuperTabItem();
this.superTabControlPanel5 = new DevComponents.DotNetBar.SuperTabControlPanel();
this.dgvDrugsSZ = new DevComponents.DotNetBar.Controls.DataGridViewX();
- this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn();
- this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewComboEditBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewComboBoxColumn1 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewComboBoxColumn2 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewComboBoxColumn3 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewComboBoxColumn4 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewComboBoxColumn23 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewComboBoxColumn24 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewDateTimeInputColumn3 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
- this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewDateTimeInputColumn4 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
- this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.P2 = new DevComponents.DotNetBar.SuperTabItem();
this.superTabControlPanel6 = new DevComponents.DotNetBar.SuperTabControlPanel();
this.dgvDrugsSH = new DevComponents.DotNetBar.Controls.DataGridViewX();
- this.dataGridViewImageColumn2 = new System.Windows.Forms.DataGridViewImageColumn();
- this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewComboEditBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewComboBoxColumn5 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewComboBoxColumn6 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewComboBoxColumn7 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewComboBoxColumn8 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewComboBoxColumn25 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewComboBoxColumn26 = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dataGridViewDateTimeInputColumn5 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
- this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewDateTimeInputColumn6 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
- this.dataGridViewTextBoxColumn16 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.P3 = new DevComponents.DotNetBar.SuperTabItem();
this.superTabControlPanel1 = new DevComponents.DotNetBar.SuperTabControlPanel();
this.superTabControlPanel2 = new DevComponents.DotNetBar.SuperTabControlPanel();
this.panelleft = new System.Windows.Forms.Panel();
this.TabSelDrugs = new DevComponents.DotNetBar.SuperTabControl();
- this.AnesPanel = new DevComponents.DotNetBar.SuperTabControlPanel();
- this.AnesTab = new DevComponents.DotNetBar.SuperTabItem();
- this.XuePanel = new DevComponents.DotNetBar.SuperTabControlPanel();
- this.SapPanel = new DevComponents.DotNetBar.SuperTabControlPanel();
- this.DrugsPanel = new DevComponents.DotNetBar.SuperTabControlPanel();
this.panel2 = new System.Windows.Forms.Panel();
this.btnTypeManager = new DevComponents.DotNetBar.ButtonX();
this.buttonX1 = new DevComponents.DotNetBar.ButtonX();
- this.txtQuery = new DevComponents.DotNetBar.Controls.TextBoxX();
- this.labelX2 = new DevComponents.DotNetBar.LabelX();
this.btnDelete = new DevComponents.DotNetBar.ButtonX();
this.btnSave = new DevComponents.DotNetBar.ButtonX();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
@@ -150,6 +89,60 @@
this.dgvDosage = new System.Windows.Forms.DataGridView();
this.Dosage = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
+ this.dataGridViewImageColumn5 = new System.Windows.Forms.DataGridViewImageColumn();
+ this.dataGridViewTextBoxColumn37 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn38 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn39 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewComboEditBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewComboBoxColumn17 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewTextBoxColumn40 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewComboBoxColumn18 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewTextBoxColumn41 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewComboBoxColumn19 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewTextBoxColumn42 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewComboBoxColumn20 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewComboBoxColumn21 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewComboBoxColumn22 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewDateTimeInputColumn1 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
+ this.dataGridViewTextBoxColumn43 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewDateTimeInputColumn2 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
+ this.dataGridViewTextBoxColumn44 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn();
+ this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewComboEditBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewComboBoxColumn1 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewComboBoxColumn2 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewComboBoxColumn3 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewComboBoxColumn4 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewComboBoxColumn23 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewComboBoxColumn24 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewDateTimeInputColumn3 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
+ this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewDateTimeInputColumn4 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
+ this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewImageColumn2 = new System.Windows.Forms.DataGridViewImageColumn();
+ this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewComboEditBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewComboBoxColumn5 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewComboBoxColumn6 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewComboBoxColumn7 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewComboBoxColumn8 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewComboBoxColumn25 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewComboBoxColumn26 = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dataGridViewDateTimeInputColumn5 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
+ this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridViewDateTimeInputColumn6 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
+ this.dataGridViewTextBoxColumn16 = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.panel1.SuspendLayout();
this.panel5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.tabDrugs)).BeginInit();
@@ -162,7 +155,6 @@
((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSH)).BeginInit();
this.panelleft.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.TabSelDrugs)).BeginInit();
- this.TabSelDrugs.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvYP)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgvDosage)).BeginInit();
@@ -178,7 +170,7 @@
this.panel1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(1358, 677);
+ this.panel1.Size = new System.Drawing.Size(1400, 677);
this.panel1.TabIndex = 2;
//
// panel5
@@ -187,7 +179,7 @@
this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel5.Location = new System.Drawing.Point(330, 42);
this.panel5.Name = "panel5";
- this.panel5.Size = new System.Drawing.Size(1028, 635);
+ this.panel5.Size = new System.Drawing.Size(1070, 635);
this.panel5.TabIndex = 2;
//
// tabDrugs
@@ -208,9 +200,9 @@
this.tabDrugs.ControlBox.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.tabDrugs.ControlBox.MenuBox,
this.tabDrugs.ControlBox.CloseBox});
- this.tabDrugs.Controls.Add(this.superTabControlPanel4);
- this.tabDrugs.Controls.Add(this.superTabControlPanel5);
this.tabDrugs.Controls.Add(this.superTabControlPanel6);
+ this.tabDrugs.Controls.Add(this.superTabControlPanel5);
+ this.tabDrugs.Controls.Add(this.superTabControlPanel4);
this.tabDrugs.Controls.Add(this.superTabControlPanel1);
this.tabDrugs.Controls.Add(this.superTabControlPanel2);
this.tabDrugs.Dock = System.Windows.Forms.DockStyle.Fill;
@@ -220,7 +212,7 @@
this.tabDrugs.ReorderTabsEnabled = true;
this.tabDrugs.SelectedTabFont = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold);
this.tabDrugs.SelectedTabIndex = 0;
- this.tabDrugs.Size = new System.Drawing.Size(1028, 635);
+ this.tabDrugs.Size = new System.Drawing.Size(1070, 635);
this.tabDrugs.TabFont = new System.Drawing.Font("微软雅黑", 10.5F);
this.tabDrugs.TabIndex = 464;
this.tabDrugs.Tabs.AddRange(new DevComponents.DotNetBar.BaseItem[] {
@@ -236,7 +228,7 @@
this.superTabControlPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.superTabControlPanel4.Location = new System.Drawing.Point(0, 31);
this.superTabControlPanel4.Name = "superTabControlPanel4";
- this.superTabControlPanel4.Size = new System.Drawing.Size(1028, 604);
+ this.superTabControlPanel4.Size = new System.Drawing.Size(1070, 604);
this.superTabControlPanel4.TabIndex = 0;
this.superTabControlPanel4.TabItem = this.P1;
this.superTabControlPanel4.Visible = false;
@@ -246,18 +238,18 @@
this.dgvDrugsSQ.AllowUserToAddRows = false;
this.dgvDrugsSQ.AllowUserToResizeColumns = false;
this.dgvDrugsSQ.AllowUserToResizeRows = false;
- dataGridViewCellStyle1.BackColor = System.Drawing.Color.MintCream;
- this.dgvDrugsSQ.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ dataGridViewCellStyle11.BackColor = System.Drawing.Color.MintCream;
+ this.dgvDrugsSQ.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11;
this.dgvDrugsSQ.BackgroundColor = System.Drawing.Color.White;
this.dgvDrugsSQ.BorderStyle = System.Windows.Forms.BorderStyle.None;
- dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.dgvDrugsSQ.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+ dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle12.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.dgvDrugsSQ.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12;
this.dgvDrugsSQ.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvDrugsSQ.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewImageColumn5,
@@ -278,14 +270,14 @@
this.dataGridViewTextBoxColumn43,
this.dataGridViewDateTimeInputColumn2,
this.dataGridViewTextBoxColumn44});
- dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle4.ForeColor = System.Drawing.Color.Black;
- dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.Black;
- dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.dgvDrugsSQ.DefaultCellStyle = dataGridViewCellStyle4;
+ dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle14.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle14.ForeColor = System.Drawing.Color.Black;
+ dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle14.SelectionForeColor = System.Drawing.Color.Black;
+ dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.dgvDrugsSQ.DefaultCellStyle = dataGridViewCellStyle14;
this.dgvDrugsSQ.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvDrugsSQ.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
this.dgvDrugsSQ.EnableHeadersVisualStyles = false;
@@ -294,223 +286,22 @@
this.dgvDrugsSQ.Margin = new System.Windows.Forms.Padding(0);
this.dgvDrugsSQ.MultiSelect = false;
this.dgvDrugsSQ.Name = "dgvDrugsSQ";
- dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.dgvDrugsSQ.RowHeadersDefaultCellStyle = dataGridViewCellStyle5;
+ dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle15.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.dgvDrugsSQ.RowHeadersDefaultCellStyle = dataGridViewCellStyle15;
this.dgvDrugsSQ.RowHeadersVisible = false;
this.dgvDrugsSQ.RowTemplate.Height = 25;
this.dgvDrugsSQ.ShowCellErrors = false;
this.dgvDrugsSQ.ShowCellToolTips = false;
- this.dgvDrugsSQ.Size = new System.Drawing.Size(1028, 604);
+ this.dgvDrugsSQ.Size = new System.Drawing.Size(1070, 604);
this.dgvDrugsSQ.TabIndex = 16;
this.dgvDrugsSQ.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvDrugs_DataError);
//
- // dataGridViewImageColumn5
- //
- this.dataGridViewImageColumn5.HeaderText = " ";
- this.dataGridViewImageColumn5.Image = global::AIMS.Properties.Resources.SYSCRL;
- this.dataGridViewImageColumn5.Name = "dataGridViewImageColumn5";
- this.dataGridViewImageColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewImageColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
- this.dataGridViewImageColumn5.Width = 30;
- //
- // dataGridViewTextBoxColumn37
- //
- dataGridViewCellStyle3.ForeColor = System.Drawing.Color.Red;
- this.dataGridViewTextBoxColumn37.DefaultCellStyle = dataGridViewCellStyle3;
- this.dataGridViewTextBoxColumn37.HeaderText = "组";
- this.dataGridViewTextBoxColumn37.Name = "dataGridViewTextBoxColumn37";
- this.dataGridViewTextBoxColumn37.Width = 30;
- //
- // dataGridViewTextBoxColumn38
- //
- this.dataGridViewTextBoxColumn38.HeaderText = "类型";
- this.dataGridViewTextBoxColumn38.Name = "dataGridViewTextBoxColumn38";
- this.dataGridViewTextBoxColumn38.Visible = false;
- this.dataGridViewTextBoxColumn38.Width = 60;
- //
- // dataGridViewTextBoxColumn39
- //
- this.dataGridViewTextBoxColumn39.HeaderText = "名称";
- this.dataGridViewTextBoxColumn39.Name = "dataGridViewTextBoxColumn39";
- this.dataGridViewTextBoxColumn39.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewTextBoxColumn39.Width = 160;
- //
- // dataGridViewComboEditBoxColumn1
- //
- this.dataGridViewComboEditBoxColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
- this.dataGridViewComboEditBoxColumn1.HeaderText = "备注";
- this.dataGridViewComboEditBoxColumn1.Name = "dataGridViewComboEditBoxColumn1";
- this.dataGridViewComboEditBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- //
- // dataGridViewComboBoxColumn17
- //
- this.dataGridViewComboBoxColumn17.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn17.HeaderText = "途径";
- this.dataGridViewComboBoxColumn17.Name = "dataGridViewComboBoxColumn17";
- this.dataGridViewComboBoxColumn17.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewComboBoxColumn17.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.dataGridViewComboBoxColumn17.Width = 85;
- //
- // dataGridViewTextBoxColumn40
- //
- this.dataGridViewTextBoxColumn40.HeaderText = "浓度";
- this.dataGridViewTextBoxColumn40.Name = "dataGridViewTextBoxColumn40";
- this.dataGridViewTextBoxColumn40.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewTextBoxColumn40.Width = 45;
- //
- // dataGridViewComboBoxColumn18
- //
- this.dataGridViewComboBoxColumn18.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn18.HeaderText = "浓度单位";
- this.dataGridViewComboBoxColumn18.Name = "dataGridViewComboBoxColumn18";
- this.dataGridViewComboBoxColumn18.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.dataGridViewComboBoxColumn18.Width = 75;
- //
- // dataGridViewTextBoxColumn41
- //
- this.dataGridViewTextBoxColumn41.HeaderText = "速度";
- this.dataGridViewTextBoxColumn41.Name = "dataGridViewTextBoxColumn41";
- this.dataGridViewTextBoxColumn41.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewTextBoxColumn41.Width = 45;
- //
- // dataGridViewComboBoxColumn19
- //
- this.dataGridViewComboBoxColumn19.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn19.HeaderText = "速度单位";
- this.dataGridViewComboBoxColumn19.Name = "dataGridViewComboBoxColumn19";
- this.dataGridViewComboBoxColumn19.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewComboBoxColumn19.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.dataGridViewComboBoxColumn19.Width = 85;
- //
- // dataGridViewTextBoxColumn42
- //
- this.dataGridViewTextBoxColumn42.HeaderText = "用量";
- this.dataGridViewTextBoxColumn42.Name = "dataGridViewTextBoxColumn42";
- this.dataGridViewTextBoxColumn42.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.dataGridViewTextBoxColumn42.Width = 60;
- //
- // dataGridViewComboBoxColumn20
- //
- this.dataGridViewComboBoxColumn20.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn20.HeaderText = "单位";
- this.dataGridViewComboBoxColumn20.Name = "dataGridViewComboBoxColumn20";
- this.dataGridViewComboBoxColumn20.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewComboBoxColumn20.Width = 60;
- //
- // dataGridViewComboBoxColumn21
- //
- this.dataGridViewComboBoxColumn21.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn21.HeaderText = "血型";
- this.dataGridViewComboBoxColumn21.Name = "dataGridViewComboBoxColumn21";
- this.dataGridViewComboBoxColumn21.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewComboBoxColumn21.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.dataGridViewComboBoxColumn21.Width = 45;
- //
- // dataGridViewComboBoxColumn22
- //
- this.dataGridViewComboBoxColumn22.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn22.HeaderText = "加药方式";
- this.dataGridViewComboBoxColumn22.Name = "dataGridViewComboBoxColumn22";
- this.dataGridViewComboBoxColumn22.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewComboBoxColumn22.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.dataGridViewComboBoxColumn22.Visible = false;
- this.dataGridViewComboBoxColumn22.Width = 80;
- //
- // dataGridViewDateTimeInputColumn1
- //
- this.dataGridViewDateTimeInputColumn1.AutoAdvance = true;
- //
- //
- //
- this.dataGridViewDateTimeInputColumn1.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window;
- this.dataGridViewDateTimeInputColumn1.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
- this.dataGridViewDateTimeInputColumn1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn1.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText;
- this.dataGridViewDateTimeInputColumn1.ButtonDropDown.Visible = true;
- this.dataGridViewDateTimeInputColumn1.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime;
- this.dataGridViewDateTimeInputColumn1.HeaderText = "开始时间";
- this.dataGridViewDateTimeInputColumn1.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center;
- //
- //
- //
- //
- //
- //
- this.dataGridViewDateTimeInputColumn1.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn1.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
- //
- //
- //
- this.dataGridViewDateTimeInputColumn1.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn1.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0);
- this.dataGridViewDateTimeInputColumn1.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
- //
- //
- //
- this.dataGridViewDateTimeInputColumn1.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn1.MonthCalendar.Visible = false;
- this.dataGridViewDateTimeInputColumn1.Name = "dataGridViewDateTimeInputColumn1";
- this.dataGridViewDateTimeInputColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewDateTimeInputColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.dataGridViewDateTimeInputColumn1.Width = 80;
- //
- // dataGridViewTextBoxColumn43
- //
- this.dataGridViewTextBoxColumn43.HeaderText = "持续";
- this.dataGridViewTextBoxColumn43.Name = "dataGridViewTextBoxColumn43";
- this.dataGridViewTextBoxColumn43.Width = 45;
- //
- // dataGridViewDateTimeInputColumn2
- //
- this.dataGridViewDateTimeInputColumn2.AutoAdvance = true;
- //
- //
- //
- this.dataGridViewDateTimeInputColumn2.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window;
- this.dataGridViewDateTimeInputColumn2.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
- this.dataGridViewDateTimeInputColumn2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn2.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText;
- this.dataGridViewDateTimeInputColumn2.ButtonDropDown.Visible = true;
- this.dataGridViewDateTimeInputColumn2.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime;
- this.dataGridViewDateTimeInputColumn2.HeaderText = "结束时间";
- this.dataGridViewDateTimeInputColumn2.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left;
- //
- //
- //
- //
- //
- //
- this.dataGridViewDateTimeInputColumn2.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn2.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
- //
- //
- //
- this.dataGridViewDateTimeInputColumn2.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn2.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0);
- this.dataGridViewDateTimeInputColumn2.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
- //
- //
- //
- this.dataGridViewDateTimeInputColumn2.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn2.MonthCalendar.Visible = false;
- this.dataGridViewDateTimeInputColumn2.Name = "dataGridViewDateTimeInputColumn2";
- this.dataGridViewDateTimeInputColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewDateTimeInputColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.dataGridViewDateTimeInputColumn2.Width = 80;
- //
- // dataGridViewTextBoxColumn44
- //
- this.dataGridViewTextBoxColumn44.HeaderText = "种类";
- this.dataGridViewTextBoxColumn44.Name = "dataGridViewTextBoxColumn44";
- this.dataGridViewTextBoxColumn44.Visible = false;
- this.dataGridViewTextBoxColumn44.Width = 50;
- //
// P1
//
this.P1.AttachedControl = this.superTabControlPanel4;
@@ -524,7 +315,7 @@
this.superTabControlPanel5.Dock = System.Windows.Forms.DockStyle.Fill;
this.superTabControlPanel5.Location = new System.Drawing.Point(0, 31);
this.superTabControlPanel5.Name = "superTabControlPanel5";
- this.superTabControlPanel5.Size = new System.Drawing.Size(1091, 604);
+ this.superTabControlPanel5.Size = new System.Drawing.Size(1070, 604);
this.superTabControlPanel5.TabIndex = 0;
this.superTabControlPanel5.TabItem = this.P2;
this.superTabControlPanel5.Visible = false;
@@ -594,211 +385,10 @@
this.dgvDrugsSZ.RowTemplate.Height = 25;
this.dgvDrugsSZ.ShowCellErrors = false;
this.dgvDrugsSZ.ShowCellToolTips = false;
- this.dgvDrugsSZ.Size = new System.Drawing.Size(1091, 604);
+ this.dgvDrugsSZ.Size = new System.Drawing.Size(1070, 604);
this.dgvDrugsSZ.TabIndex = 16;
this.dgvDrugsSZ.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvDrugs_DataError);
//
- // dataGridViewImageColumn1
- //
- this.dataGridViewImageColumn1.HeaderText = " ";
- this.dataGridViewImageColumn1.Image = global::AIMS.Properties.Resources.SYSCRL;
- this.dataGridViewImageColumn1.Name = "dataGridViewImageColumn1";
- this.dataGridViewImageColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewImageColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
- this.dataGridViewImageColumn1.Width = 30;
- //
- // dataGridViewTextBoxColumn1
- //
- dataGridViewCellStyle8.ForeColor = System.Drawing.Color.Red;
- this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle8;
- this.dataGridViewTextBoxColumn1.HeaderText = "组";
- this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
- this.dataGridViewTextBoxColumn1.Width = 30;
- //
- // dataGridViewTextBoxColumn2
- //
- this.dataGridViewTextBoxColumn2.HeaderText = "类型";
- this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
- this.dataGridViewTextBoxColumn2.Visible = false;
- this.dataGridViewTextBoxColumn2.Width = 60;
- //
- // dataGridViewTextBoxColumn3
- //
- this.dataGridViewTextBoxColumn3.HeaderText = "名称";
- this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
- this.dataGridViewTextBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewTextBoxColumn3.Width = 160;
- //
- // dataGridViewComboEditBoxColumn2
- //
- this.dataGridViewComboEditBoxColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
- this.dataGridViewComboEditBoxColumn2.HeaderText = "备注";
- this.dataGridViewComboEditBoxColumn2.Name = "dataGridViewComboEditBoxColumn2";
- this.dataGridViewComboEditBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- //
- // dataGridViewComboBoxColumn1
- //
- this.dataGridViewComboBoxColumn1.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn1.HeaderText = "途径";
- this.dataGridViewComboBoxColumn1.Name = "dataGridViewComboBoxColumn1";
- this.dataGridViewComboBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewComboBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.dataGridViewComboBoxColumn1.Width = 85;
- //
- // dataGridViewTextBoxColumn4
- //
- this.dataGridViewTextBoxColumn4.HeaderText = "浓度";
- this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
- this.dataGridViewTextBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewTextBoxColumn4.Width = 45;
- //
- // dataGridViewComboBoxColumn2
- //
- this.dataGridViewComboBoxColumn2.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn2.HeaderText = "浓度单位";
- this.dataGridViewComboBoxColumn2.Name = "dataGridViewComboBoxColumn2";
- this.dataGridViewComboBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.dataGridViewComboBoxColumn2.Width = 75;
- //
- // dataGridViewTextBoxColumn5
- //
- this.dataGridViewTextBoxColumn5.HeaderText = "速度";
- this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
- this.dataGridViewTextBoxColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewTextBoxColumn5.Width = 45;
- //
- // dataGridViewComboBoxColumn3
- //
- this.dataGridViewComboBoxColumn3.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn3.HeaderText = "速度单位";
- this.dataGridViewComboBoxColumn3.Name = "dataGridViewComboBoxColumn3";
- this.dataGridViewComboBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewComboBoxColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.dataGridViewComboBoxColumn3.Width = 85;
- //
- // dataGridViewTextBoxColumn6
- //
- this.dataGridViewTextBoxColumn6.HeaderText = "用量";
- this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
- this.dataGridViewTextBoxColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.dataGridViewTextBoxColumn6.Width = 60;
- //
- // dataGridViewComboBoxColumn4
- //
- this.dataGridViewComboBoxColumn4.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn4.HeaderText = "单位";
- this.dataGridViewComboBoxColumn4.Name = "dataGridViewComboBoxColumn4";
- this.dataGridViewComboBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewComboBoxColumn4.Width = 60;
- //
- // dataGridViewComboBoxColumn23
- //
- this.dataGridViewComboBoxColumn23.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn23.HeaderText = "血型";
- this.dataGridViewComboBoxColumn23.Name = "dataGridViewComboBoxColumn23";
- this.dataGridViewComboBoxColumn23.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewComboBoxColumn23.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.dataGridViewComboBoxColumn23.Width = 45;
- //
- // dataGridViewComboBoxColumn24
- //
- this.dataGridViewComboBoxColumn24.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn24.HeaderText = "加药方式";
- this.dataGridViewComboBoxColumn24.Name = "dataGridViewComboBoxColumn24";
- this.dataGridViewComboBoxColumn24.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewComboBoxColumn24.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.dataGridViewComboBoxColumn24.Visible = false;
- this.dataGridViewComboBoxColumn24.Width = 80;
- //
- // dataGridViewDateTimeInputColumn3
- //
- this.dataGridViewDateTimeInputColumn3.AutoAdvance = true;
- //
- //
- //
- this.dataGridViewDateTimeInputColumn3.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window;
- this.dataGridViewDateTimeInputColumn3.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
- this.dataGridViewDateTimeInputColumn3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn3.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText;
- this.dataGridViewDateTimeInputColumn3.ButtonDropDown.Visible = true;
- this.dataGridViewDateTimeInputColumn3.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime;
- this.dataGridViewDateTimeInputColumn3.HeaderText = "开始时间";
- this.dataGridViewDateTimeInputColumn3.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center;
- //
- //
- //
- //
- //
- //
- this.dataGridViewDateTimeInputColumn3.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn3.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
- //
- //
- //
- this.dataGridViewDateTimeInputColumn3.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn3.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0);
- this.dataGridViewDateTimeInputColumn3.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
- //
- //
- //
- this.dataGridViewDateTimeInputColumn3.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn3.MonthCalendar.Visible = false;
- this.dataGridViewDateTimeInputColumn3.Name = "dataGridViewDateTimeInputColumn3";
- this.dataGridViewDateTimeInputColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewDateTimeInputColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.dataGridViewDateTimeInputColumn3.Width = 80;
- //
- // dataGridViewTextBoxColumn7
- //
- this.dataGridViewTextBoxColumn7.HeaderText = "持续";
- this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
- this.dataGridViewTextBoxColumn7.Width = 45;
- //
- // dataGridViewDateTimeInputColumn4
- //
- this.dataGridViewDateTimeInputColumn4.AutoAdvance = true;
- //
- //
- //
- this.dataGridViewDateTimeInputColumn4.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window;
- this.dataGridViewDateTimeInputColumn4.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
- this.dataGridViewDateTimeInputColumn4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn4.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText;
- this.dataGridViewDateTimeInputColumn4.ButtonDropDown.Visible = true;
- this.dataGridViewDateTimeInputColumn4.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime;
- this.dataGridViewDateTimeInputColumn4.HeaderText = "结束时间";
- this.dataGridViewDateTimeInputColumn4.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left;
- //
- //
- //
- //
- //
- //
- this.dataGridViewDateTimeInputColumn4.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn4.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
- //
- //
- //
- this.dataGridViewDateTimeInputColumn4.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn4.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0);
- this.dataGridViewDateTimeInputColumn4.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
- //
- //
- //
- this.dataGridViewDateTimeInputColumn4.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn4.MonthCalendar.Visible = false;
- this.dataGridViewDateTimeInputColumn4.Name = "dataGridViewDateTimeInputColumn4";
- this.dataGridViewDateTimeInputColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewDateTimeInputColumn4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.dataGridViewDateTimeInputColumn4.Width = 80;
- //
- // dataGridViewTextBoxColumn8
- //
- this.dataGridViewTextBoxColumn8.HeaderText = "种类";
- this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
- this.dataGridViewTextBoxColumn8.Visible = false;
- this.dataGridViewTextBoxColumn8.Width = 50;
- //
// P2
//
this.P2.AttachedControl = this.superTabControlPanel5;
@@ -812,7 +402,7 @@
this.superTabControlPanel6.Dock = System.Windows.Forms.DockStyle.Fill;
this.superTabControlPanel6.Location = new System.Drawing.Point(0, 31);
this.superTabControlPanel6.Name = "superTabControlPanel6";
- this.superTabControlPanel6.Size = new System.Drawing.Size(1091, 604);
+ this.superTabControlPanel6.Size = new System.Drawing.Size(1070, 604);
this.superTabControlPanel6.TabIndex = 0;
this.superTabControlPanel6.TabItem = this.P3;
this.superTabControlPanel6.Visible = false;
@@ -822,18 +412,18 @@
this.dgvDrugsSH.AllowUserToAddRows = false;
this.dgvDrugsSH.AllowUserToResizeColumns = false;
this.dgvDrugsSH.AllowUserToResizeRows = false;
- dataGridViewCellStyle11.BackColor = System.Drawing.Color.MintCream;
- this.dgvDrugsSH.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.MintCream;
+ this.dgvDrugsSH.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.dgvDrugsSH.BackgroundColor = System.Drawing.Color.White;
this.dgvDrugsSH.BorderStyle = System.Windows.Forms.BorderStyle.None;
- dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle12.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.dgvDrugsSH.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.dgvDrugsSH.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.dgvDrugsSH.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvDrugsSH.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewImageColumn2,
@@ -854,14 +444,14 @@
this.dataGridViewTextBoxColumn15,
this.dataGridViewDateTimeInputColumn6,
this.dataGridViewTextBoxColumn16});
- dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle14.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle14.ForeColor = System.Drawing.Color.Black;
- dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle14.SelectionForeColor = System.Drawing.Color.Black;
- dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.dgvDrugsSH.DefaultCellStyle = dataGridViewCellStyle14;
+ dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle4.ForeColor = System.Drawing.Color.Black;
+ dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.Black;
+ dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.dgvDrugsSH.DefaultCellStyle = dataGridViewCellStyle4;
this.dgvDrugsSH.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvDrugsSH.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
this.dgvDrugsSH.EnableHeadersVisualStyles = false;
@@ -870,223 +460,22 @@
this.dgvDrugsSH.Margin = new System.Windows.Forms.Padding(0);
this.dgvDrugsSH.MultiSelect = false;
this.dgvDrugsSH.Name = "dgvDrugsSH";
- dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle15.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.dgvDrugsSH.RowHeadersDefaultCellStyle = dataGridViewCellStyle15;
+ dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.dgvDrugsSH.RowHeadersDefaultCellStyle = dataGridViewCellStyle5;
this.dgvDrugsSH.RowHeadersVisible = false;
this.dgvDrugsSH.RowTemplate.Height = 25;
this.dgvDrugsSH.ShowCellErrors = false;
this.dgvDrugsSH.ShowCellToolTips = false;
- this.dgvDrugsSH.Size = new System.Drawing.Size(1091, 604);
+ this.dgvDrugsSH.Size = new System.Drawing.Size(1070, 604);
this.dgvDrugsSH.TabIndex = 17;
this.dgvDrugsSH.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvDrugs_DataError);
//
- // dataGridViewImageColumn2
- //
- this.dataGridViewImageColumn2.HeaderText = " ";
- this.dataGridViewImageColumn2.Image = global::AIMS.Properties.Resources.SYSCRL;
- this.dataGridViewImageColumn2.Name = "dataGridViewImageColumn2";
- this.dataGridViewImageColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewImageColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
- this.dataGridViewImageColumn2.Width = 30;
- //
- // dataGridViewTextBoxColumn9
- //
- dataGridViewCellStyle13.ForeColor = System.Drawing.Color.Red;
- this.dataGridViewTextBoxColumn9.DefaultCellStyle = dataGridViewCellStyle13;
- this.dataGridViewTextBoxColumn9.HeaderText = "组";
- this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
- this.dataGridViewTextBoxColumn9.Width = 30;
- //
- // dataGridViewTextBoxColumn10
- //
- this.dataGridViewTextBoxColumn10.HeaderText = "类型";
- this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
- this.dataGridViewTextBoxColumn10.Visible = false;
- this.dataGridViewTextBoxColumn10.Width = 60;
- //
- // dataGridViewTextBoxColumn11
- //
- this.dataGridViewTextBoxColumn11.HeaderText = "名称";
- this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11";
- this.dataGridViewTextBoxColumn11.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewTextBoxColumn11.Width = 160;
- //
- // dataGridViewComboEditBoxColumn3
- //
- this.dataGridViewComboEditBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
- this.dataGridViewComboEditBoxColumn3.HeaderText = "备注";
- this.dataGridViewComboEditBoxColumn3.Name = "dataGridViewComboEditBoxColumn3";
- this.dataGridViewComboEditBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- //
- // dataGridViewComboBoxColumn5
- //
- this.dataGridViewComboBoxColumn5.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn5.HeaderText = "途径";
- this.dataGridViewComboBoxColumn5.Name = "dataGridViewComboBoxColumn5";
- this.dataGridViewComboBoxColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewComboBoxColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.dataGridViewComboBoxColumn5.Width = 85;
- //
- // dataGridViewTextBoxColumn12
- //
- this.dataGridViewTextBoxColumn12.HeaderText = "浓度";
- this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12";
- this.dataGridViewTextBoxColumn12.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewTextBoxColumn12.Width = 45;
- //
- // dataGridViewComboBoxColumn6
- //
- this.dataGridViewComboBoxColumn6.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn6.HeaderText = "浓度单位";
- this.dataGridViewComboBoxColumn6.Name = "dataGridViewComboBoxColumn6";
- this.dataGridViewComboBoxColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.dataGridViewComboBoxColumn6.Width = 75;
- //
- // dataGridViewTextBoxColumn13
- //
- this.dataGridViewTextBoxColumn13.HeaderText = "速度";
- this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13";
- this.dataGridViewTextBoxColumn13.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewTextBoxColumn13.Width = 45;
- //
- // dataGridViewComboBoxColumn7
- //
- this.dataGridViewComboBoxColumn7.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn7.HeaderText = "速度单位";
- this.dataGridViewComboBoxColumn7.Name = "dataGridViewComboBoxColumn7";
- this.dataGridViewComboBoxColumn7.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewComboBoxColumn7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.dataGridViewComboBoxColumn7.Width = 85;
- //
- // dataGridViewTextBoxColumn14
- //
- this.dataGridViewTextBoxColumn14.HeaderText = "用量";
- this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14";
- this.dataGridViewTextBoxColumn14.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.dataGridViewTextBoxColumn14.Width = 60;
- //
- // dataGridViewComboBoxColumn8
- //
- this.dataGridViewComboBoxColumn8.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn8.HeaderText = "单位";
- this.dataGridViewComboBoxColumn8.Name = "dataGridViewComboBoxColumn8";
- this.dataGridViewComboBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewComboBoxColumn8.Width = 60;
- //
- // dataGridViewComboBoxColumn25
- //
- this.dataGridViewComboBoxColumn25.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn25.HeaderText = "血型";
- this.dataGridViewComboBoxColumn25.Name = "dataGridViewComboBoxColumn25";
- this.dataGridViewComboBoxColumn25.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewComboBoxColumn25.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.dataGridViewComboBoxColumn25.Width = 45;
- //
- // dataGridViewComboBoxColumn26
- //
- this.dataGridViewComboBoxColumn26.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
- this.dataGridViewComboBoxColumn26.HeaderText = "加药方式";
- this.dataGridViewComboBoxColumn26.Name = "dataGridViewComboBoxColumn26";
- this.dataGridViewComboBoxColumn26.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewComboBoxColumn26.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.dataGridViewComboBoxColumn26.Visible = false;
- this.dataGridViewComboBoxColumn26.Width = 80;
- //
- // dataGridViewDateTimeInputColumn5
- //
- this.dataGridViewDateTimeInputColumn5.AutoAdvance = true;
- //
- //
- //
- this.dataGridViewDateTimeInputColumn5.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window;
- this.dataGridViewDateTimeInputColumn5.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
- this.dataGridViewDateTimeInputColumn5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn5.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText;
- this.dataGridViewDateTimeInputColumn5.ButtonDropDown.Visible = true;
- this.dataGridViewDateTimeInputColumn5.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime;
- this.dataGridViewDateTimeInputColumn5.HeaderText = "开始时间";
- this.dataGridViewDateTimeInputColumn5.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center;
- //
- //
- //
- //
- //
- //
- this.dataGridViewDateTimeInputColumn5.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn5.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
- //
- //
- //
- this.dataGridViewDateTimeInputColumn5.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn5.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0);
- this.dataGridViewDateTimeInputColumn5.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
- //
- //
- //
- this.dataGridViewDateTimeInputColumn5.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn5.MonthCalendar.Visible = false;
- this.dataGridViewDateTimeInputColumn5.Name = "dataGridViewDateTimeInputColumn5";
- this.dataGridViewDateTimeInputColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewDateTimeInputColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.dataGridViewDateTimeInputColumn5.Width = 80;
- //
- // dataGridViewTextBoxColumn15
- //
- this.dataGridViewTextBoxColumn15.HeaderText = "持续";
- this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15";
- this.dataGridViewTextBoxColumn15.Width = 45;
- //
- // dataGridViewDateTimeInputColumn6
- //
- this.dataGridViewDateTimeInputColumn6.AutoAdvance = true;
- //
- //
- //
- this.dataGridViewDateTimeInputColumn6.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window;
- this.dataGridViewDateTimeInputColumn6.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
- this.dataGridViewDateTimeInputColumn6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn6.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText;
- this.dataGridViewDateTimeInputColumn6.ButtonDropDown.Visible = true;
- this.dataGridViewDateTimeInputColumn6.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime;
- this.dataGridViewDateTimeInputColumn6.HeaderText = "结束时间";
- this.dataGridViewDateTimeInputColumn6.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left;
- //
- //
- //
- //
- //
- //
- this.dataGridViewDateTimeInputColumn6.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn6.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
- //
- //
- //
- this.dataGridViewDateTimeInputColumn6.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn6.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0);
- this.dataGridViewDateTimeInputColumn6.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
- //
- //
- //
- this.dataGridViewDateTimeInputColumn6.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.dataGridViewDateTimeInputColumn6.MonthCalendar.Visible = false;
- this.dataGridViewDateTimeInputColumn6.Name = "dataGridViewDateTimeInputColumn6";
- this.dataGridViewDateTimeInputColumn6.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dataGridViewDateTimeInputColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.dataGridViewDateTimeInputColumn6.Width = 80;
- //
- // dataGridViewTextBoxColumn16
- //
- this.dataGridViewTextBoxColumn16.HeaderText = "种类";
- this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16";
- this.dataGridViewTextBoxColumn16.Visible = false;
- this.dataGridViewTextBoxColumn16.Width = 50;
- //
// P3
//
this.P3.AttachedControl = this.superTabControlPanel6;
@@ -1099,7 +488,7 @@
this.superTabControlPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.superTabControlPanel1.Location = new System.Drawing.Point(0, 0);
this.superTabControlPanel1.Name = "superTabControlPanel1";
- this.superTabControlPanel1.Size = new System.Drawing.Size(1028, 635);
+ this.superTabControlPanel1.Size = new System.Drawing.Size(1070, 635);
this.superTabControlPanel1.TabIndex = 0;
//
// superTabControlPanel2
@@ -1107,7 +496,7 @@
this.superTabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.superTabControlPanel2.Location = new System.Drawing.Point(0, 0);
this.superTabControlPanel2.Name = "superTabControlPanel2";
- this.superTabControlPanel2.Size = new System.Drawing.Size(1028, 635);
+ this.superTabControlPanel2.Size = new System.Drawing.Size(1070, 635);
this.superTabControlPanel2.TabIndex = 0;
//
// panelleft
@@ -1136,10 +525,6 @@
this.TabSelDrugs.ControlBox.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.TabSelDrugs.ControlBox.MenuBox,
this.TabSelDrugs.ControlBox.CloseBox});
- this.TabSelDrugs.Controls.Add(this.AnesPanel);
- this.TabSelDrugs.Controls.Add(this.XuePanel);
- this.TabSelDrugs.Controls.Add(this.SapPanel);
- this.TabSelDrugs.Controls.Add(this.DrugsPanel);
this.TabSelDrugs.Dock = System.Windows.Forms.DockStyle.Fill;
this.TabSelDrugs.HorizontalText = false;
this.TabSelDrugs.Location = new System.Drawing.Point(0, 0);
@@ -1151,68 +536,20 @@
this.TabSelDrugs.TabAlignment = DevComponents.DotNetBar.eTabStripAlignment.Left;
this.TabSelDrugs.TabFont = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.TabSelDrugs.TabIndex = 0;
- this.TabSelDrugs.Tabs.AddRange(new DevComponents.DotNetBar.BaseItem[] {
- this.AnesTab});
this.TabSelDrugs.TabStyle = DevComponents.DotNetBar.eSuperTabStyle.Office2010BackstageBlue;
this.TabSelDrugs.Text = "常用药品";
- this.TabSelDrugs.SelectedTabChanged += new System.EventHandler(this.superTabControl1_SelectedTabChanged);
- //
- // AnesPanel
- //
- this.AnesPanel.Dock = System.Windows.Forms.DockStyle.Fill;
- this.AnesPanel.Location = new System.Drawing.Point(30, 0);
- this.AnesPanel.Name = "AnesPanel";
- this.AnesPanel.Size = new System.Drawing.Size(300, 635);
- this.AnesPanel.TabIndex = 0;
- this.AnesPanel.TabItem = this.AnesTab;
- //
- // AnesTab
- //
- this.AnesTab.AttachedControl = this.AnesPanel;
- this.AnesTab.GlobalItem = false;
- this.AnesTab.Name = "AnesTab";
- this.AnesTab.Text = "常用药";
- //
- // XuePanel
- //
- this.XuePanel.Dock = System.Windows.Forms.DockStyle.Fill;
- this.XuePanel.Location = new System.Drawing.Point(30, 0);
- this.XuePanel.Name = "XuePanel";
- this.XuePanel.Size = new System.Drawing.Size(300, 635);
- this.XuePanel.TabIndex = 0;
- this.XuePanel.Text = " ";
- //
- // SapPanel
- //
- this.SapPanel.Dock = System.Windows.Forms.DockStyle.Fill;
- this.SapPanel.Location = new System.Drawing.Point(30, 0);
- this.SapPanel.Name = "SapPanel";
- this.SapPanel.Size = new System.Drawing.Size(300, 635);
- this.SapPanel.TabIndex = 0;
- this.SapPanel.Text = " ";
- //
- // DrugsPanel
- //
- this.DrugsPanel.Dock = System.Windows.Forms.DockStyle.Fill;
- this.DrugsPanel.Location = new System.Drawing.Point(30, 0);
- this.DrugsPanel.Name = "DrugsPanel";
- this.DrugsPanel.Size = new System.Drawing.Size(300, 635);
- this.DrugsPanel.TabIndex = 1;
- this.DrugsPanel.Text = " ";
//
// panel2
//
this.panel2.BackColor = System.Drawing.SystemColors.Control;
this.panel2.Controls.Add(this.btnTypeManager);
this.panel2.Controls.Add(this.buttonX1);
- this.panel2.Controls.Add(this.txtQuery);
- this.panel2.Controls.Add(this.labelX2);
this.panel2.Controls.Add(this.btnDelete);
this.panel2.Controls.Add(this.btnSave);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(1358, 42);
+ this.panel2.Size = new System.Drawing.Size(1400, 42);
this.panel2.TabIndex = 0;
//
// btnTypeManager
@@ -1237,37 +574,6 @@
this.buttonX1.Visible = false;
this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click);
//
- // txtQuery
- //
- //
- //
- //
- this.txtQuery.Border.Class = "TextBoxBorder";
- this.txtQuery.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.txtQuery.Font = new System.Drawing.Font("微软雅黑", 13F);
- this.txtQuery.Location = new System.Drawing.Point(124, 8);
- this.txtQuery.Name = "txtQuery";
- this.txtQuery.PreventEnterBeep = true;
- this.txtQuery.Size = new System.Drawing.Size(135, 30);
- this.txtQuery.TabIndex = 8;
- this.txtQuery.Visible = false;
- this.txtQuery.Click += new System.EventHandler(this.txtQuery_Click);
- this.txtQuery.TextChanged += new System.EventHandler(this.txtQuery_TextChanged);
- //
- // labelX2
- //
- //
- //
- //
- this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.labelX2.Font = new System.Drawing.Font("微软雅黑", 13.5F);
- this.labelX2.Location = new System.Drawing.Point(3, 8);
- this.labelX2.Name = "labelX2";
- this.labelX2.Size = new System.Drawing.Size(120, 30);
- this.labelX2.TabIndex = 7;
- this.labelX2.Text = "入量快速检索";
- this.labelX2.Visible = false;
- //
// btnDelete
//
this.btnDelete.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
@@ -1499,11 +805,635 @@
this.imageList1.Images.SetKeyName(0, "插入列.png");
this.imageList1.Images.SetKeyName(1, "未插入列 .png");
//
+ // dataGridViewImageColumn5
+ //
+ this.dataGridViewImageColumn5.HeaderText = " ";
+ this.dataGridViewImageColumn5.Image = global::AIMS.Properties.Resources.SYSCRL;
+ this.dataGridViewImageColumn5.Name = "dataGridViewImageColumn5";
+ this.dataGridViewImageColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewImageColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
+ this.dataGridViewImageColumn5.Width = 30;
+ //
+ // dataGridViewTextBoxColumn37
+ //
+ dataGridViewCellStyle13.ForeColor = System.Drawing.Color.Red;
+ this.dataGridViewTextBoxColumn37.DefaultCellStyle = dataGridViewCellStyle13;
+ this.dataGridViewTextBoxColumn37.HeaderText = "组";
+ this.dataGridViewTextBoxColumn37.Name = "dataGridViewTextBoxColumn37";
+ this.dataGridViewTextBoxColumn37.Width = 30;
+ //
+ // dataGridViewTextBoxColumn38
+ //
+ this.dataGridViewTextBoxColumn38.HeaderText = "类型";
+ this.dataGridViewTextBoxColumn38.Name = "dataGridViewTextBoxColumn38";
+ this.dataGridViewTextBoxColumn38.Visible = false;
+ this.dataGridViewTextBoxColumn38.Width = 60;
+ //
+ // dataGridViewTextBoxColumn39
+ //
+ this.dataGridViewTextBoxColumn39.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.dataGridViewTextBoxColumn39.HeaderText = "名称";
+ this.dataGridViewTextBoxColumn39.Name = "dataGridViewTextBoxColumn39";
+ this.dataGridViewTextBoxColumn39.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ //
+ // dataGridViewComboEditBoxColumn1
+ //
+ this.dataGridViewComboEditBoxColumn1.HeaderText = "备注";
+ this.dataGridViewComboEditBoxColumn1.Name = "dataGridViewComboEditBoxColumn1";
+ this.dataGridViewComboEditBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ //
+ // dataGridViewComboBoxColumn17
+ //
+ this.dataGridViewComboBoxColumn17.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn17.HeaderText = "途径";
+ this.dataGridViewComboBoxColumn17.Name = "dataGridViewComboBoxColumn17";
+ this.dataGridViewComboBoxColumn17.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewComboBoxColumn17.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewComboBoxColumn17.Width = 85;
+ //
+ // dataGridViewTextBoxColumn40
+ //
+ this.dataGridViewTextBoxColumn40.HeaderText = "浓度";
+ this.dataGridViewTextBoxColumn40.Name = "dataGridViewTextBoxColumn40";
+ this.dataGridViewTextBoxColumn40.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewTextBoxColumn40.Width = 45;
+ //
+ // dataGridViewComboBoxColumn18
+ //
+ this.dataGridViewComboBoxColumn18.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn18.HeaderText = "浓度单位";
+ this.dataGridViewComboBoxColumn18.Name = "dataGridViewComboBoxColumn18";
+ this.dataGridViewComboBoxColumn18.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewComboBoxColumn18.Width = 75;
+ //
+ // dataGridViewTextBoxColumn41
+ //
+ this.dataGridViewTextBoxColumn41.HeaderText = "速度";
+ this.dataGridViewTextBoxColumn41.Name = "dataGridViewTextBoxColumn41";
+ this.dataGridViewTextBoxColumn41.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewTextBoxColumn41.Width = 45;
+ //
+ // dataGridViewComboBoxColumn19
+ //
+ this.dataGridViewComboBoxColumn19.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn19.HeaderText = "速度单位";
+ this.dataGridViewComboBoxColumn19.Name = "dataGridViewComboBoxColumn19";
+ this.dataGridViewComboBoxColumn19.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewComboBoxColumn19.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewComboBoxColumn19.Width = 85;
+ //
+ // dataGridViewTextBoxColumn42
+ //
+ this.dataGridViewTextBoxColumn42.HeaderText = "用量";
+ this.dataGridViewTextBoxColumn42.Name = "dataGridViewTextBoxColumn42";
+ this.dataGridViewTextBoxColumn42.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.dataGridViewTextBoxColumn42.Width = 60;
+ //
+ // dataGridViewComboBoxColumn20
+ //
+ this.dataGridViewComboBoxColumn20.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn20.HeaderText = "单位";
+ this.dataGridViewComboBoxColumn20.Name = "dataGridViewComboBoxColumn20";
+ this.dataGridViewComboBoxColumn20.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewComboBoxColumn20.Width = 60;
+ //
+ // dataGridViewComboBoxColumn21
+ //
+ this.dataGridViewComboBoxColumn21.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn21.HeaderText = "血型";
+ this.dataGridViewComboBoxColumn21.Name = "dataGridViewComboBoxColumn21";
+ this.dataGridViewComboBoxColumn21.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewComboBoxColumn21.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewComboBoxColumn21.Width = 45;
+ //
+ // dataGridViewComboBoxColumn22
+ //
+ this.dataGridViewComboBoxColumn22.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn22.HeaderText = "加药方式";
+ this.dataGridViewComboBoxColumn22.Name = "dataGridViewComboBoxColumn22";
+ this.dataGridViewComboBoxColumn22.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewComboBoxColumn22.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewComboBoxColumn22.Visible = false;
+ this.dataGridViewComboBoxColumn22.Width = 80;
+ //
+ // dataGridViewDateTimeInputColumn1
+ //
+ this.dataGridViewDateTimeInputColumn1.AutoAdvance = true;
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn1.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window;
+ this.dataGridViewDateTimeInputColumn1.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
+ this.dataGridViewDateTimeInputColumn1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn1.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText;
+ this.dataGridViewDateTimeInputColumn1.ButtonDropDown.Visible = true;
+ this.dataGridViewDateTimeInputColumn1.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime;
+ this.dataGridViewDateTimeInputColumn1.HeaderText = "开始时间";
+ this.dataGridViewDateTimeInputColumn1.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center;
+ //
+ //
+ //
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn1.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn1.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn1.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn1.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0);
+ this.dataGridViewDateTimeInputColumn1.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn1.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn1.MonthCalendar.Visible = false;
+ this.dataGridViewDateTimeInputColumn1.Name = "dataGridViewDateTimeInputColumn1";
+ this.dataGridViewDateTimeInputColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewDateTimeInputColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.dataGridViewDateTimeInputColumn1.Width = 80;
+ //
+ // dataGridViewTextBoxColumn43
+ //
+ this.dataGridViewTextBoxColumn43.HeaderText = "持续";
+ this.dataGridViewTextBoxColumn43.Name = "dataGridViewTextBoxColumn43";
+ this.dataGridViewTextBoxColumn43.Width = 45;
+ //
+ // dataGridViewDateTimeInputColumn2
+ //
+ this.dataGridViewDateTimeInputColumn2.AutoAdvance = true;
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn2.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window;
+ this.dataGridViewDateTimeInputColumn2.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
+ this.dataGridViewDateTimeInputColumn2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn2.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText;
+ this.dataGridViewDateTimeInputColumn2.ButtonDropDown.Visible = true;
+ this.dataGridViewDateTimeInputColumn2.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime;
+ this.dataGridViewDateTimeInputColumn2.HeaderText = "结束时间";
+ this.dataGridViewDateTimeInputColumn2.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left;
+ //
+ //
+ //
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn2.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn2.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn2.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn2.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0);
+ this.dataGridViewDateTimeInputColumn2.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn2.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn2.MonthCalendar.Visible = false;
+ this.dataGridViewDateTimeInputColumn2.Name = "dataGridViewDateTimeInputColumn2";
+ this.dataGridViewDateTimeInputColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewDateTimeInputColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.dataGridViewDateTimeInputColumn2.Width = 80;
+ //
+ // dataGridViewTextBoxColumn44
+ //
+ this.dataGridViewTextBoxColumn44.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewTextBoxColumn44.HeaderText = "通路";
+ this.dataGridViewTextBoxColumn44.Items.AddRange(new object[] {
+ "",
+ "1",
+ "2",
+ "3",
+ "4"});
+ this.dataGridViewTextBoxColumn44.Name = "dataGridViewTextBoxColumn44";
+ this.dataGridViewTextBoxColumn44.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+ this.dataGridViewTextBoxColumn44.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewTextBoxColumn44.Width = 50;
+ //
+ // dataGridViewImageColumn1
+ //
+ this.dataGridViewImageColumn1.HeaderText = " ";
+ this.dataGridViewImageColumn1.Image = global::AIMS.Properties.Resources.SYSCRL;
+ this.dataGridViewImageColumn1.Name = "dataGridViewImageColumn1";
+ this.dataGridViewImageColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewImageColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
+ this.dataGridViewImageColumn1.Width = 30;
+ //
+ // dataGridViewTextBoxColumn1
+ //
+ dataGridViewCellStyle8.ForeColor = System.Drawing.Color.Red;
+ this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle8;
+ this.dataGridViewTextBoxColumn1.HeaderText = "组";
+ this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
+ this.dataGridViewTextBoxColumn1.Width = 30;
+ //
+ // dataGridViewTextBoxColumn2
+ //
+ this.dataGridViewTextBoxColumn2.HeaderText = "类型";
+ this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
+ this.dataGridViewTextBoxColumn2.Visible = false;
+ this.dataGridViewTextBoxColumn2.Width = 60;
+ //
+ // dataGridViewTextBoxColumn3
+ //
+ this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.dataGridViewTextBoxColumn3.HeaderText = "名称";
+ this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
+ this.dataGridViewTextBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ //
+ // dataGridViewComboEditBoxColumn2
+ //
+ this.dataGridViewComboEditBoxColumn2.HeaderText = "备注";
+ this.dataGridViewComboEditBoxColumn2.Name = "dataGridViewComboEditBoxColumn2";
+ this.dataGridViewComboEditBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ //
+ // dataGridViewComboBoxColumn1
+ //
+ this.dataGridViewComboBoxColumn1.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn1.HeaderText = "途径";
+ this.dataGridViewComboBoxColumn1.Name = "dataGridViewComboBoxColumn1";
+ this.dataGridViewComboBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewComboBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewComboBoxColumn1.Width = 85;
+ //
+ // dataGridViewTextBoxColumn4
+ //
+ this.dataGridViewTextBoxColumn4.HeaderText = "浓度";
+ this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
+ this.dataGridViewTextBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewTextBoxColumn4.Width = 45;
+ //
+ // dataGridViewComboBoxColumn2
+ //
+ this.dataGridViewComboBoxColumn2.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn2.HeaderText = "浓度单位";
+ this.dataGridViewComboBoxColumn2.Name = "dataGridViewComboBoxColumn2";
+ this.dataGridViewComboBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewComboBoxColumn2.Width = 75;
+ //
+ // dataGridViewTextBoxColumn5
+ //
+ this.dataGridViewTextBoxColumn5.HeaderText = "速度";
+ this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
+ this.dataGridViewTextBoxColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewTextBoxColumn5.Width = 45;
+ //
+ // dataGridViewComboBoxColumn3
+ //
+ this.dataGridViewComboBoxColumn3.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn3.HeaderText = "速度单位";
+ this.dataGridViewComboBoxColumn3.Name = "dataGridViewComboBoxColumn3";
+ this.dataGridViewComboBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewComboBoxColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewComboBoxColumn3.Width = 85;
+ //
+ // dataGridViewTextBoxColumn6
+ //
+ this.dataGridViewTextBoxColumn6.HeaderText = "用量";
+ this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
+ this.dataGridViewTextBoxColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.dataGridViewTextBoxColumn6.Width = 60;
+ //
+ // dataGridViewComboBoxColumn4
+ //
+ this.dataGridViewComboBoxColumn4.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn4.HeaderText = "单位";
+ this.dataGridViewComboBoxColumn4.Name = "dataGridViewComboBoxColumn4";
+ this.dataGridViewComboBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewComboBoxColumn4.Width = 60;
+ //
+ // dataGridViewComboBoxColumn23
+ //
+ this.dataGridViewComboBoxColumn23.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn23.HeaderText = "血型";
+ this.dataGridViewComboBoxColumn23.Name = "dataGridViewComboBoxColumn23";
+ this.dataGridViewComboBoxColumn23.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewComboBoxColumn23.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewComboBoxColumn23.Width = 45;
+ //
+ // dataGridViewComboBoxColumn24
+ //
+ this.dataGridViewComboBoxColumn24.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn24.HeaderText = "加药方式";
+ this.dataGridViewComboBoxColumn24.Name = "dataGridViewComboBoxColumn24";
+ this.dataGridViewComboBoxColumn24.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewComboBoxColumn24.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewComboBoxColumn24.Visible = false;
+ this.dataGridViewComboBoxColumn24.Width = 80;
+ //
+ // dataGridViewDateTimeInputColumn3
+ //
+ this.dataGridViewDateTimeInputColumn3.AutoAdvance = true;
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn3.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window;
+ this.dataGridViewDateTimeInputColumn3.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
+ this.dataGridViewDateTimeInputColumn3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn3.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText;
+ this.dataGridViewDateTimeInputColumn3.ButtonDropDown.Visible = true;
+ this.dataGridViewDateTimeInputColumn3.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime;
+ this.dataGridViewDateTimeInputColumn3.HeaderText = "开始时间";
+ this.dataGridViewDateTimeInputColumn3.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center;
+ //
+ //
+ //
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn3.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn3.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn3.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn3.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0);
+ this.dataGridViewDateTimeInputColumn3.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn3.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn3.MonthCalendar.Visible = false;
+ this.dataGridViewDateTimeInputColumn3.Name = "dataGridViewDateTimeInputColumn3";
+ this.dataGridViewDateTimeInputColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewDateTimeInputColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.dataGridViewDateTimeInputColumn3.Width = 80;
+ //
+ // dataGridViewTextBoxColumn7
+ //
+ this.dataGridViewTextBoxColumn7.HeaderText = "持续";
+ this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
+ this.dataGridViewTextBoxColumn7.Width = 45;
+ //
+ // dataGridViewDateTimeInputColumn4
+ //
+ this.dataGridViewDateTimeInputColumn4.AutoAdvance = true;
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn4.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window;
+ this.dataGridViewDateTimeInputColumn4.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
+ this.dataGridViewDateTimeInputColumn4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn4.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText;
+ this.dataGridViewDateTimeInputColumn4.ButtonDropDown.Visible = true;
+ this.dataGridViewDateTimeInputColumn4.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime;
+ this.dataGridViewDateTimeInputColumn4.HeaderText = "结束时间";
+ this.dataGridViewDateTimeInputColumn4.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left;
+ //
+ //
+ //
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn4.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn4.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn4.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn4.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0);
+ this.dataGridViewDateTimeInputColumn4.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn4.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn4.MonthCalendar.Visible = false;
+ this.dataGridViewDateTimeInputColumn4.Name = "dataGridViewDateTimeInputColumn4";
+ this.dataGridViewDateTimeInputColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewDateTimeInputColumn4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.dataGridViewDateTimeInputColumn4.Width = 80;
+ //
+ // dataGridViewTextBoxColumn8
+ //
+ this.dataGridViewTextBoxColumn8.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewTextBoxColumn8.HeaderText = "通路";
+ this.dataGridViewTextBoxColumn8.Items.AddRange(new object[] {
+ "",
+ "1",
+ "2",
+ "3",
+ "4"});
+ this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
+ this.dataGridViewTextBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewTextBoxColumn8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewTextBoxColumn8.Width = 50;
+ //
+ // dataGridViewImageColumn2
+ //
+ this.dataGridViewImageColumn2.HeaderText = " ";
+ this.dataGridViewImageColumn2.Image = global::AIMS.Properties.Resources.SYSCRL;
+ this.dataGridViewImageColumn2.Name = "dataGridViewImageColumn2";
+ this.dataGridViewImageColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewImageColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
+ this.dataGridViewImageColumn2.Width = 30;
+ //
+ // dataGridViewTextBoxColumn9
+ //
+ dataGridViewCellStyle3.ForeColor = System.Drawing.Color.Red;
+ this.dataGridViewTextBoxColumn9.DefaultCellStyle = dataGridViewCellStyle3;
+ this.dataGridViewTextBoxColumn9.HeaderText = "组";
+ this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
+ this.dataGridViewTextBoxColumn9.Width = 30;
+ //
+ // dataGridViewTextBoxColumn10
+ //
+ this.dataGridViewTextBoxColumn10.HeaderText = "类型";
+ this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
+ this.dataGridViewTextBoxColumn10.Visible = false;
+ this.dataGridViewTextBoxColumn10.Width = 60;
+ //
+ // dataGridViewTextBoxColumn11
+ //
+ this.dataGridViewTextBoxColumn11.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.dataGridViewTextBoxColumn11.HeaderText = "名称";
+ this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11";
+ this.dataGridViewTextBoxColumn11.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ //
+ // dataGridViewComboEditBoxColumn3
+ //
+ this.dataGridViewComboEditBoxColumn3.HeaderText = "备注";
+ this.dataGridViewComboEditBoxColumn3.Name = "dataGridViewComboEditBoxColumn3";
+ this.dataGridViewComboEditBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ //
+ // dataGridViewComboBoxColumn5
+ //
+ this.dataGridViewComboBoxColumn5.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn5.HeaderText = "途径";
+ this.dataGridViewComboBoxColumn5.Name = "dataGridViewComboBoxColumn5";
+ this.dataGridViewComboBoxColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewComboBoxColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewComboBoxColumn5.Width = 85;
+ //
+ // dataGridViewTextBoxColumn12
+ //
+ this.dataGridViewTextBoxColumn12.HeaderText = "浓度";
+ this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12";
+ this.dataGridViewTextBoxColumn12.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewTextBoxColumn12.Width = 45;
+ //
+ // dataGridViewComboBoxColumn6
+ //
+ this.dataGridViewComboBoxColumn6.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn6.HeaderText = "浓度单位";
+ this.dataGridViewComboBoxColumn6.Name = "dataGridViewComboBoxColumn6";
+ this.dataGridViewComboBoxColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewComboBoxColumn6.Width = 75;
+ //
+ // dataGridViewTextBoxColumn13
+ //
+ this.dataGridViewTextBoxColumn13.HeaderText = "速度";
+ this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13";
+ this.dataGridViewTextBoxColumn13.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewTextBoxColumn13.Width = 45;
+ //
+ // dataGridViewComboBoxColumn7
+ //
+ this.dataGridViewComboBoxColumn7.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn7.HeaderText = "速度单位";
+ this.dataGridViewComboBoxColumn7.Name = "dataGridViewComboBoxColumn7";
+ this.dataGridViewComboBoxColumn7.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewComboBoxColumn7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewComboBoxColumn7.Width = 85;
+ //
+ // dataGridViewTextBoxColumn14
+ //
+ this.dataGridViewTextBoxColumn14.HeaderText = "用量";
+ this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14";
+ this.dataGridViewTextBoxColumn14.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.dataGridViewTextBoxColumn14.Width = 60;
+ //
+ // dataGridViewComboBoxColumn8
+ //
+ this.dataGridViewComboBoxColumn8.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn8.HeaderText = "单位";
+ this.dataGridViewComboBoxColumn8.Name = "dataGridViewComboBoxColumn8";
+ this.dataGridViewComboBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewComboBoxColumn8.Width = 60;
+ //
+ // dataGridViewComboBoxColumn25
+ //
+ this.dataGridViewComboBoxColumn25.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn25.HeaderText = "血型";
+ this.dataGridViewComboBoxColumn25.Name = "dataGridViewComboBoxColumn25";
+ this.dataGridViewComboBoxColumn25.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewComboBoxColumn25.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewComboBoxColumn25.Width = 45;
+ //
+ // dataGridViewComboBoxColumn26
+ //
+ this.dataGridViewComboBoxColumn26.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewComboBoxColumn26.HeaderText = "加药方式";
+ this.dataGridViewComboBoxColumn26.Name = "dataGridViewComboBoxColumn26";
+ this.dataGridViewComboBoxColumn26.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewComboBoxColumn26.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewComboBoxColumn26.Visible = false;
+ this.dataGridViewComboBoxColumn26.Width = 80;
+ //
+ // dataGridViewDateTimeInputColumn5
+ //
+ this.dataGridViewDateTimeInputColumn5.AutoAdvance = true;
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn5.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window;
+ this.dataGridViewDateTimeInputColumn5.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
+ this.dataGridViewDateTimeInputColumn5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn5.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText;
+ this.dataGridViewDateTimeInputColumn5.ButtonDropDown.Visible = true;
+ this.dataGridViewDateTimeInputColumn5.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime;
+ this.dataGridViewDateTimeInputColumn5.HeaderText = "开始时间";
+ this.dataGridViewDateTimeInputColumn5.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center;
+ //
+ //
+ //
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn5.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn5.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn5.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn5.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0);
+ this.dataGridViewDateTimeInputColumn5.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn5.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn5.MonthCalendar.Visible = false;
+ this.dataGridViewDateTimeInputColumn5.Name = "dataGridViewDateTimeInputColumn5";
+ this.dataGridViewDateTimeInputColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewDateTimeInputColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.dataGridViewDateTimeInputColumn5.Width = 80;
+ //
+ // dataGridViewTextBoxColumn15
+ //
+ this.dataGridViewTextBoxColumn15.HeaderText = "持续";
+ this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15";
+ this.dataGridViewTextBoxColumn15.Width = 45;
+ //
+ // dataGridViewDateTimeInputColumn6
+ //
+ this.dataGridViewDateTimeInputColumn6.AutoAdvance = true;
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn6.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window;
+ this.dataGridViewDateTimeInputColumn6.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
+ this.dataGridViewDateTimeInputColumn6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn6.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText;
+ this.dataGridViewDateTimeInputColumn6.ButtonDropDown.Visible = true;
+ this.dataGridViewDateTimeInputColumn6.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime;
+ this.dataGridViewDateTimeInputColumn6.HeaderText = "结束时间";
+ this.dataGridViewDateTimeInputColumn6.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left;
+ //
+ //
+ //
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn6.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn6.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn6.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn6.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0);
+ this.dataGridViewDateTimeInputColumn6.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
+ //
+ //
+ //
+ this.dataGridViewDateTimeInputColumn6.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
+ this.dataGridViewDateTimeInputColumn6.MonthCalendar.Visible = false;
+ this.dataGridViewDateTimeInputColumn6.Name = "dataGridViewDateTimeInputColumn6";
+ this.dataGridViewDateTimeInputColumn6.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewDateTimeInputColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.dataGridViewDateTimeInputColumn6.Width = 80;
+ //
+ // dataGridViewTextBoxColumn16
+ //
+ this.dataGridViewTextBoxColumn16.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
+ this.dataGridViewTextBoxColumn16.HeaderText = "通路";
+ this.dataGridViewTextBoxColumn16.Items.AddRange(new object[] {
+ "",
+ "1",
+ "2",
+ "3",
+ "4"});
+ this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16";
+ this.dataGridViewTextBoxColumn16.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridViewTextBoxColumn16.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.dataGridViewTextBoxColumn16.Width = 50;
+ //
// frmFactDrugNew
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.AutoScroll = true;
- this.ClientSize = new System.Drawing.Size(1358, 677);
+ this.ClientSize = new System.Drawing.Size(1400, 677);
this.Controls.Add(this.dgvDosage);
this.Controls.Add(this.dgvYP);
this.Controls.Add(this.panel1);
@@ -1530,7 +1460,6 @@
((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSH)).EndInit();
this.panelleft.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.TabSelDrugs)).EndInit();
- this.TabSelDrugs.ResumeLayout(false);
this.panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvYP)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgvDosage)).EndInit();
@@ -1547,8 +1476,6 @@
private DevComponents.DotNetBar.ButtonX btnSave;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.ToolTip toolTip1;
- private DevComponents.DotNetBar.Controls.TextBoxX txtQuery;
- private DevComponents.DotNetBar.LabelX labelX2;
private DevComponents.DotNetBar.SuperTabItem superTabItem2;
private DevComponents.DotNetBar.SuperTabItem superTabItem3;
private DevComponents.DotNetBar.SuperTabItem superTabItem4;
@@ -1561,11 +1488,6 @@
private DevComponents.DotNetBar.SuperTabControlPanel superTabControlPanel6;
private DevComponents.DotNetBar.SuperTabItem P3;
private DevComponents.DotNetBar.SuperTabControl TabSelDrugs;
- private DevComponents.DotNetBar.SuperTabControlPanel DrugsPanel;
- private DevComponents.DotNetBar.SuperTabControlPanel SapPanel;
- private DevComponents.DotNetBar.SuperTabControlPanel XuePanel;
- private DevComponents.DotNetBar.SuperTabControlPanel AnesPanel;
- private DevComponents.DotNetBar.SuperTabItem AnesTab;
private DevComponents.DotNetBar.ButtonX buttonX1;
public DevComponents.DotNetBar.SuperTabControl tabDrugs;
private DevComponents.DotNetBar.Controls.DataGridViewX dgvDrugsSQ;
@@ -1574,24 +1496,20 @@
private System.Windows.Forms.DataGridView dgvYP;
private System.Windows.Forms.DataGridView dgvDosage;
private System.Windows.Forms.DataGridViewTextBoxColumn Dosage;
- private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn1;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewComboEditBoxColumn2;
- private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn1;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
- private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn2;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
- private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn3;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
- private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn4;
- private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn23;
- private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn24;
- private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn3;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
- private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn4;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;
+ private System.Windows.Forms.ImageList imageList1;
+ private DevComponents.DotNetBar.ButtonX btnTypeManager;
+ private System.Windows.Forms.DataGridViewTextBoxColumn id;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Code;
+ private System.Windows.Forms.DataGridViewTextBoxColumn TypeId;
+ private System.Windows.Forms.DataGridViewTextBoxColumn TypeName;
+ private System.Windows.Forms.DataGridViewTextBoxColumn DrugName;
+ private System.Windows.Forms.DataGridViewTextBoxColumn HCode;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Norm;
+ private System.Windows.Forms.DataGridViewTextBoxColumn DOSEPER;
+ private System.Windows.Forms.DataGridViewTextBoxColumn DoseUnit;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Factroy;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Channel;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Remark;
private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10;
@@ -1609,7 +1527,25 @@
private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn5;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn15;
private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn6;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn16;
+ private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewTextBoxColumn16;
+ private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewComboEditBoxColumn2;
+ private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
+ private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
+ private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
+ private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn4;
+ private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn23;
+ private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn24;
+ private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
+ private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn4;
+ private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewTextBoxColumn8;
private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn5;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn37;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn38;
@@ -1627,20 +1563,6 @@
private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn43;
private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn2;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn44;
- private System.Windows.Forms.ImageList imageList1;
- private DevComponents.DotNetBar.ButtonX btnTypeManager;
- private System.Windows.Forms.DataGridViewTextBoxColumn id;
- private System.Windows.Forms.DataGridViewTextBoxColumn Code;
- private System.Windows.Forms.DataGridViewTextBoxColumn TypeId;
- private System.Windows.Forms.DataGridViewTextBoxColumn TypeName;
- private System.Windows.Forms.DataGridViewTextBoxColumn DrugName;
- private System.Windows.Forms.DataGridViewTextBoxColumn HCode;
- private System.Windows.Forms.DataGridViewTextBoxColumn Norm;
- private System.Windows.Forms.DataGridViewTextBoxColumn DOSEPER;
- private System.Windows.Forms.DataGridViewTextBoxColumn DoseUnit;
- private System.Windows.Forms.DataGridViewTextBoxColumn Factroy;
- private System.Windows.Forms.DataGridViewTextBoxColumn Channel;
- private System.Windows.Forms.DataGridViewTextBoxColumn Remark;
+ private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewTextBoxColumn44;
}
}
\ No newline at end of file
diff --git a/AIMS/OperationDoing/AnasRecordBill/frmFactDrugNew.cs b/AIMS/OperationDoing/AnasRecordBill/frmFactDrugNew.cs
index 4ae68db..b60881e 100644
--- a/AIMS/OperationDoing/AnasRecordBill/frmFactDrugNew.cs
+++ b/AIMS/OperationDoing/AnasRecordBill/frmFactDrugNew.cs
@@ -11,6 +11,7 @@ using System.Data;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
+using DCSoftDotfuscate;
namespace AIMS.PublicUI.UI
{
@@ -155,8 +156,6 @@ 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 = BDrugs.GetDrugsDataTable();
- FullCommonlyDrugs(dt, AnesPanel);
}
int page = 0;
@@ -166,7 +165,7 @@ namespace AIMS.PublicUI.UI
private void FullCommonlyDrugs(DataTable dt, Panel panelleft)
{
if (panelleft.Controls != null) panelleft.Controls.Clear();
- if ((dt.Rows.Count / 18) == 1 || (dt.Rows.Count / 18) == 2 || (dt.Rows.Count / 18) == 3)
+ if (dt.Rows.Count == 18 || dt.Rows.Count == 36 || dt.Rows.Count == 54)
page = (dt.Rows.Count / 18);
else
page = (dt.Rows.Count / 18) + 1;
@@ -179,7 +178,6 @@ namespace AIMS.PublicUI.UI
Panel paneltab = new Panel();
paneltab.AutoScroll = true;
paneltab.BackColor = Color.White;
- //paneltab.BorderStyle = BorderStyle.FixedSingle;
paneltab.Dock = DockStyle.Top;
paneltab.Height = 36;
panelleft.Controls.Add(paneltab);
@@ -191,9 +189,6 @@ namespace AIMS.PublicUI.UI
lb.Text = i.ToString().Trim();
lb.Size = new System.Drawing.Size(30, 30);
lb.Font = new System.Drawing.Font("微软雅黑", 11f, FontStyle.Bold);
- //lb.Cursor = Cursors.Hand;
- //lb.ColorTable = eButtonColor.Flat;
- //lb.BackColor = Color.PaleTurquoise;
lb.Parent = paneltab;
if (i == 1)
lb.TextColor = System.Drawing.Color.Black;
@@ -347,7 +342,6 @@ namespace AIMS.PublicUI.UI
{
dr.Cells[12].ReadOnly = true;//血型
}
- //dr.Cells[17].Value = drug.Rows[0]["CategoriesName"].ToString();
if (send.Text != "")
{
@@ -488,6 +482,7 @@ namespace AIMS.PublicUI.UI
{
_dataGridView.Rows[index].Cells[16].Value = Convert.ToDateTime(item.DrugEndTime);//结束时间
}
+ _dataGridView.Rows[index].Cells[17].Value = item.Access;
}
private void dgvDrugs_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
@@ -519,6 +514,10 @@ namespace AIMS.PublicUI.UI
dr.Cells[1].Tag = _dataGridView.CurrentRow.Index;
dr.Cells[0].Value = imageList1.Images[1];
_lineNumber = e.RowIndex + 1;
+ while (_dataGridView.Rows[_lineNumber].Cells[1].Value.ToString() == " ...")
+ {
+ _lineNumber++;
+ }
_dataGridView.Rows.Insert(_lineNumber, dr);
}
if (e.ColumnIndex == 1)
@@ -529,7 +528,7 @@ namespace AIMS.PublicUI.UI
if (dr.Cells[1].Value.ToString().Trim() != "...")
{
dr.Cells[0].Value = imageList1.Images[0];
- _lineNumber = _dataGridView.Rows.Count;//追加药添加到最后一行
+ _lineNumber = _dataGridView.Rows.Count - 1;//追加药添加到最后一行
}
else
{
@@ -549,6 +548,7 @@ namespace AIMS.PublicUI.UI
dr.Cells[7].Value = _dataGridView.Rows[e.RowIndex].Cells[7].Value;//浓度单位
dr.Cells[8].Value = _dataGridView.Rows[e.RowIndex].Cells[8].Value;//速度
dr.Cells[9].Value = _dataGridView.Rows[e.RowIndex].Cells[9].Value;//速度单位
+ dr.Cells[10].Value = _dataGridView.Rows[e.RowIndex].Cells[10].Value;//剂量
DateTime starttime = DateTime.Now;
try
{
@@ -567,12 +567,11 @@ namespace AIMS.PublicUI.UI
if (_dataGridView.Rows[e.RowIndex].Cells[1].Value.ToString() != " ..." && _dataGridView.Rows[e.RowIndex + 1].Cells[1].Value.ToString() == " ...")
{
- _lineNumber = _dataGridView.Rows.Count;//追加药添加到最后一行
DataGridViewRow drc = new DataGridViewRow();
drc.CreateCells(_dataGridView);
drc.Cells[1].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[1].Value;
drc.Cells[0].Value = imageList1.Images[1];
- _lineNumber = _dataGridView.Rows.Count;//追加药添加到最后一行
+ _lineNumber = _dataGridView.Rows.Count - 1;//追加药添加到最后一行
drc.Cells[4].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[4].Value;
drc.Cells[1].Tag = dr.Index;
drc.Cells[2].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[2].Value;
@@ -586,6 +585,7 @@ namespace AIMS.PublicUI.UI
drc.Cells[7].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[7].Value;//浓度单位
drc.Cells[8].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[8].Value;//速度
drc.Cells[9].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[9].Value;//速度单位
+ drc.Cells[10].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[10].Value;//剂量
drc.Cells[14].Value = starttime;//开始时间
_dataGridView.Rows.Insert(_lineNumber, drc);
}
@@ -920,20 +920,14 @@ namespace AIMS.PublicUI.UI
switch (index)
{
case 0:
- drugEffect = "术前加抗菌药";
- break;
- case 1:
drugEffect = "麻醉前用药";
break;
- case 2:
+ case 1:
drugEffect = "术中加药";
break;
- case 3:
+ case 2:
drugEffect = "术后镇痛药";
break;
- case 4:
- drugEffect = "麻醉诱导用药";
- break;
}
int second = 0;
foreach (DataGridViewRow dr in _dataGridView.Rows)
@@ -1014,6 +1008,11 @@ namespace AIMS.PublicUI.UI
drugsR.OperatorName = PublicMethod.OperatorName;
drugsR.OperateDate = DateTime.Now;
drugsR.DrugTypeId = DrugTypeId;
+ if (dr.Cells[17].Value != null)
+ drugsR.Access = dr.Cells[17].Value.ToString();
+ else
+ drugsR.Access = "";
+
if (dr.Tag == null)
{
@@ -1060,6 +1059,7 @@ namespace AIMS.PublicUI.UI
if (oldDrug.DensityUnit != newDrug.DensityUnit) b = false;
if (oldDrug.BloodType != newDrug.BloodType) b = false;
if (oldDrug.DrugChannel != newDrug.DrugChannel) b = false;
+ if (oldDrug.Access != newDrug.Access ) b = false;
if (oldDrug.DrugBeginTime != null && newDrug.DrugBeginTime != null && oldDrug.DrugBeginTime.ToString("yyyy-MM-dd HH:mm") != newDrug.DrugBeginTime.ToString("yyyy-MM-dd HH:mm")) b = false;
if (oldDrug.IsContinue != newDrug.IsContinue) b = false;
if (oldDrug.DrugEndTime != newDrug.DrugEndTime && oldDrug.DrugEndTime.ToString("HH:mm") != newDrug.DrugEndTime.ToString("HH:mm")) b = false;
@@ -1165,7 +1165,7 @@ namespace AIMS.PublicUI.UI
private void FullALLDGV()
{
- //_record.FactDrugList.Sort(new FactDrugComparer());
+ _record.FactDrugList.Sort(new FactDrugComparer());
foreach (BasicDictionary bd in _drugEffectList)
{
if (bd.Name == "麻醉前用药")
@@ -1203,21 +1203,6 @@ namespace AIMS.PublicUI.UI
{
x = this.HorizontalScroll.Value;
}
-
- private void txtQuery_TextChanged(object sender, EventArgs e)
- {
- this.TabSelDrugs.SelectedTabChanged -= new System.EventHandler(this.superTabControl1_SelectedTabChanged);
- TextBoxX box = sender as TextBoxX;
- Panel panel = null;
- DataTable dt = new DataTable();
- TabSelDrugs.SelectedTab = AnesTab;
- panel = AnesPanel;
- //dt = BDrugs.GetCommonlyDrugs(string.Format(" and (d.Name like '%{0}%' or d.HCode like '%{0}%') ", box.Text));
- FullCommonlyDrugs(dt, panel);
- this.TabSelDrugs.SelectedTabChanged += new System.EventHandler(this.superTabControl1_SelectedTabChanged);
-
- }
-
private void tabDrugs_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
{
DataTable dt = new DataTable();
@@ -1281,11 +1266,6 @@ namespace AIMS.PublicUI.UI
DataTable dt = new DataTable();
Superitem = TabSelDrugs.SelectedTab;
- if (TabSelDrugs.SelectedTab.Name == "AnesTab")
- {
- panel = AnesPanel;
- dt = BDrugs.GetDrugsDataTable();
- }
if (Superitem.Tag != null && Superitem.Tag.ToString() != "")
{
panel = (SuperTabControlPanel)Superitem.AttachedControl;
@@ -1320,10 +1300,8 @@ namespace AIMS.PublicUI.UI
{
buttonX1.Text = "全部显示";
}
- AnesTab.Visible = true;
FullALLDGV();
tabDrugs_SelectedTabChanged(null, null);
- TabSelDrugs.SelectedTab = AnesTab;
}
SuperTabControl stc = new SuperTabControl();
@@ -1331,10 +1309,6 @@ namespace AIMS.PublicUI.UI
{
try
{
- //for (int i = TabSelDrugs.Tabs.Count; i > 1; i--)
- //{
- // TabSelDrugs.Tabs.RemoveAt(i - 1);
- //}
for (int i = TabSelDrugs.Tabs.Count - 1; i >= 0; i--)
{
TabSelDrugs.Tabs.RemoveAt(i);
@@ -1353,8 +1327,9 @@ namespace AIMS.PublicUI.UI
superTabControlPanel.TabItem = spt;
spt.AttachedControl = superTabControlPanel;
}
- TabSelDrugs.SelectedTab = TabSelDrugs.Tabs[1] as SuperTabItem;
+ this.TabSelDrugs.SelectedTabChanged += new System.EventHandler(this.superTabControl1_SelectedTabChanged);
TabSelDrugs.SelectedTab = TabSelDrugs.Tabs[0] as SuperTabItem;
+ superTabControl1_SelectedTabChanged(null, null);
}
catch (Exception ex)
{
diff --git a/AIMS/OperationDoing/AnasRecordBill/frmFactDrugNew.resx b/AIMS/OperationDoing/AnasRecordBill/frmFactDrugNew.resx
index 04d10a0..12645b1 100644
--- a/AIMS/OperationDoing/AnasRecordBill/frmFactDrugNew.resx
+++ b/AIMS/OperationDoing/AnasRecordBill/frmFactDrugNew.resx
@@ -136,9 +136,9 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
- ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAu
- CAAAAk1TRnQBSQFMAgEBAgEAAUABBgFAAQYBFAEAARQBAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFQ
- AwABFAMAAQEBAAEgBgABGS4AA1UBrwKAAXcB/gMrAfwDKwH8AZkBiwFAAf0BoQGSAQAB/wGTAYIBAAH/
+ ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAs
+ CAAAAk1TRnQBSQFMAgEBAgEAAXABBgFwAQYBFAEAARQBAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFQ
+ AwABFAMAAQEBAAEgBgABGS4AA1UBrwKAAX0B/gMrAfwDKwH8AZkBiwFAAf0BoQGSAQAB/wGTAYIBAAH/
AZYBhwFAAf0BowGUAQAB/wGjAZQBAAH/AaMBlAEAAf8DKwH8A2AB6P8ADQABkwGCAQAB/wNiAfYDbQH3
A20B9wNcAfgDgAH+AZcBhgEAAf8DbQH3AewB5wHkAf8B7AHnAeQB/wHsAecB5AH/A20B9wGTAYIBAAH/
/wANAAGTAYIBAAH/A2cB8gH/Av0C/wL9Av8C/QL/Av0B/wGbAYsBAAH/AysB/AH/Av0C/wL9Av8C/QL/
@@ -149,29 +149,29 @@
Af0C/wH8Af0C/wH8Af0C/wL+Af8BkwGCAQAB//8ADQABkwGCAQAB/wNgAfMB/gH7AfwB/wH+AfsB/AH/
Af4B+wH8Af8B/gH7AfwB/wGbAYsBAAH/AysB/AH+AfsB/AH/Af4B+wH8Af8B/gH7AfwC/wL9Af8BkwGC
AQAB//QAA0cBgQNHAYIDRwGCA0cBggNHAYIDRwGCAYkCAAH/A00B+gNfAfsDXwH7A18B+wNfAfsBjQIA
- Af8BpwGgAZAB/QNfAfsDXwH7A18B+wKoAZ8B/QGTAYIBAAH/8AADBgEIAmABWwHzAW0BUgFRAfcCWgFR
- AfUCWgFRAfUCWgFRAfUCWgFRAfUBgQIAAf8DAAH/AV8BXgEyAfsBXwFeATIB+wFfAV4BMgH7Al8BMgH7
- AYECAAH/A2AB4wNeAdMDXgHTA14B0wNdAdEDYAHU8AADCQELA00B+gJtAVEB9wHwAaIBAAH/AfABogEA
- Af8B8AGiAQAB/wHwAaIBAAH/AYcCAAH/A1wB+AHwAaIBAAH/AfABogEAAf8B8AGiAQAB/wHwAaIBAAH/
- AwAB/wM4AVwMAAM+AWoDDgES8AADCQELA00B+gNcAfgB6gGeAQAB/wHqAZ4BAAH/AeoBngEAAf8B6gGe
- AQAB/wGMAgAB/wNNAfoB6gGeAQAB/wHqAZ4BAAH/AeoBngEAAf8B6gGeAQAB/wMAAf8DOAFcDAADOAFc
- A18B1fAAAwkBCwNNAfoBagFoAUcB+QNqAfkDagH5A2oB+QNqAfkBhwIAAf8CbQFsAfcDagH5A2oB+QNq
- AfkDagH5AwAB/wM4AVwMAAM1AVYDRgF98AADBwEJA00B+gGDAkAB/QFqAWgBRwH5AWoBaAFHAfkBagFo
- AUcB+QFqAWgBRwH5AYECAAH/A00B+gFqAWgBRwH5AWoBaAFHAfkBagFoAUcB+QFqAWkBRgH5AYECAAH/
- A1kBvgNPAZkDTwGZA08BmQNYAbcDUQGf8AAEAgNJAYUDSQGIA0kBiANJAYgDSQGIA0kBiAGLAgAB/wGP
- AkAB/QOAAf4DgAH+A4AB/gGkAY0BQAH9AYsCAAH/AaYBmQGDAf0BqAGlAZYB/QGoAaUBlgH9AagBpQGW
- Af0DgAH+AZMBggEAAf//AA0AAZMBggEAAf8DYAHzAf4B+gH7Af8B/gH6AfsB/wH+AfoB+wH/Af4B+gH7
- Af8BmwGLAQAB/wMrAfwB/gH6AfsB/wH+AfoB+wH/Af4B+gH7Av8C/QH/AZMBggEAAf//AA0AAZMBggEA
- Af8DYAHzAf4B+wH8Af8B/gH7AfwB/wH+AfsB/AH/AfsB+AH5Af8BmwGLAQAB/wMrAfwB/gH7AfwB/wH+
- AfsB/AH/Af4B+wH8Av8C/QH/AZMBggEAAf//AA0AAm0BbAH3A1wB+AOAAf4DgAH+A4AB/gOAAf4BmAGH
- AQAB/wMrAfwB1AHNAcIB/wHUAc0BwgH/AdQBzQHCAf8DgAH+AZMBggEAAf//AAkAAwMBBANQAZoBkgGC
- AQAB/wKAAXMB/gKAAXMB/gKAAXMB/gGTAYIBAAH/AZMBggEAAf8BjgGBAQAB/wGTAYIBAAH/AZMBggEA
- Af8BkwGCAQAB/wKAAXMB/gNaAb3/AAkAAwMBBAMSARcDIwEzAyMBMwMjATMDIwEzAyMBMwMjATMDIwEz
- AyMBMwMjATMDIwEzAyMBMwMWAR7/AA0AAwUBBgMEAQUDBAEFAwQBBQMEBAUBBgMFAQYDBQEGAwUBBgMF
- AQYDBQEGAwUBBgMDAQTwAAFCAU0BPgcAAT4DAAEoAwABUAMAARQDAAEBAQABAQUAAfAXAAP/AQAB/gEA
- AQ8C/wcAAf4BAAEPAv8HAAH+AQABDwL/BwAB/gEAAQ8C/wcAAf4BAAEPAv8HAAH+AQABDwL/BwAB/gEA
- AQ8C/wcAAYABAAEPAv8JAAEPAv8IAAEBAc8C/wgAAQEBzwL/CAABAQHPAv8JAAEPAv8JAAEPAv8HAAH+
- AQABDwL/BwAB/gEAAQ8C/wcAAf4BAAEPAv8HAAH8AQABDwL/BwAB/AEAAQ8C/wcAAf4BAAEPAv8HAAs=
+ Af8BpwGgAZAB/QNfAfsDXwH7A18B+wKoAZ8B/QGTAYIBAAH/8AADBgEIA2AB8wFtAVIBUQH3AloBWQH1
+ AloBWQH1AloBWQH1AloBWQH1AYECAAH/AwAB/wFfAV4BMgH7AV8BXgEyAfsBXwFeATIB+wJfATIB+wGB
+ AgAB/wNgAeMDXgHTA14B0wNeAdMDXQHRA2AB1PAAAwkBCwNNAfoCbQFRAfcB8AGiAQAB/wHwAaIBAAH/
+ AfABogEAAf8B8AGiAQAB/wGHAgAB/wNcAfgB8AGiAQAB/wHwAaIBAAH/AfABogEAAf8B8AGiAQAB/wMA
+ Af8DOAFcDAADPgFqAw4BEvAAAwkBCwNNAfoDXAH4AeoBngEAAf8B6gGeAQAB/wHqAZ4BAAH/AeoBngEA
+ Af8BjAIAAf8DTQH6AeoBngEAAf8B6gGeAQAB/wHqAZ4BAAH/AeoBngEAAf8DAAH/AzgBXAwAAzgBXANf
+ AdXwAAMJAQsDTQH6AWoBaAFHAfkDagH5A2oB+QNqAfkDagH5AYcCAAH/Am0BbAH3A2oB+QNqAfkDagH5
+ A2oB+QMAAf8DOAFcDAADNQFWA0YBffAAAwcBCQNNAfoBgwJAAf0BagFoAUcB+QFqAWgBRwH5AWoBaAFH
+ AfkBagFoAUcB+QGBAgAB/wNNAfoBagFoAUcB+QFqAWgBRwH5AWoBaAFHAfkBagFpAUYB+QGBAgAB/wNZ
+ Ab4DTwGZA08BmQNPAZkDWAG3A1EBn/AABAIDSQGFA0kBiANJAYgDSQGIA0kBiANJAYgBiwIAAf8BjwJA
+ Af0DgAH+A4AB/gOAAf4BpAGNAUAB/QGLAgAB/wGmAZkBgwH9AagBpQGWAf0BqAGlAZYB/QGoAaUBlgH9
+ A4AB/gGTAYIBAAH//wANAAGTAYIBAAH/A2AB8wH+AfoB+wH/Af4B+gH7Af8B/gH6AfsB/wH+AfoB+wH/
+ AZsBiwEAAf8DKwH8Af4B+gH7Af8B/gH6AfsB/wH+AfoB+wL/Av0B/wGTAYIBAAH//wANAAGTAYIBAAH/
+ A2AB8wH+AfsB/AH/Af4B+wH8Af8B/gH7AfwB/wH7AfgB+QH/AZsBiwEAAf8DKwH8Af4B+wH8Af8B/gH7
+ AfwB/wH+AfsB/AL/Av0B/wGTAYIBAAH//wANAAJtAWwB9wNcAfgDgAH+A4AB/gOAAf4DgAH+AZgBhwEA
+ Af8DKwH8AdQBzQHCAf8B1AHNAcIB/wHUAc0BwgH/A4AB/gGTAYIBAAH//wAJAAMDAQQDUAGaAZIBggEA
+ Af8CgAF5Af4CgAF5Af4CgAF5Af4BkwGCAQAB/wGTAYIBAAH/AY4BgQEAAf8BkwGCAQAB/wGTAYIBAAH/
+ AZMBggEAAf8CgAF5Af4DWgG9/wAJAAMDAQQDEgEXAyMBMwMjATMDIwEzAyMBMwMjATMDIwEzAyMBMwMj
+ ATMDIwEzAyMBMwMjATMDFgEe/wANAAMFAQYDBAEFAwQBBQMEAQUDBAQFAQYDBQEGAwUBBgMFAQYDBQEG
+ AwUBBgMFAQYDAwEE8AABQgFNAT4HAAE+AwABKAMAAVADAAEUAwABAQEAAQEFAAHwFwAD/wEAAf4BAAEP
+ Av8HAAH+AQABDwL/BwAB/gEAAQ8C/wcAAf4BAAEPAv8HAAH+AQABDwL/BwAB/gEAAQ8C/wcAAf4BAAEP
+ Av8HAAGAAQABDwL/CQABDwL/CAABAQHPAv8IAAEBAc8C/wgAAQEBzwL/CQABDwL/CQABDwL/BwAB/gEA
+ AQ8C/wcAAf4BAAEPAv8HAAH+AQABDwL/BwAB/AEAAQ8C/wcAAfwBAAEPAv8HAAH+AQABDwL/BwAL
diff --git a/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew2.Designer.cs b/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew2.Designer.cs
index 5887bd7..fbb613e 100644
--- a/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew2.Designer.cs
+++ b/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew2.Designer.cs
@@ -470,24 +470,25 @@
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox2.Location = new System.Drawing.Point(0, 142);
this.groupBox2.Name = "groupBox2";
- this.groupBox2.Size = new System.Drawing.Size(1035, 495);
+ this.groupBox2.Size = new System.Drawing.Size(1035, 519);
this.groupBox2.TabIndex = 2;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "手术患者";
//
// panel3
//
+ this.panel3.AutoScroll = true;
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(3, 17);
this.panel3.Name = "panel3";
- this.panel3.Size = new System.Drawing.Size(1029, 475);
+ this.panel3.Size = new System.Drawing.Size(1029, 499);
this.panel3.TabIndex = 0;
//
// frmSelectPatientNew2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1035, 637);
+ this.ClientSize = new System.Drawing.Size(1035, 661);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.panel1);
diff --git a/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew2.cs b/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew2.cs
index 6d05a43..f3fee61 100644
--- a/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew2.cs
+++ b/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew2.cs
@@ -195,11 +195,11 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
MessageBox.Show("当前手术已停止 ,请确认后重新选择!", "系统提示");
return;
}
- //if (operA.OrderOperationTime.Value.Date != DateTime.Now.Date && operA.OrderOperationTime.Value.Hour < 18)
- //{
- // MessageBox.Show("该手术预约时间不是当前日期 ,请确认后重新选择!", "系统提示");
- // return;
- //}
+ if (operA.OrderOperationTime.Value.Date != DateTime.Now.Date)// && operA.OrderOperationTime.Value.Hour < 20)
+ {
+ MessageBox.Show("该手术预约时间不是当前日期 ,请确认后重新选择!", "系统提示");
+ return;
+ }
DataTable dtOperationRecord = SelectPatient.GetTodayDoOpePatientDataTable(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()));
foreach (DataRow row in dtOperationRecord.Rows)
{
@@ -392,6 +392,10 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
{
PublicMethod.SelectRoom = Convert.ToInt32(cboRoom.SelectedValue);
}
+ else
+ {
+ PublicMethod.SelectRoom = -1;
+ }
FillDgv();
}
diff --git a/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBill.cs b/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBill.cs
index 1bca47a..4483292 100644
--- a/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBill.cs
+++ b/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBill.cs
@@ -6,6 +6,7 @@ using AIMSBLL;
using AIMSExtension;
using AIMSModel;
using DevComponents.Editors.DateTimeAdv;
+using DocumentManagement;
using DrawGraph;
using Newtonsoft.Json;
using System;
diff --git a/AIMS/OperationFront/frmOperationApply.cs b/AIMS/OperationFront/frmOperationApply.cs
index ecb5357..ee09979 100644
--- a/AIMS/OperationFront/frmOperationApply.cs
+++ b/AIMS/OperationFront/frmOperationApply.cs
@@ -83,7 +83,7 @@ namespace AIMS.OperationFront.UI
private void btnFind_Click(object sender, EventArgs e)
{
- DataTable dt = BOperationApply.GetOperationFrontDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.ToString("yyyy-MM-dd"));
+ DataTable dt = BOperationApply.GetOperationFrontDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd 00:00:00"), dtpEndDate.Value.ToString("yyyy-MM-dd 23:59:59"));
string dept = "";
if (cboDepartment.Text!="" && cboDepartment.Text!="全部科室")
{
diff --git a/AIMS/OperationFront/frmOperationApplyDetail.cs b/AIMS/OperationFront/frmOperationApplyDetail.cs
index 972db7b..43cd00d 100644
--- a/AIMS/OperationFront/frmOperationApplyDetail.cs
+++ b/AIMS/OperationFront/frmOperationApplyDetail.cs
@@ -13,7 +13,6 @@ namespace AIMS.OperationFront.UI
{
public AIMSExtension.EditState State = new AIMSExtension.EditState();
public int EditApplyId = 0;
- public bool IsJZ = false;
private PublicUI.UI.frmSelectDisease frmSelectDisease;
private PublicUI.UI.frmSelectOperationOne frmSelectOperation;
private PublicUI.UI.frmOperationCutType frmOperationCutType;
@@ -51,7 +50,7 @@ namespace AIMS.OperationFront.UI
private PublicUI.UI.frmSelectPerson frmTourNurseSucceed = new PublicUI.UI.frmSelectPerson();
public SysConfig sysPass = BSysConfig.SelectSingle(" name='手术申请审核功能' ", null);
-
+ private DateTime OrderOperationTime;
public frmOperationApplyDetail()
{
InitializeComponent();
@@ -99,9 +98,8 @@ namespace AIMS.OperationFront.UI
rboJZ.Checked = true;
if (EditOperationApplyObj.OperationType == "日间")
rboRJ.Checked = true;
- if (EditOperationApplyObj.OrderOperationTime != null)
- dtpOrderOperationTime.Value = EditOperationApplyObj.OrderOperationTime.Value;
- //txtOperationTimeLeight.Text = EditOperationApplyObj.OperationTimeLeight.ToString();
+ dtpOrderOperationTime.Value = EditOperationApplyObj.OrderOperationTime.Value;
+ OrderOperationTime = dtpOrderOperationTime.Value;
if (EditOperationApplyObj.IsReturnOperation == 1)
{
@@ -279,95 +277,6 @@ namespace AIMS.OperationFront.UI
//txtOther.Text = EditOperationApplyObj.Other;
#endregion
- try
- {
- if (IsJZ == false)
- {
- groupBox3.Visible = false;
- this.Size = new Size(1140, 570);
- }
- else
- {
- groupBox3.Visible = true;
- this.Size = new Size(1140, 670);
- if (rboJZ.Checked == true)
- {
- cboOperationRoom.DisplayMember = "Name";
- cboOperationRoom.ValueMember = "Id";
- cboOperationRoom.DataSource = BOperationRoom.GetDataTable("IsValid=1");
- cboOperationRoom.SelectedIndex = -1;
- if (EditOperationApplyObj.PlanOperationTime != null)
- dtpPlanOperationTime.Value = EditOperationApplyObj.PlanOperationTime.Value;
- cboOperationRoom.SelectedValue = int.Parse(EditOperationApplyObj.OperationRoomId.ToString());
-
- SelectAnesthesiaDoctorData = BApplyPersonDuty.GetPersonIdList(EditApplyId, 5);
- foreach (int RowId in SelectAnesthesiaDoctorData)
- {
- txtAnesthesiaDoctor.Text += BPerson.SelectSingle(RowId).Name + " ,";
- }
- if (SelectAnesthesiaDoctorData.Count > 0)
- {
- txtAnesthesiaDoctor.Text = txtAnesthesiaDoctor.Text.Substring(0, txtAnesthesiaDoctor.Text.LastIndexOf(" ,"));
- }
-
- SelectInstrumentNurseData = BApplyPersonDuty.GetPersonIdList(EditApplyId, 6);
- foreach (int RowId in SelectInstrumentNurseData)
- {
- txtInstrumentNurse.Text += BPerson.SelectSingle(RowId).Name + " ,";
- }
- if (SelectInstrumentNurseData.Count > 0)
- {
- txtInstrumentNurse.Text = txtInstrumentNurse.Text.Substring(0, txtInstrumentNurse.Text.LastIndexOf(" ,"));
- }
-
- SelectTourNurseData = BApplyPersonDuty.GetPersonIdList(EditApplyId, 7);
- foreach (int RowId in SelectTourNurseData)
- {
- txtTourNurse.Text += BPerson.SelectSingle(RowId).Name + " ,";
- }
- if (SelectTourNurseData.Count > 0)
- {
- txtTourNurse.Text = txtTourNurse.Text.Substring(0, txtTourNurse.Text.LastIndexOf(" ,"));
- }
-
- SelectAnesthesiaDoctorSucceedData = BApplyPersonDuty.GetPersonIdList(EditApplyId, 8);
- foreach (int RowId in SelectAnesthesiaDoctorSucceedData)
- {
- txtAnesthesiaDoctorSucceed.Text += BPerson.SelectSingle(RowId).Name + " ,";
- }
- if (SelectAnesthesiaDoctorSucceedData.Count > 0)
- {
- txtAnesthesiaDoctorSucceed.Text = txtAnesthesiaDoctorSucceed.Text.Substring(0, txtAnesthesiaDoctorSucceed.Text.LastIndexOf(" ,"));
- }
-
-
- SelectInstrumentNurseSucceedData = BApplyPersonDuty.GetPersonIdList(EditApplyId, 9);
- foreach (int RowId in SelectInstrumentNurseSucceedData)
- {
- txtInstrumentNurseSucceed.Text += BPerson.SelectSingle(RowId).Name + " ,";
- }
- if (SelectInstrumentNurseSucceedData.Count > 0)
- {
- txtInstrumentNurseSucceed.Text = txtInstrumentNurseSucceed.Text.Substring(0, txtInstrumentNurseSucceed.Text.LastIndexOf(" ,"));
- }
-
-
- SelectTourNurseSucceedData = BApplyPersonDuty.GetPersonIdList(EditApplyId, 10);
- foreach (int RowId in SelectTourNurseSucceedData)
- {
- txtTourNurseSucceed.Text += BPerson.SelectSingle(RowId).Name + " ,";
- }
- if (SelectTourNurseSucceedData.Count > 0)
- {
- txtTourNurseSucceed.Text = txtTourNurseSucceed.Text.Substring(0, txtTourNurseSucceed.Text.LastIndexOf(" ,"));
- }
- }
- }
- }
- catch (Exception ex)
- {
- AIMSExtension.PublicMethod.WriteLog(ex);
- }
}
}
@@ -919,7 +828,8 @@ namespace AIMS.OperationFront.UI
{
OperationApplyObj.OperationType = "择期";
}
- OperationApplyObj.OrderOperationTime = DateTime.Parse(dtpOrderOperationTime.Value.ToString("yyyy-MM-dd HH:mm"));
+ if (State == AIMSExtension.EditState.ADD || OperationApplyObj.State <= 5)
+ OperationApplyObj.OrderOperationTime = DateTime.Parse(dtpOrderOperationTime.Value.ToString("yyyy-MM-dd HH:mm"));
//if (txtOperationTimeLeight.Text != "")
// OperationApplyObj.OperationTimeLeight = int.Parse(txtOperationTimeLeight.Text);
//else
@@ -974,13 +884,11 @@ namespace AIMS.OperationFront.UI
//{
HelperDB.DbHelperSQL.BeginTrans();
- //Oris_PatientObj.Id = BOperationApply.SelectSingle(EditApplyId).Oris_PatientId;
- //OperationApplyObj.Id = EditApplyId;
- if (OperationApplyObj.PlanOperationTime != null && OperationApplyObj.PlanOperationTime.Value.Year != 1)
+ if (OperationApplyObj.PlanOperationTime != null && OperationApplyObj.PlanOperationTime.Value.Year != 1 && OperationApplyObj.State <= 5)
if (OperationApplyObj.OrderOperationTime.Value.Day != OperationApplyObj.PlanOperationTime.Value.Day)
{
- OperationApplyObj.PlanOperationTime = OperationApplyObj.OrderOperationTime;
- OperationApplyObj.PlanOrder = BOperationApply.GetMaxPlanOrder( OperationApplyObj.PlanOperationTime.Value, OperationApplyObj.OperationRoomId.Value) + 1;
+ OperationApplyObj.PlanOperationTime = OperationApplyObj.OrderOperationTime.Value;
+ OperationApplyObj.PlanOrder = BOperationApply.GetMaxPlanOrder(OperationApplyObj.PlanOperationTime.Value, OperationApplyObj.OperationRoomId.Value) + 1;
}
BOrisPatient.Update(Oris_PatientObj);
@@ -992,27 +900,6 @@ namespace AIMS.OperationFront.UI
Close();
//}
}
- if (IsJZ == true)
- if (rboJZ.Checked == true && ValidInput2())
- {
- try
- {
- HelperDB.DbHelperSQL.BeginTrans();
- int ApplyId = EditApplyId;
- string PlanOperationTime = dtpPlanOperationTime.Value.ToString("yyyy-MM-dd HH:mm");
- int OperationRoomId = int.Parse(cboOperationRoom.SelectedValue.ToString());
-
- BOperationApply.UpdatePlanOperationTime(ApplyId, PlanOperationTime, OperationRoomId, 4); //状态4 已排程
-
- SaveSelectItem2(ApplyId, AIMSExtension.PublicMethod.SystemDate());
- HelperDB.DbHelperSQL.CommitTrans();
- this.Close();
- }
- catch
- {
- HelperDB.DbHelperSQL.RollbackTrans();
- }
- }
}
catch (Exception ex)
{
@@ -1207,97 +1094,12 @@ namespace AIMS.OperationFront.UI
{
MessageBox.Show("手术室不能为空!");
}
- //else if (DateTime.Parse(AIMSExtension.PublicMethod.SystemDate().ToString("yyyy-MM-dd HH:mm")) > DateTime.Parse(dtpPlanOperationTime.Value.ToString("yyyy-MM-dd HH:mm")))
- //{
- // MessageBox.Show("手术日期小于当前时间!");
- //}
else
{
result = true;
}
return result;
}
- private void SaveSelectItem2(int OperationApplyId, DateTime OperateDate)
- {
- ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctor = new ApplyPersonDuty();
- BApplyPersonDuty.Delete(OperationApplyId, 5);
- foreach (int PersonId in SelectAnesthesiaDoctorData)
- {
- ApplyPersonDutyAnesthesiaDoctor.OperationApplyId = OperationApplyId;
- ApplyPersonDutyAnesthesiaDoctor.PersonDutyId = 5; // 麻醉医生
- ApplyPersonDutyAnesthesiaDoctor.PersonId = PersonId;
- ApplyPersonDutyAnesthesiaDoctor.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
- ApplyPersonDutyAnesthesiaDoctor.OperatorName = AIMSExtension.PublicMethod.OperatorName;
- ApplyPersonDutyAnesthesiaDoctor.OperateDate = OperateDate;
- BApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctor);
- }
-
- ApplyPersonDuty ApplyPersonDutyInstrumentNurse = new ApplyPersonDuty();
- BApplyPersonDuty.Delete(OperationApplyId, 6);
- foreach (int PersonId in SelectInstrumentNurseData)
- {
- ApplyPersonDutyInstrumentNurse.OperationApplyId = OperationApplyId;
- ApplyPersonDutyInstrumentNurse.PersonDutyId = 6; // 器械护士
- ApplyPersonDutyInstrumentNurse.PersonId = PersonId;
- ApplyPersonDutyInstrumentNurse.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
- ApplyPersonDutyInstrumentNurse.OperatorName = AIMSExtension.PublicMethod.OperatorName;
- ApplyPersonDutyInstrumentNurse.OperateDate = OperateDate;
- BApplyPersonDuty.Add(ApplyPersonDutyInstrumentNurse);
- }
-
- ApplyPersonDuty ApplyPersonDutyTourNurse = new ApplyPersonDuty();
- BApplyPersonDuty.Delete(OperationApplyId, 7);
- foreach (int PersonId in SelectTourNurseData)
- {
- ApplyPersonDutyTourNurse.OperationApplyId = OperationApplyId;
- ApplyPersonDutyTourNurse.PersonDutyId = 7; // 巡回护士
- ApplyPersonDutyTourNurse.PersonId = PersonId;
- ApplyPersonDutyTourNurse.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
- ApplyPersonDutyTourNurse.OperatorName = AIMSExtension.PublicMethod.OperatorName;
- ApplyPersonDutyTourNurse.OperateDate = OperateDate;
- BApplyPersonDuty.Add(ApplyPersonDutyTourNurse);
- }
-
- ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctorSucceed = new ApplyPersonDuty();
- BApplyPersonDuty.Delete(OperationApplyId, 8);
- foreach (int PersonId in SelectAnesthesiaDoctorSucceedData)
- {
- ApplyPersonDutyAnesthesiaDoctorSucceed.OperationApplyId = OperationApplyId;
- ApplyPersonDutyAnesthesiaDoctorSucceed.PersonDutyId = 8; // 麻醉接台
- ApplyPersonDutyAnesthesiaDoctorSucceed.PersonId = PersonId;
- ApplyPersonDutyAnesthesiaDoctorSucceed.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
- ApplyPersonDutyAnesthesiaDoctorSucceed.OperatorName = AIMSExtension.PublicMethod.OperatorName;
- ApplyPersonDutyAnesthesiaDoctorSucceed.OperateDate = OperateDate;
- BApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctorSucceed);
- }
-
- ApplyPersonDuty ApplyPersonDutyInstrumentNurseSucceed = new ApplyPersonDuty();
- BApplyPersonDuty.Delete(OperationApplyId, 9);
- foreach (int PersonId in SelectInstrumentNurseSucceedData)
- {
- ApplyPersonDutyInstrumentNurseSucceed.OperationApplyId = OperationApplyId;
- ApplyPersonDutyInstrumentNurseSucceed.PersonDutyId = 9; // 器械接台
- ApplyPersonDutyInstrumentNurseSucceed.PersonId = PersonId;
- ApplyPersonDutyInstrumentNurseSucceed.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
- ApplyPersonDutyInstrumentNurseSucceed.OperatorName = AIMSExtension.PublicMethod.OperatorName;
- ApplyPersonDutyInstrumentNurseSucceed.OperateDate = OperateDate;
- BApplyPersonDuty.Add(ApplyPersonDutyInstrumentNurseSucceed);
- }
-
- ApplyPersonDuty ApplyPersonDutyTourNurseSucceed = new ApplyPersonDuty();
- BApplyPersonDuty.Delete(OperationApplyId, 10);
- foreach (int PersonId in SelectTourNurseSucceedData)
- {
- ApplyPersonDutyTourNurseSucceed.OperationApplyId = OperationApplyId;
- ApplyPersonDutyTourNurseSucceed.PersonDutyId = 10; // 巡回接台
- ApplyPersonDutyTourNurseSucceed.PersonId = PersonId;
- ApplyPersonDutyTourNurseSucceed.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
- ApplyPersonDutyTourNurseSucceed.OperatorName = AIMSExtension.PublicMethod.OperatorName;
- ApplyPersonDutyTourNurseSucceed.OperateDate = OperateDate;
- BApplyPersonDuty.Add(ApplyPersonDutyTourNurseSucceed);
- }
-
- }
private bool ValidInput()
{
bool result = false;
@@ -1717,16 +1519,6 @@ namespace AIMS.OperationFront.UI
{
dtpOrderOperationTime.Text = DateTime.Now.AddDays(1).ToString("yyyy-MM-dd HH:mm");
}
- //if (IsJZ == false)
- //{
- // groupBox3.Visible = false;
- // this.Size = new Size(1140, 530);
- //}
- //else
- //{
- // groupBox3.Visible = true;
- // this.Size = new Size(1140, 630);
- //}
}
}
}
diff --git a/AIMS/OperationFront/frmOperationSchedulePlan.cs b/AIMS/OperationFront/frmOperationSchedulePlan.cs
index 095273a..9e08908 100644
--- a/AIMS/OperationFront/frmOperationSchedulePlan.cs
+++ b/AIMS/OperationFront/frmOperationSchedulePlan.cs
@@ -229,9 +229,9 @@ namespace AIMS.OperationFront.UI
private DataGridViewTextBoxColumn Index;
private DataGridViewTextBoxColumn DepartmentId;
private DataGridViewTextBoxColumn OperationDoctor;
- private DataGridViewTextBoxColumn PlanTime;
- private DataGridViewTextBoxColumn InHospitalNo;
private DataGridViewTextBoxColumn PatientName;
+ private DataGridViewTextBoxColumn InHospitalNo;
+ private DataGridViewTextBoxColumn PlanTime;
private DataGridViewTextBoxColumn Operation;
private DataGridViewTextBoxColumn OrderOperationTime;
private DataGridViewTextBoxColumn Remark;
@@ -239,6 +239,7 @@ namespace AIMS.OperationFront.UI
private DataGridViewTextBoxColumn Diagnose;
private DataGridViewTextBoxColumn OperationType;
private DataGridViewTextBoxColumn Contagion;
+ private GridColumn gridColumn2;
private DevComponents.Editors.DateTimeAdv.DateTimeInput dtpSearchTime;
///
@@ -275,6 +276,13 @@ namespace AIMS.OperationFront.UI
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
@@ -356,17 +364,25 @@ namespace AIMS.OperationFront.UI
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle86 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle87 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle88 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
this.navigationPane1 = new DevComponents.DotNetBar.NavigationPane();
this.navigationPanePanel1 = new DevComponents.DotNetBar.NavigationPanePanel();
this.groupBoxsel = new System.Windows.Forms.GroupBox();
this.dgvApplyOrDoctor = new DevComponents.DotNetBar.Controls.DataGridViewX();
+ this.Column1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+ this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Index = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.DepartmentId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.OperationDoctor = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.PatientName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.InHospitalNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.PlanTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Operation = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.OrderOperationTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.AnaesthesiaMethodId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Diagnose = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.OperationType = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Contagion = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel3 = new System.Windows.Forms.Panel();
this.labelWeek = new System.Windows.Forms.Label();
this.txtQuery = new DevComponents.DotNetBar.Controls.TextBoxX();
@@ -377,7 +393,7 @@ namespace AIMS.OperationFront.UI
this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
this.navigationPanePanel4 = new DevComponents.DotNetBar.NavigationPanePanel();
this.groupBox2 = new System.Windows.Forms.GroupBox();
- this.dgvInstrumentNurse = new DataGridView();
+ this.dgvInstrumentNurse = new System.Windows.Forms.DataGridView();
this.dataGridViewCheckBoxColumn3 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.dataGridViewTextBoxColumn49 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.iName = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -399,7 +415,7 @@ namespace AIMS.OperationFront.UI
this.buttonInstrumentNurse = new DevComponents.DotNetBar.ButtonItem();
this.navigationPanePanel5 = new DevComponents.DotNetBar.NavigationPanePanel();
this.v = new System.Windows.Forms.GroupBox();
- this.dgvTourNurse = new DataGridView();
+ this.dgvTourNurse = new System.Windows.Forms.DataGridView();
this.dataGridViewCheckBoxColumn4 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.dataGridViewTextBoxColumn60 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tName = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -421,7 +437,7 @@ namespace AIMS.OperationFront.UI
this.buttonItemTourNurse = new DevComponents.DotNetBar.ButtonItem();
this.navigationPanePanel2 = new DevComponents.DotNetBar.NavigationPanePanel();
this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.dgvWorkers = new DataGridView();
+ this.dgvWorkers = new System.Windows.Forms.DataGridView();
this.Check = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.oName = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -562,21 +578,7 @@ namespace AIMS.OperationFront.UI
this.dataGridViewTextBoxColumn46 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn47 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn48 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
- this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Index = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.DepartmentId = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.OperationDoctor = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.PlanTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.InHospitalNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.PatientName = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Operation = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.OrderOperationTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.AnaesthesiaMethodId = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Diagnose = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.OperationType = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Contagion = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.gridColumn2 = new DevComponents.DotNetBar.SuperGrid.GridColumn();
this.navigationPane1.SuspendLayout();
this.navigationPanePanel1.SuspendLayout();
this.groupBoxsel.SuspendLayout();
@@ -742,9 +744,9 @@ namespace AIMS.OperationFront.UI
this.Index,
this.DepartmentId,
this.OperationDoctor,
- this.PlanTime,
- this.InHospitalNo,
this.PatientName,
+ this.InHospitalNo,
+ this.PlanTime,
this.Operation,
this.OrderOperationTime,
this.Remark,
@@ -783,6 +785,151 @@ namespace AIMS.OperationFront.UI
this.dgvApplyOrDoctor.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvApplyOrDoctor_CellDoubleClick);
this.dgvApplyOrDoctor.ColumnHeaderMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvApplyOrDoctor_ColumnHeaderMouseClick);
//
+ // Column1
+ //
+ this.Column1.HeaderText = "";
+ this.Column1.Name = "Column1";
+ this.Column1.ReadOnly = true;
+ this.Column1.TrueValue = "1";
+ this.Column1.Width = 30;
+ //
+ // Id
+ //
+ this.Id.DataPropertyName = "ApplyId";
+ this.Id.HeaderText = "";
+ this.Id.Name = "Id";
+ this.Id.ReadOnly = true;
+ this.Id.Visible = false;
+ //
+ // Index
+ //
+ this.Index.DataPropertyName = "ApplyId";
+ this.Index.HeaderText = "";
+ this.Index.Name = "Index";
+ this.Index.ReadOnly = true;
+ this.Index.Visible = false;
+ this.Index.Width = 40;
+ //
+ // DepartmentId
+ //
+ this.DepartmentId.DataPropertyName = "ApplyDepName";
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("ź", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.DepartmentId.DefaultCellStyle = dataGridViewCellStyle2;
+ this.DepartmentId.HeaderText = "";
+ this.DepartmentId.Name = "DepartmentId";
+ this.DepartmentId.ReadOnly = true;
+ this.DepartmentId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.DepartmentId.Width = 80;
+ //
+ // OperationDoctor
+ //
+ this.OperationDoctor.DataPropertyName = "OperationDoctor";
+ dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle3.Font = new System.Drawing.Font("ź", 12F);
+ this.OperationDoctor.DefaultCellStyle = dataGridViewCellStyle3;
+ this.OperationDoctor.HeaderText = "ҽʦ";
+ this.OperationDoctor.Name = "OperationDoctor";
+ this.OperationDoctor.ReadOnly = true;
+ this.OperationDoctor.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.OperationDoctor.Width = 60;
+ //
+ // PatientName
+ //
+ this.PatientName.DataPropertyName = "PatInfo";
+ dataGridViewCellStyle4.Font = new System.Drawing.Font("ź", 11F);
+ this.PatientName.DefaultCellStyle = dataGridViewCellStyle4;
+ this.PatientName.HeaderText = "";
+ this.PatientName.Name = "PatientName";
+ this.PatientName.ReadOnly = true;
+ this.PatientName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.PatientName.Width = 125;
+ //
+ // InHospitalNo
+ //
+ this.InHospitalNo.DataPropertyName = "MdrecNo";
+ dataGridViewCellStyle5.Font = new System.Drawing.Font("ź", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.InHospitalNo.DefaultCellStyle = dataGridViewCellStyle5;
+ this.InHospitalNo.HeaderText = "סԺ";
+ this.InHospitalNo.Name = "InHospitalNo";
+ this.InHospitalNo.ReadOnly = true;
+ this.InHospitalNo.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.InHospitalNo.Width = 90;
+ //
+ // PlanTime
+ //
+ this.PlanTime.DataPropertyName = "ApplyTime";
+ this.PlanTime.HeaderText = "ʱ";
+ this.PlanTime.Name = "PlanTime";
+ this.PlanTime.ReadOnly = true;
+ this.PlanTime.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.PlanTime.Width = 90;
+ //
+ // Operation
+ //
+ this.Operation.DataPropertyName = "ApplyOperationInfoName";
+ dataGridViewCellStyle6.Font = new System.Drawing.Font("ź", 11F);
+ dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.Operation.DefaultCellStyle = dataGridViewCellStyle6;
+ this.Operation.HeaderText = "";
+ this.Operation.Name = "Operation";
+ this.Operation.ReadOnly = true;
+ this.Operation.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.Operation.Width = 200;
+ //
+ // OrderOperationTime
+ //
+ this.OrderOperationTime.DataPropertyName = "OrderOperationTime";
+ dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle7.Font = new System.Drawing.Font("ź", 12F);
+ this.OrderOperationTime.DefaultCellStyle = dataGridViewCellStyle7;
+ this.OrderOperationTime.HeaderText = "ʱ";
+ this.OrderOperationTime.Name = "OrderOperationTime";
+ this.OrderOperationTime.ReadOnly = true;
+ this.OrderOperationTime.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.OrderOperationTime.Visible = false;
+ this.OrderOperationTime.Width = 65;
+ //
+ // Remark
+ //
+ this.Remark.DataPropertyName = "OperationRemark";
+ dataGridViewCellStyle8.Font = new System.Drawing.Font("ź", 12F);
+ this.Remark.DefaultCellStyle = dataGridViewCellStyle8;
+ this.Remark.HeaderText = "ע";
+ this.Remark.Name = "Remark";
+ this.Remark.ReadOnly = true;
+ this.Remark.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ //
+ // AnaesthesiaMethodId
+ //
+ this.AnaesthesiaMethodId.DataPropertyName = "AnaesthesiaMethodName";
+ this.AnaesthesiaMethodId.HeaderText = "ʩ";
+ this.AnaesthesiaMethodId.Name = "AnaesthesiaMethodId";
+ this.AnaesthesiaMethodId.ReadOnly = true;
+ this.AnaesthesiaMethodId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ //
+ // Diagnose
+ //
+ this.Diagnose.DataPropertyName = "ApplyDiagnoseInfoName";
+ this.Diagnose.HeaderText = "ǰ";
+ this.Diagnose.Name = "Diagnose";
+ this.Diagnose.ReadOnly = true;
+ this.Diagnose.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ //
+ // OperationType
+ //
+ this.OperationType.DataPropertyName = "OperationType";
+ this.OperationType.HeaderText = "";
+ this.OperationType.Name = "OperationType";
+ this.OperationType.ReadOnly = true;
+ //
+ // Contagion
+ //
+ this.Contagion.DataPropertyName = "Contagion";
+ this.Contagion.HeaderText = "Ⱦɸ";
+ this.Contagion.Name = "Contagion";
+ this.Contagion.ReadOnly = true;
+ //
// panel3
//
this.panel3.BackColor = System.Drawing.Color.White;
@@ -2060,8 +2207,8 @@ namespace AIMS.OperationFront.UI
//
// dgvDetail
//
- this.dgvDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
+ this.dgvDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.dgvDetail.BackColor = System.Drawing.SystemColors.Control;
this.dgvDetail.ContextMenuStrip = this.ctsThisRoom;
@@ -2092,6 +2239,7 @@ namespace AIMS.OperationFront.UI
this.dgvDetail.PrimaryGrid.Columns.Add(this.colTourNurse);
this.dgvDetail.PrimaryGrid.Columns.Add(this.colRemarks);
this.dgvDetail.PrimaryGrid.Columns.Add(this.colDel);
+ this.dgvDetail.PrimaryGrid.Columns.Add(this.gridColumn2);
background2.Color1 = System.Drawing.Color.Transparent;
this.dgvDetail.PrimaryGrid.DefaultVisualStyles.CellStyles.Default.Background = background2;
this.dgvDetail.PrimaryGrid.ImmediateResize = true;
@@ -3267,150 +3415,10 @@ namespace AIMS.OperationFront.UI
this.dataGridViewTextBoxColumn48.HeaderText = "";
this.dataGridViewTextBoxColumn48.Name = "dataGridViewTextBoxColumn48";
//
- // Column1
+ // gridColumn2
//
- this.Column1.HeaderText = "";
- this.Column1.Name = "Column1";
- this.Column1.ReadOnly = true;
- this.Column1.TrueValue = "1";
- this.Column1.Width = 30;
- //
- // Id
- //
- this.Id.DataPropertyName = "ApplyId";
- this.Id.HeaderText = "";
- this.Id.Name = "Id";
- this.Id.ReadOnly = true;
- this.Id.Visible = false;
- //
- // Index
- //
- this.Index.DataPropertyName = "ApplyId";
- this.Index.HeaderText = "";
- this.Index.Name = "Index";
- this.Index.ReadOnly = true;
- this.Index.Visible = false;
- this.Index.Width = 40;
- //
- // DepartmentId
- //
- this.DepartmentId.DataPropertyName = "ApplyDepName";
- dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle2.Font = new System.Drawing.Font("ź", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.DepartmentId.DefaultCellStyle = dataGridViewCellStyle2;
- this.DepartmentId.HeaderText = "";
- this.DepartmentId.Name = "DepartmentId";
- this.DepartmentId.ReadOnly = true;
- this.DepartmentId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.DepartmentId.Width = 80;
- //
- // OperationDoctor
- //
- this.OperationDoctor.DataPropertyName = "OperationDoctor";
- dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle3.Font = new System.Drawing.Font("ź", 12F);
- this.OperationDoctor.DefaultCellStyle = dataGridViewCellStyle3;
- this.OperationDoctor.HeaderText = "ҽʦ";
- this.OperationDoctor.Name = "OperationDoctor";
- this.OperationDoctor.ReadOnly = true;
- this.OperationDoctor.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.OperationDoctor.Width = 60;
- //
- // PlanTime
- //
- this.PlanTime.DataPropertyName = "ApplyTime";
- this.PlanTime.HeaderText = "ʱ";
- this.PlanTime.Name = "PlanTime";
- this.PlanTime.ReadOnly = true;
- this.PlanTime.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.PlanTime.Width = 90;
- //
- // InHospitalNo
- //
- this.InHospitalNo.DataPropertyName = "MdrecNo";
- dataGridViewCellStyle4.Font = new System.Drawing.Font("ź", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.InHospitalNo.DefaultCellStyle = dataGridViewCellStyle4;
- this.InHospitalNo.HeaderText = "סԺ";
- this.InHospitalNo.Name = "InHospitalNo";
- this.InHospitalNo.ReadOnly = true;
- this.InHospitalNo.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.InHospitalNo.Width = 90;
- //
- // PatientName
- //
- this.PatientName.DataPropertyName = "PatientName";
- dataGridViewCellStyle5.Font = new System.Drawing.Font("ź", 11F);
- this.PatientName.DefaultCellStyle = dataGridViewCellStyle5;
- this.PatientName.HeaderText = "";
- this.PatientName.Name = "PatientName";
- this.PatientName.ReadOnly = true;
- this.PatientName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.PatientName.Width = 125;
- //
- // Operation
- //
- this.Operation.DataPropertyName = "ApplyOperationInfoName";
- dataGridViewCellStyle6.Font = new System.Drawing.Font("ź", 11F);
- dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.Operation.DefaultCellStyle = dataGridViewCellStyle6;
- this.Operation.HeaderText = "";
- this.Operation.Name = "Operation";
- this.Operation.ReadOnly = true;
- this.Operation.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.Operation.Width = 200;
- //
- // OrderOperationTime
- //
- this.OrderOperationTime.DataPropertyName = "OrderOperationTime";
- dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle7.Font = new System.Drawing.Font("ź", 12F);
- this.OrderOperationTime.DefaultCellStyle = dataGridViewCellStyle7;
- this.OrderOperationTime.HeaderText = "ʱ";
- this.OrderOperationTime.Name = "OrderOperationTime";
- this.OrderOperationTime.ReadOnly = true;
- this.OrderOperationTime.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- this.OrderOperationTime.Visible = false;
- this.OrderOperationTime.Width = 65;
- //
- // Remark
- //
- this.Remark.DataPropertyName = "OperationRemark";
- dataGridViewCellStyle8.Font = new System.Drawing.Font("ź", 12F);
- this.Remark.DefaultCellStyle = dataGridViewCellStyle8;
- this.Remark.HeaderText = "ע";
- this.Remark.Name = "Remark";
- this.Remark.ReadOnly = true;
- this.Remark.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- //
- // AnaesthesiaMethodId
- //
- this.AnaesthesiaMethodId.DataPropertyName = "AnaesthesiaMethodName";
- this.AnaesthesiaMethodId.HeaderText = "ʩ";
- this.AnaesthesiaMethodId.Name = "AnaesthesiaMethodId";
- this.AnaesthesiaMethodId.ReadOnly = true;
- this.AnaesthesiaMethodId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- //
- // Diagnose
- //
- this.Diagnose.DataPropertyName = "ApplyDiagnoseInfoName";
- this.Diagnose.HeaderText = "ǰ";
- this.Diagnose.Name = "Diagnose";
- this.Diagnose.ReadOnly = true;
- this.Diagnose.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
- //
- // OperationType
- //
- this.OperationType.DataPropertyName = "OperationType";
- this.OperationType.HeaderText = "";
- this.OperationType.Name = "OperationType";
- this.OperationType.ReadOnly = true;
- //
- // Contagion
- //
- this.Contagion.DataPropertyName = "Contagion";
- this.Contagion.HeaderText = "Ⱦɸ";
- this.Contagion.Name = "Contagion";
- this.Contagion.ReadOnly = true;
+ this.gridColumn2.Name = "state";
+ this.gridColumn2.Visible = false;
//
// frmOperationSchedulePlan
//
@@ -4144,12 +4152,15 @@ namespace AIMS.OperationFront.UI
if (selApply == null || selApply == "") return;
try
{
+ OperationApply opeapply = BOperationApply.SelectSingle( int.Parse(selApply) , RecursiveType.None, 0);
+ if (opeapply.State > 5) { MessageBox.Show(" л䣡"); return; }
OperationRoom opeRoom = (sender as ToolStripItem).Tag as OperationRoom;
BOperationApply.UpdateApplyRoom(int.Parse(selApply), opeRoom.Id.Value, dtpSearchTime.Value);
+ BOperationApply.UpdteOperationOrder(dtpSearchTime.Value, RoomCardManage.lastSelectOpeRoom.operationRoom.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);
+ RoomCardManage.WriteMsg(rtbLog, outMsg);
LoadOperationInfo(opeRoom.Id.Value);
+ LoadOperationInfoDgv(CurrentRoom);
dgvDetail.PrimaryGrid.Rows.Remove(grCurrentSub);
}
catch (Exception ex)
@@ -4386,6 +4397,7 @@ namespace AIMS.OperationFront.UI
return;
grCurrentSub = (GridRow)e.GridCell.GridRow;
int iRowID = int.Parse(grCurrentSub.Cells["Id"].Value.ToString());
+ //int StateId = int.Parse(grCurrentSub.Cells["State"].Value.ToString());
selApply = iRowID.ToString();
RoomCardManage.IsFillAll = false;
if (e.GridCell.Value != null)
@@ -4404,10 +4416,12 @@ namespace AIMS.OperationFront.UI
{
BApplyPersonDuty.Delete(" PersonDutyId in(5,6,7,8,9,10) and OperationApplyId=" + iRowID, null);
outMsg = string.Format("{2} Ƴ :{0} :{1} ɹ", grCurrentSub.Cells["Patient"].Value, grCurrentSub.Cells["OperationName"].Value, RoomCardManage.lastSelectOpeRoom.operationRoom.Name);
+
+ BOperationApply.UpdteOperationOrder(dtpSearchTime.Value, RoomCardManage.lastSelectOpeRoom.operationRoom.Id.Value);
RoomCardManage.WriteMsg(rtbLog, outMsg);
- dgvDetail.PrimaryGrid.Rows.Remove(grCurrentSub);
LoadSelectDate("");
- LoadOperationInfo();
+ //LoadOperationInfo(RoomCardManage.lastSelectOpeRoom.operationRoom.Id.Value);
+ LoadOperationInfoDgv(CurrentRoom);
}
#endregion
}
diff --git a/AIMS/OperationFront/frmOperationSchedulePlan.resx b/AIMS/OperationFront/frmOperationSchedulePlan.resx
index 0ae9bbf..9351358 100644
--- a/AIMS/OperationFront/frmOperationSchedulePlan.resx
+++ b/AIMS/OperationFront/frmOperationSchedulePlan.resx
@@ -251,7 +251,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD+
- CAAAAk1TRnQBSQFMAgEBAgEAAXwBEwF8ARMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
+ CAAAAk1TRnQBSQFMAgEBAgEAAZQBEwGUARMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
diff --git a/AIMS/OremrUserControl/ucDocument.cs b/AIMS/OremrUserControl/ucDocument.cs
index 644481c..43a15ce 100644
--- a/AIMS/OremrUserControl/ucDocument.cs
+++ b/AIMS/OremrUserControl/ucDocument.cs
@@ -1,6 +1,7 @@
using AIMS.DocManager;
using AIMSBLL;
using AIMSExtension;
+using AIMSModel;
using DCSoft.Writer;
using DCSoft.Writer.Data;
using DCSoft.Writer.Dom;
@@ -111,7 +112,7 @@ namespace AIMS.OremrUserControl
{
element.Text = info.GetValue(Patient, null).ToString();
}
- }
+ }
}
else
{
@@ -164,6 +165,7 @@ namespace AIMS.OremrUserControl
}
}
}
+ DocumentExtension.SetDocumentDefaultValue(TModel.XmlFileName,myEditControl.Document,Patient);
}
string xmlStatic = DocumentDAL.GetEventXml(DModel.TemplateId);
if (xmlStatic != string.Empty)
@@ -323,17 +325,17 @@ namespace AIMS.OremrUserControl
ClearT();
}
myEditControl.Document.Modified = false;
- //更新ASA分级与心功能分级
- if (DModel.XmlFileName == "麻醉术前访视单")
- {
- var asa = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
- && (x as XTextInputFieldElement).ToolTip == "ASA分级").FirstOrDefault();
- string strASA = asa == null ? "" : asa.Text;
- var hf = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
- && (x as XTextInputFieldElement).ToolTip == "心功能分级").FirstOrDefault();
- string strH = hf == null ? "" : hf.Text;
- BOperationApply.UpdateASA(Patient.ApplyId, strASA, strH);
- }
+ ////更新ASA分级与心功能分级
+ //if (DModel.XmlFileName == "麻醉术前访视单")
+ //{
+ // var asa = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ // && (x as XTextInputFieldElement).ToolTip == "ASA分级").FirstOrDefault();
+ // string strASA = asa == null ? "" : asa.Text;
+ // var hf = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ // && (x as XTextInputFieldElement).ToolTip == "心功能分级").FirstOrDefault();
+ // string strH = hf == null ? "" : hf.Text;
+ // BOperationApply.UpdateASA(Patient.ApplyId, strASA, strH);
+ //}
new frmMessageBox().Show();
}
diff --git a/AIMS/OremrUserControl/ucPlanOperationRoomCard.cs b/AIMS/OremrUserControl/ucPlanOperationRoomCard.cs
index 88c048b..a4af161 100644
--- a/AIMS/OremrUserControl/ucPlanOperationRoomCard.cs
+++ b/AIMS/OremrUserControl/ucPlanOperationRoomCard.cs
@@ -11,6 +11,7 @@ using DevComponents.DotNetBar.SuperGrid;
using AIMSExtension;
using AIMSBLL;
using System.Drawing.Drawing2D;
+using DCSoftDotfuscate;
namespace AIMS.OremrUserControl
{
@@ -136,15 +137,34 @@ namespace AIMS.OremrUserControl
private void tsDel_Click(object sender, EventArgs e)
{
if (pDataTable.Rows.Count <= 0) return;
+ if (pDataTable.Rows.Count > 0)
+ {
+ string patientname = "";
+ foreach (DataRow item in pDataTable.Rows)
+ {
+ if (!"1,2,3,4,5".Contains(item["StateId"].ToString()))
+ patientname += item["PatientName"] + " ";
+ }
+ if (patientname != "")
+ {
+ MessageBox.Show("患者:" + patientname.Trim() + " 已手术 无法撤销!");
+ }
+ }
//AnesthesiaDoctor = null, TourNurse = null, InstrumentNurse = null,
string DoctorNuresName = " PlanOperationTime = null,OperationRoomId = null, PlanOrder=null , State = 2 ";
if (BOperationApply.SaveDoctorByRommTime(DoctorNuresName, PlanOperationTime, operationRoom.Id.Value) > 0)
{
foreach (DataRow item in pDataTable.Rows)
{
- string OperationApplyId = item["ApplyId"].ToString();
- BApplyPersonDuty.Delete(" PersonDutyId in(5,6,7,8,9,10) and OperationApplyId=" + OperationApplyId, null);
+ if ("1,2,3,4,5".Contains(item["StateId"].ToString()))
+ {
+ string OperationApplyId = item["ApplyId"].ToString();
+ BApplyPersonDuty.Delete(" PersonDutyId in(5,6,7,8,9,10) and OperationApplyId=" + OperationApplyId, null);
+ }
}
+
+ BOperationApply.UpdteOperationOrder(PlanOperationTime, operationRoom.Id.Value);
+
dgvDetail.PrimaryGrid.Rows.Clear();
lblNurse2.Text = "巡回护士";
lblNurse2.ForeColor = Color.Gray;
@@ -233,7 +253,7 @@ namespace AIMS.OremrUserControl
string sAnesthesiaDoctor = item["AnesthesiaDoctor"].ToString();
string sInstrumentNurse = item["InstrumentNurse"].ToString();
string sTourNurse = item["TourNurse"].ToString();
- GridRow grNew = new GridRow(item["ApplyId"].ToString(), item["PlanOrder"].ToString(), string.Format("{0}{1}", item["PatientName"].ToString(), ""), item["MdrecNo"].ToString(), item["ApplyDepName"].ToString() + "-" + item["SickBed"].ToString(), sOperationDoctor, item["ApplyOperationInfoName"].ToString(), DateTime.Parse(item["OrderOperationTime"].ToString()).ToString("HH:mm"), sAnesthesiaDoctor, sInstrumentNurse, sTourNurse, item["OperationRemark"].ToString(), "Χ");
+ GridRow grNew = new GridRow(item["ApplyId"].ToString(), item["PlanOrder"].ToString(), string.Format("{0}{1}", item["PatientName"].ToString(), ""), item["MdrecNo"].ToString(), item["ApplyDepName"].ToString() + "-" + item["SickBed"].ToString(), sOperationDoctor, item["ApplyOperationInfoName"].ToString(), DateTime.Parse(item["OrderOperationTime"].ToString()).ToString("HH:mm"), sAnesthesiaDoctor, sInstrumentNurse, sTourNurse, item["OperationRemark"].ToString(), "Χ", item["StateId"].ToString());
if (item["Contagion"].ToString() != "" && item["Contagion"].ToString() != "无" && item["Contagion"].ToString() != "未报")
{
grNew.CellStyles.Default.Background.Color1 = Color.Purple;
@@ -424,10 +444,13 @@ namespace AIMS.OremrUserControl
private void ToolStripItem1_Click(object sender, EventArgs e)
{
if (pDataTable.Rows.Count <= 0) return;
- OperationRoom opeRoom = (sender as ToolStripItem).Tag as OperationRoom;
- string PlanOperationRoom = "OperationRoomId = " + opeRoom.Id;
- if (BOperationApply.SaveDoctorByRommTime(PlanOperationRoom, PlanOperationTime, operationRoom.Id.Value) > 0)
+ OperationRoom opeRoom = (sender as ToolStripItem).Tag as OperationRoom;
+ if (BOperationApply.SaveRoomOrderByTime(opeRoom.Id.Value , PlanOperationTime, operationRoom.Id.Value) > 0)
{
+ //刷新当前间台次
+ BOperationApply.UpdteOperationOrder(PlanOperationTime, operationRoom.Id.Value);
+ //更新转入手术间台次
+ BOperationApply.UpdteOperationOrder(PlanOperationTime, opeRoom.Id.Value);
dgvDetail.PrimaryGrid.Rows.Clear();
lblNurse2.Text = "巡回护士";
lblNurse2.ForeColor = Color.Gray;
diff --git a/AIMS/Program.cs b/AIMS/Program.cs
index 2a2a92c..84c76b2 100644
--- a/AIMS/Program.cs
+++ b/AIMS/Program.cs
@@ -30,18 +30,18 @@ namespace AIMS
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
- Process instance = RunningInstance();
- if (instance == null)
- {
+ //Process instance = RunningInstance();
+ //if (instance == null)
+ //{
UpdateProgram(args);
Task.Factory.StartNew(() => { PreLoad(); });
Application.Run(new FormLogin());
- }
- else
- {
- /*1.2 已经有一个实例在运行*/
- HandleRunningInstance(instance);
- }
+ //}
+ //else
+ //{
+ // /*1.2 已经有一个实例在运行*/
+ // HandleRunningInstance(instance);
+ //}
}
static void PreLoad()
diff --git a/AIMSEntity/AIMSEntity.csproj b/AIMSEntity/AIMSEntity.csproj
index 21501ba..6ad2653 100644
--- a/AIMSEntity/AIMSEntity.csproj
+++ b/AIMSEntity/AIMSEntity.csproj
@@ -114,7 +114,6 @@
-
@@ -182,7 +181,6 @@
-
@@ -256,7 +254,6 @@
-
@@ -322,7 +319,6 @@
-
@@ -379,7 +375,6 @@
-
@@ -438,7 +433,6 @@
-
@@ -516,7 +510,6 @@
-
diff --git a/AIMSEntity/BLL/AutoGenerate/BPrintDocument.cs b/AIMSEntity/BLL/AutoGenerate/BPrintDocument.cs
deleted file mode 100644
index e015cc7..0000000
--- a/AIMSEntity/BLL/AutoGenerate/BPrintDocument.cs
+++ /dev/null
@@ -1,160 +0,0 @@
-using System;
-using AIMSDAL;
-using AIMSModel;
-using System.Collections;
-using System.Collections.Generic;
-
-namespace AIMSBLL
-{
- public partial class BPrintDocument
- {
- #region 插入实体操作部份
- ///
- /// 插入实体
- ///
- /// 实体类对象
- /// 标识列值或影响的记录行数
- public static int Insert(PrintDocument printDocument)
- {
- return DPrintDocument.Insert(printDocument);
- }
- #endregion
-
- #region 删除实体操作
- ///
- /// 删除实体
- ///
- /// 实体类对象
- /// 影响的记录行数
- public static int Delete(PrintDocument printDocument)
- {
- return DPrintDocument.Delete(printDocument);
- }
- ///
- /// 根据对象查询语句删除
- ///
- /// 对象查询语句
- /// 参数列表
- /// 影响的记录行数
- public static int Delete(string oql, ParameterList parameters)
- {
- return DPrintDocument.Delete(oql,parameters);
- }
- #endregion
-
- #region 更新实体操作
-
- ///
- /// 更新实体
- ///
- /// 实体类对象
- /// 影响的记录行数
- public static int Update(PrintDocument printDocument)
- {
- return DPrintDocument.Update(printDocument);
- }
-
- ///
- /// 根据对象查询语句更新实体
- ///
- /// 对象查询语句
- /// 参数列表
- /// 影响的记录行数
- public static int Update(string oql, ParameterList parameters)
- {
- return DPrintDocument.Update(oql,parameters);
- }
- #endregion
-
- #region 查询实体集合
- ///
- /// \查询实体集合
- ///
- /// 实体类对象集合
- public static List Select()
- {
- return DPrintDocument.Select();
- }
- ///
- /// 递归查询实体集合
- ///
- /// 递归类型
- /// 递归深度
- /// 实体类对象集合
- public static List Select(RecursiveType recursiveType, int recursiveDepth)
- {
- return DPrintDocument.Select(recursiveType, recursiveDepth);
- }
-
- ///
- /// 根据对象查询语句查询实体集合
- ///
- /// 对象查询语句
- /// 参数列表
- /// 实体类对象集合
- public static List Select(string oql, ParameterList parameters)
- {
- return DPrintDocument.Select(oql, parameters);
- }
-
- ///
- /// 根据对象查询语句递归查询实体集合
- ///
- /// 对象查询语句
- /// 参数列表
- /// 递归类型
- /// 递归深度
- /// 实体类对象集合
- public static List Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth)
- {
- return DPrintDocument.Select(oql, parameters, recursiveType, recursiveDepth);
- }
- #endregion
-
- #region 查询单个实体
- ///
- /// 更据对象查询语句查询单个实体
- ///
- /// 对象查询语句
- /// 参数列表
- /// 实体对象
- public static PrintDocument SelectSingle(string oql, ParameterList parameters)
- {
- return DPrintDocument.SelectSingle(oql, parameters);
- }
- ///
- /// 更据对象查询语句递归查询单个实体
- ///
- /// 对象查询语句
- /// 参数列表
- /// 递归类型
- /// 递归深度
- /// 实体对象
- public static PrintDocument SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
- {
- return DPrintDocument.SelectSingle(oql, parameters, recursiveType, recursiveDepth);
- }
-
- ///
- /// 按主键字段查询特定实体
- ///
- /// 主键值
- /// 实体类对象
- public static PrintDocument SelectSingle(int? id)
- {
- return DPrintDocument.SelectSingle(id);
- }
-
- ///
- /// 更据主键递归查询单个实体
- ///
- /// 递归类型
- /// 递归深度
- /// 实体对象
- public static PrintDocument SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth)
- {
- return DPrintDocument.SelectSingle(id, recursiveType, recursiveDepth);
- }
- #endregion
- }
-}
diff --git a/AIMSEntity/BLL/Extension/BOperationApply.cs b/AIMSEntity/BLL/Extension/BOperationApply.cs
index fef0a5e..5bf4eab 100644
--- a/AIMSEntity/BLL/Extension/BOperationApply.cs
+++ b/AIMSEntity/BLL/Extension/BOperationApply.cs
@@ -17,22 +17,10 @@ namespace AIMSBLL
DOperationApply.Add(OperationApplyObj);
}
- //public static void Update(OperationApply OperationApplyObj)
- //{
- // DOperationApply.Update(OperationApplyObj);
- //}
public static void UpdatePlanOrder(int ApplyId, int PlanOrder)
{
DOperationApply.UpdatePlanOrder(ApplyId, PlanOrder);
}
- public static void UpdateOperationRoom(int ApplyId, int OperationRoomId, int MaxPlanOrder)
- {
- DOperationApply.UpdateOperationRoom(ApplyId, OperationRoomId, MaxPlanOrder);
- }
- public static void UpdateASA(int ApplyId, string ASA, string HeartFunctionLevel, int IsFasting)
- {
- DOperationApply.UpdateASA(ApplyId, ASA, HeartFunctionLevel, IsFasting);
- }
public static void UpdateASA(int ApplyId, string ASA, string HeartFunctionLevel)
{
DOperationApply.UpdateASA(ApplyId, ASA, HeartFunctionLevel);
@@ -75,9 +63,10 @@ namespace AIMSBLL
{
DOperationApply.UpdateApplyState(ApplyId, State);
}
- public static void UpdateApplyRoom(int ApplyId, int room,DateTime PlanOperationTime)
+ public static void UpdateApplyRoom(int ApplyId, int room, DateTime PlanOperationTime)
{
- DOperationApply.UpdateApplyRoom(ApplyId, room,PlanOperationTime);
+ int PlanOrder = BOperationApply.GetMaxPlanOrder(PlanOperationTime, room) + 1;
+ DOperationApply.UpdateApplyRoom(ApplyId, room, PlanOperationTime, PlanOrder);
}
public static void UpdatePlanOperationTime(int ApplyId, string PlanOperationTime, int OperationRoomId, int State)
{
@@ -87,30 +76,6 @@ namespace AIMSBLL
{
DOperationApply.UpdateStopOperation(ApplyId, Content);
}
- public static DataTable GetOperationFrontByApplyId(List ApplyIdList)
- {
- return DOperationApply.GetOperationFrontByApplyId(ApplyIdList);
- }
- ///
- /// 排程手术小卡片数据集
- ///
- ///
- ///
- ///
- public static DataTable GetOperationRoomDataTable(DateTime PlanOperationTime, int OperationRoomId)
- {
- return DOperationApply.GetOperationRoomDataTable(PlanOperationTime, OperationRoomId);
- }
- public static DataTable GetPlanOperationDataTable(DateTime PlanOperationTime, int OperationRoomId)
- {
- return DOperationApply.GetPlanOperationDataTable(PlanOperationTime, OperationRoomId);
- }
-
- public static void UpdateOperationRoom(int ApplyId, int OperationRoomId)
- {
- DOperationApply.UpdateOperationRoom(ApplyId, OperationRoomId);
- }
-
public static DataTable SelectPlanedOpeByRoom(string whereSql)
{
return DOperationApply.SelectPlanedOpeByRoom(whereSql);
@@ -119,6 +84,40 @@ namespace AIMSBLL
{
return DOperationApply.SaveDoctorByRommTime(DoctorNuresName, SearchTime, CurrentRoom);
}
+ public static int SaveRoomOrderByTime(int SetRoom, DateTime SearchTime, int CurrentRoom)
+ {
+ int num = 0;
+ DataTable _operationInfoRows = DOperationApply.SelectPlanedOpe(" state in(1,2,3,4) and PlanOperationTime<='" + SearchTime.ToString("yyyy-MM-dd 23:59:59") + "' and PlanOperationTime>='" + SearchTime.ToString("yyyy-MM-dd 00:00:00") + "' and OperationRoomId=" + CurrentRoom + " order by PlanOrder asc");
+ if (_operationInfoRows.Rows.Count > 0)
+ {
+ int PlanOrder = BOperationApply.GetMaxPlanOrder(SearchTime, SetRoom) + 1;
+ for (int index = 0; index < _operationInfoRows.Rows.Count; index++)
+ {
+ int ApplyId = int.Parse(_operationInfoRows.Rows[index]["Id"].ToString());
+ num += DOperationApply.UpdateApplyRoom(ApplyId, SetRoom, SearchTime, PlanOrder);
+ PlanOrder++;
+ }
+ }
+ return num;
+ }
+ public static void UpdteOperationOrder(DateTime dtpSearchTime, int operationRoom)
+ {
+ DataTable _operationInfoRows = DOperationApply.SelectPlanedOpe(" PlanOperationTime<='" + dtpSearchTime.ToString("yyyy-MM-dd 23:59:59") + "' and PlanOperationTime>='" + dtpSearchTime.ToString("yyyy-MM-dd 00:00:00") + "' and OperationRoomId=" + operationRoom + " order by PlanOrder asc");
+ if (_operationInfoRows.Rows.Count > 0)
+ {
+ for (int index = 0; index < _operationInfoRows.Rows.Count; index++)
+ {
+ int ApplyId = int.Parse(_operationInfoRows.Rows[index]["Id"].ToString());
+ int OperationOrder = index + 1;
+ UpdateApplyOrder(ApplyId, OperationOrder);
+ }
+
+ }
+ }
+ public static void UpdateApplyOrder(int ApplyId, int order)
+ {
+ DOperationApply.UpdateApplyOrder(ApplyId, order);
+ }
}
}
diff --git a/AIMSEntity/BLL/Extension/BOperationRecord.cs b/AIMSEntity/BLL/Extension/BOperationRecord.cs
index 724e776..f519bad 100644
--- a/AIMSEntity/BLL/Extension/BOperationRecord.cs
+++ b/AIMSEntity/BLL/Extension/BOperationRecord.cs
@@ -82,7 +82,7 @@ namespace AIMSBLL
_record.MedicalHistoryNo = OperationFrontdt.Rows[0]["ArchivesNo"].ToString();
_record.Name = OperationFrontdt.Rows[0]["PatientName"].ToString();
_record.Sex = OperationFrontdt.Rows[0]["Sex"].ToString();
- _record.Age = AIMSExtension.PublicMethod.GetAge(DateTime.Parse(OperationFrontdt.Rows[0]["BirthDay"].ToString()));
+ _record.Age = OperationFrontdt.Rows[0]["Age"].ToString();
if (OperationFrontdt.Rows[0]["Height"].ToString() != "")
_record.Height = double.Parse(OperationFrontdt.Rows[0]["Height"].ToString()).ToString();
if (OperationFrontdt.Rows[0]["Weight"].ToString() != "")
@@ -92,6 +92,7 @@ namespace AIMSBLL
_record.OperationType = OperationFrontdt.Rows[0]["OperationType"].ToString();
_record.RoomId = int.Parse(OperationFrontdt.Rows[0]["OperationRoomId"].ToString().Trim());
_record.MedicalRecord = OperationFrontdt.Rows[0]["MedicalRecord"].ToString();
+ _record.PlanOperationTime = DateTime.Parse(OperationFrontdt.Rows[0]["PlanOperationTime"].ToString());
}
@@ -211,7 +212,7 @@ namespace AIMSBLL
_record.SpareThree = allOutDose.ToString();
if (_record.ASALevel == null || _record.ASALevel == 0)
- GetASALevel(PatientId, _record);
+ BOperationReview.GetASALevel(PatientId, _record);
return _record;
}
@@ -249,6 +250,7 @@ namespace AIMSBLL
FactDrug.OperateDate = DateTime.Parse(DrugAllData.Rows[i]["OperateDate"].ToString());
FactDrug.AnesType = DrugAllData.Rows[i]["AnesType"].ToString();
FactDrug.Comment = DrugAllData.Rows[i]["Comment"].ToString();
+ FactDrug.Access = DrugAllData.Rows[i]["Access"].ToString();
_record.FactDrugList.Add(FactDrug);
}
}
@@ -586,12 +588,12 @@ namespace AIMSBLL
}
}
- public static DataTable getByOpeIDIsPhysioData(int operationId,string PhysioDataConfigId)
+ public static DataTable getByOpeIDIsPhysioData(int operationId, string PhysioDataConfigId)
{
- string sqlStr = "SELECT [PhysioDataConfig].Name , PhysioData.RecordTime, PhysioData.[Value] FROM [dbo].[PhysioDataConfig] INNER JOIN PhysioData ON [PhysioDataConfig].Id = PhysioData.PhysioDataConfigId where PatientId = " + operationId + " and PhysioDataConfigId in ("+ PhysioDataConfigId + ") order by PhysioDataConfigId,PhysioData.RecordTime ASC";
+ string sqlStr = "SELECT [PhysioDataConfig].Name , PhysioData.RecordTime, PhysioData.[Value] FROM [dbo].[PhysioDataConfig] INNER JOIN PhysioData ON [PhysioDataConfig].Id = PhysioData.PhysioDataConfigId where PatientId = " + operationId + " and PhysioDataConfigId in (" + PhysioDataConfigId + ") order by PhysioDataConfigId,PhysioData.RecordTime ASC";
return DBHelper.GetDataTable(sqlStr);
}
-
+
public static int GetDataCount(int RecorId, int PatientId, int Type)
{
return DOperationRecord.GetDataCount(RecorId, PatientId, Type);
@@ -606,18 +608,6 @@ namespace AIMSBLL
{
return DOperationRecord.FillOutFluid(PatientId, DrugTypeId);
}
- public static void GetASALevel(int PatientId, OperationRecord _record)
- {
- string ASALevel = BOperationReview.GetDocumentXmlStatic("麻醉术前访视记录单", PatientId, "ASA分级");
- if (ASALevel != "")
- {
- BasicDictionary dict = BBasicDictionary.SelectSingle(" ParentId=30 and Name='" + ASALevel + "'", null);
- if (dict != null)
- {
- _record.ASALevel = dict.Id.Value;
- BOperationRecord.Update(" ASALevel=@ASALevel where Id=@Id", new ParameterList("@ASALevel", _record.ASALevel, "@Id", _record.Id.Value));
- }
- }
- }
+
}
}
diff --git a/AIMSEntity/BLL/Extension/BOperationTemplate.cs b/AIMSEntity/BLL/Extension/BOperationTemplate.cs
index 5d8403b..53d8958 100644
--- a/AIMSEntity/BLL/Extension/BOperationTemplate.cs
+++ b/AIMSEntity/BLL/Extension/BOperationTemplate.cs
@@ -45,6 +45,8 @@ namespace AIMSBLL
OperationTemplateDrugObj.Spare3 = Drugdt.Rows[i]["Velocity"].ToString();
OperationTemplateDrugObj.Spare4 = Drugdt.Rows[i]["VelocityUnit"].ToString();
OperationTemplateDrugObj.Spare5 = Drugdt.Rows[i]["ParentId"].ToString();
+ OperationTemplateDrugObj.Spare6 = Drugdt.Rows[i]["DrugName"].ToString();
+ OperationTemplateDrugObj.Spare7 = Drugdt.Rows[i]["Access"].ToString();
Add(OperationTemplateDrugObj);
}
@@ -176,6 +178,8 @@ namespace AIMSBLL
FactDrugObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
FactDrugObj.OperateDate = NewInRoomTime;
FactDrugObj.ParentId =int.Parse( dr["Spare5"].ToString());
+ FactDrugObj.DrugName = dr["Spare6"].ToString();
+ FactDrugObj.Access = dr["Spare7"].ToString();
BFactDrug.Add(FactDrugObj);
}
diff --git a/AIMSEntity/BLL/Extension/BPrintDocument.cs b/AIMSEntity/BLL/Extension/BPrintDocument.cs
deleted file mode 100644
index 5f82eb3..0000000
--- a/AIMSEntity/BLL/Extension/BPrintDocument.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-using AIMSDAL;
-using AIMSModel;
-using AIMSObjectQuery;
-using System.Collections;
-using System.Collections.Generic;
-namespace AIMSBLL
-{
- public partial class BPrintDocument
- {
- }
-}
diff --git a/AIMSEntity/DAL/AutoGenerate/DFactDrug.cs b/AIMSEntity/DAL/AutoGenerate/DFactDrug.cs
index 0e4a55c..ab79fa3 100644
--- a/AIMSEntity/DAL/AutoGenerate/DFactDrug.cs
+++ b/AIMSEntity/DAL/AutoGenerate/DFactDrug.cs
@@ -1,11 +1,9 @@
-using System;
-using System.Data;
-using System.Data.SqlClient;
-using System.Collections;
-using AIMSModel;
+using AIMSModel;
using AIMSObjectQuery;
-using System.Collections.Generic;
using DrawGraph;
+using System;
+using System.Collections.Generic;
+using System.Data.SqlClient;
namespace AIMSDAL
{
@@ -21,8 +19,8 @@ namespace AIMSDAL
internal static int Insert(SqlCommand cmd, FactDrug factDrug)
{
cmd.Parameters.Clear();
- cmd.CommandText = "insert into FactDrug (PatientId,DrugTypeId,DrugId,DrugBeginTime,DrugEndTime,Dosage,DosageUnit,DrugChannel,GiveDrugType,IsContinue,Remark,OperatorNo,OperatorName,OperateDate,Density,DensityUnit,Velocity,VelocityUnit,BloodType,ParentId) values (@PatientId,@DrugTypeId,@DrugId,@DrugBeginTime,@DrugEndTime,@Dosage,@DosageUnit,@DrugChannel,@GiveDrugType,@IsContinue,@Remark,@OperatorNo,@OperatorName,@OperateDate,@Density,@DensityUnit,@Velocity,@VelocityUnit,@BloodType,@ParentId);select @@identity";
- //从实体中取出值放入Command的参数列表
+ cmd.CommandText = "insert into FactDrug (PatientId,DrugTypeId,DrugId,DrugBeginTime,DrugEndTime,Dosage,DosageUnit,DrugChannel,GiveDrugType,IsContinue,Remark,OperatorNo,OperatorName,OperateDate,Density,DensityUnit,Velocity,VelocityUnit,BloodType,ParentId,DrugName,Access) values (@PatientId,@DrugTypeId,@DrugId,@DrugBeginTime,@DrugEndTime,@Dosage,@DosageUnit,@DrugChannel,@GiveDrugType,@IsContinue,@Remark,@OperatorNo,@OperatorName,@OperateDate,@Density,@DensityUnit,@Velocity,@VelocityUnit,@BloodType,@ParentId,@DrugName,@Access);select @@identity";
+ //从实体中取出值放入Command的参数列表,BatchNo,PaySelf,TestFlag,LimitFlag,Extend1,Extend2,Extend3,Extend4,Extend5 ,@BatchNo,@PaySelf,@TestFlag,@LimitFlag,@Extend1,@Extend2,@Extend3,@Extend4,@Extend5
cmd.Parameters.Add(new SqlParameter("@PatientId", factDrug.PatientId));
cmd.Parameters.Add(new SqlParameter("@DrugTypeId", factDrug.DrugTypeId));
cmd.Parameters.Add(new SqlParameter("@DrugId", factDrug.DrugId));
@@ -38,11 +36,22 @@ namespace AIMSDAL
cmd.Parameters.Add(new SqlParameter("@OperatorName", factDrug.OperatorName));
cmd.Parameters.Add(new SqlParameter("@OperateDate", factDrug.OperateDate));
cmd.Parameters.Add(new SqlParameter("@Density", factDrug.Density));
- cmd.Parameters.Add(new SqlParameter("@DensityUnit", factDrug.DensityUnit == null ? "" : factDrug.DensityUnit));
+ cmd.Parameters.Add(new SqlParameter("@DensityUnit", factDrug.DensityUnit));
cmd.Parameters.Add(new SqlParameter("@Velocity", factDrug.Velocity));
- cmd.Parameters.Add(new SqlParameter("@VelocityUnit", factDrug.VelocityUnit == null ? "" : factDrug.VelocityUnit));
+ cmd.Parameters.Add(new SqlParameter("@VelocityUnit", factDrug.VelocityUnit));
cmd.Parameters.Add(new SqlParameter("@BloodType", factDrug.BloodType));
cmd.Parameters.Add(new SqlParameter("@ParentId", factDrug.ParentId));
+ cmd.Parameters.Add(new SqlParameter("@DrugName", factDrug.DrugName));
+ cmd.Parameters.Add(new SqlParameter("@Access", factDrug.Access));
+ //cmd.Parameters.Add(new SqlParameter("@BatchNo", factDrug.BatchNo));
+ //cmd.Parameters.Add(new SqlParameter("@PaySelf", factDrug.PaySelf));
+ //cmd.Parameters.Add(new SqlParameter("@TestFlag", factDrug.TestFlag));
+ //cmd.Parameters.Add(new SqlParameter("@LimitFlag", factDrug.LimitFlag));
+ //cmd.Parameters.Add(new SqlParameter("@Extend1", factDrug.Extend1));
+ //cmd.Parameters.Add(new SqlParameter("@Extend2", factDrug.Extend2));
+ //cmd.Parameters.Add(new SqlParameter("@Extend3", factDrug.Extend3));
+ //cmd.Parameters.Add(new SqlParameter("@Extend4", factDrug.Extend4));
+ //cmd.Parameters.Add(new SqlParameter("@Extend5", factDrug.Extend5));
return Convert.ToInt32(cmd.ExecuteScalar());
}
///
@@ -127,7 +136,7 @@ namespace AIMSDAL
internal static int ExcuteDeleteCommand(SqlCommand cmd, string oql, ParameterList parameters)
{
//解析过滤部份Sql语句
- string filterString = oql;// SyntaxAnalyzer.ParseSql(oql, new FactDrugMap());
+ string filterString = SyntaxAnalyzer.ParseSql(oql, new FactDrugMap());
if (filterString != string.Empty)
{
filterString = " where " + filterString;
@@ -187,8 +196,8 @@ namespace AIMSDAL
/// 影响的记录行数
internal static int ExcuteUpdateCommand(SqlCommand cmd, FactDrug factDrug)
{
- cmd.CommandText = "update FactDrug set PatientId=@PatientId,DrugTypeId=@DrugTypeId,DrugId=@DrugId,DrugBeginTime=@DrugBeginTime,DrugEndTime=@DrugEndTime,Dosage=@Dosage,DosageUnit=@DosageUnit,DrugChannel=@DrugChannel,GiveDrugType=@GiveDrugType,IsContinue=@IsContinue,Remark=@Remark,OperatorNo=@OperatorNo,OperatorName=@OperatorName,OperateDate=@OperateDate,Density=@Density,DensityUnit=@DensityUnit,Velocity=@Velocity,VelocityUnit=@VelocityUnit,BloodType=@BloodType,ParentId=@ParentId where Id=@Id";
- //从实体中取出值放入Command的参数列表
+ cmd.CommandText = "update FactDrug set PatientId=@PatientId,DrugTypeId=@DrugTypeId,DrugId=@DrugId,DrugBeginTime=@DrugBeginTime,DrugEndTime=@DrugEndTime,Dosage=@Dosage,DosageUnit=@DosageUnit,DrugChannel=@DrugChannel,GiveDrugType=@GiveDrugType,IsContinue=@IsContinue,Remark=@Remark,OperatorNo=@OperatorNo,OperatorName=@OperatorName,OperateDate=@OperateDate,Density=@Density,DensityUnit=@DensityUnit,Velocity=@Velocity,VelocityUnit=@VelocityUnit,BloodType=@BloodType,ParentId=@ParentId,DrugName=@DrugName,Access=@Access where Id=@Id";
+ //从实体中取出值放入Command的参数列表,BatchNo=@BatchNo,PaySelf=@PaySelf,TestFlag=@TestFlag,LimitFlag=@LimitFlag,Extend1=@Extend1,Extend2=@Extend2,Extend3=@Extend3,Extend4=@Extend4,Extend5=@Extend5
cmd.Parameters.Add(new SqlParameter("@PatientId", factDrug.PatientId));
cmd.Parameters.Add(new SqlParameter("@DrugTypeId", factDrug.DrugTypeId));
cmd.Parameters.Add(new SqlParameter("@DrugId", factDrug.DrugId));
@@ -209,6 +218,17 @@ namespace AIMSDAL
cmd.Parameters.Add(new SqlParameter("@VelocityUnit", factDrug.VelocityUnit));
cmd.Parameters.Add(new SqlParameter("@BloodType", factDrug.BloodType));
cmd.Parameters.Add(new SqlParameter("@ParentId", factDrug.ParentId));
+ cmd.Parameters.Add(new SqlParameter("@DrugName", factDrug.DrugName));
+ cmd.Parameters.Add(new SqlParameter("@Access", factDrug.Access));
+ //cmd.Parameters.Add(new SqlParameter("@BatchNo", factDrug.BatchNo));
+ //cmd.Parameters.Add(new SqlParameter("@PaySelf", factDrug.PaySelf));
+ //cmd.Parameters.Add(new SqlParameter("@TestFlag", factDrug.TestFlag));
+ //cmd.Parameters.Add(new SqlParameter("@LimitFlag", factDrug.LimitFlag));
+ //cmd.Parameters.Add(new SqlParameter("@Extend1", factDrug.Extend1));
+ //cmd.Parameters.Add(new SqlParameter("@Extend2", factDrug.Extend2));
+ //cmd.Parameters.Add(new SqlParameter("@Extend3", factDrug.Extend3));
+ //cmd.Parameters.Add(new SqlParameter("@Extend4", factDrug.Extend4));
+ //cmd.Parameters.Add(new SqlParameter("@Extend5", factDrug.Extend5));
cmd.Parameters.Add(new SqlParameter("@Id", factDrug.Id));
return cmd.ExecuteNonQuery();
}
@@ -249,7 +269,7 @@ namespace AIMSDAL
internal static int ExcuteUpdateCommand(SqlCommand cmd, string oql, ParameterList parameters)
{
//解析过滤部份Sql语句
- string updateString = oql;// SyntaxAnalyzer.ParseSql(oql, new FactDrugMap());
+ string updateString = SyntaxAnalyzer.ParseSql(oql, new FactDrugMap());
cmd.CommandText = "update FactDrug set " + updateString;
cmd.Parameters.Clear();
//添加参数
@@ -327,7 +347,7 @@ namespace AIMSDAL
internal static List ExcuteSelectCommand(SqlCommand cmd, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
//解析过滤部份Sql语句
- string filterString = oql;// SyntaxAnalyzer.ParseSql(oql, new FactDrugMap());
+ string filterString = SyntaxAnalyzer.ParseSql(oql, new FactDrugMap());
if (filterString != string.Empty)
{
if (filterString.Trim().ToLower().IndexOf("order ") != 0)
@@ -467,7 +487,7 @@ namespace AIMSDAL
internal static FactDrug ExcuteSelectSingleCommand(SqlCommand cmd, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
//解析过滤部份Sql语句
- string filterString = oql;// SyntaxAnalyzer.ParseSql(oql, new FactDrugMap());
+ string filterString = SyntaxAnalyzer.ParseSql(oql, new FactDrugMap());
if (filterString != string.Empty)
{
filterString = " where " + filterString;
@@ -671,7 +691,7 @@ namespace AIMSDAL
}
if (dr["Density"] != System.DBNull.Value)
{
- entity.Density = Convert.ToDecimal(dr[""]);
+ entity.Density = Convert.ToDecimal(dr["Density"]);
}
if (dr["DensityUnit"] != System.DBNull.Value)
{
@@ -691,7 +711,51 @@ namespace AIMSDAL
}
if (dr["ParentId"] != System.DBNull.Value)
{
- entity.ParentId = Convert.ToInt32(dr["ParentId"].ToString());
+ entity.ParentId = Convert.ToInt32(dr["ParentId"]);
+ }
+ if (dr["DrugName"] != System.DBNull.Value)
+ {
+ entity.DrugName = dr["DrugName"].ToString();
+ }
+ if (dr["Access"] != System.DBNull.Value)
+ {
+ entity.Access = dr["Access"].ToString();
+ }
+ if (dr["BatchNo"] != System.DBNull.Value)
+ {
+ entity.BatchNo = dr["BatchNo"].ToString();
+ }
+ if (dr["PaySelf"] != System.DBNull.Value)
+ {
+ entity.PaySelf = dr["PaySelf"].ToString();
+ }
+ if (dr["TestFlag"] != System.DBNull.Value)
+ {
+ entity.TestFlag = dr["TestFlag"].ToString();
+ }
+ if (dr["LimitFlag"] != System.DBNull.Value)
+ {
+ entity.LimitFlag = dr["LimitFlag"].ToString();
+ }
+ if (dr["Extend1"] != System.DBNull.Value)
+ {
+ entity.Extend1 = dr["Extend1"].ToString();
+ }
+ if (dr["Extend2"] != System.DBNull.Value)
+ {
+ entity.Extend2 = dr["Extend2"].ToString();
+ }
+ if (dr["Extend3"] != System.DBNull.Value)
+ {
+ entity.Extend3 = dr["Extend3"].ToString();
+ }
+ if (dr["Extend4"] != System.DBNull.Value)
+ {
+ entity.Extend4 = dr["Extend4"].ToString();
+ }
+ if (dr["Extend5"] != System.DBNull.Value)
+ {
+ entity.Extend5 = dr["Extend5"].ToString();
}
return entity;
}
diff --git a/AIMSEntity/DAL/AutoGenerate/DOperationTemplate.cs b/AIMSEntity/DAL/AutoGenerate/DOperationTemplate.cs
index b156966..44d364b 100644
--- a/AIMSEntity/DAL/AutoGenerate/DOperationTemplate.cs
+++ b/AIMSEntity/DAL/AutoGenerate/DOperationTemplate.cs
@@ -20,7 +20,7 @@ namespace AIMSDAL
internal static int Insert(SqlCommand cmd, OperationTemplate operationTemplate)
{
cmd.Parameters.Clear();
- cmd.CommandText = "insert into OperationTemplate (TemplateName,TypeId,ItemKindName,InRoomTime,ItemId,BeginTime,EndTime,Value,DosageUnit,DrugChannel,GiveDrugType,OperatorNo,OperatorName,OperateDate,IsPublic,Spare1,Spare2,Spare3,Spare4,Spare5) values (@TemplateName,@TypeId,@ItemKindName,@InRoomTime,@ItemId,@BeginTime,@EndTime,@Value,@DosageUnit,@DrugChannel,@GiveDrugType,@OperatorNo,@OperatorName,@OperateDate,@IsPublic,@Spare1,@Spare2,@Spare3,@Spare4,@Spare5);select @@identity";
+ cmd.CommandText = "insert into OperationTemplate (TemplateName,TypeId,ItemKindName,InRoomTime,ItemId,BeginTime,EndTime,Value,DosageUnit,DrugChannel,GiveDrugType,OperatorNo,OperatorName,OperateDate,IsPublic,Spare1,Spare2,Spare3,Spare4,Spare5,Spare6,Spare7,Spare8,Spare9,Spare10) values (@TemplateName,@TypeId,@ItemKindName,@InRoomTime,@ItemId,@BeginTime,@EndTime,@Value,@DosageUnit,@DrugChannel,@GiveDrugType,@OperatorNo,@OperatorName,@OperateDate,@IsPublic,@Spare1,@Spare2,@Spare3,@Spare4,@Spare5,@Spare6,@Spare7,@Spare8,@Spare9,@Spare10);select @@identity";
//从实体中取出值放入Command的参数列表
cmd.Parameters.Add(new SqlParameter("@TemplateName",operationTemplate.TemplateName==null?(object)DBNull.Value:(object)operationTemplate.TemplateName));
cmd.Parameters.Add(new SqlParameter("@TypeId",operationTemplate.TypeId.HasValue?(object)operationTemplate.TypeId.Value:(object)DBNull.Value));
@@ -42,6 +42,11 @@ namespace AIMSDAL
cmd.Parameters.Add(new SqlParameter("@Spare3",operationTemplate.Spare3==null?(object)DBNull.Value:(object)operationTemplate.Spare3));
cmd.Parameters.Add(new SqlParameter("@Spare4",operationTemplate.Spare4==null?(object)DBNull.Value:(object)operationTemplate.Spare4));
cmd.Parameters.Add(new SqlParameter("@Spare5",operationTemplate.Spare5==null?(object)DBNull.Value:(object)operationTemplate.Spare5));
+ cmd.Parameters.Add(new SqlParameter("@Spare6",operationTemplate.Spare6==null?(object)DBNull.Value:(object)operationTemplate.Spare6));
+ cmd.Parameters.Add(new SqlParameter("@Spare7",operationTemplate.Spare7==null?(object)DBNull.Value:(object)operationTemplate.Spare7));
+ cmd.Parameters.Add(new SqlParameter("@Spare8",operationTemplate.Spare8==null?(object)DBNull.Value:(object)operationTemplate.Spare8));
+ cmd.Parameters.Add(new SqlParameter("@Spare9",operationTemplate.Spare9==null?(object)DBNull.Value:(object)operationTemplate.Spare9));
+ cmd.Parameters.Add(new SqlParameter("@Spare10",operationTemplate.Spare10==null?(object)DBNull.Value:(object)operationTemplate.Spare10));
return Convert.ToInt32(cmd.ExecuteScalar());
}
///
@@ -186,7 +191,7 @@ namespace AIMSDAL
/// 影响的记录行数
internal static int ExcuteUpdateCommand(SqlCommand cmd, OperationTemplate operationTemplate)
{
- cmd.CommandText = "update OperationTemplate set TemplateName=@TemplateName,TypeId=@TypeId,ItemKindName=@ItemKindName,InRoomTime=@InRoomTime,ItemId=@ItemId,BeginTime=@BeginTime,EndTime=@EndTime,Value=@Value,DosageUnit=@DosageUnit,DrugChannel=@DrugChannel,GiveDrugType=@GiveDrugType,OperatorNo=@OperatorNo,OperatorName=@OperatorName,OperateDate=@OperateDate,IsPublic=@IsPublic,Spare1=@Spare1,Spare2=@Spare2,Spare3=@Spare3,Spare4=@Spare4,Spare5=@Spare5 where Id=@Id";
+ cmd.CommandText = "update OperationTemplate set TemplateName=@TemplateName,TypeId=@TypeId,ItemKindName=@ItemKindName,InRoomTime=@InRoomTime,ItemId=@ItemId,BeginTime=@BeginTime,EndTime=@EndTime,Value=@Value,DosageUnit=@DosageUnit,DrugChannel=@DrugChannel,GiveDrugType=@GiveDrugType,OperatorNo=@OperatorNo,OperatorName=@OperatorName,OperateDate=@OperateDate,IsPublic=@IsPublic,Spare1=@Spare1,Spare2=@Spare2,Spare3=@Spare3,Spare4=@Spare4,Spare5=@Spare5,Spare6=@Spare6,Spare7=@Spare7,Spare8=@Spare8,Spare9=@Spare9,Spare10=@Spare10 where Id=@Id";
//从实体中取出值放入Command的参数列表
cmd.Parameters.Add(new SqlParameter("@TemplateName",operationTemplate.TemplateName==null?(object)DBNull.Value:(object)operationTemplate.TemplateName));
cmd.Parameters.Add(new SqlParameter("@TypeId",operationTemplate.TypeId.HasValue?(object)operationTemplate.TypeId.Value:(object)DBNull.Value));
@@ -208,6 +213,11 @@ namespace AIMSDAL
cmd.Parameters.Add(new SqlParameter("@Spare3",operationTemplate.Spare3==null?(object)DBNull.Value:(object)operationTemplate.Spare3));
cmd.Parameters.Add(new SqlParameter("@Spare4",operationTemplate.Spare4==null?(object)DBNull.Value:(object)operationTemplate.Spare4));
cmd.Parameters.Add(new SqlParameter("@Spare5",operationTemplate.Spare5==null?(object)DBNull.Value:(object)operationTemplate.Spare5));
+ cmd.Parameters.Add(new SqlParameter("@Spare6",operationTemplate.Spare6==null?(object)DBNull.Value:(object)operationTemplate.Spare6));
+ cmd.Parameters.Add(new SqlParameter("@Spare7",operationTemplate.Spare7==null?(object)DBNull.Value:(object)operationTemplate.Spare7));
+ cmd.Parameters.Add(new SqlParameter("@Spare8",operationTemplate.Spare8==null?(object)DBNull.Value:(object)operationTemplate.Spare8));
+ cmd.Parameters.Add(new SqlParameter("@Spare9",operationTemplate.Spare9==null?(object)DBNull.Value:(object)operationTemplate.Spare9));
+ cmd.Parameters.Add(new SqlParameter("@Spare10",operationTemplate.Spare10==null?(object)DBNull.Value:(object)operationTemplate.Spare10));
cmd.Parameters.Add(new SqlParameter("@Id", operationTemplate.Id));
return cmd.ExecuteNonQuery();
}
@@ -692,6 +702,26 @@ namespace AIMSDAL
{
entity.Spare5=dr["Spare5"].ToString();
}
+ if(dr["Spare6"]!=System.DBNull.Value)
+ {
+ entity.Spare6=dr["Spare6"].ToString();
+ }
+ if(dr["Spare7"]!=System.DBNull.Value)
+ {
+ entity.Spare7=dr["Spare7"].ToString();
+ }
+ if(dr["Spare8"]!=System.DBNull.Value)
+ {
+ entity.Spare8=dr["Spare8"].ToString();
+ }
+ if(dr["Spare9"]!=System.DBNull.Value)
+ {
+ entity.Spare9=dr["Spare9"].ToString();
+ }
+ if(dr["Spare10"]!=System.DBNull.Value)
+ {
+ entity.Spare10=dr["Spare10"].ToString();
+ }
return entity;
}
}
diff --git a/AIMSEntity/DAL/AutoGenerate/DPrintDocument.cs b/AIMSEntity/DAL/AutoGenerate/DPrintDocument.cs
deleted file mode 100644
index b3bd689..0000000
--- a/AIMSEntity/DAL/AutoGenerate/DPrintDocument.cs
+++ /dev/null
@@ -1,627 +0,0 @@
-using System;
-using System.Data;
-using System.Data.SqlClient;
-using System.Collections;
-using AIMSModel;
-using AIMSObjectQuery;
-using System.Collections.Generic;
-
-namespace AIMSDAL
-{
- internal partial class DPrintDocument
- {
- #region 插入实体操作部份
- ///
- /// 插入
- ///
- /// Command对象
- /// 实体类对象
- /// 标识列值或影响的记录行数
- internal static int Insert(SqlCommand cmd, PrintDocument printDocument)
- {
- cmd.Parameters.Clear();
- cmd.CommandText = "insert into PrintDocument (PatientId,TemplateId,XmlFileName,XmlFile,XmlStatic,IsValid,OperatorNo,OperatorDate) values (@PatientId,@TemplateId,@XmlFileName,@XmlFile,@XmlStatic,@IsValid,@OperatorNo,@OperatorDate);select @@identity";
- //从实体中取出值放入Command的参数列表
- cmd.Parameters.Add(new SqlParameter("@PatientId",printDocument.PatientId.HasValue?(object)printDocument.PatientId.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@TemplateId",printDocument.TemplateId.HasValue?(object)printDocument.TemplateId.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@XmlFileName",printDocument.XmlFileName==null?(object)DBNull.Value:(object)printDocument.XmlFileName));
- cmd.Parameters.Add(new SqlParameter("@XmlFile",printDocument.XmlFile==null?(object)DBNull.Value:(object)printDocument.XmlFile));
- cmd.Parameters.Add(new SqlParameter("@XmlStatic",printDocument.XmlStatic==null?(object)DBNull.Value:(object)printDocument.XmlStatic));
- cmd.Parameters.Add(new SqlParameter("@IsValid",printDocument.IsValid.HasValue?(object)printDocument.IsValid.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@OperatorNo",printDocument.OperatorNo==null?(object)DBNull.Value:(object)printDocument.OperatorNo));
- cmd.Parameters.Add(new SqlParameter("@OperatorDate",printDocument.OperatorDate.HasValue?(object)printDocument.OperatorDate.Value:(object)DBNull.Value));
- return Convert.ToInt32(cmd.ExecuteScalar());
- }
- ///
- /// 不使用事务的插入方法
- ///
- /// 实体类对象
- /// 标识列值或影响的记录行数
- internal static int Insert(PrintDocument printDocument)
- {
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
- {
- conn.Open();
- using (SqlCommand cmd = conn.CreateCommand())
- {
- return Insert(cmd, printDocument);
- }
- }
- }
-
- ///
- /// 使用事务的插入方法
- ///
- /// 实现共享Connection的对象
- /// 实体类对象
- /// 标识列值或影响的记录行数
- internal static int Insert(Connection connection,PrintDocument printDocument)
- {
- return Insert(connection.Command, printDocument);
- }
- #endregion
-
- #region 删除实体操作
-
- ///
- /// 删除
- ///
- /// Command对象
- /// 实体类对象
- /// 影响的记录行数
- internal static int ExcuteDeleteCommand(SqlCommand cmd, PrintDocument printDocument)
- {
- cmd.Parameters.Clear();
- cmd.CommandText = "delete from PrintDocument where Id=@Id";
- //从实体中取出值放入Command的参数列表
- cmd.Parameters.Add(new SqlParameter("@Id", printDocument.Id));
- return cmd.ExecuteNonQuery();
- }
- ///
- /// 不使用事务的删除方法
- ///
- /// 实体类对象
- /// 影响的记录行数
- internal static int Delete(PrintDocument printDocument)
- {
- using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
- {
- conn.Open();
- using (SqlCommand cmd = conn.CreateCommand())
- {
- return ExcuteDeleteCommand(cmd, printDocument);
- }
- }
- }
- ///
- /// 使用事务的删除方法
- ///
- /// 实现共享Connection的对象
- /// 实体类对象
- /// 影响的记录行数
- internal static int Delete(Connection connection,PrintDocument printDocument)
- {
- return ExcuteDeleteCommand(connection.Command, printDocument);
- }
-
- ///
- /// 执行删除命令
- ///
- /// Command对象
- /// 对象查询语句
- /// 参数列表
- /// 影响的记录行数
- internal static int ExcuteDeleteCommand(SqlCommand cmd, string oql, ParameterList parameters)
- {
- //解析过滤部份Sql语句
- string filterString = SyntaxAnalyzer.ParseSql(oql, new PrintDocumentMap());
- if (filterString != string.Empty)
- {
- filterString = " where " + filterString;
- }
- cmd.Parameters.Clear();
- cmd.CommandText = "delete from PrintDocument " + filterString;
- //添加参数
- if (parameters != null)
- {
- foreach (string key in parameters.Keys)
- {
- cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
- }
- }
- return cmd.ExecuteNonQuery();
- }
-
- ///
- /// 不使用事务的删除方法
- ///
- /// 对象查询语句
- /// 参数列表
- /// 影响的记录行数
- internal static int Delete(string oql, ParameterList parameters)
- {
- using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
- {
- conn.Open();
- using (SqlCommand cmd = conn.CreateCommand())
- {
- return ExcuteDeleteCommand(cmd, oql, parameters);
- }
- }
- }
-
- ///
- /// 使用事务的删除方法
- ///
- /// 实现共享Connection的对象
- /// 对象查询语句
- /// 参数列表
- /// 影响的记录行数
- internal static int Delete(Connection connection, string oql, ParameterList parameters)
- {
- return ExcuteDeleteCommand(connection.Command, oql, parameters);
- }
-
- #endregion
-
- #region 更新实体操作
-
- ///
- /// 更新
- ///
- /// Command对象
- /// 实体类对象
- /// 影响的记录行数
- internal static int ExcuteUpdateCommand(SqlCommand cmd, PrintDocument printDocument)
- {
- cmd.CommandText = "update PrintDocument set PatientId=@PatientId,TemplateId=@TemplateId,XmlFileName=@XmlFileName,XmlFile=@XmlFile,XmlStatic=@XmlStatic,IsValid=@IsValid,OperatorNo=@OperatorNo,OperatorDate=@OperatorDate where Id=@Id";
- //从实体中取出值放入Command的参数列表
- cmd.Parameters.Add(new SqlParameter("@PatientId",printDocument.PatientId.HasValue?(object)printDocument.PatientId.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@TemplateId",printDocument.TemplateId.HasValue?(object)printDocument.TemplateId.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@XmlFileName",printDocument.XmlFileName==null?(object)DBNull.Value:(object)printDocument.XmlFileName));
- cmd.Parameters.Add(new SqlParameter("@XmlFile",printDocument.XmlFile==null?(object)DBNull.Value:(object)printDocument.XmlFile));
- cmd.Parameters.Add(new SqlParameter("@XmlStatic",printDocument.XmlStatic==null?(object)DBNull.Value:(object)printDocument.XmlStatic));
- cmd.Parameters.Add(new SqlParameter("@IsValid",printDocument.IsValid.HasValue?(object)printDocument.IsValid.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@OperatorNo",printDocument.OperatorNo==null?(object)DBNull.Value:(object)printDocument.OperatorNo));
- cmd.Parameters.Add(new SqlParameter("@OperatorDate",printDocument.OperatorDate.HasValue?(object)printDocument.OperatorDate.Value:(object)DBNull.Value));
- cmd.Parameters.Add(new SqlParameter("@Id", printDocument.Id));
- return cmd.ExecuteNonQuery();
- }
-
- ///
- /// 不使用事务的更新方法
- ///
- /// 实体类对象
- /// 影响的记录行数
- internal static int Update(PrintDocument printDocument)
- {
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
- {
- conn.Open();
- using (SqlCommand cmd = conn.CreateCommand())
- {
- return ExcuteUpdateCommand(cmd, printDocument);
- }
- }
- }
- ///
- /// 使用事务的更新方法
- ///
- /// 实现共享Connection的对象
- /// 实体类对象
- /// 影响的记录行数
- internal static int Update(Connection connection,PrintDocument printDocument)
- {
- return ExcuteUpdateCommand(connection.Command, printDocument);
- }
- ///
- /// 执行更新命令
- ///
- /// Command对象
- /// 对象查询语句
- /// 参数列表
- /// 影响的记录行数
- internal static int ExcuteUpdateCommand(SqlCommand cmd, string oql, ParameterList parameters)
- {
- //解析过滤部份Sql语句
- string updateString = SyntaxAnalyzer.ParseSql(oql, new PrintDocumentMap());
- cmd.CommandText = "update PrintDocument set " + updateString;
- cmd.Parameters.Clear();
- //添加参数
- if (parameters != null)
- {
- foreach (string key in parameters.Keys)
- {
- cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
- }
- }
- return cmd.ExecuteNonQuery();
- }
-
- ///
- /// 不使用事务的更新方法
- ///
- /// 对象查询语句
- /// 参数列表
- /// 影响的记录行数
- internal static int Update(string oql, ParameterList parameters)
- {
- using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
- {
- conn.Open();
- using (SqlCommand cmd = conn.CreateCommand())
- {
- return ExcuteUpdateCommand(cmd, oql, parameters);
- }
- }
- }
-
- ///
- /// 使用事务的更新方法
- ///
- /// 实现共享Connection的对象
- /// 对象查询语句
- /// 参数列表
- /// 影响的记录行数
- internal static int Update(Connection connection, string oql, ParameterList parameters)
- {
- return ExcuteUpdateCommand(connection.Command, oql, parameters);
- }
- #endregion
-
- #region 查询实体集合
- ///
- /// 执行Command获取对象列表
- ///
- /// Command对象
- /// 递归类型
- /// 递归深度
- /// 实体类对象列表
- internal static List ExcuteSelectCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
- {
- List printDocumentList = new List();
- using (SqlDataReader dr = cmd.ExecuteReader())
- {
- while (dr.Read())
- {
- PrintDocument printDocument = DataReaderToEntity(dr);
- printDocumentList.Add(printDocument);
- }
- }
- return printDocumentList;
- }
- ///
- /// 执行查询命令
- ///
- /// Command对象
- /// 对象查询语句
- /// 参数列表
- /// 递归类型
- /// 递归深度
- /// 实体类对象集合
- internal static List ExcuteSelectCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
- {
- //解析过滤部份Sql语句
- string filterString = SyntaxAnalyzer.ParseSql(oql, new PrintDocumentMap());
- if (filterString != string.Empty)
- {
- if(filterString.Trim().ToLower().IndexOf("order ")!=0)
- filterString = " where " + filterString;
- }
- cmd.Parameters.Clear();
- cmd.CommandText = "select * from PrintDocument " + filterString;
- //添加参数
- if (parameters != null)
- {
- foreach (string key in parameters.Keys)
- {
- cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
- }
- }
- return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth);
- }
-
- ///
- /// 根据对象查询语句查询实体集合
- ///
- /// 实体类对象集合
- internal static List Select()
- {
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
- {
- conn.Open();
- using (SqlCommand cmd = conn.CreateCommand())
- {
- cmd.CommandText = "select * from PrintDocument";
- return ExcuteSelectCommand(cmd, RecursiveType.Parent, 1);
- }
- }
- }
- ///
- /// 根据对象查询语句查询实体集合
- ///
- /// 递归类型
- /// 递归深度
- /// 实体类对象集合
- internal static List Select(RecursiveType recursiveType, int recursiveDepth)
- {
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
- {
- conn.Open();
- using (SqlCommand cmd = conn.CreateCommand())
- {
- cmd.CommandText = "select * from PrintDocument";
- return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth);
- }
- }
- }
-
- ///
- /// 根据对象查询语句查询实体集合
- ///
- /// 对象查询语句
- /// 参数列表
- /// 实体类对象集合
- internal static List Select(string oql, ParameterList parameters)
- {
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
- {
- conn.Open();
- using (SqlCommand cmd = conn.CreateCommand())
- {
- return ExcuteSelectCommand(cmd, oql, parameters, RecursiveType.Parent, 1);
- }
- }
- }
-
- ///
- /// 根据对象查询语句查询实体集合
- ///
- /// 对象查询语句
- /// 参数列表
- /// 递归类型
- /// 递归深度
- /// 实体类对象集合
- internal static List Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth)
- {
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
- {
- conn.Open();
- using (SqlCommand cmd = conn.CreateCommand())
- {
- return ExcuteSelectCommand(cmd, oql, parameters, recursiveType, recursiveDepth);
- }
- }
- }
-
- ///
- /// 根据对象查询语句查询实体集合(启用事务)
- ///
- /// 连接对象
- /// 对象查询语句
- /// 参数列表
- /// 递归类型
- /// 递归深度
- /// 实体类对象集合
- internal static List Select(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
- {
- return ExcuteSelectCommand(connection.Command, oql, parameters,recursiveType, recursiveDepth);
- }
- #endregion
-
- #region 查询单个实体
-
- ///
- /// 递归查询单个实体
- ///
- /// Command对象
- /// 递归类型
- /// 递归深度
- /// 实体对象
- internal static PrintDocument ExcuteSelectSingleCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
- {
- PrintDocument printDocument=null;
- using (SqlDataReader dr = cmd.ExecuteReader())
- {
- if(dr.Read())
- printDocument = DataReaderToEntity(dr);
- }
- if(printDocument==null)
- return printDocument;
- return printDocument;
- }
- ///
- /// 更据对象查询语句递归查询单个实体
- ///
- /// Command对象
- /// 对象查询语句
- /// 参数列表
- /// 递归类型
- /// 递归深度
- /// 实体对象
- internal static PrintDocument ExcuteSelectSingleCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
- {
- //解析过滤部份Sql语句
- string filterString = SyntaxAnalyzer.ParseSql(oql, new PrintDocumentMap());
- if(filterString!=string.Empty)
- {
- filterString=" where "+filterString;
- }
- cmd.CommandText = "select * from PrintDocument " + filterString;
- cmd.Parameters.Clear();
- //添加参数
- if (parameters != null)
- {
- foreach (string key in parameters.Keys)
- {
- cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
- }
- }
- return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth);
- }
-
- ///
- /// 更据对象查询语句递归查询单个实体
- ///
- /// Command对象
- /// 对象查询语句
- /// 参数列表
- /// 递归类型
- /// 递归深度
- /// 实体对象
- internal static PrintDocument SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
- {
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
- {
- conn.Open();
- using (SqlCommand cmd = conn.CreateCommand())
- {
- return ExcuteSelectSingleCommand(cmd, oql, parameters, recursiveType, recursiveDepth);
- }
- }
- }
-
- ///
- /// 更据对象查询语句查询单个实体
- ///
- /// Command对象
- /// 对象查询语句
- /// 参数列表
- /// 实体对象
- internal static PrintDocument SelectSingle(string oql, ParameterList parameters)
- {
- return SelectSingle(oql,parameters,RecursiveType.Parent,1);
- }
-
- ///
- /// 更据对象查询语句并启用事务查询单个实体
- ///
- /// 连接对象
- /// 对象查询语句
- /// 参数列表
- /// 实体对象
- internal static PrintDocument SelectSingle(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
- {
- return ExcuteSelectSingleCommand(connection.Command, oql, parameters, recursiveType, recursiveDepth);
- }
-
- ///
- /// 更据主键值递归查询单个实体
- ///
- /// Command对象
- /// 主键值
- /// 递归类型
- /// 递归深度
- /// 实体对象
- internal static PrintDocument SelectSingle(SqlCommand cmd, int? id,RecursiveType recursiveType,int recursiveDepth)
- {
- cmd.Parameters.Clear();
- if(id.HasValue)
- {
- cmd.CommandText = "select * from PrintDocument where Id=@pk";
- cmd.Parameters.Add(new SqlParameter("@pk",id.Value));
- }
- else
- {
- cmd.CommandText = "select * from PrintDocument where Id is null";
- }
- return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth);
- }
-
- ///
- /// 按主键字段查询特定实体
- ///
- /// 主键值
- /// 实体类对象
- internal static PrintDocument SelectSingle(int? id)
- {
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
- {
- conn.Open();
- using (SqlCommand cmd = conn.CreateCommand())
- {
- return SelectSingle(cmd,id,RecursiveType.Parent,1);
- }
- }
- }
- ///
- /// 按主键字段查询特定实体
- ///
- /// 主键值
- /// 递归类型
- /// 递归深度
- /// 实体类对象
- internal static PrintDocument SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth)
- {
- using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
- {
- conn.Open();
- using (SqlCommand cmd = conn.CreateCommand())
- {
- return SelectSingle(cmd,id, recursiveType, recursiveDepth);
- }
- }
- }
-
- ///
- /// 使用事务并按主键字段查询特定实体
- ///
- /// 连接对象
- /// 主键值
- /// 实体类对象
- internal static PrintDocument SelectSingle(Connection connection,int? id, RecursiveType recursiveType, int recursiveDepth)
- {
- return SelectSingle(connection.Command, id, recursiveType, recursiveDepth);
- }
- #endregion
-
-
- ///
- /// 从DataReader中取出值生成实体对象
- ///
- /// 查询对象
- /// 过滤条件字符串
- private static PrintDocument DataReaderToEntity(SqlDataReader dr)
- {
- PrintDocument entity = new PrintDocument ();
- if(dr["Id"]!=System.DBNull.Value)
- {
- entity.Id=Convert.ToInt32(dr["Id"]);
- }
- if(dr["PatientId"]!=System.DBNull.Value)
- {
- entity.PatientId=Convert.ToInt32(dr["PatientId"]);
- }
- if(dr["TemplateId"]!=System.DBNull.Value)
- {
- entity.TemplateId=Convert.ToInt32(dr["TemplateId"]);
- }
- if(dr["XmlFileName"]!=System.DBNull.Value)
- {
- entity.XmlFileName=dr["XmlFileName"].ToString();
- }
- if(dr["XmlFile"]!=System.DBNull.Value)
- {
- entity.XmlFile=dr["XmlFile"].ToString();
- }
- if(dr["XmlStatic"]!=System.DBNull.Value)
- {
- entity.XmlStatic=dr["XmlStatic"].ToString();
- }
- if(dr["IsValid"]!=System.DBNull.Value)
- {
- entity.IsValid=Convert.ToBoolean(dr["IsValid"]);
- }
- if(dr["OperatorNo"]!=System.DBNull.Value)
- {
- entity.OperatorNo=dr["OperatorNo"].ToString();
- }
- if(dr["OperatorDate"]!=System.DBNull.Value)
- {
- entity.OperatorDate=Convert.ToDateTime(dr["OperatorDate"]);
- }
- return entity;
- }
- }
-}
-
diff --git a/AIMSEntity/DAL/Extension/DFactDrug.cs b/AIMSEntity/DAL/Extension/DFactDrug.cs
index c7f47b0..f847364 100644
--- a/AIMSEntity/DAL/Extension/DFactDrug.cs
+++ b/AIMSEntity/DAL/Extension/DFactDrug.cs
@@ -148,7 +148,7 @@ namespace AIMSDAL
public static DataTable GetDataTable(int PatientId, int DrugTypeId)
{
StringBuilder strSql = new StringBuilder();
- strSql.Append("SELECT fd.Id, d.Id as DrugId, d.Name AS DrugName,fd.Dosage,fd.DosageUnit,fd.DrugChannel, fd.GiveDrugType,fd.DrugBeginTime, Density, DensityUnit, Velocity, VelocityUnit,fd.DrugEndTime,fd.Remark,fd.ParentId FROM FactDrug fd ");
+ strSql.Append("SELECT fd.Id, d.Id as DrugId, d.Name AS DrugName,fd.Dosage,fd.DosageUnit,fd.DrugChannel, fd.GiveDrugType,fd.DrugBeginTime, Density, DensityUnit, Velocity, VelocityUnit,fd.DrugEndTime,fd.Remark,fd.ParentId,fd.DrugName,fd.Access FROM FactDrug fd ");
strSql.Append("LEFT JOIN Drugs d ON d.Id = fd.DrugId WHERE fd.PatientId=" + PatientId + " AND fd.DrugTypeId=" + DrugTypeId + " order by fd.DrugBeginTime");
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
diff --git a/AIMSEntity/DAL/Extension/DOperationApply.cs b/AIMSEntity/DAL/Extension/DOperationApply.cs
index 37ff777..8610974 100644
--- a/AIMSEntity/DAL/Extension/DOperationApply.cs
+++ b/AIMSEntity/DAL/Extension/DOperationApply.cs
@@ -67,17 +67,10 @@ namespace AIMSDAL
HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
}
- public static void UpdateApplyRoom(int ApplyId, int room)
+ public static int UpdateApplyRoom(int ApplyId, int room, DateTime PlanOperationTime,int PlanOrder )
{
- string strSql = "UPDATE OperationApply SET OperationRoomId = " + room + " WHERE Id =" + ApplyId + "";
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
-
- public static void UpdateApplyRoom(int ApplyId, int room, DateTime PlanOperationTime)
- {
- int PlanOrder = BOperationApply.GetMaxPlanOrder(PlanOperationTime, room) + 1;
string strSql = "UPDATE OperationApply SET OperationRoomId = " + room + ",PlanOrder=" + PlanOrder + " WHERE Id =" + ApplyId + "";
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
+ return HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
}
public static void UpdatePlanOperationTime(int ApplyId, string PlanOperationTime, int OperationRoomId, int State)
{
@@ -109,18 +102,6 @@ namespace AIMSDAL
HelperDB.DbHelperSQL.ExecNonQuery(strSql);
}
- public static 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 static 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 static void UpdateASA(int ApplyId, string ASA, string HeartFunctionLevel)
{
//string strSql = "UPDATE OperationApply SET ASA ='" + ASA + "',HeartFunctionLevel='" + HeartFunctionLevel + "' WHERE id='" + ApplyId + "'";
@@ -135,8 +116,8 @@ namespace AIMSDAL
public static 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 + " ";
+ string strSql = "SELECT ISNULL((Max(PlanOrder)),0) AS PlanOrder FROM V_OperationFront of1 WHERE 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 + " ";// of1.[State] in('已排程','预排程','已访视') AND
DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
return int.Parse(dt.Rows[0]["PlanOrder"].ToString());
@@ -247,7 +228,7 @@ namespace AIMSDAL
public static DataTable GetOperationFrontDataTableByPatientId(int PatientId)
{
string strSql = "SELECT of1.ApplyId, of1.MdrecNo, of1.ArchivesNo, of1.PatientName,of1.DepartmentId,of1.PatientDepName,of1.ApplyDepName, of1.PatientKind," +
- "of1.Sex, of1.BirthDay, of1.Height, of1.[Weight], of1.BloodType," +
+ "of1.Sex, of1.Age,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," +
@@ -266,8 +247,8 @@ namespace AIMSDAL
public static 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," +
+ string strSql = "SELECT of1.ApplyId, of1.PatientId,of1.MdrecNo, of1.ArchivesNo, of1.PatientName, of1.PatientName+'('+of1.Sex+of1.Age+')' PatInfo,of1.ApplyDepName, of1.PatientKind," +
+ "of1.Sex, of1.Age, 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," +
@@ -287,7 +268,7 @@ namespace AIMSDAL
public static 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.Sex, of1.Age,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," +
@@ -303,62 +284,6 @@ namespace AIMSDAL
"FROM V_OperationFront of1 WHERE of1.PlanOperationTime>='" + BegInData + "' and of1.PlanOperationTime<'" + EndData + "' order by OperationRoomId,PlanOrder asc";
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
-
- public static 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,of1.PatientType " +
- "FROM V_OperationFront of1 WHERE of1.ApplyId in (" + Temp + ")";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
- }
-
- public static 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,of1.PatientType " +
- "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 static 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 ,of1.PatientType " +
- "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 static void UpdateOperationRoom(int ApplyId, int OperationRoomId)
- {
- string strSql = "UPDATE OperationApply SET OperationRoomId =" + OperationRoomId + " WHERE Id=" + ApplyId + "";
- HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
- }
public static DataTable SelectPlanedOpeByRoom(string whereSql)
{
try
@@ -371,6 +296,18 @@ namespace AIMSDAL
return null;
}
}
+ public static DataTable SelectPlanedOpe(string whereSql)
+ {
+ try
+ {
+ string sql = @" SELECT * FROM OperationApply where " + whereSql + " ";
+ return DBHelper.GetDataTable(sql);
+ }
+ catch (Exception)
+ {
+ return null;
+ }
+ }
public static int SaveDoctorByRommTime(string DoctorNuresName, DateTime SearchTime, int CurrentRoom)
{
try
@@ -383,5 +320,10 @@ namespace AIMSDAL
return 0;
}
}
+ public static void UpdateApplyOrder(int ApplyId, int Order)
+ {
+ string strSql = "UPDATE OperationApply SET PlanOrder=" + Order + " WHERE Id =" + ApplyId + "";
+ HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
+ }
}
}
diff --git a/AIMSEntity/DAL/Extension/DOperationRecord.cs b/AIMSEntity/DAL/Extension/DOperationRecord.cs
index 72c8c62..117a734 100644
--- a/AIMSEntity/DAL/Extension/DOperationRecord.cs
+++ b/AIMSEntity/DAL/Extension/DOperationRecord.cs
@@ -88,7 +88,7 @@ namespace AIMSDAL
public static 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,d.AnesType,d.Comment FROM FactDrug fd " +
+ 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,d.AnesType,d.Comment,fd.Access FROM FactDrug fd " +
"LEFT JOIN Drugs d ON d.Id = fd.DrugId " +
"WHERE fd.PatientId=" + PatientId + " AND fd.DrugTypeId=" + DrugTypeId + " ";
diff --git a/AIMSEntity/DAL/Extension/DOperationTemplate.cs b/AIMSEntity/DAL/Extension/DOperationTemplate.cs
index 5039010..a23abc2 100644
--- a/AIMSEntity/DAL/Extension/DOperationTemplate.cs
+++ b/AIMSEntity/DAL/Extension/DOperationTemplate.cs
@@ -30,7 +30,7 @@ namespace AIMSDAL
{
StringBuilder strSql = new StringBuilder();
strSql.Append("insert into [OperationTemplate](");
- strSql.Append("TemplateName,TypeId,ItemKindName,InRoomTime,ItemId,BeginTime,EndTime,Value,DosageUnit,DrugChannel,GiveDrugType,OperatorNo,OperatorName,OperateDate, IsPublic, Spare1, Spare2, Spare3, Spare4, Spare5");
+ strSql.Append("TemplateName,TypeId,ItemKindName,InRoomTime,ItemId,BeginTime,EndTime,Value,DosageUnit,DrugChannel,GiveDrugType,OperatorNo,OperatorName,OperateDate, IsPublic, Spare1, Spare2, Spare3, Spare4, Spare5, Spare6, Spare7, Spare8, Spare9, Spare10");
strSql.Append(")");
strSql.Append(" values (");
strSql.Append("'" + OperationTemplateObj.TemplateName + "',");
@@ -52,7 +52,12 @@ namespace AIMSDAL
strSql.Append("'" + OperationTemplateObj.Spare2 + "',");
strSql.Append("'" + OperationTemplateObj.Spare3 + "',");
strSql.Append("'" + OperationTemplateObj.Spare4 + "',");
- strSql.Append("'" + OperationTemplateObj.Spare5 + "'");
+ strSql.Append("'" + OperationTemplateObj.Spare5 + "',");
+ strSql.Append("'" + OperationTemplateObj.Spare6 + "',");
+ strSql.Append("'" + OperationTemplateObj.Spare7 + "',");
+ strSql.Append("'" + OperationTemplateObj.Spare8 + "',");
+ strSql.Append("'" + OperationTemplateObj.Spare9 + "',");
+ strSql.Append("'" + OperationTemplateObj.Spare10 + "'");
strSql.Append(")");
HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
}
@@ -69,7 +74,7 @@ namespace AIMSDAL
OperationTemplate OperationTemplateObj = new OperationTemplate();
StringBuilder strSql = new StringBuilder();
strSql.Append("select ");
- strSql.Append("Id,TemplateName,TypeId,ItemKindName,InRoomTime,ItemId,BeginTime,EndTime,Value,DosageUnit,DrugChannel,GiveDrugType,OperatorNo,OperatorName,OperateDate, IsPublic, Spare1, Spare2, Spare3, Spare4, Spare5 ");
+ strSql.Append("Id,TemplateName,TypeId,ItemKindName,InRoomTime,ItemId,BeginTime,EndTime,Value,DosageUnit,DrugChannel,GiveDrugType,OperatorNo,OperatorName,OperateDate, IsPublic, Spare1, Spare2, Spare3, Spare4, Spare5 , Spare6, Spare7, Spare8, Spare9 ,Spare10");
strSql.Append(" from OperationTemplate ");
strSql.Append(" where Id=" + Id + "");
DataSet ds = HelperDB.DbHelperSQL.GetDataSet(strSql.ToString());
@@ -124,6 +129,11 @@ namespace AIMSDAL
OperationTemplateObj.Spare3 = ds.Tables[0].Rows[0]["Spare3"].ToString();
OperationTemplateObj.Spare4 = ds.Tables[0].Rows[0]["Spare4"].ToString();
OperationTemplateObj.Spare5 = ds.Tables[0].Rows[0]["Spare5"].ToString();
+ OperationTemplateObj.Spare6 = ds.Tables[0].Rows[0]["Spare6"].ToString();
+ OperationTemplateObj.Spare7 = ds.Tables[0].Rows[0]["Spare7"].ToString();
+ OperationTemplateObj.Spare8 = ds.Tables[0].Rows[0]["Spare8"].ToString();
+ OperationTemplateObj.Spare9 = ds.Tables[0].Rows[0]["Spare9"].ToString();
+ OperationTemplateObj.Spare10 = ds.Tables[0].Rows[0]["Spare10"].ToString();
}
return OperationTemplateObj;
@@ -131,7 +141,7 @@ namespace AIMSDAL
public static DataTable GetDataTable(int TypeId, string OpNo)
{
- string strSql = "SELECT DISTINCT TemplateName FROM OperationTemplate ot WHERE TypeId=" + TypeId + " and (isPublic=1 or [OperatorNo]='" + OpNo + "')";
+ string strSql = "SELECT DISTINCT TemplateName,OperatorNo FROM OperationTemplate ot WHERE TypeId=" + TypeId + " and (isPublic=1 or [OperatorNo]='" + OpNo + "')";
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
@@ -171,7 +181,7 @@ namespace AIMSDAL
}
public static DataTable GetDataTable(string TemplateName, int TypeId)
{
- string strSql = "SELECT TemplateName, ItemKindName,InRoomTime, ItemId, BeginTime, EndTime, [Value], DosageUnit,DrugChannel,GiveDrugType,[OperatorNo],[OperatorName] ,[OperateDate] ,[Ispublic],[Spare1],[Spare2],[Spare3] ,[Spare4],[Spare5] FROM OperationTemplate ot WHERE TypeId=" + TypeId + " and TemplateName='" + TemplateName + "'";
+ string strSql = "SELECT TemplateName, ItemKindName,InRoomTime, ItemId, BeginTime, EndTime, [Value], DosageUnit,DrugChannel,GiveDrugType,[OperatorNo],[OperatorName] ,[OperateDate] ,[Ispublic],[Spare1],[Spare2],[Spare3] ,[Spare4],[Spare5],[Spare6],[Spare7],[Spare8] ,[Spare9],[Spare10] FROM OperationTemplate ot WHERE TypeId=" + TypeId + " and TemplateName='" + TemplateName + "'";
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
}
diff --git a/AIMSEntity/DAL/Extension/DPrintDocument.cs b/AIMSEntity/DAL/Extension/DPrintDocument.cs
deleted file mode 100644
index 601f75a..0000000
--- a/AIMSEntity/DAL/Extension/DPrintDocument.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System;
-using System.Data;
-using System.Data.SqlClient;
-using System.Collections;
-using System.Collections.Generic;
-using AIMSModel;
-using AIMSObjectQuery;
-namespace AIMSDAL
-{
- internal partial class DPrintDocument
- {
- }
-}
diff --git a/AIMSEntity/Extensions/BOperationReview.cs b/AIMSEntity/Extensions/BOperationReview.cs
index 0c0f387..6db6e4b 100644
--- a/AIMSEntity/Extensions/BOperationReview.cs
+++ b/AIMSEntity/Extensions/BOperationReview.cs
@@ -6,6 +6,7 @@ using System.Data;
using System.Xml;
using AIMSModel;
using HelperDB;
+using DrawGraph;
namespace AIMSBLL
{
@@ -43,17 +44,28 @@ namespace AIMSBLL
return HelperDB.DbHelperSQL.GetDataTable(strSql);
}
-
+ public static void GetASALevel(int PatientId, OperationRecord _record)
+ {
+ string ASALevel = GetDocumentXmlStatic("麻醉术前访视记录单", PatientId, "ASA分级");
+ if (ASALevel != "")
+ {
+ BasicDictionary dict = BBasicDictionary.SelectSingle(" ParentId=30 and Name='" + ASALevel + "'", null);
+ if (dict != null)
+ {
+ _record.ASALevel = dict.Id.Value;
+ BOperationRecord.Update(" ASALevel=@ASALevel where Id=@Id", new ParameterList("@ASALevel", _record.ASALevel, "@Id", _record.Id.Value));
+ }
+ }
+ }
///
/// 根据模板名称查询文档
///
/// 模板名称
/// 患者Id
///
- public static PrintDocument GetDocumentbyName(string tempName, int patientId)
+ public static string GetDocumentbyName2(string tempName, int patientId)
{
- PrintDocument model = new PrintDocument();
- string result = string.Empty;
+ string XmlStatic = "";
try
{
StringBuilder sb = new StringBuilder();
@@ -75,28 +87,22 @@ namespace AIMSBLL
DataTable dt = DbHelperSQL.GetDataTable(sb.ToString());
if (dt.Rows.Count > 0)
{
- model.Id = int.Parse(dt.Rows[0]["Id"].ToString());
- model.PatientId = int.Parse(dt.Rows[0]["PatientId"].ToString());
- model.TemplateId = int.Parse(dt.Rows[0]["TemplateId"].ToString());
- model.XmlFileName = dt.Rows[0]["XmlFileName"].ToString();
- model.XmlFile = dt.Rows[0]["XmlFile"].ToString();
- model.XmlStatic = dt.Rows[0]["XmlStatic"].ToString();
- model.OperatorNo = dt.Rows[0]["OperatorNo"].ToString();
+ XmlStatic = dt.Rows[0]["XmlStatic"].ToString();
}
}
catch (Exception ex)
{
throw ex;
}
- return model;
+ return XmlStatic;
}
public static XmlDocument GetPrintDocumentXml(string tempName, int patientId)
{
- PrintDocument model = GetDocumentbyName(tempName, patientId);
+ string XmlStatic = GetDocumentbyName2(tempName, patientId);
XmlDocument doc = new XmlDocument();
- if (model.XmlStatic != null && model.XmlStatic.Length > 0)
+ if (XmlStatic != null && XmlStatic.Length > 0)
{
- doc.LoadXml(model.XmlStatic);
+ doc.LoadXml(XmlStatic);
}
return doc;
}
diff --git a/AIMSEntity/Extensions/SelectPatient.cs b/AIMSEntity/Extensions/SelectPatient.cs
index 5336dd1..aac0e14 100644
--- a/AIMSEntity/Extensions/SelectPatient.cs
+++ b/AIMSEntity/Extensions/SelectPatient.cs
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
-using System.Data;
+using System.Data;
using AIMSModel;
using DrawGraph;
using AIMSDAL;
@@ -10,7 +10,7 @@ using AIMSDAL;
namespace AIMSBLL
{
public class SelectPatient
- {
+ {
public static DataTable GetSelectPatientDataTable(DateTime BeginDate, string Room)
{
string strSql = "SELECT of1.ApplyId Id, of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, " +
@@ -20,7 +20,7 @@ namespace AIMSBLL
if (Room != "" && Room != "-1") strSql += " and of1.OperationRoomId='" + Room + "'";
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
-
+
public static 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 ,of1.Contagion,of1.OrderOperationTime 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";
@@ -30,7 +30,7 @@ namespace AIMSBLL
}
public static DataTable GetTodayDoOpePatientDataTable(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 PlanOperationTime,of2.Nurse InstrumentNurse,of2.Nurse2 TourNurse,of2.DiagnoseInfoName ApplyDiagnoseInfoName ,of2.OperationRoom ,of1.Contagion 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";
+ 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 ,of1.Contagion 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";
strSql += " order by [StateId] asc";
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
@@ -46,15 +46,31 @@ namespace AIMSBLL
}
public static 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 + "%' or InstrumentNurse like '%" + person + "%' or TourNurse like '%" + person + "%')";
+ if (isEnOpe == false)
+ {
+ 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,of1.OperationRoom,of1.PlanOrder " +
+ "FROM V_OperationFront of1 WHERE of1.OrderOperationTime>='" + BeginDate + "' AND of1.OrderOperationTime<'" + EndDate + "' ";
+ if (isLoginPerson == true)
+ {
+ strSql += " and (AnesthesiaDoctor like '%" + person + "%' or InstrumentNurse like '%" + person + "%' or TourNurse like '%" + person + "%')";
+ }
+ return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
+ }
+ else
+ {
+ 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,of1.OperationRoom,of1.PlanOrder,InRoomTime " +
+ "FROM [V_OperationRecordALL] of1 WHERE of1.OrderOperationTime>='" + BeginDate + "' AND of1.OrderOperationTime<'" + EndDate + "' and SZstate =2 ";
+ if (isLoginPerson == true)
+ {
+ strSql += " and (AnesthesiaDoctor like '%" + person + "%' or InstrumentNurse like '%" + person + "%' or TourNurse like '%" + person + "%')";
+ }
+ strSql += " order by convert(nvarchar(10),InRoomTime,120) desc,OperationRoomId asc,PlanOrder asc";
+ return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
- if (isEnOpe == true) strSql += " and state ='手术结束'";
- return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
public static DataTable GetSelectPatientChart()
@@ -67,7 +83,7 @@ namespace AIMSBLL
string strSql = "select * from (select CONVERT(nvarchar(7), InRoomTime,120) dat,COUNT(*) con from V_OperationDoing group by CONVERT(nvarchar(7), InRoomTime,120) ) a order by dat Asc ";
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
-
+
public static 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 ";
diff --git a/AIMSEntity/Model/AutoGenerate/OperationTemplate.cs b/AIMSEntity/Model/AutoGenerate/OperationTemplate.cs
index 01a16ae..83ddd57 100644
--- a/AIMSEntity/Model/AutoGenerate/OperationTemplate.cs
+++ b/AIMSEntity/Model/AutoGenerate/OperationTemplate.cs
@@ -5,199 +5,244 @@ using AIMSDAL;
namespace AIMSModel
{
- [Serializable]
+ [Serializable]
public partial class OperationTemplate
- {
- private int? id;
- private string templateName;
- private int? typeId;
- private string itemKindName;
- private DateTime? inRoomTime;
- private int? itemId;
- private DateTime? beginTime;
- private DateTime? endTime;
- private Decimal? value;
- private string dosageUnit;
- private string drugChannel;
- private string giveDrugType;
- private string operatorNo;
- private string operatorName;
- private DateTime? operateDate;
- private int? isPublic;
- private string spare1;
- private string spare2;
- private string spare3;
- private string spare4;
- private string spare5;
-
-
- ///
+ {
+ private int? id;
+ private string templateName;
+ private int? typeId;
+ private string itemKindName;
+ private DateTime? inRoomTime;
+ private int? itemId;
+ private DateTime? beginTime;
+ private DateTime? endTime;
+ private Decimal? _value;
+ private string dosageUnit;
+ private string drugChannel;
+ private string giveDrugType;
+ private string operatorNo;
+ private string operatorName;
+ private DateTime? operateDate;
+ private int? isPublic;
+ private string spare1;
+ private string spare2;
+ private string spare3;
+ private string spare4;
+ private string spare5;
+ private string spare6;
+ private string spare7;
+ private string spare8;
+ private string spare9;
+ private string spare10;
+
+
+ ///
///
///
- public int? Id
- {
- get{ return id; }
- set{ id=value; }
- }
- ///
+ public int? Id
+ {
+ get { return id; }
+ set { id = value; }
+ }
+ ///
///
///
- public string TemplateName
- {
- get{ return templateName; }
- set{ templateName=value; }
- }
- ///
+ public string TemplateName
+ {
+ get { return templateName; }
+ set { templateName = value; }
+ }
+ ///
///
///
- public int? TypeId
- {
- get{ return typeId; }
- set{ typeId=value; }
- }
- ///
+ public int? TypeId
+ {
+ get { return typeId; }
+ set { typeId = value; }
+ }
+ ///
///
///
- public string ItemKindName
- {
- get{ return itemKindName; }
- set{ itemKindName=value; }
- }
- ///
+ public string ItemKindName
+ {
+ get { return itemKindName; }
+ set { itemKindName = value; }
+ }
+ ///
///
///
- public DateTime? InRoomTime
- {
- get{ return inRoomTime; }
- set{ inRoomTime=value; }
- }
- ///
+ public DateTime? InRoomTime
+ {
+ get { return inRoomTime; }
+ set { inRoomTime = value; }
+ }
+ ///
///
///
- public int? ItemId
- {
- get{ return itemId; }
- set{ itemId=value; }
- }
- ///
+ public int? ItemId
+ {
+ get { return itemId; }
+ set { itemId = value; }
+ }
+ ///
///
///
- public DateTime? BeginTime
- {
- get{ return beginTime; }
- set{ beginTime=value; }
- }
- ///
+ public DateTime? BeginTime
+ {
+ get { return beginTime; }
+ set { beginTime = value; }
+ }
+ ///
///
///
- public DateTime? EndTime
- {
- get{ return endTime; }
- set{ endTime=value; }
- }
- ///
+ public DateTime? EndTime
+ {
+ get { return endTime; }
+ set { endTime = value; }
+ }
+ ///
///
///
- public Decimal? Value
- {
- get{ return value; }
- set{ this.value=value; }
- }
- ///
+ public Decimal? Value
+ {
+ get { return _value; }
+ set { _value = value; }
+ }
+ ///
///
///
- public string DosageUnit
- {
- get{ return dosageUnit; }
- set{ dosageUnit=value; }
- }
- ///
+ public string DosageUnit
+ {
+ get { return dosageUnit; }
+ set { dosageUnit = value; }
+ }
+ ///
///
///
- public string DrugChannel
- {
- get{ return drugChannel; }
- set{ drugChannel=value; }
- }
- ///
+ public string DrugChannel
+ {
+ get { return drugChannel; }
+ set { drugChannel = value; }
+ }
+ ///
///
///
- public string GiveDrugType
- {
- get{ return giveDrugType; }
- set{ giveDrugType=value; }
- }
- ///
+ public string GiveDrugType
+ {
+ get { return giveDrugType; }
+ set { giveDrugType = value; }
+ }
+ ///
///
///
- public string OperatorNo
- {
- get{ return operatorNo; }
- set{ operatorNo=value; }
- }
- ///
+ public string OperatorNo
+ {
+ get { return operatorNo; }
+ set { operatorNo = value; }
+ }
+ ///
///
///
- public string OperatorName
- {
- get{ return operatorName; }
- set{ operatorName=value; }
- }
- ///
+ public string OperatorName
+ {
+ get { return operatorName; }
+ set { operatorName = value; }
+ }
+ ///
///
///
- public DateTime? OperateDate
- {
- get{ return operateDate; }
- set{ operateDate=value; }
- }
- ///
+ public DateTime? OperateDate
+ {
+ get { return operateDate; }
+ set { operateDate = value; }
+ }
+ ///
///
///
- public int? IsPublic
- {
- get{ return isPublic; }
- set{ isPublic=value; }
- }
- ///
+ public int? IsPublic
+ {
+ get { return isPublic; }
+ set { isPublic = value; }
+ }
+ ///
///
///
- public string Spare1
- {
- get{ return spare1; }
- set{ spare1=value; }
- }
- ///
+ public string Spare1
+ {
+ get { return spare1; }
+ set { spare1 = value; }
+ }
+ ///
///
///
- public string Spare2
- {
- get{ return spare2; }
- set{ spare2=value; }
- }
- ///
+ public string Spare2
+ {
+ get { return spare2; }
+ set { spare2 = value; }
+ }
+ ///
///
///
- public string Spare3
- {
- get{ return spare3; }
- set{ spare3=value; }
- }
- ///
+ public string Spare3
+ {
+ get { return spare3; }
+ set { spare3 = value; }
+ }
+ ///
///
///
- public string Spare4
- {
- get{ return spare4; }
- set{ spare4=value; }
- }
- ///
+ public string Spare4
+ {
+ get { return spare4; }
+ set { spare4 = value; }
+ }
+ ///
///
///
- public string Spare5
- {
- get{ return spare5; }
- set{ spare5=value; }
- }
- }
+ public string Spare5
+ {
+ get { return spare5; }
+ set { spare5 = value; }
+ }
+ ///
+ ///
+ ///
+ public string Spare6
+ {
+ get { return spare6; }
+ set { spare6 = value; }
+ }
+ ///
+ ///
+ ///
+ public string Spare7
+ {
+ get { return spare7; }
+ set { spare7 = value; }
+ }
+ ///
+ ///
+ ///
+ public string Spare8
+ {
+ get { return spare8; }
+ set { spare8 = value; }
+ }
+ ///
+ ///
+ ///
+ public string Spare9
+ {
+ get { return spare9; }
+ set { spare9 = value; }
+ }
+ ///
+ ///
+ ///
+ public string Spare10
+ {
+ get { return spare10; }
+ set { spare10 = value; }
+ }
+ }
}
diff --git a/AIMSEntity/Model/AutoGenerate/PrintDocument.cs b/AIMSEntity/Model/AutoGenerate/PrintDocument.cs
deleted file mode 100644
index 43469f2..0000000
--- a/AIMSEntity/Model/AutoGenerate/PrintDocument.cs
+++ /dev/null
@@ -1,95 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using AIMSDAL;
-
-namespace AIMSModel
-{
- [Serializable]
- public partial class PrintDocument
- {
- private int? id;
- private int? patientId;
- private int? templateId;
- private string xmlFileName;
- private string xmlFile;
- private string xmlStatic;
- private bool? isValid;
- private string operatorNo;
- private DateTime? operatorDate;
-
-
- ///
- /// Id
- ///
- public int? Id
- {
- get{ return id; }
- set{ id=value; }
- }
- ///
- /// 患者ID
- ///
- public int? PatientId
- {
- get{ return patientId; }
- set{ patientId=value; }
- }
- ///
- /// 模板Id
- ///
- public int? TemplateId
- {
- get{ return templateId; }
- set{ templateId=value; }
- }
- ///
- /// 文档名称
- ///
- public string XmlFileName
- {
- get{ return xmlFileName; }
- set{ xmlFileName=value; }
- }
- ///
- /// xml文档
- ///
- public string XmlFile
- {
- get{ return xmlFile; }
- set{ xmlFile=value; }
- }
- ///
- /// 需要统计域
- ///
- public string XmlStatic
- {
- get{ return xmlStatic; }
- set{ xmlStatic=value; }
- }
- ///
- /// 有效性
- ///
- public bool? IsValid
- {
- get{ return isValid; }
- set{ isValid=value; }
- }
- ///
- /// 操作人工号
- ///
- public string OperatorNo
- {
- get{ return operatorNo; }
- set{ operatorNo=value; }
- }
- ///
- /// 操作日期
- ///
- public DateTime? OperatorDate
- {
- get{ return operatorDate; }
- set{ operatorDate=value; }
- }
- }
-}
diff --git a/AIMSEntity/Model/Extension/PrintDocument.cs b/AIMSEntity/Model/Extension/PrintDocument.cs
deleted file mode 100644
index e0179e4..0000000
--- a/AIMSEntity/Model/Extension/PrintDocument.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using AIMSDAL;
-namespace AIMSModel
-{
- public partial class PrintDocument
- {
- }
-}
diff --git a/AIMSEntity/ObjectQuery/EntityMap.cs b/AIMSEntity/ObjectQuery/EntityMap.cs
index 47de163..68a9f6b 100644
--- a/AIMSEntity/ObjectQuery/EntityMap.cs
+++ b/AIMSEntity/ObjectQuery/EntityMap.cs
@@ -60,8 +60,7 @@ namespace AIMSObjectQuery
entitiesMap.Add("person",new EntityInfo("Person",new PersonMap()));
entitiesMap.Add("personduty",new EntityInfo("PersonDuty",new PersonDutyMap()));
entitiesMap.Add("pharmacology",new EntityInfo("PharmaCology",new PharmaCologyMap()));
- entitiesMap.Add("printdoc",new EntityInfo("PrintDoc",new PrintDocMap()));
- entitiesMap.Add("printdocument",new EntityInfo("PrintDocument",new PrintDocumentMap()));
+ entitiesMap.Add("printdoc",new EntityInfo("PrintDoc",new PrintDocMap()));
entitiesMap.Add("programexception",new EntityInfo("ProgramException",new ProgramExceptionMap()));
entitiesMap.Add("provider",new EntityInfo("Provider",new ProviderMap()));
entitiesMap.Add("role",new EntityInfo("Role",new RoleMap()));
diff --git a/AIMSEntity/ObjectQuery/FactDrugMap.cs b/AIMSEntity/ObjectQuery/FactDrugMap.cs
index 8d0ab16..7d2cb5f 100644
--- a/AIMSEntity/ObjectQuery/FactDrugMap.cs
+++ b/AIMSEntity/ObjectQuery/FactDrugMap.cs
@@ -24,6 +24,23 @@ namespace AIMSObjectQuery
dictionary.Add("operatorno", "OperatorNo");
dictionary.Add("operatorname", "OperatorName");
dictionary.Add("operatedate", "OperateDate");
+ dictionary.Add("density", "Density");
+ dictionary.Add("densityunit", "DensityUnit");
+ dictionary.Add("velocity", "Velocity");
+ dictionary.Add("velocityunit", "VelocityUnit");
+ dictionary.Add("bloodtype", "BloodType");
+ dictionary.Add("parentid", "ParentId");
+ dictionary.Add("drugname", "DrugName");
+ dictionary.Add("access", "Access");
+ dictionary.Add("batchno", "BatchNo");
+ dictionary.Add("payself", "PaySelf");
+ dictionary.Add("testflag", "TestFlag");
+ dictionary.Add("limitflag", "LimitFlag");
+ dictionary.Add("extend1", "Extend1");
+ dictionary.Add("extend2", "Extend2");
+ dictionary.Add("extend3", "Extend3");
+ dictionary.Add("extend4", "Extend4");
+ dictionary.Add("extend5", "Extend5");
}
#region IMap 成员
diff --git a/AIMSEntity/ObjectQuery/OperationTemplateMap.cs b/AIMSEntity/ObjectQuery/OperationTemplateMap.cs
index 989c4b3..0dca1c4 100644
--- a/AIMSEntity/ObjectQuery/OperationTemplateMap.cs
+++ b/AIMSEntity/ObjectQuery/OperationTemplateMap.cs
@@ -30,6 +30,11 @@ namespace AIMSObjectQuery
dictionary.Add("spare3", "Spare3");
dictionary.Add("spare4", "Spare4");
dictionary.Add("spare5", "Spare5");
+ dictionary.Add("spare6", "Spare6");
+ dictionary.Add("spare7", "Spare7");
+ dictionary.Add("spare8", "Spare8");
+ dictionary.Add("spare9", "Spare9");
+ dictionary.Add("spare10", "Spare10");
}
#region IMap 成员
diff --git a/AIMSEntity/ObjectQuery/PrintDocumentMap.cs b/AIMSEntity/ObjectQuery/PrintDocumentMap.cs
deleted file mode 100644
index a8dc060..0000000
--- a/AIMSEntity/ObjectQuery/PrintDocumentMap.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-
-namespace AIMSObjectQuery
-{
- internal partial class PrintDocumentMap:IMap
- {
- private Dictionary dictionary = new Dictionary();
- public PrintDocumentMap()
- {
- dictionary.Add("id", "Id");
- dictionary.Add("patientid", "PatientId");
- dictionary.Add("templateid", "TemplateId");
- dictionary.Add("xmlfilename", "XmlFileName");
- dictionary.Add("xmlfile", "XmlFile");
- dictionary.Add("xmlstatic", "XmlStatic");
- dictionary.Add("isvalid", "IsValid");
- dictionary.Add("operatorno", "OperatorNo");
- dictionary.Add("operatordate", "OperatorDate");
- }
-
- #region IMap 成员
-
- public string this[string propertyName]
- {
- get
- {
- try
- {
- return dictionary[propertyName.ToLower()];
- }
- catch (KeyNotFoundException)
- {
- throw new Exception(propertyName + "属性不存在");
- }
- }
- }
-
- #endregion
- }
-}
diff --git a/AIMSExtension/PublicMethod.cs b/AIMSExtension/PublicMethod.cs
index 6fa82e0..90d61e0 100644
--- a/AIMSExtension/PublicMethod.cs
+++ b/AIMSExtension/PublicMethod.cs
@@ -165,6 +165,42 @@ namespace AIMSExtension
return strAge;
}
+ public static int GetAgeNum(DateTime Birthday)
+ {
+ DateTime NowTime = HelperDB.DbHelperSQL.SystemDate();
+ int strAge=0;
+ int intYear = 0;
+ int intMonth = 0;
+ int intDay = 0;
+
+ intDay = NowTime.Day - Birthday.Day;
+ if (intDay < 0)
+ {
+ NowTime = NowTime.AddMonths(-1);
+ intDay += DateTime.DaysInMonth(NowTime.Year, NowTime.Month);
+ }
+
+ intMonth = NowTime.Month - Birthday.Month;
+ if (intMonth < 0)
+ {
+ intMonth += 12;
+ NowTime = NowTime.AddYears(-1);
+ }
+
+ intYear = NowTime.Year - Birthday.Year;
+
+ if (intYear >= 1)
+ {
+ strAge = intYear ;
+ }
+
+ if (intDay >= 0 && intYear < 1)
+ {
+ strAge = 1;
+ }
+
+ return strAge;
+ }
public static DataTable GetDgvToTable(DataGridView dgv)
{
DataTable dt = new DataTable();
diff --git a/DocumentManagement/DocumentEntity/DocumentDAL.cs b/DocumentManagement/DocumentEntity/DocumentDAL.cs
index da96f62..7f4c79f 100644
--- a/DocumentManagement/DocumentEntity/DocumentDAL.cs
+++ b/DocumentManagement/DocumentEntity/DocumentDAL.cs
@@ -773,42 +773,6 @@ namespace DocumentManagement
}
}
- ///
- /// 获取患者信息
- ///
- ///
- ///
- ///
- public static DataTable GetPatient(int patientId)
- {
- try
- {
- StringBuilder strSql = new StringBuilder();
- strSql.Append(" select *");
- strSql.Append(" from V_OperationRecordALL where");
- strSql.Append(" PatientId = '" + patientId + "'");
- return DbHelperSQL.GetDataTable(strSql.ToString());
- }
- catch (Exception ex)
- {
- throw ex;
- }
- }
- public static DataTable GetLisResult(string patientNo)
- {
- try
- {
- StringBuilder strSql = new StringBuilder();
- strSql.Append(" select *");
- strSql.Append(" from V_LisResult where");
- strSql.Append(" PATIENT_ID = '" + patientNo + "'");
- return DbHelperSQL.GetDataTable(strSql.ToString());
- }
- catch (Exception ex)
- {
- throw ex;
- }
- }
public static DataTable GetLisResultNos(string patientNo)
{
try
@@ -837,5 +801,78 @@ namespace DocumentManagement
throw ex;
}
}
+
+
+ ///
+ /// 根据模板名称查询文档
+ ///
+ /// 模板名称
+ /// 患者Id
+ ///
+ public static PrintDocument GetDocumentbyName2(string tempName, int patientId)
+ {
+ PrintDocument model = new PrintDocument();
+ string result = string.Empty;
+ try
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("select ");
+ sb.Append(" pd.Id,");
+ sb.Append(" pd.PatientId,");
+ sb.Append(" pd.TemplateId,");
+ sb.Append(" pd.XmlFileName,");
+ sb.Append(" pd.XmlFile,");
+ sb.Append(" pd.XmlStatic,");
+ sb.Append(" pd.IsValid,");
+ sb.Append(" pd.OperatorNo,");
+ sb.Append(" pd.OperatorDate");
+ sb.Append(" from PrintDocument pd");
+ sb.Append(" where ");
+ sb.Append(" pd.PatientId = " + patientId);
+ sb.Append(" and pd.XmlFileName = '" + tempName + "'");
+ sb.Append(" and pd.IsValid = 1");
+ DataTable dt = DbHelperSQL.GetDataTable(sb.ToString());
+ if (dt.Rows.Count > 0)
+ {
+ model.Id = int.Parse(dt.Rows[0]["Id"].ToString());
+ model.PatientId = int.Parse(dt.Rows[0]["PatientId"].ToString());
+ model.TemplateId = int.Parse(dt.Rows[0]["TemplateId"].ToString());
+ model.XmlFileName = dt.Rows[0]["XmlFileName"].ToString();
+ model.XmlFile = dt.Rows[0]["XmlFile"].ToString();
+ model.XmlStatic = dt.Rows[0]["XmlStatic"].ToString();
+ model.OperatorNo = dt.Rows[0]["OperatorNo"].ToString();
+ }
+ }
+ catch (Exception ex)
+ {
+ throw ex;
+ }
+ return model;
+ }
+ public static XmlDocument GetPrintDocumentXml(string tempName, int patientId)
+ {
+ PrintDocument model = GetDocumentbyName2(tempName, patientId);
+ XmlDocument doc = new XmlDocument();
+ if (model.XmlStatic != null && model.XmlStatic.Length > 0)
+ {
+ doc.LoadXml(model.XmlStatic);
+ }
+ return doc;
+ }
+ public static string GetDocumentXmlStatic(string tempName, int patientId, string dictName)
+ {
+ string Value = "";
+ XmlDocument doc = GetPrintDocumentXml(tempName, patientId);
+ XmlElement root = doc.DocumentElement;
+ if (root != null)
+ {
+ foreach (XmlNode row in root.ChildNodes)
+ {
+ if (row.Attributes["Name"].InnerText == dictName)
+ Value = row.InnerText.Trim();//测试方法
+ }
+ }
+ return Value;
+ }
}
}
diff --git a/DocumentManagement/DocumentEntity/DocumentExtension.cs b/DocumentManagement/DocumentEntity/DocumentExtension.cs
new file mode 100644
index 0000000..00d769f
--- /dev/null
+++ b/DocumentManagement/DocumentEntity/DocumentExtension.cs
@@ -0,0 +1,249 @@
+using AIMSExtension;
+using DCSoft.Writer.Dom;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Xml.Linq;
+
+namespace DocumentManagement
+{
+ public static class DocumentExtension
+ {
+ public static void SetDocumentDefaultValue(string DocName, XTextDocument Document, PatientRecord Patient)
+ {
+ if (DocName == "压疮风险评估表")
+ {
+ string AnaesthesiaMethodName = Patient.ApplyAnaesthesiaMethodName;
+ if (Patient.AnaesthesiaMethodName != "") AnaesthesiaMethodName = Patient.AnaesthesiaMethodName;
+ double BMI = -1;
+ if (Patient.BMI != null && Patient.BMI != "") BMI = double.Parse(Patient.BMI);
+ int Age = 0;
+ if (Patient.BirthDay != null && Patient.BirthDay != "") Age = PublicMethod.GetAgeNum(DateTime.Parse(Patient.BirthDay));
+ var AnaesthesiaText = Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).ID == "field6").FirstOrDefault();
+ var BMItext = Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).ID == "field7").FirstOrDefault();
+ var AgeText = Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
+ && (x as XTextInputFieldElement).ID == "field8").FirstOrDefault();
+
+ foreach (XTextRadioBoxElement item in Document.RadioBoxes)
+ {
+ if (AnaesthesiaMethodName != "")
+ {
+ if (item.ID == "麻醉方式与手术体位_4" && AnaesthesiaMethodName.Contains("全身")) //|| Patient.OperationBodyPositionName.Contains("截石位")
+ {
+ item.Checked = true;
+ if (AnaesthesiaText != null)
+ AnaesthesiaText.Text = "4";
+ }
+ else if (item.ID == "麻醉方式与手术体位_1" && AnaesthesiaMethodName.Contains("局部")) //|| Patient.OperationBodyPositionName.Contains("仰卧位")
+ {
+ item.Checked = true;
+ if (AnaesthesiaText != null)
+ AnaesthesiaText.Text = "1";
+ }
+ else if (item.ID == "麻醉方式与手术体位_2" && AnaesthesiaMethodName.Contains("阻滞")) //|| Patient.OperationBodyPositionName.Contains("侧卧位")
+ {
+ item.Checked = true;
+ if (AnaesthesiaText != null)
+ AnaesthesiaText.Text = "2";
+ }
+ else if (item.ID == "麻醉方式与手术体位_3" && AnaesthesiaMethodName.Contains("椎管")) //|| Patient.OperationBodyPositionName.Contains("俯卧位")
+ {
+ item.Checked = true;
+ if (AnaesthesiaText != null)
+ AnaesthesiaText.Text = "3";
+ }
+ }
+ if (BMI != -1)
+ {
+ if (item.ID == "体型(BMI)_1" && (BMI >= 18.5 && BMI <= 23.9))
+ {
+ item.Checked = true;
+ if (BMItext != null)
+ BMItext.Text = "1";
+ }
+ else if (item.ID == "体型(BMI)_2" && ((BMI >= 17.5 && BMI < 18.5) || (BMI >= 24 && BMI <= 27.9)))
+ {
+ item.Checked = true;
+ if (BMItext != null)
+ BMItext.Text = "2";
+ }
+ else if (item.ID == "体型(BMI)_3" && ((BMI >= 16 && BMI < 17.5) || (BMI >= 28 && BMI <= 40)))
+ {
+ item.Checked = true;
+ if (BMItext != null)
+ BMItext.Text = "3";
+ }
+ else if (item.ID == "体型(BMI)_4" && (BMI < 16 || BMI > 40))
+ {
+ item.Checked = true;
+ if (BMItext != null)
+ BMItext.Text = "4";
+ }
+ }
+
+ if (Age > 0)
+ {
+ if (item.ID == "年龄_1" && (Age >= 80 || Age <= 1))
+ {
+ item.Checked = true;
+ if (AgeText != null)
+ AgeText.Text = "1";
+ }
+ else if (item.ID == "年龄_2" && Age < 50)
+ {
+ item.Checked = true;
+ if (AgeText != null)
+ AgeText.Text = "2";
+ }
+ else if (item.ID == "年龄_3" && (Age >= 50 && Age <= 64))
+ {
+ item.Checked = true;
+ if (AgeText != null)
+ AgeText.Text = "3";
+ }
+ else if (item.ID == "年龄_4" && (Age >= 65 && Age <= 79))
+ {
+ item.Checked = true;
+ if (AgeText != null)
+ AgeText.Text = "4";
+ }
+
+ }
+
+ }
+ }
+ }
+ }
+}
+
+//var p = element.GetType().GetProperty("ID").GetValue(element, null);
+//string pID = p.ToString();
+//if (pID != null)
+//{
+// switch (element.ID)
+// {
+// case "D2018071115522659588135":
+// if (element.Text.Length > 0)
+// {
+// SetValueByName("手术麻醉史", "Checked", false);
+// }
+// else
+// {
+// SetValueByName("手术麻醉史", "Checked", true);
+// }
+// break;
+// case "D2018071115522661909621":
+// if (element.Text.Length > 0)
+// {
+// SetValueByName("心血管系统正常", "Checked", false);
+// }
+// else if (element.Text.Length == 0
+// && !GetCheckedValueByName("高血压")
+// && !GetCheckedValueByName("冠心病")
+// && !GetCheckedValueByName("瓣膜病")
+// && !GetCheckedValueByName("心律失常"))
+// {
+// SetValueByName("心血管系统正常", "Checked", true);
+// }
+// break;
+// case "D2018071115522620315681":
+// if (element.Text.Length > 0)
+// {
+// SetValueByName("呼吸系统正常", "Checked", false);
+// }
+// else if (element.Text.Length == 0
+// && !GetCheckedValueByName("COPD")
+// && !GetCheckedValueByName("哮喘"))
+// {
+// SetValueByName("呼吸系统正常", "Checked", true);
+// }
+// break;
+// case "D2018071115522648623408":
+// if (element.Text.Length > 0)
+// {
+// SetValueByName("内分泌系统正常", "Checked", false);
+// }
+// else if (element.Text.Length == 0
+// && !GetCheckedValueByName("内分泌系统糖尿病")
+// && !GetCheckedValueByName("库兴综合症")
+// && !GetCheckedValueByName("内分泌系统甲亢"))
+// {
+// SetValueByName("内分泌系统正常", "Checked", true);
+// }
+// break;
+// case "D2018071115522634957489":
+// if (element.Text.Length > 0)
+// {
+// SetValueByName("消化系统正常", "Checked", false);
+// }
+// else if (element.Text.Length == 0
+// && !GetCheckedValueByName("肝炎")
+// && !GetCheckedValueByName("肝硬化")
+// && !GetCheckedValueByName("胃食管返流"))
+// {
+// SetValueByName("消化系统正常", "Checked", true);
+// }
+// break;
+// case "D2018071115522646181951":
+// if (element.Text.Length > 0)
+// {
+// SetValueByName("泌尿系统正常", "Checked", false);
+// }
+// else if (element.Text.Length == 0
+// && !GetCheckedValueByName("肾病")
+// && !GetCheckedValueByName("尿毒症")
+// && !GetCheckedValueByName("肾衰"))
+// {
+// SetValueByName("泌尿系统正常", "Checked", true);
+// }
+// break;
+// case "D2018071115522612984378":
+// if (element.Text.Length > 0)
+// {
+// SetValueByName("神经系统正常", "Checked", false);
+// }
+// else if (element.Text.Length == 0
+// && !GetCheckedValueByName("昏迷")
+// && !GetCheckedValueByName("脑梗")
+// && !GetCheckedValueByName("老年痴呆")
+// && !GetCheckedValueByName("帕金森综合症"))
+// {
+// SetValueByName("神经系统正常", "Checked", true);
+// }
+// break;
+// default:
+// break;
+// }
+//}
+
+
+//var p = element.GetType().GetProperty("Name").GetValue(element, null);
+//if (p == null)
+// return;
+//string pName = p.ToString();
+//switch (pName)
+//{
+// case "麻醉方式与手术体位":
+// SetValueById("field6", "Text", element.Text);
+// break;
+// case "体型(BMI)":
+// SetValueById("field7", "Text", element.Text);
+// break;
+// case "年龄":
+// SetValueById("field8", "Text", element.Text);
+// break;
+// case "皮肤":
+// SetValueById("field9", "Text", element.Text);
+// break;
+// case "预计手术时间":
+// SetValueById("field10", "Text", element.Text);
+// break;
+// case "手术施压":
+// SetValueById("field11", "Text", element.Text);
+// break;
+// default:
+// break;
+//}
diff --git a/AIMS/DocManager/PatientLisResult.cs b/DocumentManagement/DocumentEntity/PatientLisResult.cs
similarity index 86%
rename from AIMS/DocManager/PatientLisResult.cs
rename to DocumentManagement/DocumentEntity/PatientLisResult.cs
index a2e9a04..f43b894 100644
--- a/AIMS/DocManager/PatientLisResult.cs
+++ b/DocumentManagement/DocumentEntity/PatientLisResult.cs
@@ -1,10 +1,11 @@
-using System;
+using HelperDB;
+using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
-namespace AIMS.DocManager
+namespace DocumentManagement
{
///
/// V_OperationRecordALL
@@ -41,7 +42,7 @@ namespace AIMS.DocManager
public string Item27 { get; set; }
public string Item28 { get; set; }
public string Item29 { get; set; }
- public string Item30 { get; set; }
+ public string Item30 { get; set; }
public string Item31 { get; set; }
public string Item32 { get; set; }
public string Item33 { get; set; }
@@ -55,8 +56,8 @@ namespace AIMS.DocManager
public static PatientLisResult GetLisResult(string patientNo)
{
- PatientLisResult patient = new PatientLisResult ();
- DataTable dt = DocumentManagement.DocumentDAL.GetLisResult (patientNo );
+ PatientLisResult patient = new PatientLisResult();
+ DataTable dt = GetLisResultSources(patientNo);
if (dt.Rows.Count > 0)
{
patient.PATIENT_ID = dt.Rows[0]["PATIENT_ID"].ToString();
@@ -100,8 +101,24 @@ namespace AIMS.DocManager
patient.Item38 = dt.Rows[0]["Item38"].ToString();
patient.Item39 = dt.Rows[0]["Item39"].ToString();
patient.Item40 = dt.Rows[0]["Item40"].ToString();
- }
+ }
return patient;
}
+
+ public static DataTable GetLisResultSources(string patientNo)
+ {
+ try
+ {
+ StringBuilder strSql = new StringBuilder();
+ strSql.Append(" select *");
+ strSql.Append(" from V_LisResult where");
+ strSql.Append(" PATIENT_ID = '" + patientNo + "'");
+ return DbHelperSQL.GetDataTable(strSql.ToString());
+ }
+ catch (Exception ex)
+ {
+ throw ex;
+ }
+ }
}
}
diff --git a/AIMS/DocManager/PatientRecord.cs b/DocumentManagement/DocumentEntity/PatientRecord.cs
similarity index 89%
rename from AIMS/DocManager/PatientRecord.cs
rename to DocumentManagement/DocumentEntity/PatientRecord.cs
index b965013..2338bf1 100644
--- a/AIMS/DocManager/PatientRecord.cs
+++ b/DocumentManagement/DocumentEntity/PatientRecord.cs
@@ -1,10 +1,11 @@
-using System;
+using HelperDB;
+using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
-namespace AIMS.DocManager
+namespace DocumentManagement
{
///
/// V_OperationRecordALL
@@ -23,6 +24,7 @@ namespace AIMS.DocManager
public String Sex { get; set; }
public String BirthDay { get; set; }
public String Age { get; set; }
+ public String BMI { get; set; }
public String Height { get; set; }
public String Weight { get; set; }
public String BloodType { get; set; }
@@ -109,7 +111,7 @@ namespace AIMS.DocManager
{
PatientRecord patient = new PatientRecord();
#region 患者信息赋值
- DataTable dt = DocumentManagement.DocumentDAL.GetPatient(patientId);
+ DataTable dt = GetPatientSources(patientId);
if (dt.Rows.Count > 0)
{
patient.PatientId = int.Parse(dt.Rows[0]["PatientId"].ToString());
@@ -124,14 +126,22 @@ namespace AIMS.DocManager
patient.ApplyDepName = dt.Rows[0]["ApplyDepName"].ToString();
patient.PatientDepName = dt.Rows[0]["PatientDepName"].ToString();
patient.Age = dt.Rows[0]["Age"].ToString();
- patient.BirthDay = dt.Rows[0]["BirthDay"].ToString();
patient.Height = dt.Rows[0]["Height"].ToString();
patient.Weight = dt.Rows[0]["Weight"].ToString();
+ patient.BMI = dt.Rows[0]["BMI"].ToString();
+ if (patient.BMI == "" && patient.Height != "" && patient.Weight != "" && patient.Weight != "卧床")
+ {
+ double hei = double.Parse(patient.Height) / 100;
+ double wei = double.Parse(patient.Weight);
+ double BMI = wei / hei / hei;
+ patient.BMI = Math.Floor(BMI).ToString();
+ }
+ patient.BirthDay = dt.Rows[0]["BirthDay"].ToString();
patient.BloodType = dt.Rows[0]["BloodType"].ToString();
patient.SickBed = dt.Rows[0]["SickBed"].ToString();
patient.OperationType = dt.Rows[0]["OperationType"].ToString();
patient.OrderOperationTime = dt.Rows[0]["OrderOperationTime"].ToString();
- patient.OrderOperationDate = dt.Rows[0]["OrderOperationDate"].ToString();
+ patient.OrderOperationDate = dt.Rows[0]["OrderOperationDate"].ToString();
patient.OperationTimeLeight = dt.Rows[0]["OperationTimeLeight"].ToString();
patient.IsReturnOperation = dt.Rows[0]["IsReturnOperation"].ToString();
patient.IsPlanReturnOperation = dt.Rows[0]["IsPlanReturnOperation"].ToString();
@@ -175,9 +185,9 @@ namespace AIMS.DocManager
patient.AnesthesiaEndTime = dt.Rows[0]["AnesthesiaEndTime"].ToString();
patient.SpileInTime = dt.Rows[0]["SpileInTime"].ToString();
patient.SpileOutTime = dt.Rows[0]["SpileOutTime"].ToString();
- patient.OperationLevelName = dt.Rows[0]["OperationLevelName"].ToString();
- patient.SpecialSituation = dt.Rows[0]["SpecialSituation"].ToString();
- patient.AnaesthesiaPlane = dt.Rows[0]["AnaesthesiaPlane"].ToString();
+ patient.OperationLevelName = dt.Rows[0]["OperationLevelName"].ToString();
+ patient.SpecialSituation = dt.Rows[0]["SpecialSituation"].ToString();
+ patient.AnaesthesiaPlane = dt.Rows[0]["AnaesthesiaPlane"].ToString();
patient.DiagnoseInfoName = dt.Rows[0]["DiagnoseInfoName"].ToString();
patient.OperationInfoName = dt.Rows[0]["OperationInfoName"].ToString();
patient.AnaesthesiaMethodName = dt.Rows[0]["AnaesthesiaMethodName"].ToString();
@@ -195,10 +205,32 @@ namespace AIMS.DocManager
patient.OpeTime = dt.Rows[0]["OpeTime"].ToString();
patient.MedicalRecord = dt.Rows[0]["MedicalRecord"].ToString();
patient.MedicalHistory = dt.Rows[0]["MedicalHistory"].ToString();
- }
+ }
patient.LisResult = PatientLisResult.GetLisResult(patient.MdrecNo);
#endregion
return patient;
}
+
+ ///
+ /// 获取患者信息
+ ///
+ ///
+ ///
+ ///
+ public static DataTable GetPatientSources(int patientId)
+ {
+ try
+ {
+ StringBuilder strSql = new StringBuilder();
+ strSql.Append(" select *");
+ strSql.Append(" from V_OperationRecordALL where");
+ strSql.Append(" PatientId = '" + patientId + "'");
+ return DbHelperSQL.GetDataTable(strSql.ToString());
+ }
+ catch (Exception ex)
+ {
+ throw ex;
+ }
+ }
}
}
diff --git a/DocumentManagement/DocumentManagement.csproj b/DocumentManagement/DocumentManagement.csproj
index 9d577db..cbc9ade 100644
--- a/DocumentManagement/DocumentManagement.csproj
+++ b/DocumentManagement/DocumentManagement.csproj
@@ -54,8 +54,11 @@
+
+
+
diff --git a/DocumentManagement/UI/frmTemplate.cs b/DocumentManagement/UI/frmTemplate.cs
index d24fde6..91dbda3 100644
--- a/DocumentManagement/UI/frmTemplate.cs
+++ b/DocumentManagement/UI/frmTemplate.cs
@@ -1373,92 +1373,7 @@ namespace DocumentManagement
{
myEditControl.ExecuteCommand("InsertXML", false, xml);
}
- }
-
- private void mTestInertOldXml_Click(object sender, EventArgs e)
- {
- string xml = @"
-
-
-
-
-
- <a><text fontname='仿宋_GB2312' fontsize='12' bold='bold' center='center'>仪征市刘集镇卫生院</text><text fontname='仿宋_GB2312' fontsize='18' bold='bold' center='center'></text><text fontname='仿宋_GB2312' fontsize='12' center='center'>姓名:胡月 住院号:78 科室:妇产科 床号:22 </text><line thick='5' ></line></a>
- 259
- <a><line thick='2'></line><text fontname='宋体_GB2312' fontsize='10' center='center' >第[%pageindex%]页</text></a>
- 177
-
-
-
-手术记录
-
-姓名:胡月 性别:女 年龄:19岁 科室:
-手术日期: 2012 年 01月 07日
-术前诊断:1孕1产0孕40周待产LOA 2社会因素
-术后诊断:孕1产1孕40周已产LOA 2成熟男婴
-手术名称:子宫下段剖宫产术
-手术者: 周云美 助手:朱卫国
-麻醉方法: 连硬麻 麻醉者:陈海云
-手术经过(术中出现的情况及处理):麻醉成功后,取平卧位,常规消毒铺巾,取下腹正中纵切口约10CM,逐层进腹,探查子宫如孕足月大小,子宫下段形成好。遂行子宫下段剖宫产术。围纱排开肠管,弧形剪开膀胱、子宫返折腹膜,下推膀胱。切开子宫肌层,钝性向两侧分离约2cm,破膜,见羊水流出,羊水清,尽量洗净羊水,将子宫肌层切口再次钝性向两侧分离至8cm,术者右手伸入宫腔,上托抬头,助手按压宫体协助胎肩胎体娩出,将其解开后,清理呼吸道、断脐后交台下处理,鼠齿钳钳夹子宫切口四周,宫体注射缩宫素20u,待胎盘剥离后,牵引脐带协助胎盘、胎膜娩出,检查胎盘、胎膜完整,脐带位于胎盘中央,小纱布擦净宫腔残留物后,0号可吸收线连续缝合子宫肌层,间断加强,连续缝合膀胱子宫反折腹膜,探查子宫切口无渗血,双侧附件无异常,清点纱布、器械无误后逐层关腹,内锋皮肤层。
- 新生儿Apgar评分为10分,为一成熟男婴。
- 术中麻醉满意,血压平稳,出血约200ml,术中补液800cm,尿量300cm,母子安反病房继术中补液,给抗感染治疗,请注意阴道出血。
- 周云美
-
-
-
-手术记录
-
-姓名:胡月 性别:女 年龄:19岁 科室:[住院科室] 病案号:
-手术日期: 2012 年 01月 07日
-术前诊断:1孕1产0孕40周待产LOA 2社会因素
-术后诊断:孕1产1孕40周已产LOA 2成熟男婴
-手术名称:子宫下段剖宫产术
-手术者: 周云美 助手:朱卫国
-麻醉方法: 连硬麻 麻醉者:陈海云
-手术经过(术中出现的情况及处理):麻醉成功后,取平卧位,常规消毒铺巾,取下腹正中纵切口约10CM,逐层进腹,探查子宫如孕足月大小,子宫下段形成好。遂行子宫下段剖宫产术。围纱排开肠管,弧形剪开膀胱、子宫返折腹膜,下推膀胱。切开子宫肌层,钝性向两侧分离约2cm,破膜,见羊水流出,羊水清,尽量洗净羊水,将子宫肌层切口再次钝性向两侧分离至8cm,术者右手伸入宫腔,上托抬头,助手按压宫体协助胎肩胎体娩出,将其解开后,清理呼吸道、断脐后交台下处理,鼠齿钳钳夹子宫切口四周,宫体注射缩宫素20u,待胎盘剥离后,牵引脐带协助胎盘、胎膜娩出,检查胎盘、胎膜完整,脐带位于胎盘中央,小纱布擦净宫腔残留物后,0号可吸收线连续缝合子宫肌层,间断加强,连续缝合膀胱子宫反折腹膜,探查子宫切口无渗血,双侧附件无异常,清点纱布、器械无误后逐层关腹,内锋皮肤层。
- 新生儿Apgar评分为10分,为一成熟男婴。
- 术中麻醉满意,血压平稳,出血约200ml,术中补液800cm,尿量300cm,母子安反病房继术中补液,给抗感染治疗,请注意阴道出血。
- 周云美
-
-
- 手术记录
-
-
- 姓名:
-
- 性别:
-
- 年龄:
-
- 科室:
-
- 病案号:
-
- 手术日期: 2012 年 01月 07日
-
- 术前诊断:1孕1产0孕40周待产LOA 2社会因素
-
- 术后诊断:孕1产1孕40周已产LOA 2成熟男婴
-
- 手术名称:子宫下段剖宫产术
-
- 手术者: 周云美 助手:朱卫国
-
- 麻醉方法: 连硬麻 麻醉者:陈海云
-
- 手术经过(术中出现的情况及处理):麻醉成功后,取平卧位,常规消毒铺巾,取下腹正中纵切口约10CM,逐层进腹,探查子宫如孕足月大小,子宫下段形成好。遂行子宫下段剖宫产术。围纱排开肠管,弧形剪开膀胱、子宫返折腹膜,下推膀胱。切开子宫肌层,钝性向两侧分离约2cm,破膜,见羊水流出,羊水清,尽量洗净羊水,将子宫肌层切口再次钝性向两侧分离至8cm,术者右手伸入宫腔,上托抬头,助手按压宫体协助胎肩胎体娩出,将其解开后,清理呼吸道、断脐后交台下处理,鼠齿钳钳夹子宫切口四周,宫体注射缩宫素20u,待胎盘剥离后,牵引脐带协助胎盘、胎膜娩出,检查胎盘、胎膜完整,脐带位于胎盘中央,小纱布擦净宫腔残留物后,0号可吸收线连续缝合子宫肌层,间断加强,连续缝合膀胱子宫反折腹膜,探查子宫切口无渗血,双侧附件无异常,清点纱布、器械无误后逐层关腹,内锋皮肤层。
-
- 新生儿Apgar评分为10分,为一成熟男婴。
-
- 术中麻醉满意,血压平稳,出血约200ml,术中补液800cm,尿量300cm,母子安反病房继术中补液,给抗感染治疗,请注意阴道出血。
-
- 周云美
-
-
-";
- myEditControl.ExecuteCommand("InsertOldXml", false, xml);
- }
+ }
#endregion Click_Event
diff --git a/DocumentManagement/UI/frmTemplate.resx b/DocumentManagement/UI/frmTemplate.resx
index e1fa8a7..0a235a1 100644
--- a/DocumentManagement/UI/frmTemplate.resx
+++ b/DocumentManagement/UI/frmTemplate.resx
@@ -992,7 +992,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACO
- GAAAAk1TRnQBSQFMAgEBIQEAAZABCQGQAQkBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
+ GAAAAk1TRnQBSQFMAgEBIQEAAZgBCQGYAQkBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAAZADAAEBAQABCAYAASQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
@@ -3367,7 +3367,7 @@
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- vwAADr8BOAVTJAAAAVZJREFUOE+tkMFLAkEUxv2DBO952EMX8TLnPS2B4EKHOQpdtsvacZcgvAgSSpAY
+ vgAADr4B6kKxwAAAAVZJREFUOE+tkMFLAkEUxv2DBO952EMX8TLnPS2B4EKHOQpdtsvacZcgvAgSSpAY
22KIB0EYqCQqsUsgiMNCm0W0UHTq8LVvCqGDq4IfDMO8+b7fezOpjWs0GqPpd/F3VJJS4qTl/6st1Mtb
BKdSw3v0MQ94Xh9icL8agORUPHTFrQrI5wgGt0BTqMtV1G4LOE4NYRiifz0EM/h6gJ54UM9onnfALQe6
bq4eJgVBqII0OnXf27fXA5DMUlmFWdFCT6zxgXL2Dbf1CWZNYR9PwEpD6NYI7qmEGL4mgyhsHkXQyxL5
@@ -3385,7 +3385,7 @@
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- vwAADr8BOAVTJAAAAT5JREFUOE+9kSFPxEAQhftT+hPuJ1RWViIrkSuRK5ErK1eeXFm5ssmZNYSSQNgL
+ vgAADr4B6kKxwAAAAT5JREFUOE+9kSFPxEAQhftT+hPuJ1RWViIrkSuRK5ErK1eeXFm5ssmZNYSSQNgL
CSFBsA7cY2b27not5CpIeMkzzc733kyLP8v5iOyQ3QdYF/D4/IrDk8vi4aWs82i1xfi0X4dw6lJm6+GH
gFaZdQhXZvkRoOYIMcFYBzckWinb9vTNZd+/fM6BXPekLyAlIL7RIAGW0tuEzbXH7uFjgliqy7IDVack
7SKUjbCUvJTqMnhz5bC7e88Q3peVJD1JOq9h+3xc47LDmNCaKMPssrEHAO3Lw8dkcRfokPO/w28Y7gPB
@@ -3402,7 +3402,7 @@
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- vwAADr8BOAVTJAAAAZRJREFUOE+1kqFuHDEURecP9hP2ExYWGgYaLjQMNAw0CFgVGQ40XGi40HBQZThS
+ vgAADr4B6kKxwAAAAZRJREFUOE+1kqFuHDEURecP9hP2ExYWGgYaLjQMNAw0CFgVGQ40XGi40HBQZThS
qtRRChYals3tfXYm2aQbVapUS0eWZuae5/c8w39ZKToIMTj8fHrEy+Pr6/v8DfHoXwneoJ5Do8we9lbB
HyxxbX9+engvlFCtEQupNSCMtu1f7y3y5OCshjM71ETxaQtr9J8CCQv+YBii8OxZ3aFMBnHUMHuF4LbI
foDdfxSEVRDgnWFFQfPoL7CipcDbLjA36r0grALpu7B65tHD5o2RMLiivuw+CEbXh1a4z+w/a9S4gQ9s
@@ -3678,7 +3678,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACW
- BQAAAk1TRnQBSQFMAwEBAAFQAQQBUAEEARABAAEQAQAE/wEZAQAI/wFCAU0BNgcAATYDAAEoAwABQAMA
+ BQAAAk1TRnQBSQFMAwEBAAFYAQQBWAEEARABAAEQAQAE/wEZAQAI/wFCAU0BNgcAATYDAAEoAwABQAMA
ARADAAEBAQABGAYAAQwVAAGcAZABigF7AWwBYwFyAWEBWAFxAWABVwFxAWABVwFxAWABVwFxAWABVwFx
AWABVwFxAWABVwFyAWEBWAF7AWwBYwGcAZABigHOAckBxpYAAa4BfAFvAdkBrQGdAdYBqAGaAdMBpgGY
AdIBpAGXAcwBoQGZAckBngGXAcYBnAGWAcQBmQGVAcEBlgGTAbYBkQGLAbgBjgGLAXwBbQFkAb8BtwG0
diff --git a/DrawGraph/AreaManage/DBManage.cs b/DrawGraph/AreaManage/DBManage.cs
index 08a105a..0605db2 100644
--- a/DrawGraph/AreaManage/DBManage.cs
+++ b/DrawGraph/AreaManage/DBManage.cs
@@ -18,7 +18,7 @@ namespace DrawGraph
case "人员":
if (PersonType == "0")
{
- strSql = "SELECT top 10 p.Id,p.Name,p.No Code FROM Person p WHERE p.IsValid=1 AND p.PersonType ='医生' ";
+ strSql = "SELECT top 20 p.Id,p.Name,p.No Code FROM Person p WHERE p.IsValid=1 AND p.PersonType ='医生' ";
if (HelpCode != "") strSql += " AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' OR p.No LIKE '%" + HelpCode + "%')";
if (HelpCode == "" && OpeRecord.DepartmentId != null) strSql += " AND p.DepId='" + OpeRecord.DepartmentId + "' ";
if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") ";
@@ -26,25 +26,25 @@ namespace DrawGraph
}
else if (PersonType == "1")
{
- strSql = "SELECT top 10 p.Id,p.Name,p.No Code FROM Person p WHERE p.IsValid=1 AND p.PersonType like '%护士%' AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' OR p.No LIKE '%" + HelpCode + "%')";
+ strSql = "SELECT top 20 p.Id,p.Name,p.No Code FROM Person p WHERE p.IsValid=1 AND p.PersonType like '%护士%' AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' OR p.No LIKE '%" + HelpCode + "%')";
if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") ";
strSql += " order by PersonOrder asc";
}
else if (PersonType == "2")
{
- strSql = "SELECT top 10 p.Id,p.Name,p.No Code FROM Person p WHERE p.IsValid=1 AND p.PersonType ='麻醉医生' AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' OR p.No LIKE '%" + HelpCode + "%')";
+ strSql = "SELECT top 20 p.Id,p.Name,p.No Code FROM Person p WHERE p.IsValid=1 AND p.PersonType ='麻醉医生' AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' OR p.No LIKE '%" + HelpCode + "%')";
if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") ";
strSql += " order by PersonOrder asc";
}
else if (PersonType == "3")
{
- strSql = "SELECT top 10 p.Id,p.Name,p.No Code FROM Person p WHERE p.IsValid=1 AND p.PersonType ='手术室护士' AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' OR p.No LIKE '%" + HelpCode + "%')";
+ strSql = "SELECT top 20 p.Id,p.Name,p.No Code FROM Person p WHERE p.IsValid=1 AND p.PersonType ='手术室护士' AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' OR p.No LIKE '%" + HelpCode + "%')";
if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") ";
strSql += " order by PersonOrder asc";
}
else if (PersonType == "4")
{
- strSql = "SELECT top 10 p.Id,p.Name,p.No Code FROM Person p WHERE p.IsValid=1 AND p.PersonType ='麻醉护士' AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' OR p.No LIKE '%" + HelpCode + "%')";
+ strSql = "SELECT top 20 p.Id,p.Name,p.No Code FROM Person p WHERE p.IsValid=1 AND p.PersonType ='麻醉护士' AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' OR p.No LIKE '%" + HelpCode + "%')";
if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") ";
strSql += " order by PersonOrder asc";
}
@@ -64,15 +64,15 @@ namespace DrawGraph
if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") ";
break;
case "手术体位":
- strSql = "SELECT top 10 p.Id,p.Name,p.Explain Code FROM OperationBodyPosition p WHERE p.IsValid=1 AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )";
+ strSql = "SELECT top 15 p.Id,p.Name,p.Explain Code FROM OperationBodyPosition p WHERE p.IsValid=1 AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )";
if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") ";
break;
case "手术部位":
- strSql = "SELECT top 10 p.Id,p.Name,p.Explain Code FROM OperationPosition p WHERE p.IsValid=1 AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )";
+ strSql = "SELECT top 15 p.Id,p.Name,p.Explain Code FROM OperationPosition p WHERE p.IsValid=1 AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )";
if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") ";
break;
default:
- strSql = "SELECT top 10 p.Id,p.Name,p.Remark Code FROM BasicDictionary p WHERE p.IsValid=1 and ParentId in(select Id from BasicDictionary where Name='" + _title + "') AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )";
+ strSql = "SELECT top 15 p.Id,p.Name,p.Remark Code FROM BasicDictionary p WHERE p.IsValid=1 and ParentId in(select Id from BasicDictionary where Name='" + _title + "') AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )";
if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") ";
break;
diff --git a/DrawGraph/AreaManage/FactDrug.cs b/DrawGraph/AreaManage/FactDrug.cs
index 4d576ad..28c1acc 100644
--- a/DrawGraph/AreaManage/FactDrug.cs
+++ b/DrawGraph/AreaManage/FactDrug.cs
@@ -29,17 +29,26 @@ namespace DrawGraph
public string OperatorNo { get; set; }
public string OperatorName { get; set; }
public DateTime OperateDate { get; set; }
- //private string operatorName;
public decimal Density;
public string DensityUnit;
public decimal Velocity;
public string VelocityUnit;
public string BloodType;
-
public int ParentId;
+
+ public string Access { get; set; }
+ public string BatchNo { get; set; }
+ public string PaySelf { get; set; }
+ public string TestFlag { get; set; }
+ public string LimitFlag { get; set; }
+ public string Extend1 { get; set; }
+ public string Extend2 { get; set; }
+ public string Extend3 { get; set; }
+ public string Extend4 { get; set; }
+ public string Extend5 { get; set; }
+
public List ChildFactDrugList;
- public bool isZuDrug { get; set; }
public double nowY { get; set; }
public string EqualDose { get; set; }
///
@@ -102,34 +111,11 @@ namespace DrawGraph
}
- public bool isEqual(double y, DateTime time, double lineHeight)
- {
- bool reValue = false;
- if ((y > nowY && y < nowY + lineHeight))
- {
- if (DrugBeginTime == DrugEndTime)
- {
- if ((DateTime.Compare(time, DateTime.Parse(DrugBeginTime.ToString())) > 0) && DateTime.Compare(time, DateTime.Parse(DrugBeginTime.ToString()).AddMinutes(10)) < 0)
- {
- reValue = true;
- }
- }
- else
- {
- if ((DateTime.Compare(time, DateTime.Parse(DrugBeginTime.ToString())) > 0 && DateTime.Compare(time, DateTime.Parse(DrugEndTime.ToString())) < 0))
- {
- reValue = true;
- }
- }
- }
- return reValue;
- }
-
public bool Equal(object drug1)
{
try
{
- if ((this.DosageUnit == ((FactDrug)drug1).DosageUnit) && (this.DrugChannel == ((FactDrug)drug1).DrugChannel) && (this.DrugName == ((FactDrug)drug1).DrugName))// && (this.DrugEffect == ((DrugsRecord)drug1).DrugEffect)&& (this.Remark == ((DrugsRecord)drug1).Remark)
+ if ((this.DosageUnit == ((FactDrug)drug1).DosageUnit) && (this.DrugChannel == ((FactDrug)drug1).DrugChannel) && (this.DrugName == ((FactDrug)drug1).DrugName) && (this.Access == ((FactDrug)drug1).Access))// && (this.DrugEffect == ((DrugsRecord)drug1).DrugEffect)&& (this.Remark == ((DrugsRecord)drug1).Remark)
{
return true;
}