术前禁食默认是
增加术后诊断 术后诊断 手术方式 麻醉方法 麻醉药持续 20ml 30毫升一行 虚线稍微粗一点 总出量单独表达尿量和出血
This commit is contained in:
parent
96c82888bb
commit
85ae9e317a
@ -33,6 +33,7 @@
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.panel3 = 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.button7 = new System.Windows.Forms.Button();
|
||||
this.btnCancelIn = new System.Windows.Forms.Button();
|
||||
@ -131,7 +132,6 @@
|
||||
this.txtInRoom1 = new System.Windows.Forms.Button();
|
||||
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.button10 = new System.Windows.Forms.Button();
|
||||
this.panel3.SuspendLayout();
|
||||
this.panel14.SuspendLayout();
|
||||
this.panel4.SuspendLayout();
|
||||
@ -217,6 +217,27 @@
|
||||
this.panel14.Size = new System.Drawing.Size(160, 931);
|
||||
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
|
||||
//
|
||||
this.button8.BackColor = System.Drawing.Color.Transparent;
|
||||
@ -1968,26 +1989,6 @@
|
||||
this.flowLayoutPanel1.Size = new System.Drawing.Size(147, 71);
|
||||
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
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
|
||||
@ -20,6 +20,8 @@ namespace AIMS.OperationAanesthesia
|
||||
public frmSeleteRoom()
|
||||
{
|
||||
InitializeComponent();
|
||||
panel1.Height = ControlExtension.SiteRooms.Count * 30 ;
|
||||
this.Height = ControlExtension.SiteRooms.Count * 30 + 50;
|
||||
}
|
||||
|
||||
private void frmDeletePhysio_Load(object sender, EventArgs e)
|
||||
|
||||
@ -47,6 +47,7 @@ namespace AIMS.OperationAanesthesia
|
||||
// btnDelete
|
||||
//
|
||||
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.Name = "btnDelete";
|
||||
this.btnDelete.Size = new System.Drawing.Size(86, 30);
|
||||
@ -57,6 +58,7 @@ namespace AIMS.OperationAanesthesia
|
||||
// btnSave
|
||||
//
|
||||
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.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(86, 30);
|
||||
|
||||
@ -313,7 +313,7 @@ namespace AIMS.PublicUI.UI
|
||||
object value = dgvDrugsSQ.Rows[e.RowIndex].Cells[e.ColumnIndex].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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -111,11 +111,6 @@ namespace AIMSBLL
|
||||
_record.InstrumentNurse = OperationDoingdt.Rows[0]["InstrumentNurseId"].ToString().Trim();
|
||||
_record.TourNurse = OperationDoingdt.Rows[0]["TourNurseId"].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 = "无";
|
||||
_record.OperationRoom = OperationDoingdt.Rows[0]["OperationRoom"].ToString().Trim();
|
||||
}
|
||||
|
||||
@ -15,9 +15,9 @@ namespace AIMSDAL
|
||||
public static int AddTitleTime(int PatientId, int ApplyId, int RecoverId, int State, DateTime Time, int RoomId)
|
||||
{
|
||||
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 + "','"
|
||||
+ 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));
|
||||
|
||||
}
|
||||
|
||||
@ -236,31 +236,7 @@ namespace DocumentManagement
|
||||
string strH = hf == null ? "" : hf.Text;
|
||||
UpdateASA(Patient.ApplyId, strASA, strH);
|
||||
}
|
||||
else if (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 == "麻醉术前访视评估记录")
|
||||
else if (XmlFileName == "麻醉术前访视评估记录单" || XmlFileName == "麻醉术前访视评估单")
|
||||
{
|
||||
string asaname = "";
|
||||
string niyme = "";
|
||||
|
||||
@ -48,6 +48,9 @@ namespace DocumentManagement.UI
|
||||
string SelectedText = ((System.Windows.Forms.TextBoxBase)((System.Windows.Forms.DataGridView)sender).EditingControl).SelectedText;
|
||||
if (SelectedText != "")
|
||||
txtSelText.Text = SelectedText;
|
||||
else
|
||||
txtSelText.Text = "-";
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -161,6 +161,9 @@ namespace DrawGraph
|
||||
case "OperationRecord.Operation": //手术名称
|
||||
ope_Click(aEdit1, e);
|
||||
break;
|
||||
case "OperationRecord.Diagnose": //手术名称
|
||||
opeDisease_Click(aEdit1, e);
|
||||
break;
|
||||
case "OperationRecord.OrtherDoctorId":
|
||||
Worker_Click(aEdit1, e, 4);
|
||||
break;
|
||||
@ -395,6 +398,27 @@ namespace DrawGraph
|
||||
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)
|
||||
{
|
||||
try
|
||||
|
||||
@ -153,6 +153,10 @@ namespace DrawGraph
|
||||
{
|
||||
i += AddOperation(_operationRecord, _operationRecord.Operation);
|
||||
}
|
||||
else if (items[1] == "Diagnose")
|
||||
{
|
||||
i += AddDiagnose(_operationRecord, _operationRecord.Diagnose);
|
||||
}
|
||||
else if (items[1] == "Applyoperation")
|
||||
{
|
||||
i += AddApplyOperation(_operationRecord, _operationRecord.Applyoperation);
|
||||
@ -370,6 +374,38 @@ namespace DrawGraph
|
||||
}
|
||||
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)
|
||||
{
|
||||
int i = 0;
|
||||
@ -590,6 +626,13 @@ namespace DrawGraph
|
||||
strSql.Append(" where PatientId=" + PatientId + " ");
|
||||
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)
|
||||
{
|
||||
StringBuilder strSql = new StringBuilder();
|
||||
|
||||
@ -115,10 +115,14 @@ namespace DrawGraph
|
||||
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();
|
||||
ToolTip toolTip1 = new System.Windows.Forms.ToolTip();
|
||||
int Width = pan.Width;
|
||||
int Height = pan.Height / 4;
|
||||
int Height = pan.Height / RowsCount;
|
||||
List<Panel> panPanels = new List<Panel>();
|
||||
//循环加载数值生命体征
|
||||
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();
|
||||
wmpanel.Size = pan.Size;
|
||||
wmpanel.Dock = DockStyle.Fill;
|
||||
for (int i = 3; i >= 0; i--)
|
||||
for (int i = RowsCount - 1; i >= 0; i--)
|
||||
{
|
||||
if (i > panPanels.Count - 1)
|
||||
{
|
||||
|
||||
@ -192,15 +192,33 @@ namespace DrawGraph
|
||||
try
|
||||
{
|
||||
double allOutDose = 0;
|
||||
double nlDose = 0;
|
||||
double sxDose = 0;
|
||||
myOpeRecord.FactOutputLiquidsList.ForEach(item =>
|
||||
{
|
||||
if (item.DosageUnit.Trim() == "mL" || item.DosageUnit.Trim() == "ml" || item.DosageUnit.Trim() == "ML")
|
||||
{
|
||||
Double val = Convert.ToDouble(item.Dosage);
|
||||
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);
|
||||
|
||||
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)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user