术前排程删除指定人员 术中数据局部刷新

This commit is contained in:
leomon 2022-11-21 23:02:05 +08:00
parent 7b2ea8c85d
commit 7e31547586
38 changed files with 873 additions and 504 deletions

View File

@ -40,6 +40,7 @@
this.expandablePanel1 = new DevComponents.DotNetBar.ExpandablePanel();
this.tabControlPanel1 = new DevComponents.DotNetBar.TabControlPanel();
this.tabItem1 = new DevComponents.DotNetBar.TabItem(this.components);
this.buttonX1 = new DevComponents.DotNetBar.ButtonX();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.tsbDoc)).BeginInit();
@ -137,6 +138,7 @@
// panelEx1
//
this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control;
this.panelEx1.Controls.Add(this.buttonX1);
this.panelEx1.Controls.Add(this.lblPatient);
this.panelEx1.Controls.Add(this.btnSel);
this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty;
@ -161,7 +163,7 @@
//
//
this.lblPatient.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.lblPatient.Location = new System.Drawing.Point(134, 10);
this.lblPatient.Location = new System.Drawing.Point(161, 10);
this.lblPatient.Margin = new System.Windows.Forms.Padding(2);
this.lblPatient.Name = "lblPatient";
this.lblPatient.Size = new System.Drawing.Size(740, 26);
@ -174,7 +176,7 @@
this.btnSel.Location = new System.Drawing.Point(12, 10);
this.btnSel.Margin = new System.Windows.Forms.Padding(2);
this.btnSel.Name = "btnSel";
this.btnSel.Size = new System.Drawing.Size(99, 23);
this.btnSel.Size = new System.Drawing.Size(70, 23);
this.btnSel.TabIndex = 4;
this.btnSel.Text = "批量打印";
this.btnSel.Click += new System.EventHandler(this.btnSel_Click);
@ -230,14 +232,26 @@
this.tabItem1.Name = "tabItem1";
this.tabItem1.Text = "tabItem1";
//
// frmDocument2
// buttonX1
//
this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.buttonX1.Location = new System.Drawing.Point(86, 10);
this.buttonX1.Margin = new System.Windows.Forms.Padding(2);
this.buttonX1.Name = "buttonX1";
this.buttonX1.Size = new System.Drawing.Size(70, 23);
this.buttonX1.TabIndex = 4;
this.buttonX1.Text = "数据中心";
this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click);
//
// frmDocument
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1074, 542);
this.Controls.Add(this.panel2);
this.Margin = new System.Windows.Forms.Padding(2);
this.Name = "frmDocument2";
this.Name = "frmDocument";
this.ShowIcon = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "医疗文书";
@ -264,5 +278,6 @@
private DevComponents.DotNetBar.TabControl tsbDoc;
private DevComponents.DotNetBar.TabControlPanel tabControlPanel1;
private DevComponents.DotNetBar.TabItem tabItem1;
private DevComponents.DotNetBar.ButtonX buttonX1;
}
}

View File

@ -1,9 +1,11 @@
using AIMS.OremrUserControl;
using AIMSExtension;
using AIMSModel;
using DevComponents.DotNetBar;
using DocumentManagement;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Windows.Forms;
@ -198,5 +200,27 @@ namespace AIMS.DocManager
tsbDoc.TabItemClose += new TabStrip.UserActionEventHandler(tsbDoc_TabItemClose);
}
private void buttonX1_Click(object sender, EventArgs e)
{
if (PublicMethod.GetHospitalName().Contains("秦皇岛"))
{
if (Patient.HISPatientId != null && Patient.VisitTimes != null)
try
{
string patientId = "orcl:LDQ:5:1:0:" + Patient.HISPatientId + ":" + Patient.VisitTimes + "";
Process myprocess = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo(@"C:\APPSOFT\zlSoftCISInterface.exe", patientId);
PublicMethod.WriteLog(new Exception(@"C:\APPSOFT\zlSoftCISInterface.exe" + patientId));
myprocess.StartInfo = startInfo;
myprocess.StartInfo.UseShellExecute = false;
myprocess.Start();
}
catch (Exception ex)
{
MessageBox.Show(@"在C:\APPSOFT\zlSoftCISInterface.exe路径下找不到“zlSoftCISInterface.exe”");
}
}
}
}
}

View File

@ -7,6 +7,7 @@ using DocumentManagement;
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
@ -408,5 +409,29 @@ namespace AIMS.OperationAfter.UI
}
}
}
private void buttonX1_Click(object sender, EventArgs e)
{
if (PublicMethod.GetHospitalName().Contains("秦皇岛"))
{
if (Patient.HISPatientId != null && Patient.VisitTimes != null)
{
try
{
string patientId = "orcl:LDQ:5:1:0:" + Patient.HISPatientId + ":" + Patient.VisitTimes + "";
Process myprocess = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo(@"C:\APPSOFT\zlSoftCISInterface.exe", patientId);
PublicMethod.WriteLog(new Exception(@"C:\APPSOFT\zlSoftCISInterface.exe" + patientId));
myprocess.StartInfo = startInfo;
myprocess.StartInfo.UseShellExecute = false;
myprocess.Start();
}
catch (Exception ex)
{
MessageBox.Show(@"在C:\APPSOFT\zlSoftCISInterface.exe路径下找不到“zlSoftCISInterface.exe”");
}
}
}
}
}
}

View File

@ -45,6 +45,7 @@
this.btnSel = new DevComponents.DotNetBar.ButtonX();
this.lblPatient = new DevComponents.DotNetBar.LabelX();
this.expandablePanel1 = new DevComponents.DotNetBar.ExpandablePanel();
this.buttonX1 = new DevComponents.DotNetBar.ButtonX();
this.panel2.SuspendLayout();
this.groupBox2.SuspendLayout();
this.panel3.SuspendLayout();
@ -265,6 +266,7 @@
// panelEx1
//
this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control;
this.panelEx1.Controls.Add(this.buttonX1);
this.panelEx1.Controls.Add(this.btnSel);
this.panelEx1.Controls.Add(this.lblPatient);
this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty;
@ -290,7 +292,7 @@
this.btnSel.Location = new System.Drawing.Point(10, 11);
this.btnSel.Margin = new System.Windows.Forms.Padding(2);
this.btnSel.Name = "btnSel";
this.btnSel.Size = new System.Drawing.Size(99, 23);
this.btnSel.Size = new System.Drawing.Size(72, 23);
this.btnSel.TabIndex = 6;
this.btnSel.Text = "批量打印";
this.btnSel.Click += new System.EventHandler(this.btnSel_Click);
@ -301,10 +303,10 @@
//
//
this.lblPatient.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.lblPatient.Location = new System.Drawing.Point(116, 10);
this.lblPatient.Location = new System.Drawing.Point(166, 8);
this.lblPatient.Margin = new System.Windows.Forms.Padding(2);
this.lblPatient.Name = "lblPatient";
this.lblPatient.Size = new System.Drawing.Size(870, 26);
this.lblPatient.Size = new System.Drawing.Size(534, 26);
this.lblPatient.TabIndex = 5;
//
// expandablePanel1
@ -337,6 +339,18 @@
this.expandablePanel1.TitleStyle.GradientAngle = 90;
this.expandablePanel1.TitleText = "文档目录";
//
// buttonX1
//
this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.buttonX1.Location = new System.Drawing.Point(86, 11);
this.buttonX1.Margin = new System.Windows.Forms.Padding(2);
this.buttonX1.Name = "buttonX1";
this.buttonX1.Size = new System.Drawing.Size(76, 23);
this.buttonX1.TabIndex = 6;
this.buttonX1.Text = "数据中心";
this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click);
//
// frmDocument3
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@ -381,5 +395,6 @@
private DevComponents.DotNetBar.LabelX lblPatient;
private DevComponents.DotNetBar.ExpandablePanel expandablePanel1;
private DevComponents.DotNetBar.ButtonX btnSel;
private DevComponents.DotNetBar.ButtonX buttonX1;
}
}

View File

@ -1182,6 +1182,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
private void FrmFactOutputLiquids_OutParam()
{
templateManage.Bind("OutputManage");
templateManage.Bind("RemarkManage");
zgcAnaesRecord.Refresh();
}

View File

@ -1342,8 +1342,6 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
if (applic == null)
{
string ApplianceNumber = dr["ApplianceNumber"].ToString();
if (_applianceUseType != null && _applianceUseType.Count == 1 && _applianceUseType[0].Id == 1)
ApplianceNumber = "";
uc.GoodsNumber = ApplianceNumber;
}
uc.Location = new Point((uc.Width) * i, (uc.Height - 1) * j);

View File

