大连上线功能修改

This commit is contained in:
leomon 2023-02-28 16:13:51 +08:00
parent dd478ad042
commit ce18d6ed79
50 changed files with 5838 additions and 1875 deletions

View File

@ -81,6 +81,12 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="DataDictionary\frmAnaesthesiaChargeSelect.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="DataDictionary\frmAnaesthesiaChargeSelect.designer.cs">
<DependentUpon>frmAnaesthesiaChargeSelect.cs</DependentUpon>
</Compile>
<Compile Include="DataDictionary\frmAnaesthesiaMethod.cs">
<SubType>Form</SubType>
</Compile>
@ -517,6 +523,12 @@
<Compile Include="DataDictionary\frmBloodGasAnalysisDict.Designer.cs">
<DependentUpon>frmBloodGasAnalysisDict.cs</DependentUpon>
</Compile>
<Compile Include="PublicUI\frmDrugSel.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="PublicUI\frmDrugSel.Designer.cs">
<DependentUpon>frmDrugSel.cs</DependentUpon>
</Compile>
<Compile Include="PublicUI\frmNoticeMain.cs">
<SubType>Form</SubType>
</Compile>
@ -753,6 +765,9 @@
<Compile Include="PublicUI\MainFormManage.designer.cs">
<DependentUpon>MainFormManage.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="DataDictionary\frmAnaesthesiaChargeSelect.resx">
<DependentUpon>frmAnaesthesiaChargeSelect.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="DataDictionary\frmAnaesthesiaMethod.resx">
<DependentUpon>frmAnaesthesiaMethod.cs</DependentUpon>
</EmbeddedResource>
@ -969,6 +984,9 @@
<EmbeddedResource Include="DataDictionary\frmBloodGasAnalysisDict.resx">
<DependentUpon>frmBloodGasAnalysisDict.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="PublicUI\frmDrugSel.resx">
<DependentUpon>frmDrugSel.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="PublicUI\frmNoticeMain.resx">
<DependentUpon>frmNoticeMain.cs</DependentUpon>
</EmbeddedResource>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<AtuoUpdate>
<ConnectionString>Data Source=.;Initial Catalog=AIMSDB_QHDSGRYY;User ID=sa;Password=Test2020;</ConnectionString>
<ConnectionString>Data Source=.;Initial Catalog=AIMSDB_DLSJZQZYYY;User ID=sa;Password=Test2020;</ConnectionString>
<DataConnectionString>Data Source=.;Initial Catalog=AIMSDB_DATA;User ID=sa;Password=Test2020;</DataConnectionString>
<HisConnectionStringOracel>Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.7)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl2))));Persist Security Info=True;User ID=smview;Password=i39;</HisConnectionStringOracel>
</AtuoUpdate>

View File

@ -0,0 +1,369 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AIMSBLL;
using AIMSModel;
namespace AIMS.PublicUI.UI
{
public partial class frmAnaesthesiaChargeSelect : Form
{
/// <summary>
/// 可用的器械
/// </summary>
public DataTable dt;
/// <summary>
/// 已选择的器械
/// </summary>
public DataTable ydt;
/// <summary>
/// 当前页数
/// </summary>
int currentPage = 0;
/// <summary>
/// 总数
/// </summary>
int total = 0;
/// <summary>
/// 总页数
/// </summary>
int pages = 0;
/// <summary>
///
/// </summary>
public int AnaesthesiaEventsId;
private AnaesthesiaEvents AnaesthesiaEvents;
public frmAnaesthesiaChargeSelect()
{
InitializeComponent();
}
private void frmApplianceSelect_Load(object sender, EventArgs e)
{
AnaesthesiaEvents = BAnaesthesiaEvents.SelectSingle(AnaesthesiaEventsId);
dgvD.AutoGenerateColumns = false;
dgvY.AutoGenerateColumns = false;
dt = BCharges.SelectIdName("");
ydt = BCharges.GetDrugsByIds(AnaesthesiaEvents.TheEventsId);
BindDgvY(ydt);
cboType_SelectedIndexChanged(null, null);
}
private void btnCancel_Click(object sender, EventArgs e)
{
this.Close();
}
private void BindDgvY(DataTable dt)
{
dgvY.AutoGenerateColumns = false;
dgvY.Rows.Clear();
foreach (DataRow dr in dt.Rows)
{
int index = this.dgvY.Rows.Add();
this.dgvY.Rows[index].Cells["yId"].Value = dr["Id"].ToString();
this.dgvY.Rows[index].Cells["yName"].Value = dr["Name"].ToString();
}
}
private void BindDgv(DataTable dt)
{
dgvD.AutoGenerateColumns = false;
dgvD.Rows.Clear();
int num = 1;
foreach (DataRow dr in dt.Rows)
{
int index = this.dgvD.Rows.Add();
this.dgvD.Rows[index].Cells["Id"].Value = dr["Id"].ToString();
this.dgvD.Rows[index].Cells["Index"].Value = num;
num++;
this.dgvD.Rows[index].Cells["oName"].Value = dr["Name"].ToString();
}
}
private void cboType_SelectedIndexChanged(object sender, EventArgs e)
{
currentPage = 0;
dt = BCharges.SelectIdName("");
SetPageText(dt);
BindDgv(GetTableByCurrentPage(currentPage, dt));
}
private void SetPageText(DataTable table)
{
total = table.Rows.Count;
if (total % 10 == 0)
{
pages = total / 10;
}
else
{
pages = total / 10 + 1;
}
lblPage.Text = currentPage + 1 + "/" + pages + ",共" + total + "条";
}
/// <summary>
/// 得到某页的DataTable
/// </summary>
/// <param name="currPage">当前页</param>
/// <param name="dt">获取数据的DataTable</param>
/// <returns>某一页的DataTable</returns>
private DataTable GetTableByCurrentPage(int currPage, DataTable dt)
{
DataTable pdt = dt.Clone();
int index = currPage * 10;
for (int i = index; i < index + 10; i++)
{
if (i == total)
{
break;
}
DataRow dr = pdt.NewRow();
dr["Id"] = Convert.ToInt32(dt.Rows[i]["Id"]);
dr["Name"] = dt.Rows[i]["Name"].ToString();
pdt.Rows.Add(dr);
}
return pdt;
}
private void txtQuery_TextChanged(object sender, EventArgs e)
{
dt = BCharges.SelectIdName(txtQuery.Text);
currentPage = 0;
SetPageText(dt);
BindDgv(GetTableByCurrentPage(currentPage, dt));
}
private void lkUp_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (total == 0 || currentPage == 0)
{
return;
}
currentPage--;
SetPageText(dt);
BindDgv(GetTableByCurrentPage(currentPage, dt));
}
private void lkDown_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (total == 0 || (currentPage + 1) == pages)
{
return;
}
currentPage++;
SetPageText(dt);
BindDgv(GetTableByCurrentPage(currentPage, dt));
}
private void btnSelectAll_Click(object sender, EventArgs e)
{
foreach (DataGridViewRow row in dgvD.Rows)
{
foreach (DataGridViewRow yRow in dgvY.Rows)
{
if (row.Cells["Select"].EditedFormattedValue.ToString() == "True" && row.Cells["oName"].Value.ToString() == yRow.Cells["yName"].Value.ToString())
{
MessageBox.Show("已经选过了!");
foreach (DataGridViewRow drow in dgvD.Rows)
{
if (drow.Cells["Select"].EditedFormattedValue.ToString() == "True")
{
drow.Cells["Select"].Value = false;
}
}
return;
}
}
}
List<int> list = new List<int>();
foreach (DataGridViewRow row in dgvD.Rows)
{
if (row.Cells["Select"].EditedFormattedValue.ToString() == "True")
{
list.Add(Convert.ToInt32(row.Cells["Id"].Value));
}
}
foreach (int id in list)
{
DataRow ydr = ydt.NewRow();
foreach (DataRow dr in dt.Rows)
{
if (Convert.ToInt32(dr["Id"]) == id)
{
ydr["Id"] = Convert.ToInt32(dr["Id"]);
ydr["Name"] = dr["Name"].ToString();
ydt.Rows.Add(ydr);
break;
}
}
}
BindDgvY(ydt);
}
private void btnCancelAll_Click(object sender, EventArgs e)
{
List<int> list = new List<int>();
foreach (DataGridViewRow row in dgvY.Rows)
{
if (row.Cells["ySelect"].EditedFormattedValue.ToString() == "True")
{
list.Add(Convert.ToInt32(row.Cells["yId"].Value));
}
}
foreach (int id in list)
{
foreach (DataGridViewRow row in dgvY.Rows)
{
if (Convert.ToInt32(row.Cells["yId"].Value) == id)
{
dgvY.Rows.Remove(row);
break;
}
}
}
}
private void btnSave_Click(object sender, EventArgs e)
{
List<int> list = new List<int>();
foreach (DataGridViewRow row in dgvY.Rows)
{
list.Add(Convert.ToInt32(row.Cells["yId"].Value)); ;
}
string applianceId = string.Join(",", list.ToArray());
AnaesthesiaEvents.TheEventsId = applianceId;
int num = BAnaesthesiaEvents.Update(AnaesthesiaEvents);
if (num > 0)
{
this.Close();
}
}
private void dgvD_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
DataRow ydr = ydt.NewRow();
int id = Convert.ToInt32(dgvD.SelectedRows[0].Cells["Id"].Value);
foreach (DataRow row in ydt.Rows)
{
if (Convert.ToInt32(row["Id"]) == id)
{
MessageBox.Show("已选择!");
return;
}
}
foreach (DataRow row in dt.Rows)
{
if (Convert.ToInt32(row["Id"]) == id)
{
for (int i = 0; i < dt.Columns.Count; i++)
{
ydr["Id"] = row["Id"];
ydr["Name"] = row["Name"];
}
ydt.Rows.Add(ydr);
break;
}
}
BindDgvY(ydt);
}
public DataGridViewTextBoxEditingControl dgvTxt = null; // 声明 一个文本 CellEdit
public DataGridViewTextBoxEditingControl dgvTxtName = null; // 声明 一个文本 CellEdit
private void dgvY_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
//判断类型
if (dgvY.CurrentCell != null)
{
if (dgvY.CurrentCell.ColumnIndex == 3)
{
dgvTxtName = (DataGridViewTextBoxEditingControl)e.Control; // 得到单元格
dgvTxtName.KeyPress -= new KeyPressEventHandler(dgvTxt_KeyPress); // 绑定事件
dgvTxtName.KeyPress += new KeyPressEventHandler(dgvTxt_KeyPress); // 绑定事件
}
}
}
void dgvTxt_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar < 48 || e.KeyChar > 57)
{
if (e.KeyChar != 46 && e.KeyChar != 8 && e.KeyChar != 13)
{
e.Handled = true;
}
}
TextBox tb = sender as TextBox;
if (e.KeyChar == 46)
{
int n = tb.Text.LastIndexOf(".");
if (n > 0) e.Handled = true;
}
}
/// <summary>
/// 上移
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void buttonX1_Click(object sender, EventArgs e)
{
try
{
DataGridViewSelectedRowCollection dgvsrc = dgvY.SelectedRows;//获取选中行的集合
if (dgvsrc.Count > 0)
{
int index = dgvY.SelectedRows[0].Index;//获取当前选中行的索引
if (index > 0)//如果该行不是第一行
{
DataGridViewRow dgvr = dgvY.Rows[index - dgvsrc.Count];//获取选中行的上一行
dgvY.Rows.RemoveAt(index - dgvsrc.Count);//删除原选中行的上一行
dgvY.Rows.Insert((index), dgvr);//将选中行的上一行插入到选中行的后面
for (int i = 0; i < dgvsrc.Count; i++)//选中移动后的行
{
dgvY.Rows[index - i - 1].Selected = true;
}
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
/// <summary>
/// 下移
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void buttonX2_Click(object sender, EventArgs e)
{
try
{
DataGridViewSelectedRowCollection dgvsrc = dgvY.SelectedRows;//获取选中行的集合
if (dgvsrc.Count > 0)
{
int index = dgvY.SelectedRows[0].Index;//获取当前选中行的索引
if (index >= 0 & (dgvY.RowCount - 1) != index)//如果该行不是最后一行
{
DataGridViewRow dgvr = dgvY.Rows[index + 1];//获取选中行的下一行
dgvY.Rows.RemoveAt(index + 1);//删除原选中行的上一行
dgvY.Rows.Insert((index + 1 - dgvsrc.Count), dgvr);//将选中行的上一行插入到选中行的后面
for (int i = 0; i < dgvsrc.Count; i++)//选中移动后的行
{
dgvY.Rows[index + 1 - i].Selected = true;
}
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
}
}

View File

@ -0,0 +1,405 @@
namespace AIMS.PublicUI.UI
{
partial class frmAnaesthesiaChargeSelect
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmAnaesthesiaChargeSelect));
this.panel1 = new System.Windows.Forms.Panel();
this.buttonX2 = new DevComponents.DotNetBar.ButtonX();
this.buttonX1 = new DevComponents.DotNetBar.ButtonX();
this.txtQuery = new DevComponents.DotNetBar.Controls.TextBoxX();
this.label3 = new System.Windows.Forms.Label();
this.btnCancel = new DevComponents.DotNetBar.ButtonX();
this.btnSave = new DevComponents.DotNetBar.ButtonX();
this.panel2 = new System.Windows.Forms.Panel();
this.lblPage = new System.Windows.Forms.Label();
this.lkDown = new System.Windows.Forms.LinkLabel();
this.lkUp = new System.Windows.Forms.LinkLabel();
this.btnCancelAll = new DevComponents.DotNetBar.ButtonX();
this.btnSelectAll = new DevComponents.DotNetBar.ButtonX();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.dgvY = new DevComponents.DotNetBar.Controls.DataGridViewX();
this.ySelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.yId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.yName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.dgvD = new DevComponents.DotNetBar.Controls.DataGridViewX();
this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Index = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Select = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.oName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvY)).BeginInit();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvD)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.AliceBlue;
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.buttonX2);
this.panel1.Controls.Add(this.buttonX1);
this.panel1.Controls.Add(this.txtQuery);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.btnCancel);
this.panel1.Controls.Add(this.btnSave);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(717, 53);
this.panel1.TabIndex = 13;
//
// buttonX2
//
this.buttonX2.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX2.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.buttonX2.Location = new System.Drawing.Point(467, 10);
this.buttonX2.Name = "buttonX2";
this.buttonX2.Size = new System.Drawing.Size(34, 30);
this.buttonX2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.buttonX2.TabIndex = 5;
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(427, 10);
this.buttonX1.Name = "buttonX1";
this.buttonX1.Size = new System.Drawing.Size(34, 30);
this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.buttonX1.TabIndex = 5;
this.buttonX1.Text = "↑";
this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click);
//
// txtQuery
//
//
//
//
this.txtQuery.Border.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.txtQuery.Border.BorderBottomColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(227)))), ((int)(((byte)(231)))));
this.txtQuery.Border.BorderBottomWidth = 1;
this.txtQuery.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.txtQuery.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.txtQuery.Location = new System.Drawing.Point(82, 15);
this.txtQuery.Name = "txtQuery";
this.txtQuery.Size = new System.Drawing.Size(295, 21);
this.txtQuery.TabIndex = 4;
this.txtQuery.TextChanged += new System.EventHandler(this.txtQuery_TextChanged);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(11, 15);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(65, 20);
this.label3.TabIndex = 3;
this.label3.Text = "耗材名称";
//
// btnCancel
//
this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnCancel.Location = new System.Drawing.Point(605, 10);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(75, 30);
this.btnCancel.TabIndex = 2;
this.btnCancel.Text = "取消";
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
//
// btnSave
//
this.btnSave.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnSave.Location = new System.Drawing.Point(524, 10);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(75, 30);
this.btnSave.TabIndex = 2;
this.btnSave.Text = "保存";
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.White;
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.lblPage);
this.panel2.Controls.Add(this.lkDown);
this.panel2.Controls.Add(this.lkUp);
this.panel2.Controls.Add(this.btnCancelAll);
this.panel2.Controls.Add(this.btnSelectAll);
this.panel2.Controls.Add(this.groupBox2);
this.panel2.Controls.Add(this.groupBox1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panel2.Location = new System.Drawing.Point(0, 53);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(717, 331);
this.panel2.TabIndex = 14;
//
// lblPage
//
this.lblPage.AutoSize = true;
this.lblPage.Location = new System.Drawing.Point(122, 11);
this.lblPage.Name = "lblPage";
this.lblPage.Size = new System.Drawing.Size(39, 20);
this.lblPage.TabIndex = 4;
this.lblPage.Text = "1/25";
//
// lkDown
//
this.lkDown.AutoSize = true;
this.lkDown.Location = new System.Drawing.Point(231, 11);
this.lkDown.Name = "lkDown";
this.lkDown.Size = new System.Drawing.Size(51, 20);
this.lkDown.TabIndex = 3;
this.lkDown.TabStop = true;
this.lkDown.Text = "下一页";
this.lkDown.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkDown_LinkClicked);
//
// lkUp
//
this.lkUp.AutoSize = true;
this.lkUp.Location = new System.Drawing.Point(61, 11);
this.lkUp.Name = "lkUp";
this.lkUp.Size = new System.Drawing.Size(51, 20);
this.lkUp.TabIndex = 3;
this.lkUp.TabStop = true;
this.lkUp.Text = "上一页";
this.lkUp.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkUp_LinkClicked);
//
// btnCancelAll
//
this.btnCancelAll.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnCancelAll.Location = new System.Drawing.Point(338, 195);
this.btnCancelAll.Margin = new System.Windows.Forms.Padding(0);
this.btnCancelAll.Name = "btnCancelAll";
this.btnCancelAll.Size = new System.Drawing.Size(39, 110);
this.btnCancelAll.TabIndex = 2;
this.btnCancelAll.Text = "<<";
this.btnCancelAll.Click += new System.EventHandler(this.btnCancelAll_Click);
//
// btnSelectAll
//
this.btnSelectAll.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnSelectAll.Location = new System.Drawing.Point(338, 79);
this.btnSelectAll.Margin = new System.Windows.Forms.Padding(0);
this.btnSelectAll.Name = "btnSelectAll";
this.btnSelectAll.Size = new System.Drawing.Size(39, 110);
this.btnSelectAll.TabIndex = 2;
this.btnSelectAll.Text = ">>";
this.btnSelectAll.Click += new System.EventHandler(this.btnSelectAll_Click);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.dgvY);
this.groupBox2.Location = new System.Drawing.Point(380, 24);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(322, 293);
this.groupBox2.TabIndex = 0;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "已选";
//
// dgvY
//
this.dgvY.AllowUserToAddRows = false;
this.dgvY.AllowUserToDeleteRows = false;
this.dgvY.BackgroundColor = System.Drawing.Color.Snow;
this.dgvY.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgvY.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvY.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.ySelect,
this.yId,
this.yName});
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvY.DefaultCellStyle = dataGridViewCellStyle1;
this.dgvY.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvY.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
this.dgvY.Location = new System.Drawing.Point(3, 22);
this.dgvY.Name = "dgvY";
this.dgvY.RowHeadersVisible = false;
this.dgvY.RowTemplate.Height = 23;
this.dgvY.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvY.Size = new System.Drawing.Size(316, 268);
this.dgvY.TabIndex = 0;
this.dgvY.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dgvY_EditingControlShowing);
//
// ySelect
//
this.ySelect.HeaderText = "选择";
this.ySelect.Name = "ySelect";
this.ySelect.Width = 60;
//
// yId
//
this.yId.DataPropertyName = "Id";
this.yId.HeaderText = "编号";
this.yId.Name = "yId";
this.yId.Visible = false;
//
// yName
//
this.yName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.yName.DataPropertyName = "Name";
this.yName.HeaderText = "耗材名称";
this.yName.Name = "yName";
this.yName.ReadOnly = true;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.dgvD);
this.groupBox1.Location = new System.Drawing.Point(12, 24);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(323, 293);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "待选";
//
// dgvD
//
this.dgvD.AllowUserToAddRows = false;
this.dgvD.AllowUserToDeleteRows = false;
this.dgvD.BackgroundColor = System.Drawing.Color.Snow;
this.dgvD.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgvD.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvD.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Id,
this.Index,
this.Select,
this.oName});
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvD.DefaultCellStyle = dataGridViewCellStyle2;
this.dgvD.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvD.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
this.dgvD.Location = new System.Drawing.Point(3, 22);
this.dgvD.Name = "dgvD";
this.dgvD.RowHeadersVisible = false;
this.dgvD.RowTemplate.Height = 23;
this.dgvD.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvD.Size = new System.Drawing.Size(317, 268);
this.dgvD.TabIndex = 0;
this.dgvD.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvD_CellDoubleClick);
//
// Id
//
this.Id.DataPropertyName = "Id";
this.Id.HeaderText = "编号";
this.Id.Name = "Id";
this.Id.Visible = false;
//
// Index
//
this.Index.HeaderText = "序号";
this.Index.Name = "Index";
this.Index.Visible = false;
this.Index.Width = 65;
//
// Select
//
this.Select.HeaderText = "选择";
this.Select.Name = "Select";
this.Select.Width = 65;
//
// oName
//
this.oName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.oName.DataPropertyName = "Name";
this.oName.HeaderText = "耗材名称";
this.oName.Name = "oName";
this.oName.ReadOnly = true;
//
// frmAnaesthesiaChargeSelect
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(717, 384);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "frmAnaesthesiaChargeSelect";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "选择耗材";
this.Load += new System.EventHandler(this.frmApplianceSelect_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.groupBox2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvY)).EndInit();
this.groupBox1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvD)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Label lblPage;
private System.Windows.Forms.LinkLabel lkDown;
private System.Windows.Forms.LinkLabel lkUp;
private DevComponents.DotNetBar.ButtonX btnCancelAll;
private DevComponents.DotNetBar.ButtonX btnSelectAll;
private System.Windows.Forms.GroupBox groupBox2;
private DevComponents.DotNetBar.Controls.DataGridViewX dgvY;
private System.Windows.Forms.GroupBox groupBox1;
private DevComponents.DotNetBar.Controls.DataGridViewX dgvD;
private DevComponents.DotNetBar.ButtonX btnCancel;
private DevComponents.DotNetBar.ButtonX btnSave;
private DevComponents.DotNetBar.Controls.TextBoxX txtQuery;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.DataGridViewCheckBoxColumn ySelect;
private System.Windows.Forms.DataGridViewTextBoxColumn yId;
private System.Windows.Forms.DataGridViewTextBoxColumn yName;
private System.Windows.Forms.DataGridViewTextBoxColumn Id;
private System.Windows.Forms.DataGridViewTextBoxColumn Index;
private System.Windows.Forms.DataGridViewCheckBoxColumn Select;
private System.Windows.Forms.DataGridViewTextBoxColumn oName;
private DevComponents.DotNetBar.ButtonX buttonX2;
private DevComponents.DotNetBar.ButtonX buttonX1;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -62,6 +62,7 @@ namespace AIMS.PublicUI.UI
num++;
this.dgvApplianceUseType.Rows[index].Cells["oName"].Value = item.Name;
this.dgvApplianceUseType.Rows[index].Cells["HCode"].Value = item.HCode;
this.dgvApplianceUseType.Rows[index].Cells["Remark"].Value = item.Remark;
this.dgvApplianceUseType.Rows[index].Cells["IsValid"].Value = item.IsValid == 1 ? "有效" : "无效";
}
}
@ -110,6 +111,7 @@ namespace AIMS.PublicUI.UI
ControlExtension.EnabledControl(panel1, true);
autid = Convert.ToInt32(dgvApplianceUseType.SelectedRows[0].Cells["Id"].Value);
txtName.Text = dgvApplianceUseType.SelectedRows[0].Cells["oName"].Value.ToString();
txtRemark.Text = dgvApplianceUseType.SelectedRows[0].Cells["Remark"].Value.ToString();
txtHCode.Text = dgvApplianceUseType.SelectedRows[0].Cells["HCode"].Value.ToString();
chkIsValid.Checked = dgvApplianceUseType.SelectedRows[0].Cells["IsValid"].Value.ToString() == "有效" ? true : false;
}
@ -153,6 +155,7 @@ namespace AIMS.PublicUI.UI
aut.IsValid = chkIsValid.Checked == true ? 1 : 0;
if (aut.TheEventsId == null) aut.TheEventsId = "";
aut.IsAutomatic = Type;
aut.Remark = txtRemark.Text;
aut.OperatorId = PublicMethod.OperatorId;
aut.OperatorTime = DateTime.Now;
int num = 0;
@ -167,7 +170,7 @@ namespace AIMS.PublicUI.UI
}
if (num > 0)
{
MessageBox.Show("保存成功!");
MessageBox.Show("保存成功!");
tsbCancel_Click(null, null);
}
}
@ -225,15 +228,23 @@ namespace AIMS.PublicUI.UI
if (dgvApplianceUseType.Columns[e.ColumnIndex] is DataGridViewButtonColumn && e.RowIndex > -1)
{
int id = Convert.ToInt32(dgvApplianceUseType.CurrentRow.Cells["Id"].Value);
if (Type == 1)
string remark = dgvApplianceUseType.CurrentRow.Cells["Remark"].Value.ToString();
if (remark == "事件")
{
frmAnaesthesiaEventSelect fs = new frmAnaesthesiaEventSelect();
fs.AnaesthesiaEventsId = id;
fs.ShowDialog();
}
if (remark == "药品")
{
frmAnaesthesiaDrugSelect fs = new frmAnaesthesiaDrugSelect();
fs.AnaesthesiaEventsId = id;
fs.ShowDialog();
}
else
if (remark == "耗材")
{
frmAnaesthesiaEventSelect fs = new frmAnaesthesiaEventSelect();
frmAnaesthesiaChargeSelect fs = new frmAnaesthesiaChargeSelect();
fs.AnaesthesiaEventsId = id;
fs.ShowDialog();
}

View File

@ -51,12 +51,21 @@
this.tsbExit = new System.Windows.Forms.ToolStripButton();
this.panel2 = new System.Windows.Forms.Panel();
this.dgvApplianceUseType = new DevComponents.DotNetBar.Controls.DataGridViewX();
this.label2 = new System.Windows.Forms.Label();
this.Select = new System.Windows.Forms.DataGridViewButtonColumn();
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.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Index = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.oName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.HCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.IsValid = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Select = new System.Windows.Forms.DataGridViewButtonColumn();
this.txtRemark = new System.Windows.Forms.ComboBox();
this.panel1.SuspendLayout();
this.toolStrip1.SuspendLayout();
this.panel2.SuspendLayout();
@ -67,10 +76,12 @@
//
this.panel1.BackColor = System.Drawing.Color.White;
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.txtRemark);
this.panel1.Controls.Add(this.chkAll);
this.panel1.Controls.Add(this.chkIsValid);
this.panel1.Controls.Add(this.txtHCode);
this.panel1.Controls.Add(this.txtName);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.label1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
@ -111,7 +122,7 @@
this.txtHCode.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.txtHCode.Location = new System.Drawing.Point(456, 9);
this.txtHCode.Name = "txtHCode";
this.txtHCode.Size = new System.Drawing.Size(254, 20);
this.txtHCode.Size = new System.Drawing.Size(93, 20);
this.txtHCode.TabIndex = 2;
//
// txtName
@ -263,6 +274,7 @@
this.Index,
this.oName,
this.HCode,
this.Remark,
this.IsValid,
this.Select});
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
@ -284,6 +296,64 @@
this.dgvApplianceUseType.TabIndex = 0;
this.dgvApplianceUseType.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvApplianceUseType_CellContentClick);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(555, 11);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(37, 20);
this.label2.TabIndex = 0;
this.label2.Text = "类型";
//
// Select
//
this.Select.HeaderText = "选择";
this.Select.Name = "Select";
this.Select.Text = "选择事件";
this.Select.UseColumnTextForButtonValue = true;
this.Select.Width = 150;
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.DataPropertyName = "Id";
this.dataGridViewTextBoxColumn1.HeaderText = "编号";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.Visible = false;
this.dataGridViewTextBoxColumn1.Width = 60;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.DataPropertyName = "Index";
this.dataGridViewTextBoxColumn2.HeaderText = "序号";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.Width = 80;
//
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.dataGridViewTextBoxColumn3.DataPropertyName = "oName";
this.dataGridViewTextBoxColumn3.HeaderText = "名称";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
//
// dataGridViewTextBoxColumn4
//
this.dataGridViewTextBoxColumn4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.dataGridViewTextBoxColumn4.DataPropertyName = "HCode";
this.dataGridViewTextBoxColumn4.HeaderText = "助记码";
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
//
// dataGridViewTextBoxColumn5
//
this.dataGridViewTextBoxColumn5.DataPropertyName = "Remark";
this.dataGridViewTextBoxColumn5.HeaderText = "类型";
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
//
// dataGridViewTextBoxColumn6
//
this.dataGridViewTextBoxColumn6.DataPropertyName = "IsValid";
this.dataGridViewTextBoxColumn6.HeaderText = "是否有效";
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
//
// Id
//
this.Id.DataPropertyName = "Id";
@ -313,19 +383,30 @@
this.HCode.HeaderText = "助记码";
this.HCode.Name = "HCode";
//
// Remark
//
this.Remark.DataPropertyName = "Remark";
this.Remark.HeaderText = "类型";
this.Remark.Name = "Remark";
//
// IsValid
//
this.IsValid.DataPropertyName = "IsValid";
this.IsValid.HeaderText = "是否有效";
this.IsValid.Name = "IsValid";
//
// Select
// txtRemark
//
this.Select.HeaderText = "选择";
this.Select.Name = "Select";
this.Select.Text = "选择事件";
this.Select.UseColumnTextForButtonValue = true;
this.Select.Width = 150;
this.txtRemark.FormattingEnabled = true;
this.txtRemark.Items.AddRange(new object[] {
"",
"药品",
"事件",
"耗材"});
this.txtRemark.Location = new System.Drawing.Point(599, 8);
this.txtRemark.Name = "txtRemark";
this.txtRemark.Size = new System.Drawing.Size(111, 28);
this.txtRemark.TabIndex = 365;
//
// frmAnaesthesiaEvents
//
@ -372,11 +453,20 @@
private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.DataGridViewTextBoxColumn Id;
private System.Windows.Forms.DataGridViewTextBoxColumn Index;
private System.Windows.Forms.DataGridViewTextBoxColumn oName;
private System.Windows.Forms.DataGridViewTextBoxColumn HCode;
private System.Windows.Forms.DataGridViewTextBoxColumn Remark;
private System.Windows.Forms.DataGridViewTextBoxColumn IsValid;
private System.Windows.Forms.DataGridViewButtonColumn Select;
private System.Windows.Forms.ComboBox txtRemark;
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.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
}
}

