1103测试文档开发修改

This commit is contained in:
leomo 2022-11-03 23:13:29 +08:00
parent dd4b0f5664
commit c422f19da1
23 changed files with 1343 additions and 1036 deletions

View File

@ -31,7 +31,7 @@ namespace AIMS
txtNo.Focus();
#if DEBUG
txtNo.Text = "admin";
txtPassWord.Text = "123";
txtPassWord.Text = "1";
btnOk_Click(null, null);
#endif
}

View File

@ -173,6 +173,10 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
zgcAnaesRecord.Focus();
}
templateManage2.BindOperationRecordValueAll(templateManage2.OpeRecord);
templateManage2.Bind();
zgcAnaesRecord2.Refresh();
Panel panel = zgcAnaesRecord.Parent as Panel;
panel.VerticalScroll.Value = 0;
Panel panel2 = zgcAnaesRecord2.Parent as Panel;
@ -211,6 +215,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
tb.Items.Insert(0, settingBtn);
}
}
pdg.PrintPreviewControl.Columns = 2;
pdg.Width = zgcAnaesRecord.Width + 50;
pdg.ClientSize = new System.Drawing.Size(zgcAnaesRecord.Width, zgcAnaesRecord.Height);
Form f = (Form)pdg;
@ -799,19 +804,23 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
#region
private void panel8_Scroll(object sender, ScrollEventArgs e)
{
if(templateManage!=null)
templateManage.SetPYL();
}
private void panel82_Scroll(object sender, ScrollEventArgs e)
{
if(templateManage2!=null)
templateManage2.SetPYL();
}
private void panel8_MouseWheel(object sender, MouseEventArgs e)
{
if(templateManage!=null)
templateManage.SetPYL();
}
private void panel82_MouseWheel(object sender, MouseEventArgs e)
{
if(templateManage2!=null)
templateManage2.SetPYL();
}
private void plRefresh_Click(object sender, EventArgs e)

View File