@ -659,17 +659,6 @@ namespace AIMS.PublicUI.UI
if (_dataGridView.CurrentCell != null)
{
_dataGridView.BeginEdit(true);
//if (_dataGridView.CurrentCell.ColumnIndex == 14 && _dataGridView.CurrentCell.EditedFormattedValue.ToString() == "")
//{
// _dataGridView.CurrentCell.Value = PublicMethod.ServerTime(); ;
// //开始注销的 不显示时间 LM解开 不知原因为何
// SendKeys.Send("{Tab}");
//}
//if (_dataGridView.CurrentCell.ColumnIndex == 10)
//{
// GetControlPosition(_dataGridView, _dataGridView.CurrentCell);
// dgvDosage.Visible = true;
//}
//点击Sign列时显示持续事件标记
if (_dataGridView.CurrentCell.ColumnIndex == 15)
{
@ -789,11 +778,7 @@ namespace AIMS.PublicUI.UI
{
if (_dataGridView.CurrentRow != null)
{
string objectName = _dataGridView.CurrentRow.Cells[3].EditedFormattedValue.ToString();//药品名称
//string messang = string.Format("确定要删除:{0}吗?", objectName);
//DialogResult dr = MessageBox.Show(messang, "删除提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);
//if (dr == System.Windows.Forms.DialogResult.OK)
//{
string objectName = _dataGridView.CurrentRow.Cells[3].EditedFormattedValue.ToString();
if (_dataGridView.CurrentRow.Tag != null)
{
int id = Convert.ToInt32(_dataGridView.CurrentRow.Tag);
@ -816,6 +801,7 @@ namespace AIMS.PublicUI.UI
FullALLDGV();
tabDrugs_SelectedTabChanged(null, null);
if (DrugsParam != null) DrugsParam();
}
else
{
@ -825,7 +811,6 @@ namespace AIMS.PublicUI.UI
_lineNumber = 0;
}
}
//}
}
}
catch (Exception ex)
@ -1469,40 +1454,6 @@ namespace AIMS.PublicUI.UI
void dgvTxt_PreviewKeyDownEvent(object sender, PreviewKeyDownEventArgs e)
{
////常用默认剂量小于2不做操作
//if (dgvDosage.Rows.Count < 2)
//{
// if (e.KeyCode == Keys.Up || e.KeyCode == Keys.Down || e.KeyCode == Keys.Enter)
// {
// _dataGridView.CurrentCell = _dataGridView.Rows[_dataGridView.CurrentCell.RowIndex + 1].Cells[3];
// _dataGridView.BeginEdit(true);
// }
// dgvDosage.Visible = false;
// return;
//}
////显示默认剂量列表
//if (dgvDosage.Visible == false)
//{
// dgvDosage.Visible = true;
// GetControlPosition(dgvDosage, _dataGridView.CurrentCell);
//}
////点击上下键时默认剂量列表显示并定位光标
//if (e.KeyCode == Keys.Up)
//{
// dgvDosage.Focus();
// dgvDosage.Rows[dgvDosage.Rows.Count - 1].Selected = true;
// dgvDosage.CurrentCell = dgvDosage.Rows[dgvDosage.Rows.Count - 1].Cells[0];
//}
//if (e.KeyCode == Keys.Down)
//{
// if (dgvDosage.Rows.Count > 0)
// {
// dgvDosage.Focus();
// dgvDosage.Rows[0].Selected = true;
// dgvDosage.CurrentCell = dgvDosage.Rows[0].Cells[0];
// }
//}
}
///<summary>
///获取单元格的位置并显示面板

View File

@ -33,7 +33,6 @@
this.tsbSava = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.tsbCancel = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.tsbSet = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.tsbExit = new System.Windows.Forms.ToolStripButton();
@ -119,6 +118,7 @@
this.label19 = new System.Windows.Forms.Label();
this.txtOperationDoctor = new System.Windows.Forms.TextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.cboPatientType = new System.Windows.Forms.ComboBox();
this.txtContactsPhone = new System.Windows.Forms.TextBox();
this.label16 = new System.Windows.Forms.Label();
this.txtContacts = new System.Windows.Forms.TextBox();
@ -153,7 +153,6 @@
this.btnDR = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.txtMdrecNo = new System.Windows.Forms.TextBox();
this.cboPatientType = new System.Windows.Forms.ComboBox();
this.toolStrip1.SuspendLayout();
this.panel1.SuspendLayout();
this.groupBox3.SuspendLayout();
@ -172,7 +171,6 @@
this.tsbSava,
this.toolStripSeparator4,
this.tsbCancel,
this.toolStripSeparator1,
this.tsbSet,
this.toolStripSeparator2,
this.tsbExit});
@ -211,11 +209,6 @@
this.tsbCancel.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.tsbCancel.Click += new System.EventHandler(this.tsbCancel_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 49);
//
// tsbSet
//
this.tsbSet.Font = new System.Drawing.Font("微软雅黑", 9F);
@ -1134,6 +1127,19 @@
this.groupBox1.TabStop = false;
this.groupBox1.Text = "病人基本信息";
//
// cboPatientType
//
this.cboPatientType.Font = new System.Drawing.Font("微软雅黑", 10.5F);
this.cboPatientType.FormattingEnabled = true;
this.cboPatientType.Items.AddRange(new object[] {
"住院",
"门诊"});
this.cboPatientType.Location = new System.Drawing.Point(6, 27);
this.cboPatientType.Name = "cboPatientType";
this.cboPatientType.Size = new System.Drawing.Size(74, 28);
this.cboPatientType.TabIndex = 37;
this.cboPatientType.Text = "住院";
//
// txtContactsPhone
//
this.txtContactsPhone.Location = new System.Drawing.Point(918, 100);
@ -1446,19 +1452,6 @@
this.txtMdrecNo.Size = new System.Drawing.Size(109, 23);
this.txtMdrecNo.TabIndex = 3;
//
// cboPatientType
//
this.cboPatientType.Font = new System.Drawing.Font("微软雅黑", 10.5F);
this.cboPatientType.FormattingEnabled = true;
this.cboPatientType.Items.AddRange(new object[] {
"住院",
"门诊"});
this.cboPatientType.Location = new System.Drawing.Point(6, 27);
this.cboPatientType.Name = "cboPatientType";
this.cboPatientType.Size = new System.Drawing.Size(74, 28);
this.cboPatientType.TabIndex = 37;
this.cboPatientType.Text = "住院";
//
// frmOperationApplyDetail
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@ -1497,7 +1490,6 @@
private System.Windows.Forms.ToolStripButton tsbSava;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
private System.Windows.Forms.ToolStripButton tsbSet;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.TextBox txtIntern;
private System.Windows.Forms.Label label34;

View File