View File

@ -132,6 +132,9 @@
<metadata name="HCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Remark.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="IsValid.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>

View File

@ -40,8 +40,7 @@
this.tsbExit = new System.Windows.Forms.ToolStripButton();
this.panel1 = new System.Windows.Forms.Panel();
this.chkIsHospital = new System.Windows.Forms.CheckBox();
this.chkIsClinic = new System.Windows.Forms.CheckBox();
this.cboKind = new System.Windows.Forms.ComboBox();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.txtHelpCode = new System.Windows.Forms.TextBox();
this.label12 = new System.Windows.Forms.Label();
@ -51,6 +50,8 @@
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.chkIsValid = new System.Windows.Forms.CheckBox();
this.chkIsClinic = new System.Windows.Forms.TextBox();
this.cboKind = new System.Windows.Forms.TextBox();
this.txtName = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
@ -169,8 +170,7 @@
// panel1
//
this.panel1.Controls.Add(this.chkIsHospital);
this.panel1.Controls.Add(this.chkIsClinic);
this.panel1.Controls.Add(this.cboKind);
this.panel1.Controls.Add(this.label6);
this.panel1.Controls.Add(this.label5);
this.panel1.Controls.Add(this.txtHelpCode);
this.panel1.Controls.Add(this.label12);
@ -180,6 +180,8 @@
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.chkIsValid);
this.panel1.Controls.Add(this.chkIsClinic);
this.panel1.Controls.Add(this.cboKind);
this.panel1.Controls.Add(this.txtName);
this.panel1.Controls.Add(this.label1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
@ -192,39 +194,22 @@
// chkIsHospital
//
this.chkIsHospital.AutoSize = true;
this.chkIsHospital.Location = new System.Drawing.Point(353, 37);
this.chkIsHospital.Location = new System.Drawing.Point(432, 10);
this.chkIsHospital.Name = "chkIsHospital";
this.chkIsHospital.Size = new System.Drawing.Size(82, 18);
this.chkIsHospital.TabIndex = 558;
this.chkIsHospital.Text = "住院科室";
this.chkIsHospital.UseVisualStyleBackColor = true;
//
// chkIsClinic
// label6
//
this.chkIsClinic.AutoSize = true;
this.chkIsClinic.Location = new System.Drawing.Point(260, 37);
this.chkIsClinic.Name = "chkIsClinic";
this.chkIsClinic.Size = new System.Drawing.Size(82, 18);
this.chkIsClinic.TabIndex = 557;
this.chkIsClinic.Text = "门诊科室";
this.chkIsClinic.UseVisualStyleBackColor = true;
//
// cboKind
//
this.cboKind.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cboKind.FormattingEnabled = true;
this.cboKind.Items.AddRange(new object[] {
"药品管理部门",
"诊疗部门",
"辅助诊疗部门",
"护理部门",
"行政后勤部门",
"手术室",
"社区"});
this.cboKind.Location = new System.Drawing.Point(70, 33);
this.cboKind.Name = "cboKind";
this.cboKind.Size = new System.Drawing.Size(152, 22);
this.cboKind.TabIndex = 556;
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(2, 69);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(49, 14);
this.label6.TabIndex = 555;
this.label6.Text = "科室id";
this.label6.Visible = false;
//
// label5
//
@ -233,7 +218,7 @@
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(63, 14);
this.label5.TabIndex = 555;
this.label5.Text = "科室性质";
this.label5.Text = "科室编码";
//
// txtHelpCode
//
@ -258,7 +243,7 @@
//
this.intDepOrder.BackgroundStyle.Class = "DateTimeInputBackground";
this.intDepOrder.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.intDepOrder.Location = new System.Drawing.Point(500, 62);
this.intDepOrder.Location = new System.Drawing.Point(594, 35);
this.intDepOrder.Name = "intDepOrder";
this.intDepOrder.ShowUpDown = true;
this.intDepOrder.Size = new System.Drawing.Size(80, 23);
@ -267,7 +252,7 @@
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(459, 71);
this.label4.Location = new System.Drawing.Point(553, 44);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(35, 14);
this.label4.TabIndex = 19;
@ -275,15 +260,15 @@
//
// txtDepAddress
//
this.txtDepAddress.Location = new System.Drawing.Point(127, 63);
this.txtDepAddress.Location = new System.Drawing.Point(321, 38);
this.txtDepAddress.Name = "txtDepAddress";
this.txtDepAddress.Size = new System.Drawing.Size(279, 23);
this.txtDepAddress.Size = new System.Drawing.Size(194, 23);
this.txtDepAddress.TabIndex = 18;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(32, 68);
this.label3.Location = new System.Drawing.Point(226, 43);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(91, 14);
this.label3.TabIndex = 17;
@ -300,13 +285,30 @@
// chkIsValid
//
this.chkIsValid.AutoSize = true;
this.chkIsValid.Location = new System.Drawing.Point(442, 11);
this.chkIsValid.Location = new System.Drawing.Point(520, 11);
this.chkIsValid.Name = "chkIsValid";
this.chkIsValid.Size = new System.Drawing.Size(68, 18);
this.chkIsValid.TabIndex = 13;
this.chkIsValid.Text = "有效性";
this.chkIsValid.UseVisualStyleBackColor = true;
//
// chkIsClinic
//
this.chkIsClinic.Location = new System.Drawing.Point(71, 64);
this.chkIsClinic.Name = "chkIsClinic";
this.chkIsClinic.Size = new System.Drawing.Size(152, 23);
this.chkIsClinic.TabIndex = 12;
this.chkIsClinic.Visible = false;
this.chkIsClinic.TextChanged += new System.EventHandler(this.txtName_TextChanged);
//
// cboKind
//
this.cboKind.Location = new System.Drawing.Point(71, 35);
this.cboKind.Name = "cboKind";
this.cboKind.Size = new System.Drawing.Size(152, 23);
this.cboKind.TabIndex = 12;
this.cboKind.TextChanged += new System.EventHandler(this.txtName_TextChanged);
//
// txtName
//
this.txtName.Location = new System.Drawing.Point(70, 6);
@ -384,16 +386,17 @@
// KindColumn
//
this.KindColumn.DataPropertyName = "Kind";
this.KindColumn.HeaderText = "科室性质";
this.KindColumn.HeaderText = "科室编码";
this.KindColumn.Name = "KindColumn";
this.KindColumn.ReadOnly = true;
//
// ClinicColumn
//
this.ClinicColumn.DataPropertyName = "Clinic";
this.ClinicColumn.HeaderText = "门诊科室";
this.ClinicColumn.HeaderText = "科室id";
this.ClinicColumn.Name = "ClinicColumn";
this.ClinicColumn.ReadOnly = true;
this.ClinicColumn.Visible = false;
//
// HospitalColumn
//
@ -475,11 +478,12 @@
private System.Windows.Forms.TextBox txtName;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.CheckBox chkIsHospital;
private System.Windows.Forms.CheckBox chkIsClinic;
private System.Windows.Forms.ComboBox cboKind;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox txtHelpCode;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.TextBox cboKind;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox chkIsClinic;
private System.Windows.Forms.DataGridViewTextBoxColumn Id;
private System.Windows.Forms.DataGridViewTextBoxColumn NameColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn HelpCodeColumn;

View File

@ -59,15 +59,8 @@ namespace AIMS.PublicUI.UI
cboKind.Text = dgvDepartment.CurrentRow.Cells["KindColumn"].Value.ToString();
txtDepAddress.Text = dgvDepartment.CurrentRow.Cells["DepAddressColumn"].Value.ToString();
if (dgvDepartment.CurrentRow.Cells["ClinicColumn"].Value.ToString() == "是")
{
chkIsClinic.Checked = true;
}
else
{
chkIsClinic.Checked = false;
}
chkIsClinic.Text =dgvDepartment.CurrentRow.Cells["ClinicColumn"].Value.ToString();
if (dgvDepartment.CurrentRow.Cells["HospitalColumn"].Value.ToString() == "是")
{
chkIsHospital.Checked = true;
@ -98,7 +91,7 @@ namespace AIMS.PublicUI.UI
DepartmentObj.Name = txtName.Text.Trim();
DepartmentObj.HelpCode = AIMSExtension.PublicMethod.GetFirstLetter(txtName.Text.Trim());
DepartmentObj.Kind = cboKind.Text;
DepartmentObj.Clinic = int.Parse(chkIsClinic.Checked ? "1" : "0");
DepartmentObj.Clinic = int.Parse(chkIsClinic.Text);
DepartmentObj.Hospital = int.Parse(chkIsHospital.Checked ? "1" : "0");
DepartmentObj.DepAddress = txtDepAddress.Text.Trim();
DepartmentObj.DepOrder = int.Parse(intDepOrder.Text);

View File

@ -26,12 +26,16 @@ namespace DataDictionary.UI
chkIsValid.Enabled = true;
dgvEventsKind.DataSource = BEvents.GetDataTable();
txtName.TextChanged += new EventHandler(txtName_TextChanged);
chkIsValid.Checked = true;
}
private void tsbAdd_Click(object sender, EventArgs e)
{
_state = AIMSExtension.EditState.ADD;
ControlExtension.EnabledControl(panel1, true);
ControlExtension.ClearControl(panel1);
cboEventKind.Text = "普通事件";
txtUseRate.Text = "1";
chkIsValid.Checked = true;
}
private void tsbExit_Click(object sender, EventArgs e)
{
@ -44,6 +48,7 @@ namespace DataDictionary.UI
ControlExtension.ClearControl(panel1);
txtName.Enabled = true;
chkIsValid.Enabled = true;
chkIsValid.Checked = true;
dgvEventsKind.DataSource = BEvents.GetDataTable(txtName.Text, chkIsValid.Checked);
}
private bool ValidInput()
@ -111,24 +116,26 @@ namespace DataDictionary.UI
return;
}
BEvents.Add(EventsObj);
dgvEventsKind.DataSource = BEvents.GetDataTable(txtName.Text, chkIsValid.Checked);
}
if (_state == AIMSExtension.EditState.EDIT)
{
EventsObj.Id = SelectEventsKindRowId;
BEvents.Update(EventsObj);
dgvEventsKind.CurrentRow.Cells["EventKind"].Value = cboEventKind.Text;
dgvEventsKind.CurrentRow.Cells["NameColumn"].Value = txtName.Text;
dgvEventsKind.CurrentRow.Cells["HelpCode"].Value = txtHelpCode.Text;
dgvEventsKind.CurrentRow.Cells["UseRate"].Value = txtUseRate.Text;
dgvEventsKind.CurrentRow.Cells["Remark"].Value = txtRemark.Text;
dgvEventsKind.CurrentRow.Cells["IsValid"].Value = chkIsValid.Checked == true ? "有效" : "无效";
}
}
dgvEventsKind.CurrentRow.Cells["EventKind"].Value = cboEventKind.Text;
dgvEventsKind.CurrentRow.Cells["NameColumn"].Value = txtName.Text;
dgvEventsKind.CurrentRow.Cells["HelpCode"].Value = txtHelpCode.Text;
dgvEventsKind.CurrentRow.Cells["UseRate"].Value = txtUseRate.Text;
dgvEventsKind.CurrentRow.Cells["Remark"].Value = txtRemark.Text;
dgvEventsKind.CurrentRow.Cells["IsValid"].Value = chkIsValid.Checked == true ? "有效" : "无效";
ControlExtension.EnabledControl(panel1, false);
ControlExtension.ClearControl(panel1);
_state = AIMSExtension.EditState.BROWSE;
txtName.Enabled = true;
chkIsValid.Enabled = true;
chkIsValid.Checked = true;
}
private void txtName_TextChanged(object sender, EventArgs e)

View File