@ -11,6 +11,8 @@ using System.Windows.Forms;
using AIMSModel;
using AIMSBLL;
using DCSoftDotfuscate;
using System.Net;
using AIMSExtension;
namespace AIMS.OperationDoing.AnasRecordBill.UI
{
@ -34,6 +36,17 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
cboRoom.DisplayMember = "Name";
cboRoom.ValueMember = "Id";
//判断如果当前手术间编号不为空,则显示当前手术间
OperationRoom oprm = GetOperationRoom(rooms);
if (oprm != null && oprm.Id.Value > 0)
{
cboRoom.SelectedValue = oprm.Id.Value;
cboRoom.Text = oprm.Name.ToString();
}
if (cboRoom.Text == "" && PublicMethod.SelectRoom != 0)
{
cboRoom.SelectedValue = PublicMethod.SelectRoom;
}
FillDgv();
this.cboRoom.SelectedIndexChanged += new System.EventHandler(this.cboRoom_SelectedIndexChanged);
@ -205,7 +218,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
uc.buttonX2.Text = "取消手术";
uc.buttonX1.Visible = true;
uc.buttonX2.Visible = true;
uc.BackColor = Color.OldLace;
uc.panelExMain.Style.BackColor1.Color = Color.OldLace;
if (isMainOpen == false)
{
@ -249,6 +262,36 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
AIMSExtension.PublicMethod.WriteLog(ex);
}
}
public OperationRoom GetOperationRoom(List<OperationRoom> list)
{
try
{
//得到计算机名
string strPcName = Dns.GetHostName();
//得到本机IP地址数组
IPHostEntry ipEntry = Dns.GetHostEntry(strPcName);
//遍历数组
foreach (OperationRoom room in list)
{
foreach (var IPadd in ipEntry.AddressList)
{
//判断当前字符串是否为正确IP地址
if (PublicMethod.IsRightIP(IPadd.ToString()))
{
if (room.Ip == IPadd.ToString() )
{
return room;
}
}
}
}
return null;
}
catch (Exception)
{
return null;
}
}
private void Uc_QxRoom(ucPatientCard uc, int RecorId, int PatientId, int applyId)
{

View File

@ -117,7 +117,7 @@ namespace AIMS.OperationDoing.AnasRecordBill
TxtAge.Text = _record.Age;
//txtEndemicArea.Text = _record.EndemicArea;
TxtBed.Text = _record.Bed;
txtOperationType.Text = _record.OperationPriority;
txtOperationType.Text = _record.OperationType;
txtOperation.Text = DBManage.GetDictionaryValuesById(_record.Operation, "手术");
txtOpeRoom.Text = _record.InRoomTime.Value.ToString("yyyy-MM-dd");

View File

@ -28,136 +28,25 @@
/// </summary>
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
this.lbaCon = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.labTabindex = new System.Windows.Forms.Label();
this.labelName = new System.Windows.Forms.Label();
this.lblNurse2 = new System.Windows.Forms.Label();
this.lblNurse = new System.Windows.Forms.Label();
this.lblAnesDoctors = new System.Windows.Forms.Label();
this.lblOpeDoctors = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.buttonX2 = new DevComponents.DotNetBar.ButtonX();
this.buttonX1 = new DevComponents.DotNetBar.ButtonX();
this.label2 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.buttonX1 = new DevComponents.DotNetBar.ButtonX();
this.buttonX2 = new DevComponents.DotNetBar.ButtonX();
this.panel1 = new System.Windows.Forms.Panel();
this.labelName = new System.Windows.Forms.Label();
this.labTabindex = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.lbaCon = new System.Windows.Forms.Label();
this.lblOpeDoctors = new System.Windows.Forms.Label();
this.lblAnesDoctors = new System.Windows.Forms.Label();
this.lblNurse = new System.Windows.Forms.Label();
this.lblNurse2 = new System.Windows.Forms.Label();
this.panelExMain = new DevComponents.DotNetBar.PanelEx();
this.panel2.SuspendLayout();
this.panel1.SuspendLayout();
this.panelExMain.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.Controls.Add(this.lbaCon);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.labTabindex);
this.panel1.Controls.Add(this.labelName);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(245, 37);
this.panel1.TabIndex = 0;
this.panel1.Click += new System.EventHandler(this.ucPatientCard_Click);
//
// lbaCon
//
this.lbaCon.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbaCon.ForeColor = System.Drawing.Color.Purple;
this.lbaCon.Location = new System.Drawing.Point(40, 10);
this.lbaCon.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lbaCon.Name = "lbaCon";
this.lbaCon.Size = new System.Drawing.Size(36, 20);
this.lbaCon.TabIndex = 8;
this.lbaCon.Text = "感染";
this.lbaCon.Visible = false;
//
// label3
//
this.label3.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(163, 10);
this.label3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(79, 20);
this.label3.TabIndex = 7;
this.label3.Text = "男 30岁";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label3.Click += new System.EventHandler(this.labTabindex_Click);
//
// labTabindex
//
this.labTabindex.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labTabindex.Location = new System.Drawing.Point(69, 10);
this.labTabindex.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.labTabindex.Name = "labTabindex";
this.labTabindex.Size = new System.Drawing.Size(95, 20);
this.labTabindex.TabIndex = 7;
this.labTabindex.Text = "患者1";
this.labTabindex.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labTabindex.Click += new System.EventHandler(this.labTabindex_Click);
//
// labelName
//
this.labelName.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labelName.ForeColor = System.Drawing.Color.Red;
this.labelName.Location = new System.Drawing.Point(0, 10);
this.labelName.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.labelName.Name = "labelName";
this.labelName.Size = new System.Drawing.Size(36, 20);
this.labelName.TabIndex = 6;
this.labelName.Text = "急诊";
this.labelName.Click += new System.EventHandler(this.labTabindex_Click);
//
// lblNurse2
//
this.lblNurse2.BackColor = System.Drawing.Color.Transparent;
this.lblNurse2.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse2.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblNurse2.Location = new System.Drawing.Point(0, 88);
this.lblNurse2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse2.Name = "lblNurse2";
this.lblNurse2.Size = new System.Drawing.Size(245, 17);
this.lblNurse2.TabIndex = 7;
this.lblNurse2.Text = "巡回护士";
this.lblNurse2.Click += new System.EventHandler(this.labTabindex_Click);
//
// lblNurse
//
this.lblNurse.BackColor = System.Drawing.Color.Transparent;
this.lblNurse.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblNurse.Location = new System.Drawing.Point(0, 71);
this.lblNurse.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse.Name = "lblNurse";
this.lblNurse.Size = new System.Drawing.Size(245, 17);
this.lblNurse.TabIndex = 6;
this.lblNurse.Text = "洗手护士";
this.lblNurse.Click += new System.EventHandler(this.labTabindex_Click);
//
// lblAnesDoctors
//
this.lblAnesDoctors.BackColor = System.Drawing.Color.Transparent;
this.lblAnesDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblAnesDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblAnesDoctors.Location = new System.Drawing.Point(0, 54);
this.lblAnesDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblAnesDoctors.Name = "lblAnesDoctors";
this.lblAnesDoctors.Size = new System.Drawing.Size(245, 17);
this.lblAnesDoctors.TabIndex = 5;
this.lblAnesDoctors.Text = "麻醉医生";
this.lblAnesDoctors.Click += new System.EventHandler(this.labTabindex_Click);
//
// lblOpeDoctors
//
this.lblOpeDoctors.BackColor = System.Drawing.Color.Transparent;
this.lblOpeDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblOpeDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblOpeDoctors.Location = new System.Drawing.Point(0, 37);
this.lblOpeDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblOpeDoctors.Name = "lblOpeDoctors";
this.lblOpeDoctors.Size = new System.Drawing.Size(245, 17);
this.lblOpeDoctors.TabIndex = 4;
this.lblOpeDoctors.Text = "手术名称";
this.lblOpeDoctors.Click += new System.EventHandler(this.labTabindex_Click);
//
// panel2
//
this.panel2.Controls.Add(this.buttonX2);
@ -167,33 +56,9 @@
this.panel2.Location = new System.Drawing.Point(0, 113);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(245, 37);
this.panel2.TabIndex = 8;
this.panel2.TabIndex = 14;
this.panel2.Click += new System.EventHandler(this.labTabindex_Click);
//
// buttonX2
//
this.buttonX2.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX2.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.buttonX2.Location = new System.Drawing.Point(170, 7);
this.buttonX2.Name = "buttonX2";
this.buttonX2.Size = new System.Drawing.Size(63, 23);
this.buttonX2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.buttonX2.TabIndex = 7;
this.buttonX2.Text = "取消手术";
this.buttonX2.Click += new System.EventHandler(this.buttonX2_Click);
//
// buttonX1
//
this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.buttonX1.Location = new System.Drawing.Point(101, 7);
this.buttonX1.Name = "buttonX1";
this.buttonX1.Size = new System.Drawing.Size(63, 23);
this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.buttonX1.TabIndex = 7;
this.buttonX1.Text = "继续手术";
this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click);
//
// label2
//
this.label2.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@ -206,38 +71,199 @@
this.label2.Text = "状态:手术中";
this.label2.Click += new System.EventHandler(this.labTabindex_Click);
//
// buttonX1
//
this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.buttonX1.Location = new System.Drawing.Point(101, 7);
this.buttonX1.Name = "buttonX1";
this.buttonX1.Size = new System.Drawing.Size(63, 23);
this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.buttonX1.TabIndex = 7;
this.buttonX1.Text = "继续手术";
this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click);
//
// buttonX2
//
this.buttonX2.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX2.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.buttonX2.Location = new System.Drawing.Point(170, 7);
this.buttonX2.Name = "buttonX2";
this.buttonX2.Size = new System.Drawing.Size(63, 23);
this.buttonX2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.buttonX2.TabIndex = 7;
this.buttonX2.Text = "取消手术";
this.buttonX2.Click += new System.EventHandler(this.buttonX2_Click);
//
// panel1
//
this.panel1.Controls.Add(this.lbaCon);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.labTabindex);
this.panel1.Controls.Add(this.labelName);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(245, 37);
this.panel1.TabIndex = 9;
this.panel1.Click += new System.EventHandler(this.labTabindex_Click);
//
// labelName
//
this.labelName.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labelName.ForeColor = System.Drawing.Color.Red;
this.labelName.Location = new System.Drawing.Point(0, 10);
this.labelName.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.labelName.Name = "labelName";
this.labelName.Size = new System.Drawing.Size(36, 20);
this.labelName.TabIndex = 6;
this.labelName.Text = "急诊";
this.labelName.Click += new System.EventHandler(this.labTabindex_Click);
//
// labTabindex
//
this.labTabindex.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labTabindex.Location = new System.Drawing.Point(69, 10);
this.labTabindex.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.labTabindex.Name = "labTabindex";
this.labTabindex.Size = new System.Drawing.Size(95, 20);
this.labTabindex.TabIndex = 7;
this.labTabindex.Text = "患者1";
this.labTabindex.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labTabindex.Click += new System.EventHandler(this.labTabindex_Click);
//
// label3
//
this.label3.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(163, 10);
this.label3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(79, 20);
this.label3.TabIndex = 7;
this.label3.Text = "男 30岁";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label3.Click += new System.EventHandler(this.labTabindex_Click);
//
// lbaCon
//
this.lbaCon.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbaCon.ForeColor = System.Drawing.Color.Purple;
this.lbaCon.Location = new System.Drawing.Point(40, 10);
this.lbaCon.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lbaCon.Name = "lbaCon";
this.lbaCon.Size = new System.Drawing.Size(36, 20);
this.lbaCon.TabIndex = 8;
this.lbaCon.Text = "感染";
this.lbaCon.Visible = false;
this.lbaCon.Click += new System.EventHandler(this.labTabindex_Click);
//
// lblOpeDoctors
//
this.lblOpeDoctors.BackColor = System.Drawing.Color.Transparent;
this.lblOpeDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblOpeDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblOpeDoctors.Location = new System.Drawing.Point(0, 37);
this.lblOpeDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblOpeDoctors.Name = "lblOpeDoctors";
this.lblOpeDoctors.Size = new System.Drawing.Size(245, 19);
this.lblOpeDoctors.TabIndex = 15;
this.lblOpeDoctors.Text = "手术名称";
this.lblOpeDoctors.Click += new System.EventHandler(this.labTabindex_Click);
//
// lblAnesDoctors
//
this.lblAnesDoctors.BackColor = System.Drawing.Color.Transparent;
this.lblAnesDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblAnesDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblAnesDoctors.Location = new System.Drawing.Point(0, 56);
this.lblAnesDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblAnesDoctors.Name = "lblAnesDoctors";
this.lblAnesDoctors.Size = new System.Drawing.Size(245, 19);
this.lblAnesDoctors.TabIndex = 16;
this.lblAnesDoctors.Text = "麻醉医生";
this.lblAnesDoctors.Click += new System.EventHandler(this.labTabindex_Click);
//
// lblNurse
//
this.lblNurse.BackColor = System.Drawing.Color.Transparent;
this.lblNurse.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblNurse.Location = new System.Drawing.Point(0, 75);
this.lblNurse.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse.Name = "lblNurse";
this.lblNurse.Size = new System.Drawing.Size(245, 19);
this.lblNurse.TabIndex = 17;
this.lblNurse.Text = "洗手护士";
this.lblNurse.Click += new System.EventHandler(this.labTabindex_Click);
//
// lblNurse2
//
this.lblNurse2.BackColor = System.Drawing.Color.Transparent;
this.lblNurse2.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse2.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblNurse2.Location = new System.Drawing.Point(0, 94);
this.lblNurse2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse2.Name = "lblNurse2";
this.lblNurse2.Size = new System.Drawing.Size(245, 19);
this.lblNurse2.TabIndex = 18;
this.lblNurse2.Text = "巡回护士";
this.lblNurse2.Click += new System.EventHandler(this.labTabindex_Click);
//
// panelExMain
//
this.panelExMain.CanvasColor = System.Drawing.SystemColors.Control;
this.panelExMain.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.panelExMain.Controls.Add(this.lblNurse2);
this.panelExMain.Controls.Add(this.lblNurse);
this.panelExMain.Controls.Add(this.lblAnesDoctors);
this.panelExMain.Controls.Add(this.lblOpeDoctors);
this.panelExMain.Controls.Add(this.panel1);
this.panelExMain.Controls.Add(this.panel2);
this.panelExMain.DisabledBackColor = System.Drawing.Color.Empty;
this.panelExMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelExMain.Location = new System.Drawing.Point(0, 0);
this.panelExMain.Name = "panelExMain";
this.panelExMain.Size = new System.Drawing.Size(245, 150);
this.panelExMain.Style.Alignment = System.Drawing.StringAlignment.Center;
this.panelExMain.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.panelExMain.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
this.panelExMain.Style.Border = DevComponents.DotNetBar.eBorderType.DoubleLine;
this.panelExMain.Style.BorderColor.Color = System.Drawing.Color.DodgerBlue;
this.panelExMain.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot;
this.panelExMain.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.panelExMain.Style.GradientAngle = 90;
this.panelExMain.TabIndex = 0;
this.panelExMain.Click += new System.EventHandler(this.labTabindex_Click);
//
// ucPatientCard
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.WhiteSmoke;
this.Controls.Add(this.panel2);
this.Controls.Add(this.lblNurse2);
this.Controls.Add(this.lblNurse);
this.Controls.Add(this.lblAnesDoctors);
this.Controls.Add(this.lblOpeDoctors);
this.Controls.Add(this.panel1);
this.Controls.Add(this.panelExMain);
this.Name = "ucPatientCard";
this.Size = new System.Drawing.Size(245, 150);
this.panel1.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.panelExMain.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label lblNurse2;
private System.Windows.Forms.Label lblNurse;
private System.Windows.Forms.Label lblOpeDoctors;
public System.Windows.Forms.Label labelName;
public System.Windows.Forms.Label labTabindex;
private System.Windows.Forms.Panel panel2;
public System.Windows.Forms.Label label2;
public System.Windows.Forms.Label label3;
public DevComponents.DotNetBar.ButtonX buttonX2;
public DevComponents.DotNetBar.ButtonX buttonX1;
public System.Windows.Forms.Label label2;
private System.Windows.Forms.Panel panel1;
public System.Windows.Forms.Label lbaCon;
public System.Windows.Forms.Label label3;
public System.Windows.Forms.Label labTabindex;
public System.Windows.Forms.Label labelName;
private System.Windows.Forms.Label lblOpeDoctors;
public System.Windows.Forms.Label lblAnesDoctors;
private System.Windows.Forms.Label lblNurse;
private System.Windows.Forms.Label lblNurse2;
public DevComponents.DotNetBar.PanelEx panelExMain;
}
}

