术前禁食默认是

增加术后诊断
术后诊断 手术方式 麻醉方法
麻醉药持续 20ml 30毫升一行
虚线稍微粗一点
总出量单独表达尿量和出血
This commit is contained in:
leomon 2023-05-03 01:14:08 +08:00
parent 96c82888bb
commit 85ae9e317a
12 changed files with 139 additions and 71 deletions

View File

@ -33,6 +33,7 @@
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel();
this.panel14 = new System.Windows.Forms.Panel(); this.panel14 = new System.Windows.Forms.Panel();
this.button10 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button(); this.button8 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button(); this.button7 = new System.Windows.Forms.Button();
this.btnCancelIn = new System.Windows.Forms.Button(); this.btnCancelIn = new System.Windows.Forms.Button();
@ -131,7 +132,6 @@
this.txtInRoom1 = new System.Windows.Forms.Button(); this.txtInRoom1 = new System.Windows.Forms.Button();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.button10 = new System.Windows.Forms.Button();
this.panel3.SuspendLayout(); this.panel3.SuspendLayout();
this.panel14.SuspendLayout(); this.panel14.SuspendLayout();
this.panel4.SuspendLayout(); this.panel4.SuspendLayout();
@ -217,6 +217,27 @@
this.panel14.Size = new System.Drawing.Size(160, 931); this.panel14.Size = new System.Drawing.Size(160, 931);
this.panel14.TabIndex = 5; this.panel14.TabIndex = 5;
// //
// button10
//
this.button10.BackColor = System.Drawing.Color.Transparent;
this.button10.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.button10.Cursor = System.Windows.Forms.Cursors.Hand;
this.button10.Dock = System.Windows.Forms.DockStyle.Top;
this.button10.FlatAppearance.BorderSize = 0;
this.button10.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button10.Font = new System.Drawing.Font("微软雅黑", 11F);
this.button10.ForeColor = System.Drawing.Color.DimGray;
this.button10.Image = global::AIMS.Properties.Resources.;
this.button10.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.button10.Location = new System.Drawing.Point(0, 550);
this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(160, 50);
this.button10.TabIndex = 16;
this.button10.Text = " 安全核查";
this.button10.UseVisualStyleBackColor = false;
this.button10.Visible = false;
this.button10.Click += new System.EventHandler(this.button10_Click);
//
// button8 // button8
// //
this.button8.BackColor = System.Drawing.Color.Transparent; this.button8.BackColor = System.Drawing.Color.Transparent;
@ -1968,26 +1989,6 @@
this.flowLayoutPanel1.Size = new System.Drawing.Size(147, 71); this.flowLayoutPanel1.Size = new System.Drawing.Size(147, 71);
this.flowLayoutPanel1.TabIndex = 0; this.flowLayoutPanel1.TabIndex = 0;
// //
// button10
//
this.button10.BackColor = System.Drawing.Color.Transparent;
this.button10.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.button10.Cursor = System.Windows.Forms.Cursors.Hand;
this.button10.Dock = System.Windows.Forms.DockStyle.Top;
this.button10.FlatAppearance.BorderSize = 0;
this.button10.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button10.Font = new System.Drawing.Font("微软雅黑", 11F);
this.button10.ForeColor = System.Drawing.Color.DimGray;
this.button10.Image = global::AIMS.Properties.Resources.;
this.button10.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.button10.Location = new System.Drawing.Point(0, 550);
this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(160, 50);
this.button10.TabIndex = 16;
this.button10.Text = " 安全核查";
this.button10.UseVisualStyleBackColor = false;
this.button10.Click += new System.EventHandler(this.button10_Click);
//
// frmAanesthesiaRecord // frmAanesthesiaRecord
// //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;

View File

@ -20,6 +20,8 @@ namespace AIMS.OperationAanesthesia
public frmSeleteRoom() public frmSeleteRoom()
{ {
InitializeComponent(); InitializeComponent();
panel1.Height = ControlExtension.SiteRooms.Count * 30 ;
this.Height = ControlExtension.SiteRooms.Count * 30 + 50;
} }
private void frmDeletePhysio_Load(object sender, EventArgs e) private void frmDeletePhysio_Load(object sender, EventArgs e)

View File