@ -1,22 +1,18 @@
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using DevComponents.DotNetBar;
using System.Collections.Generic;
using DevComponents.DotNetBar.Controls;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Linq;
using DevComponents.DotNetBar.SuperGrid;
using DataDictionary;
using AIMSModel;
using AIMSExtension;
using AIMSBLL;
using AIMS.OremrUserControl;
using System.Linq.Expressions;
using AIMSBLL;
using AIMSExtension;
using AIMSModel;
using DevComponents.DotNetBar;
using DevComponents.DotNetBar.Controls;
using DevComponents.DotNetBar.SuperGrid;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
namespace AIMS.OperationFront.UI
{
@ -489,10 +485,12 @@ namespace AIMS.OperationFront.UI
this.colDel = new DevComponents.DotNetBar.SuperGrid.GridColumn();
this.gridColumn2 = new DevComponents.DotNetBar.SuperGrid.GridColumn();
this.panel1 = new System.Windows.Forms.Panel();
this.lblcount = new System.Windows.Forms.Label();
this.btnWorkPlan = new System.Windows.Forms.Button();
this.btnDataCente = new System.Windows.Forms.Button();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.label4 = new System.Windows.Forms.Label();
this.lblcount = new System.Windows.Forms.Label();
this.btnWorkPlan = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.btnPlan = new System.Windows.Forms.Button();
@ -581,8 +579,6 @@ namespace AIMS.OperationFront.UI
this.dataGridViewTextBoxColumn46 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn47 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn48 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btnDataCente = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.navigationPane1.SuspendLayout();
this.navigationPanePanel1.SuspendLayout();
this.groupBoxsel.SuspendLayout();
@ -768,7 +764,7 @@ namespace AIMS.OperationFront.UI
this.dgvApplyOrDoctor.DefaultCellStyle = dataGridViewCellStyle9;
this.dgvApplyOrDoctor.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvApplyOrDoctor.EnableHeadersVisualStyles = false;
this.dgvApplyOrDoctor.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170)))));
this.dgvApplyOrDoctor.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
this.dgvApplyOrDoctor.Location = new System.Drawing.Point(0, 89);
this.dgvApplyOrDoctor.Name = "dgvApplyOrDoctor";
this.dgvApplyOrDoctor.ReadOnly = true;
@ -2251,37 +2247,37 @@ namespace AIMS.OperationFront.UI
//
this.ctsThisRoom.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.mnuChangeOptRoomTo,
this.mnuCancelINurse,
this.mnuCancelADoctor,
this.mnuCancelINurse,
this.mnuCancelTNurse});
this.ctsThisRoom.Name = "ctsThisRoom";
this.ctsThisRoom.Size = new System.Drawing.Size(149, 92);
this.ctsThisRoom.Size = new System.Drawing.Size(181, 114);
this.ctsThisRoom.Opening += new System.ComponentModel.CancelEventHandler(this.ctsThisRoom_Opening);
//
// mnuChangeOptRoomTo
//
this.mnuChangeOptRoomTo.Name = "mnuChangeOptRoomTo";
this.mnuChangeOptRoomTo.Size = new System.Drawing.Size(148, 22);
this.mnuChangeOptRoomTo.Size = new System.Drawing.Size(180, 22);
this.mnuChangeOptRoomTo.Text = "更换手术间至";
//
// mnuCancelINurse
//
this.mnuCancelINurse.Name = "mnuCancelINurse";
this.mnuCancelINurse.Size = new System.Drawing.Size(148, 22);
this.mnuCancelINurse.Size = new System.Drawing.Size(180, 22);
this.mnuCancelINurse.Text = "取消洗手护士";
this.mnuCancelINurse.Click += new System.EventHandler(this.mnuCancelINurse_Click);
//
// mnuCancelADoctor
//
this.mnuCancelADoctor.Name = "mnuCancelADoctor";
this.mnuCancelADoctor.Size = new System.Drawing.Size(148, 22);
this.mnuCancelADoctor.Size = new System.Drawing.Size(180, 22);
this.mnuCancelADoctor.Text = "取消麻醉排程";
this.mnuCancelADoctor.Click += new System.EventHandler(this.mnuCancelADoctor_Click);
//
// mnuCancelTNurse
//
this.mnuCancelTNurse.Name = "mnuCancelTNurse";
this.mnuCancelTNurse.Size = new System.Drawing.Size(148, 22);
this.mnuCancelTNurse.Size = new System.Drawing.Size(180, 22);
this.mnuCancelTNurse.Text = "取消巡回护士";
this.mnuCancelTNurse.Click += new System.EventHandler(this.mnuCancelTNurse_Click);
//
@ -2434,6 +2430,48 @@ namespace AIMS.OperationFront.UI
this.panel1.Size = new System.Drawing.Size(1051, 39);
this.panel1.TabIndex = 0;
//
// btnDataCente
//
this.btnDataCente.BackColor = System.Drawing.Color.Transparent;
this.btnDataCente.ContextMenuStrip = this.contextMenuStrip1;
this.btnDataCente.Dock = System.Windows.Forms.DockStyle.Left;
this.btnDataCente.FlatAppearance.BorderSize = 0;
this.btnDataCente.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnDataCente.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnDataCente.Location = new System.Drawing.Point(552, 0);
this.btnDataCente.Name = "btnDataCente";
this.btnDataCente.Size = new System.Drawing.Size(78, 39);
this.btnDataCente.TabIndex = 503;
this.btnDataCente.Text = "数据中心";
this.btnDataCente.UseVisualStyleBackColor = false;
this.btnDataCente.Click += new System.EventHandler(this.btnDataCente_Click);
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(149, 26);
//
// 取消排程通过ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "取消排程通过ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
this.ToolStripMenuItem.Text = "取消排程通过";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// label4
//
this.label4.BackColor = System.Drawing.Color.Transparent;
this.label4.Dock = System.Windows.Forms.DockStyle.Left;
this.label4.Font = new System.Drawing.Font("微软雅黑", 11F);
this.label4.Location = new System.Drawing.Point(542, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(10, 39);
this.label4.TabIndex = 502;
this.label4.Text = "|\r\n";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lblcount
//
this.lblcount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
@ -2463,20 +2501,6 @@ namespace AIMS.OperationFront.UI
this.btnWorkPlan.Visible = false;
this.btnWorkPlan.Click += new System.EventHandler(this.btnWorkPlan_Click);
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(149, 26);
//
// 取消排程通过ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "取消排程通过ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
this.ToolStripMenuItem.Text = "取消排程通过";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// button3
//
this.button3.BackColor = System.Drawing.Color.Transparent;
@ -3418,34 +3442,6 @@ namespace AIMS.OperationFront.UI
this.dataGridViewTextBoxColumn48.HeaderText = "类别";
this.dataGridViewTextBoxColumn48.Name = "dataGridViewTextBoxColumn48";
//
// btnDataCente
//
this.btnDataCente.BackColor = System.Drawing.Color.Transparent;
this.btnDataCente.ContextMenuStrip = this.contextMenuStrip1;
this.btnDataCente.Dock = System.Windows.Forms.DockStyle.Left;
this.btnDataCente.FlatAppearance.BorderSize = 0;
this.btnDataCente.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnDataCente.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnDataCente.Location = new System.Drawing.Point(552, 0);
this.btnDataCente.Name = "btnDataCente";
this.btnDataCente.Size = new System.Drawing.Size(78, 39);
this.btnDataCente.TabIndex = 503;
this.btnDataCente.Text = "数据中心";
this.btnDataCente.UseVisualStyleBackColor = false;
this.btnDataCente.Click += new System.EventHandler(this.btnDataCente_Click);
//
// label4
//
this.label4.BackColor = System.Drawing.Color.Transparent;
this.label4.Dock = System.Windows.Forms.DockStyle.Left;
this.label4.Font = new System.Drawing.Font("微软雅黑", 11F);
this.label4.Location = new System.Drawing.Point(542, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(10, 39);
this.label4.TabIndex = 502;
this.label4.Text = "|\r\n";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// frmOperationSchedulePlan
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@ -4180,8 +4176,8 @@ namespace AIMS.OperationFront.UI
outMsg = string.Format("{2} 更换 患者:{0} 手术间{1} 成功!", grCurrentSub.Cells["Patient"].Value, opeRoom, RoomCardManage.lastSelectOpeRoom.operationRoom.Name);
RoomCardManage.WriteMsg(rtbLog, outMsg);
LoadOperationInfo(opeRoom.Id.Value);
LoadOperationInfoDgv(CurrentRoom);
dgvDetail.PrimaryGrid.Rows.Remove(grCurrentSub);
LoadOperationInfoDgv(RoomCardManage.lastSelectOpeRoom.operationRoom.Id.Value);
//dgvDetail.PrimaryGrid.Rows.Remove(grCurrentSub);
}
catch (Exception ex)
{
@ -4573,7 +4569,104 @@ namespace AIMS.OperationFront.UI
private void ctsThisRoom_Opening(object sender, CancelEventArgs e)
{
if (selApply == null || selApply == "") return;
mnuCancelADoctor.DropDownItems.Clear();
mnuCancelINurse.DropDownItems.Clear();
mnuCancelTNurse.DropDownItems.Clear();
if (selApply == "")
return;
if (RoomCardManage.lastSelectOpeRoom == null) return;
System.Data.DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(RoomCardManage.lastSelectOpeRoom.pDataTable, " ApplyID=" + selApply, "");
if (Newdt != null && Newdt.Rows.Count > 0)
{
DataRow item = Newdt.Rows[0];
#region
string sAnesthesiaDoctor = item["AnesthesiaDoctor"].ToString();
if (!string.IsNullOrWhiteSpace(sAnesthesiaDoctor))
{
List<string> Anesthesia = sAnesthesiaDoctor.Split(',').ToList();
List<string> AnesthesiaId = item["AnesthesiaDoctorId"].ToString().Split(',').ToList();
if (Anesthesia.Count > 0 && AnesthesiaId.Count > 0)
{
for (int i = 0; i < AnesthesiaId.Count; i++)
{
ToolStripItem tspAnes = new ToolStripMenuItem(Anesthesia[i]);
tspAnes.Tag = AnesthesiaId[i];
tspAnes.Click += TspAnes_Click;
mnuCancelADoctor.DropDownItems.Add(tspAnes);
}
}
}
#endregion
#region
string sInstrumentNurse = item["InstrumentNurse"].ToString();
if (!string.IsNullOrWhiteSpace(sInstrumentNurse))
{
List<string> Instrument = sInstrumentNurse.Split(',').ToList();
List<string> InstrumentId = item["InstrumentNurseId"].ToString().Split(',').ToList();
if (Instrument.Count > 0 && InstrumentId.Count > 0)
{
for (int i = 0; i < InstrumentId.Count; i++)
{
ToolStripItem tspIns = new ToolStripMenuItem( Instrument[i]);
tspIns.Tag = InstrumentId[i];
tspIns.Click += TspNurse1_Click;
mnuCancelINurse.DropDownItems.Add( tspIns);
}
}
}
#endregion
#region
string sTourNurse = item["TourNurse"].ToString();
if (!string.IsNullOrWhiteSpace(sTourNurse))
{
List<string> Tour = sTourNurse.Split(',').ToList();
List<string> TourId = item["TourNurseId"].ToString().Split(',').ToList();
if (Tour.Count > 0 && TourId.Count > 0)
{
for (int i = 0; i < TourId.Count; i++)
{
ToolStripItem tspNurse2 = new ToolStripMenuItem( Tour[i]);
tspNurse2.Tag = TourId[i] ;
tspNurse2.Click += TspNurse2_Click;
mnuCancelTNurse.DropDownItems.Add(tspNurse2 );
}
}
}
#endregion
}
}
private void TspAnes_Click(object sender, EventArgs e)
{
if (selApply == null || selApply == "") return;
int dict = int.Parse((sender as ToolStripItem).Tag.ToString());
BApplyPersonDuty.Delete(" PersonId='" + dict + "' and PersonDutyId in(5) and OperationApplyId=" + selApply, null);
LoadOperationInfoDgv(RoomCardManage.lastSelectOpeRoom.operationRoom.Id.Value);
MessageBox.Show("撤销麻醉医生成功!");
}
private void TspNurse1_Click(object sender, EventArgs e)
{
if (selApply == null || selApply == "") return;
int dict = int.Parse((sender as ToolStripItem).Tag.ToString());
BApplyPersonDuty.Delete(" PersonId='" + dict + "' and PersonDutyId in(6) and OperationApplyId=" + selApply , null);
LoadOperationInfoDgv(RoomCardManage.lastSelectOpeRoom.operationRoom.Id.Value);
MessageBox.Show("撤销洗手护士成功!");
}
private void TspNurse2_Click(object sender, EventArgs e)
{
if (selApply == null || selApply == "") return;
int dict = int.Parse((sender as ToolStripItem).Tag.ToString());
BApplyPersonDuty.Delete(" PersonId='" + dict + "' and PersonDutyId in(7) and OperationApplyId=" + selApply , null);
LoadOperationInfoDgv(RoomCardManage.lastSelectOpeRoom.operationRoom.Id.Value);
MessageBox.Show("撤销巡回护士成功!");
}
private void sgcDetail_RowActivated(object sender, GridRowActivatedEventArgs e)
{
if (e.NewActiveRow != null)

View File

@ -251,7 +251,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD+
CAAAAk1TRnQBSQFMAgEBAgEAAbwBEwG8ARMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
CAAAAk1TRnQBSQFMAgEBAgEAAcQBEwHEARMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA

View File

@ -98,13 +98,13 @@ namespace AIMS.OremrUserControl
goodsNumber = value;
//this.txtDoing.Text = "0";
//if (goodsNumber != "")
//{
// this.txtFront.Text = goodsNumber;
// this.txtCloseFront.Text = goodsNumber;
// this.txtCloseLast.Text = goodsNumber;
// this.txtSkinCloseLast.Text = goodsNumber;
//}
if (goodsNumber != "" && goodsNumber != "0")
{
this.txtFront.Text = goodsNumber;
//this.txtCloseFront.Text = goodsNumber;
//this.txtCloseLast.Text = goodsNumber;
//this.txtSkinCloseLast.Text = goodsNumber;
}
}
}
public string OpeFront

View File

@ -94,40 +94,40 @@
this.tsDelNs2,
this.tsUpdateRoom});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(173, 114);
this.contextMenuStrip1.Size = new System.Drawing.Size(181, 136);
//
// tsDel
//
this.tsDel.Name = "tsDel";
this.tsDel.Size = new System.Drawing.Size(172, 22);
this.tsDel.Size = new System.Drawing.Size(180, 22);
this.tsDel.Text = "撤销所有排程";
this.tsDel.Click += new System.EventHandler(this.tsDel_Click);
//
// tsDelAnes
//
this.tsDelAnes.Name = "tsDelAnes";
this.tsDelAnes.Size = new System.Drawing.Size(172, 22);
this.tsDelAnes.Size = new System.Drawing.Size(180, 22);
this.tsDelAnes.Text = "取消麻醉医生";
this.tsDelAnes.Click += new System.EventHandler(this.tsDelAnes_Click);
//
// tsDelNs1
//
this.tsDelNs1.Name = "tsDelNs1";
this.tsDelNs1.Size = new System.Drawing.Size(172, 22);
this.tsDelNs1.Size = new System.Drawing.Size(180, 22);
this.tsDelNs1.Text = "取消洗手护士";
this.tsDelNs1.Click += new System.EventHandler(this.tsDelNs1_Click);
//
// tsDelNs2
//
this.tsDelNs2.Name = "tsDelNs2";
this.tsDelNs2.Size = new System.Drawing.Size(172, 22);
this.tsDelNs2.Size = new System.Drawing.Size(180, 22);
this.tsDelNs2.Text = "取消巡回护士";
this.tsDelNs2.Click += new System.EventHandler(this.tsDelNs2_Click);
//
// tsUpdateRoom
//
this.tsUpdateRoom.Name = "tsUpdateRoom";
this.tsUpdateRoom.Size = new System.Drawing.Size(172, 22);
this.tsUpdateRoom.Size = new System.Drawing.Size(180, 22);
this.tsUpdateRoom.Text = "全部更换手术间至";
//
// lblNurse

View File