View File

@ -58,41 +58,37 @@ namespace AIMS.OremrUserControl
label2.Text = "状态:" + dr["State"].ToString();
if (dr["State"].ToString() == "手术中")
{
this.BackColor = Color.OldLace;
panelExMain.Style.BackColor1.Color = Color.OldLace;
buttonX1.Text = "继续手术";
buttonX2.Text = "取消手术";
}
else if (dr["State"].ToString() == "已排程" || dr["State"].ToString() == "已访视")
{
this.BackColor = Color.WhiteSmoke;
panelExMain.Style.BackColor1.Color = Color.WhiteSmoke;
buttonX1.Text = "转入术间";
buttonX2.Visible = false;
}
else if (dr["State"].ToString() == "已审核" || dr["State"].ToString() == "预排程")
{
this.BackColor = Color.WhiteSmoke;
panelExMain.Style.BackColor1.Color = Color.WhiteSmoke;
buttonX1.Text = "转入术间";
buttonX2.Visible = false;
label2.Text = "状态:未排程";
}
else if (dr["State"].ToString() == "停止手术")
{
this.BackColor = Color.MistyRose;
panelExMain.Style.BackColor1.Color = Color.MistyRose;
buttonX1.Text = "查看手术";
buttonX2.Text = "返回手术";
}
else
{
this.BackColor = Color.Honeydew;
panelExMain.Style.BackColor1.Color = Color.Honeydew;
buttonX1.Text = "查看手术";
buttonX2.Text = "返回手术";
}
}
private void ucPatientCard_Click(object sender, EventArgs e)
{
//ucPatientCard operationRoomClicked = GetParentRoomCards(sender as Control);
}
public ucPatientCard GetParentRoomCards(Control control)
{
if (control.Parent is ucPatientCard)
@ -122,38 +118,38 @@ namespace AIMS.OremrUserControl
}
private void SetWindowRegion()
{
GraphicsPath FormPath = new GraphicsPath();
Rectangle rect = new Rectangle(0, 4, this.Width, this.Height - 4);
FormPath = GetRoundedRectPath(rect, 10);
this.Region = new Region(FormPath);
//private void SetWindowRegion()
//{
// GraphicsPath FormPath = new GraphicsPath();
// Rectangle rect = new Rectangle(0, 4, this.Width, this.Height - 4);
// FormPath = GetRoundedRectPath(rect, 10);
// this.Region = new Region(FormPath);
}
private GraphicsPath GetRoundedRectPath(Rectangle rect, int radius)
{
int diameter = radius;
Rectangle arcRect = new Rectangle(rect.Location, new Size(diameter, diameter));
GraphicsPath path = new GraphicsPath();
//左上角
path.AddArc(arcRect, 180, 90);
//右上角
arcRect.X = rect.Right - diameter;
path.AddArc(arcRect, 270, 90);
//右下角
arcRect.Y = rect.Bottom - diameter;
path.AddArc(arcRect, 0, 90);
//左下角
arcRect.X = rect.Left;
path.AddArc(arcRect, 90, 90);
path.CloseFigure();
return path;
//}
//private GraphicsPath GetRoundedRectPath(Rectangle rect, int radius)
//{
// int diameter = radius;
// Rectangle arcRect = new Rectangle(rect.Location, new Size(diameter, diameter));
// GraphicsPath path = new GraphicsPath();
// //左上角
// path.AddArc(arcRect, 180, 90);
// //右上角
// arcRect.X = rect.Right - diameter;
// path.AddArc(arcRect, 270, 90);
// //右下角
// arcRect.Y = rect.Bottom - diameter;
// path.AddArc(arcRect, 0, 90);
// //左下角
// arcRect.X = rect.Left;
// path.AddArc(arcRect, 90, 90);
// path.CloseFigure();
// return path;
}
protected override void OnResize(System.EventArgs e)
{
this.Region = null;
SetWindowRegion();
}
//}
//protected override void OnResize(System.EventArgs e)
//{
// this.Region = null;
// SetWindowRegion();
//}
}
}

View File