@ -47,6 +47,7 @@ namespace AIMS.OperationAanesthesia
// btnDelete // btnDelete
// //
this.btnDelete.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btnDelete.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnDelete.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.btnDelete.Location = new System.Drawing.Point(14, 274); this.btnDelete.Location = new System.Drawing.Point(14, 274);
this.btnDelete.Name = "btnDelete"; this.btnDelete.Name = "btnDelete";
this.btnDelete.Size = new System.Drawing.Size(86, 30); this.btnDelete.Size = new System.Drawing.Size(86, 30);
@ -57,6 +58,7 @@ namespace AIMS.OperationAanesthesia
// btnSave // btnSave
// //
this.btnSave.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btnSave.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnSave.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.btnSave.Location = new System.Drawing.Point(106, 274); this.btnSave.Location = new System.Drawing.Point(106, 274);
this.btnSave.Name = "btnSave"; this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(86, 30); this.btnSave.Size = new System.Drawing.Size(86, 30);

View File

@ -313,7 +313,7 @@ namespace AIMS.PublicUI.UI
object value = dgvDrugsSQ.Rows[e.RowIndex].Cells[e.ColumnIndex].Value; object value = dgvDrugsSQ.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
if (!((DataGridViewComboBoxCell)dgvDrugsSQ.Rows[e.RowIndex].Cells[e.ColumnIndex]).Items.Contains(value)) if (!((DataGridViewComboBoxCell)dgvDrugsSQ.Rows[e.RowIndex].Cells[e.ColumnIndex]).Items.Contains(value))
{ {
((DataGridViewComboBoxCell)dgvDrugsSQ.Rows[e.RowIndex].Cells[e.ColumnIndex]).Items.Add(value); //((DataGridViewComboBoxCell)dgvDrugsSQ.Rows[e.RowIndex].Cells[e.ColumnIndex]).Items.Add(value);
e.ThrowException = false; e.ThrowException = false;
} }
} }

View File

@ -111,11 +111,6 @@ namespace AIMSBLL
_record.InstrumentNurse = OperationDoingdt.Rows[0]["InstrumentNurseId"].ToString().Trim(); _record.InstrumentNurse = OperationDoingdt.Rows[0]["InstrumentNurseId"].ToString().Trim();
_record.TourNurse = OperationDoingdt.Rows[0]["TourNurseId"].ToString().Trim(); _record.TourNurse = OperationDoingdt.Rows[0]["TourNurseId"].ToString().Trim();
_record.OrtherDoctorId = OperationDoingdt.Rows[0]["OrtherDoctorId"].ToString().Trim(); _record.OrtherDoctorId = OperationDoingdt.Rows[0]["OrtherDoctorId"].ToString().Trim();
//_record.SpecialCase = OperationDoingdt.Rows[0]["SpecialCase"].ToString().Trim();
//if (_record.SpecialCase == null || _record.SpecialCase == "") _record.SpecialCase = "无";
//if (OperationDoingdt.Rows[0]["Fasting"].ToString() != "")
// _record.Fasting = int.Parse(OperationDoingdt.Rows[0]["Fasting"].ToString());
//_record.BloodType = OperationDoingdt.Rows[0]["BloodType"].ToString().Trim();
if (_record.SpecialCase == null || _record.SpecialCase == "") _record.SpecialCase = "无"; if (_record.SpecialCase == null || _record.SpecialCase == "") _record.SpecialCase = "无";
_record.OperationRoom = OperationDoingdt.Rows[0]["OperationRoom"].ToString().Trim(); _record.OperationRoom = OperationDoingdt.Rows[0]["OperationRoom"].ToString().Trim();
} }

View File

@ -15,9 +15,9 @@ namespace AIMSDAL
public static int AddTitleTime(int PatientId, int ApplyId, int RecoverId, int State, DateTime Time, int RoomId) public static int AddTitleTime(int PatientId, int ApplyId, int RecoverId, int State, DateTime Time, int RoomId)
{ {
string ApplyAnaesthesiaMethod = BApplyAnaesthesiaMethod.GetApplyAnaesthesiaMethod(ApplyId); string ApplyAnaesthesiaMethod = BApplyAnaesthesiaMethod.GetApplyAnaesthesiaMethod(ApplyId);
string strSql = "INSERT INTO OperationRecord(PatientId,OperationApplyId,RecoverId,[State],InRoomTime,OperatorNo,OperatorName,OperateDate,RoomId,AnaesthesiaMethodName)" + string strSql = "INSERT INTO OperationRecord(PatientId,OperationApplyId,RecoverId,[State],InRoomTime,OperatorNo,OperatorName,OperateDate,RoomId,AnaesthesiaMethodName,Fasting)" +
"VALUES (" + PatientId + "," + ApplyId + "," + RecoverId + ",'" + State + "','" + Time + "','" + AIMSExtension.PublicMethod.OperatorNo + "','" "VALUES (" + PatientId + "," + ApplyId + "," + RecoverId + ",'" + State + "','" + Time + "','" + AIMSExtension.PublicMethod.OperatorNo + "','"
+ AIMSExtension.PublicMethod.OperatorName + "','" + AIMSExtension.PublicMethod.SystemDate() + "','" + RoomId + "','" + ApplyAnaesthesiaMethod + "');select @@identity "; + AIMSExtension.PublicMethod.OperatorName + "','" + AIMSExtension.PublicMethod.SystemDate() + "','" + RoomId + "','" + ApplyAnaesthesiaMethod + "','是');select @@identity ";
return Convert.ToInt32(HelperDB.DbHelperSQL.ExecNonQuery(strSql)); return Convert.ToInt32(HelperDB.DbHelperSQL.ExecNonQuery(strSql));
} }