@ -31,25 +31,25 @@ namespace AIMS
txtNo.Select();
txtNo.Focus();
#if DEBUG
txtNo.Text = "admin";
txtPassWord.Text = "1";
txtNo.Text = "0642";
txtPassWord.Text = "123";
btnOk_Click(null, null);
#endif
}
private void btnOk_Click(object sender, EventArgs e)
{
if (BPerson.Login(txtNo.Text, txtPassWord.Text))
Person Person = BPerson.Login(txtNo.Text, txtPassWord.Text);
if (Person != null && Person.Id != null)
{
Person PersonObj = BPerson.GetModelByNo(txtNo.Text);
Person PersonObj = BPerson.GetModelById(Person.Id.Value);
AIMSExtension.PublicMethod.OperatorId = PersonObj.Id.Value;
AIMSExtension.PublicMethod.OperatorNo = PersonObj.No;
AIMSExtension.PublicMethod.OperatorName = PersonObj.Name;
AIMSExtension.PublicMethod.RoleId = PersonObj.RoleId.Value;
AIMSExtension.PublicMethod.RoleId = PersonObj.RoleId.Value;
AIMSExtension.PublicMethod.DepId = PersonObj.DepId.Value;
AIMSExtension.PublicMethod.DeptName = BDepartment.GetModel(PersonObj.DepId.Value).Name;
Role role = BRole.GetModel(PersonObj.RoleId.Value);
AIMSExtension.PublicMethod.PermissionLevel = role.PermissionLevel == null ? 0 : role.PermissionLevel.Value;
AIMSExtension.PublicMethod.PermissionLevel = role.PermissionLevel == null ? 0 : role.PermissionLevel.Value;
AIMSExtension.PublicMethod.RoleName = BMenu.GetMenuRootListManageStr(AIMSExtension.PublicMethod.RoleId, "功能权限");
Hide();
//在这里为编辑器注册

View File

@ -78,8 +78,8 @@ namespace AIMS.OperationAanesthesia
if (reVal)
{
templateManage.DrawArea();
DrawGraph.ZUtil.DrawText(AIMSExtension.PublicMethod.GetHospitalName(), 0.385, 0.018, Zgc, DrawGraph.ZUtil.Font16);
DrawGraph.ZUtil.DrawText(" 恢复记录单", 0.4, 0.04, Zgc, DrawGraph.ZUtil.Font16);
DrawGraph.ZUtil.DrawText(AIMSExtension.PublicMethod.GetHospitalName(), 0.355, 0.053, Zgc, DrawGraph.ZUtil.Font18);
DrawGraph.ZUtil.DrawText(" 恢复记录单", 0.4, 0.08, Zgc, DrawGraph.ZUtil.Font18);
#region
//在此处可随时设置板子的属性

View File

@ -1,6 +1,4 @@
using AIMS.DocManager;
using AIMS.OperationAanesthesia;
using AIMS.OperationFront.UI;
using AIMS.PublicUI.UI;
using AIMSBLL;
using AIMSExtension;
@ -136,16 +134,7 @@ namespace AIMS.OperationAanesthesia
printHeight = Convert.ToInt32(printWidth * 1.414) + 2;
zgcAnaesRecord.Size = new Size(printWidth, printHeight);
foreach (PhysioDataConfig pp in _record.PhysioConfigList)
{
if (pp.ShowText == true)
{
pp.IsValid = false;
///重新设置曲线属性
pp.reSetCurveSpo2();
}
}
TipBox.Hidden();
MasterPane mPane = zgcAnaesRecord.MasterPane; //this.MasterPane;
@ -167,16 +156,7 @@ namespace AIMS.OperationAanesthesia
zgcAnaesRecord.Size = new Size(zgcAnaesRecordWidth, zgcAnaesRecordHeight);
templateManage.initChart();
UpPanes.Add(mPane.Clone());
foreach (PhysioDataConfig pp in _record.PhysioConfigList)
{
if (pp.ShowText == true)
{
pp.IsValid = true;
///重新设置曲线属性
pp.reSetCurveSpo2();
}
}
UpPanes.Add(mPane.Clone());
}
private void plPrint_Click(object sender, EventArgs e)
{

View File

@ -91,7 +91,7 @@ namespace AIMS.PublicUI.UI
dgvYP.Visible = false;
dgvYP.AutoGenerateColumns = false;
if (PublicMethod.OperatorNo == "admin")
if (PublicMethod.OperatorNo == "admin" || PublicMethod.RoleName.Contains("常用药品"))
{
btnTypeManager.Visible = true;
}

View File

@ -52,7 +52,7 @@ namespace AIMS.PublicUI.UI
private void frmFactEventsNew_Load(object sender, EventArgs e)
{
if (PublicMethod.OperatorNo == "admin")
if (PublicMethod.OperatorNo == "admin" || PublicMethod.RoleName.Contains("常用事件"))
{
btnTypeManager.Visible = true;
}

View File

@ -253,15 +253,21 @@ namespace AIMS.OperationAanesthesia
private void button1_Click(object sender, EventArgs e)
{
if (cboJSHF.Text == "") cboJSHF.Text = " /";
if (cboPF.Text == "") cboPF.Text = "无";
if (cboTT.Text == "") cboTT.Text = " /";
if (cboJMTC.Text == "") cboJMTC.Text = " /";
if (cboJMTC.Text == "") cboJMTC.Text = "是";
if (cboYLBS.Text == "") cboYLBS.Text = "是";
if (cboYLWZ.Text == "") cboYLWZ.Text = "是";
if (cboPF.Text == "") cboPF.Text = "未见异常";
if (cboZTHDD.Text == "") cboZTHDD.Text = "2分-自主或遵嘱活动四肢和抬头";
if (cboHXDTCCD.Text == "") cboHXDTCCD.Text = "2分-能深呼吸和有效咳嗽,呼吸频率和幅度正常";
if (txtBP.Text == "") txtBP.Text = "2分-麻醉前±20%以内";
if (cboQXCD.Text == "") cboQXCD.Text = "2分-完全清醒(准确回答)";
if (txtSPO2.Text == "") txtSPO2.Text = "2分-呼吸空气SpO2≥92%";
//入室肌力评分无意义
if (cboJSHF.Text == "") cboJSHF.Text = "Ⅴ级 肌力正常,运动自如";
if (cboTT.Text == "") cboTT.Text = "0分-无疼痛";
if (txtSQTSQK.Text == "") txtSQTSQK.Text = " /";
if (cboYLBS.Text == "") cboYLBS.Text = " /";
if (cboYLWZ.Text == "") cboYLWZ.Text = " /";
if (cboYLMC.Text == "") cboYLMC.Text = " /";
if (txtT.Text == "") txtT.Text = " /";
slider1.Value = 5;
}
private void cboMZPM_SelectedIndexChanged(object sender, EventArgs e)

View File

@ -187,7 +187,7 @@
this.groupBox2.Controls.Add(this.label53);
this.groupBox2.Controls.Add(this.cboQXCD);
this.groupBox2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox2.Location = new System.Drawing.Point(7, 143);
this.groupBox2.Location = new System.Drawing.Point(14, 150);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(906, 115);
this.groupBox2.TabIndex = 1532;
@ -338,7 +338,8 @@
this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.button1.FlatAppearance.BorderSize = 0;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Location = new System.Drawing.Point(849, 298);
this.button1.Image = global::AIMS.Properties.Resources._select;
this.button1.Location = new System.Drawing.Point(863, 99);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(45, 45);
this.button1.TabIndex = 561;
@ -391,7 +392,7 @@
this.uText1.Font = new System.Drawing.Font("宋体", 11F);
this.uText1.IsFindDictionray = true;
this.uText1.IsUpdateDictionary = false;
this.uText1.Location = new System.Drawing.Point(759, 114);
this.uText1.Location = new System.Drawing.Point(652, 114);
this.uText1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.uText1.Name = "uText1";
this.uText1.Size = new System.Drawing.Size(130, 17);
@ -424,7 +425,7 @@
// checkBox6
//
this.checkBox6.AutoSize = true;
this.checkBox6.Location = new System.Drawing.Point(697, 110);
this.checkBox6.Location = new System.Drawing.Point(590, 110);
this.checkBox6.Name = "checkBox6";
this.checkBox6.Size = new System.Drawing.Size(56, 24);
this.checkBox6.TabIndex = 571;
@ -435,7 +436,7 @@
// checkBox5
//
this.checkBox5.AutoSize = true;
this.checkBox5.Location = new System.Drawing.Point(569, 110);
this.checkBox5.Location = new System.Drawing.Point(501, 110);
this.checkBox5.Name = "checkBox5";
this.checkBox5.Size = new System.Drawing.Size(70, 24);
this.checkBox5.TabIndex = 571;
@ -445,7 +446,7 @@
// checkBox4
//
this.checkBox4.AutoSize = true;
this.checkBox4.Location = new System.Drawing.Point(455, 110);
this.checkBox4.Location = new System.Drawing.Point(404, 110);
this.checkBox4.Name = "checkBox4";
this.checkBox4.Size = new System.Drawing.Size(56, 24);
this.checkBox4.TabIndex = 571;
@ -465,7 +466,7 @@
// checkBox3
//
this.checkBox3.AutoSize = true;
this.checkBox3.Location = new System.Drawing.Point(313, 110);
this.checkBox3.Location = new System.Drawing.Point(279, 110);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(84, 24);
this.checkBox3.TabIndex = 571;
@ -492,7 +493,7 @@
// checkBox2
//
this.checkBox2.AutoSize = true;
this.checkBox2.Location = new System.Drawing.Point(185, 110);
this.checkBox2.Location = new System.Drawing.Point(168, 110);
this.checkBox2.Name = "checkBox2";
this.checkBox2.Size = new System.Drawing.Size(70, 24);
this.checkBox2.TabIndex = 571;
@ -708,7 +709,7 @@
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.AliceBlue;
this.ClientSize = new System.Drawing.Size(920, 365);
this.ClientSize = new System.Drawing.Size(920, 149);
this.Controls.Add(this.groupBox1);
this.Font = new System.Drawing.Font("微软雅黑", 10.5F);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));

View File

@ -276,13 +276,25 @@ namespace AIMS.OperationAanesthesia
if (cboJSHF.Text == "") cboJSHF.Text = " /";//好";
if (txtBFZ.Text == "") txtBFZ.Text = " /";//无";
if (cboDXNL.Text == "") cboDXNL.Text = " /";//好";
if (cboHXXT.Text == "") cboHXXT.Text = " /";//自主呼吸";
if (cboPF.Text == "") cboPF.Text = " /";//完整";
if (cboHXXT.Text == "") cboHXXT.Text = " /";//自主呼吸";
if (cboTT.Text == "") cboTT.Text = " /";//无";
if (cboHXY.Text == "") cboHXY.Text = " /";//正常";
if (cboSS.Text == "") cboSS.Text = " /";//无";
if (txtTSQK.Text == "") txtTSQK.Text = " /";
if (cboJSHF.Text == "") cboJSHF.Text = "Ⅴ级 肌力正常,运动自如";
if (cboTT.Text == "") cboTT.Text = "0分-无疼痛";
if (cboPF.Text == "") cboPF.Text = "未见异常";
if (cboQXCD.Text == "") cboQXCD.Text = "2分-完全清醒";
if (cboHXDTCCD.Text == "") cboHXDTCCD.Text = "2分-可按医师吩咐咳嗽";
if (cboZTHDD.Text == "") cboZTHDD.Text = "2分-肢体能做有意识活动";
if (cboHD.Text == "") cboHD .Text = "2分-自主或遵嘱活动四肢和抬头";
if (cboHX.Text == "") cboHX.Text = "2分-能深呼吸和有效咳嗽,呼吸频率和幅度正常";
if (cboXY.Text == "") cboXY.Text = "2分-麻醉前±20%以内";
if (cboYS1.Text == "") cboYS1.Text = "2分-完全清醒(准确回答)";
if (cboSPO2.Text == "") cboSPO2.Text = "2分-呼吸空气SpO2≥92%";
slider1.Value = 2;
}
@ -290,5 +302,6 @@ namespace AIMS.OperationAanesthesia
{
txtPain.Text = slider1.Value.ToString();
}
}
}

View File

@ -32,6 +32,7 @@
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.label2 = new System.Windows.Forms.Label();
this.txtPain = new AIMS.OremrUserControl.NumTextBox();
this.label25 = new System.Windows.Forms.Label();
this.slider1 = new DevComponents.DotNetBar.Controls.Slider();
this.groupBox4 = new System.Windows.Forms.GroupBox();
@ -54,18 +55,22 @@
this.label35 = new System.Windows.Forms.Label();
this.cboHD = new System.Windows.Forms.ComboBox();
this.label36 = new System.Windows.Forms.Label();
this.txtAndree = new AIMS.OremrUserControl.NumTextBox();
this.label40 = new System.Windows.Forms.Label();
this.label52 = new System.Windows.Forms.Label();
this.label53 = new System.Windows.Forms.Label();
this.cboHXDTCCD = new System.Windows.Forms.ComboBox();
this.cboZTHDD = new System.Windows.Forms.ComboBox();
this.label23 = new System.Windows.Forms.Label();
this.txtZPF = new AIMS.OremrUserControl.NumTextBox();
this.label54 = new System.Windows.Forms.Label();
this.label51 = new System.Windows.Forms.Label();
this.cboQXCD = new System.Windows.Forms.ComboBox();
this.txtTSQK = new AIMS.OremrUserControl.UText();
this.cboHXY = new System.Windows.Forms.ComboBox();
this.cboTT = new System.Windows.Forms.ComboBox();
this.label24 = new System.Windows.Forms.Label();
this.txtBFZ = new AIMS.OremrUserControl.UText();
this.txtSPO2 = new System.Windows.Forms.TextBox();
this.txtBP = new System.Windows.Forms.TextBox();
this.label22 = new System.Windows.Forms.Label();
@ -95,11 +100,6 @@
this.cboPF = new System.Windows.Forms.ComboBox();
this.label31 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.txtPain = new AIMS.OremrUserControl.NumTextBox();
this.txtAndree = new AIMS.OremrUserControl.NumTextBox();
this.txtZPF = new AIMS.OremrUserControl.NumTextBox();
this.txtTSQK = new AIMS.OremrUserControl.UText();
this.txtBFZ = new AIMS.OremrUserControl.UText();
this.groupBox1.SuspendLayout();
this.groupBox3.SuspendLayout();
this.groupBox4.SuspendLayout();
@ -186,6 +186,14 @@
this.label2.TabIndex = 1535;
this.label2.Text = "分";
//
// txtPain
//
this.txtPain.Location = new System.Drawing.Point(382, 23);
this.txtPain.Name = "txtPain";
this.txtPain.ReadOnly = true;
this.txtPain.Size = new System.Drawing.Size(56, 26);
this.txtPain.TabIndex = 1536;
//
// label25
//
this.label25.AutoSize = true;
@ -307,11 +315,13 @@
this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.button1.FlatAppearance.BorderSize = 0;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Image = global::AIMS.Properties.Resources._select;
this.button1.Location = new System.Drawing.Point(863, 131);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(45, 45);
this.button1.TabIndex = 563;
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// rdbSW
//
@ -472,6 +482,13 @@
this.label36.TabIndex = 559;
this.label36.Text = "Aldrete总评分";
//
// txtAndree
//
this.txtAndree.Location = new System.Drawing.Point(825, 99);
this.txtAndree.Name = "txtAndree";
this.txtAndree.Size = new System.Drawing.Size(77, 26);
this.txtAndree.TabIndex = 560;
//
// label40
//
this.label40.AutoSize = true;
@ -543,6 +560,13 @@
this.label23.Text = "分";
this.label23.Visible = false;
//
// txtZPF
//
this.txtZPF.Location = new System.Drawing.Point(555, 276);
this.txtZPF.Name = "txtZPF";
this.txtZPF.Size = new System.Drawing.Size(77, 26);
this.txtZPF.TabIndex = 560;
//
// label54
//
this.label54.AutoSize = true;
@ -577,6 +601,21 @@
this.cboQXCD.TabIndex = 518;
this.cboQXCD.SelectedIndexChanged += new System.EventHandler(this.cboQXCD_SelectedIndexChanged);
//
// txtTSQK
//
this.txtTSQK.BackColor = System.Drawing.Color.White;
this.txtTSQK.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.txtTSQK.DictionaryKey = "特殊处理";
this.txtTSQK.Font = new System.Drawing.Font("宋体", 11F);
this.txtTSQK.IsFindDictionray = true;
this.txtTSQK.IsUpdateDictionary = false;
this.txtTSQK.Location = new System.Drawing.Point(101, 98);
this.txtTSQK.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.txtTSQK.Name = "txtTSQK";
this.txtTSQK.Size = new System.Drawing.Size(388, 17);
this.txtTSQK.TabIndex = 1533;
this.txtTSQK.Tag = "";
//
// cboHXY
//
this.cboHXY.FormattingEnabled = true;
@ -634,6 +673,21 @@
this.label24.TabIndex = 580;
this.label24.Text = "VSA评分";
//
// txtBFZ
//
this.txtBFZ.BackColor = System.Drawing.Color.White;
this.txtBFZ.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.txtBFZ.DictionaryKey = "并发症";
this.txtBFZ.Font = new System.Drawing.Font("宋体", 11F);
this.txtBFZ.IsFindDictionray = true;
this.txtBFZ.IsUpdateDictionary = false;
this.txtBFZ.Location = new System.Drawing.Point(102, 69);
this.txtBFZ.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.txtBFZ.Name = "txtBFZ";
this.txtBFZ.Size = new System.Drawing.Size(388, 17);
this.txtBFZ.TabIndex = 1532;
this.txtBFZ.Tag = "";
//
// txtSPO2
//
this.txtSPO2.Location = new System.Drawing.Point(756, 173);
@ -934,58 +988,6 @@
this.label1.TabIndex = 515;
this.label1.Text = "肌力评分";
//
// txtPain
//
this.txtPain.Location = new System.Drawing.Point(382, 23);
this.txtPain.Name = "txtPain";
this.txtPain.ReadOnly = true;
this.txtPain.Size = new System.Drawing.Size(56, 26);
this.txtPain.TabIndex = 1536;
//
// txtAndree
//
this.txtAndree.Location = new System.Drawing.Point(825, 99);
this.txtAndree.Name = "txtAndree";
this.txtAndree.Size = new System.Drawing.Size(77, 26);
this.txtAndree.TabIndex = 560;
//
// txtZPF
//
this.txtZPF.Location = new System.Drawing.Point(555, 276);
this.txtZPF.Name = "txtZPF";
this.txtZPF.Size = new System.Drawing.Size(77, 26);
this.txtZPF.TabIndex = 560;
//
// txtTSQK
//
this.txtTSQK.BackColor = System.Drawing.Color.White;
this.txtTSQK.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.txtTSQK.DictionaryKey = "特殊处理";
this.txtTSQK.Font = new System.Drawing.Font("宋体", 11F);
this.txtTSQK.IsFindDictionray = true;
this.txtTSQK.IsUpdateDictionary = false;
this.txtTSQK.Location = new System.Drawing.Point(101, 98);
this.txtTSQK.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.txtTSQK.Name = "txtTSQK";
this.txtTSQK.Size = new System.Drawing.Size(388, 17);
this.txtTSQK.TabIndex = 1533;
this.txtTSQK.Tag = "";
//
// txtBFZ
//
this.txtBFZ.BackColor = System.Drawing.Color.White;
this.txtBFZ.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.txtBFZ.DictionaryKey = "并发症";
this.txtBFZ.Font = new System.Drawing.Font("宋体", 11F);
this.txtBFZ.IsFindDictionray = true;
this.txtBFZ.IsUpdateDictionary = false;
this.txtBFZ.Location = new System.Drawing.Point(102, 69);
this.txtBFZ.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.txtBFZ.Name = "txtBFZ";
this.txtBFZ.Size = new System.Drawing.Size(388, 17);
this.txtBFZ.TabIndex = 1532;
this.txtBFZ.Tag = "";
//
// frmOpeRecoverOutInfo
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);

View File

@ -88,6 +88,7 @@
this.PatientNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.SexColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Age = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.IdentityCard = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.OperationTypeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ApplyTimeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.OrderOperationTimeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
@ -353,6 +354,7 @@
this.PatientNameColumn,
this.SexColumn,
this.Age,
this.IdentityCard,
this.OperationTypeColumn,
this.ApplyTimeColumn,
this.OrderOperationTimeColumn,
@ -663,6 +665,13 @@
this.Age.Name = "Age";
this.Age.Width = 40;
//
// IdentityCard
//
this.IdentityCard.DataPropertyName = "IdentityCard";
this.IdentityCard.HeaderText = "身份证";
this.IdentityCard.Name = "IdentityCard";
this.IdentityCard.Width = 130;
//
// OperationTypeColumn
//
this.OperationTypeColumn.DataPropertyName = "OperationType";
@ -885,6 +894,7 @@
private System.Windows.Forms.DataGridViewTextBoxColumn PatientNameColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn SexColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn Age;
private System.Windows.Forms.DataGridViewTextBoxColumn IdentityCard;
private System.Windows.Forms.DataGridViewTextBoxColumn OperationTypeColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn ApplyTimeColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn OrderOperationTimeColumn;

View File

@ -120,6 +120,9 @@
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="CheckBoxColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@ -147,6 +150,9 @@
<metadata name="Age.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="IdentityCard.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="OperationTypeColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>

View File

@ -1303,6 +1303,41 @@ namespace AIMS.OperationFront.UI
rboZQ.Checked = true;
}
}
if (PublicMethod.GetHospitalName().Contains("大连市金州区中医医院"))
{
string sqlStr = string.Format("select * from AIMS_PATIENTS where IPD_NO like '%{0}%'", txtMdrecNo.Text);
DataTable dt = null;
dt = HisDBHelper.GetDataTable(sqlStr);
if (dt != null && dt.Rows.Count > 0)
{
DataRow row = dt.Rows[0];
txtArchivesNo.Text = row["PATIENT_ID"].ToString();//HIS患者ID
cboDepartment.Text = row["名称"].ToString(); //申请手术科室编码
cboApplyDepId.Text = row["名称"].ToString(); //申请手术科室编码
txtName.Text = row["PATIENT_NAME"].ToString();
cboSex.Text = row["PATIENT_SEX"].ToString();
try
{
dtpBirthDay.Value = Convert.ToDateTime(row["PATIENT_BIRTH"].ToString());
if (row["PATIENT_HEIGHT"].ToString() != "") txtHeight.Text = Convert.ToDecimal(row["PATIENT_HEIGHT"].ToString()).ToString();
if (row["PATIENT_WEIGHT"].ToString() != "") txtWeight.Text = Convert.ToDecimal(row["PATIENT_WEIGHT"].ToString()).ToString();
}
catch (Exception)
{
}
cboBloodType.Text = row["PATINET_BLOODTYPE"].ToString();
cboRHBloodType.Text = row["PATINET_BLOODTYPE_RH"].ToString();
txtIdentityCard.Text = row["IDNO"].ToString();
cboPatientKind.Text = row["PATIENT_CHARGE_TYPE"].ToString();
txtIlldistrict.Text = row["ROOM_NO"].ToString();
txtSickBed.Text = row["ROOM_NO"].ToString();
//patient.ADDRESS = row["PATIENT_ADDRESS"].ToString();
txtContacts.Text = row["PATIENT_CONTACTOR"].ToString();
txtContactsPhone.Text = row["PATIENT_CONTACTOR_PHONE"].ToString();
dtpInHosDate.Value = Convert.ToDateTime(row["INHOSPITALTIME"].ToString());
rboZQ.Checked = true;
}
}
else
{
MessageBox.Show("未找到该患者信息!");

View File

@ -1,4 +1,6 @@
using DCSoft.Writer;
using AIMS.PublicUI.UI;
using AIMSModel;
using DCSoft.Writer;
using DCSoft.Writer.Data;
using DCSoft.Writer.Dom;
using DocumentManagement;
@ -9,6 +11,7 @@ using System.Linq;
using System.Reflection;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Linq;
namespace AIMS.OremrUserControl
{
@ -194,6 +197,11 @@ namespace AIMS.OremrUserControl
{
toolStripButton1.Visible = true;
}
if (XmlFileName == "自费项目治疗同意书")
{
toolStripButton1.Text = "选择药品";
toolStripButton1.Visible = true;
}
}
void myEditControl_AfterExecuteCommand(object eventSender, DCSoft.Writer.Commands.WriterCommandEventArgs args)
@ -386,6 +394,28 @@ namespace AIMS.OremrUserControl
string XmlFileName = TModel.XmlFileName;
if (DModel != null) XmlFileName = DModel.XmlFileName;
DocumentExtension.GetDocumentValue(DModel.XmlFileName, myEditControl.Document, Patient);
if (DModel.XmlFileName == "自费项目治疗同意书")
{
string Result = "";
string Result2 = "";
frmDrugSel drugSel = new frmDrugSel();
drugSel.ShowDialog();
int i = 1;
foreach (var item in drugSel.FactDrugList)
{
Result += i + "." + item.DrugName + " " + item.Dosage + "元 " + item.DrugKind + item.DosageUnit + " \r\n";
Result2 += i + "." + item.DensityUnit + " ";
i++;
}
var field12 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).ID == "field15").FirstOrDefault();
if (Result != "") field12.Text = Result.ToString();
var field13 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement
&& (x as XTextInputFieldElement).ID == "field16").FirstOrDefault();
if (Result2 != "") field13.Text = Result2.ToString();
}
}
private void tsbCheckout_Click(object sender, EventArgs e)

711
AIMS/PublicUI/frmDrugSel.Designer.cs generated Normal file
View File