@ -12,6 +12,7 @@ using AIMSExtension;
using AIMSBLL;
using System.Drawing.Drawing2D;
using DCSoftDotfuscate;
using System.Net;
namespace AIMS.OremrUserControl
{
@ -273,16 +274,18 @@ namespace AIMS.OremrUserControl
return grNew;
}
Dictionary<int, string> lstAnseDoctors;
Dictionary<int, string> lstNurse;
Dictionary<int, string> lstNurse2;
/// <summary>
/// 绘制手术间医生信息
/// </summary>
public void DrawRoomText()
{
List<string> lstOpeDoctors = new List<string>();
List<string> lstAnseDoctors = new List<string>();
List<string> lstNurse = new List<string>();
List<string> lstNurse2 = new List<string>();
List<string> lstInfos = new List<string>();
lstAnseDoctors = new Dictionary<int, string>();
lstNurse = new Dictionary<int, string>();
lstNurse2 = new Dictionary<int, string>();
bool isPassed = false;
lblNurse2.Text = "巡回护士";
lblNurse2.ForeColor = Color.Gray;
@ -306,29 +309,45 @@ namespace AIMS.OremrUserControl
string sAnesthesiaDoctor = item["AnesthesiaDoctor"].ToString();
if (!string.IsNullOrWhiteSpace(sAnesthesiaDoctor))
{
sAnesthesiaDoctor.Split(',').ToList().ForEach(d =>
List<string> Anesthesia = sAnesthesiaDoctor.Split(',').ToList();
List<string> AnesthesiaId = item["AnesthesiaDoctorId"].ToString().Split(',').ToList();
if (Anesthesia.Count > 0 && AnesthesiaId.Count > 0)
{
if (!lstAnseDoctors.Contains(d))
lstAnseDoctors.Add(d);
});
for (int i = 0; i < AnesthesiaId.Count; i++)
{
if (!lstAnseDoctors.ContainsKey(int.Parse(AnesthesiaId[i])))
lstAnseDoctors.Add(int.Parse(AnesthesiaId[i]), Anesthesia[i]);
}
}
}
string sInstrumentNurse = item["InstrumentNurse"].ToString();
if (!string.IsNullOrWhiteSpace(sInstrumentNurse))
{
sInstrumentNurse.Split(',').ToList().ForEach(d =>
List<string> Instrument = sInstrumentNurse.Split(',').ToList();
List<string> InstrumentId = item["InstrumentNurseId"].ToString().Split(',').ToList();
if (Instrument.Count > 0 && InstrumentId.Count > 0)
{
if (!lstNurse.Contains(d))
lstNurse.Add(d);
});
for (int i = 0; i < InstrumentId.Count; i++)
{
if (!lstNurse.ContainsKey(int.Parse(InstrumentId[i])))
lstNurse.Add(int.Parse(InstrumentId[i]), Instrument[i]);
}
}
}
string sTourNurse = item["TourNurse"].ToString();
if (!string.IsNullOrWhiteSpace(sTourNurse))
{
sTourNurse.Split(',').ToList().ForEach(d =>
List<string> Tour = sTourNurse.Split(',').ToList();
List<string> TourId = item["TourNurseId"].ToString().Split(',').ToList();
if (Tour.Count > 0 && TourId.Count > 0)
{
if (!lstNurse2.Contains(d))
lstNurse2.Add(d);
});
for (int i = 0; i < TourId.Count; i++)
{
if (!lstNurse2.ContainsKey(int.Parse(TourId[i])))
lstNurse2.Add(int.Parse(TourId[i]), Tour[i]);
}
}
}
if (lstOpeDoctors.Count > 0)
@ -351,61 +370,12 @@ namespace AIMS.OremrUserControl
lblOpeDoctors.ForeColor = Color.Gray;
}
if (lstAnseDoctors.Count > 0)
{
lblAnesDoctors.Text = "";
lstAnseDoctors.ForEach(s =>
{
lblAnesDoctors.Text += s + ",";
});
lblAnesDoctors.Text = lblAnesDoctors.Text.TrimEnd(',');
if (isPassed == true)
lblAnesDoctors.ForeColor = Color.Red;
else
lblAnesDoctors.ForeColor = Color.Blue;
}
else
{
lblAnesDoctors.Text = "麻醉医生";
lblAnesDoctors.ForeColor = Color.Gray;
}
SetAnseDoctorsText(isPassed);
SetNurse1Text(isPassed);
SetNurse2Text(isPassed);
if (lstNurse.Count > 0)
{
lblNurse.Text = "";
lstNurse.ForEach(s =>
{
lblNurse.Text += s + ",";
});
lblNurse.Text = lblNurse.Text.TrimEnd(',');
if (isPassed == true)
lblNurse.ForeColor = Color.Red;
else
lblNurse.ForeColor = Color.Blue;
}
else
{
lblNurse.Text = "洗手护士";
lblNurse.ForeColor = Color.Gray;
}
if (lstNurse2.Count > 0)
{
lblNurse2.Text = "";
lstNurse2.ForEach(s =>
{
lblNurse2.Text += s + ",";
});
lblNurse2.Text = lblNurse2.Text.TrimEnd(',');
if (isPassed == true)
lblNurse2.ForeColor = Color.Red;
else
lblNurse2.ForeColor = Color.Blue;
}
else
{
lblNurse2.Text = "巡回护士";
lblNurse2.ForeColor = Color.Gray;
}
if (int.Parse(item["StateId"].ToString()) >= 4)
{
lblAnesDoctors.ForeColor = Color.Red;
@ -425,6 +395,135 @@ namespace AIMS.OremrUserControl
labTabindex.ForeColor = Color.Black;
}
}
}
private void SetAnseDoctorsText(bool isPassed)
{
if (lstAnseDoctors.Count > 0)
{
lblAnesDoctors.Text = "";
tsDelAnes.DropDownItems.Clear();
foreach (var ans in lstAnseDoctors)
{
ToolStripItem tspAnes = new ToolStripMenuItem(ans.Value);
tspAnes.Tag = ans.Key;
tspAnes.Click += TspAnes_Click;
tsDelAnes.DropDownItems.Add(tspAnes);
lblAnesDoctors.Text += ans.Value + ",";
}
lblAnesDoctors.Text = lblAnesDoctors.Text.TrimEnd(',');
if (isPassed == true)
lblAnesDoctors.ForeColor = Color.Red;
else
lblAnesDoctors.ForeColor = Color.Blue;
}
else
{
lblAnesDoctors.Text = "麻醉医生";
lblAnesDoctors.ForeColor = Color.Gray;
tsDelAnes.DropDownItems.Clear();
}
}
private void SetNurse1Text(bool isPassed)
{
if (lstNurse.Count > 0)
{
lblNurse.Text = "";
tsDelNs1.DropDownItems.Clear();
foreach (var ins in lstNurse)
{
ToolStripItem tspIns = new ToolStripMenuItem(ins.Value);
tspIns.Tag = ins.Key;
tspIns.Click += TspNurse1_Click;
tsDelNs1.DropDownItems.Add(tspIns);
lblNurse.Text += ins.Value + ",";
}
lblNurse.Text = lblNurse.Text.TrimEnd(',');
if (isPassed == true)
lblNurse.ForeColor = Color.Red;
else
lblNurse.ForeColor = Color.Blue;
}
else
{
lblNurse.Text = "洗手护士";
lblNurse.ForeColor = Color.Gray;
tsDelNs1.DropDownItems.Clear();
}
}
private void SetNurse2Text(bool isPassed)
{
if (lstNurse2.Count > 0)
{
lblNurse2.Text = "";
tsDelNs2.DropDownItems.Clear();
foreach (var ins2 in lstNurse2)
{
ToolStripItem tspNurse2 = new ToolStripMenuItem(ins2.Value);
tspNurse2.Tag = ins2.Key;
tspNurse2.Click += TspNurse2_Click;
tsDelNs2.DropDownItems.Add(tspNurse2);
lblNurse2.Text += ins2.Value + ",";
}
lblNurse2.Text = lblNurse2.Text.TrimEnd(',');
if (isPassed == true)
lblNurse2.ForeColor = Color.Red;
else
lblNurse2.ForeColor = Color.Blue;
}
else
{
lblNurse2.Text = "巡回护士";
lblNurse2.ForeColor = Color.Gray;
tsDelNs2.DropDownItems.Clear();
}
}
private void TspAnes_Click(object sender, EventArgs e)
{
if (pDataTable.Rows.Count <= 0) return;
int dict = int.Parse((sender as ToolStripItem).Tag.ToString());
foreach (DataRow item in pDataTable.Rows)
{
string OperationApplyId = item["ApplyId"].ToString();
BApplyPersonDuty.Delete(" PersonId='" + dict + "' and PersonDutyId in(5) and OperationApplyId=" + OperationApplyId, null);
}
lstAnseDoctors.Remove(dict);
SetAnseDoctorsText(false);
RaiseDataSavedEvent();
MessageBox.Show("撤销麻醉医生成功!");
}
private void TspNurse1_Click(object sender, EventArgs e)
{
if (pDataTable.Rows.Count <= 0) return;
int dict = int.Parse((sender as ToolStripItem).Tag.ToString());
foreach (DataRow item in pDataTable.Rows)
{
string OperationApplyId = item["ApplyId"].ToString();
BApplyPersonDuty.Delete(" PersonId='" + dict + "' and PersonDutyId in(6) and OperationApplyId=" + OperationApplyId, null);
}
lstNurse.Remove(dict);
SetNurse1Text(false);
RaiseDataSavedEvent();
MessageBox.Show("撤销洗手护士成功!");
}
private void TspNurse2_Click(object sender, EventArgs e)
{
if (pDataTable.Rows.Count <= 0) return;
int dict = int.Parse((sender as ToolStripItem).Tag.ToString());
foreach (DataRow item in pDataTable.Rows)
{
string OperationApplyId = item["ApplyId"].ToString();
BApplyPersonDuty.Delete(" PersonId='" + dict + "' and PersonDutyId in(7) and OperationApplyId=" + OperationApplyId, null);
}
lstNurse2.Remove(dict);
SetNurse2Text(false);
RaiseDataSavedEvent();
MessageBox.Show("撤销巡回护士成功!");
}
private void ucPlanOperationRoomCard_Load(object sender, EventArgs e)
@ -445,7 +544,7 @@ namespace AIMS.OremrUserControl
{
if (pDataTable.Rows.Count <= 0) return;
OperationRoom opeRoom = (sender as ToolStripItem).Tag as OperationRoom;
if (BOperationApply.SaveRoomOrderByTime(opeRoom.Id.Value , PlanOperationTime, operationRoom.Id.Value) > 0)
if (BOperationApply.SaveRoomOrderByTime(opeRoom.Id.Value, PlanOperationTime, operationRoom.Id.Value) > 0)
{
//刷新当前间台次
BOperationApply.UpdteOperationOrder(PlanOperationTime, operationRoom.Id.Value);
@ -466,5 +565,6 @@ namespace AIMS.OremrUserControl
}
}
}
}

View File