@ -29,34 +29,61 @@
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.panel1 = new System.Windows.Forms.Panel();
this.panelExMain = new DevComponents.DotNetBar.PanelEx();
this.lblNurse2 = new System.Windows.Forms.Label();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.tsDel = new System.Windows.Forms.ToolStripMenuItem();
this.tsDelAnes = new System.Windows.Forms.ToolStripMenuItem();
this.tsDelNs1 = new System.Windows.Forms.ToolStripMenuItem();
this.tsDelNs2 = new System.Windows.Forms.ToolStripMenuItem();
this.tsUpdateRoom = new System.Windows.Forms.ToolStripMenuItem();
this.labTabindex = new System.Windows.Forms.Label();
this.labelName = new System.Windows.Forms.Label();
this.lblNurse2 = new System.Windows.Forms.Label();
this.lblNurse = new System.Windows.Forms.Label();
this.lblAnesDoctors = new System.Windows.Forms.Label();
this.lblOpeDoctors = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.panel1 = new System.Windows.Forms.Panel();
this.labTabindex = new System.Windows.Forms.Label();
this.labelName = new System.Windows.Forms.Label();
this.panelExMain.SuspendLayout();
this.contextMenuStrip1.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// panel1
// panelExMain
//
this.panel1.ContextMenuStrip = this.contextMenuStrip1;
this.panel1.Controls.Add(this.labTabindex);
this.panel1.Controls.Add(this.labelName);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(196, 37);
this.panel1.TabIndex = 0;
this.panel1.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
this.panelExMain.CanvasColor = System.Drawing.SystemColors.Control;
this.panelExMain.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.panelExMain.Controls.Add(this.lblNurse2);
this.panelExMain.Controls.Add(this.lblNurse);
this.panelExMain.Controls.Add(this.lblAnesDoctors);
this.panelExMain.Controls.Add(this.lblOpeDoctors);
this.panelExMain.Controls.Add(this.panel1);
this.panelExMain.DisabledBackColor = System.Drawing.Color.Empty;
this.panelExMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelExMain.Location = new System.Drawing.Point(0, 0);
this.panelExMain.Name = "panelExMain";
this.panelExMain.Size = new System.Drawing.Size(200, 110);
this.panelExMain.Style.Alignment = System.Drawing.StringAlignment.Center;
this.panelExMain.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.panelExMain.Style.Border = DevComponents.DotNetBar.eBorderType.DoubleLine;
this.panelExMain.Style.BorderColor.Color = System.Drawing.Color.DodgerBlue;
this.panelExMain.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot;
this.panelExMain.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.panelExMain.Style.GradientAngle = 90;
this.panelExMain.TabIndex = 0;
this.panelExMain.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// lblNurse2
//
this.lblNurse2.ContextMenuStrip = this.contextMenuStrip1;
this.lblNurse2.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse2.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblNurse2.Location = new System.Drawing.Point(0, 88);
this.lblNurse2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse2.Name = "lblNurse2";
this.lblNurse2.Size = new System.Drawing.Size(200, 17);
this.lblNurse2.TabIndex = 19;
this.lblNurse2.Text = "巡回护士";
this.lblNurse2.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// contextMenuStrip1
//
@ -103,6 +130,59 @@
this.tsUpdateRoom.Size = new System.Drawing.Size(172, 22);
this.tsUpdateRoom.Text = "全部更换手术间至";
//
// lblNurse
//
this.lblNurse.ContextMenuStrip = this.contextMenuStrip1;
this.lblNurse.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblNurse.Location = new System.Drawing.Point(0, 71);
this.lblNurse.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse.Name = "lblNurse";
this.lblNurse.Size = new System.Drawing.Size(200, 17);
this.lblNurse.TabIndex = 18;
this.lblNurse.Text = "洗手护士";
this.lblNurse.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// lblAnesDoctors
//
this.lblAnesDoctors.ContextMenuStrip = this.contextMenuStrip1;
this.lblAnesDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblAnesDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblAnesDoctors.Location = new System.Drawing.Point(0, 54);
this.lblAnesDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblAnesDoctors.Name = "lblAnesDoctors";
this.lblAnesDoctors.Size = new System.Drawing.Size(200, 17);
this.lblAnesDoctors.TabIndex = 17;
this.lblAnesDoctors.Text = "麻醉医生";
this.lblAnesDoctors.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// lblOpeDoctors
//
this.lblOpeDoctors.BackColor = System.Drawing.Color.Transparent;
this.lblOpeDoctors.ContextMenuStrip = this.contextMenuStrip1;
this.lblOpeDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblOpeDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblOpeDoctors.Location = new System.Drawing.Point(0, 37);
this.lblOpeDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblOpeDoctors.Name = "lblOpeDoctors";
this.lblOpeDoctors.Size = new System.Drawing.Size(200, 17);
this.lblOpeDoctors.TabIndex = 16;
this.lblOpeDoctors.Text = "手术医生";
this.lblOpeDoctors.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Transparent;
this.panel1.ContextMenuStrip = this.contextMenuStrip1;
this.panel1.Controls.Add(this.labTabindex);
this.panel1.Controls.Add(this.labelName);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(200, 37);
this.panel1.TabIndex = 8;
this.panel1.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// labTabindex
//
this.labTabindex.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@ -117,7 +197,7 @@
// labelName
//
this.labelName.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labelName.Location = new System.Drawing.Point(0, 10);
this.labelName.Location = new System.Drawing.Point(3, 8);
this.labelName.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.labelName.Name = "labelName";
this.labelName.Size = new System.Drawing.Size(69, 20);
@ -125,91 +205,35 @@
this.labelName.Text = "第几间";
this.labelName.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// lblNurse2
//
this.lblNurse2.ContextMenuStrip = this.contextMenuStrip1;
this.lblNurse2.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse2.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblNurse2.Location = new System.Drawing.Point(0, 88);
this.lblNurse2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse2.Name = "lblNurse2";
this.lblNurse2.Size = new System.Drawing.Size(196, 17);
this.lblNurse2.TabIndex = 7;
this.lblNurse2.Text = "巡回护士";
this.lblNurse2.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// lblNurse
//
this.lblNurse.ContextMenuStrip = this.contextMenuStrip1;
this.lblNurse.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblNurse.Location = new System.Drawing.Point(0, 71);
this.lblNurse.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse.Name = "lblNurse";
this.lblNurse.Size = new System.Drawing.Size(196, 17);
this.lblNurse.TabIndex = 6;
this.lblNurse.Text = "洗手护士";
this.lblNurse.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// lblAnesDoctors
//
this.lblAnesDoctors.ContextMenuStrip = this.contextMenuStrip1;
this.lblAnesDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblAnesDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblAnesDoctors.Location = new System.Drawing.Point(0, 54);
this.lblAnesDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblAnesDoctors.Name = "lblAnesDoctors";
this.lblAnesDoctors.Size = new System.Drawing.Size(196, 17);
this.lblAnesDoctors.TabIndex = 5;
this.lblAnesDoctors.Text = "麻醉医生";
this.lblAnesDoctors.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// lblOpeDoctors
//
this.lblOpeDoctors.ContextMenuStrip = this.contextMenuStrip1;
this.lblOpeDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblOpeDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblOpeDoctors.Location = new System.Drawing.Point(0, 37);
this.lblOpeDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblOpeDoctors.Name = "lblOpeDoctors";
this.lblOpeDoctors.Size = new System.Drawing.Size(196, 17);
this.lblOpeDoctors.TabIndex = 4;
this.lblOpeDoctors.Text = "手术医生";
this.lblOpeDoctors.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// ucPlanOperationRoomCard
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.SystemColors.GradientActiveCaption;
this.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.Controls.Add(this.lblNurse2);
this.Controls.Add(this.lblNurse);
this.Controls.Add(this.lblAnesDoctors);
this.Controls.Add(this.lblOpeDoctors);
this.Controls.Add(this.panel1);
this.Controls.Add(this.panelExMain);
this.Name = "ucPlanOperationRoomCard";
this.Size = new System.Drawing.Size(196, 106);
this.Size = new System.Drawing.Size(200, 110);
this.Load += new System.EventHandler(this.ucPlanOperationRoomCard_Load);
this.panel1.ResumeLayout(false);
this.panelExMain.ResumeLayout(false);
this.contextMenuStrip1.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label lblNurse2;
private System.Windows.Forms.Label lblNurse;
private System.Windows.Forms.Label lblAnesDoctors;
private System.Windows.Forms.Label lblOpeDoctors;
public System.Windows.Forms.Label labelName;
public System.Windows.Forms.Label labTabindex;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
private System.Windows.Forms.ToolStripMenuItem tsDel;
private System.Windows.Forms.ToolStripMenuItem tsDelAnes;
private System.Windows.Forms.ToolStripMenuItem tsDelNs1;
private System.Windows.Forms.ToolStripMenuItem tsDelNs2;
private System.Windows.Forms.ToolStripMenuItem tsUpdateRoom;
private System.Windows.Forms.Label lblNurse;
private System.Windows.Forms.Label lblAnesDoctors;
private System.Windows.Forms.Label lblOpeDoctors;
private System.Windows.Forms.Panel panel1;
public System.Windows.Forms.Label labTabindex;
public System.Windows.Forms.Label labelName;
public DevComponents.DotNetBar.PanelEx panelExMain;
}
}