@ -0,0 +1,711 @@
namespace AIMS.PublicUI.UI
{
partial class frmDrugSel
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmDrugSel));
this.panel1 = new System.Windows.Forms.Panel();
this.panel5 = new System.Windows.Forms.Panel();
this.tabDrugs = new DevComponents.DotNetBar.SuperTabControl();
this.superTabControlPanel5 = new DevComponents.DotNetBar.SuperTabControlPanel();
this.dgvDrugsSZ = new DevComponents.DotNetBar.Controls.DataGridViewX();
this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewComboEditBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewComboBoxColumn4 = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.P2 = new DevComponents.DotNetBar.SuperTabItem();
this.superTabControlPanel1 = new DevComponents.DotNetBar.SuperTabControlPanel();
this.superTabControlPanel2 = new DevComponents.DotNetBar.SuperTabControlPanel();
this.panelleft = new System.Windows.Forms.Panel();
this.TabSelDrugs = new DevComponents.DotNetBar.SuperTabControl();
this.panel2 = new System.Windows.Forms.Panel();
this.btnTypeManager = new DevComponents.DotNetBar.ButtonX();
this.btnDelete = new DevComponents.DotNetBar.ButtonX();
this.btnSave = new DevComponents.DotNetBar.ButtonX();
this.P3 = new DevComponents.DotNetBar.SuperTabItem();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.superTabItem2 = new DevComponents.DotNetBar.SuperTabItem();
this.superTabItem3 = new DevComponents.DotNetBar.SuperTabItem();
this.superTabItem4 = new DevComponents.DotNetBar.SuperTabItem();
this.dgvYP = new System.Windows.Forms.DataGridView();
this.id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Code = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.TypeId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.TypeName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DrugName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.HCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Norm = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DOSEPER = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DoseUnit = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Price = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Factroy = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Channel = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dgvDosage = new System.Windows.Forms.DataGridView();
this.Dosage = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.panel1.SuspendLayout();
this.panel5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.tabDrugs)).BeginInit();
this.tabDrugs.SuspendLayout();
this.superTabControlPanel5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSZ)).BeginInit();
this.panelleft.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.TabSelDrugs)).BeginInit();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvYP)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgvDosage)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.White;
this.panel1.Controls.Add(this.panel5);
this.panel1.Controls.Add(this.panelleft);
this.panel1.Controls.Add(this.panel2);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1195, 677);
this.panel1.TabIndex = 2;
//
// panel5
//
this.panel5.Controls.Add(this.tabDrugs);
this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel5.Location = new System.Drawing.Point(330, 42);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(865, 635);
this.panel5.TabIndex = 2;
//
// tabDrugs
//
this.tabDrugs.BackColor = System.Drawing.Color.White;
//
//
//
//
//
//
this.tabDrugs.ControlBox.CloseBox.Name = "";
//
//
//
this.tabDrugs.ControlBox.MenuBox.Name = "";
this.tabDrugs.ControlBox.Name = "";
this.tabDrugs.ControlBox.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.tabDrugs.ControlBox.MenuBox,
this.tabDrugs.ControlBox.CloseBox});
this.tabDrugs.Controls.Add(this.superTabControlPanel5);
this.tabDrugs.Controls.Add(this.superTabControlPanel1);
this.tabDrugs.Controls.Add(this.superTabControlPanel2);
this.tabDrugs.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabDrugs.ForeColor = System.Drawing.Color.Black;
this.tabDrugs.Location = new System.Drawing.Point(0, 0);
this.tabDrugs.Name = "tabDrugs";
this.tabDrugs.ReorderTabsEnabled = true;
this.tabDrugs.SelectedTabFont = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold);
this.tabDrugs.SelectedTabIndex = 0;
this.tabDrugs.Size = new System.Drawing.Size(865, 635);
this.tabDrugs.TabFont = new System.Drawing.Font("微软雅黑", 10.5F);
this.tabDrugs.TabIndex = 464;
this.tabDrugs.Tabs.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.P2});
this.tabDrugs.TabStyle = DevComponents.DotNetBar.eSuperTabStyle.Office2010BackstageBlue;
this.tabDrugs.SelectedTabChanged += new System.EventHandler<DevComponents.DotNetBar.SuperTabStripSelectedTabChangedEventArgs>(this.tabDrugs_SelectedTabChanged);
//
// superTabControlPanel5
//
this.superTabControlPanel5.Controls.Add(this.dgvDrugsSZ);
this.superTabControlPanel5.Dock = System.Windows.Forms.DockStyle.Fill;
this.superTabControlPanel5.Location = new System.Drawing.Point(0, 31);
this.superTabControlPanel5.Name = "superTabControlPanel5";
this.superTabControlPanel5.Size = new System.Drawing.Size(865, 604);
this.superTabControlPanel5.TabIndex = 0;
this.superTabControlPanel5.TabItem = this.P2;
this.superTabControlPanel5.Visible = false;
//
// dgvDrugsSZ
//
this.dgvDrugsSZ.AllowUserToAddRows = false;
this.dgvDrugsSZ.AllowUserToResizeColumns = false;
this.dgvDrugsSZ.AllowUserToResizeRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.MintCream;
this.dgvDrugsSZ.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.dgvDrugsSZ.BackgroundColor = System.Drawing.Color.White;
this.dgvDrugsSZ.BorderStyle = System.Windows.Forms.BorderStyle.None;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvDrugsSZ.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.dgvDrugsSZ.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvDrugsSZ.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewImageColumn1,
this.dataGridViewTextBoxColumn1,
this.dataGridViewTextBoxColumn2,
this.dataGridViewTextBoxColumn3,
this.dataGridViewComboEditBoxColumn2,
this.dataGridViewTextBoxColumn6,
this.dataGridViewComboBoxColumn4,
this.dataGridViewTextBoxColumn8});
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvDrugsSZ.DefaultCellStyle = dataGridViewCellStyle4;
this.dgvDrugsSZ.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvDrugsSZ.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
this.dgvDrugsSZ.EnableHeadersVisualStyles = false;
this.dgvDrugsSZ.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
this.dgvDrugsSZ.Location = new System.Drawing.Point(0, 0);
this.dgvDrugsSZ.Margin = new System.Windows.Forms.Padding(0);
this.dgvDrugsSZ.MultiSelect = false;
this.dgvDrugsSZ.Name = "dgvDrugsSZ";
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvDrugsSZ.RowHeadersDefaultCellStyle = dataGridViewCellStyle5;
this.dgvDrugsSZ.RowHeadersVisible = false;
this.dgvDrugsSZ.RowTemplate.Height = 25;
this.dgvDrugsSZ.ShowCellErrors = false;
this.dgvDrugsSZ.ShowCellToolTips = false;
this.dgvDrugsSZ.Size = new System.Drawing.Size(865, 604);
this.dgvDrugsSZ.TabIndex = 16;
this.dgvDrugsSZ.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvDrugs_DataError);
//
// dataGridViewImageColumn1
//
this.dataGridViewImageColumn1.HeaderText = " ";
this.dataGridViewImageColumn1.Image = global::AIMS.Properties.Resources.SYSCRL;
this.dataGridViewImageColumn1.Name = "dataGridViewImageColumn1";
this.dataGridViewImageColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridViewImageColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
this.dataGridViewImageColumn1.Visible = false;
this.dataGridViewImageColumn1.Width = 30;
//
// dataGridViewTextBoxColumn1
//
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.Red;
this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle3;
this.dataGridViewTextBoxColumn1.HeaderText = "组";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.Visible = false;
this.dataGridViewTextBoxColumn1.Width = 30;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.HeaderText = "类型";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.Visible = false;
this.dataGridViewTextBoxColumn2.Width = 60;
//
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.dataGridViewTextBoxColumn3.HeaderText = "名称";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
this.dataGridViewTextBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True;
//
// dataGridViewComboEditBoxColumn2
//
this.dataGridViewComboEditBoxColumn2.HeaderText = "价格";
this.dataGridViewComboEditBoxColumn2.Name = "dataGridViewComboEditBoxColumn2";
this.dataGridViewComboEditBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
//
// dataGridViewTextBoxColumn6
//
this.dataGridViewTextBoxColumn6.HeaderText = "数量";
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
this.dataGridViewTextBoxColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.dataGridViewTextBoxColumn6.Width = 60;
//
// dataGridViewComboBoxColumn4
//
this.dataGridViewComboBoxColumn4.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
this.dataGridViewComboBoxColumn4.HeaderText = "单位";
this.dataGridViewComboBoxColumn4.Name = "dataGridViewComboBoxColumn4";
this.dataGridViewComboBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridViewComboBoxColumn4.Width = 60;
//
// dataGridViewTextBoxColumn8
//
this.dataGridViewTextBoxColumn8.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing;
this.dataGridViewTextBoxColumn8.HeaderText = "比例";
this.dataGridViewTextBoxColumn8.Items.AddRange(new object[] {
"",
"10%",
"20%",
"30%",
"40%",
"50%",
"60%",
"70%",
"80%",
"90%",
"100%"});
this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
this.dataGridViewTextBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridViewTextBoxColumn8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// P2
//
this.P2.AttachedControl = this.superTabControlPanel5;
this.P2.GlobalItem = false;
this.P2.Name = "P2";
this.P2.Text = "自费药品";
//
// superTabControlPanel1
//
this.superTabControlPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.superTabControlPanel1.Location = new System.Drawing.Point(0, 0);
this.superTabControlPanel1.Name = "superTabControlPanel1";
this.superTabControlPanel1.Size = new System.Drawing.Size(865, 635);
this.superTabControlPanel1.TabIndex = 0;
//
// superTabControlPanel2
//
this.superTabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.superTabControlPanel2.Location = new System.Drawing.Point(0, 0);
this.superTabControlPanel2.Name = "superTabControlPanel2";
this.superTabControlPanel2.Size = new System.Drawing.Size(865, 635);
this.superTabControlPanel2.TabIndex = 0;
//
// panelleft
//
this.panelleft.Controls.Add(this.TabSelDrugs);
this.panelleft.Dock = System.Windows.Forms.DockStyle.Left;
this.panelleft.Location = new System.Drawing.Point(0, 42);
this.panelleft.Name = "panelleft";
this.panelleft.Size = new System.Drawing.Size(330, 635);
this.panelleft.TabIndex = 1;
//
// TabSelDrugs
//
//
//
//
//
//
//
this.TabSelDrugs.ControlBox.CloseBox.Name = "";
//
//
//
this.TabSelDrugs.ControlBox.MenuBox.Name = "";
this.TabSelDrugs.ControlBox.Name = "";
this.TabSelDrugs.ControlBox.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.TabSelDrugs.ControlBox.MenuBox,
this.TabSelDrugs.ControlBox.CloseBox});
this.TabSelDrugs.Dock = System.Windows.Forms.DockStyle.Fill;
this.TabSelDrugs.HorizontalText = false;
this.TabSelDrugs.Location = new System.Drawing.Point(0, 0);
this.TabSelDrugs.Name = "TabSelDrugs";
this.TabSelDrugs.ReorderTabsEnabled = true;
this.TabSelDrugs.SelectedTabFont = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold);
this.TabSelDrugs.SelectedTabIndex = 0;
this.TabSelDrugs.Size = new System.Drawing.Size(330, 635);
this.TabSelDrugs.TabAlignment = DevComponents.DotNetBar.eTabStripAlignment.Left;
this.TabSelDrugs.TabFont = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.TabSelDrugs.TabIndex = 0;
this.TabSelDrugs.TabStyle = DevComponents.DotNetBar.eSuperTabStyle.Office2010BackstageBlue;
this.TabSelDrugs.Text = "常用药品";
//
// panel2
//
this.panel2.BackColor = System.Drawing.SystemColors.Control;
this.panel2.Controls.Add(this.btnTypeManager);
this.panel2.Controls.Add(this.btnDelete);
this.panel2.Controls.Add(this.btnSave);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1195, 42);
this.panel2.TabIndex = 0;
//
// btnTypeManager
//
this.btnTypeManager.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnTypeManager.Location = new System.Drawing.Point(777, 6);
this.btnTypeManager.Name = "btnTypeManager";
this.btnTypeManager.Size = new System.Drawing.Size(132, 30);
this.btnTypeManager.TabIndex = 12;
this.btnTypeManager.Text = "类别维护";
this.btnTypeManager.Click += new System.EventHandler(this.btnTypeManager_Click);
//
// btnDelete
//
this.btnDelete.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnDelete.Location = new System.Drawing.Point(915, 6);
this.btnDelete.Name = "btnDelete";
this.btnDelete.Size = new System.Drawing.Size(86, 30);
this.btnDelete.TabIndex = 2;
this.btnDelete.Text = "删除";
this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
//
// btnSave
//
this.btnSave.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnSave.Location = new System.Drawing.Point(1007, 6);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(86, 30);
this.btnSave.TabIndex = 1;
this.btnSave.Text = "保存";
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// P3
//
this.P3.GlobalItem = false;
this.P3.Name = "P3";
this.P3.Text = "术后镇痛药";
//
// superTabItem2
//
this.superTabItem2.GlobalItem = false;
this.superTabItem2.Name = "superTabItem2";
this.superTabItem2.Text = "superTabItem2";
//
// superTabItem3
//
this.superTabItem3.GlobalItem = false;
this.superTabItem3.Name = "superTabItem3";
this.superTabItem3.Text = "superTabItem3";
//
// superTabItem4
//
this.superTabItem4.GlobalItem = false;
this.superTabItem4.Name = "superTabItem4";
this.superTabItem4.Text = "superTabItem4";
//
// dgvYP
//
this.dgvYP.AllowUserToAddRows = false;
this.dgvYP.AllowUserToDeleteRows = false;
this.dgvYP.BackgroundColor = System.Drawing.Color.White;
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle6.BackColor = System.Drawing.Color.White;
dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvYP.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
this.dgvYP.ColumnHeadersHeight = 30;
this.dgvYP.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.id,
this.Code,
this.TypeId,
this.TypeName,
this.DrugName,
this.HCode,
this.Norm,
this.DOSEPER,
this.DoseUnit,
this.Price,
this.Factroy,
this.Channel,
this.Remark});
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle7.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvYP.DefaultCellStyle = dataGridViewCellStyle7;
this.dgvYP.EnableHeadersVisualStyles = false;
this.dgvYP.Location = new System.Drawing.Point(208, 203);
this.dgvYP.Name = "dgvYP";
this.dgvYP.ReadOnly = true;
this.dgvYP.RowHeadersVisible = false;
this.dgvYP.RowTemplate.Height = 30;
this.dgvYP.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvYP.Size = new System.Drawing.Size(793, 210);
this.dgvYP.TabIndex = 17;
this.dgvYP.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvYP_CellClick);
this.dgvYP.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvYP_KeyDown);
this.dgvYP.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.dgvYP_KeyPress);
this.dgvYP.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.dgvYP_PreviewKeyDown);
//
// id
//
this.id.DataPropertyName = "Id";
this.id.HeaderText = "id";
this.id.Name = "id";
this.id.ReadOnly = true;
this.id.Visible = false;
//
// Code
//
this.Code.DataPropertyName = "Code";
this.Code.HeaderText = "Code";
this.Code.Name = "Code";
this.Code.ReadOnly = true;
this.Code.Visible = false;
//
// TypeId
//
this.TypeId.DataPropertyName = "TypeId";
this.TypeId.HeaderText = "TypeId";
this.TypeId.Name = "TypeId";
this.TypeId.ReadOnly = true;
this.TypeId.Visible = false;
//
// TypeName
//
this.TypeName.DataPropertyName = "TypeName";
this.TypeName.HeaderText = "药品类型";
this.TypeName.Name = "TypeName";
this.TypeName.ReadOnly = true;
this.TypeName.Visible = false;
//
// DrugName
//
this.DrugName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.DrugName.DataPropertyName = "Name";
this.DrugName.HeaderText = "药品名称";
this.DrugName.Name = "DrugName";
this.DrugName.ReadOnly = true;
//
// HCode
//
this.HCode.DataPropertyName = "HCode";
this.HCode.HeaderText = "HCode";
this.HCode.Name = "HCode";
this.HCode.ReadOnly = true;
this.HCode.Visible = false;
//
// Norm
//
this.Norm.DataPropertyName = "Stand";
this.Norm.HeaderText = "规格";
this.Norm.Name = "Norm";
this.Norm.ReadOnly = true;
this.Norm.Width = 210;
//
// DOSEPER
//
this.DOSEPER.DataPropertyName = "Dosage";
this.DOSEPER.HeaderText = "剂量";
this.DOSEPER.Name = "DOSEPER";
this.DOSEPER.ReadOnly = true;
this.DOSEPER.Visible = false;
this.DOSEPER.Width = 60;
//
// DoseUnit
//
this.DoseUnit.DataPropertyName = "DosageUnit";
this.DoseUnit.HeaderText = "单位";
this.DoseUnit.Name = "DoseUnit";
this.DoseUnit.ReadOnly = true;
this.DoseUnit.Width = 50;
//
// Price
//
this.Price.DataPropertyName = "Price";
this.Price.HeaderText = "价格";
this.Price.Name = "Price";
this.Price.ReadOnly = true;
//
// Factroy
//
this.Factroy.DataPropertyName = "Factory";
this.Factroy.HeaderText = "厂家";
this.Factroy.Name = "Factroy";
this.Factroy.ReadOnly = true;
this.Factroy.Width = 200;
//
// Channel
//
this.Channel.DataPropertyName = "Channel";
this.Channel.HeaderText = "途径";
this.Channel.Name = "Channel";
this.Channel.ReadOnly = true;
this.Channel.Visible = false;
//
// Remark
//
this.Remark.DataPropertyName = "Remark";
this.Remark.HeaderText = "备注";
this.Remark.Name = "Remark";
this.Remark.ReadOnly = true;
this.Remark.Visible = false;
//
// dgvDosage
//
this.dgvDosage.AllowUserToAddRows = false;
this.dgvDosage.AllowUserToDeleteRows = false;
this.dgvDosage.BackgroundColor = System.Drawing.Color.White;
this.dgvDosage.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle8.BackColor = System.Drawing.Color.White;
dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvDosage.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
this.dgvDosage.ColumnHeadersHeight = 30;
this.dgvDosage.ColumnHeadersVisible = false;
this.dgvDosage.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Dosage});
this.dgvDosage.EnableHeadersVisualStyles = false;
this.dgvDosage.Location = new System.Drawing.Point(317, 148);
this.dgvDosage.Name = "dgvDosage";
this.dgvDosage.ReadOnly = true;
this.dgvDosage.RowHeadersVisible = false;
this.dgvDosage.RowTemplate.Height = 30;
this.dgvDosage.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvDosage.Size = new System.Drawing.Size(60, 90);
this.dgvDosage.TabIndex = 18;
this.dgvDosage.Visible = false;
this.dgvDosage.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDosage_CellClick);
this.dgvDosage.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvDosage_KeyDown);
this.dgvDosage.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.dgvDosage_KeyPress);
this.dgvDosage.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.dgvDosage_PreviewKeyDown);
//
// Dosage
//
this.Dosage.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.Dosage.HeaderText = "剂量";
this.Dosage.Name = "Dosage";
this.Dosage.ReadOnly = true;
//
// imageList1
//
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
this.imageList1.Images.SetKeyName(0, "插入列.png");
this.imageList1.Images.SetKeyName(1, "未插入列 .png");
//
// frmDrugSel
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.AutoScroll = true;
this.ClientSize = new System.Drawing.Size(1195, 677);
this.Controls.Add(this.dgvDosage);
this.Controls.Add(this.dgvYP);
this.Controls.Add(this.panel1);
this.DoubleBuffered = true;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmDrugSel";
this.ShowIcon = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "用药记录";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmDrugSel_FormClosing);
this.Load += new System.EventHandler(this.frmDrugSel_Load);
this.Scroll += new System.Windows.Forms.ScrollEventHandler(this.frmDrugSel_Scroll);
this.Paint += new System.Windows.Forms.PaintEventHandler(this.frmDrugSel_Paint);
this.panel1.ResumeLayout(false);
this.panel5.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.tabDrugs)).EndInit();
this.tabDrugs.ResumeLayout(false);
this.superTabControlPanel5.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSZ)).EndInit();
this.panelleft.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.TabSelDrugs)).EndInit();
this.panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvYP)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgvDosage)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panelleft;
private System.Windows.Forms.Panel panel2;
private DevComponents.DotNetBar.ButtonX btnDelete;
private DevComponents.DotNetBar.ButtonX btnSave;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.ToolTip toolTip1;
private DevComponents.DotNetBar.SuperTabItem superTabItem2;
private DevComponents.DotNetBar.SuperTabItem superTabItem3;
private DevComponents.DotNetBar.SuperTabItem superTabItem4;
private DevComponents.DotNetBar.SuperTabControlPanel superTabControlPanel1;
private DevComponents.DotNetBar.SuperTabControlPanel superTabControlPanel2;
private DevComponents.DotNetBar.SuperTabControlPanel superTabControlPanel5;
private DevComponents.DotNetBar.SuperTabItem P2;
private DevComponents.DotNetBar.SuperTabItem P3;
private DevComponents.DotNetBar.SuperTabControl TabSelDrugs;
public DevComponents.DotNetBar.SuperTabControl tabDrugs;
private DevComponents.DotNetBar.Controls.DataGridViewX dgvDrugsSZ;
private System.Windows.Forms.DataGridView dgvYP;
private System.Windows.Forms.DataGridView dgvDosage;
private System.Windows.Forms.DataGridViewTextBoxColumn Dosage;
private System.Windows.Forms.ImageList imageList1;
private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewComboEditBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn4;
private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewTextBoxColumn8;
private System.Windows.Forms.DataGridViewTextBoxColumn id;
private System.Windows.Forms.DataGridViewTextBoxColumn Code;
private System.Windows.Forms.DataGridViewTextBoxColumn TypeId;
private System.Windows.Forms.DataGridViewTextBoxColumn TypeName;
private System.Windows.Forms.DataGridViewTextBoxColumn DrugName;
private System.Windows.Forms.DataGridViewTextBoxColumn HCode;
private System.Windows.Forms.DataGridViewTextBoxColumn Norm;
private System.Windows.Forms.DataGridViewTextBoxColumn DOSEPER;
private System.Windows.Forms.DataGridViewTextBoxColumn DoseUnit;
private System.Windows.Forms.DataGridViewTextBoxColumn Price;
private System.Windows.Forms.DataGridViewTextBoxColumn Factroy;
private System.Windows.Forms.DataGridViewTextBoxColumn Channel;
private System.Windows.Forms.DataGridViewTextBoxColumn Remark;
private DevComponents.DotNetBar.ButtonX btnTypeManager;
}
}