@ -64,7 +64,7 @@
this.txtHelpCode.ForeColor = System.Drawing.Color.Black;
this.txtHelpCode.Location = new System.Drawing.Point(108, 8);
this.txtHelpCode.Name = "txtHelpCode";
this.txtHelpCode.Size = new System.Drawing.Size(192, 23);
this.txtHelpCode.Size = new System.Drawing.Size(302, 23);
this.txtHelpCode.TabIndex = 0;
this.txtHelpCode.TextChanged += new System.EventHandler(this.txtHelpCode_TextChanged);
//
@ -104,7 +104,7 @@
this.labDown.AutoSize = true;
this.labDown.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labDown.ForeColor = System.Drawing.Color.Blue;
this.labDown.Location = new System.Drawing.Point(209, 8);
this.labDown.Location = new System.Drawing.Point(235, 8);
this.labDown.Name = "labDown";
this.labDown.Size = new System.Drawing.Size(49, 14);
this.labDown.TabIndex = 17;
@ -117,7 +117,7 @@
this.labUp.AutoSize = true;
this.labUp.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labUp.ForeColor = System.Drawing.Color.Blue;
this.labUp.Location = new System.Drawing.Point(70, 7);
this.labUp.Location = new System.Drawing.Point(96, 7);
this.labUp.Name = "labUp";
this.labUp.Size = new System.Drawing.Size(49, 14);
this.labUp.TabIndex = 16;
@ -128,7 +128,7 @@
// labPage
//
this.labPage.AutoSize = true;
this.labPage.Location = new System.Drawing.Point(140, 7);
this.labPage.Location = new System.Drawing.Point(166, 7);
this.labPage.Name = "labPage";
this.labPage.Size = new System.Drawing.Size(56, 14);
this.labPage.TabIndex = 15;
@ -142,7 +142,7 @@
this.groupBox2.Size = new System.Drawing.Size(366, 394);
this.groupBox2.TabIndex = 14;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "已选";
this.groupBox2.Text = "已选诊断";
//
// dgvSelectDisease
//
@ -203,7 +203,7 @@
this.btnToLeft.Name = "btnToLeft";
this.btnToLeft.Size = new System.Drawing.Size(31, 91);
this.btnToLeft.TabIndex = 13;
this.btnToLeft.Text = "<<";
this.btnToLeft.Text = "删\r\n\r\n除";
this.btnToLeft.UseVisualStyleBackColor = true;
this.btnToLeft.Click += new System.EventHandler(this.btnToLeft_Click);
//
@ -224,7 +224,7 @@
this.btnToRight.Name = "btnToRight";
this.btnToRight.Size = new System.Drawing.Size(31, 91);
this.btnToRight.TabIndex = 12;
this.btnToRight.Text = ">>";
this.btnToRight.Text = "添\r\n\r\n加";
this.btnToRight.UseVisualStyleBackColor = true;
this.btnToRight.Click += new System.EventHandler(this.btnToRight_Click);
//
@ -236,7 +236,7 @@
this.groupBox1.Size = new System.Drawing.Size(366, 397);
this.groupBox1.TabIndex = 11;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "待选";
this.groupBox1.Text = "待选诊断";
//
// dgvDisease
//
@ -283,29 +283,29 @@
//
// btnAddDisease
//
this.btnAddDisease.Location = new System.Drawing.Point(507, 6);
this.btnAddDisease.Location = new System.Drawing.Point(462, 3);
this.btnAddDisease.Name = "btnAddDisease";
this.btnAddDisease.Size = new System.Drawing.Size(80, 30);
this.btnAddDisease.TabIndex = 3;
this.btnAddDisease.Text = "添加诊断";
this.btnAddDisease.Text = "新增诊断";
this.btnAddDisease.UseVisualStyleBackColor = true;
this.btnAddDisease.Visible = false;
this.btnAddDisease.Click += new System.EventHandler(this.btnAddDisease_Click);
//
// btnOk
//
this.btnOk.Location = new System.Drawing.Point(379, 7);
this.btnOk.Location = new System.Drawing.Point(688, 3);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new System.Drawing.Size(80, 30);
this.btnOk.TabIndex = 2;
this.btnOk.Text = "确定选择";
this.btnOk.Text = "保存";
this.btnOk.UseVisualStyleBackColor = true;
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(39, 17);
this.label1.Location = new System.Drawing.Point(30, 13);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(63, 14);
this.label1.TabIndex = 1;

View File

@ -171,6 +171,7 @@ namespace AIMS.PublicUI.UI
DiseaseObj.IcdCode = "";
DiseaseObj.HelpCode = AIMSExtension.PublicMethod.GetFirstLetter(DiseaseObj.Name);
DiseaseObj.IsValid = 1;
DiseaseObj.UseRate = 1;
DiseaseObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
DiseaseObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
DiseaseObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
@ -187,6 +188,7 @@ namespace AIMS.PublicUI.UI
BDisease.Add(DiseaseObj);
txtHelpCode_TextChanged(null, null);
dgvDisease_CellDoubleClick(null, null);
}
private void dgvSelectDisease_CellDoubleClick(object sender, DataGridViewCellEventArgs e)

View File

@ -64,7 +64,7 @@
this.txtHelpCode.ForeColor = System.Drawing.Color.Black;
this.txtHelpCode.Location = new System.Drawing.Point(108, 8);
this.txtHelpCode.Name = "txtHelpCode";
this.txtHelpCode.Size = new System.Drawing.Size(192, 23);
this.txtHelpCode.Size = new System.Drawing.Size(403, 23);
this.txtHelpCode.TabIndex = 0;
this.txtHelpCode.TextChanged += new System.EventHandler(this.txtHelpCode_TextChanged);
//
@ -74,7 +74,7 @@
this.btnToRight.Name = "btnToRight";
this.btnToRight.Size = new System.Drawing.Size(31, 91);
this.btnToRight.TabIndex = 12;
this.btnToRight.Text = ">>";
this.btnToRight.Text = "添\r\n\r\n加";
this.btnToRight.UseVisualStyleBackColor = true;
this.btnToRight.Click += new System.EventHandler(this.btnToRight_Click);
//
@ -136,22 +136,22 @@
this.groupBox1.Size = new System.Drawing.Size(459, 397);
this.groupBox1.TabIndex = 11;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "待选";
this.groupBox1.Text = "待选手术";
//
// btnAddOperation
//
this.btnAddOperation.Location = new System.Drawing.Point(507, 6);
this.btnAddOperation.Location = new System.Drawing.Point(530, 5);
this.btnAddOperation.Name = "btnAddOperation";
this.btnAddOperation.Size = new System.Drawing.Size(80, 30);
this.btnAddOperation.TabIndex = 3;
this.btnAddOperation.Text = "添加手术";
this.btnAddOperation.Text = "新增手术";
this.btnAddOperation.UseVisualStyleBackColor = true;
this.btnAddOperation.Visible = false;
this.btnAddOperation.Click += new System.EventHandler(this.btnAddOperation_Click);
//
// btnOk
//
this.btnOk.Location = new System.Drawing.Point(379, 7);
this.btnOk.Location = new System.Drawing.Point(859, 6);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new System.Drawing.Size(80, 30);
this.btnOk.TabIndex = 2;
@ -165,7 +165,7 @@
this.btnToLeft.Name = "btnToLeft";
this.btnToLeft.Size = new System.Drawing.Size(31, 91);
this.btnToLeft.TabIndex = 13;
this.btnToLeft.Text = "<<";
this.btnToLeft.Text = "删\r\n\r\n除";
this.btnToLeft.UseVisualStyleBackColor = true;
this.btnToLeft.Click += new System.EventHandler(this.btnToLeft_Click);
//
@ -174,7 +174,7 @@
this.labDown.AutoSize = true;
this.labDown.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labDown.ForeColor = System.Drawing.Color.Blue;
this.labDown.Location = new System.Drawing.Point(209, 8);
this.labDown.Location = new System.Drawing.Point(249, 8);
this.labDown.Name = "labDown";
this.labDown.Size = new System.Drawing.Size(49, 14);
this.labDown.TabIndex = 17;
@ -201,7 +201,7 @@
this.labUp.AutoSize = true;
this.labUp.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labUp.ForeColor = System.Drawing.Color.Blue;
this.labUp.Location = new System.Drawing.Point(70, 7);
this.labUp.Location = new System.Drawing.Point(110, 7);
this.labUp.Name = "labUp";
this.labUp.Size = new System.Drawing.Size(49, 14);
this.labUp.TabIndex = 16;
@ -212,7 +212,7 @@
// labPage
//
this.labPage.AutoSize = true;
this.labPage.Location = new System.Drawing.Point(140, 7);
this.labPage.Location = new System.Drawing.Point(180, 7);
this.labPage.Name = "labPage";
this.labPage.Size = new System.Drawing.Size(56, 14);
this.labPage.TabIndex = 15;
@ -226,7 +226,7 @@
this.groupBox2.Size = new System.Drawing.Size(456, 394);
this.groupBox2.TabIndex = 14;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "已选";
this.groupBox2.Text = "已选手术";
//
// dgvSelectOperation
//
@ -295,7 +295,7 @@
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(39, 17);
this.label1.Location = new System.Drawing.Point(30, 13);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(63, 14);
this.label1.TabIndex = 1;

View File

@ -173,6 +173,7 @@ namespace AIMS.PublicUI.UI
OperationObj.IcdCode = "";
OperationObj.HelpCode = AIMSExtension.PublicMethod.GetFirstLetter(OperationObj.Name);
OperationObj.IsValid = 1;
OperationObj.UseRate = 1;
OperationObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
OperationObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
OperationObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
@ -189,6 +190,7 @@ namespace AIMS.PublicUI.UI
BOperation.Add(OperationObj);
txtHelpCode_TextChanged(null, null);
dgvOperation_CellDoubleClick(null, null);
}

View File

@ -129,6 +129,30 @@
<metadata name="level.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="IcdCodeColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="NameColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="level.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="SelectIdColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="SelectIcdCodeColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="SelectNameColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="level1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="SelectIdColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>

View File