View File

@ -94,8 +94,8 @@ namespace AIMS.OremrUserControl
if (operationRoomClicked != RoomCardManage.lastSelectOpeRoom)
{
if (RoomCardManage.lastSelectOpeRoom != null)
RoomCardManage.lastSelectOpeRoom.BackColor = System.Drawing.SystemColors.GradientActiveCaption;
operationRoomClicked.BackColor = Color.Khaki;
RoomCardManage.lastSelectOpeRoom.panelExMain.Style.BackColor1.Color = System.Drawing.SystemColors.Control;
operationRoomClicked.panelExMain.Style.BackColor1.Color = Color.Khaki;
RoomCardManage.lastSelectOpeRoom = operationRoomClicked;
RoomCardManage.IsFillAll = true;
}

View File

@ -85,7 +85,7 @@ namespace AIMSBLL
_record.Weight = double.Parse(OperationFrontdt.Rows[0]["Weight"].ToString()).ToString();
_record.Applydiagnose = OperationFrontdt.Rows[0]["ApplyDiagnoseInfoId"].ToString();
_record.Applyoperation = OperationFrontdt.Rows[0]["ApplyOperationInfoId"].ToString();
_record.OperationPriority = OperationFrontdt.Rows[0]["OperationType"].ToString();
_record.OperationType = OperationFrontdt.Rows[0]["OperationType"].ToString();
_record.RoomId = int.Parse(OperationFrontdt.Rows[0]["OperationRoomId"].ToString().Trim());
_record.MedicalRecord = OperationFrontdt.Rows[0]["MedicalRecord"].ToString();
@ -242,6 +242,7 @@ namespace AIMSBLL
FactDrug.OperatorNo = DrugAllData.Rows[i]["OperatorNo"].ToString();
FactDrug.OperatorName = DrugAllData.Rows[i]["OperatorName"].ToString();
FactDrug.OperateDate = DateTime.Parse(DrugAllData.Rows[i]["OperateDate"].ToString());
FactDrug.AnesType = DrugAllData.Rows[i]["AnesType"].ToString();
_record.FactDrugList.Add(FactDrug);
}
}

File diff suppressed because it is too large Load Diff

View File

@ -85,7 +85,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 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 FROM FactDrug fd " +
"LEFT JOIN Drugs d ON d.Id = fd.DrugId " +
"WHERE fd.PatientId=" + PatientId + " AND fd.DrugTypeId=" + DrugTypeId + " ";
@ -203,7 +203,7 @@ namespace AIMSDAL
}
if (dr["Fasting"] != System.DBNull.Value)
{
entity.Fasting = Convert.ToInt32(dr["Fasting"]);
entity.Fasting = dr["Fasting"].ToString();
}
if (dr["BloodType"] != System.DBNull.Value)
{

View File

@ -7,6 +7,7 @@ using AIMSModel;
using AIMSObjectQuery;
using HelperDB;
using System.Text;
using AIMSBLL;
namespace AIMSDAL
{
@ -114,23 +115,38 @@ namespace AIMSDAL
strSql.Append("p.Diploma,p.JobTitle,p.PersonType,p.PersonOrder,CASE p.IsValid WHEN 1 THEN '有效' WHEN 0 THEN '无效' END AS IsValid FROM Person p ");
strSql.Append("LEFT JOIN Department d ON d.Id =p.DepId ");
strSql.Append("LEFT JOIN [Role] r ON r.Id = p.RoleId ");
if (name.Length > 0)
if (DeptName.Length > 0 && name.Length > 0)
{
strSql.Append(" WHERE p.No like '%" + name + "%' Or p.Name like '%" + name + "%' Or p.HelpCode like '%" + name + "%' and d.Name = '" + DeptName + "' ");
if (IsValid == false)
strSql.Append(" and p.IsValid=1 and d.IsValid=1");
}
else if (name.Length > 0 && DeptName.Length == 0)
{
strSql.Append(" WHERE p.No like '%" + name + "%' Or p.Name like '%" + name + "%' Or p.HelpCode like '%" + name + "%' ");
if (DeptName.Length > 0 && name.Length == 0)
if (IsValid == false)
strSql.Append(" and p.IsValid=1 and d.IsValid=1");
}
else if (DeptName.Length > 0 && name.Length == 0)
{
strSql.Append(" WHERE d.Name = '" + DeptName + "' ");
else if (DeptName.Length > 0 && name.Length > 0)
strSql.Append(" and d.Name = '" + DeptName + "' ");
else if (IsValid == true)
strSql.Append(" WHERE p.IsValid=1 ");
if (IsValid == false)
strSql.Append(" and p.IsValid=1 and d.IsValid=1");
}
else
{
if (IsValid == false)
strSql.Append(" WHERE p.IsValid=1 and d.IsValid=1");
}
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
public static bool Login(string No, string PassWord)
{
string strSql = "SELECT * FROM Person p";
Person person = BPerson.SelectSingle("No=@no and PassWord=@passWord and IsValid=1", new ParameterList("@No", No, "@passWord", PassWord));
DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
if (dt.Rows.Count > 0)
if (person != null && person.Id != null)
return true;
else
return false;
@ -144,7 +160,7 @@ namespace AIMSDAL
strSql.Append("select top 1 ");
strSql.Append("Id,No,Name,HelpCode,Sex,PassWord,DepId,RoleId,BirthDay,TimeToWork,Diploma,JobTitle,PersonType,PersonOrder,IsValid,OperatorNo,OperatorName,OperateDate ");
strSql.Append(" from Person ");
strSql.Append(" where No='" + No + "'");
strSql.Append(" where No='" + No + "' and IsValid=1");
DataSet ds = HelperDB.DbHelperSQL.GetDataSet(strSql.ToString());
if (ds.Tables[0].Rows.Count > 0)
{

View File

@ -9,6 +9,7 @@ using System.Reflection;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
namespace AIMSExtension
@ -24,6 +25,7 @@ namespace AIMSExtension
public static List<string> RoleName;
public static int PermissionLevel = 0;
public static string NowVersion;
public static int SelectRoom;
private static char zdSplit = '|';
private static char nameValueSplit = '*';
@ -776,5 +778,36 @@ namespace AIMSExtension
}
return b;
}
/// <summary>
/// 判断是否为正确的IP地址
/// </summary>
/// <param name="strIPadd">需要判断的字符串</param>
/// <returns>true = 是 false = 否</returns>
public static bool IsRightIP(string strIPadd)
{
//利用正则表达式判断字符串是否符合IPv4格式
if (Regex.IsMatch(strIPadd, "[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}"))
{
//根据小数点分拆字符串
string[] ips = strIPadd.Split('.');
if (ips.Length == 4 || ips.Length == 6)
{
//如果符合IPv4规则
if (System.Int32.Parse(ips[0]) < 256 && System.Int32.Parse(ips[1]) < 256 & System.Int32.Parse(ips[2]) < 256 & System.Int32.Parse(ips[3]) < 256)
//正确
return true;
//如果不符合
else
//错误
return false;
}
else
//错误
return false;
}
else
//错误
return false;
}
}
}