1245
AIMS/PublicUI/frmDrugSel.cs Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,183 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>132, 17</value>
</metadata>
<metadata name="Price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Factroy.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Channel.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Remark.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="imageList1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>957, 91</value>
</metadata>
<data name="imageList1.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAa
CAAAAk1TRnQBSQFMAgEBAgEAAcgBBgHIAQYBFAEAARQBAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFQ
AwABFAMAAQEBAAEgBgABGS4AA1UBrwOAAf4DKwH8AysB/AGZAYsBQAH9AaEBkgEAAf8BkwGCAQAB/wGW
AYcBQAH9AaMBlAEAAf8BowGUAQAB/wGjAZQBAAH/AysB/ANgAej/AA0AAZMBggEAAf8DYgH2A20B9wNt
AfcDXAH4A4AB/gGXAYYBAAH/A20B9wHsAecB5AH/AewB5wHkAf8B7AHnAeQB/wNtAfcBkwGCAQAB//8A
DQABkwGCAQAB/wNnAfIB/wL9Av8C/QL/Av0C/wL9Af8BmwGLAQAB/wMrAfwB/wL9Av8C/QL/Av0C/wL+
Af8BkwGCAQAB//8ADQABkwGCAQAB/wMrAfwBpgGVAYMB/wGmAZUBgwH/AaYBlQGDAf8BpgGVAYMB/wGV
AYQBAAH/A4AB/gGmAZUBgwH/AaYBlQGDAf8BpgGVAYMB/wGnAZUBhAH/AZMBggEAAf//AA0AAZMBggEA
Af8BkAIAAf8DXAH4A1wB+ANcAfgDYgH2AZMBggEAAf8DKwH8A1wB+ANcAfgDXAH4A00B+gGTAYIBAAH/
/wANAAGTAYIBAAH/A2AB8wH/AfwB/QL/AfwB/QL/AfwB/QL/AfwB/QH/AZsBiwEAAf8DKwH8Af8B/AH9
Av8B/AH9Av8B/AH9Av8C/gH/AZMBggEAAf//AA0AAZMBggEAAf8DYAHzAf4B+wH8Af8B/gH7AfwB/wH+
AfsB/AH/Af4B+wH8Af8BmwGLAQAB/wMrAfwB/gH7AfwB/wH+AfsB/AH/Af4B+wH8Av8C/QH/AZMBggEA
Af/0AANHAYEDRwGCA0cBggNHAYIDRwGCA0cBggGJAgAB/wNNAfoDXwH7A18B+wNfAfsDXwH7AY0CAAH/
AacBoAGQAf0DXwH7A18B+wNfAfsCqAGfAf0BkwGCAQAB//AAAwYBCANgAfMBbQFSAVEB9wNaAfUDWgH1
A1oB9QNaAfUBgQIAAf8DAAH/AV8BXgEyAfsBXwFeATIB+wFfAV4BMgH7Al8BMgH7AYECAAH/A2AB4wNe
AdMDXgHTA14B0wNdAdEDYAHU8AADCQELA00B+gJtAVEB9wHwAaIBAAH/AfABogEAAf8B8AGiAQAB/wHw
AaIBAAH/AYcCAAH/A1wB+AHwAaIBAAH/AfABogEAAf8B8AGiAQAB/wHwAaIBAAH/AwAB/wM4AVwMAAM+
AWoDDgES8AADCQELA00B+gNcAfgB6gGeAQAB/wHqAZ4BAAH/AeoBngEAAf8B6gGeAQAB/wGMAgAB/wNN
AfoB6gGeAQAB/wHqAZ4BAAH/AeoBngEAAf8B6gGeAQAB/wMAAf8DOAFcDAADOAFcA18B1fAAAwkBCwNN
AfoBagFoAUcB+QNqAfkDagH5A2oB+QNqAfkBhwIAAf8CbQFsAfcDagH5A2oB+QNqAfkDagH5AwAB/wM4
AVwMAAM1AVYDRgF98AADBwEJA00B+gGDAkAB/QFqAWgBRwH5AWoBaAFHAfkBagFoAUcB+QFqAWgBRwH5
AYECAAH/A00B+gFqAWgBRwH5AWoBaAFHAfkBagFoAUcB+QFqAWkBRgH5AYECAAH/A1kBvgNPAZkDTwGZ
A08BmQNYAbcDUQGf8AAEAgNJAYUDSQGIA0kBiANJAYgDSQGIA0kBiAGLAgAB/wGPAkAB/QOAAf4DgAH+
A4AB/gGkAY0BQAH9AYsCAAH/AaYBmQGDAf0BqAGlAZYB/QGoAaUBlgH9AagBpQGWAf0DgAH+AZMBggEA
Af//AA0AAZMBggEAAf8DYAHzAf4B+gH7Af8B/gH6AfsB/wH+AfoB+wH/Af4B+gH7Af8BmwGLAQAB/wMr
AfwB/gH6AfsB/wH+AfoB+wH/Af4B+gH7Av8C/QH/AZMBggEAAf//AA0AAZMBggEAAf8DYAHzAf4B+wH8
Af8B/gH7AfwB/wH+AfsB/AH/AfsB+AH5Af8BmwGLAQAB/wMrAfwB/gH7AfwB/wH+AfsB/AH/Af4B+wH8
Av8C/QH/AZMBggEAAf//AA0AAm0BbAH3A1wB+AOAAf4DgAH+A4AB/gOAAf4BmAGHAQAB/wMrAfwB1AHN
AcIB/wHUAc0BwgH/AdQBzQHCAf8DgAH+AZMBggEAAf//AAkAAwMBBANQAZoBkgGCAQAB/wOAAf4DgAH+
A4AB/gGTAYIBAAH/AZMBggEAAf8BjgGBAQAB/wGTAYIBAAH/AZMBggEAAf8BkwGCAQAB/wOAAf4DWgG9
/wAJAAMDAQQDEgEXAyMBMwMjATMDIwEzAyMBMwMjATMDIwEzAyMBMwMjATMDIwEzAyMBMwMjATMDFgEe
/wANAAMFAQYDBAEFAwQBBQMEAQUDBAQFAQYDBQEGAwUBBgMFAQYDBQEGAwUBBgMFAQYDAwEE8AABQgFN
AT4HAAE+AwABKAMAAVADAAEUAwABAQEAAQEFAAHwFwAD/wEAAf4BAAEPAv8HAAH+AQABDwL/BwAB/gEA
AQ8C/wcAAf4BAAEPAv8HAAH+AQABDwL/BwAB/gEAAQ8C/wcAAf4BAAEPAv8HAAGAAQABDwL/CQABDwL/
CAABAQHPAv8IAAEBAc8C/wgAAQEBzwL/CQABDwL/CQABDwL/BwAB/gEAAQ8C/wcAAf4BAAEPAv8HAAH+
AQABDwL/BwAB/AEAAQ8C/wcAAfwBAAEPAv8HAAH+AQABDwL/BwAL
</value>
</data>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>37</value>
</metadata>
</root>

View File