View File

@ -236,31 +236,7 @@ namespace DocumentManagement
string strH = hf == null ? "" : hf.Text; string strH = hf == null ? "" : hf.Text;
UpdateASA(Patient.ApplyId, strASA, strH); UpdateASA(Patient.ApplyId, strASA, strH);
} }
else if (XmlFileName == "麻醉术前访视评估记录单") else if (XmlFileName == "麻醉术前访视评估记录单" || XmlFileName == "麻醉术前访视评估单")
{
string asaname = "";
string niyme = "";
var asa = Document.RadioBoxes.ToArray().Where(x => x is XTextRadioBoxElement
&& (x as XTextRadioBoxElement).Name == "asa");
foreach (var item in asa)
{
if ((item as XTextRadioBoxElement).Checked == true)
{
asaname = item.Text;
}
}
var niy = Document.RadioBoxes.ToArray().Where(x => x is XTextRadioBoxElement
&& (x as XTextRadioBoxElement).Name == "xgnfj");
foreach (var item in niy)
{
if ((item as XTextRadioBoxElement).Checked == true)
{
niyme = item.Text;
}
}
UpdateASA(Patient.ApplyId, asaname, niyme);
}
else if (XmlFileName == "麻醉术前访视评估记录")
{ {
string asaname = ""; string asaname = "";
string niyme = ""; string niyme = "";

View File

@ -48,6 +48,9 @@ namespace DocumentManagement.UI
string SelectedText = ((System.Windows.Forms.TextBoxBase)((System.Windows.Forms.DataGridView)sender).EditingControl).SelectedText; string SelectedText = ((System.Windows.Forms.TextBoxBase)((System.Windows.Forms.DataGridView)sender).EditingControl).SelectedText;
if (SelectedText != "") if (SelectedText != "")
txtSelText.Text = SelectedText; txtSelText.Text = SelectedText;
else
txtSelText.Text = "-";
} }
} }
} }

View File