View File

@ -80,7 +80,28 @@ namespace DrawGraph
foreach (PackObjBase pack in ables)
{
AbleEditPackObj ableEdit = pack as AbleEditPackObj;
SetAbleEditView(ableEdit);
if (ableEdit != null)
{
//ableEdit.IsVisible = true;
if (ableEdit.ControlType == EControlType.RadioButtonList)
{
Panel pan = ableEdit.CControl as Panel;
if (pan != null)
{
foreach (Control conl in pan.Controls)
{
CheckBox chBox = conl as CheckBox;
if (chBox != null)
{
chBox.CheckedChanged -= new EventHandler(txt_Leave);
chBox.CheckedChanged += new EventHandler(txt_Leave);
}
}
}
}
SetAbleEditView(ableEdit);
}
}
}
@ -110,13 +131,37 @@ namespace DrawGraph
double spanSum = Math.Round((float)(ableEdit.OneUnitCount / 12));
for (int i = 0; i < spanSum; i++)
{
span += " ";
span += "";
}
string text = "", value = "";
if (ableEdit != null)
{
switch (ableEdit.ControlType)
{
case EControlType.RadioButtonList:
foreach (Control conl in ableEdit.CControl.Controls)
{
string spanT = span.Clone().ToString();
if (ableEdit.DfArrangement == EIsBool.True)
{
if (spanT.Length - conl.Text.Length >= conl.Text.Length)
{
spanT = spanT.Remove(spanT.Length - conl.Text.Length, conl.Text.Length);
}
}
CheckBox radio = conl as CheckBox;
if (radio.Checked)
{
text += "☑" + conl.Text + spanT;
value = conl.Text;
}
else
{
text += "□" + conl.Text + spanT;
}
}
template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value);
break;
case EControlType.Directory:
value = ableEdit.PackValue;
text = DBManage.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText);
@ -124,6 +169,8 @@ namespace DrawGraph
template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value);
break;
default:
text = ableEdit.CControl.Text;
value = ableEdit.CControl.Text;
break;
}
}
@ -303,9 +350,9 @@ namespace DrawGraph
case "OperationRecord.OperationSiteId": //手术体位
TYZD_Click(aEdit1, e);
break;
case "OperationRecord.Fasting": //术前禁食
conl.Leave += new EventHandler(txt_Leave);
break;
//case "OperationRecord.Fasting": //术前禁食
// conl.Leave += new EventHandler(txt_Leave);
// break;
case "OperationRecord.SpecialCase": //特殊情况
((TextBox)conl).BorderStyle = BorderStyle.Fixed3D;
((TextBox)conl).Focus();
@ -508,42 +555,82 @@ namespace DrawGraph
string DataSourceName = ableEdit.ClassDataSourceName;
//Console.WriteLine(DataSourceName);
//拿到数据源格式OperationRecord.PatientRef.Bed
if (ableEdit.ControlType == EControlType.RadioButtonList)
{
//SetAbleEditView(ableEdit,true);
if (sender is CheckBox)
if ((sender as CheckBox).Checked == true)
{
foreach (CheckBox chk in (sender as CheckBox).Parent.Controls)
{
chk.CheckedChanged -= new EventHandler(txt_Leave);
if (chk != sender)
{
chk.Checked = false;
}
chk.CheckedChanged += new EventHandler(txt_Leave);
}
}
}
bool updateOk = true;
string text = control.Text.Trim();
string value = control.Text.Trim();
string text = "";
string value = "";
if (!updateOk)
{
ableEdit.IsVisible = !ableEdit.IsVisible;
}
else
{
if (DataSourceName == "OperationRecord.Fasting")
if (ableEdit.ControlType == EControlType.RadioButtonList)
{
foreach (Control conl in control.Controls)
//设置属性的值
ableEdit.IsVisible = !ableEdit.IsVisible;
foreach (Control conl in ableEdit.CControl.Controls)
{
CheckBox chBox = conl as CheckBox;
if (chBox.Checked)
string spanT = "";
if (ableEdit.DfArrangement == EIsBool.True)
{
text = "是";
value = "1";
if (spanT.Length - conl.Text.Length >= conl.Text.Length)
{
spanT = spanT.Remove(spanT.Length - conl.Text.Length, conl.Text.Length);
}
}
CheckBox radio = conl as CheckBox;
if (radio.Checked)
{
text += "☑" + conl.Text + spanT;
value = conl.Text;
}
else
{
text = "否";
value = "0";
text += "□" + conl.Text + spanT;
}
}
template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value, true);
}
//设置属性的值
ableEdit.IsVisible = !ableEdit.IsVisible;
template.SetObjValue(OpeRecord, DataSourceName, text, value, true);
((TextBox)control).BorderStyle = BorderStyle.None;
if (DataSourceName == "OperationRecord.Height" || DataSourceName == "OperationRecord.Weight")
else
{
SetBMI(true);
text = control.Text.Trim();
value = control.Text.Trim();
//设置属性的值
ableEdit.IsVisible = !ableEdit.IsVisible;
template.SetObjValue(OpeRecord, DataSourceName, text, value, true);
((TextBox)control).BorderStyle = BorderStyle.None;
if (DataSourceName == "OperationRecord.Height" || DataSourceName == "OperationRecord.Weight")
{
SetBMI(true);
}
}
////设置属性的值
//ableEdit.IsVisible = !ableEdit.IsVisible;
//template.SetObjValue(OpeRecord, DataSourceName, text, value, true);
//((TextBox)control).BorderStyle = BorderStyle.None;
//if (DataSourceName == "OperationRecord.Height" || DataSourceName == "OperationRecord.Weight")
//{
// SetBMI(true);
//}
}
}
catch (Exception ex)

View File