@ -43,10 +43,21 @@
this.labPage = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.label2 = new System.Windows.Forms.Label();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.linkLabel2 = new System.Windows.Forms.LinkLabel();
((System.ComponentModel.ISupportInitialize)(this.dgvOperation)).BeginInit();
this.groupBox1.SuspendLayout();
this.panel2.SuspendLayout();
this.panel1.SuspendLayout();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// txtHelpCode
@ -110,27 +121,31 @@
//
// groupBox1
//
this.groupBox1.Controls.Add(this.linkLabel2);
this.groupBox1.Controls.Add(this.dgvOperation);
this.groupBox1.Controls.Add(this.groupBox2);
this.groupBox1.Controls.Add(this.linkLabel1);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Location = new System.Drawing.Point(25, 17);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(459, 555);
this.groupBox1.TabIndex = 11;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "待选";
this.groupBox1.Text = "待选手术";
//
// btnAddOperation
//
this.btnAddOperation.Location = new System.Drawing.Point(408, 3);
this.btnAddOperation.Location = new System.Drawing.Point(306, 3);
this.btnAddOperation.Name = "btnAddOperation";
this.btnAddOperation.Size = new System.Drawing.Size(80, 30);
this.btnAddOperation.TabIndex = 3;
this.btnAddOperation.Text = "加手术";
this.btnAddOperation.Text = "加手术";
this.btnAddOperation.UseVisualStyleBackColor = true;
this.btnAddOperation.Click += new System.EventHandler(this.btnAddOperation_Click);
//
// btnOk
//
this.btnOk.Location = new System.Drawing.Point(322, 5);
this.btnOk.Location = new System.Drawing.Point(398, 3);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new System.Drawing.Size(80, 30);
this.btnOk.TabIndex = 2;
@ -143,7 +158,7 @@
this.labDown.AutoSize = true;
this.labDown.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labDown.ForeColor = System.Drawing.Color.Blue;
this.labDown.Location = new System.Drawing.Point(209, 8);
this.labDown.Location = new System.Drawing.Point(295, 8);
this.labDown.Name = "labDown";
this.labDown.Size = new System.Drawing.Size(49, 14);
this.labDown.TabIndex = 17;
@ -167,7 +182,7 @@
this.labUp.AutoSize = true;
this.labUp.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labUp.ForeColor = System.Drawing.Color.Blue;
this.labUp.Location = new System.Drawing.Point(70, 7);
this.labUp.Location = new System.Drawing.Point(156, 7);
this.labUp.Name = "labUp";
this.labUp.Size = new System.Drawing.Size(49, 14);
this.labUp.TabIndex = 16;
@ -178,7 +193,7 @@
// labPage
//
this.labPage.AutoSize = true;
this.labPage.Location = new System.Drawing.Point(140, 7);
this.labPage.Location = new System.Drawing.Point(226, 7);
this.labPage.Name = "labPage";
this.labPage.Size = new System.Drawing.Size(56, 14);
this.labPage.TabIndex = 15;
@ -202,12 +217,107 @@
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(39, 17);
this.label1.Location = new System.Drawing.Point(39, 14);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(63, 14);
this.label1.TabIndex = 1;
this.label1.Text = "手术查询";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.dataGridView1);
this.groupBox2.Location = new System.Drawing.Point(0, 0);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(459, 555);
this.groupBox2.TabIndex = 11;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "待选手术";
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.BackgroundColor = System.Drawing.Color.White;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1,
this.dataGridViewTextBoxColumn2,
this.dataGridViewTextBoxColumn3,
this.dataGridViewTextBoxColumn4});
this.dataGridView1.Location = new System.Drawing.Point(6, 19);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersVisible = false;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dataGridView1.Size = new System.Drawing.Size(447, 530);
this.dataGridView1.TabIndex = 9;
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvOperation_CellDoubleClick);
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.DataPropertyName = "Id";
this.dataGridViewTextBoxColumn1.Frozen = true;
this.dataGridViewTextBoxColumn1.HeaderText = "Id";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.ReadOnly = true;
this.dataGridViewTextBoxColumn1.Visible = false;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.DataPropertyName = "IcdCode";
this.dataGridViewTextBoxColumn2.HeaderText = "编码";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.ReadOnly = true;
this.dataGridViewTextBoxColumn2.Width = 120;
//
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.DataPropertyName = "Name";
this.dataGridViewTextBoxColumn3.HeaderText = "手术名称";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
this.dataGridViewTextBoxColumn3.ReadOnly = true;
this.dataGridViewTextBoxColumn3.Width = 210;
//
// dataGridViewTextBoxColumn4
//
this.dataGridViewTextBoxColumn4.DataPropertyName = "level";
this.dataGridViewTextBoxColumn4.HeaderText = "手术分级";
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(196, -10);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(56, 14);
this.label2.TabIndex = 15;
this.label2.Text = "labPage";
//
// linkLabel1
//
this.linkLabel1.AutoSize = true;
this.linkLabel1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.linkLabel1.ForeColor = System.Drawing.Color.Blue;
this.linkLabel1.Location = new System.Drawing.Point(126, -10);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(49, 14);
this.linkLabel1.TabIndex = 16;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "上一页";
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.labUp_LinkClicked);
//
// linkLabel2
//
this.linkLabel2.AutoSize = true;
this.linkLabel2.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.linkLabel2.ForeColor = System.Drawing.Color.Blue;
this.linkLabel2.Location = new System.Drawing.Point(265, -9);
this.linkLabel2.Name = "linkLabel2";
this.linkLabel2.Size = new System.Drawing.Size(49, 14);
this.linkLabel2.TabIndex = 17;
this.linkLabel2.TabStop = true;
this.linkLabel2.Text = "下一页";
this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.labDown_LinkClicked);
//
// frmSelectOperationOne
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@ -222,10 +332,13 @@
this.Load += new System.EventHandler(this.frmSelectOperationOne_Load);
((System.ComponentModel.ISupportInitialize)(this.dgvOperation)).EndInit();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.groupBox2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
}
@ -247,5 +360,14 @@
private System.Windows.Forms.DataGridViewTextBoxColumn IcdCodeColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn NameColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn level;
private System.Windows.Forms.LinkLabel linkLabel2;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
private System.Windows.Forms.LinkLabel linkLabel1;
private System.Windows.Forms.Label label2;
}
}

View File

@ -146,6 +146,7 @@ namespace AIMS.PublicUI.UI
OperationObj.IcdCode = "";
OperationObj.HelpCode = AIMSExtension.PublicMethod.GetFirstLetter(OperationObj.Name);
OperationObj.IsValid = 1;
OperationObj.UseRate = 1;
OperationObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
OperationObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
OperationObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();

View File

@ -129,4 +129,28 @@
<metadata name="level.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="IcdCodeColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="NameColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="level.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@ -57,7 +57,7 @@ namespace AIMSDAL
public static DataTable GetPersonDataTable(int OperationApplyId)
{
List<int> PersonIdList = new List<int>();
string strSql = "SELECT PersonDutyId,PersonId FROM ApplyPersonDuty WHERE OperationApplyId=" + OperationApplyId + "";
string strSql = "SELECT PersonDutyId,PersonId FROM ApplyPersonDuty WHERE OperationApplyId=" + OperationApplyId + " and PersonDutyId in(1,2) ";
return HelperDB.DbHelperSQL.GetDataTable(strSql);
}
}

View File

@ -273,7 +273,7 @@ namespace AIMSDAL
"of1.VerifyTime, of1.VerifyOperatorName," +
"of1.PlanOperationTime, of1.OperationRoom, of1.OperationRoomId, of1.AnesthesiaDoctor," +
"of1.InstrumentNurse, of1.TourNurse, of1.AnesthesiaDoctorSucceed," +
"of1.InstrumentNurseSucceed, of1.TourNurseSucceed,of1.Remark,of1.PlanOrder,of1.PatientType " +
"of1.InstrumentNurseSucceed, of1.TourNurseSucceed,of1.Remark,of1.PlanOrder,of1.PatientType,of1.AnesthesiaDoctorId,of1.InstrumentNurseId,of1.TourNurseId " +
"FROM V_OperationFront of1 WHERE of1.OrderOperationTime>='" + BegInData + "' and of1.OrderOperationTime<'" + EndData + "' order by OperationRoomId,PlanOrder asc";
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}

View File

@ -28,7 +28,7 @@ namespace AIMSBLL
strSql += " order by [StateId] asc";
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
public static DataTable GetTodayDoOpePatientDataTable(DateTime BeginDate, string Room="")
public static DataTable GetTodayDoOpePatientDataTable(DateTime BeginDate, string Room = "")
{
string strSql = "SELECT of2.Id,of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, of2.OperationInfoNames ApplyOperationInfoName, of2.OperationDoctor, of2.AnesthesiaDoctor,of2.OperationRoomId,of2.State ,of1.Sex,[dbo].[funGetAge](of1.BirthDay,getdate()) age,of2.InRoomTime PlanOperationTime,of2.Nurse InstrumentNurse,of2.Nurse2 TourNurse,of2.DiagnoseInfoName ApplyDiagnoseInfoName ,of2.OperationRoom ,of1.Contagion,of1.OrderOperationTime,of2.AnaesthesiaMethodName,of2.InRoomTime FROM V_OperationDoing of2 left join[dbo].[V_OperationFront] of1 on of1.PatientId = of2.PatientId WHERE of2.State in( '手术中' ) and of2.InRoomTime >= '" + BeginDate + "' AND of2.InRoomTime<'" + BeginDate.AddDays(1) + "' and RecoverId=1 ";
if (Room != "" && Room != "-1") strSql += " and of1.OperationRoomId='" + Room + "'";
@ -82,7 +82,7 @@ namespace AIMSBLL
public static DataTable GetSelectPatientChart2(DateTime dateTime)
{
string strSql = @"SELECT DeptName dat,COUNT(*) con FROM(SELECT dp.Name DeptName FROM OperationRecord red left join OperationApply oa on oa.Id=red.OperationApplyId
left join Department dp on dp.Id=oa.ApplyDepId WHERE CONVERT(nvarchar(7), InRoomTime, 120)='"+dateTime.ToString("yyyy-MM")+"' And red.[State] = 2 ) temp GROUP BY DeptName ";
left join Department dp on dp.Id=oa.ApplyDepId WHERE CONVERT(nvarchar(7), InRoomTime, 120)='" + dateTime.ToString("yyyy-MM") + "' And red.[State] = 2 ) temp GROUP BY DeptName ";
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
@ -175,17 +175,35 @@ namespace AIMSBLL
DataTable dt = BApplyPersonDuty.GetPersonDataTable(ApplyId);
for (int i = 0; i < dt.Rows.Count; i++)
{
if (int.Parse(dt.Rows[i]["PersonDutyId"].ToString()) == 1)
{
FactPersonDuty FactPersonDutyObj = new FactPersonDuty();
FactPersonDutyObj.PatientId = PatientId;
FactPersonDutyObj.ApplyId = ApplyId;
FactPersonDutyObj.PersonDutyId = int.Parse(dt.Rows[i]["PersonDutyId"].ToString());
FactPersonDutyObj.PersonDutyId = 1;
FactPersonDutyObj.PersonId = int.Parse(dt.Rows[i]["PersonId"].ToString());
FactPersonDutyObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
FactPersonDutyObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
FactPersonDutyObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
BFactPersonDuty.Add(FactPersonDutyObj);
}
}
for (int i = 0; i < dt.Rows.Count; i++)
{
if (int.Parse(dt.Rows[i]["PersonDutyId"].ToString()) != 1)
{
FactPersonDuty FactPersonDutyObj = new FactPersonDuty();
FactPersonDutyObj.PatientId = PatientId;
FactPersonDutyObj.ApplyId = ApplyId;
FactPersonDutyObj.PersonDutyId = 1;
FactPersonDutyObj.PersonId = int.Parse(dt.Rows[i]["PersonId"].ToString());
FactPersonDutyObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo;
FactPersonDutyObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
FactPersonDutyObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
BFactPersonDuty.Add(FactPersonDutyObj);
}
}
//增加入室事件
Events EventsObj = BEvents.GetModelByName("入室");

View File