@ -27,7 +27,7 @@ namespace AIMS.PublicUI.UI
{
if (txtNewPassWord.Text.Trim() == txtConfirmPassWord.Text.Trim())
{
if (BPerson.Login(AIMSExtension.PublicMethod.OperatorNo, txtOldPassWord.Text))
if (BPerson.Login1(AIMSExtension.PublicMethod.OperatorNo, txtOldPassWord.Text))
{
Person PersonObj = BPerson.GetModelByNo(AIMSExtension.PublicMethod.OperatorNo);
PersonObj.PassWord = txtNewPassWord.Text;

View File

@ -66,6 +66,7 @@
<Compile Include="BLL\AutoGenerate\BApplyPersonDuty.cs" />
<Compile Include="BLL\AutoGenerate\BBasicDictionary.cs" />
<Compile Include="BLL\AutoGenerate\BBloodGasAnalysisDict.cs" />
<Compile Include="BLL\AutoGenerate\BCharges.cs" />
<Compile Include="BLL\AutoGenerate\BDepartment.cs" />
<Compile Include="BLL\AutoGenerate\BDisease.cs" />
<Compile Include="BLL\AutoGenerate\BDosageKind.cs" />
@ -133,6 +134,7 @@
<Compile Include="BLL\Extension\BApplyOperationPosition.cs" />
<Compile Include="BLL\Extension\BApplyPersonDuty.cs" />
<Compile Include="BLL\Extension\BBasicDictionary.cs" />
<Compile Include="BLL\Extension\BCharges.cs" />
<Compile Include="BLL\Extension\BDepartment.cs" />
<Compile Include="BLL\Extension\BDisease.cs" />
<Compile Include="BLL\Extension\BDosageKind.cs" />
@ -185,9 +187,11 @@
<Compile Include="BLL\Extension\BStockPile.cs" />
<Compile Include="BLL\Extension\BSysConfig.cs" />
<Compile Include="BLL\Extension\BUserPurview.cs" />
<Compile Include="DAL\AutoGenerate\DCharges.cs" />
<Compile Include="DAL\AutoGenerate\DOperationRecord.cs" />
<Compile Include="DAL\AutoGenerate\DOperationRecoverInInfo.cs" />
<Compile Include="DAL\AutoGenerate\DOperationRecoverOutInfo.cs" />
<Compile Include="DAL\Extension\DCharges.cs" />
<Compile Include="DAL\Extension\DOperationRecoverInInfo.cs" />
<Compile Include="DAL\Extension\DOperationRecoverOutInfo.cs" />
<Compile Include="Extensions\BOperationReview.cs" />
@ -332,6 +336,7 @@
<Compile Include="Model\AutoGenerate\ApplyOperationPosition.cs" />
<Compile Include="Model\AutoGenerate\ApplyPersonDuty.cs" />
<Compile Include="Model\AutoGenerate\BasicDictionary.cs" />
<Compile Include="Model\AutoGenerate\Charges.cs" />
<Compile Include="Model\AutoGenerate\Department.cs" />
<Compile Include="Extensions\DeviceCacheData.cs" />
<Compile Include="Model\AutoGenerate\Disease.cs" />
@ -389,6 +394,7 @@
<Compile Include="Model\Extension\ApplyOperationPosition.cs" />
<Compile Include="Model\Extension\ApplyPersonDuty.cs" />
<Compile Include="Model\Extension\BasicDictionary.cs" />
<Compile Include="Model\Extension\Charges.cs" />
<Compile Include="Model\Extension\Department.cs" />
<Compile Include="Model\Extension\Disease.cs" />
<Compile Include="Model\Extension\DosageKind.cs" />
@ -450,6 +456,7 @@
<Compile Include="ObjectQuery\ApplyPersonDutyMap.cs" />
<Compile Include="ObjectQuery\BasicDictionaryMap.cs" />
<Compile Include="ObjectQuery\BloodGasAnalysisDictMap.cs" />
<Compile Include="ObjectQuery\ChargesMap.cs" />
<Compile Include="ObjectQuery\DepartmentMap.cs" />
<Compile Include="ObjectQuery\DiseaseMap.cs" />
<Compile Include="ObjectQuery\DosageKindMap.cs" />

View File

@ -1,411 +0,0 @@
using DrawGraph;
using DrawGraph.AreaManage;
using DrawGraph.BoardPack;
using DrawGraph.GUtil;
using Newtonsoft.Json;
using PublicBusi;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace AIMS.EF
{
[Serializable, JsonObject(MemberSerialization.OptOut)]
public class BaseInfoBottomManage : AreaManageBase
{
private OperationRecord myOpeRecord = null;
public BaseInfoBottomManage() { }
public BaseInfoBottomManage(object _operationRecor, ZedGraphControl _zedControl, TemplateManage _template, string _name) : base(_operationRecor, _zedControl, _template, _name)
{
init();
}
public void init()
{
//自己要用的手术对象
myOpeRecord = OpeRecord as OperationRecord;
}
#region
/// <summary>
/// 鼠标点击画板
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public override void MouseDown(ZedGraphControl sender, MouseEventArgs e)
{
//if (e.Button == System.Windows.Forms.MouseButtons.Left)
//{
// MessageBox.Show(this.GetType().Name + "is Click Left Button");
//}
}
public override void MouseMove(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void MouseUp(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void MouseDoubleClick(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void KeyUp(ZedGraphControl sender, KeyEventArgs e)
{
}
public override void Bind()
{
init();
List<PackObjBase> ables = PackManage.ListPob.Where<PackObjBase>(s => s is AbleEditPackObj).ToList<PackObjBase>();
foreach (PackObjBase pack in ables)
{
AbleEditPackObj ableEdit = pack as AbleEditPackObj;
SetAbleEditView(ableEdit);
}
if (myOpeRecord.DiagnoseRemark != null && myOpeRecord.DiagnoseRemark != "")
{
string text = DocumentEntityMethod.GetDictionaryValuesById(myOpeRecord.Diagnose, "诊断");
//设置属性的值
text = text + (" (" + myOpeRecord.DiagnoseRemark + ")");
template.SetObjValue(myOpeRecord, "OperationRecord.Diagnose", text, myOpeRecord.Diagnose.ToString());
}
if (myOpeRecord.OPerationRemark != null && myOpeRecord.OPerationRemark != "")
{
string text = DocumentEntityMethod.GetDictionaryValuesById(myOpeRecord.Operation, "手术");
//设置属性的值
text = text + (" (" + myOpeRecord.OPerationRemark + ")");
template.SetObjValue(myOpeRecord, "OperationRecord.Operation", text, myOpeRecord.Operation.ToString());
}
}
/// <summary>
/// 设置可编辑组件的显示样式
/// </summary>
/// <param name="ableEdit"></param>
private void SetAbleEditView(AbleEditPackObj ableEdit)
{
string span = "";
double spanSum = Math.Round((float)(ableEdit.OneUnitCount / 12));
for (int i = 0; i < spanSum; i++)
{
span += " ";
}
string text = "", value = "";
if (ableEdit != null)
{
switch (ableEdit.ControlType)
{
case EControlType.Directory:
value = ableEdit.PackValue;
text = DocumentEntityMethod.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText);
//设置属性的值
template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value);
break;
default:
break;
}
}
}
#endregion
/// <summary>
/// 响应可编辑区域的点击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public override void editAr_Click(object sender, EventArgs e)
{
try
{
//传过来的数据是不是可编辑的
AbleEditPackObj aEdit1S = sender as AbleEditPackObj;
if (aEdit1S == null) return;
//先把所有WINFORM组件隐藏
foreach (PackObjBase pack in PackManage.ListPob)
{
AbleEditPackObj aEdit = pack as AbleEditPackObj;
if (aEdit != null)
{
aEdit.IsVisible = false;
}
}
//这句话很重要,只操作自己管理器里的组件
AbleEditPackObj aEdit1 = PackManage.ListPob.FirstOrDefault<PackObjBase>(s => s.PackTag == aEdit1S.PackTag) as AbleEditPackObj;
//指定的组件显示
if (aEdit1 != null)
{
aEdit1.IsVisible = !aEdit1.IsVisible;
Control conl = aEdit1.CControl;
conl.Leave -= new EventHandler(txt_Leave);
//根据数据源名称进行不同的事件处理
switch (aEdit1.ClassDataSourceName)
{
case "OperationRecord.OperationAnalgesiaMode":
TYZD_Click(aEdit1, e);
break;
case "OperationRecord.AnaesthesiaMethodId":
Anaes_Click(aEdit1, e);
break;
case "OperationRecord.AnesthesiaDoctor": //麻醉医生
Worker_Click(aEdit1, e, 2);
break;
case "OperationRecord.ExtracorporealCirculation": //麻醉医生
Workerqm_Click(aEdit1, e, 2);
break;
case "OperationRecord.OperationDoctor":
Worker_Click(aEdit1, e, 0);
break;
case "OperationRecord.InstrumentNurse":
Worker_Click(aEdit1, e, 1);
break;
case "OperationRecord.Assistant1":
Worker_Click(aEdit1, e, 0);
break;
case "OperationRecord.TourNurse":
Worker_Click(aEdit1, e, 1);
break;
case "OperationRecord.Diagnose": //手术诊断
opeDisease_Click(aEdit1, e);
break;
case "OperationRecord.Operation": //手术名称
ope_Click(aEdit1, e);
break;
//default:
// //在此处写日志
// aEdit1.IsVisible = !aEdit1.IsVisible;
// MessageBox.Show("没找到-" + aEdit1.ClassDataSourceName + "-属性的事件");
// break;
}
}
}
catch (Exception exp)
{
MessageBox.Show(exp.Message);
}
finally
{
}
}
#region
//通用字典分组窗体打开
private void TYZD_Click(AbleEditPackObj sender, EventArgs e, bool isRadio = false)
{
AbleEditPackObj ableEdit = sender;
if (ableEdit == null) return;
try
{
if (myOpeRecord != null)
{
////默认是字典
//frmSelectDictionary fsd = new frmSelectDictionary();
//fsd._controlName = new KeyValuePair<string, string>(ableEdit.PackValue, ableEdit.PackText);
//fsd._dictionaryName = ableEdit.ControlTitleText;
//fsd.isRadio = isRadio;
//fsd.isAddItem = false;
//fsd.ShowDialog();
//ableEdit.PackValue = fsd._controlName.Key.ToString();
//ableEdit.PackText = fsd._controlName.Value.ToString();
//string value = ableEdit.PackValue;
//string text = DocumentEntityMethod.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText);
////设置属性的值
//ableEdit.IsVisible = !ableEdit.IsVisible;
//template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value, true);
}
}
catch (Exception exp)
{
}
}
private void opeDisease_Click(AbleEditPackObj sender, EventArgs e)
{
AbleEditPackObj ableEdit = sender;
if (ableEdit == null) return;
try
{
if (myOpeRecord != null)
{
//frmSelectDisease fsi = new frmSelectDisease();
//fsi._controlName = new KeyValuePair<string, string>(ableEdit.PackValue, ableEdit.PackText);
//fsi.txtRemark.Text = myOpeRecord.DiagnoseRemark;
//fsi.ShowDialog();
//ableEdit.PackValue = fsi._controlName.Key.ToString();
//ableEdit.PackText = fsi._controlName.Value.ToString();
//string value = ableEdit.PackValue;
//string text = DocumentEntityMethod.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText);
//myOpeRecord.DiagnoseRemark = fsi.txtRemark.Text;
////设置属性的值
//if (fsi.txtRemark.Text.Trim() != "")
// text = text + (" (" + fsi.txtRemark.Text + ")");
//ableEdit.IsVisible = !ableEdit.IsVisible;
//template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value, true);
//template.SetObjValue(OpeRecord, "myOpeRecord.DiagnoseRemark", fsi.txtRemark.Text, fsi.txtRemark.Text, true);
}
}
catch (Exception exp)
{
}
}
private void ope_Click(AbleEditPackObj sender, EventArgs e)
{
AbleEditPackObj ableEdit = sender;
if (ableEdit == null) return;
try
{
if (myOpeRecord != null)
{
//frmSelectOperations frmso = new frmSelectOperations();
//frmso._controlName = new KeyValuePair<string, string>(ableEdit.PackValue, ableEdit.PackText);
//frmso.txtRemark.Text = myOpeRecord.OPerationRemark;
//frmso.ShowDialog();
//ableEdit.PackValue = frmso._controlName.Key.ToString();
//ableEdit.PackText = frmso._controlName.Value.ToString();
//string value = ableEdit.PackValue;
//string text = DocumentEntityMethod.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText);
//myOpeRecord.OPerationRemark = frmso.txtRemark.Text;
////设置属性的值
//if (frmso.txtRemark.Text.Trim() != "")
// text = text + (" (" + frmso.txtRemark.Text + ")");
//ableEdit.IsVisible = !ableEdit.IsVisible;
//template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value, true);
//template.SetObjValue(OpeRecord, "myOpeRecord.OPerationRemark", frmso.txtRemark.Text, frmso.txtRemark.Text, true);
}
}
catch (Exception exp)
{
}
}
private void Worker_Click(AbleEditPackObj sender, EventArgs e, int _workersType)
{
AbleEditPackObj ableEdit = sender;
if (ableEdit == null) return;
try
{
if (myOpeRecord != null)
{
//frmSelectWorkers_New fsw = new frmSelectWorkers_New();
//fsw._controlName = new KeyValuePair<string, string>(ableEdit.PackValue, ableEdit.PackText);
//fsw._workersType = _workersType;
//fsw.isRadio = false;
//fsw.isAddItem = false;
//fsw.ShowDialog();
//ableEdit.PackValue = fsw._controlName.Key.ToString();
//ableEdit.PackText = fsw._controlName.Value.ToString();
//string value = ableEdit.PackValue;
//string text = DocumentEntityMethod.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText);
////设置属性的值
//ableEdit.IsVisible = !ableEdit.IsVisible;
//template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value, true);
}
}
catch (Exception exp)
{
}
}
private void Workerqm_Click(AbleEditPackObj sender, EventArgs e, int _workersType)
{
AbleEditPackObj ableEdit = sender;
if (ableEdit == null) return;
try
{
if (myOpeRecord != null)
{
//KeyValuePair<string, string> _controlName = new KeyValuePair<string, string>(ableEdit.PackValue, ableEdit.PackText);
//KeyValuePair<string, string> keyValuePairs = PublicToZed.SelectWorker(ableEdit.PackTag, _controlName, _workersType, PublicMethod.Operator.DepartmentId.Value, true);
//ableEdit.PackValue = keyValuePairs.Key.ToString();
//ableEdit.PackText = keyValuePairs.Value.ToString();
//string value = ableEdit.PackValue;
//string text = DocumentEntityMethod.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText);
////设置属性的值
//ableEdit.IsVisible = !ableEdit.IsVisible;
//template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value, true);
}
}
catch (Exception exp)
{
}
}
private void Anaes_Click(AbleEditPackObj sender, EventArgs e)
{
AbleEditPackObj ableEdit = sender;
if (ableEdit == null) return;
try
{
if (myOpeRecord != null)
{
//frmSelectAnaesthesiaMethod fsi = new frmSelectAnaesthesiaMethod();
//fsi._controlName = new KeyValuePair<string, string>(ableEdit.PackValue, ableEdit.PackText);
//fsi._formName = this.Name;
//fsi._operationRecord = myOpeRecord;
//fsi.ShowDialog();
//ableEdit.PackValue = fsi._controlName.Key.ToString();
//ableEdit.PackText = fsi._controlName.Value.ToString();
//string value = ableEdit.PackValue;
//string text = DocumentEntityMethod.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText);
////设置属性的值
//ableEdit.IsVisible = !ableEdit.IsVisible;
//template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value, true);
}
}
catch (Exception exp)
{
}
}
private void txt_Leave(object sender, EventArgs e)
{
Control control = (Control)sender;
if (control == null) return;
AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj;
if (ableEdit == null) return;
try
{
string DataSourceName = ableEdit.ClassDataSourceName;
Console.WriteLine(DataSourceName);
//拿到数据源格式OperationRecord.PatientRef.Bed
bool updateOk = true;
string text = control.Text.Trim();
string value = control.Text.Trim();
if (!updateOk)
{
ableEdit.IsVisible = !ableEdit.IsVisible;
}
else
{
if (DataSourceName == "OperationRecord.Fasting")
{
foreach (Control conl in control.Controls)
{
CheckBox chBox = conl as CheckBox;
if (chBox.Checked)
{
text = "是";
value = "1";
}
else
{
text = "否";
value = "0";
}
}
}
//设置属性的值
ableEdit.IsVisible = !ableEdit.IsVisible;
template.SetObjValue(OpeRecord, DataSourceName, text, value, true);
}
}
catch (Exception ex)
{
//写日志
}
finally
{
}
}
#endregion
}
}

View File

@ -1,544 +0,0 @@
using DrawGraph;
using DrawGraph.AreaManage;
using DrawGraph.BoardPack;
using DrawGraph.GUtil;
using Newtonsoft.Json;
using PublicBusi;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace AIMS.EF
{
[Serializable, JsonObject(MemberSerialization.OptOut)]
public class BaseInfoTopManage : AreaManageBase
{
private OperationRecord myOpeRecord = null;
public BaseInfoTopManage()
{
//自己要用的手术对象
myOpeRecord = null;
}
public BaseInfoTopManage(object _operationRecor, ZedGraphControl _zedControl, TemplateManage _template, string _name) : base(_operationRecor, _zedControl, _template, _name)
{
init();
}
public void init()
{
//自己要用的手术对象
myOpeRecord = OpeRecord as OperationRecord;
}
#region
/// <summary>
/// 鼠标点击画板
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public override void MouseDown(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void MouseMove(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void MouseUp(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void MouseDoubleClick(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void KeyUp(ZedGraphControl sender, KeyEventArgs e)
{
}
public override void Bind()
{
init();
//myOpeRecord.clearAddObj(ZedControl);
setPageTime(myOpeRecord.InRoomTime.Value);
setXAxisTime(ZedControl.GraphPane, myOpeRecord.pageBegin, EVERY_PAGE_TIME_SPAN);
GetcurrentPage();
#region
if (myOpeRecord.InRoomTime != null)
{
template.SetObjValue(myOpeRecord, "OperationRecord.InRoomTime", myOpeRecord.InRoomTime.Value.ToString("yyyy-MM-dd"), myOpeRecord.InRoomTime.ToString());
}
if (myOpeRecord.currentPage != 0)
{
template.SetObjValue(myOpeRecord, "OperationRecord.currentPage", myOpeRecord.currentPage.ToString(), myOpeRecord.currentPage.ToString());
}
if (myOpeRecord.pageCount != 0)
{
template.SetObjValue(myOpeRecord, "OperationRecord.pageCount", myOpeRecord.pageCount.ToString(), myOpeRecord.pageCount.ToString());
}
#endregion
List<PackObjBase> ables = PackManage.ListPob.Where<PackObjBase>(s => s is AbleEditPackObj).ToList<PackObjBase>();
foreach (PackObjBase pack in ables)
{
AbleEditPackObj ableEdit = pack as AbleEditPackObj;
SetAbleEditView(ableEdit);
}
//if (myOpeRecord.PatientRef.Weight != null)
//{
// template.SetObjValue(myOpeRecord, "OperationRecord.PatientRef.Weight", Convert.ToInt32(myOpeRecord.PatientRef.Weight).ToString(), myOpeRecord.PatientRef.Weight.ToString());
//}
//if (myOpeRecord.PatientRef.Height != null)
//{
// template.SetObjValue(myOpeRecord, "OperationRecord.PatientRef.Height", Convert.ToInt32(myOpeRecord.PatientRef.Height).ToString(), myOpeRecord.PatientRef.Height.ToString());
//}
if (myOpeRecord.Fasting == 0)
{
template.SetObjValue(myOpeRecord, "OperationRecord.Fasting", "否", myOpeRecord.Fasting.ToString());
}
if (myOpeRecord.Fasting == 1)
{
template.SetObjValue(myOpeRecord, "OperationRecord.Fasting", "是", myOpeRecord.Fasting.ToString());
}
}
/// <summary>
/// 设置可编辑组件的显示样式
/// </summary>
/// <param name="ableEdit"></param>
private void SetAbleEditView(AbleEditPackObj ableEdit)
{
string span = "";
double spanSum = Math.Round((float)(ableEdit.OneUnitCount / 12));
for (int i = 0; i < spanSum; i++)
{
span += " ";
}
string text = "", value = "";
if (ableEdit != null)
{
switch (ableEdit.ControlType)
{
case EControlType.Directory:
value = ableEdit.PackValue;
text = DocumentEntityMethod.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText);
//设置属性的值
template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value);
break;
default:
break;
}
}
}
/// <summary>
/// 初始画的后置方法
/// </summary>
public override void FollowUpMethod()
{
init();
}
#endregion
#region
/// <summary>
/// 设置页面的开始时间和结束时间
/// </summary>
/// <param name="_operationRecord">手术信息对象</param>
private void setPageTime(DateTime begin)
{
if (myOpeRecord.pageCount == 0)
{
myOpeRecord.pageCount = 1;
myOpeRecord.sharpBegin = getSharpTime(begin);
myOpeRecord.pageBegin = getPageBegin(begin, collectInterval, ref EVERY_PAGE_TIME_SPAN);
myOpeRecord.lastPageBegin = myOpeRecord.pageBegin.AddHours(EVERY_PAGE_TIME_SPAN / 60);
}
}
/// <summary>
/// 根据采集间隔,确定页面时间跨度和页面开始时间
/// </summary>
/// <param name="curTime">给定时间(文本)</param>
/// <param name="collectInterval">采集间隔(分钟)</param>
/// <param name="timeSpan">页面时间跨度</param>
/// <returns>页面显示的开始时间</returns>
private DateTime getPageBegin(DateTime dt, double collectInterval, ref double timeSpan)
{
try
{
DateTime pageBegin = dt.Date.AddHours(dt.Hour);
int ci = (int)(collectInterval * 60);
if (ci <= 30)
{
if (dt.Minute >= 30)
{
pageBegin = pageBegin.AddMinutes(30);
}
timeSpan = 30;
}
else if (ci <= 60)
{
timeSpan = 60;
}
else
{
timeSpan = 240;
TimeSpan ts = pageBegin - myOpeRecord.sharpBegin;
int h = ts.Hours;
h /= 4;
pageBegin = myOpeRecord.sharpBegin.AddHours(h * 4);
}
return pageBegin;
}
catch (Exception exp)
{
throw exp;
}
}
/// <summary>
/// 获取系统的整点时刻
/// </summary>
/// <returns></returns>
private DateTime getSharpTime(DateTime dt)
{
int ci = (int)dt.Minute;
if (ci >= 50)
{
dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:50:00"));
}
else if (ci >= 40)
{
dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:40:00"));
}
else if (ci >= 30)
{
dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:30:00"));
}
else if (ci >= 20)
{
dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:20:00"));
}
else if (ci >= 10)
{
dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:10:00"));
}
else if (ci < 10)
{
dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:00:00"));
}
//if (ci >= 30)
//{
// dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:30:00"));
//}
//else if (ci < 30)
//{
// dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:00:00"));
//}
return dt;
}
private void setXAxisTime(GraphPane myPane, DateTime begin, double pageSpan)
{
myPane.XAxis.Scale.Min = new XDate(begin);
myPane.X2Axis.Scale.Min = myPane.XAxis.Scale.Min;
myPane.XAxis.Scale.Max = new XDate(begin.AddMinutes(pageSpan));
myPane.X2Axis.Scale.Max = myPane.XAxis.Scale.Max;
}
#endregion
/// <summary>
/// 响应可编辑区域的点击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public override void editAr_Click(object sender, EventArgs e)
{
try
{
//传过来的数据是不是可编辑的
AbleEditPackObj aEdit1S = sender as AbleEditPackObj;
if (aEdit1S == null) return;
//先把所有WINFORM组件隐藏
foreach (PackObjBase pack in PackManage.ListPob)
{
AbleEditPackObj aEdit = pack as AbleEditPackObj;
if (aEdit != null)
{
aEdit.IsVisible = false;
}
}
//这句话很重要,只操作自己管理器里的组件
AbleEditPackObj aEdit1 = PackManage.ListPob.FirstOrDefault<PackObjBase>(s => s.PackTag == aEdit1S.PackTag) as AbleEditPackObj;
//指定的组件显示
if (aEdit1 != null)
{
aEdit1.IsVisible = !aEdit1.IsVisible;
Control conl = aEdit1.CControl;
conl.Leave -= new EventHandler(txt_Leave);
conl.DoubleClick -= Conl_DoubleClick;
//根据数据源名称进行不同的事件处理
switch (aEdit1.ClassDataSourceName)
{
case "OperationRecord.PatientRef.Height":
conl.Leave += new EventHandler(txt_Leave);
break;
case "OperationRecord.PatientRef.Weight": //体重
conl.Leave += new EventHandler(txt_Leave);
break;
case "OperationRecord.PatientRef.BloodType":
conl.Leave += new EventHandler(txt_Leave);
break;
case "OperationRecord.AnaesthesiaMethodId":
Anaes_Click(aEdit1, e);
break;
case "OperationRecord.ASALevel": //ASA分级
TYZD_Click(aEdit1, e, true);
break;
case "OperationRecord.OperationSiteId": //手术体位
TYZD_Click(aEdit1, e);
break;
case "OperationRecord.Fasting": //术前禁食
conl.Leave += new EventHandler(txt_Leave);
break;
case "OperationRecord.SpecialCase": //特殊情况
//TYZD_Click(aEdit1, e);
conl.Leave += new EventHandler(txt_Leave);
conl.DoubleClick += Conl_DoubleClick;
break;
case "OperationRecord.AnalgesiaModeMessage":
conl.Leave += new EventHandler(txt_Leave);
break;
case "OperationRecord.OperationApplyRef.Diagnose": //手术诊断
opeDisease_Click(aEdit1, e);
break;
case "OperationRecord.OperationApplyRef.Operation": //手术名称
ope_Click(aEdit1, e);
break;
//default:
// //在此处写日志
// aEdit1.IsVisible = !aEdit1.IsVisible;
// MessageBox.Show("没找到-" + aEdit1.ClassDataSourceName + "-属性的事件");
// break;
}
}
}
catch (Exception exp)
{
MessageBox.Show(exp.Message);
}
finally
{
}
}
private void Conl_DoubleClick(object sender, EventArgs e)
{
//frmSelectDictionary fsd = new frmSelectDictionary();
//fsd._control = sender as TextBox;
//fsd._dictionaryName = "特殊情况";
//fsd.isRadio = false;
//fsd.isShowText = true;
//fsd.ShowDialog();
}
#region
//通用字典分组窗体打开
private void TYZD_Click(AbleEditPackObj sender, EventArgs e, bool isRadio = false)
{
AbleEditPackObj ableEdit = sender;
if (ableEdit == null) return;
try
{
if (myOpeRecord != null)
{
////默认是字典
//frmSelectDictionary fsd = new frmSelectDictionary();
//fsd._controlName = new KeyValuePair<string, string>(ableEdit.PackValue, ableEdit.PackText);
//fsd._dictionaryName = ableEdit.ControlTitleText;
//fsd.isRadio = isRadio;
//fsd.isAddItem = false;
//fsd.ShowDialog();
//ableEdit.PackValue = fsd._controlName.Key.ToString();
//ableEdit.PackText = fsd._controlName.Value.ToString();
//string value = ableEdit.PackValue;
//string text = DocumentEntityMethod.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText);
////设置属性的值
//ableEdit.IsVisible = !ableEdit.IsVisible;
//template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value, true);
}
}
catch (Exception exp)
{
}
}
private void opeDisease_Click(AbleEditPackObj sender, EventArgs e)
{
AbleEditPackObj ableEdit = sender;
if (ableEdit == null) return;
try
{
if (myOpeRecord != null)
{
//frmSelectDisease fsi = new frmSelectDisease();
//fsi._controlName = new KeyValuePair<string, string>(ableEdit.PackValue, ableEdit.PackText);
//fsi.txtRemark.Text = myOpeRecord.OperationApplyRef.DiagnoseRemark;
//fsi.ShowDialog();
//ableEdit.PackValue = fsi._controlName.Key.ToString();
//ableEdit.PackText = fsi._controlName.Value.ToString();
//string value = ableEdit.PackValue;
//string text = DocumentEntityMethod.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText);
//myOpeRecord.OperationApplyRef.DiagnoseRemark = fsi.txtRemark.Text;
////设置属性的值
//if (fsi.txtRemark.Text.Trim() != "")
// text = text + (" (" + fsi.txtRemark.Text + ")");
//ableEdit.IsVisible = !ableEdit.IsVisible;
//template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value, true);
//template.SetObjValue(OpeRecord, "myOpeRecord.OperationApplyRef.DiagnoseRemark", fsi.txtRemark.Text, fsi.txtRemark.Text, true);
}
}
catch (Exception exp)
{
}
}
private void Anaes_Click(AbleEditPackObj sender, EventArgs e)
{
AbleEditPackObj ableEdit = sender;
if (ableEdit == null) return;
try
{
if (myOpeRecord != null)
{
//frmSelectAnaesthesiaMethod fsi = new frmSelectAnaesthesiaMethod();
//fsi._controlName = new KeyValuePair<string, string>(ableEdit.PackValue, ableEdit.PackText);
//fsi._formName = this.Name;
//fsi._operationRecord = myOpeRecord;
//fsi.ShowDialog();
//ableEdit.PackValue = fsi._controlName.Key.ToString();
//ableEdit.PackText = fsi._controlName.Value.ToString();
//string value = ableEdit.PackValue;
//string text = DocumentEntityMethod.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText);
////设置属性的值
//ableEdit.IsVisible = !ableEdit.IsVisible;
//template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value, true);
}
}
catch (Exception exp)
{
}
}
private void ope_Click(AbleEditPackObj sender, EventArgs e)
{
AbleEditPackObj ableEdit = sender;
if (ableEdit == null) return;
try
{
if (myOpeRecord != null)
{
//frmSelectOperations frmso = new frmSelectOperations();
//frmso._controlName = new KeyValuePair<string, string>(ableEdit.PackValue, ableEdit.PackText);
//frmso.txtRemark.Text = myOpeRecord.OperationApplyRef.OPerationRemark;
//frmso.ShowDialog();
//ableEdit.PackValue = frmso._controlName.Key.ToString();
//ableEdit.PackText = frmso._controlName.Value.ToString();
//string value = ableEdit.PackValue;
//string text = DocumentEntityMethod.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText);
//myOpeRecord.OperationApplyRef.OPerationRemark = frmso.txtRemark.Text;
////设置属性的值
//if (frmso.txtRemark.Text.Trim() != "")
// text = text + (" (" + frmso.txtRemark.Text + ")");
//ableEdit.IsVisible = !ableEdit.IsVisible;
//template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value, true);
//template.SetObjValue(OpeRecord, "myOpeRecord.OperationApplyRef.OPerationRemark", frmso.txtRemark.Text, frmso.txtRemark.Text, true);
}
}
catch (Exception exp)
{
}
}
public string UpdateInformation(string colunm, TextBox value, int STATE)
{
if (value.Text == "")
{
//BOperationRecord.Update(colunm + "= null where Id=@id", new ParameterList("@id", myOpeRecord.Id));
return null;
}
else
{
//BOperationRecord.Update(colunm + "=@colunmvalue where Id=@id", new ParameterList("@colunmvalue", STATE == 0 ? value.Text.ToString() : value.Tag.ToString(), "@id", _operationRecord.Id));
return STATE == 0 ? value.Text.ToString() : value.Tag.ToString();
}
}
private void txt_Leave(object sender, EventArgs e)
{
Control control = (Control)sender;
if (control == null) return;
AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj;
if (ableEdit == null) return;
try
{
string DataSourceName = ableEdit.ClassDataSourceName;
Console.WriteLine(DataSourceName);
//拿到数据源格式OperationRecord.PatientRef.Bed
bool updateOk = true;
string text = control.Text.Trim();
string value = control.Text.Trim();
if (!updateOk)
{
ableEdit.IsVisible = !ableEdit.IsVisible;
}
else
{
if (DataSourceName == "OperationRecord.Fasting")
{
foreach (Control conl in control.Controls)
{
CheckBox chBox = conl as CheckBox;
if (chBox.Checked)
{
text = "是";
value = "1";
}
else
{
text = "否";
value = "0";
}
}
}
//设置属性的值
ableEdit.IsVisible = !ableEdit.IsVisible;
template.SetObjValue(OpeRecord, DataSourceName, text, value, true);
}
}
catch (Exception ex)
{
throw;
}
finally
{
}
}
#endregion
//得到当前页数
private void GetcurrentPage()
{
DateTime EndTime = DateTime.Now;// BOperationRecord.getOpeMaxTime(myOpeRecord);
EndTime = DateTime.Parse(EndTime.ToString("yyyy-MM-dd HH:mm"));
TimeSpan tsp = (TimeSpan)(EndTime - myOpeRecord.sharpBegin);
double db = tsp.TotalHours / 4;
if (db == ((int)tsp.TotalHours / 4))
myOpeRecord.currentPage = (int)db;
else
myOpeRecord.currentPage = (int)db + 1;
if (myOpeRecord.currentPage == 0) myOpeRecord.currentPage = 1;
}
}
}

View File

@ -1,159 +0,0 @@
using DrawGraph;
using DrawGraph.AreaManage;
using DrawGraph.BoardPack;
using DrawGraph.GUtil;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace AIMS.EF
{
[Serializable, JsonObject(MemberSerialization.OptOut)]
public class DrugsManage : AreaManageBase
{
/// <summary>
/// 药品区域
/// </summary>
public RectangleFramePackObj drugPpack;
public LinePackObj H3pack;
public LinePackObj H5pack;
public LinesPackObj lines;
public int RowsCount;
/// <summary>
/// 当前手术对象
/// </summary>
private OperationRecord myOpeRecord = null;
#region
public DrugsManage()
{ init(); }
public DrugsManage(object _operationRecor, ZedGraphControl _zedControl, TemplateManage _template, string _name) : base(_operationRecor, _zedControl, _template, _name)
{ init(); }
public void init()
{
//自己要用的手术对象
myOpeRecord = OpeRecord as OperationRecord;
}
/// <summary>
/// 初始画的后置方法
/// </summary>
public override void FollowUpMethod()
{
lines = template.GetPackObjectOTag<LinesPackObj>("DrugsManage_LinesPackObj_5");
RowsCount =Convert.ToInt32(lines.XPageSpan / lines.XMajorGridStep);
H3pack = template.GetPackObjectOTag<LinePackObj>("DrugsManage_LinePackObj_6");
H5pack = template.GetPackObjectOTag<LinePackObj>("DrugsManage_LinePackObj_9");
drugPpack = template.GetPackObjectOTag<RectangleFramePackObj>("DrugsManage_RectangleFramePackObj_2");
}
#endregion
#region
/// <summary>
/// 鼠标点击画板
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public override void MouseDown(ZedGraphControl sender, MouseEventArgs e)
{
//if (e.Button == System.Windows.Forms.MouseButtons.Left)
//{
// MessageBox.Show(this.GetType().Name + "is Click Left Button");
//}
}
public override void MouseMove(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void MouseUp(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void MouseDoubleClick(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void KeyUp(ZedGraphControl sender, KeyEventArgs e)
{
}
#endregion
#region
public override void Bind()
{
init();
DrawDrug();
}
/// <summary>
/// 画加药
/// </summary>
private void DrawDrug()
{
//try
//{
// foreach (DrugsRecord temp in myOpeRecord.DrugsRecordList)
// {
// if (!isSapDrugs(temp))
// {
// temp.clearAddObj(ZedControl);
// }
// }
// reDrawDrug();
//}
//catch (Exception exp)
//{
// PublicMethod.WriteLog(exp);
//}
}
#endregion
#region
private bool IfInTimeExist(DateTime Begin, DateTime End)
{
DateTime lastime = myOpeRecord.lastPageBegin.AddSeconds(59);
bool b = false;
if (End == null)
{
if (Begin > myOpeRecord.pageBegin && Begin < lastime)
{
b = true;
}
}
else
{
if (Begin >= myOpeRecord.pageBegin && Begin <= lastime)
{
b = true;
}
else if (End >= myOpeRecord.pageBegin && End <= lastime)
{
b = true;
}
else if (Begin < myOpeRecord.pageBegin && End > lastime)
{
b = true;
}
}
return b;
}
/// <summary>
/// 根据顶部加药序号确定数值生命体征的纵向位置以1为单位
/// </summary>
/// <param name="index"></param>
/// <returns></returns>
public double getYPositionByListIndex(double index, double yTop, double yBottom, int rowCount)
{
double heightT = ZedControl.Height * (yBottom - yTop);
double setpTemp = heightT / rowCount;
//求一格在实际高度中的百分比
double bfb = (setpTemp / heightT);
//两线之间度*百分比得到一格的百分比高度
double ygBFB = (yBottom - yTop) * bfb;
double y = ygBFB * index;
return y;
}
#endregion
}
}

View File

@ -1,265 +0,0 @@
using DrawGraph;
using DrawGraph.AreaManage;
using DrawGraph.BoardPack;
using DrawGraph.GUtil;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace AIMS.EF
{
public class IconManage : AreaManageBase
{
public RectangleFramePackObj IconPpack;
public LinePackObj H5pack;
/// <summary>
/// 当前手术对象
/// </summary>
private OperationRecord myOpeRecord = null;
private XmlUtil xmlOpe = new XmlUtil("");
private string EVENTPARAMPATH = "main/eventParams/eventParam";
public IconManage() { }
public IconManage(object _operationRecor, ZedGraphControl _zedControl, TemplateManage _template, string _name) : base(_operationRecor, _zedControl, _template, _name)
{
init();
}
public void init()
{
//自己要用的手术对象
myOpeRecord = OpeRecord as OperationRecord;
}
/// <summary>
/// 初始画的后置方法
/// </summary>
public override void FollowUpMethod()
{
H5pack = template.GetPackObjectOTag<LinePackObj>("IconManage_LinePackObj_5");
IconPpack = template.GetPackObjectOTag<RectangleFramePackObj>("IconManage_RectangleFramePackObj_2");
}
#region
/// <summary>
/// 鼠标点击画板
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public override void MouseDown(ZedGraphControl sender, MouseEventArgs e)
{
//if (e.Button == System.Windows.Forms.MouseButtons.Left)
//{
// MessageBox.Show(this.GetType().Name + "is Click Left Button");
//}
}
public override void MouseMove(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void MouseUp(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void MouseDoubleClick(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void KeyUp(ZedGraphControl sender, KeyEventArgs e)
{
}
#endregion
public override void Bind()
{
init();
//DrawEvent();
//MessageBox.Show("RemarkManage重新绑定");
}
#region
/// <summary>
/// 格式化字符串长度
/// </summary>
/// <param name="str">输入的字符串</param>
/// <param name="n">截取的长度</param>
/// <returns>被截取完的字符串</returns>
public static List<string> stringformat(string str, int n)
{
///
///格式化字符串长度,超出部分显示省略号,区分汉字跟字母。汉字2个字节字母数字一个字节
///
List<string> strList = new List<string>();
string temp = string.Empty;
if (System.Text.Encoding.Default.GetByteCount(str) <= n)//如果长度比需要的长度n小,返回原字符串
{
strList.Add(str);
}
else
{
int t = 0;
char[] q = str.ToCharArray();
for (int i = 0; i <= q.Length; i++)
{
if (t > n)
{
strList.Add(temp);
temp = "";
t = 0;
}
if (i == q.Length)// - 1
{
strList.Add(temp);
break;
}
//判断是否汉字:
if ((int)q[i] >= 0x4E00 && (int)q[i] <= 0x9FA5)
{
temp += q[i];
t += 2;
}
//判断半角如下:
else if (q[i].ToString().Length == Encoding.Default.GetByteCount(q[i].ToString()))
{
temp += q[i];
t++;
}
//判断全角如下:
else if (2 * q[i].ToString().Length == Encoding.Default.GetByteCount(q[i].ToString()))
{
temp += q[i];
t += 2;
}
else
{
temp += q[i];
t++;
}
}
}
return strList;
}
#endregion
public bool isCgtime(string key, DateTime time)
{
bool b = false;
try
{
if (key == "自主呼吸")
{
if (myOpeRecord.InCGTime != null && myOpeRecord.OutCGTime != null)
{
if (time > myOpeRecord.InCGTime && time < myOpeRecord.OutCGTime)
b = true;
}
if (myOpeRecord.InCGTime != null && myOpeRecord.OutCGTime == null)
{
if (time > myOpeRecord.InCGTime)
b = true;
}
}
else
{
b = false;
}
}
catch (Exception ex)
{
throw;
}
return b;
}
private bool IfInTimeExist(DateTime Begin, DateTime End)
{
DateTime lastime = myOpeRecord.lastPageBegin.AddSeconds(59);
bool b = false;
if (End == null)
{
if (Begin > myOpeRecord.pageBegin && Begin < lastime)
{
b = true;
}
}
else
{
if (Begin >= myOpeRecord.pageBegin && Begin <= lastime)
{
b = true;
}
else if (End >= myOpeRecord.pageBegin && End <= lastime)
{
b = true;
}
else if (Begin < myOpeRecord.pageBegin && End > lastime)
{
b = true;
}
}
return b;
}
private DateTime GetInsertTime(DateTime pdTemp, bool IsInRToomTime = false)
{
DateTime insTime = pdTemp.Date.AddHours(pdTemp.Hour).AddMinutes(pdTemp.Minute);
if (collectInterval == 5)
{
int minute = pdTemp.Minute % 5;//计算5的整数分钟
if (minute >= 3)
insTime = insTime.AddMinutes(5 - minute);
else if (minute != 0 && IsInRToomTime == true)
insTime = insTime.AddMinutes(5 - minute);
else
insTime = insTime.AddMinutes(0 - minute);
}
else if (collectInterval == 10)
{
double minute = pdTemp.Minute % 10;//计算5的整数分钟
if (minute >= 5)
insTime = insTime.AddMinutes(10 - minute);
else
insTime = insTime.AddMinutes(0 - minute);
}
return insTime;
}
/// <summary>
/// 根据顶部加药序号确定数值生命体征的纵向位置以1为单位
/// </summary>
/// <param name="index"></param>
/// <returns></returns>
public double getYPositionByListIndex(double index, double yTop, double yBottom, int rowCount)
{
double heightT = ZedControl.Height * (yBottom - yTop);
double setpTemp = heightT / rowCount;
//求一格在实际高度中的百分比
double bfb = (setpTemp / heightT);
//两线之间度*百分比得到一格的百分比高度
double ygBFB = (yBottom - yTop) * bfb;
double y = ygBFB * index;
return y;
}
/// <summary>
/// 根据生理参数名称获取对应的目标值
/// </summary>
/// <param name="strPath">生理参数XML路径</param>
/// <param name="typeValue">生理参数名称</param>
/// <param name="targetName">目标生理参数项目</param>
/// <returns>生理参数项的值</returns>
private string getSiblingName(string strPath, string typeValue, string targetName)
{
string result = "";
try
{
result = xmlOpe.GetNode("name", typeValue, strPath, targetName);
}
catch (Exception)
{
throw new Exception("读取XML发生错误");
}
return result;
}
}
}

View File

@ -1,55 +0,0 @@
using DrawGraph;
using DrawGraph.AreaManage;
using DrawGraph.BoardPack;
using DrawGraph.GUtil;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace AIMS.EF
{
/// <summary>
/// 监测管理类
/// </summary>
public class MonitorManage : AreaManageBase
{
public MonitorManage() { }
public MonitorManage(object _operationRecor, ZedGraphControl _zedControl, TemplateManage _template, string _name) : base(_operationRecor, _zedControl,_template , _name)
{ }
#region
/// <summary>
/// 鼠标点击画板
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public override void MouseDown(ZedGraphControl sender, MouseEventArgs e)
{
//if (e.Button == System.Windows.Forms.MouseButtons.Left)
//{
// MessageBox.Show(this.GetType().Name + "is Click Left Button");
//}
}
public override void MouseMove(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void MouseUp(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void MouseDoubleClick(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void KeyUp(ZedGraphControl sender, KeyEventArgs e)
{
}
public override void Bind()
{
//MessageBox.Show(this.GetType() + "重新绑定");
}
#endregion
}
}

View File

@ -1,252 +0,0 @@
using DrawGraph;
using DrawGraph.AreaManage;
using DrawGraph.BoardPack;
using DrawGraph.GUtil;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace AIMS.EF
{
public class RemarkManage : AreaManageBase
{
public RectangleFramePackObj remarkPpack;
public LinePackObj H3pack;
public LinePackObj H4pack;
public LinePackObj H5pack;
public LinePackObj H6pack;
/// <summary>
/// 当前手术对象
/// </summary>
private OperationRecord myOpeRecord = null;
#region
public RemarkManage() { }
public RemarkManage(object _operationRecor, ZedGraphControl _zedControl, TemplateManage _template, string _name) : base(_operationRecor, _zedControl, _template, _name)
{ init(); }
public void init()
{
//自己要用的手术对象
myOpeRecord = OpeRecord as OperationRecord;
}
/// <summary>
/// 初始画的后置方法
/// </summary>
public override void FollowUpMethod()
{
H3pack = template.GetPackObjectOTag<LinePackObj>("RemarkManage_LinePackObj_4");
H4pack = template.GetPackObjectOTag<LinePackObj>("RemarkManage_LinePackObj_5");
H5pack = template.GetPackObjectOTag<LinePackObj>("RemarkManage_LinePackObj_8");
H6pack = template.GetPackObjectOTag<LinePackObj>("RemarkManage_LinePackObj_9");
remarkPpack = template.GetPackObjectOTag<RectangleFramePackObj>("RemarkManage_RectangleFramePackObj_2");
}
#endregion
#region
/// <summary>
/// 鼠标点击画板
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public override void MouseDown(ZedGraphControl sender, MouseEventArgs e)
{
//if (e.Button == System.Windows.Forms.MouseButtons.Left)
//{
// MessageBox.Show(this.GetType().Name + "is Click Left Button");
//}
}
public override void MouseMove(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void MouseUp(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void MouseDoubleClick(ZedGraphControl sender, MouseEventArgs e)
{
}
public override void KeyUp(ZedGraphControl sender, KeyEventArgs e)
{
}
#endregion
public override void Bind()
{
init();
//DrawRemarkDate();
}
public static List<string> stringformat(string str, int n)
{
///
///格式化字符串长度,超出部分显示省略号,区分汉字跟字母。汉字2个字节字母数字一个字节
///
List<string> strList = new List<string>();
string temp = string.Empty;
if (System.Text.Encoding.Default.GetByteCount(str) <= n)//如果长度比需要的长度n小,返回原字符串
{
strList.Add(str);
}
else
{
int t = 0;
char[] q = str.ToCharArray();
for (int i = 0; i <= q.Length; i++)
{
if (t > n)
{
strList.Add(temp);
temp = "";
t = 0;
}
if (i == q.Length)// - 1
{
strList.Add(temp);
break;
}
//判断是否汉字:
if ((int)q[i] >= 0x4E00 && (int)q[i] <= 0x9FA5)
{
temp += q[i];
t += 2;
}
//判断半角如下:
else if (q[i].ToString().Length == Encoding.Default.GetByteCount(q[i].ToString()))
{
temp += q[i];
t++;
}
//判断全角如下:
else if (2 * q[i].ToString().Length == Encoding.Default.GetByteCount(q[i].ToString()))
{
temp += q[i];
t += 2;
}
else
{
temp += q[i];
t++;
}
}
}
return strList;
}
/// <summary>
/// 根据顶部加药序号确定加药的纵向位置以1为单位
/// </summary>
/// <param name="index"></param>
/// <returns></returns>
public double getYPositionByListIndex(double index, double yTop, double yBottom, int rowCount)
{
double heightT = ZedControl.Height * (yBottom - yTop);
double setpTemp = heightT / rowCount;
//求一格在实际高度中的百分比
double bfb = (setpTemp / heightT);
//两线之间度*百分比得到一格的百分比高度
double ygBFB = (yBottom - yTop) * bfb;
double y = ygBFB * index;
return y;
}
/// <summary>
/// 响应可编辑区域的点击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public override void editAr_Click(object sender, EventArgs e)
{
try
{
//传过来的数据是不是可编辑的
AbleEditPackObj aEdit1S = sender as AbleEditPackObj;
if (aEdit1S == null) return;
//先把所有WINFORM组件隐藏
foreach (PackObjBase pack in PackManage.ListPob)
{
AbleEditPackObj aEdit = pack as AbleEditPackObj;
if (aEdit != null)
{
aEdit.IsVisible = false;
}
}
//这句话很重要,只操作自己管理器里的组件
AbleEditPackObj aEdit1 = PackManage.ListPob.FirstOrDefault<PackObjBase>(s => s.PackTag == aEdit1S.PackTag) as AbleEditPackObj;
//指定的组件显示
if (aEdit1 != null)
{
aEdit1.IsVisible = !aEdit1.IsVisible;
Control conl = aEdit1.CControl;
conl.Leave -= new EventHandler(txt_Leave);
conl.DoubleClick -= Conl_DoubleClick;
//根据数据源名称进行不同的事件处理
switch (aEdit1.ClassDataSourceName)
{
case "OperationRecord.Remark": //特殊情况
//TYZD_Click(aEdit1, e);
conl.Leave += new EventHandler(txt_Leave);
conl.DoubleClick += Conl_DoubleClick;
break;
}
}
}
catch (Exception exp)
{
MessageBox.Show(exp.Message);
}
finally
{
}
}
private void Conl_DoubleClick(object sender, EventArgs e)
{
//frmSelectDictionary fsd = new frmSelectDictionary();
//fsd._control = sender as TextBox;
//fsd._dictionaryName = "特殊情况";
//fsd.isRadio = false;
//fsd.isShowText = true;
//fsd.ShowDialog();
}
private void txt_Leave(object sender, EventArgs e)
{
Control control = (Control)sender;
if (control == null) return;
AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj;
if (ableEdit == null) return;
try
{
string DataSourceName = ableEdit.ClassDataSourceName;
Console.WriteLine(DataSourceName);
//拿到数据源格式OperationRecord.PatientRef.Bed
bool updateOk = true;
string text = control.Text.Trim();
string value = control.Text.Trim();
if (!updateOk)
{
ableEdit.IsVisible = !ableEdit.IsVisible;
}
else
{
//设置属性的值
ableEdit.IsVisible = !ableEdit.IsVisible;
template.SetObjValue(OpeRecord, DataSourceName, text, value, true);
}
}
catch (Exception ex)
{
}
finally
{
}
}
}
}

View File

@ -0,0 +1,160 @@
using System;
using AIMSDAL;
using AIMSModel;
using System.Collections;
using System.Collections.Generic;
namespace AIMSBLL
{
public partial class BCharges
{
#region
/// <summary>
/// 插入实体
/// </summary>
/// <param name="charges">实体类对象</param>
/// <returns>标识列值或影响的记录行数</returns>
public static int Insert(Charges charges)
{
return DCharges.Insert(charges);
}
#endregion
#region
/// <summary>
/// 删除实体
/// </summary>
/// <param name="charges">实体类对象</param>
/// <returns>影响的记录行数</returns>
public static int Delete(Charges charges)
{
return DCharges.Delete(charges);
}
/// <summary>
/// 根据对象查询语句删除
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
public static int Delete(string oql, ParameterList parameters)
{
return DCharges.Delete(oql,parameters);
}
#endregion
#region
/// <summary>
/// 更新实体
/// </summary>
/// <param name="charges">实体类对象</param>
/// <returns>影响的记录行数</returns>
public static int Update(Charges charges)
{
return DCharges.Update(charges);
}
/// <summary>
/// 根据对象查询语句更新实体
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
public static int Update(string oql, ParameterList parameters)
{
return DCharges.Update(oql,parameters);
}
#endregion
#region
/// <summary>
/// \查询实体集合
/// </summary>
/// <returns>实体类对象集合</returns>
public static List<Charges> Select()
{
return DCharges.Select();
}
/// <summary>
/// 递归查询实体集合
/// </summary>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
public static List<Charges> Select(RecursiveType recursiveType, int recursiveDepth)
{
return DCharges.Select(recursiveType, recursiveDepth);
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体类对象集合</returns>
public static List<Charges> Select(string oql, ParameterList parameters)
{
return DCharges.Select(oql, parameters);
}
/// <summary>
/// 根据对象查询语句递归查询实体集合
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
public static List<Charges> Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth)
{
return DCharges.Select(oql, parameters, recursiveType, recursiveDepth);
}
#endregion
#region
/// <summary>
/// 更据对象查询语句查询单个实体
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体对象</returns>
public static Charges SelectSingle(string oql, ParameterList parameters)
{
return DCharges.SelectSingle(oql, parameters);
}
/// <summary>
/// 更据对象查询语句递归查询单个实体
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
public static Charges SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
return DCharges.SelectSingle(oql, parameters, recursiveType, recursiveDepth);
}
/// <summary>
/// 按主键字段查询特定实体
/// </summary>
/// <param name="id">主键值</param>
/// <returns>实体类对象</returns>
public static Charges SelectSingle(int? id)
{
return DCharges.SelectSingle(id);
}
/// <summary>
/// 更据主键递归查询单个实体
/// </summary>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
public static Charges SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth)
{
return DCharges.SelectSingle(id, recursiveType, recursiveDepth);
}
#endregion
}
}

View File

@ -0,0 +1,42 @@
using System;
using AIMSDAL;
using AIMSModel;
using AIMSObjectQuery;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using HelperDB;
namespace AIMSBLL
{
public partial class BCharges
{
public static DataTable GetDrugsByIds(string ids)
{
if (ids != null && ids.Length > 0)
{
string sql = string.Format("select * from Charges where IsValid=1 and Id in({0}) order by charindex(','+rtrim(cast(id as varchar(10)))+',',',{0},')", ids);//IsValid=1 and
return DBHelper.GetDataTable(sql);
}
else
{
string sql = string.Format("select * from Charges where 1<>1 ");
return DBHelper.GetDataTable(sql);
}
}
public static DataTable SelectIdName(string str)
{
string sql = string.Empty;
if (str == "")
{
sql = string.Format("select Id,Name,Id code from Charges where IsValid = 1");
}
else
{
sql = string.Format("SELECT Top 26 e.Id,e.Name,Id code FROM Charges e WHERE (Lower(Name) like '%{0}%' OR Lower(HelpCode) like '%{0}%') and IsValid = 1", str);
}
return DBHelper.GetDataTable(sql);
}
}
}

View File

@ -36,9 +36,13 @@ namespace AIMSBLL
}
public static DataTable GetPersonDataTable(string name, string DeptName, bool IsValid)
{
return DPerson.GetPersonDataTable(name, DeptName,IsValid);
return DPerson.GetPersonDataTable(name, DeptName, IsValid);
}
public static bool Login(string No, string PassWord)
public static bool Login1(string No, string PassWord)
{
return DPerson.Login1(No, PassWord);
}
public static Person Login(string No, string PassWord)
{
return DPerson.Login(No, PassWord);
}
@ -46,6 +50,10 @@ namespace AIMSBLL
{
return DPerson.GetModelByNo(No);
}
public static Person GetModelById(int No)
{
return DPerson.GetModelById(No);
}
public static DataTable GetPersonDataTableByDepId(int DepId, string HelpCode, string PersonType)

View File

@ -0,0 +1,693 @@
using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using AIMSModel;
using AIMSObjectQuery;
using System.Collections.Generic;
namespace AIMSDAL
{
internal partial class DCharges
{
#region
/// <summary>
/// 插入
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="charges">实体类对象</param>
/// <returns>标识列值或影响的记录行数</returns>
internal static int Insert(SqlCommand cmd, Charges charges)
{
cmd.Parameters.Clear();
cmd.CommandText = "insert into Charges (Code,Name,HelpCode,PrintName,Unit,PackUnit,Price,Stock,Group,Bill,Audit,Form,Class,YiBaoCode,YiBaoName,VersionNo,ZFBL,Comment,IsValid) values (@Code,@Name,@HelpCode,@PrintName,@Unit,@PackUnit,@Price,@Stock,@Group,@Bill,@Audit,@Form,@Class,@YiBaoCode,@YiBaoName,@VersionNo,@ZFBL,@Comment,@IsValid);select @@identity";
//从实体中取出值放入Command的参数列表
cmd.Parameters.Add(new SqlParameter("@Code",charges.Code==null?(object)DBNull.Value:(object)charges.Code));
cmd.Parameters.Add(new SqlParameter("@Name",charges.Name==null?(object)DBNull.Value:(object)charges.Name));
cmd.Parameters.Add(new SqlParameter("@HelpCode",charges.HelpCode==null?(object)DBNull.Value:(object)charges.HelpCode));
cmd.Parameters.Add(new SqlParameter("@PrintName",charges.PrintName==null?(object)DBNull.Value:(object)charges.PrintName));
cmd.Parameters.Add(new SqlParameter("@Unit",charges.Unit==null?(object)DBNull.Value:(object)charges.Unit));
cmd.Parameters.Add(new SqlParameter("@PackUnit",charges.PackUnit==null?(object)DBNull.Value:(object)charges.PackUnit));
cmd.Parameters.Add(new SqlParameter("@Price",charges.Price==null?(object)DBNull.Value:(object)charges.Price));
cmd.Parameters.Add(new SqlParameter("@Stock",charges.Stock==null?(object)DBNull.Value:(object)charges.Stock));
cmd.Parameters.Add(new SqlParameter("@Group",charges.Group==null?(object)DBNull.Value:(object)charges.Group));
cmd.Parameters.Add(new SqlParameter("@Bill",charges.Bill==null?(object)DBNull.Value:(object)charges.Bill));
cmd.Parameters.Add(new SqlParameter("@Audit",charges.Audit==null?(object)DBNull.Value:(object)charges.Audit));
cmd.Parameters.Add(new SqlParameter("@Form",charges.Form==null?(object)DBNull.Value:(object)charges.Form));
cmd.Parameters.Add(new SqlParameter("@Class",charges.Class==null?(object)DBNull.Value:(object)charges.Class));
cmd.Parameters.Add(new SqlParameter("@YiBaoCode",charges.YiBaoCode==null?(object)DBNull.Value:(object)charges.YiBaoCode));
cmd.Parameters.Add(new SqlParameter("@YiBaoName",charges.YiBaoName==null?(object)DBNull.Value:(object)charges.YiBaoName));
cmd.Parameters.Add(new SqlParameter("@VersionNo",charges.VersionNo==null?(object)DBNull.Value:(object)charges.VersionNo));
cmd.Parameters.Add(new SqlParameter("@ZFBL",charges.ZFBL==null?(object)DBNull.Value:(object)charges.ZFBL));
cmd.Parameters.Add(new SqlParameter("@Comment",charges.Comment==null?(object)DBNull.Value:(object)charges.Comment));
cmd.Parameters.Add(new SqlParameter("@IsValid",charges.IsValid.HasValue?(object)charges.IsValid.Value:(object)DBNull.Value));
return Convert.ToInt32(cmd.ExecuteScalar());
}
/// <summary>
/// 不使用事务的插入方法
/// </summary>
/// <param name="charges">实体类对象</param>
/// <returns>标识列值或影响的记录行数</returns>
internal static int Insert(Charges charges)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return Insert(cmd, charges);
}
}
}
/// <summary>
/// 使用事务的插入方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="charges">实体类对象</param>
/// <returns>标识列值或影响的记录行数</returns>
internal static int Insert(Connection connection,Charges charges)
{
return Insert(connection.Command, charges);
}
#endregion
#region
/// <summary>
/// 删除
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="charges">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int ExcuteDeleteCommand(SqlCommand cmd, Charges charges)
{
cmd.Parameters.Clear();
cmd.CommandText = "delete from Charges where Id=@Id";
//从实体中取出值放入Command的参数列表
cmd.Parameters.Add(new SqlParameter("@Id", charges.Id));
return cmd.ExecuteNonQuery();
}
/// <summary>
/// 不使用事务的删除方法
/// </summary>
/// <param name="charges">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Delete(Charges charges)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteDeleteCommand(cmd, charges);
}
}
}
/// <summary>
/// 使用事务的删除方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="charges">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Delete(Connection connection,Charges charges)
{
return ExcuteDeleteCommand(connection.Command, charges);
}
/// <summary>
/// 执行删除命令
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int ExcuteDeleteCommand(SqlCommand cmd, string oql, ParameterList parameters)
{
//解析过滤部份Sql语句
string filterString = SyntaxAnalyzer.ParseSql(oql, new ChargesMap());
if (filterString != string.Empty)
{
filterString = " where " + filterString;
}
cmd.Parameters.Clear();
cmd.CommandText = "delete from Charges " + filterString;
//添加参数
if (parameters != null)
{
foreach (string key in parameters.Keys)
{
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
}
}
return cmd.ExecuteNonQuery();
}
/// <summary>
/// 不使用事务的删除方法
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int Delete(string oql, ParameterList parameters)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteDeleteCommand(cmd, oql, parameters);
}
}
}
/// <summary>
/// 使用事务的删除方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int Delete(Connection connection, string oql, ParameterList parameters)
{
return ExcuteDeleteCommand(connection.Command, oql, parameters);
}
#endregion
#region
/// <summary>
/// 更新
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="charges">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int ExcuteUpdateCommand(SqlCommand cmd, Charges charges)
{
cmd.CommandText = "update Charges set Code=@Code,Name=@Name,HelpCode=@HelpCode,PrintName=@PrintName,Unit=@Unit,PackUnit=@PackUnit,Price=@Price,Stock=@Stock,Group=@Group,Bill=@Bill,Audit=@Audit,Form=@Form,Class=@Class,YiBaoCode=@YiBaoCode,YiBaoName=@YiBaoName,VersionNo=@VersionNo,ZFBL=@ZFBL,Comment=@Comment,IsValid=@IsValid where Id=@Id";
//从实体中取出值放入Command的参数列表
cmd.Parameters.Add(new SqlParameter("@Code",charges.Code==null?(object)DBNull.Value:(object)charges.Code));
cmd.Parameters.Add(new SqlParameter("@Name",charges.Name==null?(object)DBNull.Value:(object)charges.Name));
cmd.Parameters.Add(new SqlParameter("@HelpCode",charges.HelpCode==null?(object)DBNull.Value:(object)charges.HelpCode));
cmd.Parameters.Add(new SqlParameter("@PrintName",charges.PrintName==null?(object)DBNull.Value:(object)charges.PrintName));
cmd.Parameters.Add(new SqlParameter("@Unit",charges.Unit==null?(object)DBNull.Value:(object)charges.Unit));
cmd.Parameters.Add(new SqlParameter("@PackUnit",charges.PackUnit==null?(object)DBNull.Value:(object)charges.PackUnit));
cmd.Parameters.Add(new SqlParameter("@Price",charges.Price==null?(object)DBNull.Value:(object)charges.Price));
cmd.Parameters.Add(new SqlParameter("@Stock",charges.Stock==null?(object)DBNull.Value:(object)charges.Stock));
cmd.Parameters.Add(new SqlParameter("@Group",charges.Group==null?(object)DBNull.Value:(object)charges.Group));
cmd.Parameters.Add(new SqlParameter("@Bill",charges.Bill==null?(object)DBNull.Value:(object)charges.Bill));
cmd.Parameters.Add(new SqlParameter("@Audit",charges.Audit==null?(object)DBNull.Value:(object)charges.Audit));
cmd.Parameters.Add(new SqlParameter("@Form",charges.Form==null?(object)DBNull.Value:(object)charges.Form));
cmd.Parameters.Add(new SqlParameter("@Class",charges.Class==null?(object)DBNull.Value:(object)charges.Class));
cmd.Parameters.Add(new SqlParameter("@YiBaoCode",charges.YiBaoCode==null?(object)DBNull.Value:(object)charges.YiBaoCode));
cmd.Parameters.Add(new SqlParameter("@YiBaoName",charges.YiBaoName==null?(object)DBNull.Value:(object)charges.YiBaoName));
cmd.Parameters.Add(new SqlParameter("@VersionNo",charges.VersionNo==null?(object)DBNull.Value:(object)charges.VersionNo));
cmd.Parameters.Add(new SqlParameter("@ZFBL",charges.ZFBL==null?(object)DBNull.Value:(object)charges.ZFBL));
cmd.Parameters.Add(new SqlParameter("@Comment",charges.Comment==null?(object)DBNull.Value:(object)charges.Comment));
cmd.Parameters.Add(new SqlParameter("@IsValid",charges.IsValid.HasValue?(object)charges.IsValid.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@Id", charges.Id));
return cmd.ExecuteNonQuery();
}
/// <summary>
/// 不使用事务的更新方法
/// </summary>
/// <param name="charges">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Update(Charges charges)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteUpdateCommand(cmd, charges);
}
}
}
/// <summary>
/// 使用事务的更新方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="charges">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Update(Connection connection,Charges charges)
{
return ExcuteUpdateCommand(connection.Command, charges);
}
/// <summary>
/// 执行更新命令
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int ExcuteUpdateCommand(SqlCommand cmd, string oql, ParameterList parameters)
{
//解析过滤部份Sql语句
string updateString = SyntaxAnalyzer.ParseSql(oql, new ChargesMap());
cmd.CommandText = "update Charges set " + updateString;
cmd.Parameters.Clear();
//添加参数
if (parameters != null)
{
foreach (string key in parameters.Keys)
{
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
}
}
return cmd.ExecuteNonQuery();
}
/// <summary>
/// 不使用事务的更新方法
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int Update(string oql, ParameterList parameters)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteUpdateCommand(cmd, oql, parameters);
}
}
}
/// <summary>
/// 使用事务的更新方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int Update(Connection connection, string oql, ParameterList parameters)
{
return ExcuteUpdateCommand(connection.Command, oql, parameters);
}
#endregion
#region
/// <summary>
/// 执行Command获取对象列表
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象列表</returns>
internal static List<Charges> ExcuteSelectCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
{
List<Charges> chargesList = new List<Charges>();
using (SqlDataReader dr = cmd.ExecuteReader())
{
while (dr.Read())
{
Charges charges = DataReaderToEntity(dr);
chargesList.Add(charges);
}
}
return chargesList;
}
/// <summary>
/// 执行查询命令
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<Charges> ExcuteSelectCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
{
//解析过滤部份Sql语句
string filterString = SyntaxAnalyzer.ParseSql(oql, new ChargesMap());
if (filterString != string.Empty)
{
if(filterString.Trim().ToLower().IndexOf("order ")!=0)
filterString = " where " + filterString;
}
cmd.Parameters.Clear();
cmd.CommandText = "select * from Charges " + filterString;
//添加参数
if (parameters != null)
{
foreach (string key in parameters.Keys)
{
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
}
}
return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth);
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <returns>实体类对象集合</returns>
internal static List<Charges> Select()
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
cmd.CommandText = "select * from Charges";
return ExcuteSelectCommand(cmd, RecursiveType.Parent, 1);
}
}
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<Charges> Select(RecursiveType recursiveType, int recursiveDepth)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
cmd.CommandText = "select * from Charges";
return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth);
}
}
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体类对象集合</returns>
internal static List<Charges> Select(string oql, ParameterList parameters)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteSelectCommand(cmd, oql, parameters, RecursiveType.Parent, 1);
}
}
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<Charges> Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteSelectCommand(cmd, oql, parameters, recursiveType, recursiveDepth);
}
}
}
/// <summary>
/// 根据对象查询语句查询实体集合(启用事务)
/// </summary>
/// <param name="connection">连接对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<Charges> Select(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
return ExcuteSelectCommand(connection.Command, oql, parameters,recursiveType, recursiveDepth);
}
#endregion
#region
/// <summary>
/// 递归查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static Charges ExcuteSelectSingleCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
{
Charges charges=null;
using (SqlDataReader dr = cmd.ExecuteReader())
{
if(dr.Read())
charges = DataReaderToEntity(dr);
}
if(charges==null)
return charges;
return charges;
}
/// <summary>
/// 更据对象查询语句递归查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static Charges ExcuteSelectSingleCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
{
//解析过滤部份Sql语句
string filterString = SyntaxAnalyzer.ParseSql(oql, new ChargesMap());
if(filterString!=string.Empty)
{
filterString=" where "+filterString;
}
cmd.CommandText = "select * from Charges " + filterString;
cmd.Parameters.Clear();
//添加参数
if (parameters != null)
{
foreach (string key in parameters.Keys)
{
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
}
}
return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth);
}
/// <summary>
/// 更据对象查询语句递归查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static Charges SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteSelectSingleCommand(cmd, oql, parameters, recursiveType, recursiveDepth);
}
}
}
/// <summary>
/// 更据对象查询语句查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体对象</returns>
internal static Charges SelectSingle(string oql, ParameterList parameters)
{
return SelectSingle(oql,parameters,RecursiveType.Parent,1);
}
/// <summary>
/// 更据对象查询语句并启用事务查询单个实体
/// </summary>
/// <param name="connection">连接对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体对象</returns>
internal static Charges SelectSingle(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
return ExcuteSelectSingleCommand(connection.Command, oql, parameters, recursiveType, recursiveDepth);
}
/// <summary>
/// 更据主键值递归查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="id">主键值</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static Charges SelectSingle(SqlCommand cmd, int? id,RecursiveType recursiveType,int recursiveDepth)
{
cmd.Parameters.Clear();
if(id.HasValue)
{
cmd.CommandText = "select * from Charges where Id=@pk";
cmd.Parameters.Add(new SqlParameter("@pk",id.Value));
}
else
{
cmd.CommandText = "select * from Charges where Id is null";
}
return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth);
}
/// <summary>
/// 按主键字段查询特定实体
/// </summary>
/// <param name="id">主键值</param>
/// <returns>实体类对象</returns>
internal static Charges SelectSingle(int? id)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return SelectSingle(cmd,id,RecursiveType.Parent,1);
}
}
}
/// <summary>
/// 按主键字段查询特定实体
/// </summary>
/// <param name="id">主键值</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象</returns>
internal static Charges SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return SelectSingle(cmd,id, recursiveType, recursiveDepth);
}
}
}
/// <summary>
/// 使用事务并按主键字段查询特定实体
/// </summary>
/// <param name="connection">连接对象</param>
/// <param name="id">主键值</param>
/// <returns>实体类对象</returns>
internal static Charges SelectSingle(Connection connection,int? id, RecursiveType recursiveType, int recursiveDepth)
{
return SelectSingle(connection.Command, id, recursiveType, recursiveDepth);
}
#endregion
/// <summary>
/// 从DataReader中取出值生成实体对象
/// </summary>
/// <param name="searcher">查询对象</param>
/// <returns>过滤条件字符串</returns>
private static Charges DataReaderToEntity(SqlDataReader dr)
{
Charges entity = new Charges ();
if(dr["Id"]!=System.DBNull.Value)
{
entity.Id=Convert.ToInt32(dr["Id"]);
}
if(dr["Code"]!=System.DBNull.Value)
{
entity.Code=dr["Code"].ToString();
}
if(dr["Name"]!=System.DBNull.Value)
{
entity.Name=dr["Name"].ToString();
}
if(dr["HelpCode"]!=System.DBNull.Value)
{
entity.HelpCode=dr["HelpCode"].ToString();
}
if(dr["PrintName"]!=System.DBNull.Value)
{
entity.PrintName=dr["PrintName"].ToString();
}
if(dr["Unit"]!=System.DBNull.Value)
{
entity.Unit=dr["Unit"].ToString();
}
if(dr["PackUnit"]!=System.DBNull.Value)
{
entity.PackUnit=dr["PackUnit"].ToString();
}
if(dr["Price"]!=System.DBNull.Value)
{
entity.Price=dr["Price"].ToString();
}
if(dr["Stock"]!=System.DBNull.Value)
{
entity.Stock=dr["Stock"].ToString();
}
if(dr["Group"]!=System.DBNull.Value)
{
entity.Group=dr["Group"].ToString();
}
if(dr["Bill"]!=System.DBNull.Value)
{
entity.Bill=dr["Bill"].ToString();
}
if(dr["Audit"]!=System.DBNull.Value)
{
entity.Audit=dr["Audit"].ToString();
}
if(dr["Form"]!=System.DBNull.Value)
{
entity.Form=dr["Form"].ToString();
}
if(dr["Class"]!=System.DBNull.Value)
{
entity.Class=dr["Class"].ToString();
}
if(dr["YiBaoCode"]!=System.DBNull.Value)
{
entity.YiBaoCode=dr["YiBaoCode"].ToString();
}
if(dr["YiBaoName"]!=System.DBNull.Value)
{
entity.YiBaoName=dr["YiBaoName"].ToString();
}
if(dr["VersionNo"]!=System.DBNull.Value)
{
entity.VersionNo=dr["VersionNo"].ToString();
}
if(dr["ZFBL"]!=System.DBNull.Value)
{
entity.ZFBL=dr["ZFBL"].ToString();
}
if(dr["Comment"]!=System.DBNull.Value)
{
entity.Comment=dr["Comment"].ToString();
}
if(dr["IsValid"]!=System.DBNull.Value)
{
entity.IsValid=Convert.ToInt32(dr["IsValid"]);
}
return entity;
}
}
}

