From ce18d6ed790b157f4fae737c83072cb2a2d26e70 Mon Sep 17 00:00:00 2001 From: leomon Date: Tue, 28 Feb 2023 16:13:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E8=BF=9E=E4=B8=8A=E7=BA=BF=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AIMS/AIMS.csproj | 18 + AIMS/AIMS.xml | 2 +- .../frmAnaesthesiaChargeSelect.cs | 369 +++++ .../frmAnaesthesiaChargeSelect.designer.cs | 405 ++++++ .../frmAnaesthesiaChargeSelect.resx | 1274 +++++++++++++++++ AIMS/DataDictionary/frmAnaesthesiaEvents.cs | 19 +- .../frmAnaesthesiaEvents.designer.cs | 106 +- AIMS/DataDictionary/frmAnaesthesiaEvents.resx | 3 + AIMS/DataDictionary/frmDepartment.Designer.cs | 86 +- AIMS/DataDictionary/frmDepartment.cs | 13 +- AIMS/DataDictionary/frmEvents.cs | 19 +- AIMS/FormLogin.cs | 14 +- .../OperationAanesthesia/DrawAnasReordBill.cs | 4 +- .../frmAanesthesiaRecover.cs | 24 +- AIMS/OperationAanesthesia/frmFactDrugNew.cs | 2 +- AIMS/OperationAanesthesia/frmFactEventsNew.cs | 2 +- .../frmOpeRecoverInInfo.cs | 22 +- .../frmOpeRecoverInInfo.designer.cs | 19 +- .../frmOpeRecoverOutInfo.cs | 17 +- .../frmOpeRecoverOutInfo.designer.cs | 116 +- .../frmOperationApply.Designer.cs | 10 + AIMS/OperationFront/frmOperationApply.resx | 6 + .../OperationFront/frmOperationApplyDetail.cs | 35 + AIMS/OremrUserControl/ucDocument.cs | 32 +- AIMS/PublicUI/frmDrugSel.Designer.cs | 711 +++++++++ AIMS/PublicUI/frmDrugSel.cs | 1245 ++++++++++++++++ AIMS/PublicUI/frmDrugSel.resx | 183 +++ AIMS/PublicUI/frmEditPassWord.cs | 2 +- AIMSEntity/AIMSEntity.csproj | 7 + AIMSEntity/AreaManage/BaseInfoBottomManage.cs | 411 ------ AIMSEntity/AreaManage/BaseInfoTopManage.cs | 544 ------- AIMSEntity/AreaManage/DrugsManage.cs | 159 -- AIMSEntity/AreaManage/IconManage.cs | 265 ---- AIMSEntity/AreaManage/MonitorAreaManage.cs | 55 - AIMSEntity/AreaManage/RemarkManage.cs | 252 ---- AIMSEntity/BLL/AutoGenerate/BCharges.cs | 160 +++ AIMSEntity/BLL/Extension/BCharges.cs | 42 + AIMSEntity/BLL/Extension/BPerson.cs | 12 +- AIMSEntity/DAL/AutoGenerate/DCharges.cs | 693 +++++++++ AIMSEntity/DAL/AutoGenerate/DDrugs.cs | 4 + AIMSEntity/DAL/Extension/DCharges.cs | 13 + AIMSEntity/DAL/Extension/DDepartment.cs | 3 +- AIMSEntity/DAL/Extension/DOperationApply.cs | 4 +- AIMSEntity/DAL/Extension/DPerson.cs | 70 +- AIMSEntity/Extensions/SelectPatient.cs | 2 +- AIMSEntity/Model/AutoGenerate/Charges.cs | 194 +++ AIMSEntity/Model/AutoGenerate/Drugs.cs | 1 + AIMSEntity/Model/Extension/Charges.cs | 10 + AIMSEntity/ObjectQuery/ChargesMap.cs | 53 + DrawGraph/Graph/ZUtil.cs | 1 + 50 files changed, 5838 insertions(+), 1875 deletions(-) create mode 100644 AIMS/DataDictionary/frmAnaesthesiaChargeSelect.cs create mode 100644 AIMS/DataDictionary/frmAnaesthesiaChargeSelect.designer.cs create mode 100644 AIMS/DataDictionary/frmAnaesthesiaChargeSelect.resx create mode 100644 AIMS/PublicUI/frmDrugSel.Designer.cs create mode 100644 AIMS/PublicUI/frmDrugSel.cs create mode 100644 AIMS/PublicUI/frmDrugSel.resx delete mode 100644 AIMSEntity/AreaManage/BaseInfoBottomManage.cs delete mode 100644 AIMSEntity/AreaManage/BaseInfoTopManage.cs delete mode 100644 AIMSEntity/AreaManage/DrugsManage.cs delete mode 100644 AIMSEntity/AreaManage/IconManage.cs delete mode 100644 AIMSEntity/AreaManage/MonitorAreaManage.cs delete mode 100644 AIMSEntity/AreaManage/RemarkManage.cs create mode 100644 AIMSEntity/BLL/AutoGenerate/BCharges.cs create mode 100644 AIMSEntity/BLL/Extension/BCharges.cs create mode 100644 AIMSEntity/DAL/AutoGenerate/DCharges.cs create mode 100644 AIMSEntity/DAL/Extension/DCharges.cs create mode 100644 AIMSEntity/Model/AutoGenerate/Charges.cs create mode 100644 AIMSEntity/Model/Extension/Charges.cs create mode 100644 AIMSEntity/ObjectQuery/ChargesMap.cs diff --git a/AIMS/AIMS.csproj b/AIMS/AIMS.csproj index bd467a9..2899170 100644 --- a/AIMS/AIMS.csproj +++ b/AIMS/AIMS.csproj @@ -81,6 +81,12 @@ + + Form + + + frmAnaesthesiaChargeSelect.cs + Form @@ -517,6 +523,12 @@ frmBloodGasAnalysisDict.cs + + Form + + + frmDrugSel.cs + Form @@ -753,6 +765,9 @@ MainFormManage.cs + + frmAnaesthesiaChargeSelect.cs + frmAnaesthesiaMethod.cs @@ -969,6 +984,9 @@ frmBloodGasAnalysisDict.cs + + frmDrugSel.cs + frmNoticeMain.cs diff --git a/AIMS/AIMS.xml b/AIMS/AIMS.xml index a1d6e41..71c6330 100644 --- a/AIMS/AIMS.xml +++ b/AIMS/AIMS.xml @@ -1,6 +1,6 @@  - Data Source=.;Initial Catalog=AIMSDB_QHDSGRYY;User ID=sa;Password=Test2020; + Data Source=.;Initial Catalog=AIMSDB_DLSJZQZYYY;User ID=sa;Password=Test2020; Data Source=.;Initial Catalog=AIMSDB_DATA;User ID=sa;Password=Test2020; 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; diff --git a/AIMS/DataDictionary/frmAnaesthesiaChargeSelect.cs b/AIMS/DataDictionary/frmAnaesthesiaChargeSelect.cs new file mode 100644 index 0000000..8014102 --- /dev/null +++ b/AIMS/DataDictionary/frmAnaesthesiaChargeSelect.cs @@ -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 + { + /// + /// 可用的器械 + /// + public DataTable dt; + /// + /// 已选择的器械 + /// + public DataTable ydt; + /// + /// 当前页数 + /// + int currentPage = 0; + /// + /// 总数 + /// + int total = 0; + /// + /// 总页数 + /// + int pages = 0; + /// + /// + /// + 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 + "条"; + } + /// + /// 得到某页的DataTable + /// + /// 当前页 + /// 获取数据的DataTable + /// 某一页的DataTable + 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 list = new List(); + 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 list = new List(); + 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 list = new List(); + 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; + } + } + + /// + /// 上移 + /// + /// + /// + 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()); + } + + } + /// + /// 下移 + /// + /// + /// + 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()); + } + + + } + } +} diff --git a/AIMS/DataDictionary/frmAnaesthesiaChargeSelect.designer.cs b/AIMS/DataDictionary/frmAnaesthesiaChargeSelect.designer.cs new file mode 100644 index 0000000..ac1a834 --- /dev/null +++ b/AIMS/DataDictionary/frmAnaesthesiaChargeSelect.designer.cs @@ -0,0 +1,405 @@ +namespace AIMS.PublicUI.UI +{ + partial class frmAnaesthesiaChargeSelect + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + 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; + } +} \ No newline at end of file diff --git a/AIMS/DataDictionary/frmAnaesthesiaChargeSelect.resx b/AIMS/DataDictionary/frmAnaesthesiaChargeSelect.resx new file mode 100644 index 0000000..d47ab00 --- /dev/null +++ b/AIMS/DataDictionary/frmAnaesthesiaChargeSelect.resx @@ -0,0 +1,1274 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + + + AAABAAEAgIAAAAEAIAAoCAEAFgAAACgAAACAAAAAAAEAAAEAIAAAAAAAAAABACUWAAAlFgAAAAAAAAAA + AAAAAAAAAAAAAAAAAAD///8A////AP///wD///8B////D////0v///+J////vf///9/////1/////v// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////+////9f///9////+9////if// + /0v///8P////Af///wD///8A////AAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////Ff// + /0n///+J////tP///9H////l////8v////v////+//////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////7////7////8v///+X////R////tP///4n///9J////Ff///wD///8A////AP// + /wAAAAAAAAAAAP///wD///8A////A////yf///9n////sf///+7///////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////7v///7L///9o////KP///wP///8A////AAAAAAD///8A////AP///wP///8i////hv// + /9n//////////v////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////+/////////9r///+H////Iv// + /wP///8A////AP///wD///8A////Jf///4D////b/////f////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////f///9v///+A////Jf///wD///8A////AP///xX///9n////1v// + //z///////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////////P// + /9b///9n////Ff///wD///8B////S////7T///////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////7T///9M////Af///w////+N////8/// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////9P///47///8Q////S////7X///////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////////////////////////tv///0z///+J////0f// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////R////iv///7r////k//////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////+X///+9////2f// + //D///////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////8////+D////t////+P////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////////////////7////9P// + //r////9//////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////7////9//////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////+/v3//fz7//v5+P/79/X/+vf1//v49//8+/n//v38/////v////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////+//37+v/59PH/9e3o//Ln + 4P/y59//8+rk//fx7P/7+Pb//v39//////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////v///v3/+/f0//Tq4//u3NH/6tPE/+nSwv/s2cz/8eTa//jy7f/9+/r///7+//// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////v7+//79/P/58uz/8d3P/+jI + sv/lu5//5bqd/+fDqv/r0b//9Ojf//v49v/+/f3///////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////+/f3/+/r5//bq4v/u0Lv/5baV/+Opgf/jqH//5bCN/+jApf/w283/+PHt//z6 + +f/+/v7///////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////7+//38+//59fP/8uLW/+vE + qf/kqH//451t/+Odbf/jo3j/5rGO/+zNuv/z5t//+fTy//79/f////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////+/f3//Pn4//bv6//v2Mr/6LqZ/+Sebv/jlWD/45Zh/+Oaaf/kpXv/58Cn/+3c + 0f/17+v//fz7//////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////39/f/7+Pb/8unk/+vR + wP/ms5D/45lm/+OTXP/jlF3/45di/+Ofcf/jt5j/6NLD//Lp4//9+/r///////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////f39//r29P/w5N3/6Mu3/+Wviv/jl2P/45Jb/+OTXP/jlmD/45xr/+Gv + jf/lybb/8eTc//z6+f////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////////////9/Pz/+vTy/+7f + 1v/lxa//46uF/+OWYv/jklv/45Nc/+OVXv/immj/4KqE/+XDq//w4NT//Pn3//////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////38+//58/D/7NvQ/+PAqP/iqID/45Zh/+OSW//jk1z/45Re/+OY + Zv/hpXz/5b2h//Dczf/79vT///7////+/v////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////v///fv7//ny + 7v/q18r/4ruh/+GlfP/jlmH/45Jb/+OTXP/jlF7/45hk/+Ojdv/nuJj/79bE//fw7P/8+/v//v7+//// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////9+/v/+PHt/+rUxf/huJv/4aN5/+OVYP/jk1v/45Nc/+OT + Xf/jl2L/5KBw/+eyjf/szbf/8+ff//n29P/+/fz///////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////37 + +v/48Or/6tG//+G0lP/hoXX/45Vg/+OTW//jk1z/45Nd/+OVYP/km2n/5qqB/+nDqP/t3dH/9vHs//38 + +/////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////7//fv5//jv6P/qzrn/4rGO/+Gfcv/jlV//45Nb/+OT + XP/jk1z/45Re/+SXYv/ko3X/5bma/+jSwv/z6+T//Pv5//////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////////////////////////+ + /v/9+vj/+e7m/+3Ls//lrof/455u/+OVX//jk1v/45Nc/+OTXP/jk13/45Rf/+Odbv/isY7/5cm1//Hl + 3f/8+ff///////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////v79//z49f/46uD/7sar/+eqgP/knGr/45Re/+OT + XP/jk1z/45Nc/+KSXP/jk13/4ppp/+Krhf/lwan/8eHV//z49f///v7///////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///9/Pv/+fPw//Tj1//sv6D/5qR2/+SZZf/jlF3/45Nc/+OTXP/iklv/4ZFb/+KSXP/imGb/46Z9/+a7 + nv/x3M7/+/by//79/f////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////7///7+///+/v///v7///7+///+ + /v///v7///7+///+/v////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////z6+f/27ur/8NvO/+m4lf/lnm3/45Vg/+OT + XP/jk1z/4pJb/+CRWv/gkFn/4ZFa/+OXY//konX/57WS//DWxP/58uz//Pv6///+/v////////////// + //////////////////////////////////////////////////////////////////////////////// + ///+/v7//v39//38+v/8+ff//Pj2//z39f/89/T//Pf1//z49v/8+ff//Pv5//39/P/+/v7///////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////v7/+vf2//Pp4//s1MT/57GM/+SaZ//jlF3/4pNc/+KSW//hkVv/35Ba/96PWf/gkFn/4pVf/+Sd + bP/mrIP/7My0//Po4P/59vT//v39//////////////////////////////////////////////////// + //////////////////////////////////////////////38/P/7+Pb/9/Ds//Pn4P/y49n/8uHW//Hg + 1f/x4db/8ePZ//Ln3//17un/+ff1//z7+//+/v7///////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////+/v/59fP/8OTc/+jNuv/krIb/45hl/+OT + XP/iklv/4ZFb/+CQWv/ej1n/3Y5Y/96PWf/hklz/45hl/+Wkd//owKT/7dzQ//Xv6//9/Pv///////// + //////////////////////////////////////////////////////////////////////////////7+ + /v/9/Pr/+vXy//br5f/v3tL/6dC+/+jJtP/oxq//58Wt/+fGr//nybT/6M+8/+3azP/06eD/+fPu//z6 + +P/+/v3///7+//////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////7+//n08f/u39b/5May/+Opgv/jmGT/45Nc/+KSW//hklv/35Fa/96PWv/cj1n/3o9a/+GR + XP/ilWH/5J5v/+S2lv/p0cH/8+ni//37+f////////////////////////////////////////////// + ///////////////////////////////////+/v3//Pv5//n07//z597/7tfI/+nHsP/luZv/5LKQ/+Sw + jP/kr4v/47CM/+OykP/kt5f/6cGm/+/Svf/z4dT/9+/p//v49//+/f3///////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////+/v///v7/+PLu/+3b0P/iwar/4aZ9/+OX + Y//jk1z/4pNc/+CTXv/flF//3pNf/92TX//fk17/4ZNd/+KVX//im2r/4q6J/+bIs//x49n//Pn4//// + ///////////////////////////////////////////////////////////////////////////+//79 + +//59fL/8+jh/+3Wxv/owqj/5LGN/+Olev/ioHL/4p5v/+Kebv/in2//4qBx/+Ojdv/lq4L/6rqX/+7N + tv/y4dX/9/Ht//z6+v///v7///////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////7+//79/v/38Oz/69fK/+C8ov/hpHn/45Zi/+OTXf/ilWD/4Jpq/96fcv/fonf/4KJ3/+Ke + b//jmWb/45dj/+OaaP/hqID/5cCm//He0v/8+fb///////////////////////////////////////// + /////////////////////////////////////////fz6//Xu6P/r2cv/58Oq/+Svi//ioXT/4plo/+KX + Y//ilmH/4pZh/+KWYf/il2P/45hm/+SdbP/mp3r/6bmX/+zOuf/y5Nn/+vf0//7+/f////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////+/v/+/fz//fr5//z59v/99/T//ffz//338//99/P//ffz//338//99/P//ffz//33 + 8//99/P//ffz//338//99/P//ffz//338//99/P//ffz//338//99/P//ff0//349f/9+vj//v38///+ + /v///////////////////////////////////////////////////v7//v7+//bv6v/q1MT/4Lea/+Ch + df/jlmL/45Re/+KYZf/go3r/4K+N/+K2l//luJn/5q2G/+Whc//kmmj/45pn/+Kkef/mu5z/8drL//v2 + 8////////////////////v7//fz6//z59//8+PX//ffz//338//99/P//ffz//338//99/P//ffz//33 + 8v/68uv/8eHV/+bJs//js5L/4qF2/+KYZf/jlWD/45Re/+OUXf/jlF3/45Rd/+OUXv/jlV//45Zi/+Sb + af/lqH7/57qb/+3TwP/37uj//Pn4//7+/v////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////+/v7//fz8//r28//16+T/9OTZ//Xf + 0P/23Mv/9tzL//bcy//23Mv/9tzL//bcy//23Mv/9tzL//bcy//23Mv/9tzL//bcy//23Mv/9tzL//bc + y//23Mv/9tzM//bczP/13s7/9eHU//Xn3v/69PD//fv7//7+/v////////////////////////////// + ///////////////+/v/+/v3/9+7n/+rQvv/hspL/4Z9y/+KWYf/jlWD/45tr/+Kui//kwaj/6cu3/+zO + uP/pu5z/5ad+/+Odbf/jmWb/46Jz/+e3lP/v1cL/+PHs//z9/P/+/v3///79//37+v/48ev/9OXb//Tg + 0v/13c3/9tzL//bcy//23Mv/9tzL//bcy//23Mv/9tzL//TZxf/tzbX/5rmb/+Opgf/im2r/4pRf/+OT + Xf/jk1z/45Nc/+OTXP/jk1z/45Nc/+OTXf/jlF3/45Zh/+Oebv/kq4T/6cKn//Hg1f/38e3//Pv6//// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////7+/f/8+vj/9+7p/+3bzv/rzbn/7MSo/+6/n//uv5//7r+f/+6/n//uv5//7r+f/+6/ + n//uv5//7r+f/+6/n//uv5//7r+f/+6/n//uv5//7r+f/+6/n//uv5//7r+f/+3CpP/sx67/7dLA//Xp + 4f/79vT//fz8//////////////////////////////////////////////7+//7+/v/37eX/7M25/+Ku + i//hnW7/4pZh/+OXY//koHL/5rqd/+rSwv/v39T/8uDU/+vIsP/kroj/4p9x/+OZZf/kn27/6LKM/+3O + uP/06uL/+vj3//78/P/9/Pv/+vbz//Lj2P/rz7v/68Ws/+3Aov/uv5//7r+f/+6/n//uv5//7r+f/+6/ + n//uv57/7b6c/+q3k//mrIX/5KFz/+OXY//jk1z/45Nc/+OTXP/jk1z/45Nc/+OTXP/jk1z/45Nc/+OT + XP/jlF3/4pdj/+OfcP/ls5D/6tLB//Ln4f/79/b///////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////v79//z59v/06uP/59DB/+W+ + ov/msIr/6Kl8/+ipff/oqX3/6Kl9/+ipff/oqX3/6Kl9/+ipff/oqX3/6Kl9/+ipff/oqX3/6Kl9/+ip + ff/oqX3/6Kl9/+ipff/oqX3/56uB/+axjP/ovaH/7tnL//Xt5//7+Pb////+//////////////////// + /////////////////////v7///7+//js4//uy7T/5KuE/+Kba//jl2L/5Jto/+eoff/rx67/8OHX//Xt + 5//36+T/7NC9/+Oykf/ioXX/45hk/+SaZ//mqn//6cSp/+7f0//28e7//Pr5//r39f/27Ob/7tXE/+e9 + oP/msYz/56qA/+ipfP/oqX3/6Kl9/+ipff/oqX3/6Kl9/+ipfP/nqHv/5qZ4/+Whcv/km2j/45Vf/+OT + W//jk1z/45Nc/+OTXP/jk1z/45Nc/+OTXP/jk1z/45Nc/+OTXP/jlF7/4pln/+Oqg//lx7L/7uDW//n1 + 8v////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////+/v3/+/j2//Po4f/lzLv/4raY/+Ome//lnWr/5Z1r/+Wda//lnWv/5Z1r/+Wd + a//lnWv/5Z1r/+Wda//lnWv/5Z1r/+Wda//lnWv/5Z1r/+Wda//lnWv/5Z1q/+Wcaf/knWv/5KJ0/+Wu + iP/oyrX/7+HY//jz7////v7////////////////////////////////////////+/v/+/fz/+Org/+/J + r//mqX//45po/+SYZP/mn27/6a+H//DRvf/27Ob/+vXy//nw6//s1cX/4ria/+Gkev/jl2P/45Zg/+Si + dP/muZr/6dLD//Pq5P/69vT/9vDs//Dh1v/qyLD/5rCL/+Wlef/ln27/5Z1q/+Wda//lnWv/5Z1r/+Wd + a//lnWv/5Z1r/+Wdav/lnWr/5Jto/+OYY//jlF7/45Nc/+OTXP/jk1z/45Nc/+OTXP/jk1z/45Nc/+OT + XP/jk1z/45Nc/+OTXP/imGT/4ad+/+LBqv/s3NH/+PPw//////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////79/f/7+Pb/8+jh/+XL + uf/itpj/5KZ8/+WebP/lnmz/5Z5s/+WebP/lnmz/5Z5s/+WebP/lnmz/5Z5s/+WebP/lnmz/5Z5s/+We + bP/lnmz/5Z5s/+WdbP/lnGn/5Jhj/+OXYv/jm2j/46Z7/+S/pf/r2Mv/9u7p//7+/f////////////// + //////////////////////7//f38//r59//15dn/7saq/+eofP/kmmf/5Jll/+ehcv/qs43/8tjE//ny + 7f/8+ff/+fPv/+3bzf/jvqT/4ah//+OYY//jlF3/451t/+Owjv/myLT/8eXc//jz7v/z6OD/6tTE/+a7 + nf/lp3z/5aBx/+WebP/lnmz/5Z5s/+WebP/lnmz/5Z5s/+WebP/lnmz/5Z5s/+WebP/lnWr/5Jlk/+OV + Xv/jk1z/45Nc/+OTXP/jk1z/45Nc/+OTXP/jk1z/45Nc/+OTXP/jk1z/45Nc/+OXY//hp37/4cGr/+vc + 0f/48/D///////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////v79//v49v/z6eP/59C//+W9ov/nsIr/6Kl8/+ipff/oqX3/6Kl9/+ip + ff/oqX3/6Kl9/+ipff/oqX3/6Kl9/+ipff/oqX3/6Kl9/+ipff/oqHv/56V4/+agcf/kmGT/45Vf/+OX + Y//ioXP/4raY/+nRwP/16uP//v79//////////////////////////////////7+/v/8+/r/9/Pw//Hf + 0v/swaT/56Z5/+WaZf/kmWX/5qN0/+u2kf/028r/+/by//38+//69vL/7uDW/+XGr//irYf/45pm/+OT + XP/jmmj/4qqD/+TAp//w39T/9+/q/+/g1f/lyLL/4q+L/+Sgcf/ln23/56Jy/+ileP/oqHz/6Kl9/+ip + ff/oqX3/6Kl9/+ipff/oqHz/56Z5/+ajc//knGn/45Zg/+OTXP/jk1z/45Nc/+OTXP/jk1z/45Nc/+OT + XP/jk1z/45Nc/+OTXP/jlF3/45lm/+Kpgf/jxbD/7d7V//j08f////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////////////+/v7//Pr5//fw + 6//u39P/7dO//+/KsP/wxaf/8Mao//DGqP/wxqj/8Mao//DGqP/wxqj/8Mao//DGqP/wxqj/8Mao//DF + qP/wxaj/8MWn/+2/oP/otpP/5KqC/+Obav/jlF//45Zg/+Kebv/hsI7/6Mu3//To3//+/v3///////// + /////////////////////////v39//v49//07ej/7dfH/+m7mv/moXL/5Jhi/+SZZf/lpXf/6rmV//Xe + zf/8+PT//v38//v49v/x6OH/6dC+/+W2lP/kn2//45Zg/+OZZv/jpnv/5rqb//Lczf/47eb/7trN/+O+ + pP/gp3//45xq/+afbf/oqHr/7LWQ/+/Bov/wxaf/8Mao//DGqP/wxqj/8MWn/+7CpP/quZf/5auD/+Of + cf/jlmH/45Jb/+OTXP/jk1z/45Nc/+OTXP/jk1z/45Nc/+OTXP/jk1z/45Nc/+OWYf/knm3/5K+L/+bM + uv/v49v/+fb0//////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////7+///+/fz/+/j2//fw6v/26+H/9+fa//jl1//45df/+OXX//jl + 1//45df/+OXX//jl1//45df/+OXX//jl1//45df/+OXX//jk1v/449X/8tnI/+rKs//kt5f/46Fz/+OX + Yv/jlmH/45xr/+Kshv/pxq7/9OXa//78+//////////////////////////////////9/f3/+/b1//Hn + 4P/pz7z/5rOQ/+Sbaf/jlV//45lm/+Smev/ou5n/9N/Q//z49f/+/v3//Pr5//Xv6//u283/6MCj/+Sm + e//jmWb/45ll/+Wjdv/ptpL/89fE//fo3v/u1ML/47eY/+Gidv/jmmf/5qBv/+mtg//wxqn/9t3M//jk + 1v/45df/+OXX//jl1//35Nb/9eDQ/+3Puf/kt5n/4qZ9/+KZZ//jlF3/45Nc/+OTXP/jk1z/45Nc/+OT + XP/jk1z/45Nc/+OTXP/jlV//5Jtq/+WmfP/mupz/6tbI//Lp5P/7+Pb///////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////7+ + /v/9/Pv//Pj2//v28v/89e///PTu//z07v/89O7//PTu//z07v/89O7//PTu//z07v/89O7//PTu//z0 + 7v/89O7//PPu//zz7P/26N7/7dfI/+fCqf/lqX//5Jtp/+SXY//jm2n/46h//+nCpf/y4NL/+/j1//79 + /P////7///////////////////////38/P/69fL/7uHY/+bIsv/krYj/45hk/+OTXf/jmWj/46d+/+a9 + n//z4NP//fj2///+/v/9/Pv/+fXz//Lk2v/qyK//5KyF/+Kca//jmWX/5aJy/+mxiv/vzbf/8tvN/+zJ + s//ksI3/4p9w/+OZZv/loXL/6LCL//HPuP/66+H/+/Ps//z07v/89O7//PTu//zz7v/57+f/8t/S/+jI + sv/ks5P/4qJ2/+KYZf/jlV//45Nd/+OTXP/jk1z/45Nc/+OTXP/jlF3/5JZg/+WbaP/kpXn/5bOQ/+nI + sf/w4tj/9/Ht//z7+v////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////+/v/+/v3//v38//79/P/+/Pv//vz7//78 + +//+/Pv//vz7//78+//+/Pv//vz7//78+//+/Pv//vz7//78+//+/Pv//vz6//jz7f/x49j/6s66/+ey + jP/loHH/5Jlm/+OaZv/lpXf/6ryc//DZyP/48u7//Pv6//7+/v///////////////////////fz7//nz + 8P/s3NH/5MGp/+Opgf/jlmL/45Nd/+Kaaf/iqYP/5L+m//Li1//9+ff///////7+/v/8+/r/9uzk/+zP + u//jso//4Z9x/+OZZv/ln2//6KuC/+vApP/syrX/6b2f/+Wqgf/jnGv/45lm/+Sidv/ntJP/8dXC//vz + 7v/++/r//v38//78+//+/fv//vz7//z59v/27eb/7dnM/+jErP/kr4z/4qB0/+KZZv/ilmH/45Vg/+OV + X//jlV//4pVg/+OXY//knGr/5qR4/+axjv/mwqj/69fI//Xt6P/7+Pb//v39//////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////+/n2//Xt5v/u2cn/6LmY/+Slef/jmmj/45hj/+Wfbv/otJD/7dC8//Pq + 5P/69/b//v39///////////////////+///9+/r/+PLt/+rXyf/iu6D/4aV8/+OVYf/jklz/4ptr/+Gs + iP/kxK3/8uTb//359/////////7+//7+/f/48Ov/7dTE/+K3mf/gonb/45ll/+SbaP/monX/56+K/+e1 + k//mrYb/5aJz/+SZZf/jmWb/46V8/+W5nP/w2sv/+/bz///+/v///////////////////////v39//r2 + 8//06eL/7tfI/+nErP/kspH/4aV7/+Gfcv/inGz/4ptp/+Kbav/hnW//4aJ2/+Oqg//nt5b/6sau/+3W + xv/y59//+vb0//38/P///v7///////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////////////9/Pv/+fTv//Li + 1v/nv6P/46iA/+Kbav/jlmD/5Jlm/+WshP/oxq//7uHY//jz8f/+/fz///////////////////7///37 + +v/48Or/6dLB/+G2mP/honj/45Vg/+OTXP/inW7/4rGP/+TKt//y6N///fr4/////////v7///7///nz + 7//t2cz/4r2k/+Gmff/jmWb/45Zi/+OZZv/jnm//46F0/+Oebv/kmmf/5JZh/+ObaP/jq4X/5cKq//Df + 1P/8+PX///7+/////////////////////////v7//fv6//r18v/16uL/8NvP/+nKtv/juZ3/4rGP/+Os + hv/kqoL/5aqC/+Ouiv/itZb/5cCn/+rOvP/w3dD/9erj//r08f/9+/r///7+//////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////79/f/79/T/9Ofd/+fErP/irIf/4p1t/+OVX//jl2H/5KZ8/+W+ + pf/q2c7/9/Dt//78+/////////////////////7//fv5//jv6P/qzrv/4rKR/+Ggc//jlWD/45Nd/+Of + cf/jt5f/59HB//Pr5f/8+/n/////////////////+vXy/+/f1f/lxrL/462K/+Scbf/jlmL/4pVg/+GX + Y//hmGX/4pdj/+SXYv/kmGP/5aJy/+a3lv/pz77/8ujh//z69////v7////////////////////////+ + /v///f3//fr6//r08f/27Ob/8eDV/+zTwv/rzLf/7Mmx/+3Hrf/tx63/68u0/+vQvf/t2Mr/8eLZ//Xs + 5v/59PL//Pv6//7+/f////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////v7+//z5 + 9//26+L/58q1/+Gwjv/hn3H/45Rf/+OVX//jonb/47ib/+jSw//27ej//fz7//////////////////// + /v/9+/j/+O7m/+vLtf/jr4r/4p5w/+OVYP/jlF7/5KN2/+a9oP/r2c3/9u/r//38+/////////////// + ///79/b/8ubf/+nRwf/mt5j/5KJ2/+KYZf/hk13/4JJc/+GTXf/ilF7/45Zg/+SbaP/nqX7/6sOo/+/e + 0v/28e7//fv7///////////////////////////////////////+/v7//fz6//v49v/58u7/9uvk//bn + 3v/25tv/9uXZ//bl2f/259z/9erh//bu6P/48/D/+/f2//37+//+/v7///////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////v7//fr4//bt5//nz77/4bWW/+GhdP/jlF7/45Re/+Kf + cv/is5P/58u5//Xr5P/9+/r////////////////////+//37+P/57eX/7cmw/+WshP/jnW3/45Zh/+SY + ZP/nqn//68eu//Dk2//49fP//v38//////////////////z6+f/37ur/793S/+nApv/kp37/4ppp/+GT + Xf/hkVr/4pJb/+KTXP/jlmH/5J5t/+evif/tzbb/9Oni//r4+P/+/f3///////////////////////// + //////////////////////7//v79//37+//8+ff//Pf1//z39P/89/P//Pfz//z39P/8+Pb//Pr5//38 + +//+/f3///7+//////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////////////////////////+ + /v/9+vn/9+/q/+nVyP/ju5//46R6/+OVYP/jlF7/4p1u/+Kui//mxrD/9eff//36+P////////////// + /////v7//fr3//ns4v/vx6v/56qA/+Sca//kmGP/5Z1r/+myi//w0bz/9u7o//v6+f/+/v7///////// + /////////v39//v28//16OH/68mz/+Osh//hnG7/4ZRf/+KSW//ik1z/45Nd/+OXYv/ioHP/5bST/+/T + wf/48ev//f39//7+/v///////////////////////////////////////////////////v////7+//79 + /P/+/fz//vz8//78/P/+/Pz//vz8//79/P/+/v3//v7+///+/v////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////+//38+v/48u7/7NzS/+fErP/lrIT/5Zpn/+OW + YP/jnGv/5KqE/+jBp//z49j/+/f0//79/f////////////79/P/79vP/9+fd/+7Ep//nqX7/5Z1q/+SZ + ZP/moHD/67eT//LXxP/59PD//f39//7+/v/////////////////+/v7//Pr4//ju6P/sz7z/47CP/+Gf + c//ilWD/4pNb/+OTXP/jk17/45hk/+Kkev/kup7/79jJ//r18P////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////7//vz7//n18v/x5d3/6826/+e0kf/loHD/45hj/+Obaf/lp33/6Lyd//Hez//48+7//Pv6//// + /////////Pv6//jy7f/z4dT/7MCh/+ene//lnGn/5Jll/+WidP/qupj/89vK//z49f/+//////////// + ///////////////////9/Pv/+fLt/+3Vxf/itpj/4aN5/+KWYv/jklv/45Nc/+OVX//jmmj/4amD/+TA + qv/v3tL/+/f0//////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////+/f3/+/j3//bt6f/v18j/6bye/+Sk + eP/jmWb/45lm/+WidP/otJD/7tXD//Ts5f/6+Pb///7+///////7+Pf/9ezm/+7Zyf/puZf/5qN0/+Sa + Zv/jmWb/46N3/+m8nP/z3c3//fr3//////////////////////////////////79+//69PD/7drN/+O9 + o//hp3//45dj/+OSW//jlF7/5Jhj/+SfcP/jsZD/5sq4//Hj2//8+ff///////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////+/v/++/v/+vbz//Pg1P/pw6j/4qiA/+Kaaf/jl2L/5Jxq/+aqgv/pyrT/8OPa//jz + 8P/+/v3///7+//r28//x5t3/6dC9/+axi//knWv/5Jdi/+OZZv/ipXv/576h//Le0P/9+vj///////// + /////////////////////////v38//r28v/v4Nf/5caw/+Osh//jmWX/45Nb/+OWYP/lnGr/5qh9/+e9 + of/r1sn/8+rl//z6+f////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////+//79/P/8+vj/9OXb/+nI + sf/hrIj/4pxs/+OWYf/jmWX/5KV5/+XCqP/s28//9vDr//7+/P////7/+PPw/+7g1f/lx7L/46qD/+OZ + Zv/jlmD/4ppo/+Cof//mwab/8uDT//37+f/////////////////////////////////+/f3/+/j1//Ho + 4f/p0L//5raU/+Wfbv/klV//45di/+SgcP/mr4j/68mx//Hi2f/38u///fz8//////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////v79//38+v/06eD/6M25/+CxkP/hnm//45Zg/+OXYv/joXT/4rqd/+nU + xf/07OX//v38//7+/v/38e3/7NrN/+K/p//hpXz/45dj/+OVYP/im2n/4KqF/+XErP/x4tb//fv5//// + //////////////////////////////7+/v/8+/n/9fDr/+7bzv/pwKP/5qd6/+SaZ//jm2j/5KV6/+a2 + lv/u08H/9u7o//v49//+/v7///////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////v7//v37//Xs + 5f/p0sH/4LaY/+Kgcv/jlmH/45Zh/+KfcP/gs5T/5868//Tp4f/+/Pv//v7+//bv6f/q1MX/4Lic/+Gi + dv/jlmL/45Vg/+Kca//grYr/5cey//Hk2v/9+/r///////////////////////////////////////38 + +//59vT/8+bc/+vLtP/lsYz/4qN3/+Kid//jrov/58Gp//De0f/69fL//vz8//////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////+/v/+/fz/9u7p/+vYyf/ivqL/46R3/+OXYv/jlmH/4p1t/+Cv + i//nybP/8+bc//77+v/+/v7/9u3m/+rQvv/gspT/4Z9y/+OWYf/jlWD/4p1t/+Cxkf/mzLr/8ubf//37 + +v///////////////////////////////////////v79//37+v/37+n/7dfI/+S/pf/hsZL/4rKS/+W/ + pv/q0cL/8+jh//z59////v3///////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////////////////////+//79 + /P/48u7/7t/U/+bHsf/lq4L/5Jxp/+SXY//jnGv/4qqE/+fEq//y4db//Pn3//79/f/26+T/6824/+Gv + jP/hnW7/45Vg/+OVYf/jnnD/47eZ/+jTxP/z6uT//fz7//////////////////////////////////// + //////7//v79//v28//z5t3/7NXG/+nMuP/qzbj/7dbG//Hj2v/48e3//fz7/////v////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////7//v7+//n18//y5t7/69HA/+ezj//loXL/5Jlm/+Oa + aP/jpnz/6L6h//Dczv/59fL//fv6//fq4f/sy7P/46yF/+Kca//jlWD/45dj/+SidP/mv6T/7NvP//Xv + 6v/+/fz///////////////////////////////////////////////7//fv6//nz7//16+X/9Ofe//Xn + 3v/27OX/+PPu//v59//+/v3///////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///+////+/n3//bu6P/w287/6buc/+Wlev/jm2n/45hk/+Ogcf/nt5X/7tTD//Xu6f/7+Pb/+One/+7J + r//lqoD/45tp/+OWYf/kmmj/5qh9/+vJsf/x5dz/+PXx//7+/f////////////////////////////// + ///////////////////+/v3//fz7//z6+P/8+Pb//Pj2//z6+P/9/Pr//v39//////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////+/Pv/+vTx//Tj2f/owaf/46mC/+Kc + a//jlmH/45ln/+athv/qybP/8OTc//jy7f/35dn/78er/+eofP/kmmf/5Jhk/+agb//qsYn/8dTB//fv + 6f/8+vj///7+///////////////////////////////////////////////////////+/v7//v38//79 + /P/+/fz//v39//7+/v/+//7///////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////7+/f/7+PX/9eng/+fHsP/irYn/4p1v/+OVX//jlmH/5KV7/+a9of/q1MX/8eHV//LY + xf/tv5//56Z4/+SaZv/kmWb/5aJ1/+q1kv/z2sn/+/Tv//79/P////////////////////////////// + ///////////////////////////////////////////+//////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////v7+//z5+P/27OX/58y4/+Gy + kf/hn3L/45Rf/+OUX//jn3H/47CO/+TBqv/qy7f/7Mar/+q1kP/mo3T/5Jll/+OZZ//kpHn/6bmY//Tf + z//89/T///7+//////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////v///fr5//fu6P/o0cH/4beZ/+Gidv/jlF7/45Nd/+KZaf/go3v/4a2M/+W1 + lP/nso3/5qh+/+Sdbf/jl2P/45pp/+Omff/nvJ7/9OHT//359v////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////////+/v/9+/r/9/Hs/+rY + y//jvqP/4qZ8/+OVX//iklz/4ZRh/+CYaP/fnG//4qBy/+OgcP/im2n/4ZZi/+KUX//immn/46mC/+a+ + o//z4tb//fn3//////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////+//38+//49PD/7uHX/+jIsv/lroj/5Jln/+KUX//hkl7/4JNf/9+V + Yv/gl2P/4ZZi/+CUYP/gk13/4ZNd/+Kba//iq4f/5cKq//Pk2v/9+ff///////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////7//v38//r4 + 9f/y6+T/7NPB/+i3lv/koHH/45Zi/+KTXP/gkVv/35Fc/9+SXP/fklz/35Fb/+CSW//hk13/4Zxt/+Gu + jP/lxrH/8+bd//36+P////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////+/v3//Pv5//fz7//w3c7/6cCi/+Slev/jmWb/4pNd/+CR + Wv/fkFr/35Ba/9+QWv/fkFr/4JJb/+GTXf/inW//4rKR/+XLuf/z6eH//fv5//////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /v/+/fz/+/n2//Pk2P/pxaz/4qmB/+Kbaf/hk17/4JBa/96PWf/fkFr/35Ba/+CQWv/gkVz/4ZNe/+Kg + c//jtpj/5tDB//Pr5f/9+/n///////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////79/f/8+/r/9Off/+nKtP/grYn/4Zxt/+KU + X//gkFr/349Z/9+PWf/fkFn/4JBb/+GSXv/jl2T/5KZ7/+a9ov/p18v/9e7q//37+v////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////v7+//38/P/16uP/6c68/+Cykv/hnnH/4pRg/+GRW//gkFr/349Z/96PWf/fkVv/4ZRg/+Sc + a//mrYX/6cat/+3f1f/38u///fz7//////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////v7//v39//bt5//q08T/4bic/+Gh + dP/ilWH/4pJc/+GRW//fkFr/35Ba/+CRXP/ilmL/5aBw/+i0j//tz7n/8ujh//n29f/+/f3///////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////+/v/+/f3/9/Dr/+zazf/kwKf/46V6/+OWYv/jk1z/4pJc/+GRW//hkVv/4pNd/+OY + ZP/lonP/6rmW//HXxf/58+///fz7//7+/v////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////79/v/48/H/8OLY/+jL + tv/mrYb/5Jtp/+OVX//jk1z/4pJc/+KSXP/jlF7/45ll/+Wjdv/qu5v/89zM//z49f/+//////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////v7+//r39f/06uT/7tbG/+i2lP/lonP/5Jhj/+OTXf/jk1z/45Nc/+OU + Xv/jmWb/46V6/+m+oP/z39D//fr4//////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////////////+/v///Pv5//jx + 7f/y4NT/6b+h/+WnfP/jm2j/45Rd/+OTXP/jk1z/45Vf/+OaaP/ip3//58Cm//Pg1P/9+/r///////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////+/fz/+/fz//Xn3v/oxav/4quF/+KcbP/jlF3/45Nc/+OT + XP/jlV//4ptp/+CqhP/mw6z/8uLX//37+v////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////////////////////////+ + /v/8+ff/9uvj/+jKtf/hsI3/4Z5w/+OUXv/jk1v/45Nc/+OVYP/inGv/4K2K/+bHsv/y5Nr//fz6//// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////7+//36+f/27ef/6M++/+G0lf/hoXX/45Re/+OT + W//jk1z/45Vh/+Kdbv/hsZH/5su5//Lm3v/9/Pv///////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////v7//fv6//fw6//p1cf/4rqf/+Kkev/jlF//45Nb/+OTXP/jlmH/455w/+K1l//o0MD/8+nj//38 + +/////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////v/9/Pr/+PPv/+zc0f/lwqn/46h//+OV + X//jk1v/45Nc/+OWYf/joHL/47ue/+nWyP/07ef//v38//////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////79/P/69vP/8OXe/+rMuP/msIv/5Jpn/+OVXv/jlV//5Jpm/+Wme//mwqn/7NzR//Xw + 7P/+/f3///////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////39//z59//27ur/79jI/+m6 + mv/loHL/45dj/+OXY//ln27/566G/+rLtf/v49v/9/Pw//7+/f////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////v7//vz7//r39P/z4dX/68On/+SnfP/jmmj/45pn/+Skdf/otZH/7dTC//Tr + 5f/69/X//v7+//////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////////////+/fz//Pr5//Xn + 3f/qyLH/4auG/+KcbP/im2r/46d9/+a7nP/w3M7/+fPv//38+/////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////+/f/9/Pv/9u3m/+zTw//jup7/4qqE/+Kogf/js5L/58au//Pl + 2v/7+PX//v7+//////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////7+//7+ + /f/58+//8OLY/+nPvv/kwKb/472i/+XFr//q1cX/9uzm//37+f////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////v////v59//27+r/8OTb/+vYyv/p1cb/69rO/+/k + 3P/48/D//v38//////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////v38//v59v/59PD/9u7o//Xt5v/27+r/+PTw//z6+f/+/v7///////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////v7//v38//38+v/8+vj//Pn3//z6 + +P/9+/r//v39//////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////v7//v7+//7+/v///v3//v79//7+/v////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////////////////8/////v// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////+/////f////P////6//////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////v////0////4P// + //P///////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////8////+D///+8////5P////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////////////////l////vf// + /4n////R//////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////9H///+K////S////7X///////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////////////////////////////////////////tf// + /0z///8P////jf////P///////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////T///+O////D////wH///9L////tP////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////////////////////////////////////////tP// + /0v///8B////AP///xX///9m////1v////z///////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////P///9b///9m////Ff///wD///8A////AP///yT///9/////2v// + //z///////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////z////a////f/// + /yT///8A////AP///wD///8A////A////yD///9/////1v/////////+//////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////7/////////1v///3////8g////A////wD///8AAAAAAP///wD///8A////A/// + /yT///9l////sP///+7///////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////////////////////////7v///7H///9l////JP// + /wP///8A////AAAAAAAAAAAA////AP///wD///8A////AP///xT///9I////iP///7L////P////4/// + //L////7/////v////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////////////////9////+P// + /+/////i////z////7L///+I////SP///xT///8A////AP///wD///8AAAAAAAAAAAAAAAAAAAAAAP// + /wD///8A////AP///wH///8O////R////4P///+4////3/////T////9//////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////r////t////1////7b///+D////Rv///w7///8B////AP// + /wD///8AAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAB4AAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA + AAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAABgAAAAAAA + AAAAAAAAAAAAAeAAAAAAAAAAAAAAAAAAAAc= + + + \ No newline at end of file diff --git a/AIMS/DataDictionary/frmAnaesthesiaEvents.cs b/AIMS/DataDictionary/frmAnaesthesiaEvents.cs index 48c2dbe..6d94647 100644 --- a/AIMS/DataDictionary/frmAnaesthesiaEvents.cs +++ b/AIMS/DataDictionary/frmAnaesthesiaEvents.cs @@ -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(); } diff --git a/AIMS/DataDictionary/frmAnaesthesiaEvents.designer.cs b/AIMS/DataDictionary/frmAnaesthesiaEvents.designer.cs index d775515..5f3c33e 100644 --- a/AIMS/DataDictionary/frmAnaesthesiaEvents.designer.cs +++ b/AIMS/DataDictionary/frmAnaesthesiaEvents.designer.cs @@ -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; } } \ No newline at end of file diff --git a/AIMS/DataDictionary/frmAnaesthesiaEvents.resx b/AIMS/DataDictionary/frmAnaesthesiaEvents.resx index 418f398..1a93eb6 100644 --- a/AIMS/DataDictionary/frmAnaesthesiaEvents.resx +++ b/AIMS/DataDictionary/frmAnaesthesiaEvents.resx @@ -132,6 +132,9 @@ True + + True + True diff --git a/AIMS/DataDictionary/frmDepartment.Designer.cs b/AIMS/DataDictionary/frmDepartment.Designer.cs index a4093de..fe75958 100644 --- a/AIMS/DataDictionary/frmDepartment.Designer.cs +++ b/AIMS/DataDictionary/frmDepartment.Designer.cs @@ -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; diff --git a/AIMS/DataDictionary/frmDepartment.cs b/AIMS/DataDictionary/frmDepartment.cs index 757e3e4..fbd9bab 100644 --- a/AIMS/DataDictionary/frmDepartment.cs +++ b/AIMS/DataDictionary/frmDepartment.cs @@ -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); diff --git a/AIMS/DataDictionary/frmEvents.cs b/AIMS/DataDictionary/frmEvents.cs index 4315630..a8dffb9 100644 --- a/AIMS/DataDictionary/frmEvents.cs +++ b/AIMS/DataDictionary/frmEvents.cs @@ -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) diff --git a/AIMS/FormLogin.cs b/AIMS/FormLogin.cs index 40253c4..5e7fc94 100644 --- a/AIMS/FormLogin.cs +++ b/AIMS/FormLogin.cs @@ -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(); //在这里为编辑器注册 diff --git a/AIMS/OperationAanesthesia/DrawAnasReordBill.cs b/AIMS/OperationAanesthesia/DrawAnasReordBill.cs index de397c0..0f23d87 100644 --- a/AIMS/OperationAanesthesia/DrawAnasReordBill.cs +++ b/AIMS/OperationAanesthesia/DrawAnasReordBill.cs @@ -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 设置界面自适应 //在此处可随时设置板子的属性 diff --git a/AIMS/OperationAanesthesia/frmAanesthesiaRecover.cs b/AIMS/OperationAanesthesia/frmAanesthesiaRecover.cs index 6d546b7..5407707 100644 --- a/AIMS/OperationAanesthesia/frmAanesthesiaRecover.cs +++ b/AIMS/OperationAanesthesia/frmAanesthesiaRecover.cs @@ -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) { diff --git a/AIMS/OperationAanesthesia/frmFactDrugNew.cs b/AIMS/OperationAanesthesia/frmFactDrugNew.cs index bacf922..6e46872 100644 --- a/AIMS/OperationAanesthesia/frmFactDrugNew.cs +++ b/AIMS/OperationAanesthesia/frmFactDrugNew.cs @@ -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; } diff --git a/AIMS/OperationAanesthesia/frmFactEventsNew.cs b/AIMS/OperationAanesthesia/frmFactEventsNew.cs index 90e143e..05dfc36 100644 --- a/AIMS/OperationAanesthesia/frmFactEventsNew.cs +++ b/AIMS/OperationAanesthesia/frmFactEventsNew.cs @@ -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; } diff --git a/AIMS/OperationAanesthesia/frmOpeRecoverInInfo.cs b/AIMS/OperationAanesthesia/frmOpeRecoverInInfo.cs index f708550..a40718f 100644 --- a/AIMS/OperationAanesthesia/frmOpeRecoverInInfo.cs +++ b/AIMS/OperationAanesthesia/frmOpeRecoverInInfo.cs @@ -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) diff --git a/AIMS/OperationAanesthesia/frmOpeRecoverInInfo.designer.cs b/AIMS/OperationAanesthesia/frmOpeRecoverInInfo.designer.cs index ccb56e5..f4af972 100644 --- a/AIMS/OperationAanesthesia/frmOpeRecoverInInfo.designer.cs +++ b/AIMS/OperationAanesthesia/frmOpeRecoverInInfo.designer.cs @@ -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"))); diff --git a/AIMS/OperationAanesthesia/frmOpeRecoverOutInfo.cs b/AIMS/OperationAanesthesia/frmOpeRecoverOutInfo.cs index db8da0c..22c40d2 100644 --- a/AIMS/OperationAanesthesia/frmOpeRecoverOutInfo.cs +++ b/AIMS/OperationAanesthesia/frmOpeRecoverOutInfo.cs @@ -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(); } + } } diff --git a/AIMS/OperationAanesthesia/frmOpeRecoverOutInfo.designer.cs b/AIMS/OperationAanesthesia/frmOpeRecoverOutInfo.designer.cs index eae649d..232e084 100644 --- a/AIMS/OperationAanesthesia/frmOpeRecoverOutInfo.designer.cs +++ b/AIMS/OperationAanesthesia/frmOpeRecoverOutInfo.designer.cs @@ -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); diff --git a/AIMS/OperationFront/frmOperationApply.Designer.cs b/AIMS/OperationFront/frmOperationApply.Designer.cs index 75abfda..1415862 100644 --- a/AIMS/OperationFront/frmOperationApply.Designer.cs +++ b/AIMS/OperationFront/frmOperationApply.Designer.cs @@ -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; diff --git a/AIMS/OperationFront/frmOperationApply.resx b/AIMS/OperationFront/frmOperationApply.resx index 30e6f25..094320d 100644 --- a/AIMS/OperationFront/frmOperationApply.resx +++ b/AIMS/OperationFront/frmOperationApply.resx @@ -120,6 +120,9 @@ 17, 17 + + 17, 17 + True @@ -147,6 +150,9 @@ True + + True + True diff --git a/AIMS/OperationFront/frmOperationApplyDetail.cs b/AIMS/OperationFront/frmOperationApplyDetail.cs index 8104e37..e580bf2 100644 --- a/AIMS/OperationFront/frmOperationApplyDetail.cs +++ b/AIMS/OperationFront/frmOperationApplyDetail.cs @@ -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("未找到该患者信息!"); diff --git a/AIMS/OremrUserControl/ucDocument.cs b/AIMS/OremrUserControl/ucDocument.cs index 308c8b8..5a9fa22 100644 --- a/AIMS/OremrUserControl/ucDocument.cs +++ b/AIMS/OremrUserControl/ucDocument.cs @@ -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) diff --git a/AIMS/PublicUI/frmDrugSel.Designer.cs b/AIMS/PublicUI/frmDrugSel.Designer.cs new file mode 100644 index 0000000..7664829 --- /dev/null +++ b/AIMS/PublicUI/frmDrugSel.Designer.cs @@ -0,0 +1,711 @@ +namespace AIMS.PublicUI.UI +{ + partial class frmDrugSel + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + 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(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; + } +} \ No newline at end of file diff --git a/AIMS/PublicUI/frmDrugSel.cs b/AIMS/PublicUI/frmDrugSel.cs new file mode 100644 index 0000000..6fc1b88 --- /dev/null +++ b/AIMS/PublicUI/frmDrugSel.cs @@ -0,0 +1,1245 @@ +using AIMSBLL; +using AIMSModel; +using DevComponents.DotNetBar; +using DevComponents.DotNetBar.Controls; +using DrawGraph; +using AIMSExtension; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Windows.Forms; +using DCSoftDotfuscate; +using AIMS.OperationAanesthesia.oldSystemCode; + +namespace AIMS.PublicUI.UI +{ + public partial class frmDrugSel : OfficeForm + { + public static object valueTime; + public int currentTabIndex = 1; + public bool isCVhageAllSapDose = false; + public int DrugTypeId; + + #region 公共成员 + int x = 0; + /// + /// 手术记录 + /// + public List FactDrugList; + + /// + /// 剂量单位集合 + /// + public List _dUnitList; + /// + /// 选择项编号 + /// + public int _itemId; + public DataGridView _dataGridView; + private int _lineNumber; + + #endregion + + public frmDrugSel() + { + InitializeComponent(); + } + + private void frmDrugSel_Load(object sender, EventArgs e) + { + SetDGVNotSort(); + Initial(); + FactDrugList = new List(); + FullALLDGV(); + tabDrugs.SelectedTabIndex = currentTabIndex; + _dataGridView = dgvDrugsSZ; + BindAnaesthesiaEvents(); + dgvYP.Visible = false; + dgvYP.AutoGenerateColumns = false; + + AddNewNullRows(); + } + + private void SetDGVNotSort() + { + for (int i = 0; i < dgvDrugsSZ.Columns.Count; i++) + { + dgvDrugsSZ.Columns[i].SortMode = DataGridViewColumnSortMode.NotSortable; + } + } + private void SetDGVEvent(DataGridView dgv) + { + dgv.CellClick -= new DataGridViewCellEventHandler(dgvDrugs_CellClick); + dgv.CellContentClick -= new DataGridViewCellEventHandler(dgvDrugs_CellContentClick); + dgv.CellValueChanged -= new DataGridViewCellEventHandler(dgvDrugs_CellValueChanged); + dgv.CurrentCellDirtyStateChanged -= new EventHandler(dgvDrugs_CurrentCellDirtyStateChanged); + dgv.EditingControlShowing -= new DataGridViewEditingControlShowingEventHandler(dgvDrugs_EditingControlShowing); + dgv.CellEndEdit -= Dgv_CellEndEdit; + dgv.RowsAdded -= new DataGridViewRowsAddedEventHandler(dgvDrugs_RowsAdded); + dgv.CellClick += new DataGridViewCellEventHandler(dgvDrugs_CellClick); + dgv.CellContentClick += new DataGridViewCellEventHandler(dgvDrugs_CellContentClick); + dgv.CellValueChanged += new DataGridViewCellEventHandler(dgvDrugs_CellValueChanged); + dgv.CurrentCellDirtyStateChanged += new EventHandler(dgvDrugs_CurrentCellDirtyStateChanged); + dgv.EditingControlShowing += new DataGridViewEditingControlShowingEventHandler(dgvDrugs_EditingControlShowing); + dgv.CellEndEdit += Dgv_CellEndEdit; + dgv.RowsAdded += new DataGridViewRowsAddedEventHandler(dgvDrugs_RowsAdded); + + dgv.CellLeave -= new DataGridViewCellEventHandler(dgvDrugs_CellLeave); + dgv.CellLeave += new DataGridViewCellEventHandler(dgvDrugs_CellLeave); + dgv.KeyDown -= new System.Windows.Forms.KeyEventHandler(dgvDrugs_KeyDown); + dgv.KeyDown += new System.Windows.Forms.KeyEventHandler(dgvDrugs_KeyDown); + + dgv.CellDoubleClick -= Dgv_CellDoubleClick; + dgv.CellDoubleClick += Dgv_CellDoubleClick; + } + + private void Dgv_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + } + + private void Dgv_CellEndEdit(object sender, DataGridViewCellEventArgs e) + { + if (e.ColumnIndex == 6) + { + _dataGridView.CurrentCell.Tag = _dataGridView.CurrentCell.EditedFormattedValue.ToString(); + } + } + + private void Initial() + { + _dUnitList = BBasicDictionary.GetBasicDictionaryByName("包装单位").SubItem; + _dUnitList.Insert(0, new BasicDictionary() { Id = -1, Name = "" }); + } + + int page = 0; + int currpage = 0; + DataTable drugdt; + Panel panelleftsel; + private void FullCommonlyDrugs(DataTable dt, Panel panelleft) + { + if (panelleft.Controls != null) panelleft.Controls.Clear(); + if (dt.Rows.Count == 18 || dt.Rows.Count == 36 || dt.Rows.Count == 54) + page = (dt.Rows.Count / 18); + else + page = (dt.Rows.Count / 18) + 1; + + currpage = 1; + drugdt = dt; + int y = -28; + if (page > 1) + { + Panel paneltab = new Panel(); + paneltab.AutoScroll = true; + paneltab.BackColor = Color.White; + paneltab.Dock = DockStyle.Top; + paneltab.Height = 36; + panelleft.Controls.Add(paneltab); + int x = -28; + y = 8; + for (int i = 1; i <= page; i++) + { + ButtonX lb = new ButtonX(); + lb.Text = i.ToString().Trim(); + lb.Size = new System.Drawing.Size(30, 30); + lb.Font = new System.Drawing.Font("微软雅黑", 11f, FontStyle.Bold); + lb.Parent = paneltab; + if (i == 1) + lb.TextColor = System.Drawing.Color.Black; + x += 34; + lb.Location = new Point(x, 3); + lb.Click += Lb1_Click; + paneltab.Controls.Add(lb); + } + } + + Panel panel = new Panel(); + panel.AutoScroll = true; + panel.BackColor = Color.White; + panel.Dock = DockStyle.Fill; + panelleft.Controls.Add(panel); + panelleftsel = panel; + LoadDrugsMethod(y); + } + + private void Lb1_Click(object sender, EventArgs e) + { + ButtonX button = (ButtonX)sender; + currpage = int.Parse(button.Text); + foreach (Control item in button.Parent.Controls) + { + if (item is ButtonX) + { + if (((ButtonX)item).Text == currpage.ToString()) + ((ButtonX)item).TextColor = System.Drawing.Color.Black; + else + ((ButtonX)item).TextColor = System.Drawing.Color.White; + } + } + panelleftsel.Controls.Clear(); + int y = 8; + LoadDrugsMethod(y); + } + + private void LoadDrugsMethod(int y) + { + int row = (currpage - 1) * 18; + for (int i = 0; i < 18; i++) + { + if (row + i >= drugdt.Rows.Count) break; + int usedose = 0; + ButtonX lb = new ButtonX(); + lb.Text = drugdt.Rows[row + i]["Name"].ToString().Trim() + " " + drugdt.Rows[row + i]["Price"].ToString().Trim(); + lb.Tag = drugdt.Rows[row + i]["Id"].ToString(); + lb.Font = new System.Drawing.Font("微软雅黑", 9.5f, FontStyle.Bold); + + lb.Size = new System.Drawing.Size(panelleftsel.Width - (usedose * 43) - 8, 30); + lb.Cursor = Cursors.Hand; + lb.ColorTable = eButtonColor.Orange;// Flat; + lb.BackColor = Color.SkyBlue; + lb.TextAlignment = eButtonTextAlignment.Left; + lb.Parent = panelleftsel; + lb.TextColor = System.Drawing.Color.Black; + y += 32; + lb.Location = new Point(4, y); + lb.Click += new EventHandler(lb_Click); + panelleftsel.Controls.Add(lb); + + } + } + string SelectedTab = ""; + + void lb_Click(object sender, EventArgs e) + { + ButtonX send = sender as ButtonX; + DataGridViewRow dr = new DataGridViewRow(); + dr.CreateCells(_dataGridView); + dr.Cells[0].Value = imageList1.Images[1]; + dr.Cells[2].Value = ""; + + if (SelectedTab == "药品") + { + Drugs drug = BDrugs.SelectSingle(int.Parse(send.Tag.ToString())); + dr.Cells[3].Tag = drug.Id; + dr.Cells[3].Value = drug.Name; + dr.Cells[4].Value = drug.Price; + dr.Cells[5].Value = 1; + dr.Cells[6].Value = "个"; + } + else + { + Charges drug = BCharges.SelectSingle(int.Parse(send.Tag.ToString())); + dr.Cells[3].Tag = drug.Id; + dr.Cells[3].Value = drug.Name; + dr.Cells[4].Value = drug.Price; + dr.Cells[5].Value = 1; + dr.Cells[6].Value = drug.Unit; + } + + + if (_lineNumber > 0) + { + dr.Cells[1].Value = " ..."; + dr.Cells[1].Tag = _dataGridView.Rows[_lineNumber].Cells[1].Tag; + _dataGridView.Rows.RemoveAt(_lineNumber); + _dataGridView.Rows.Insert(_lineNumber, dr); + _lineNumber = 0; + } + else + { + dr.Cells[1].Value = "主"; + if (_dataGridView.Rows.Count != 0 && _dataGridView.Rows[_dataGridView.Rows.Count - 1].Cells[3].EditedFormattedValue.ToString() == "") + { + _dataGridView.Rows.Insert(_dataGridView.Rows.Count - 1, dr); + } + else + { + _dataGridView.Rows.Add(dr); + } + } + } + + /// + /// 向DataGridView填充入量数据 + /// + private void FullDrugsData(List list) + { + if (list != null) + { + //添加入量 + if (list.Count > 0) + { + _dataGridView.Rows.Clear(); + foreach (FactDrug item in list) + { + if (item.ParentId > 0) continue; + SetDGV(item); + foreach (FactDrug sItem in list) + { + if (sItem.ParentId == item.Id) + { + SetDGV(sItem); + } + } + } + } + else + { + _dataGridView.Rows.Clear(); + } + } + } + public int zhuid = 0; + private void SetDGV(FactDrug item) + { + int index = _dataGridView.Rows.Add(); + _dataGridView.Rows[index].Tag = item.Id; + if (item.ParentId == 0) + { + _dataGridView.Rows[index].Cells[1].Value = "主"; + _dataGridView.Rows[index].Cells[0].Value = imageList1.Images[0]; + zhuid = _dataGridView.Rows[index].Index; + } + else + { + _dataGridView.Rows[index].Cells[1].Value = " ..."; + if (zhuid != 0) _dataGridView.Rows[index].Cells[1].Tag = zhuid; + _dataGridView.Rows[index].Cells[0].Value = imageList1.Images[1]; + } + _dataGridView.Rows[index].Cells[2].Tag = item.DrugId;//药品编号 + _dataGridView.Rows[index].Cells[2].Value = BDrugs.SelectSingle(item.DrugId).DrugKind;//药品编号 + _dataGridView.Rows[index].Cells[3].Value = item.DrugName;//药品名称 + _dataGridView.Rows[index].Cells[3].Tag = item.DrugId;//药品名称编号 + _dataGridView.Rows[index].Cells[5].Value = item.DrugChannel;//途径 + _dataGridView.Rows[index].Cells[4].Value = item.Remark;//备注 + if (item.Dosage != 0) + _dataGridView.Rows[index].Cells[10].Value = (double)item.Dosage;//剂量 + _dataGridView.Rows[index].Cells[11].Value = item.DosageUnit;//剂量单位 + if (item.BloodType != null && item.BloodType != "") + _dataGridView.Rows[index].Cells[12].Value = item.BloodType;//血型 + if (item.Density != 0) + _dataGridView.Rows[index].Cells[6].Value = (double)item.Density;//浓度 + if (item.DensityUnit != null && item.DensityUnit != "") + _dataGridView.Rows[index].Cells[7].Value = item.DensityUnit;//浓度单位 + if (item.Velocity != 0) + _dataGridView.Rows[index].Cells[8].Value = (double)item.Velocity;//速度 + if (item.VelocityUnit != null && item.VelocityUnit != "") + _dataGridView.Rows[index].Cells[9].Value = item.VelocityUnit;//速度单位 + if (Convert.ToDateTime(item.DrugBeginTime).ToString().Length > 0) + { + _dataGridView.Rows[index].Cells[14].Value = Convert.ToDateTime(item.DrugBeginTime);//开始时间 + } + if (item.IsContinue > 0) + { + _dataGridView.Rows[index].Cells[15].Value = "-->";//持续 + } + if (item.DrugEndTime.ToString("yyyy-MM-dd HH:mm") != item.DrugBeginTime.ToString("yyyy-MM-dd HH:mm")) + { + _dataGridView.Rows[index].Cells[16].Value = Convert.ToDateTime(item.DrugEndTime);//结束时间 + } + _dataGridView.Rows[index].Cells[17].Value = item.Access; + } + + private void dgvDrugs_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) + { + //if (e.ColumnIndex == 0) + //{ + // DataGridViewImageColumn dc = new DataGridViewImageColumn(true); + // dc.Image = imageList1.Images[0]; + // e.Value = dc.Image; + //} + } + + private void dgvDrugs_CellContentClick(object sender, DataGridViewCellEventArgs e) + { + try + { + + if (e.RowIndex >= 0) + { + int parentId = Convert.ToInt32(_dataGridView.CurrentRow.Tag); + if (_dataGridView.Rows[e.RowIndex].Cells[1].Value != null) + { + if (e.ColumnIndex == 0 && _dataGridView.Rows[e.RowIndex].Cells[1].Value.ToString() == "主") + { + DataGridViewRow dr = new DataGridViewRow(); + dr.CreateCells(_dataGridView); + dr.Cells[1].Value = " ..."; + //dr.Cells[1].Tag = parentId; + dr.Cells[1].Tag = _dataGridView.CurrentRow.Index; + dr.Cells[0].Value = imageList1.Images[1]; + _lineNumber = e.RowIndex + 1; + while (_dataGridView.Rows[_lineNumber].Cells[1].Value.ToString() == " ...") + { + _lineNumber++; + } + _dataGridView.Rows.Insert(_lineNumber, dr); + } + if (e.ColumnIndex == 1) + { + DataGridViewRow dr = new DataGridViewRow(); + dr.CreateCells(_dataGridView); + dr.Cells[1].Value = _dataGridView.Rows[e.RowIndex].Cells[1].Value; + if (dr.Cells[1].Value.ToString().Trim() != "...") + { + dr.Cells[0].Value = imageList1.Images[0]; + _lineNumber = _dataGridView.Rows.Count - 1;//追加药添加到最后一行 + } + else + { + dr.Cells[0].Value = imageList1.Images[1]; + _lineNumber = e.RowIndex + 1; + } + dr.Cells[4].Value = _dataGridView.Rows[e.RowIndex].Cells[4].Value; + dr.Cells[1].Tag = _dataGridView.Rows[e.RowIndex].Cells[1].Tag; + dr.Cells[2].Value = _dataGridView.Rows[e.RowIndex].Cells[2].Value; + dr.Cells[2].Tag = _dataGridView.Rows[e.RowIndex].Cells[2].Tag; + dr.Cells[3].Value = _dataGridView.Rows[e.RowIndex].Cells[3].Value;//药品名称 + dr.Cells[3].Tag = _dataGridView.Rows[e.RowIndex].Cells[3].Tag;//药品名称 + dr.Cells[5].Value = _dataGridView.Rows[e.RowIndex].Cells[5].Value;//途径 + dr.Cells[11].Value = _dataGridView.Rows[e.RowIndex].Cells[11].Value;//剂量单位 + dr.Cells[6].Value = _dataGridView.Rows[e.RowIndex].Cells[6].Value;//浓度 + dr.Cells[6].Tag = _dataGridView.Rows[e.RowIndex].Cells[6].Value;//浓度 + dr.Cells[7].Value = _dataGridView.Rows[e.RowIndex].Cells[7].Value;//浓度单位 + dr.Cells[8].Value = _dataGridView.Rows[e.RowIndex].Cells[8].Value;//速度 + dr.Cells[9].Value = _dataGridView.Rows[e.RowIndex].Cells[9].Value;//速度单位 + dr.Cells[10].Value = _dataGridView.Rows[e.RowIndex].Cells[10].Value;//剂量 + DateTime starttime = DateTime.Now; + try + { + if (_dataGridView.Rows[e.RowIndex].Cells[14].Value != null && _dataGridView.Rows[e.RowIndex].Cells[14].Value.ToString() != "") + { + DateTime time = DateTime.Parse(_dataGridView.Rows[e.RowIndex].Cells[14].Value.ToString()); + starttime = new DateTime(time.Year, time.Month, time.Day, DateTime.Now.Hour, DateTime.Now.Minute, 0); + } + } + catch (Exception) + { + starttime = DateTime.Now; + } + dr.Cells[14].Value = starttime;//开始时间 + _dataGridView.Rows.Insert(_lineNumber, dr); + + if (_dataGridView.Rows[e.RowIndex].Cells[1].Value.ToString() != " ..." && _dataGridView.Rows[e.RowIndex + 1].Cells[1].Value.ToString() == " ...") + { + DataGridViewRow drc = new DataGridViewRow(); + drc.CreateCells(_dataGridView); + drc.Cells[1].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[1].Value; + drc.Cells[0].Value = imageList1.Images[1]; + _lineNumber = _dataGridView.Rows.Count - 1;//追加药添加到最后一行 + drc.Cells[4].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[4].Value; + drc.Cells[1].Tag = dr.Index; + drc.Cells[2].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[2].Value; + drc.Cells[2].Tag = _dataGridView.Rows[e.RowIndex + 1].Cells[2].Tag; + drc.Cells[3].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[3].Value;//药品名称 + drc.Cells[3].Tag = _dataGridView.Rows[e.RowIndex + 1].Cells[3].Tag;//药品名称 + drc.Cells[5].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[5].Value;//途径 + drc.Cells[11].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[11].Value;//剂量单位 + drc.Cells[6].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[6].Value;//浓度 + drc.Cells[6].Tag = _dataGridView.Rows[e.RowIndex + 1].Cells[6].Tag;//浓度 + drc.Cells[7].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[7].Value;//浓度单位 + drc.Cells[8].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[8].Value;//速度 + drc.Cells[9].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[9].Value;//速度单位 + drc.Cells[10].Value = _dataGridView.Rows[e.RowIndex + 1].Cells[10].Value;//剂量 + drc.Cells[14].Value = starttime;//开始时间 + _dataGridView.Rows.Insert(_lineNumber, drc); + } + } + } + } + } + catch (Exception exp) + { + PublicMethod.WriteLog(exp); + } + } + + private void dgvDrugs_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e) + { + DataGridViewComboBoxCell dUnitCell; + if (e == null) + { + dUnitCell = _dataGridView.Rows[0].Cells[6] as DataGridViewComboBoxCell;//剂量单位 + } + else + { + dUnitCell = _dataGridView.Rows[e.RowIndex].Cells[6] as DataGridViewComboBoxCell;//剂量单位 + } + + dUnitCell.DataSource = _dUnitList; + dUnitCell.DisplayMember = "Name"; + dUnitCell.ValueMember = "Name"; + + } + + private void dgvDrugs_CellClick(object sender, DataGridViewCellEventArgs e) + { + //点击开始时间时显示时间 + if (_dataGridView.CurrentCell != null) + { + _dataGridView.BeginEdit(true); + //点击Sign列时显示持续事件标记 + if (_dataGridView.CurrentCell.ColumnIndex == 15) + { + if (_dataGridView.CurrentCell.EditedFormattedValue.ToString() == "" && _dataGridView.CurrentRow.Cells[14].EditedFormattedValue.ToString() != "") + { + _dataGridView.CurrentCell.Value = "-->"; + //SendKeys.Send("{Tab}"); + btnSave.Focus(); + } + else + { + _dataGridView.CurrentCell.Value = ""; + _dataGridView.CurrentRow.Cells[16].Value = null;//结束时间 + btnSave.Focus(); + } + } + //点击结束时间时判断是否持续事件,并显示时间 + if (_dataGridView.CurrentCell.ColumnIndex == 16) + { + if (_dataGridView.CurrentRow.Cells[15].EditedFormattedValue.ToString() != "" && _dataGridView.CurrentCell.EditedFormattedValue.ToString() == "")//持续 + { + _dataGridView.CurrentCell.Value = DateTime.Now.ToString("yyyy-MM-dd HH:mm");//默认当前时间‘ + _dataGridView.CurrentCell.Value = DateTime.Now; + btnSave.Focus(); + } + } + } + } + private bool ValidTimeTxt(string dgvTimeTxt, ref string message) + { + bool k = true; + if (dgvTimeTxt == "") + { + return k; + } + if (!dgvTimeTxt.Contains("-") || !dgvTimeTxt.Contains(":") || !dgvTimeTxt.Contains(" ")) + { + return false; + } + if (dgvTimeTxt.IndexOf("-") < 1 || dgvTimeTxt.IndexOf(":") < 1 || dgvTimeTxt.IndexOf(" ") < 1) + { + return false; + } + try + { + string[] ym = dgvTimeTxt.Split(' '); + string[] sym = ym[0].Split('-'); + string[] hm = ym[1].Split(':'); + int month = Convert.ToInt16(sym[0]); + int day = Convert.ToInt16(sym[1]); + int hh = Convert.ToInt16(hm[0]); + int mm = Convert.ToInt16(hm[1]); + if (month > 12 || month < 0) + { + k = false; + message = "请填写正确的月份(1-12)"; + } + if (day > 31 || day < 0) + { + k = false; + message = "请填写正确的日期(1-31)"; + } + if (hh > 23 || hh < 0) + { + k = false; + message = "请填写正确的小时(0-23)"; + } + if (mm > 59 || hh < 0) + { + k = false; + message = "请填写正确的小时(0-59)"; + } + } + catch + { + k = false; + } + return k; + } + + private void dgvDrugs_CellValueChanged(object sender, DataGridViewCellEventArgs e) + { + if (_dataGridView == null) return; + //判断如果事件名称列内容发生变化时(输入关键字),设置显示查询结果的控件的位置及内容 + if (e.ColumnIndex == 8) + { + if (_dataGridView.CurrentCell == null || _dataGridView.CurrentRow.Cells[8].EditedFormattedValue.ToString() == "") return; + if (_dataGridView.CurrentRow.Cells[9].EditedFormattedValue.ToString() == "") _dataGridView.CurrentRow.Cells[9].Value = 85; + _dataGridView.CurrentRow.Cells[11].Value = null; + } + } + /// + /// 当前单元格内容发生改变时,将改变提交 + /// + /// + /// + private void dgvDrugs_CurrentCellDirtyStateChanged(object sender, EventArgs e) + { + if (_dataGridView.IsCurrentCellDirty) + { + _dataGridView.CommitEdit(DataGridViewDataErrorContexts.Commit); + } + } + + private void btnDelete_Click(object sender, EventArgs e) + { + try + { + if (_dataGridView.CurrentRow != null) + { + string objectName = _dataGridView.CurrentRow.Cells[3].EditedFormattedValue.ToString(); + if (_dataGridView.CurrentRow.Tag != null) + { + int id = Convert.ToInt32(_dataGridView.CurrentRow.Tag); + + _dataGridView.Rows.Remove(_dataGridView.CurrentRow); + _lineNumber = 0; + + FullALLDGV(); + tabDrugs_SelectedTabChanged(null, null); + } + else + { + if (_dataGridView.CurrentRow.Cells[3].Value != null || _dataGridView.CurrentRow.Cells[1].Value != null)//药品名称 + { + _dataGridView.Rows.Remove(_dataGridView.CurrentRow); + _lineNumber = 0; + } + } + } + } + catch (Exception ex) + { + PublicMethod.WriteLog(ex); + } + } + + private void Save(DataGridView _dataGridView, int index) + { + try + { + if (_dataGridView.Rows.Count < 1) return; + string drugEffect = string.Empty; + foreach (DataGridViewRow dr in _dataGridView.Rows) + { + if (dr.Cells[3].Value == null || dr.Cells[3].Value.ToString() == "")//药品名称 + continue; + //实例化FactDrug对象 + FactDrug drugsR = new FactDrug(); + drugsR.DrugId = Convert.ToInt32(dr.Cells[3].Tag);//药品名称 + if (drugsR.DrugId == 0)//药品名称 + continue; + drugsR.ParentId = 0; + drugsR.DrugKind = dr.Cells[2].EditedFormattedValue.ToString();//药品名称 + drugsR.DrugName = dr.Cells[3].EditedFormattedValue.ToString();//药品名称 + drugsR.Dosage = Convert.ToDecimal(dr.Cells[4].EditedFormattedValue.ToString()); + drugsR.DrugKind = dr.Cells[5].EditedFormattedValue.ToString();//途径 + drugsR.DosageUnit = dr.Cells[6].EditedFormattedValue.ToString();//剂量单位 + drugsR.DensityUnit = dr.Cells[7].EditedFormattedValue.ToString();//比例 + + + if (dr.Tag == null) + { + //drugsR.Id = BFactDrug.Insert(drugsR); + //dr.Tag = drugsR.Id; + FactDrugList.Add(drugsR); + } + else + { + drugsR.Id = Convert.ToInt32(dr.Tag); + //将修改的事件保存到集合 + foreach (FactDrug FactDrug in FactDrugList) + { + if (FactDrug.Id == drugsR.Id && equelDrugs(FactDrug, drugsR) == false) + { + if (drugsR.ParentId == 0) drugsR.ParentId = FactDrug.ParentId; + FactDrugList.Remove(FactDrug); + FactDrugList.Add(drugsR); + //BFactDrug.Update(drugsR); + break; + } + } + dr.Tag = drugsR.Id; + } + } + } + catch (Exception exp) + { + PublicMethod.WriteLog(exp); + } + } + public bool equelDrugs(FactDrug oldDrug, FactDrug newDrug) + { + bool b = true; + if (oldDrug.DrugName != newDrug.DrugName) b = false; + if (oldDrug.Remark != newDrug.Remark) b = false; + if (oldDrug.Dosage != newDrug.Dosage) b = false; + if (oldDrug.Velocity != newDrug.Velocity) b = false; + if (oldDrug.Density != newDrug.Density) b = false; + if (oldDrug.DosageUnit != newDrug.DosageUnit) b = false; + if (oldDrug.VelocityUnit != newDrug.VelocityUnit) b = false; + if (oldDrug.DensityUnit != newDrug.DensityUnit) b = false; + if (oldDrug.BloodType != newDrug.BloodType) b = false; + if (oldDrug.DrugChannel != newDrug.DrugChannel) b = false; + if (oldDrug.Access != newDrug.Access) b = false; + if (oldDrug.DrugBeginTime != null && newDrug.DrugBeginTime != null && oldDrug.DrugBeginTime.ToString("yyyy-MM-dd HH:mm") != newDrug.DrugBeginTime.ToString("yyyy-MM-dd HH:mm")) b = false; + if (oldDrug.IsContinue != newDrug.IsContinue) b = false; + if (oldDrug.DrugEndTime != newDrug.DrugEndTime && oldDrug.DrugEndTime.ToString("HH:mm") != newDrug.DrugEndTime.ToString("HH:mm")) b = false; + return b; + } + private void btnSave_Click(object sender, EventArgs e) + { + try + { + btnSave.Focus(); + Save(dgvDrugsSZ, 1); + this.Close(); + } + catch (Exception exp) + { + PublicMethod.WriteLog(exp); + } + } + + #region DataGridView数字单元格验证 GZ + public DataGridViewTextBoxEditingControl dgvTxt = null; // 声明 一个文本 CellEdit + public DataGridViewTextBoxEditingControl dgvTxtName = null; // 声明 一个文本 CellEdit + public DataGridViewTextBoxEditingControl dgvVensity = null; // 声明 一个文本 CellEdit + public DataGridViewTextBoxEditingControl dgvDensity = null; // 声明 一个文本 CellEdit + public DataGridViewTextBoxEditingControl dgvTextYP = null; // 声明 一个文本 CellEdit + private void dgvDrugs_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) + { + //判断类型 + if (_dataGridView.CurrentCell != null && _dataGridView.CurrentCell.ColumnIndex != 6) + { + if (e.Control.GetType().Equals(typeof(DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputEditingControl))) + { + ((DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputEditingControl)e.Control).DateTimeSelectorVisibility = DevComponents.Editors.DateTimeAdv.eDateTimeSelectorVisibility.DateSelector; + } + else if (dgvTxt != null) + { + dgvTxt.KeyPress -= new KeyPressEventHandler(dgvTxt_KeyPress); // 绑定事件 + } + if (_dataGridView.CurrentCell.ColumnIndex == 3) + { + dgvTextYP = (DataGridViewTextBoxEditingControl)e.Control; // 得到单元格 + dgvTextYP.KeyPress -= new KeyPressEventHandler(dgvTxtName_KeyPress); // 绑定事件 + dgvTextYP.KeyPress += new KeyPressEventHandler(dgvTxtName_KeyPress); // 绑定事件 + dgvTextYP.TextChanged -= new EventHandler(dgvTextYP_TextChanged); + dgvTextYP.TextChanged += new EventHandler(dgvTextYP_TextChanged); + dgvTextYP.PreviewKeyDown -= new PreviewKeyDownEventHandler(dgvTextYP_PreviewKeyDownEvent); + dgvTextYP.PreviewKeyDown += new PreviewKeyDownEventHandler(dgvTextYP_PreviewKeyDownEvent); + } + if (_dataGridView.CurrentCell.ColumnIndex == 10) + { + dgvTxt = (DataGridViewTextBoxEditingControl)e.Control; // 得到单元格 + dgvTxt.KeyPress -= new KeyPressEventHandler(dgvTxt_KeyPress); // 绑定事件 + dgvTxt.KeyPress += new KeyPressEventHandler(dgvTxt_KeyPress); // 绑定事件 + dgvTxt.PreviewKeyDown -= new PreviewKeyDownEventHandler(dgvTxt_PreviewKeyDownEvent); + dgvTxt.PreviewKeyDown += new PreviewKeyDownEventHandler(dgvTxt_PreviewKeyDownEvent); + } + if (_dataGridView.CurrentCell.ColumnIndex == 6) + { + dgvVensity = (DataGridViewTextBoxEditingControl)e.Control; // 得到单元格 + dgvVensity.KeyPress -= new KeyPressEventHandler(dgvTxt_KeyPress); // 绑定事件 + dgvVensity.KeyPress += new KeyPressEventHandler(dgvTxt_KeyPress); // 绑定事件 + } + if (_dataGridView.CurrentCell.ColumnIndex == 8) + { + dgvDensity = (DataGridViewTextBoxEditingControl)e.Control; // 得到单元格 + dgvDensity.KeyPress -= new KeyPressEventHandler(dgvTxt_KeyPress); // 绑定事件 + dgvDensity.KeyPress += new KeyPressEventHandler(dgvTxt_KeyPress); // 绑定事件 + } + } + + } + void dgvTxtName_KeyPress(object sender, KeyPressEventArgs e) + { + if (e.KeyChar == 34 || e.KeyChar == 39 || e.KeyChar == 47 || e.KeyChar == 44 || e.KeyChar == 58 || e.KeyChar == 59 || e.KeyChar == 60 || e.KeyChar == 62 || e.KeyChar == 63 || e.KeyChar == 91 || e.KeyChar == 92 || e.KeyChar == 93 || e.KeyChar == 123 || e.KeyChar == 124 || e.KeyChar == 125) + { + e.Handled = true; + } + } + 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; + } + } + #endregion + + private void FullALLDGV() + { + _dataGridView = dgvDrugsSZ; + SetDGVEvent(_dataGridView); + FullDrugsData(FactDrugList); + } + private void frmDrugSel_Paint(object sender, PaintEventArgs e) + { + this.HorizontalScroll.Value = x; + } + + private void frmDrugSel_Scroll(object sender, ScrollEventArgs e) + { + x = this.HorizontalScroll.Value; + } + private void tabDrugs_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e) + { + DataTable dt = new DataTable(); + _dataGridView = dgvDrugsSZ; + if (tabDrugs.SelectedTab.Name == "P2") + { + _dataGridView = dgvDrugsSZ; + } + _dataGridView.Columns[1].ReadOnly = true; + _dataGridView.Columns[2].ReadOnly = true; + + AddNewNullRows(); + + _dataGridView.CurrentCell = _dataGridView.Rows[_dataGridView.Rows.Count - 1].Cells[3]; + _dataGridView.BeginEdit(true); + + if (dgvYP.Visible == true) + { + dgvYP.Visible = false; + } + } + + private void AddNewNullRows() + { + if (_dataGridView.Rows.Count == 0) + { + DataGridViewRow row = new DataGridViewRow(); + row.CreateCells(_dataGridView); + row.Cells[0].Value = imageList1.Images[1]; + row.Cells[1].Value = "主"; + _dataGridView.Rows.Add(row); + } + else + { + if (_dataGridView.Rows[_dataGridView.Rows.Count - 1].Cells[3].EditedFormattedValue.ToString() != "") + { + DataGridViewRow row = new DataGridViewRow(); + row.CreateCells(_dataGridView); + row.Cells[0].Value = imageList1.Images[1]; + row.Cells[1].Value = "主"; + _dataGridView.Rows.Add(row); + } + } + } + SuperTabItem Superitem; + private void superTabControl1_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e) + { + if (Superitem != null && Superitem == TabSelDrugs.SelectedTab) return; + Panel panel = null; + DataTable dt = new DataTable(); + + Superitem = TabSelDrugs.SelectedTab; + AnaesthesiaEvents spt = Superitem.Tag as AnaesthesiaEvents; + if (spt != null) + { + SelectedTab = spt.Remark; + if (SelectedTab == "药品") + { + panel = (SuperTabControlPanel)Superitem.AttachedControl; + dt = BDrugs.GetDrugsByIds(spt.TheEventsId.ToString()); + } + else + { + panel = (SuperTabControlPanel)Superitem.AttachedControl; + dt = BCharges.GetDrugsByIds(spt.TheEventsId.ToString()); + } + } + FullCommonlyDrugs(dt, panel); + } + + private void frmDrugSel_FormClosing(object sender, FormClosingEventArgs e) + { + } + + + SuperTabControl stc = new SuperTabControl(); + private void BindAnaesthesiaEvents() + { + try + { + for (int i = TabSelDrugs.Tabs.Count - 1; i >= 0; i--) + { + TabSelDrugs.Tabs.RemoveAt(i); + } + List AnaesthesiaList = BAnaesthesiaEvents.Select(" IsAutomatic=3 and IsValid=1 ", null, RecursiveType.None, 0); + foreach (AnaesthesiaEvents item in AnaesthesiaList) + { + SuperTabItem spt = stc.CreateTab(item.Name); + spt.Tag = item; + spt.SymbolColor = Color.White; + SuperTabControlPanel superTabControlPanel = new SuperTabControlPanel(); + superTabControlPanel.Dock = System.Windows.Forms.DockStyle.Fill; + superTabControlPanel.CanvasColor = Color.White; + TabSelDrugs.Controls.Add(superTabControlPanel); + TabSelDrugs.Tabs.Add(spt); + superTabControlPanel.TabItem = spt; + spt.AttachedControl = superTabControlPanel; + } + this.TabSelDrugs.SelectedTabChanged += new System.EventHandler(this.superTabControl1_SelectedTabChanged); + TabSelDrugs.SelectedTab = TabSelDrugs.Tabs[0] as SuperTabItem; + superTabControl1_SelectedTabChanged(null, null); + } + catch (Exception ex) + { + PublicMethod.WriteLog(ex); + } + } + + private void dgvDrugs_DataError(object sender, DataGridViewDataErrorEventArgs e) + { + if (e.Exception.Message == "DataGridViewComboBoxCell 值无效。") + { + try + { + object value = _dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value; + if (!((DataGridViewComboBoxCell)_dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex]).Items.Contains(value)) + { + ((DataGridViewComboBoxCell)_dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex]).Items.Add(value); + e.ThrowException = false; + } + } + catch (Exception) + { + e.ThrowException = false; + } + + } + } + + private void txtQuery_Click(object sender, EventArgs e) + { + TextBoxX box = sender as TextBoxX; + box.Text = ""; + } + + + + /// + /// 获取DataGridView回车事件 + /// + /// + /// + private void dgvDrugs_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyData == Keys.Enter) + { + e.Handled = true; + //药品名称单元格回车时判断并填充药品信息 + if (_dataGridView.CurrentCell.ColumnIndex == 3) + { + if (_dataGridView.CurrentRow.Cells[3].EditedFormattedValue.ToString() == "") + { + return; + } + SetYPContent(null); + } + //剂量单元格回车时填写剂量并将光标移到到下一行的药品名称单元格 + else if (_dataGridView.CurrentCell.ColumnIndex == 10) + { + if (_dataGridView.CurrentRow.Cells[10].EditedFormattedValue.ToString() == "") + { + return; + } + //_dataGridView.CurrentCell.Value = dgvDosage.Rows[index].Cells[0].Value.ToString(); + index = 0; + //dgvDosage.Visible = false; + _dataGridView.CurrentCell = _dataGridView.Rows[_dataGridView.CurrentCell.RowIndex + 1].Cells[3]; + _dataGridView.BeginEdit(true); + } + } + } + /// + /// 药品名称单元格字符串改变事件(根据输入查询药品) + /// + /// + /// + void dgvTextYP_TextChanged(object sender, EventArgs e) + { + //显示并定位药品选择列表 + if (dgvYP.Visible == false) + { + dgvYP.Visible = true; + GetControlPosition(dgvYP, _dataGridView.CurrentCell); + } + //药品名称单元格为空时,隐藏选择药品列表,否则为选择药品列表加载数据 + if (dgvTextYP.Text == "") + { + dgvYP.Visible = false; + } + else + { + string str = dgvTextYP.Text.Trim(); + DataTable dt = BDrugs.GetAllDrugsByCondition(str); + dgvYP.DataSource = dt; + } + } + /// + /// 药品名称单元格按键事件(判断输入上下箭头并处理) + /// + /// + /// + void dgvTextYP_PreviewKeyDownEvent(object sender, PreviewKeyDownEventArgs e) + { + //药品名称单元格为空时,返回 + if (_dataGridView.CurrentCell.EditedFormattedValue.ToString() == "") + { + return; + } + //显示并定位选择药品列表 + if (dgvYP.Visible == false) + { + dgvYP.Visible = true; + GetControlPosition(dgvYP, _dataGridView.CurrentCell); + } + //判断按下上下键时,选择药品列表获得焦点并定位光标 + if (e.KeyCode == Keys.Up) + { + dgvYP.Focus(); + dgvYP.Rows[dgvYP.Rows.Count - 1].Selected = true; + dgvYP.CurrentCell = dgvYP.Rows[dgvYP.Rows.Count - 1].Cells[3]; + } + if (e.KeyCode == Keys.Down) + { + if (dgvYP.Rows.Count > 0) + { + dgvYP.Focus(); + dgvYP.Rows[1].Selected = true; + dgvYP.CurrentCell = dgvYP.Rows[1].Cells[3]; + } + } + } + /// + /// 判断剂量鼠标事件 + /// + /// + /// + void dgvTxt_PreviewKeyDownEvent(object sender, PreviewKeyDownEventArgs e) + { + ////常用默认剂量小于2不做操作 + } + /// + ///获取单元格的位置并显示面板 + /// + /// + /// + private void GetControlPosition(Control pnl, DataGridViewCell cell) + { + Rectangle rec = _dataGridView.GetCellDisplayRectangle(cell.ColumnIndex, cell.RowIndex, false); + if (_dataGridView.Height - rec.Y - rec.Height - pnl.Height > 0) + { + pnl.Top = rec.Y + rec.Height + panel2.Height + 40; + } + else + { + pnl.Top = rec.Y - pnl.Height + panel2.Height + 40; + } + pnl.Left = TabSelDrugs.Width + rec.X; + pnl.Visible = true; + } + + //定位当前行索引 + int index = 0; + + /// + /// 向药品表添加数据 + /// + /// + private void SetYPContent(DataGridViewCellEventArgs e) + { + if (e != null) + { + index = e.RowIndex; + } + if (dgvYP.Rows[index].Cells["DrugName"].EditedFormattedValue.ToString() != "") + { + //dgvDosage.Rows.Clear(); + _dataGridView.CurrentRow.Cells[2].Value = dgvYP.Rows[index].Cells["TypeName"].Value.ToString(); + _dataGridView.CurrentRow.Cells[3].Tag = int.Parse(dgvYP.Rows[index].Cells["id"].Value.ToString()); + _dataGridView.CurrentRow.Cells[3].Value = dgvYP.Rows[index].Cells["DrugName"].Value.ToString();//药品名称 + + _dataGridView.CurrentRow.Cells[4].Value = dgvYP.Rows[index].Cells["Price"].Value.ToString(); + _dataGridView.CurrentRow.Cells[5].Value = 1; + _dataGridView.CurrentRow.Cells[6].Value = "个"; + index = 0; + dgvYP.Visible = false; + AddNewNullRows(); + _dataGridView.BeginEdit(false); + } + } + /// + /// 鼠标点击选择药品列表时,向使用药品表添加数据 + /// + /// + /// + private void dgvYP_CellClick(object sender, DataGridViewCellEventArgs e) + { + if (e.RowIndex >= 0) + { + SetYPContent(e); + } + } + /// + /// 选择药品列表上点击上下键定位并移动光标 + /// + /// + /// + private void dgvYP_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Down) + { + if (dgvYP.CurrentRow.Index == dgvYP.Rows.Count - 1) + { + e.Handled = true; + dgvYP.CurrentCell = dgvYP.Rows[0].Cells[3]; + dgvYP.Rows[0].Selected = true; + } + } + if (e.KeyCode == Keys.Up) + { + if (dgvYP.CurrentRow.Index == 0) + { + e.Handled = true; + dgvYP.CurrentCell = dgvYP.Rows[dgvYP.Rows.Count - 1].Cells[3]; + dgvYP.Rows[dgvYP.Rows.Count - 1].Selected = true; + } + } + } + /// + /// 选择药品列表点击回车键向使用药品列表添加数据 + /// + /// + /// + private void dgvYP_KeyPress(object sender, KeyPressEventArgs e) + { + if (e.KeyChar.ToString() == "\r") + { + if (dgvYP.SelectedRows.Count > 0) + { + SetYPContent(null); + } + } + } + /// + /// 选择药品列表点击回车时先定位当前行的索引 + /// + /// + /// + private void dgvYP_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e) + { + if (e.KeyCode == Keys.Enter) + { + index = dgvYP.CurrentRow.Index; + } + } + /// + /// 使用药品表单元格失去焦点 + /// + /// + /// + private void dgvDrugs_CellLeave(object sender, DataGridViewCellEventArgs e) + { + //药品名称失去焦点时注销药品名称单元格的事件 + if (e.ColumnIndex == 3) + { + if (dgvTextYP != null) + { + dgvTextYP.TextChanged -= new EventHandler(dgvTextYP_TextChanged); + dgvTextYP.PreviewKeyDown -= new PreviewKeyDownEventHandler(dgvTextYP_PreviewKeyDownEvent); + dgvTextYP.KeyPress -= new KeyPressEventHandler(dgvTxtName_KeyPress); + } + } + //剂量失去焦点时注销剂量单元格的事件 + if (e.ColumnIndex == 10) + { + if (dgvTxt != null) + { + dgvTxt.KeyPress -= new KeyPressEventHandler(dgvTxt_KeyPress); + dgvTxt.PreviewKeyDown -= new PreviewKeyDownEventHandler(dgvTxt_PreviewKeyDownEvent); + } + } + } + /// + /// 重写父类捕获键盘点击事件 + /// + /// + /// + /// + protected override bool ProcessCmdKey(ref Message msg, Keys keyData) + { + if (keyData == Keys.Enter) + { + dgvDrugs_KeyDown(_dataGridView, new KeyEventArgs(keyData)); + return true; + } + else + { + return false; + } + } + /// + /// 选择剂量列表点击鼠标时向使用药品列表填写剂量数据 + /// + /// + /// + private void dgvDosage_CellClick(object sender, DataGridViewCellEventArgs e) + { + //if (e.RowIndex >= 0) + //{ + // _dataGridView.CurrentCell.Value = dgvDosage.Rows[e.RowIndex].Cells[0].Value.ToString(); + // index = 0; + // dgvDosage.Visible = false; + //} + } + /// + /// 选择剂量列表点击上下键时移动及定位光标 + /// + /// + /// + private void dgvDosage_KeyDown(object sender, KeyEventArgs e) + { + } + /// + /// 选择剂量列表回车时向使用药品列表添加剂量数据 + /// + /// + /// + private void dgvDosage_KeyPress(object sender, KeyPressEventArgs e) + { + } + /// + /// 选择剂量列表回车时先定位行索引 + /// + /// + /// + private void dgvDosage_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e) + { + } + + private void btnTypeManager_Click(object sender, EventArgs e) + { + frmAnaesthesiaEvents fae = new frmAnaesthesiaEvents(); + fae.Type = 3; + fae.ShowDialog(); + BindAnaesthesiaEvents(); + } + } +} diff --git a/AIMS/PublicUI/frmDrugSel.resx b/AIMS/PublicUI/frmDrugSel.resx new file mode 100644 index 0000000..c891614 --- /dev/null +++ b/AIMS/PublicUI/frmDrugSel.resx @@ -0,0 +1,183 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 132, 17 + + + True + + + True + + + True + + + True + + + 957, 91 + + + + 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 + + + + 37 + + \ No newline at end of file diff --git a/AIMS/PublicUI/frmEditPassWord.cs b/AIMS/PublicUI/frmEditPassWord.cs index 655fb08..e1dec13 100644 --- a/AIMS/PublicUI/frmEditPassWord.cs +++ b/AIMS/PublicUI/frmEditPassWord.cs @@ -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; diff --git a/AIMSEntity/AIMSEntity.csproj b/AIMSEntity/AIMSEntity.csproj index 37950a3..46a6e01 100644 --- a/AIMSEntity/AIMSEntity.csproj +++ b/AIMSEntity/AIMSEntity.csproj @@ -66,6 +66,7 @@ + @@ -133,6 +134,7 @@ + @@ -185,9 +187,11 @@ + + @@ -332,6 +336,7 @@ + @@ -389,6 +394,7 @@ + @@ -450,6 +456,7 @@ + diff --git a/AIMSEntity/AreaManage/BaseInfoBottomManage.cs b/AIMSEntity/AreaManage/BaseInfoBottomManage.cs deleted file mode 100644 index 3716cc8..0000000 --- a/AIMSEntity/AreaManage/BaseInfoBottomManage.cs +++ /dev/null @@ -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 重写的事件 - /// - /// 鼠标点击画板 - /// - /// - /// - 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 ables = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); - 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()); - } - } - /// - /// 设置可编辑组件的显示样式 - /// - /// - 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 重写的事件结束 - - /// - /// 响应可编辑区域的点击事件 - /// - /// - /// - 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(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(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(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(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(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 _controlName = new KeyValuePair(ableEdit.PackValue, ableEdit.PackText); - //KeyValuePair 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(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 - } -} diff --git a/AIMSEntity/AreaManage/BaseInfoTopManage.cs b/AIMSEntity/AreaManage/BaseInfoTopManage.cs deleted file mode 100644 index f1022e1..0000000 --- a/AIMSEntity/AreaManage/BaseInfoTopManage.cs +++ /dev/null @@ -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 重写的事件 - /// - /// 鼠标点击画板 - /// - /// - /// - 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 ables = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); - 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()); - } - } - /// - /// 设置可编辑组件的显示样式 - /// - /// - 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; - } - } - } - - - /// - /// 初始画的后置方法 - /// - public override void FollowUpMethod() - { - init(); - - } - #endregion 重写的事件结束 - - - #region 初始化时间轴 - /// - /// 设置页面的开始时间和结束时间 - /// - /// 手术信息对象 - 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); - } - } - /// - /// 根据采集间隔,确定页面时间跨度和页面开始时间 - /// - /// 给定时间(文本) - /// 采集间隔(分钟) - /// 页面时间跨度 - /// 页面显示的开始时间 - 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; - } - } - /// - /// 获取系统的整点时刻 - /// - /// - 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 - - /// - /// 响应可编辑区域的点击事件 - /// - /// - /// - 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(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(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(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(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(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; - } - } -} diff --git a/AIMSEntity/AreaManage/DrugsManage.cs b/AIMSEntity/AreaManage/DrugsManage.cs deleted file mode 100644 index 2bea812..0000000 --- a/AIMSEntity/AreaManage/DrugsManage.cs +++ /dev/null @@ -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 - { - /// - /// 药品区域 - /// - public RectangleFramePackObj drugPpack; - public LinePackObj H3pack; - public LinePackObj H5pack; - public LinesPackObj lines; - public int RowsCount; - /// - /// 当前手术对象 - /// - 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; - } - - /// - /// 初始画的后置方法 - /// - public override void FollowUpMethod() - { - lines = template.GetPackObjectOTag("DrugsManage_LinesPackObj_5"); - RowsCount =Convert.ToInt32(lines.XPageSpan / lines.XMajorGridStep); - H3pack = template.GetPackObjectOTag("DrugsManage_LinePackObj_6"); - H5pack = template.GetPackObjectOTag("DrugsManage_LinePackObj_9"); - drugPpack = template.GetPackObjectOTag("DrugsManage_RectangleFramePackObj_2"); - } - #endregion - - #region 重写的事件 - /// - /// 鼠标点击画板 - /// - /// - /// - 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(); - } - - /// - /// 画加药 - /// - 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; - } - /// - /// 根据顶部加药序号,确定数值生命体征的纵向位置(以1为单位) - /// - /// - /// - 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 - } -} diff --git a/AIMSEntity/AreaManage/IconManage.cs b/AIMSEntity/AreaManage/IconManage.cs deleted file mode 100644 index 771bb8f..0000000 --- a/AIMSEntity/AreaManage/IconManage.cs +++ /dev/null @@ -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; - /// - /// 当前手术对象 - /// - 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; - } - - /// - /// 初始画的后置方法 - /// - public override void FollowUpMethod() - { - H5pack = template.GetPackObjectOTag("IconManage_LinePackObj_5"); - IconPpack = template.GetPackObjectOTag("IconManage_RectangleFramePackObj_2"); - } - - #region 重写的事件 - /// - /// 鼠标点击画板 - /// - /// - /// - 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 格式化字符串长度 - /// - /// 格式化字符串长度 - /// - /// 输入的字符串 - /// 截取的长度 - /// 被截取完的字符串 - public static List stringformat(string str, int n) - { - /// - ///格式化字符串长度,超出部分显示省略号,区分汉字跟字母。汉字2个字节,字母数字一个字节 - /// - List strList = new List(); - 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; - } - /// - /// 根据顶部加药序号,确定数值生命体征的纵向位置(以1为单位) - /// - /// - /// - 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; - } - /// - /// 根据生理参数名称获取对应的目标值 - /// - /// 生理参数XML路径 - /// 生理参数名称 - /// 目标生理参数项目 - /// 生理参数项的值 - 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; - } - } -} diff --git a/AIMSEntity/AreaManage/MonitorAreaManage.cs b/AIMSEntity/AreaManage/MonitorAreaManage.cs deleted file mode 100644 index 81ea0e5..0000000 --- a/AIMSEntity/AreaManage/MonitorAreaManage.cs +++ /dev/null @@ -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 -{ - /// - /// 监测管理类 - /// - public class MonitorManage : AreaManageBase - { - public MonitorManage() { } - public MonitorManage(object _operationRecor, ZedGraphControl _zedControl, TemplateManage _template, string _name) : base(_operationRecor, _zedControl,_template , _name) - { } - - #region 重写的事件 - /// - /// 鼠标点击画板 - /// - /// - /// - 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 重写的事件结束 - } -} diff --git a/AIMSEntity/AreaManage/RemarkManage.cs b/AIMSEntity/AreaManage/RemarkManage.cs deleted file mode 100644 index 7f5be91..0000000 --- a/AIMSEntity/AreaManage/RemarkManage.cs +++ /dev/null @@ -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; - - /// - /// 当前手术对象 - /// - 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; - } - - /// - /// 初始画的后置方法 - /// - public override void FollowUpMethod() - { - H3pack = template.GetPackObjectOTag("RemarkManage_LinePackObj_4"); - H4pack = template.GetPackObjectOTag("RemarkManage_LinePackObj_5"); - H5pack = template.GetPackObjectOTag("RemarkManage_LinePackObj_8"); - H6pack = template.GetPackObjectOTag("RemarkManage_LinePackObj_9"); - remarkPpack = template.GetPackObjectOTag("RemarkManage_RectangleFramePackObj_2"); - } - #endregion - - #region 重写的事件 - /// - /// 鼠标点击画板 - /// - /// - /// - 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 stringformat(string str, int n) - { - /// - ///格式化字符串长度,超出部分显示省略号,区分汉字跟字母。汉字2个字节,字母数字一个字节 - /// - List strList = new List(); - 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; - } - - /// - /// 根据顶部加药序号,确定加药的纵向位置(以1为单位) - /// - /// - /// - 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; - } - - - /// - /// 响应可编辑区域的点击事件 - /// - /// - /// - 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(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 - { - } - } - } -} diff --git a/AIMSEntity/BLL/AutoGenerate/BCharges.cs b/AIMSEntity/BLL/AutoGenerate/BCharges.cs new file mode 100644 index 0000000..d4f9f1f --- /dev/null +++ b/AIMSEntity/BLL/AutoGenerate/BCharges.cs @@ -0,0 +1,160 @@ +using System; +using AIMSDAL; +using AIMSModel; +using System.Collections; +using System.Collections.Generic; + +namespace AIMSBLL +{ + public partial class BCharges + { + #region 插入实体操作部份 + /// + /// 插入实体 + /// + /// 实体类对象 + /// 标识列值或影响的记录行数 + public static int Insert(Charges charges) + { + return DCharges.Insert(charges); + } + #endregion + + #region 删除实体操作 + /// + /// 删除实体 + /// + /// 实体类对象 + /// 影响的记录行数 + public static int Delete(Charges charges) + { + return DCharges.Delete(charges); + } + /// + /// 根据对象查询语句删除 + /// + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + public static int Delete(string oql, ParameterList parameters) + { + return DCharges.Delete(oql,parameters); + } + #endregion + + #region 更新实体操作 + + /// + /// 更新实体 + /// + /// 实体类对象 + /// 影响的记录行数 + public static int Update(Charges charges) + { + return DCharges.Update(charges); + } + + /// + /// 根据对象查询语句更新实体 + /// + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + public static int Update(string oql, ParameterList parameters) + { + return DCharges.Update(oql,parameters); + } + #endregion + + #region 查询实体集合 + /// + /// \查询实体集合 + /// + /// 实体类对象集合 + public static List Select() + { + return DCharges.Select(); + } + /// + /// 递归查询实体集合 + /// + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + public static List Select(RecursiveType recursiveType, int recursiveDepth) + { + return DCharges.Select(recursiveType, recursiveDepth); + } + + /// + /// 根据对象查询语句查询实体集合 + /// + /// 对象查询语句 + /// 参数列表 + /// 实体类对象集合 + public static List Select(string oql, ParameterList parameters) + { + return DCharges.Select(oql, parameters); + } + + /// + /// 根据对象查询语句递归查询实体集合 + /// + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + public static List Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth) + { + return DCharges.Select(oql, parameters, recursiveType, recursiveDepth); + } + #endregion + + #region 查询单个实体 + /// + /// 更据对象查询语句查询单个实体 + /// + /// 对象查询语句 + /// 参数列表 + /// 实体对象 + public static Charges SelectSingle(string oql, ParameterList parameters) + { + return DCharges.SelectSingle(oql, parameters); + } + /// + /// 更据对象查询语句递归查询单个实体 + /// + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体对象 + public static Charges SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth) + { + return DCharges.SelectSingle(oql, parameters, recursiveType, recursiveDepth); + } + + /// + /// 按主键字段查询特定实体 + /// + /// 主键值 + /// 实体类对象 + public static Charges SelectSingle(int? id) + { + return DCharges.SelectSingle(id); + } + + /// + /// 更据主键递归查询单个实体 + /// + /// 递归类型 + /// 递归深度 + /// 实体对象 + public static Charges SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth) + { + return DCharges.SelectSingle(id, recursiveType, recursiveDepth); + } + #endregion + } +} diff --git a/AIMSEntity/BLL/Extension/BCharges.cs b/AIMSEntity/BLL/Extension/BCharges.cs new file mode 100644 index 0000000..3a515c6 --- /dev/null +++ b/AIMSEntity/BLL/Extension/BCharges.cs @@ -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); + } + } +} diff --git a/AIMSEntity/BLL/Extension/BPerson.cs b/AIMSEntity/BLL/Extension/BPerson.cs index 4584632..7b2a8f7 100644 --- a/AIMSEntity/BLL/Extension/BPerson.cs +++ b/AIMSEntity/BLL/Extension/BPerson.cs @@ -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) diff --git a/AIMSEntity/DAL/AutoGenerate/DCharges.cs b/AIMSEntity/DAL/AutoGenerate/DCharges.cs new file mode 100644 index 0000000..ffca2b9 --- /dev/null +++ b/AIMSEntity/DAL/AutoGenerate/DCharges.cs @@ -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 插入实体操作部份 + /// + /// 插入 + /// + /// Command对象 + /// 实体类对象 + /// 标识列值或影响的记录行数 + 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()); + } + /// + /// 不使用事务的插入方法 + /// + /// 实体类对象 + /// 标识列值或影响的记录行数 + internal static int Insert(Charges charges) + { + using(SqlConnection conn=new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + return Insert(cmd, charges); + } + } + } + + /// + /// 使用事务的插入方法 + /// + /// 实现共享Connection的对象 + /// 实体类对象 + /// 标识列值或影响的记录行数 + internal static int Insert(Connection connection,Charges charges) + { + return Insert(connection.Command, charges); + } + #endregion + + #region 删除实体操作 + + /// + /// 删除 + /// + /// Command对象 + /// 实体类对象 + /// 影响的记录行数 + 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(); + } + /// + /// 不使用事务的删除方法 + /// + /// 实体类对象 + /// 影响的记录行数 + internal static int Delete(Charges charges) + { + using (SqlConnection conn = new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + return ExcuteDeleteCommand(cmd, charges); + } + } + } + /// + /// 使用事务的删除方法 + /// + /// 实现共享Connection的对象 + /// 实体类对象 + /// 影响的记录行数 + internal static int Delete(Connection connection,Charges charges) + { + return ExcuteDeleteCommand(connection.Command, charges); + } + + /// + /// 执行删除命令 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + 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(); + } + + /// + /// 不使用事务的删除方法 + /// + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + 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); + } + } + } + + /// + /// 使用事务的删除方法 + /// + /// 实现共享Connection的对象 + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + internal static int Delete(Connection connection, string oql, ParameterList parameters) + { + return ExcuteDeleteCommand(connection.Command, oql, parameters); + } + + #endregion + + #region 更新实体操作 + + /// + /// 更新 + /// + /// Command对象 + /// 实体类对象 + /// 影响的记录行数 + 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(); + } + + /// + /// 不使用事务的更新方法 + /// + /// 实体类对象 + /// 影响的记录行数 + internal static int Update(Charges charges) + { + using(SqlConnection conn=new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + return ExcuteUpdateCommand(cmd, charges); + } + } + } + /// + /// 使用事务的更新方法 + /// + /// 实现共享Connection的对象 + /// 实体类对象 + /// 影响的记录行数 + internal static int Update(Connection connection,Charges charges) + { + return ExcuteUpdateCommand(connection.Command, charges); + } + /// + /// 执行更新命令 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + 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(); + } + + /// + /// 不使用事务的更新方法 + /// + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + 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); + } + } + } + + /// + /// 使用事务的更新方法 + /// + /// 实现共享Connection的对象 + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + internal static int Update(Connection connection, string oql, ParameterList parameters) + { + return ExcuteUpdateCommand(connection.Command, oql, parameters); + } + #endregion + + #region 查询实体集合 + /// + /// 执行Command获取对象列表 + /// + /// Command对象 + /// 递归类型 + /// 递归深度 + /// 实体类对象列表 + internal static List ExcuteSelectCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth) + { + List chargesList = new List(); + using (SqlDataReader dr = cmd.ExecuteReader()) + { + while (dr.Read()) + { + Charges charges = DataReaderToEntity(dr); + chargesList.Add(charges); + } + } + return chargesList; + } + /// + /// 执行查询命令 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + internal static List 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); + } + + /// + /// 根据对象查询语句查询实体集合 + /// + /// 实体类对象集合 + internal static List 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); + } + } + } + /// + /// 根据对象查询语句查询实体集合 + /// + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + internal static List 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); + } + } + } + + /// + /// 根据对象查询语句查询实体集合 + /// + /// 对象查询语句 + /// 参数列表 + /// 实体类对象集合 + internal static List 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); + } + } + } + + /// + /// 根据对象查询语句查询实体集合 + /// + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + internal static List 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); + } + } + } + + /// + /// 根据对象查询语句查询实体集合(启用事务) + /// + /// 连接对象 + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + internal static List Select(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth) + { + return ExcuteSelectCommand(connection.Command, oql, parameters,recursiveType, recursiveDepth); + } + #endregion + + #region 查询单个实体 + + /// + /// 递归查询单个实体 + /// + /// Command对象 + /// 递归类型 + /// 递归深度 + /// 实体对象 + 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; + } + /// + /// 更据对象查询语句递归查询单个实体 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体对象 + 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); + } + + /// + /// 更据对象查询语句递归查询单个实体 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体对象 + 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); + } + } + } + + /// + /// 更据对象查询语句查询单个实体 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 实体对象 + internal static Charges SelectSingle(string oql, ParameterList parameters) + { + return SelectSingle(oql,parameters,RecursiveType.Parent,1); + } + + /// + /// 更据对象查询语句并启用事务查询单个实体 + /// + /// 连接对象 + /// 对象查询语句 + /// 参数列表 + /// 实体对象 + internal static Charges SelectSingle(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth) + { + return ExcuteSelectSingleCommand(connection.Command, oql, parameters, recursiveType, recursiveDepth); + } + + /// + /// 更据主键值递归查询单个实体 + /// + /// Command对象 + /// 主键值 + /// 递归类型 + /// 递归深度 + /// 实体对象 + 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); + } + + /// + /// 按主键字段查询特定实体 + /// + /// 主键值 + /// 实体类对象 + 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); + } + } + } + /// + /// 按主键字段查询特定实体 + /// + /// 主键值 + /// 递归类型 + /// 递归深度 + /// 实体类对象 + 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); + } + } + } + + /// + /// 使用事务并按主键字段查询特定实体 + /// + /// 连接对象 + /// 主键值 + /// 实体类对象 + internal static Charges SelectSingle(Connection connection,int? id, RecursiveType recursiveType, int recursiveDepth) + { + return SelectSingle(connection.Command, id, recursiveType, recursiveDepth); + } + #endregion + + + /// + /// 从DataReader中取出值生成实体对象 + /// + /// 查询对象 + /// 过滤条件字符串 + 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; + } + } +} + diff --git a/AIMSEntity/DAL/AutoGenerate/DDrugs.cs b/AIMSEntity/DAL/AutoGenerate/DDrugs.cs index 6b04d31..e1c321a 100644 --- a/AIMSEntity/DAL/AutoGenerate/DDrugs.cs +++ b/AIMSEntity/DAL/AutoGenerate/DDrugs.cs @@ -669,6 +669,10 @@ namespace AIMSDAL { entity.Comment = dr["Comment"].ToString(); } + if (dr["Price"] != System.DBNull.Value) + { + entity.Price = dr["Price"].ToString(); + } return entity; } } diff --git a/AIMSEntity/DAL/Extension/DCharges.cs b/AIMSEntity/DAL/Extension/DCharges.cs new file mode 100644 index 0000000..3ae9c10 --- /dev/null +++ b/AIMSEntity/DAL/Extension/DCharges.cs @@ -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 + { + } +} diff --git a/AIMSEntity/DAL/Extension/DDepartment.cs b/AIMSEntity/DAL/Extension/DDepartment.cs index aba1bba..60b35fa 100644 --- a/AIMSEntity/DAL/Extension/DDepartment.cs +++ b/AIMSEntity/DAL/Extension/DDepartment.cs @@ -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 "); diff --git a/AIMSEntity/DAL/Extension/DOperationApply.cs b/AIMSEntity/DAL/Extension/DOperationApply.cs index a4ce1cd..151ddc3 100644 --- a/AIMSEntity/DAL/Extension/DOperationApply.cs +++ b/AIMSEntity/DAL/Extension/DOperationApply.cs @@ -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()); } diff --git a/AIMSEntity/DAL/Extension/DPerson.cs b/AIMSEntity/DAL/Extension/DPerson.cs index 968b212..6849002 100644 --- a/AIMSEntity/DAL/Extension/DPerson.cs +++ b/AIMSEntity/DAL/Extension/DPerson.cs @@ -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) { diff --git a/AIMSEntity/Extensions/SelectPatient.cs b/AIMSEntity/Extensions/SelectPatient.cs index 913f48f..3701abe 100644 --- a/AIMSEntity/Extensions/SelectPatient.cs +++ b/AIMSEntity/Extensions/SelectPatient.cs @@ -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) diff --git a/AIMSEntity/Model/AutoGenerate/Charges.cs b/AIMSEntity/Model/AutoGenerate/Charges.cs new file mode 100644 index 0000000..31839ed --- /dev/null +++ b/AIMSEntity/Model/AutoGenerate/Charges.cs @@ -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; + + + /// + /// + /// + public int? Id + { + get{ return id; } + set{ id=value; } + } + /// + /// + /// + public string Code + { + get{ return code; } + set{ code=value; } + } + /// + /// + /// + public string Name + { + get{ return name; } + set{ name=value; } + } + /// + /// + /// + public string HelpCode + { + get{ return helpCode; } + set{ helpCode=value; } + } + /// + /// + /// + public string PrintName + { + get{ return printName; } + set{ printName=value; } + } + /// + /// + /// + public string Unit + { + get{ return unit; } + set{ unit=value; } + } + /// + /// + /// + public string PackUnit + { + get{ return packUnit; } + set{ packUnit=value; } + } + /// + /// + /// + public string Price + { + get{ return price; } + set{ price=value; } + } + /// + /// + /// + public string Stock + { + get{ return stock; } + set{ stock=value; } + } + /// + /// + /// + public string Group + { + get{ return group; } + set{ group=value; } + } + /// + /// + /// + public string Bill + { + get{ return bill; } + set{ bill=value; } + } + /// + /// + /// + public string Audit + { + get{ return audit; } + set{ audit=value; } + } + /// + /// + /// + public string Form + { + get{ return form; } + set{ form=value; } + } + /// + /// + /// + public string Class + { + get{ return cls; } + set{ cls=value; } + } + /// + /// + /// + public string YiBaoCode + { + get{ return yiBaoCode; } + set{ yiBaoCode=value; } + } + /// + /// + /// + public string YiBaoName + { + get{ return yiBaoName; } + set{ yiBaoName=value; } + } + /// + /// + /// + public string VersionNo + { + get{ return versionNo; } + set{ versionNo=value; } + } + /// + /// + /// + public string ZFBL + { + get{ return zFBL; } + set{ zFBL=value; } + } + /// + /// + /// + public string Comment + { + get{ return comment; } + set{ comment=value; } + } + /// + /// + /// + public int? IsValid + { + get{ return isValid; } + set{ isValid=value; } + } + } +} diff --git a/AIMSEntity/Model/AutoGenerate/Drugs.cs b/AIMSEntity/Model/AutoGenerate/Drugs.cs index 7d6720c..598cd15 100644 --- a/AIMSEntity/Model/AutoGenerate/Drugs.cs +++ b/AIMSEntity/Model/AutoGenerate/Drugs.cs @@ -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; } /// /// /// diff --git a/AIMSEntity/Model/Extension/Charges.cs b/AIMSEntity/Model/Extension/Charges.cs new file mode 100644 index 0000000..c98e219 --- /dev/null +++ b/AIMSEntity/Model/Extension/Charges.cs @@ -0,0 +1,10 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using AIMSDAL; +namespace AIMSModel +{ + public partial class Charges + { + } +} diff --git a/AIMSEntity/ObjectQuery/ChargesMap.cs b/AIMSEntity/ObjectQuery/ChargesMap.cs new file mode 100644 index 0000000..785e792 --- /dev/null +++ b/AIMSEntity/ObjectQuery/ChargesMap.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace AIMSObjectQuery +{ + internal partial class ChargesMap:IMap + { + private Dictionary dictionary = new Dictionary(); + 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 + } +} diff --git a/DrawGraph/Graph/ZUtil.cs b/DrawGraph/Graph/ZUtil.cs index f8aab09..c436a56 100644 --- a/DrawGraph/Graph/ZUtil.cs +++ b/DrawGraph/Graph/ZUtil.cs @@ -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); /// /// 在ZedGraphControl上添加文字,默认使用宋体9号黑色字体