@ -57,19 +57,19 @@ namespace DrawGraph
strSql += " order by UseRate desc";
break;
case "麻醉方式":
strSql = "SELECT top 10 p.Id,p.Name,p.HelpCode Code FROM AnaesthesiaMethod p WHERE p.IsValid=1 AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )";
strSql = "SELECT top 10 p.Id,p.Name,p.Explain Code FROM AnaesthesiaMethod 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.HelpCode Code FROM OperationBodyPosition p WHERE p.IsValid=1 AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )";
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 + "%' )";
if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") ";
break;
case "手术部位":
strSql = "SELECT top 10 p.Id,p.Name,p.HelpCode Code FROM OperationPosition p WHERE p.IsValid=1 AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )";
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 + "%' )";
if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") ";
break;
default:
strSql = "SELECT top 10 p.Id,p.Name,p.HelpCode 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 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 + "%' )";
if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") ";
break;
@ -154,6 +154,10 @@ namespace DrawGraph
{
i += UpdatePatient(items[1] + "='" + value + "' where Id= " + _operationRecord.PatientId);
}
else if (items[1] == "OperationType")
{
i += UpdateApply (items[1] + "='" + value + "' where Id= " + _operationRecord.PatientId);
}
else
{
i += Update(items[1] + "='" + value + "' where Id= " + _operationRecord.Id);
@ -178,6 +182,11 @@ namespace DrawGraph
string sqlStr = "update Oris_Patient set " + sql;
return DBHelper.ExecNonQuery(sqlStr);
}
public static int UpdateApply(string sql)
{
string sqlStr = "update OperationApply set " + sql;
return DBHelper.ExecNonQuery(sqlStr);
}
public static int UpdateInstrumentList(string sql)
{
string sqlStr = "update InstrumentList set " + sql;
@ -454,6 +463,9 @@ namespace DrawGraph
case "手术体位":
sql = "select dbo.GetOperationBodyPosition('" + Ids + "') value";
break;
case "手术部位":
sql = "select dbo.GetOperationPosition('" + Ids + "') value";
break;
default:
sql = "select dbo.funBasicDictionary('" + Ids + "') value";
break;

View File

@ -22,6 +22,7 @@ namespace DrawGraph
public string GiveDrugType;
public string Remark;
public string DrugKind;
public string AnesType;
public string OperatorNo { get; set; }
public string OperatorName { get; set; }
@ -253,7 +254,7 @@ namespace DrawGraph
//if (this.Remark != null && this.Remark != "") DrName += "(" + this.Remark + ")";
if (this.DrugChannel != null && this.DrugChannel != "") DrName += "(" + this.DrugChannel + ")";
if (this.DosageUnit != null && this.DosageUnit != "") DrName += "(" + this.DosageUnit + ")";
if (DrugKind == "毒麻药品")
if (DrugKind == "毒麻药品" || AnesType.Contains("麻醉") || AnesType.Contains("精神"))
ZUtil.DrawText(DrName, x1, y, zgcAnas, TextPrefix.DN + this.DrugName + this.Id.ToString(), Color.Red, 5.75f);
else
ZUtil.DrawText(DrName, x1, y, zgcAnas, TextPrefix.DN + this.DrugName + this.Id.ToString(), Color.Black, 5.75f);

View File

@ -41,8 +41,8 @@ namespace DrawGraph
if (H5pack != null)
{
eventstartX = H5pack.RealX;
eventy = H5pack.RealY;
eventendy = H5pack.RealEndY;
eventy = H5pack.RealY;
eventendy = H5pack.RealEndY;
}
IconPpack = template.GetPackObjectOTag<RectangleFramePackObj>("IconManage_RectangleFramePackObj_2");
if (IconPpack != null)
@ -150,7 +150,37 @@ namespace DrawGraph
try
{
//循环XML文件,文件中的内容是只画图不写字的事件对旬
//DataRow[] dr = myOpeRecord.PhysioParamList.Select("Name ='" + temp.EventName + "' ", "");
//if (dr.Length > 0)
//{
// temp.clearDNAndDT(ZedControl);
// string tagName = dr[0]["imgPath"].ToString();
// temp.drawIMG(ZedControl, tagName, eventy, 0.013);
//}
//else
//{
// int DValue = 0;
// string drawNumber = "";
// if (drawDatetime != null && temp.EventBeginTime > drawDatetime.Value.AddMinutes(-1) && temp.EventBeginTime < drawDatetime.Value.AddMinutes(10) && LastNumber != "" && drawEvent != null)
// {
// drawEvent.clearDNAndDT(ZedControl);
// drawEvent = temp;
// drawNumber = LastNumber + "-" + getNumber(i);// (i + 1).ToString();//
// DValue = (int)(((TimeSpan)(temp.EventBeginTime - drawDatetime.Value)).TotalMinutes / 2);
// }
// else
// {
// LastNumber = getNumber(i);// (i + 1).ToString();//
// drawNumber = LastNumber;
// drawEvent = temp;
// drawDatetime = temp.EventBeginTime.Value;
// }
// //画图上的序号
// temp.drawNumber(ZedControl, drawNumber, eventy + span - 0.001, DValue, Color.DarkBlue);
//}
//rowIndex++;
//循环XML文件,文件中的内容是只画图不写字的事件对旬
DataRow[] dr = myOpeRecord.PhysioParamList.Select("Name ='" + temp.EventName + "' ", "");
if (dr.Length > 0)
{
@ -166,12 +196,12 @@ namespace DrawGraph
{
drawEvent.clearDNAndDT(ZedControl);
drawEvent = temp;
drawNumber = LastNumber + "-" + getNumber(i);// (i + 1).ToString();//
drawNumber = LastNumber + "-" + getNumber(i);
DValue = (int)(((TimeSpan)(temp.EventBeginTime - drawDatetime.Value)).TotalMinutes / 2);
}
else
{
LastNumber = getNumber(i);// (i + 1).ToString();//
LastNumber = getNumber(i);
drawNumber = LastNumber;
drawEvent = temp;
drawDatetime = temp.EventBeginTime.Value;

View File

@ -28,7 +28,6 @@ namespace DrawGraph
private string bed;
private string contacts;
private string contactsPhone;
private string isFasting;
private string age;
@ -156,12 +155,6 @@ namespace DrawGraph
get { return contactsPhone; }
set { contactsPhone = value; }
}
[ClassAttributs(Description = "是否禁食")]
public string IsFasting
{
get { return isFasting; }
set { isFasting = value; }
}
//申请信息
private string patientType;
@ -173,7 +166,7 @@ namespace DrawGraph
private string applydiagnoseRemark;
private string applyoperation;
private string applyOperationRemark;
private string operationPriority;
private string operationType;
public DateTime PlanOperationTime;
private string operation;
@ -245,10 +238,10 @@ namespace DrawGraph
set { applyOperationRemark = value; }
}
[ClassAttributs(Description = "择期急诊")]
public string OperationPriority
public string OperationType
{
get { return operationPriority; }
set { operationPriority = value; }
get { return operationType; }
set { operationType = value; }
}
[ClassAttributs(Description = "手术名称")]
@ -383,7 +376,7 @@ namespace DrawGraph
private DateTime? anesthesiaEndTime;
private int? aSALevel;
private string specialCase;
private int? fasting;
private string fasting;
private string operationDate;
private string opeSpecialCondition;
private string bMI;
@ -553,7 +546,7 @@ namespace DrawGraph
/// 是否禁食
/// </summary>
[ClassAttributs(Description = "是否禁食")]
public int? Fasting
public string Fasting
{
get { return fasting; }
set { fasting = value; }

View File

@ -151,7 +151,8 @@ namespace DrawGraph
//if ((OpeRecord != null && status == DoOpeStatus.BEGINOPE) || IsReview)
if (myOpeRecord != null)
{
//清空选中框
if (e.Button != System.Windows.Forms.MouseButtons.Left) return;
//清空选中框
myOpeRecord.SAreaObj.setAnasArr(ZedControl, chartPack.RealX, chartPack.RealEndX, myOpeRecord.pageBegin,
myOpeRecord.pageBegin.AddMinutes(EVERY_PAGE_TIME_SPAN));
myOpeRecord.SAreaObj.Clear();
@ -249,17 +250,17 @@ namespace DrawGraph
}
}
//获得指定Tag和指定类型的组件
List<PackObjBase> packs = PackManage.ListPob.Where<PackObjBase>(s => s.PackTag == "Operation_AddListEvent" && s is LinesPackObj).ToList<PackObjBase>();
foreach (PackObjBase pack in packs)
{
LinesPackObj linesPack = pack as LinesPackObj;
if ((x > linesPack.RealX && x < linesPack.RealEndX) && (y > linesPack.RealY && y < linesPack.RealEndY))
{
string viewStr = string.Format("PhysioDataManage的MouseDown事件显示的内容{0}组件X={1}、Y={2}", pack.PackTag, linesPack.RealX, linesPack.RealY);
MessageBox.Show(viewStr);
}
}
////获得指定Tag和指定类型的组件
//List<PackObjBase> packs = PackManage.ListPob.Where<PackObjBase>(s => s.PackTag == "Operation_AddListEvent" && s is LinesPackObj).ToList<PackObjBase>();
//foreach (PackObjBase pack in packs)
//{
// LinesPackObj linesPack = pack as LinesPackObj;
// if ((x > linesPack.RealX && x < linesPack.RealEndX) && (y > linesPack.RealY && y < linesPack.RealEndY))
// {
// string viewStr = string.Format("PhysioDataManage的MouseDown事件显示的内容{0}组件X={1}、Y={2}", pack.PackTag, linesPack.RealX, linesPack.RealY);
// MessageBox.Show(viewStr);
// }
//}
}
ZedControl.AxisChange();
ZedControl.Refresh();

View File

@ -108,10 +108,16 @@ namespace DrawGraph
Value = aEdit.PackText;
DataTable dt = DBManage.GetDictDataTable((OpeRecord as OperationRecord), "", aEdit.ControlTitleText, type.ToString(), Key);
dgvZd.DataSource = dt;
dgvZd.Columns[1].HeaderText = aEdit.ControlTitleText;
dgvZd.Location = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y + aEdit.CControl.Height);
if (_type == "手术" || _type == "诊断")
dgvZd.Size = new System.Drawing.Size( aEdit.CControl.Width < 100 ? 99 : aEdit.CControl.Width, dgvZd.Height);
if (dgvZd.Size.Width < 100)
{
dgvZd.Size = new System.Drawing.Size(400, 210);
dgvZd.Columns[2].Visible = false;
}
else
{
dgvZd.Columns[2].Visible = true;
}
if (dgvZd.Parent == null)
aEdit.CControl.Parent.Controls.Add(dgvZd);
@ -191,7 +197,7 @@ namespace DrawGraph
{
aEdit.CControl.Parent.Controls.Remove(dgvZd);
dgvZd.Visible = false;
aEdit.IsVisible =false;
aEdit.IsVisible = false;
}
}