@ -161,6 +161,9 @@ namespace DrawGraph
case "OperationRecord.Operation": //手术名称 case "OperationRecord.Operation": //手术名称
ope_Click(aEdit1, e); ope_Click(aEdit1, e);
break; break;
case "OperationRecord.Diagnose": //手术名称
opeDisease_Click(aEdit1, e);
break;
case "OperationRecord.OrtherDoctorId": case "OperationRecord.OrtherDoctorId":
Worker_Click(aEdit1, e, 4); Worker_Click(aEdit1, e, 4);
break; break;
@ -395,6 +398,27 @@ namespace DrawGraph
AIMSExtension.PublicMethod.WriteLog(ex); AIMSExtension.PublicMethod.WriteLog(ex);
} }
} }
private void opeDisease_Click(AbleEditPackObj sender, EventArgs e)
{
try
{
AbleEditPackObj ableEdit = sender;
if (ableEdit == null) return;
if (myOpeRecord == null) return;
if (ableEdit.ControlType == EControlType.Directory)
{
SelDict(sender, e, ableEdit.ControlTitleText);
}
else if (ableEdit.ControlType == EControlType.Directorys)
{
SetDirectorysMethod(ableEdit);
}
}
catch (Exception ex)
{
AIMSExtension.PublicMethod.WriteLog(ex);
}
}
private void Anaes_Click(AbleEditPackObj sender, EventArgs e) private void Anaes_Click(AbleEditPackObj sender, EventArgs e)
{ {
try try

View File

@ -153,6 +153,10 @@ namespace DrawGraph
{ {
i += AddOperation(_operationRecord, _operationRecord.Operation); i += AddOperation(_operationRecord, _operationRecord.Operation);
} }
else if (items[1] == "Diagnose")
{
i += AddDiagnose(_operationRecord, _operationRecord.Diagnose);
}
else if (items[1] == "Applyoperation") else if (items[1] == "Applyoperation")
{ {
i += AddApplyOperation(_operationRecord, _operationRecord.Applyoperation); i += AddApplyOperation(_operationRecord, _operationRecord.Applyoperation);
@ -370,6 +374,38 @@ namespace DrawGraph
} }
return i; return i;
} }
public static int AddDiagnose(OperationRecord _operationRecord, string Diagnose)
{
int i = 0;
if (Diagnose.Trim() == "" || Diagnose == ",")
{
DeleteDiagnose(_operationRecord.PatientId.Value);
i++;
}
else
{
DeleteDiagnose(_operationRecord.PatientId.Value);
i++;
string[] Operationstr = Diagnose.Split(',');
foreach (string DiagnoseId in Operationstr)
{
StringBuilder strSql = new StringBuilder();
strSql.Append("insert into [FactDiagnoseInfo](");
strSql.Append("PatientId,ApplyId,[DiagnoseId],OperatorNo,OperatorName,OperateDate ");
strSql.Append(")");
strSql.Append(" values (");
strSql.Append("" + _operationRecord.PatientId + ",");
strSql.Append("" + _operationRecord.OperationApplyId + ",");
strSql.Append("" + DiagnoseId + ",");
strSql.Append("'" + AIMSExtension.PublicMethod.OperatorNo + "',");
strSql.Append("'" + AIMSExtension.PublicMethod.OperatorName + "',");
strSql.Append("'" + DateTime.Now + "'");
strSql.Append(")");
i += HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
}
}
return i;
}
public static int AddApplyOperation(OperationRecord _operationRecord, string Operation) public static int AddApplyOperation(OperationRecord _operationRecord, string Operation)
{ {
int i = 0; int i = 0;
@ -590,6 +626,13 @@ namespace DrawGraph
strSql.Append(" where PatientId=" + PatientId + " "); strSql.Append(" where PatientId=" + PatientId + " ");
HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString()); HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
} }
public static void DeleteDiagnose(int PatientId)
{
StringBuilder strSql = new StringBuilder();
strSql.Append("delete FactDiagnoseInfo ");
strSql.Append(" where PatientId=" + PatientId + " ");
HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
}
public static void DeleteOperationSite(int PatientId) public static void DeleteOperationSite(int PatientId)
{ {
StringBuilder strSql = new StringBuilder(); StringBuilder strSql = new StringBuilder();

View File

@ -115,10 +115,14 @@ namespace DrawGraph
font = new System.Drawing.Font("宋体", 5f); font = new System.Drawing.Font("宋体", 5f);
} }
LinesPackObj pack2 = template.GetPackObjectOTag<LinesPackObj>("MonitorManage_LinesPackObj_9");
int RowsCount = 4;
if (pack2 != null)
RowsCount = Convert.ToInt32(pack2.XPageSpan / pack2.XMajorGridStep);
//pan.Controls.Clear(); //pan.Controls.Clear();
ToolTip toolTip1 = new System.Windows.Forms.ToolTip(); ToolTip toolTip1 = new System.Windows.Forms.ToolTip();
int Width = pan.Width; int Width = pan.Width;
int Height = pan.Height / 4; int Height = pan.Height / RowsCount;
List<Panel> panPanels = new List<Panel>(); List<Panel> panPanels = new List<Panel>();
//循环加载数值生命体征 //循环加载数值生命体征
for (int x = 0; x < myOpeRecord.PhysioConfigList.Count; x++) for (int x = 0; x < myOpeRecord.PhysioConfigList.Count; x++)
@ -196,7 +200,7 @@ namespace DrawGraph
System.Windows.Forms.Panel wmpanel = new System.Windows.Forms.Panel(); System.Windows.Forms.Panel wmpanel = new System.Windows.Forms.Panel();
wmpanel.Size = pan.Size; wmpanel.Size = pan.Size;
wmpanel.Dock = DockStyle.Fill; wmpanel.Dock = DockStyle.Fill;
for (int i = 3; i >= 0; i--) for (int i = RowsCount - 1; i >= 0; i--)
{ {
if (i > panPanels.Count - 1) if (i > panPanels.Count - 1)
{ {

View File

@ -17,7 +17,7 @@ namespace DrawGraph
/// 药品区域 /// 药品区域
/// </summary> /// </summary>
public RectangleFramePackObj sapPpack; public RectangleFramePackObj sapPpack;
public LinesPackObj lines ; public LinesPackObj lines;
public LinePackObj H3pack; public LinePackObj H3pack;
public LinePackObj H5pack; public LinePackObj H5pack;
public int RowsCount; public int RowsCount;
@ -52,7 +52,7 @@ namespace DrawGraph
H3pack = template.GetPackObjectOTag<LinePackObj>("OutputManage_LinePackObj_11"); H3pack = template.GetPackObjectOTag<LinePackObj>("OutputManage_LinePackObj_11");
H5pack = template.GetPackObjectOTag<LinePackObj>("OutputManage_LinePackObj_5"); H5pack = template.GetPackObjectOTag<LinePackObj>("OutputManage_LinePackObj_5");
sapPpack = template.GetPackObjectOTag<RectangleFramePackObj>("OutputManage_RectangleFramePackObj_10"); sapPpack = template.GetPackObjectOTag<RectangleFramePackObj>("OutputManage_RectangleFramePackObj_10");
lines = template.GetPackObjectOTag<LinesPackObj >("OutputManage_LinesPackObj_15"); lines = template.GetPackObjectOTag<LinesPackObj>("OutputManage_LinesPackObj_15");
RowsCount = Convert.ToInt32(lines.XPageSpan / lines.XMajorGridStep); RowsCount = Convert.ToInt32(lines.XPageSpan / lines.XMajorGridStep);
} }
#endregion #endregion
@ -158,7 +158,7 @@ namespace DrawGraph
{ {
FactOutputLiquids addDrug1 = _FactOutputLiquidsList[j]; FactOutputLiquids addDrug1 = _FactOutputLiquidsList[j];
//如果加药品ID相同并且加加药ID不同则认为加了同一种加药 //如果加药品ID相同并且加加药ID不同则认为加了同一种加药
if (addDrug1.Equal(temp) ) if (addDrug1.Equal(temp))
{ {
addDrug1.clearDNAndDT(ZedControl); addDrug1.clearDNAndDT(ZedControl);
//因为相同则取得相同对象的Y,为当前的对象的高度 //因为相同则取得相同对象的Y,为当前的对象的高度
@ -192,15 +192,33 @@ namespace DrawGraph
try try
{ {
double allOutDose = 0; double allOutDose = 0;
double nlDose = 0;
double sxDose = 0;
myOpeRecord.FactOutputLiquidsList.ForEach(item => myOpeRecord.FactOutputLiquidsList.ForEach(item =>
{ {
if (item.DosageUnit.Trim() == "mL" || item.DosageUnit.Trim() == "ml" || item.DosageUnit.Trim() == "ML") if (item.DosageUnit.Trim() == "mL" || item.DosageUnit.Trim() == "ml" || item.DosageUnit.Trim() == "ML")
{ {
Double val = Convert.ToDouble(item.Dosage); Double val = Convert.ToDouble(item.Dosage);
allOutDose += val; allOutDose += val;
if (item.OutputLiquidsName == "尿量")
nlDose += val;
else if (item.OutputLiquidsName == "失血")
sxDose += val;
} }
}); });
template.SetObjValue(myOpeRecord, "OperationRecord.OutAmount", allOutDose.ToString(), allOutDose.ToString(), allOutDose.ToString() != myOpeRecord.OutAmount ? true : false); template.SetObjValue(myOpeRecord, "OperationRecord.OutAmount", allOutDose.ToString(), allOutDose.ToString(), allOutDose.ToString() != myOpeRecord.OutAmount ? true : false);
string outStr = "";
if (nlDose > 0)
{
outStr += "尿量 " + nlDose + " ml\n";
}
if (sxDose > 0)
{
outStr += "失血 " + sxDose + " ml\n";
}
if (outStr != "")
template.SetObjValue(myOpeRecord, "OperationRecord.Crystal", outStr, outStr, false);
} }
catch (Exception ex) catch (Exception ex)
{ {
@ -223,7 +241,7 @@ namespace DrawGraph
{ {
dose += temp.DosageUnit; dose += temp.DosageUnit;
} }
DrugListstr.Add(string.Format("({0}){1} {2} {3}{4}{5}", i + 1, (temp.BeginTime == temp.EndTime) ? temp.BeginTime.ToShortTimeString() : temp.BeginTime.ToShortTimeString() + "->" + temp.EndTime.ToShortTimeString(), temp.OutputLiquidsName.Trim(), dose, "","")); DrugListstr.Add(string.Format("({0}){1} {2} {3}{4}{5}", i + 1, (temp.BeginTime == temp.EndTime) ? temp.BeginTime.ToShortTimeString() : temp.BeginTime.ToShortTimeString() + "->" + temp.EndTime.ToShortTimeString(), temp.OutputLiquidsName.Trim(), dose, "", ""));
//DrugListstr.Append(" "); //DrugListstr.Append(" ");
} }
#endregion #endregion