@ -14,6 +14,8 @@ namespace DocumentManagement
{
public int PatientId { get; set; }
public int ApplyId { get; set; }
public String HISPatientId { get; set; }
public String VisitTimes { get; set; }
public String MdrecNo { get; set; }
public String ArchivesNo { get; set; }
public String PatientName { get; set; }
@ -117,6 +119,8 @@ namespace DocumentManagement
patient.PatientId = int.Parse(dt.Rows[0]["PatientId"].ToString());
//patient.PatientId = int.Parse(dt.Rows[0]["PatientId"].ToString());
patient.ApplyId = int.Parse(dt.Rows[0]["ApplyId"].ToString());
patient.HISPatientId = dt.Rows[0]["HISPatientId"].ToString();
patient.VisitTimes = dt.Rows[0]["VisitTimes"].ToString();
patient.MdrecNo = dt.Rows[0]["MdrecNo"].ToString();
patient.ArchivesNo = dt.Rows[0]["ArchivesNo"].ToString();
patient.PatientName = dt.Rows[0]["PatientName"].ToString();

View File

@ -122,6 +122,7 @@ namespace DrawGraph
aEdit1S.CControl.MouseDown -= new MouseEventHandler(CControl_MouseDown);
aEdit1S.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp);
aEdit1S.CControl.TextChanged -= new EventHandler(CControl_TextChanged);
aEdit1S.CControl.KeyPress -= new KeyPressEventHandler(CControl_KeyPress); ;
//根据数据源名称进行不同的事件处理
switch (aEdit1.ClassDataSourceName)
{
@ -181,6 +182,8 @@ namespace DrawGraph
ableEdit.CControl.MouseDown += new MouseEventHandler(CControl_MouseDown);
ableEdit.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp);
ableEdit.CControl.KeyUp += new KeyEventHandler(CControl_KeyUp);
ableEdit.CControl.KeyPress -= new KeyPressEventHandler(CControl_KeyPress);
ableEdit.CControl.KeyPress += new KeyPressEventHandler(CControl_KeyPress);
if (myOpeRecord != null)
{
@ -217,11 +220,35 @@ namespace DrawGraph
if (myOpeRecord != null)
{
Control conl = sender as Control;
if (conl.Text != SelectWorkerValue.Value)
if (e.KeyCode == Keys.Delete || e.KeyCode == Keys.Back)
{
if (conl.Text != SelectWorkerValue.Value)
aSyncSelectDict.DelSel(conl, OpeRecord);
}
else if (e.KeyCode == Keys.Down)
{
if (SelectWorkerValue.dgvZd.CurrentRow.Index + 1 != SelectWorkerValue.dgvZd.Rows.Count - 1)
{
SelectWorkerValue.dgvZd.CurrentCell = SelectWorkerValue.dgvZd.Rows[SelectWorkerValue.dgvZd.CurrentRow.Index + 1].Cells[1];
}
}
else if (e.KeyCode == Keys.Up)
{
if (SelectWorkerValue.dgvZd.CurrentRow.Index != 0)
{
SelectWorkerValue.dgvZd.CurrentCell = SelectWorkerValue.dgvZd.Rows[SelectWorkerValue.dgvZd.CurrentRow.Index - 1].Cells[1];
}
}
}
}
private void CControl_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar.ToString() == "\r")
{
if (SelectWorkerValue.dgvZd.SelectedRows.Count > 0)
{
SelectWorkerValue.SetContent(SelectWorkerValue.dgvZd.SelectedRows[0].Index);
}
}
}
private void CControl_MouseDown(object sender, MouseEventArgs e)
@ -318,6 +345,8 @@ namespace DrawGraph
ableEdit.CControl.MouseDown += new MouseEventHandler(CControl_MouseDown);
ableEdit.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp);
ableEdit.CControl.KeyUp += new KeyEventHandler(CControl_KeyUp);
ableEdit.CControl.KeyPress -= new KeyPressEventHandler(CControl_KeyPress);
ableEdit.CControl.KeyPress += new KeyPressEventHandler(CControl_KeyPress);
if (myOpeRecord != null)
{

View File

@ -333,6 +333,7 @@ namespace DrawGraph
aEdit1S.CControl.MouseDown -= new MouseEventHandler(CControl_MouseDown);
aEdit1S.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp);
aEdit1S.CControl.TextChanged -= new EventHandler(CControl_TextChanged);
aEdit1S.CControl.KeyPress -= new KeyPressEventHandler(CControl_KeyPress); ;
//根据数据源名称进行不同的事件处理
switch (aEdit1.ClassDataSourceName)
{
@ -430,6 +431,8 @@ namespace DrawGraph
ableEdit.CControl.MouseDown += new MouseEventHandler(CControl_MouseDown);
ableEdit.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp);
ableEdit.CControl.KeyUp += new KeyEventHandler(CControl_KeyUp);
ableEdit.CControl.KeyPress -= new KeyPressEventHandler(CControl_KeyPress);
ableEdit.CControl.KeyPress += new KeyPressEventHandler(CControl_KeyPress);
if (myOpeRecord != null)
{
@ -451,6 +454,8 @@ namespace DrawGraph
aSyncSelectDict.Show(template, OpeRecord, sender, _DictType, isRadio);
}
}
private void CControl_TextChanged(object sender, EventArgs e)
{
if (myOpeRecord != null)
@ -465,11 +470,37 @@ namespace DrawGraph
if (myOpeRecord != null)
{
Control conl = sender as Control;
if (conl.Text != SelectDictValue.Value)
if (e.KeyCode == Keys.Delete || e.KeyCode == Keys.Back)
{
if (conl.Text != SelectDictValue.Value)
aSyncSelectDict.DelSel(conl, OpeRecord);
}
else if (e.KeyCode == Keys.Down)
{
if (SelectDictValue.dgvZd.CurrentRow.Index + 1 != SelectDictValue.dgvZd.Rows.Count - 1)
{
SelectDictValue.dgvZd.CurrentCell = SelectDictValue.dgvZd.Rows[SelectDictValue.dgvZd.CurrentRow.Index + 1].Cells[1];
//SelectDictValue.dgvZd.Rows[SelectDictValue.dgvZd.CurrentRow.Index + 1].Selected = true;
}
}
else if (e.KeyCode == Keys.Up)
{
if (SelectDictValue.dgvZd.CurrentRow.Index != 0)
{
SelectDictValue.dgvZd.CurrentCell = SelectDictValue.dgvZd.Rows[SelectDictValue.dgvZd.CurrentRow.Index - 1].Cells[1];
//SelectDictValue.dgvZd.Rows[SelectDictValue.dgvZd.CurrentRow.Index - 1].Selected = true;
}
}
}
}
private void CControl_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar.ToString() == "\r")
{
if (SelectDictValue.dgvZd.SelectedRows.Count > 0)
{
SelectDictValue.SetContent(SelectDictValue.dgvZd.SelectedRows[0].Index);
}
}
}
private void CControl_MouseDown(object sender, MouseEventArgs e)

View File

@ -389,16 +389,16 @@ namespace DrawGraph
});
template.SetObjValue(myOpeRecord, "OperationRecord.InAmount", allDrugDose.ToString(), allDrugDose.ToString(), allDrugDose.ToString() != myOpeRecord.InAmount ? true : false);
DrawIndex++;
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;
}
});
template.SetObjValue(myOpeRecord, "OperationRecord.OutAmount", allOutDose.ToString(), allOutDose.ToString(), allOutDose.ToString() != myOpeRecord.OutAmount ? true : false);
DrawIndex++;
//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;
// }
//});
//template.SetObjValue(myOpeRecord, "OperationRecord.OutAmount", allOutDose.ToString(), allOutDose.ToString(), allOutDose.ToString() != myOpeRecord.OutAmount ? true : false);
//DrawIndex++;
//myOpeRecord.FactOutputLiquidsList.ForEach(item =>
//{

View File

@ -1175,6 +1175,7 @@ namespace DrawGraph
public List<string> EventListstr = new List<string>();
public List<string> DrugsListstr = new List<string>();
public List<string> SapsListstr = new List<string>();
public List<string> OutsListstr = new List<string>();
public List<string> AfterDrugsListstr = new List<string>();
public List<string> FluidListstr = new List<string>();
public List<string> PunctureAndIntubatio;
@ -1357,6 +1358,7 @@ namespace DrawGraph
DrugsListstr = new List<string>();
SapsListstr = new List<string>();
FluidListstr = new List<string>();
OutsListstr = new List<string>();
PunctureAndIntubatio = new List<string>();
BeforeDrugs = "";
AnalgesiaDrug = "";

View File

@ -178,12 +178,35 @@ namespace DrawGraph
ListAddDrugs(DrugListstr, i, temp);
}
myOpeRecord.OutsListstr = DrugListstr;
DrawOutDose();
}
catch (Exception ex)
{
throw ex;
}
}
private void DrawOutDose()
{
try
{
double allOutDose = 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;
}
});
template.SetObjValue(myOpeRecord, "OperationRecord.OutAmount", allOutDose.ToString(), allOutDose.ToString(), allOutDose.ToString() != myOpeRecord.OutAmount ? true : false);
}
catch (Exception ex)
{
PublicMethod.WriteLog(ex);
}
}
private void SetDrug(FactOutputLiquids temp, DateTime curTimeTemp, double y)
{
if (temp.IsContinue == 1 && temp.BeginTime == temp.EndTime) temp.End = curTimeTemp;

View File

@ -252,17 +252,15 @@ 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);
// }
//}
if (!isLegendArea(sender1, mousePt) && pane == null)
{
if (curPhysioParam != null)
{
curPhysioParam.IsClick = false;
curPhysioParam.onClick(e);
curPhysioParam = null;
}
}
}
ZedControl.AxisChange();
ZedControl.Refresh();

View File

@ -164,24 +164,12 @@ namespace DrawGraph
}
//事件备注
SetRemarkInfo(myOpeRecord.EventListstr, remarkRowscount, ref x, ref remarkRow, ref AllRemarkRow, fontsize, ref fontlength);
if (OutputManagePpack == null)
{
myOpeRecord.FluidListstr.Clear();
myOpeRecord.FluidListstr.Add("【出量】");
for (int i = 0; i < myOpeRecord.FactOutputLiquidsList.Count; i++)
{
FactOutputLiquids temp = myOpeRecord.FactOutputLiquidsList[i];
myOpeRecord.FluidListstr.Add(string.Format("{0}{1} {2} {3}{4}{5}", getNumber(i), (temp.BeginTime == temp.EndTime) ? temp.BeginTime.ToShortTimeString() : temp.BeginTime.ToShortTimeString() + "->" + temp.EndTime.ToShortTimeString(), temp.OutputLiquidsName.Trim(), temp.Dosage, temp.DosageUnit, ""));
}
//出量备注
SetRemarkInfo(myOpeRecord.FluidListstr, remarkRowscount, ref x, ref remarkRow, ref AllRemarkRow, fontsize, ref fontlength);
}
//用药备注
SetRemarkInfo(myOpeRecord.DrugsListstr, remarkRowscount, ref x, ref remarkRow, ref AllRemarkRow, fontsize, ref fontlength);
//液体备注
SetRemarkInfo(myOpeRecord.SapsListstr, remarkRowscount, ref x, ref remarkRow, ref AllRemarkRow, fontsize, ref fontlength);
//出量备注
SetRemarkInfo(myOpeRecord.OutsListstr, remarkRowscount, ref x, ref remarkRow, ref AllRemarkRow, fontsize, ref fontlength);
//术后镇痛药备注
if (myOpeRecord.currentPage == myOpeRecord.pageCount)