View File

@ -669,6 +669,10 @@ namespace AIMSDAL
{
entity.Comment = dr["Comment"].ToString();
}
if (dr["Price"] != System.DBNull.Value)
{
entity.Price = dr["Price"].ToString();
}
return entity;
}
}

View File

@ -0,0 +1,13 @@
using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using System.Collections.Generic;
using AIMSModel;
using AIMSObjectQuery;
namespace AIMSDAL
{
internal partial class DCharges
{
}
}

View File

@ -146,8 +146,7 @@ namespace AIMSDAL
public static DataTable GetDepartmentDataTable(string strWhere)
{
StringBuilder strSql = new StringBuilder();
strSql.Append("select [Id],[Name],[HelpCode],[Kind],"
+ "CASE Clinic WHEN 1 THEN '是' WHEN 0 THEN '否' END AS Clinic ,"
strSql.Append("select [Id],[Name],[HelpCode],[Kind],Clinic,"
+ "CASE Hospital WHEN 1 THEN '是' WHEN 0 THEN '否' END AS Hospital ,"
+ "[DepOrder],[DepAddress],CASE IsValid WHEN 1 THEN '有效' WHEN 0 THEN '无效' END AS IsValid");
strSql.Append(" FROM Department ");

View File

@ -259,7 +259,7 @@ namespace AIMSDAL
public static DataTable GetOperationFrontDataTable(string BegInData, string EndData)
{
string strSql = "SELECT of1.ApplyId, of1.PatientId,of1.MdrecNo, of1.ArchivesNo, of1.PatientName, of1.PatientName+'('+of1.Sex+of1.Age+')' PatInfo,of1.ApplyDepName, of1.PatientKind," +
string strSql = "SELECT of1.ApplyId, of1.PatientId,of1.MdrecNo, of1.ArchivesNo, of1.PatientName, of1.PatientName+'('+of1.Sex+of1.Age+')' PatInfo,of1.ApplyDepName, of1.PatientKind,of1.IdentityCard," +
"of1.Sex, of1.Age, of1.BirthDay, of1.Height, of1.[Weight], of1.BloodType," +
"of1.RHBloodType, of1.Illdistrict, of1.SickBed, of1.OperationType," +
"of1.OrderOperationTime, of1.OperationTimeLeight, of1.[State],of1.StateId," +
@ -273,7 +273,7 @@ namespace AIMSDAL
"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.AnesthesiaDoctorId,of1.InstrumentNurseId,of1.TourNurseId " +
"FROM V_OperationFront of1 WHERE of1.OrderOperationTime>='" + BegInData + "' and of1.OrderOperationTime<'" + EndData + "' order by OperationRoomId,PlanOrder asc";
"FROM V_OperationFront of1 WHERE of1.OrderOperationTime>='" + BegInData + "' and of1.OrderOperationTime<'" + EndData + "' order by OrderOperationTime asc,OperationRoomId,PlanOrder asc";
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}

View File

@ -143,15 +143,27 @@ namespace AIMSDAL
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
public static bool Login(string No, string PassWord)
public static bool Login1(string No, string PassWord)
{
Person person = BPerson.SelectSingle("No=@no and PassWord=@passWord and IsValid=1", new ParameterList("@No", No, "@passWord", PassWord));
if (person != null && person.Id != null)
return true;
else
{
return false;
}
}
public static Person Login(string No, string PassWord)
{
Person person = BPerson.SelectSingle("No=@no and PassWord=@passWord and IsValid=1", new ParameterList("@No", No, "@passWord", PassWord));
if (person == null || person.Id == null)
{
person = BPerson.SelectSingle("No=@no and PassWord=@passWord and IsValid=1", new ParameterList("@No","u"+ No, "@passWord", PassWord));
}
return person;
}
public static Person GetModelByNo(string No)
@ -210,6 +222,62 @@ namespace AIMSDAL
}
return PersonObj;
}
public static Person GetModelById(int Id)
{
Person PersonObj = new Person();
StringBuilder strSql = new StringBuilder();
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 Id='" + Id + "' and IsValid=1");
DataSet ds = HelperDB.DbHelperSQL.GetDataSet(strSql.ToString());
if (ds.Tables[0].Rows.Count > 0)
{
if (ds.Tables[0].Rows[0]["Id"].ToString() != "")
{
PersonObj.Id = int.Parse(ds.Tables[0].Rows[0]["Id"].ToString());
}
PersonObj.No = ds.Tables[0].Rows[0]["No"].ToString();
PersonObj.Name = ds.Tables[0].Rows[0]["Name"].ToString();
PersonObj.HelpCode = ds.Tables[0].Rows[0]["HelpCode"].ToString();
PersonObj.Sex = ds.Tables[0].Rows[0]["Sex"].ToString();
PersonObj.PassWord = ds.Tables[0].Rows[0]["PassWord"].ToString();
if (ds.Tables[0].Rows[0]["DepId"].ToString() != "")
{
PersonObj.DepId = int.Parse(ds.Tables[0].Rows[0]["DepId"].ToString());
}
if (ds.Tables[0].Rows[0]["RoleId"].ToString() != "")
{
PersonObj.RoleId = int.Parse(ds.Tables[0].Rows[0]["RoleId"].ToString());
}
if (ds.Tables[0].Rows[0]["BirthDay"].ToString() != "")
{
PersonObj.BirthDay = ds.Tables[0].Rows[0]["BirthDay"].ToString();
}
if (ds.Tables[0].Rows[0]["TimeToWork"].ToString() != "")
{
PersonObj.TimeToWork = ds.Tables[0].Rows[0]["TimeToWork"].ToString();
}
PersonObj.Diploma = ds.Tables[0].Rows[0]["Diploma"].ToString();
PersonObj.JobTitle = ds.Tables[0].Rows[0]["JobTitle"].ToString();
PersonObj.PersonType = ds.Tables[0].Rows[0]["PersonType"].ToString();
if (ds.Tables[0].Rows[0]["PersonOrder"].ToString() != "")
{
PersonObj.PersonOrder = int.Parse(ds.Tables[0].Rows[0]["PersonOrder"].ToString());
}
if (ds.Tables[0].Rows[0]["IsValid"].ToString() != "")
{
PersonObj.IsValid = int.Parse(ds.Tables[0].Rows[0]["IsValid"].ToString());
}
PersonObj.OperatorNo = ds.Tables[0].Rows[0]["OperatorNo"].ToString();
PersonObj.OperatorName = ds.Tables[0].Rows[0]["OperatorName"].ToString();
if (ds.Tables[0].Rows[0]["OperateDate"].ToString() != "")
{
PersonObj.OperateDate = DateTime.Parse(ds.Tables[0].Rows[0]["OperateDate"].ToString());
}
}
return PersonObj;
}
public static DataTable GetPersonDataTableByDepId(int DepId, string HelpCode, string PersonType)
{

View File

@ -53,7 +53,7 @@ namespace AIMSBLL
}
public static DataTable GetRecoverPatientDataTable(DateTime BeginDate)
{
string strSql = "SELECT of2.Id,of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, of2.OperationInfoNames ApplyOperationInfoName, of2.OperationDoctor, of2.AnesthesiaDoctor,of2.OperationRoomId,of2.State ,of1.Sex,Age,of2.OutRoomTime ,of2.Nurse InstrumentNurse,of2.Nurse2 TourNurse,of2.DiagnoseInfoName ApplyDiagnoseInfoName ,of2.OperationRoom,of2.Whereabouts FROM V_OperationDoing of2 left join[dbo].[V_OperationFront] of1 on of1.PatientId = of2.PatientId WHERE of1.State in( '手术结束') and of2.Whereabouts='恢复室' and of2.OutRoomTime >= '" + BeginDate + "' AND of2.OutRoomTime<'" + BeginDate.AddDays(1) + "' and RecoverId=1 and of2.Id not in (select iD from OperationRecord where RecoverId<>1)";
string strSql = "SELECT of2.Id,of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, of2.OperationInfoNames ApplyOperationInfoName, of2.OperationDoctor, of2.AnesthesiaDoctor,of2.OperationRoomId,of2.State ,of1.Sex,Age,of2.OutRoomTime ,of2.Nurse InstrumentNurse,of2.Nurse2 TourNurse,of2.DiagnoseInfoName ApplyDiagnoseInfoName ,of2.OperationRoom,of2.Whereabouts FROM V_OperationDoing of2 left join[dbo].[V_OperationFront] of1 on of1.PatientId = of2.PatientId WHERE of1.State in( '手术结束') and of2.Pulse='恢复室' and of2.OutRoomTime >= '" + BeginDate + "' AND of2.OutRoomTime<'" + BeginDate.AddDays(1) + "' and RecoverId=1 and of2.Id not in (select iD from OperationRecord where RecoverId<>1)";
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
public static DataTable GetRecoverPatientOutDataTable(DateTime BeginDate)

View File

@ -0,0 +1,194 @@
using System;
using System.Collections;
using System.Collections.Generic;
using AIMSDAL;
namespace AIMSModel
{
[Serializable]
public partial class Charges
{
private int? id;
private string code;
private string name;
private string helpCode;
private string printName;
private string unit;
private string packUnit;
private string price;
private string stock;
private string group;
private string bill;
private string audit;
private string form;
private string cls;
private string yiBaoCode;
private string yiBaoName;
private string versionNo;
private string zFBL;
private string comment;
private int? isValid;
/// <summary>
///
/// </summary>
public int? Id
{
get{ return id; }
set{ id=value; }
}
/// <summary>
///
/// </summary>
public string Code
{
get{ return code; }
set{ code=value; }
}
/// <summary>
///
/// </summary>
public string Name
{
get{ return name; }
set{ name=value; }
}
/// <summary>
///
/// </summary>
public string HelpCode
{
get{ return helpCode; }
set{ helpCode=value; }
}
/// <summary>
///
/// </summary>
public string PrintName
{
get{ return printName; }
set{ printName=value; }
}
/// <summary>
///
/// </summary>
public string Unit
{
get{ return unit; }
set{ unit=value; }
}
/// <summary>
///
/// </summary>
public string PackUnit
{
get{ return packUnit; }
set{ packUnit=value; }
}
/// <summary>
///
/// </summary>
public string Price
{
get{ return price; }
set{ price=value; }
}
/// <summary>
///
/// </summary>
public string Stock
{
get{ return stock; }
set{ stock=value; }
}
/// <summary>
///
/// </summary>
public string Group
{
get{ return group; }
set{ group=value; }
}
/// <summary>
///
/// </summary>
public string Bill
{
get{ return bill; }
set{ bill=value; }
}
/// <summary>
///
/// </summary>
public string Audit
{
get{ return audit; }
set{ audit=value; }
}
/// <summary>
///
/// </summary>
public string Form
{
get{ return form; }
set{ form=value; }
}
/// <summary>
///
/// </summary>
public string Class
{
get{ return cls; }
set{ cls=value; }
}
/// <summary>
///
/// </summary>
public string YiBaoCode
{
get{ return yiBaoCode; }
set{ yiBaoCode=value; }
}
/// <summary>
///
/// </summary>
public string YiBaoName
{
get{ return yiBaoName; }
set{ yiBaoName=value; }
}
/// <summary>
///
/// </summary>
public string VersionNo
{
get{ return versionNo; }
set{ versionNo=value; }
}
/// <summary>
///
/// </summary>
public string ZFBL
{
get{ return zFBL; }
set{ zFBL=value; }
}
/// <summary>
///
/// </summary>
public string Comment
{
get{ return comment; }
set{ comment=value; }
}
/// <summary>
///
/// </summary>
public int? IsValid
{
get{ return isValid; }
set{ isValid=value; }
}
}
}

View File

@ -28,6 +28,7 @@ namespace AIMSModel
public string UseDose1 { get; set; }
public string UseDose2 { get; set; }
public string UseDose3 { get; set; }
public string Price { get; set; }
/// <summary>
///
/// </summary>

View File

@ -0,0 +1,10 @@
using System;
using System.Collections;
using System.Collections.Generic;
using AIMSDAL;
namespace AIMSModel
{
public partial class Charges
{
}
}

View File

@ -0,0 +1,53 @@
using System;
using System.Collections;
using System.Collections.Generic;
namespace AIMSObjectQuery
{
internal partial class ChargesMap:IMap
{
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
public ChargesMap()
{
dictionary.Add("id", "Id");
dictionary.Add("code", "Code");
dictionary.Add("name", "Name");
dictionary.Add("helpcode", "HelpCode");
dictionary.Add("printname", "PrintName");
dictionary.Add("unit", "Unit");
dictionary.Add("packunit", "PackUnit");
dictionary.Add("price", "Price");
dictionary.Add("stock", "Stock");
dictionary.Add("group", "Group");
dictionary.Add("bill", "Bill");
dictionary.Add("audit", "Audit");
dictionary.Add("form", "Form");
dictionary.Add("class", "Class");
dictionary.Add("yibaocode", "YiBaoCode");
dictionary.Add("yibaoname", "YiBaoName");
dictionary.Add("versionno", "VersionNo");
dictionary.Add("zfbl", "ZFBL");
dictionary.Add("comment", "Comment");
dictionary.Add("isvalid", "IsValid");
}
#region IMap
public string this[string propertyName]
{
get
{
try
{
return dictionary[propertyName.ToLower()];
}
catch (KeyNotFoundException)
{
throw new Exception(propertyName + "属性不存在");
}
}
}
#endregion
}
}

View File

@ -20,6 +20,7 @@ namespace DrawGraph
{
public static FontSpec Font14 = new FontSpec("宋体", 14.0f, Color.Black, true, false, false);
public static FontSpec Font16 = new FontSpec("宋体", 16.0f, Color.Black, true, false, false);
public static FontSpec Font18 = new FontSpec("宋体", 18.0f, Color.Black, true, false, false);
/// <summary>
/// 在ZedGraphControl上添加文字,默认使用宋体9号黑色字体