View File

@ -5,6 +5,7 @@ using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using static System.Net.Mime.MediaTypeNames;
namespace DrawGraph
{
@ -13,8 +14,8 @@ namespace DrawGraph
private volatile static SelectDictValue2 _instance = null;
private static readonly object lockHelper = new object();
public delegate void SetValueHandler(string key,string Value,AbleEditPackObj aEdit);
public static event SetValueHandler SetValue ;
public delegate void SetValueHandler(string key, string Value, AbleEditPackObj aEdit);
public static event SetValueHandler SetValue;
private SelectDictValue2() { }
public static SelectDictValue2 CreateInstance()
@ -108,20 +109,34 @@ namespace DrawGraph
Value = aEdit.PackText;
DataTable dt = DBManage.GetDictDataTable((OpeRecord as OperationRecord), "", aEdit.ControlTitleText, type.ToString(), Key);
dgvZd.DataSource = dt;
//System.Drawing.Point point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y + aEdit.CControl.Height);
//if (_type == "手术" || _type == "诊断")
//{
// dgvZd.Size = new System.Drawing.Size(400, 210);
// if (_aEdit.RealEndY > 0.8)
// point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 220);
//}
//else
//{
// dgvZd.Size = new System.Drawing.Size(200, 290);
// if (_aEdit.RealEndY > 0.8)
// point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 300);
//}
dgvZd.Columns[1].HeaderText = aEdit.ControlTitleText+"";
System.Drawing.Point point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y + aEdit.CControl.Height);
if (_type == "手术" || _type == "诊断")
dgvZd.Size = new System.Drawing.Size(aEdit.CControl.Width < 100 ? 99 : aEdit.CControl.Width, dgvZd.Height);
if (_aEdit.RealEndY > 0.8)
point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 300);
dgvZd.Location = point;
if (dgvZd.Size.Width < 100)
{
dgvZd.Size = new System.Drawing.Size(400, 210);
if (_aEdit.RealEndY > 0.8)
point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 220);
dgvZd.Columns[2].Visible = false;
}
else
{
dgvZd.Size = new System.Drawing.Size(200, 290);
if (_aEdit.RealEndY > 0.8)
point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 300);
dgvZd.Columns[2].Visible = true;
}
dgvZd.Location = point;
if (dgvZd.Parent == null)
aEdit.CControl.Parent.Controls.Add(dgvZd);
else
@ -245,7 +260,9 @@ namespace DrawGraph
//设置属性的值
//aEdit.IsVisible = !aEdit.IsVisible;
//template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Value, true);
SetValue(Key, Value,aEdit);
aEdit.PackValue = Value;
aEdit.PackText = Value;
SetValue(Key, Value, aEdit);
}
}

View File

@ -108,20 +108,36 @@ namespace DrawGraph
Value = aEdit.PackText;
DataTable dt = DBManage.GetDictDataTable((OpeRecord as OperationRecord), "", aEdit.ControlTitleText, type.ToString(), Key);
dgvZd.DataSource = dt;
System.Drawing.Point point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - aEdit.CControl.Height);
if (_type == "手术" || _type == "诊断")
//System.Drawing.Point point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - aEdit.CControl.Height);
//if (_type == "手术" || _type == "诊断")
//{
// dgvZd.Size = new System.Drawing.Size(400, 210);
// if (_aEdit.RealEndY > 0.8)
// point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 220);
//}
//else
//{
// dgvZd.Size = new System.Drawing.Size(200, 290);
// if (_aEdit.RealEndY > 0.8)
// point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 300);
//}
//dgvZd.Location = point;
dgvZd.Columns[1].HeaderText = aEdit.ControlTitleText;
System.Drawing.Point point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y + aEdit.CControl.Height);
dgvZd.Size = new System.Drawing.Size(aEdit.CControl.Width < 150 ? 149 : aEdit.CControl.Width, dgvZd.Height);
if (_aEdit.RealEndY > 0.8)
point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 300);
dgvZd.Location = point;
if (dgvZd.Size.Width < 150)
{
dgvZd.Size = new System.Drawing.Size(400, 210);
if (_aEdit.RealEndY > 0.8)
point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 220);
dgvZd.Columns[2].Visible = false;
}
else
{
dgvZd.Size = new System.Drawing.Size(200, 290);
if (_aEdit.RealEndY > 0.8)
point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 300);
dgvZd.Columns[2].Visible = true;
}
dgvZd.Location = point;
if (dgvZd.Parent == null)
aEdit.CControl.Parent.Controls.Add(dgvZd);
else

View File

@ -143,8 +143,6 @@ namespace DrawGraph
{
chBox.CheckedChanged -= new EventHandler(txt_Leave);
chBox.CheckedChanged += new EventHandler(txt_Leave);
//chBox.Click -= new EventHandler(radio_click);
//chBox.Click += new EventHandler(radio_click);
}
}
}
@ -444,11 +442,8 @@ namespace DrawGraph
if (control == null) return;
AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj;
if (ableEdit == null) return;
//拿到数据源格式OperationRecord.PatientRef.Bed
bool updateOk = true;
try
{
SetAbleEditView(ableEdit, true);
if (ableEdit.ControlType == EControlType.RadioButtonList)
{
if ((sender as CheckBox).Checked == true)
@ -464,11 +459,12 @@ namespace DrawGraph
}
}
}
SetAbleEditView(ableEdit, true);
}
catch (Exception ex)
{
//写日志
updateOk = false;
PublicMethod.WriteLog(ex);
}
finally
{