View File

@ -299,18 +299,6 @@ namespace DrawGraph
DrugListstr.Add(string.Format("({0}){1} {2} {3}{4}{5}", i + 1, (temp.DrugBeginTime == temp.DrugEndTime) ? temp.DrugBeginTime.ToShortTimeString() : temp.DrugBeginTime.ToShortTimeString() + "->" + temp.DrugEndTime.ToShortTimeString(), temp.DrugName.Trim(), dose, "", temp.DrugChannel == null ? "" : " " + temp.DrugChannel.ToString()));
//DrugListstr.Append(" ");
}
private static void ListAddDrugs(List<string> DrugListstr, FactDrug temp)
{
string dose = "";
if (dose.Trim() != "") dose += " ";
dose += ((double)temp.Dosage).ToString();
if (temp.DosageUnit != null)
{
dose += temp.DosageUnit;
}
DrugListstr.Add(string.Format("{1} {2} {3}{4}{5}", "", (temp.DrugBeginTime == temp.DrugEndTime) ? temp.DrugBeginTime.ToShortTimeString() : temp.DrugBeginTime.ToShortTimeString() + "->" + temp.DrugEndTime.ToShortTimeString(), temp.DrugName.Trim(), dose, "", temp.DrugChannel == null ? "" : "<" + temp.DrugChannel.ToString() + ">"));
//DrugListstr.Append(" ");
}
private bool isSapDrugs(FactDrug record)
{
bool isSap = false;

View File

@ -88,7 +88,7 @@ namespace DrawGraph
}
return _instance;
}
static System.Windows.Forms.DataGridView dgvZd;
public static System.Windows.Forms.DataGridView dgvZd;
static AbleEditPackObj aEdit;
static string type;
public static TemplateManage template;
@ -207,7 +207,7 @@ namespace DrawGraph
}
}
static void SetContent(int index)
public static void SetContent(int index)
{
if (dgvZd.Rows[index].Cells["Name"].EditedFormattedValue.ToString() != "")
{

View File

@ -87,7 +87,7 @@ namespace DrawGraph
}
return _instance;
}
static System.Windows.Forms.DataGridView dgvZd;
public static System.Windows.Forms.DataGridView dgvZd;
static AbleEditPackObj aEdit;
static string type;
public static TemplateManage template;
@ -110,7 +110,7 @@ namespace DrawGraph
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);
dgvZd.Size = new System.Drawing.Size( aEdit.CControl.Width < 100 ? 99 : aEdit.CControl.Width, dgvZd.Height);
dgvZd.Size = new System.Drawing.Size(aEdit.CControl.Width < 100 ? 99 : aEdit.CControl.Width, dgvZd.Height);
if (dgvZd.Size.Width < 100)
{
dgvZd.Columns[2].Visible = false;
@ -216,47 +216,8 @@ namespace DrawGraph
SetContent(e.RowIndex);
}
}
//static void dgvZd_KeyDown(object sender, KeyEventArgs e)
//{
// if (e.KeyCode == Keys.Down)
// {
// if (dgvZd.CurrentRow.Index == dgvZd.Rows.Count - 1)
// {
// e.Handled = true;
// dgvZd.CurrentCell = dgvZd.Rows[0].Cells[3];
// dgvZd.Rows[0].Selected = true;
// }
// }
// if (e.KeyCode == Keys.Up)
// {
// if (dgvZd.CurrentRow.Index == 0)
// {
// e.Handled = true;
// dgvZd.CurrentCell = dgvZd.Rows[dgvZd.Rows.Count - 1].Cells[3];
// dgvZd.Rows[dgvZd.Rows.Count - 1].Selected = true;
// }
// }
//}
//static void dgvZd_KeyPress(object sender, KeyPressEventArgs e)
//{
// if (e.KeyChar.ToString() == "\r")
// {
// if (dgvZd.SelectedRows.Count > 0)
// {
// SetContent(dgvZd.SelectedRows[0].Index);
// }
// }
//}
//static void dgvZd_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
//{
// if (e.KeyCode == Keys.Enter)
// {
// index = dgvZd.CurrentRow.Index;
// }
//}
static void SetContent(int index)
public static void SetContent(int index)
{
if (dgvZd.Rows[index].Cells["Name"].EditedFormattedValue.ToString() != "")
{

View File

@ -88,7 +88,7 @@ namespace DrawGraph
}
return _instance;
}
static System.Windows.Forms.DataGridView dgvZd;
public static System.Windows.Forms.DataGridView dgvZd;
static AbleEditPackObj aEdit;
static string type;
public static TemplateManage template;
@ -227,46 +227,7 @@ namespace DrawGraph
SetContent(e.RowIndex);
}
}
//static void dgvZd_KeyDown(object sender, KeyEventArgs e)
//{
// if (e.KeyCode == Keys.Down)
// {
// if (dgvZd.CurrentRow.Index == dgvZd.Rows.Count - 1)
// {
// e.Handled = true;
// dgvZd.CurrentCell = dgvZd.Rows[0].Cells[3];
// dgvZd.Rows[0].Selected = true;
// }
// }
// if (e.KeyCode == Keys.Up)
// {
// if (dgvZd.CurrentRow.Index == 0)
// {
// e.Handled = true;
// dgvZd.CurrentCell = dgvZd.Rows[dgvZd.Rows.Count - 1].Cells[3];
// dgvZd.Rows[dgvZd.Rows.Count - 1].Selected = true;
// }
// }
//}
//static void dgvZd_KeyPress(object sender, KeyPressEventArgs e)
//{
// if (e.KeyChar.ToString() == "\r")
// {
// if (dgvZd.SelectedRows.Count > 0)
// {
// SetContent(dgvZd.SelectedRows[0].Index);
// }
// }
//}
//static void dgvZd_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
//{
// if (e.KeyCode == Keys.Enter)
// {
// index = dgvZd.CurrentRow.Index;
// }
//}
static void SetContent(int index)
public static void SetContent(int index)
{
if (dgvZd.Rows[index].Cells["Name"].EditedFormattedValue.ToString() != "")
{

View File

@ -495,12 +495,10 @@ namespace DrawGraph
if (ableEdit == null) return;
ableEdit.CControl.Leave -= new EventHandler(txt_Leave);
//ableEdit.CControl.TextChanged -= new EventHandler(CControl_TextChanged);
//ableEdit.CControl.TextChanged += new EventHandler(CControl_TextChanged);
//ableEdit.CControl.MouseDown -= new MouseEventHandler(CControl_MouseDown);
//ableEdit.CControl.MouseDown += new MouseEventHandler(CControl_MouseDown);
//ableEdit.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp);
//ableEdit.CControl.KeyUp += new KeyEventHandler(CControl_KeyUp);
ableEdit.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp);
ableEdit.CControl.KeyUp += new KeyEventHandler(CControl_KeyUp);
ableEdit.CControl.KeyPress -= new KeyPressEventHandler(CControl_KeyPress);
ableEdit.CControl.KeyPress += new KeyPressEventHandler(CControl_KeyPress);
if (myOpeRecord != null)
{
@ -519,7 +517,6 @@ namespace DrawGraph
aSyncSelectDict.Show(template, OpeRecord, sender, _DictType, isRadio);
ableEdit.CControl.Leave += new EventHandler(txt_Leave);
//SetAbleEditView(ableEdit);
}
}
private void ASyncSelectDict_SetValue(string Text, AbleEditPackObj aEdit)
@ -530,56 +527,36 @@ namespace DrawGraph
aEdit.CControl.Leave -= new EventHandler(txt_Leave);
aEdit.CControl.Leave += new EventHandler(txt_Leave);
}
//private void CControl_TextChanged(object sender, EventArgs e)
//{
// if (myOpeRecord != null)
// {
// Control conl = sender as Control;
// aSyncSelectDict.ShowSel(conl, OpeRecord);
// }
//}
//private void CControl_KeyUp(object sender, KeyEventArgs e)
//{
// if (myOpeRecord != null)
// {
// Control conl = sender as Control;
// if (conl.Text != SelectDictText.Value)
// if (e.KeyCode == Keys.Delete || e.KeyCode == Keys.Back)
// {
// aSyncSelectDict.DelSel(conl, OpeRecord);
// }
// }
//}
//private void CControl_MouseDown(object sender, MouseEventArgs e)
//{
// if (myOpeRecord != null)
// {
// TextBox conl = sender as TextBox;
// string leftStr = conl.Text.Substring(0, conl.SelectionStart);
// string rightStr = conl.Text.Substring(conl.SelectionStart, conl.Text.Length - conl.SelectionStart);
// int startIndex = 0;
// int endLength = conl.Text.Length;
// if (leftStr.Contains(","))
// {
// int beginindex = leftStr.LastIndexOf(',');
// startIndex = beginindex + 1;
// if (rightStr.Contains(","))
// {
// endLength = rightStr.IndexOf(",") + (leftStr.Length - beginindex);
// }
// }
// else
// {
// if (rightStr.Contains(","))
// {
// endLength = rightStr.IndexOf(",") + leftStr.Length + 1;
// }
// }
// conl.Select(startIndex, endLength);
// }
//}
private void CControl_KeyUp(object sender, KeyEventArgs e)
{
if (myOpeRecord != null)
{
Control conl = sender as Control;
if (e.KeyCode == Keys.Down)
{
if (SelectDictText.dgvZd.CurrentRow.Index + 1 != SelectDictText.dgvZd.Rows.Count - 1)
{
SelectDictText.dgvZd.CurrentCell = SelectDictText.dgvZd.Rows[SelectDictText.dgvZd.CurrentRow.Index + 1].Cells[1];
}
}
else if (e.KeyCode == Keys.Up)
{
if (SelectDictText.dgvZd.CurrentRow.Index != 0)
{
SelectDictText.dgvZd.CurrentCell = SelectDictText.dgvZd.Rows[SelectDictText.dgvZd.CurrentRow.Index - 1].Cells[1];
}
}
}
}
private void CControl_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar.ToString() == "\r")
{
if (SelectDictText.dgvZd.SelectedRows.Count > 0)
{
SelectDictText.SetContent(SelectDictText.dgvZd.SelectedRows[0].Index);
}
}
}
}
}