From 6aba9a6aa5298eab7383fd0f617d7d0aa21607ac Mon Sep 17 00:00:00 2001 From: leomon Date: Sat, 8 Apr 2023 15:11:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BA=BB=E9=86=89=E8=8D=AF=E5=93=81=E7=99=BB?= =?UTF-8?q?=E8=AE=B0=20=E5=88=A0=E9=99=A4=E6=96=87=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AIMS/AIMS.csproj | 18 + AIMS/DocManager/frmDocument3.cs | 36 +- AIMS/DocManager/frmDocument3.designer.cs | 34 +- AIMS/OperationAanesthesia/frmFeesRecord.cs | 18 +- .../frmInstrumentRecord2.cs | 112 +- AIMS/OperationAfter/frmOperationCharg2.cs | 21 + .../frmOperationCharg2.designer.cs | 396 +++--- AIMS/OperationAfter/frmOperationCharg3.cs | 436 ++++-- .../frmOperationCharg3.designer.cs | 587 +++----- AIMS/OperationAfter/frmOperationCharg3.resx | 63 - AIMS/OperationAfter/frmOperationCharg5.cs | 212 +++ .../frmOperationCharg5.designer.cs | 1218 +++++++++++++++++ AIMS/OperationAfter/frmOperationCharg5.resx | 204 +++ AIMS/OperationAfter/frmOperationManage.cs | 1 - .../OremrUserControl/EventCodeCompilerBill.cs | 2 +- AIMS/OremrUserControl/ucDocument.cs | 14 +- AIMSEntity/BLL/Extension/BFeesRecordReport.cs | 33 + AIMSEntity/BLL/Extension/BOperationRecord.cs | 8 +- AIMSEntity/Extensions/BOperationReview.cs | 13 + AIMSEntity/Model/AutoGenerate/FeesRecord.cs | 10 +- .../DocumentEntity/DocumentExtension.cs | 117 +- 21 files changed, 2693 insertions(+), 860 deletions(-) create mode 100644 AIMS/OperationAfter/frmOperationCharg5.cs create mode 100644 AIMS/OperationAfter/frmOperationCharg5.designer.cs create mode 100644 AIMS/OperationAfter/frmOperationCharg5.resx diff --git a/AIMS/AIMS.csproj b/AIMS/AIMS.csproj index a07f454..629c3a5 100644 --- a/AIMS/AIMS.csproj +++ b/AIMS/AIMS.csproj @@ -239,6 +239,12 @@ frmSelectPatientGoodsBill2.cs + + Form + + + frmDrugRegister.cs + Form @@ -263,6 +269,12 @@ frmOperationCharg2.cs + + Form + + + frmOperationCharg5.cs + Form @@ -898,6 +910,9 @@ frmSelectPatientGoodsBill2.cs + + frmDrugRegister.cs + frmPrescriptionDocument.cs @@ -910,6 +925,9 @@ frmOperationCharg2.cs + + frmOperationCharg5.cs + frmOperationCharg4.cs diff --git a/AIMS/DocManager/frmDocument3.cs b/AIMS/DocManager/frmDocument3.cs index fc2e102..64b74d7 100644 --- a/AIMS/DocManager/frmDocument3.cs +++ b/AIMS/DocManager/frmDocument3.cs @@ -3,6 +3,7 @@ using AIMSBLL; using AIMSExtension; using AIMSModel; using DCSoftDotfuscate; +using DevComponents.AdvTree; using DevComponents.DotNetBar; using DocumentManagement; using System; @@ -37,7 +38,7 @@ namespace AIMS.OperationAfter.UI public frmDocument3() { InitializeComponent(); - + //基本信息初始化 Patient = new PatientRecord(); } @@ -77,9 +78,11 @@ namespace AIMS.OperationAfter.UI ucClassify.RefreshTree(Patient.PatientId); tsbDoc.TabItemClose += new TabStrip.UserActionEventHandler(tsbDoc_TabItemClose); - - if (PublicMethod.OperatorNo=="admin") - buttonX2.Visible= true; + + if (PublicMethod.OperatorNo == "admin" || PublicMethod.RoleName.Contains("删除医疗文书")) + { + btnDelete.Visible = true; + } } /// /// 手术间信息加载到treeview @@ -94,7 +97,7 @@ namespace AIMS.OperationAfter.UI DataTable vPlanedOpeList = BOperationApply.GetOperationFrontDataTable(beginTime.ToString("yyyy-MM-dd 00:00:00"), endTime.ToString("yyyy-MM-dd 23:59:59")); if (vPlanedOpeList.Rows.Count <= 0) return; - vPlanedOpeList = AIMSExtension.PublicMethod.GetNewDataTable(vPlanedOpeList, "State not IN ('退回') ", ""); + vPlanedOpeList = AIMSExtension.PublicMethod.GetNewDataTable(vPlanedOpeList, "State not IN ('退回','作废') ", ""); List list = new List(); foreach (var item in OperationRooms) @@ -435,12 +438,33 @@ namespace AIMS.OperationAfter.UI MessageBox.Show("请先选择患者!", "系统提示"); return; } - EMRExtension.OpenEMRS(Patient.PatientId, Patient.ApplyId); + EMRExtension.OpenEMRS(Patient.PatientId, Patient.ApplyId); } private void buttonX2_Click(object sender, EventArgs e) { BOperationReview.SetDocumentXmlStatic("不计费耗材使用清单"); } + + private void btnDelete_Click(object sender, EventArgs e) + { + //判断是否选择患者 + if (this.Patient.PatientId == 0 || tsbDoc.SelectedTab == null) + { + MessageBox.Show("请先选择患者!", "系统提示"); + return; + } + PrintDocument DModel = DocumentDAL.GetDocumentbyName(tsbDoc.SelectedTab.Text, Patient.PatientId); + if (DModel != null && DModel.Id > 0) + { + DialogResult dialogResult = MessageBox.Show("确认要删除 " + tsbDoc.SelectedTab.Text + " 文书?", "系统提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question); + if (dialogResult == DialogResult.Yes) + { + DocumentDAL.DeletePrintDocument2(DModel); + this.ucClassify.RefreshTree(this.Patient.PatientId); + CloseTab(); + } + } + } } } diff --git a/AIMS/DocManager/frmDocument3.designer.cs b/AIMS/DocManager/frmDocument3.designer.cs index 12c2c55..86f775b 100644 --- a/AIMS/DocManager/frmDocument3.designer.cs +++ b/AIMS/DocManager/frmDocument3.designer.cs @@ -42,11 +42,11 @@ this.expandableSplitter2 = new DevComponents.DotNetBar.ExpandableSplitter(); this.panel5 = new System.Windows.Forms.Panel(); this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); - this.buttonX2 = new DevComponents.DotNetBar.ButtonX(); this.buttonX1 = new DevComponents.DotNetBar.ButtonX(); this.btnSel = new DevComponents.DotNetBar.ButtonX(); this.lblPatient = new DevComponents.DotNetBar.LabelX(); this.expandablePanel1 = new DevComponents.DotNetBar.ExpandablePanel(); + this.btnDelete = new DevComponents.DotNetBar.ButtonX(); this.panel2.SuspendLayout(); this.groupBox2.SuspendLayout(); this.panel3.SuspendLayout(); @@ -267,7 +267,7 @@ // panelEx1 // this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; - this.panelEx1.Controls.Add(this.buttonX2); + this.panelEx1.Controls.Add(this.btnDelete); this.panelEx1.Controls.Add(this.buttonX1); this.panelEx1.Controls.Add(this.btnSel); this.panelEx1.Controls.Add(this.lblPatient); @@ -287,20 +287,6 @@ this.panelEx1.Style.GradientAngle = 90; this.panelEx1.TabIndex = 0; // - // buttonX2 - // - this.buttonX2.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.buttonX2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.buttonX2.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.buttonX2.Location = new System.Drawing.Point(613, 11); - this.buttonX2.Margin = new System.Windows.Forms.Padding(2); - this.buttonX2.Name = "buttonX2"; - this.buttonX2.Size = new System.Drawing.Size(76, 23); - this.buttonX2.TabIndex = 6; - this.buttonX2.Text = "同步数据"; - this.buttonX2.Visible = false; - this.buttonX2.Click += new System.EventHandler(this.buttonX2_Click); - // // buttonX1 // this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; @@ -367,6 +353,20 @@ this.expandablePanel1.TitleStyle.GradientAngle = 90; this.expandablePanel1.TitleText = "文档目录"; // + // btnDelete + // + this.btnDelete.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnDelete.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnDelete.Location = new System.Drawing.Point(612, 11); + this.btnDelete.Margin = new System.Windows.Forms.Padding(2); + this.btnDelete.Name = "btnDelete"; + this.btnDelete.Size = new System.Drawing.Size(76, 23); + this.btnDelete.TabIndex = 6; + this.btnDelete.Text = "删除文书"; + this.btnDelete.Visible = false; + this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); + // // frmDocument3 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -412,6 +412,6 @@ private DevComponents.DotNetBar.ExpandablePanel expandablePanel1; private DevComponents.DotNetBar.ButtonX btnSel; private DevComponents.DotNetBar.ButtonX buttonX1; - private DevComponents.DotNetBar.ButtonX buttonX2; + private DevComponents.DotNetBar.ButtonX btnDelete; } } \ No newline at end of file diff --git a/AIMS/OperationAanesthesia/frmFeesRecord.cs b/AIMS/OperationAanesthesia/frmFeesRecord.cs index 4336e96..20b2cd8 100644 --- a/AIMS/OperationAanesthesia/frmFeesRecord.cs +++ b/AIMS/OperationAanesthesia/frmFeesRecord.cs @@ -629,9 +629,15 @@ namespace AIMS.PublicUI.UI { feesR.FeeId = drug.Id.ToString(); feesR.DrugType = drug.DrugKind; - feesR.Extend1 = dr.Cells[6].Tag.ToString();//剂量 - feesR.Extend2 = dr.Cells[7].Tag.ToString();//途径 - feesR.Extend3 = dr.Cells[5].Tag.ToString();//是否打印处方单 + feesR.Extend1 = "";//剂量 + feesR.Extend2 = "uv";//途径 + feesR.Extend3 = "";//是否打印处方单 + if (dr.Cells[6].Tag != null) + feesR.Extend1 = dr.Cells[6].Tag.ToString();//剂量 + if (dr.Cells[7].Tag != null) + feesR.Extend2 = dr.Cells[7].Tag.ToString();//途径 + if (dr.Cells[5].Tag != null) + feesR.Extend3 = dr.Cells[5].Tag.ToString();//是否打印处方单 } } else @@ -693,8 +699,8 @@ namespace AIMS.PublicUI.UI feesR.IsInsure = ""; feesR.InsureNO = ""; feesR.LimitDrug = ""; - feesR.Extend4 = ""; - feesR.Extend5 = ""; + feesR.Extend4 = ""; + feesR.Extend5 = "韩智慧"; feesR.Id = BFeesRecord.Insert(feesR); @@ -1015,7 +1021,7 @@ namespace AIMS.PublicUI.UI } AddNewNullRows(); dgvChargsRecord.ClearSelection(); - SetChargDrugPrice(); + SetChargDrugPrice(); }; frmChargSelect.ShowDialog(); } diff --git a/AIMS/OperationAanesthesia/frmInstrumentRecord2.cs b/AIMS/OperationAanesthesia/frmInstrumentRecord2.cs index f16be1d..78e89cc 100644 --- a/AIMS/OperationAanesthesia/frmInstrumentRecord2.cs +++ b/AIMS/OperationAanesthesia/frmInstrumentRecord2.cs @@ -11,6 +11,7 @@ using DCSoft.Writer.Dom; using DevComponents.Editors.DateTimeAdv; using DocumentManagement; using DrawGraph; +using HelperDB; using Newtonsoft.Json; using System; using System.CodeDom.Compiler; @@ -217,7 +218,7 @@ namespace AIMS.OperationAanesthesia { _record.FactEventsList.Add(Inevent); ReviewEvent(); - PublicMethod.WriteLog( Inevent.EventName, _record.PatientId.Value,1, "护理"); + PublicMethod.WriteLog(Inevent.EventName, _record.PatientId.Value, 1, "护理"); } } /// @@ -1522,26 +1523,8 @@ namespace AIMS.OperationAanesthesia //new frmMessageBox().Show(); } myEditControl.Document.Modified = false; - ////更新ASA分级与心功能分级 - //if (DModel.XmlFileName == "麻醉术前访视单") - //{ - // var asa = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement - // && (x as XTextInputFieldElement).ToolTip == "ASA分级").FirstOrDefault(); - // string strASA = asa == null ? "" : asa.Text; - // var hf = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement - // && (x as XTextInputFieldElement).ToolTip == "心功能分级").FirstOrDefault(); - // string strH = hf == null ? "" : hf.Text; - // BOperationApply.UpdateASA(Patient.ApplyId, strASA, strH); - //} - } - catch - { - throw; - } - try - { _record.InstrumentList.OperationRecordId = this._record.Id; if (_applianceUseType != null) { @@ -1554,9 +1537,15 @@ namespace AIMS.OperationAanesthesia } _record.InstrumentList.TagPicture = "";// Convert.ToBase64String(PublicToDoument.ImageToBytes(pictureBox1.Image)); _record.InstrumentList.JsonTextData = "";// PublicToDoument.SerializeControl(panel18, _record, new List ()); + //_record.InstrumentList.InstrumentNurse = txtInstrumentNurse.Text; //_record.InstrumentList.TourNurse = txtTourNurse.Text; - //_record.InstrumentList.Remark = txtRemark.Text; + var operation = myEditControl.Document.Fields.ToArray().Where(x => x.ID == "KB20180604142607822").FirstOrDefault(); + if (operation != null) + { + _record.InstrumentList.Remark = operation.Text; + DBManage.AddOperation(_record, GetOperationId(operation.Text)); + } _record.InstrumentList.OperatorNo = PublicMethod.OperatorNo; _record.InstrumentList.OperatorName = PublicMethod.OperatorName; _record.InstrumentList.OperateDate = DateTime.Now; @@ -1568,8 +1557,6 @@ namespace AIMS.OperationAanesthesia { BOperationRecordInstrumentList.Update(_record.InstrumentList); } - //_record.InstrumentList.ApplianceRecordList = GetApplianceRecord(); - //BApplianceRecord.InsertListData(_record.InstrumentList.ApplianceRecordList); } catch (Exception ex) @@ -1577,55 +1564,46 @@ namespace AIMS.OperationAanesthesia PublicMethod.WriteLog(ex); } } - //private void SaveInstrument2(object sender) - //{ - // try - // { - // btnSelectPatient.Focus(); - // if (_record.InstrumentList2 == null) - // { - // _record.InstrumentList2 = new OperationRecordInstrumentList(); - // } - // _record.InstrumentList2.OperationRecordId = this._record.Id; - // if (_applianceUseType2 != null) - // { - // List list = new List(); - // foreach (ApplianceUseType item in _applianceUseType2) - // { - // list.Add(item.Id.Value); - // } - // _record.InstrumentList2.ApplianceUseType = string.Join(",", list.ToArray()); - // } - // _record.InstrumentList2.TagPicture = ""; - // _record.InstrumentList2.JsonTextData = ""; - // //_record.InstrumentList2.InstrumentNurse = txtInstrumentNurse2.Text; - // //_record.InstrumentList2.TourNurse = txtTourNurse2.Text; - // //_record.InstrumentList2.Remark = txtRemark2.Text; - // _record.InstrumentList2.OperatorNo = PublicMethod.OperatorNo; - // _record.InstrumentList2.OperatorName = PublicMethod.OperatorName; - // _record.InstrumentList2.OperateDate = DateTime.Now; - // if (_record.InstrumentList2.Id == null || _record.InstrumentList2.Id == 0) - // { - // _record.InstrumentList2.Id = BOperationRecordInstrumentList.Insert(_record.InstrumentList2); - // } - // else - // { - // BOperationRecordInstrumentList.Update(_record.InstrumentList2); - // } - // _record.InstrumentList2.ApplianceRecordList = GetApplianceRecord2(); - // BApplianceRecord.InsertListData(_record.InstrumentList2.ApplianceRecordList); - - // } - // catch (Exception ex) - // { - // PublicMethod.WriteLog(ex); - // } - //} private void superTabMain_SelectedTabChanged(object sender, DevComponents.DotNetBar.SuperTabStripSelectedTabChangedEventArgs e) { } + private string GetOperationId(string namestr) + { + List result = new List(); + List names = new List(); + if (namestr.Contains(",")) + { + names = namestr.Split(',').ToList(); + } + else if (namestr.Contains(",")) + { + names = namestr.Split(',').ToList(); + } + else if (namestr.Contains("+")) + { + names = namestr.Split('+').ToList(); + } + foreach (var name in names) + { + DataTable dt = DBHelper.GetDataTable("select * from Operation where Name ='" + name + "'"); + if (dt.Rows.Count == 0) + { + DBHelper.ExecNonQuery(string.Concat(new Object[]{ + "insert into Operation(ICDCode,Name,HelpCode,IsValid,UseRate,OperatorNo,[OperatorName],OperateDate) values('','"+name+"','"+PublicMethod.GetFirstLetter(name)+"',1,1,'admin','系统管理员','"+DateTime.Now+"')"})); + } + dt = DBHelper.GetDataTable("select * from Operation where Name ='" + name + "'"); + if (dt.Rows.Count > 0) + { + for (int j = 0; j < dt.Rows.Count; j++) + { + result.Add(dt.Rows[0]["Id"].ToString()); + } + } + } + return string.Join(",", result.ToArray()); + } /// /// 得到当前使用的器械对象集合 /// @@ -1669,7 +1647,7 @@ namespace AIMS.OperationAanesthesia i++; } return applianceRecordList; - } + } #endregion #endregion diff --git a/AIMS/OperationAfter/frmOperationCharg2.cs b/AIMS/OperationAfter/frmOperationCharg2.cs index ce4fdba..d8af4e9 100644 --- a/AIMS/OperationAfter/frmOperationCharg2.cs +++ b/AIMS/OperationAfter/frmOperationCharg2.cs @@ -282,5 +282,26 @@ namespace AIMS.OperationAfter.UI document.ShowDialog(); } } + + private void button3_Click(object sender, EventArgs e) + { + List list = new List(); + foreach (DataGridViewRow item in dgvOperation.Rows) + { + bool isChoose = bool.Parse(item.Cells[6].EditedFormattedValue.ToString()); + if (isChoose) + { + string SelectId = item.Cells[0].Value.ToString();// as string; + if (SelectId != "") + list.Add(Convert.ToInt32(SelectId)); + } + } + if (list.Count > 0) + { + frmDrugRegister document = new frmDrugRegister(); + document.RecordIds = list; + document.ShowDialog(); + } + } } } diff --git a/AIMS/OperationAfter/frmOperationCharg2.designer.cs b/AIMS/OperationAfter/frmOperationCharg2.designer.cs index fba9e03..8b27107 100644 --- a/AIMS/OperationAfter/frmOperationCharg2.designer.cs +++ b/AIMS/OperationAfter/frmOperationCharg2.designer.cs @@ -58,6 +58,28 @@ this.groupBox1 = new System.Windows.Forms.GroupBox(); this.checkBoxX1 = new DevComponents.DotNetBar.Controls.CheckBoxX(); this.dgvOperation = new System.Windows.Forms.DataGridView(); + this.OpeationId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationApplyId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.PatientId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Index = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationType = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.PatientDept = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.check = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.OperationRoom = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.InHospitalNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.PatientName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Sex = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.FullBed = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.AnaesthesiaMethodName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationDoctor = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.AnesthesiaDoctor = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Inroomtime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.anesBegintime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Anesendtime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.outroomtime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.chagestate = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.chargstatenurse = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dgvtEMPOperationInfos = new System.Windows.Forms.DataGridView(); this.DId = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -99,28 +121,7 @@ this.dataGridViewTextBoxColumn29 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn30 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn31 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OpeationId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationApplyId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PatientId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Index = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationType = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PatientDept = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.check = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.OperationRoom = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.InHospitalNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PatientName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Sex = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.FullBed = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.AnaesthesiaMethodName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationDoctor = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.AnesthesiaDoctor = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Inroomtime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.anesBegintime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Anesendtime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.outroomtime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.chagestate = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.chargstatenurse = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.button3 = new System.Windows.Forms.Button(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.panel3.SuspendLayout(); @@ -135,6 +136,7 @@ // this.panel1.BackColor = System.Drawing.Color.Transparent; this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.panel1.Controls.Add(this.button3); this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.cboRoom); this.panel1.Controls.Add(this.label22); @@ -553,6 +555,175 @@ this.dgvOperation.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvOperation_CellDoubleClick); this.dgvOperation.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgvOperation_RowPostPaint); // + // OpeationId + // + this.OpeationId.DataPropertyName = "RecoredId"; + this.OpeationId.HeaderText = "手术ID"; + this.OpeationId.Name = "OpeationId"; + this.OpeationId.Visible = false; + // + // OperationApplyId + // + this.OperationApplyId.DataPropertyName = "ApplyId"; + this.OperationApplyId.HeaderText = "申请ID"; + this.OperationApplyId.Name = "OperationApplyId"; + this.OperationApplyId.Visible = false; + // + // PatientId + // + this.PatientId.DataPropertyName = "PatientId"; + this.PatientId.HeaderText = "病人ID"; + this.PatientId.Name = "PatientId"; + this.PatientId.Visible = false; + // + // Index + // + this.Index.HeaderText = "序号"; + this.Index.Name = "Index"; + this.Index.Visible = false; + // + // OperationType + // + this.OperationType.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; + this.OperationType.DataPropertyName = "OperationType"; + this.OperationType.FillWeight = 609.1371F; + this.OperationType.HeaderText = "类别"; + this.OperationType.Name = "OperationType"; + this.OperationType.Visible = false; + this.OperationType.Width = 65; + // + // PatientDept + // + this.PatientDept.DataPropertyName = "PatientDept"; + this.PatientDept.FillWeight = 52.36969F; + this.PatientDept.HeaderText = "科室"; + this.PatientDept.Name = "PatientDept"; + this.PatientDept.Visible = false; + // + // check + // + this.check.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; + this.check.FillWeight = 69.07817F; + this.check.HeaderText = ""; + this.check.Name = "check"; + this.check.Width = 30; + // + // OperationRoom + // + this.OperationRoom.DataPropertyName = "OperationRoom"; + this.OperationRoom.FillWeight = 73.7823F; + this.OperationRoom.HeaderText = "手术间"; + this.OperationRoom.Name = "OperationRoom"; + this.OperationRoom.ReadOnly = true; + // + // InHospitalNo + // + this.InHospitalNo.DataPropertyName = "MdrecNo"; + this.InHospitalNo.FillWeight = 69.32275F; + this.InHospitalNo.HeaderText = "住院号"; + this.InHospitalNo.Name = "InHospitalNo"; + this.InHospitalNo.ReadOnly = true; + // + // PatientName + // + this.PatientName.DataPropertyName = "PatientName"; + this.PatientName.FillWeight = 54.2445F; + this.PatientName.HeaderText = "姓名"; + this.PatientName.Name = "PatientName"; + this.PatientName.ReadOnly = true; + // + // Sex + // + this.Sex.DataPropertyName = "Sex"; + this.Sex.FillWeight = 48.17831F; + this.Sex.HeaderText = "性别"; + this.Sex.Name = "Sex"; + this.Sex.Visible = false; + // + // FullBed + // + this.FullBed.DataPropertyName = "SickBed"; + this.FullBed.FillWeight = 47.85236F; + this.FullBed.HeaderText = "床号"; + this.FullBed.Name = "FullBed"; + this.FullBed.Visible = false; + // + // OperationName + // + this.OperationName.DataPropertyName = "OperationInfoName"; + this.OperationName.FillWeight = 86.09029F; + this.OperationName.HeaderText = "实施手术"; + this.OperationName.Name = "OperationName"; + this.OperationName.Visible = false; + // + // AnaesthesiaMethodName + // + this.AnaesthesiaMethodName.DataPropertyName = "AnaesthesiaMethodName"; + this.AnaesthesiaMethodName.FillWeight = 83.9493F; + this.AnaesthesiaMethodName.HeaderText = "麻醉方式"; + this.AnaesthesiaMethodName.Name = "AnaesthesiaMethodName"; + this.AnaesthesiaMethodName.Visible = false; + // + // OperationDoctor + // + this.OperationDoctor.DataPropertyName = "OperationDoctor"; + this.OperationDoctor.FillWeight = 53.07917F; + this.OperationDoctor.HeaderText = "术者"; + this.OperationDoctor.Name = "OperationDoctor"; + this.OperationDoctor.Visible = false; + // + // AnesthesiaDoctor + // + this.AnesthesiaDoctor.DataPropertyName = "AnesthesiaDoctor"; + this.AnesthesiaDoctor.FillWeight = 73.7823F; + this.AnesthesiaDoctor.HeaderText = "麻醉医生"; + this.AnesthesiaDoctor.Name = "AnesthesiaDoctor"; + this.AnesthesiaDoctor.ReadOnly = true; + // + // Inroomtime + // + this.Inroomtime.DataPropertyName = "InRoomTime"; + this.Inroomtime.FillWeight = 65.36763F; + this.Inroomtime.HeaderText = "入室时间"; + this.Inroomtime.Name = "Inroomtime"; + this.Inroomtime.Visible = false; + // + // anesBegintime + // + this.anesBegintime.DataPropertyName = "AnesthesiaBeginTime"; + this.anesBegintime.HeaderText = "麻醉开始"; + this.anesBegintime.Name = "anesBegintime"; + this.anesBegintime.Visible = false; + // + // Anesendtime + // + this.Anesendtime.DataPropertyName = "AnesthesiaEndTime"; + this.Anesendtime.HeaderText = "麻醉结束"; + this.Anesendtime.Name = "Anesendtime"; + this.Anesendtime.Visible = false; + // + // outroomtime + // + this.outroomtime.DataPropertyName = "OutRoomTime"; + this.outroomtime.HeaderText = "出室时间"; + this.outroomtime.Name = "outroomtime"; + this.outroomtime.Visible = false; + // + // chagestate + // + this.chagestate.DataPropertyName = "chagestate"; + this.chagestate.FillWeight = 65.36763F; + this.chagestate.HeaderText = "收费状态"; + this.chagestate.Name = "chagestate"; + this.chagestate.Visible = false; + // + // chargstatenurse + // + this.chargstatenurse.DataPropertyName = "chargstatenurse"; + this.chargstatenurse.HeaderText = "收费状态"; + this.chargstatenurse.Name = "chargstatenurse"; + this.chargstatenurse.Visible = false; + // // dgvtEMPOperationInfos // this.dgvtEMPOperationInfos.AllowUserToAddRows = false; @@ -911,174 +1082,20 @@ this.dataGridViewTextBoxColumn31.HeaderText = "收费状态"; this.dataGridViewTextBoxColumn31.Name = "dataGridViewTextBoxColumn31"; // - // OpeationId + // button3 // - this.OpeationId.DataPropertyName = "RecoredId"; - this.OpeationId.HeaderText = "手术ID"; - this.OpeationId.Name = "OpeationId"; - this.OpeationId.Visible = false; - // - // OperationApplyId - // - this.OperationApplyId.DataPropertyName = "ApplyId"; - this.OperationApplyId.HeaderText = "申请ID"; - this.OperationApplyId.Name = "OperationApplyId"; - this.OperationApplyId.Visible = false; - // - // PatientId - // - this.PatientId.DataPropertyName = "PatientId"; - this.PatientId.HeaderText = "病人ID"; - this.PatientId.Name = "PatientId"; - this.PatientId.Visible = false; - // - // Index - // - this.Index.HeaderText = "序号"; - this.Index.Name = "Index"; - this.Index.Visible = false; - // - // OperationType - // - this.OperationType.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; - this.OperationType.DataPropertyName = "OperationType"; - this.OperationType.FillWeight = 609.1371F; - this.OperationType.HeaderText = "类别"; - this.OperationType.Name = "OperationType"; - this.OperationType.Visible = false; - this.OperationType.Width = 65; - // - // PatientDept - // - this.PatientDept.DataPropertyName = "PatientDept"; - this.PatientDept.FillWeight = 52.36969F; - this.PatientDept.HeaderText = "科室"; - this.PatientDept.Name = "PatientDept"; - this.PatientDept.Visible = false; - // - // check - // - this.check.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; - this.check.FillWeight = 69.07817F; - this.check.HeaderText = ""; - this.check.Name = "check"; - this.check.Width = 30; - // - // OperationRoom - // - this.OperationRoom.DataPropertyName = "OperationRoom"; - this.OperationRoom.FillWeight = 73.7823F; - this.OperationRoom.HeaderText = "手术间"; - this.OperationRoom.Name = "OperationRoom"; - this.OperationRoom.ReadOnly = true; - // - // InHospitalNo - // - this.InHospitalNo.DataPropertyName = "MdrecNo"; - this.InHospitalNo.FillWeight = 69.32275F; - this.InHospitalNo.HeaderText = "住院号"; - this.InHospitalNo.Name = "InHospitalNo"; - this.InHospitalNo.ReadOnly = true; - // - // PatientName - // - this.PatientName.DataPropertyName = "PatientName"; - this.PatientName.FillWeight = 54.2445F; - this.PatientName.HeaderText = "姓名"; - this.PatientName.Name = "PatientName"; - this.PatientName.ReadOnly = true; - // - // Sex - // - this.Sex.DataPropertyName = "Sex"; - this.Sex.FillWeight = 48.17831F; - this.Sex.HeaderText = "性别"; - this.Sex.Name = "Sex"; - this.Sex.Visible = false; - // - // FullBed - // - this.FullBed.DataPropertyName = "SickBed"; - this.FullBed.FillWeight = 47.85236F; - this.FullBed.HeaderText = "床号"; - this.FullBed.Name = "FullBed"; - this.FullBed.Visible = false; - // - // OperationName - // - this.OperationName.DataPropertyName = "OperationInfoName"; - this.OperationName.FillWeight = 86.09029F; - this.OperationName.HeaderText = "实施手术"; - this.OperationName.Name = "OperationName"; - this.OperationName.Visible = false; - // - // AnaesthesiaMethodName - // - this.AnaesthesiaMethodName.DataPropertyName = "AnaesthesiaMethodName"; - this.AnaesthesiaMethodName.FillWeight = 83.9493F; - this.AnaesthesiaMethodName.HeaderText = "麻醉方式"; - this.AnaesthesiaMethodName.Name = "AnaesthesiaMethodName"; - this.AnaesthesiaMethodName.Visible = false; - // - // OperationDoctor - // - this.OperationDoctor.DataPropertyName = "OperationDoctor"; - this.OperationDoctor.FillWeight = 53.07917F; - this.OperationDoctor.HeaderText = "术者"; - this.OperationDoctor.Name = "OperationDoctor"; - this.OperationDoctor.Visible = false; - // - // AnesthesiaDoctor - // - this.AnesthesiaDoctor.DataPropertyName = "AnesthesiaDoctor"; - this.AnesthesiaDoctor.FillWeight = 73.7823F; - this.AnesthesiaDoctor.HeaderText = "麻醉医生"; - this.AnesthesiaDoctor.Name = "AnesthesiaDoctor"; - this.AnesthesiaDoctor.ReadOnly = true; - // - // Inroomtime - // - this.Inroomtime.DataPropertyName = "InRoomTime"; - this.Inroomtime.FillWeight = 65.36763F; - this.Inroomtime.HeaderText = "入室时间"; - this.Inroomtime.Name = "Inroomtime"; - this.Inroomtime.Visible = false; - // - // anesBegintime - // - this.anesBegintime.DataPropertyName = "AnesthesiaBeginTime"; - this.anesBegintime.HeaderText = "麻醉开始"; - this.anesBegintime.Name = "anesBegintime"; - this.anesBegintime.Visible = false; - // - // Anesendtime - // - this.Anesendtime.DataPropertyName = "AnesthesiaEndTime"; - this.Anesendtime.HeaderText = "麻醉结束"; - this.Anesendtime.Name = "Anesendtime"; - this.Anesendtime.Visible = false; - // - // outroomtime - // - this.outroomtime.DataPropertyName = "OutRoomTime"; - this.outroomtime.HeaderText = "出室时间"; - this.outroomtime.Name = "outroomtime"; - this.outroomtime.Visible = false; - // - // chagestate - // - this.chagestate.DataPropertyName = "chagestate"; - this.chagestate.FillWeight = 65.36763F; - this.chagestate.HeaderText = "收费状态"; - this.chagestate.Name = "chagestate"; - this.chagestate.Visible = false; - // - // chargstatenurse - // - this.chargstatenurse.DataPropertyName = "chargstatenurse"; - this.chargstatenurse.HeaderText = "收费状态"; - this.chargstatenurse.Name = "chargstatenurse"; - this.chargstatenurse.Visible = false; + this.button3.Cursor = System.Windows.Forms.Cursors.Hand; + this.button3.Dock = System.Windows.Forms.DockStyle.Left; + this.button3.FlatAppearance.BorderSize = 0; + this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button3.Font = new System.Drawing.Font("微软雅黑", 11F); + this.button3.Location = new System.Drawing.Point(243, 0); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(131, 45); + this.button3.TabIndex = 34; + this.button3.Text = "药品使用登记"; + this.button3.UseVisualStyleBackColor = true; + this.button3.Click += new System.EventHandler(this.button3_Click); // // frmOperationCharg2 // @@ -1199,5 +1216,6 @@ private System.Windows.Forms.DataGridViewTextBoxColumn outroomtime; private System.Windows.Forms.DataGridViewTextBoxColumn chagestate; private System.Windows.Forms.DataGridViewTextBoxColumn chargstatenurse; + private System.Windows.Forms.Button button3; } } \ No newline at end of file diff --git a/AIMS/OperationAfter/frmOperationCharg3.cs b/AIMS/OperationAfter/frmOperationCharg3.cs index af5a067..a3af5a7 100644 --- a/AIMS/OperationAfter/frmOperationCharg3.cs +++ b/AIMS/OperationAfter/frmOperationCharg3.cs @@ -1,10 +1,20 @@ -using AIMSBLL; +using AIMS.OperationAanesthesia; +using AIMSBLL; +using AIMSDAL; using AIMSExtension; using AIMSModel; +using DCSoftDotfuscate; using DevComponents.Editors; +using Microsoft.Office.Interop.Excel; +using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Data; +using System.Diagnostics; +using System.Drawing; +using System.Linq; +using System.Reflection; +using System.Text; using System.Windows.Forms; namespace AIMS.OperationAfter.UI @@ -12,14 +22,15 @@ namespace AIMS.OperationAfter.UI public partial class frmOperationCharg3 : Form { - DataTable operationApplys; + System.Data.DataTable operationApplys; public string FeeType = "麻醉"; public List upHisDrugs; + public string DataGridViewPath = ""; + public SysConfig exportConfig; public frmOperationCharg3() { InitializeComponent(); - } private void frmOperationDruggCheck_Load(object sender, EventArgs e) @@ -27,12 +38,15 @@ namespace AIMS.OperationAfter.UI try { dtpOpeTime.Value = DateTime.Now; - dtpEnd.Value = dtpOpeTime.Value; + dtpEnd.Value = dtpOpeTime.Value; dgvOperation.AutoGenerateColumns = false; - dgvtEMPOperationInfos.AutoGenerateColumns = false; - dgvHZD.AutoGenerateColumns = false; - + DataGridViewPath = GetControlPath(dgvDrugs); + exportConfig = BSysConfig.SelectSingle(" Note='" + DataGridViewPath + "'", null, RecursiveType.None, 0); + LoadSelectDate(); + if (exportConfig != null) + ConfigDataGridView(exportConfig); + if (upHisDrugs != null && upHisDrugs.Count > 0) { dtpOpeTime.Value = upHisDrugs[0].EndTime.Value; @@ -43,41 +57,42 @@ namespace AIMS.OperationAfter.UI PublicMethod.WriteLog(exp); } } + public void LoadSelectDate() { - string where = " "; + string where = " "; upHisDrugs = BFeesRecordReport.Select(" FeeType='" + FeeType + "' " + where + " order by endtime desc", null); dgvOperation.DataSource = upHisDrugs; dgvOperation.ClearSelection(); } + private void btnOK_Click(object sender, EventArgs e) { - //if (comboBoxExType.Text == "") return; - string beginTime = Convert.ToDateTime(dtpOpeTime.Value).ToString("yyyy-MM-dd HH:mm:00"); - string endTime = Convert.ToDateTime(dtpEnd.Value).ToString("yyyy-MM-dd HH:mm:00"); - string sql = string.Format(" ExecTime>='{0}' and ExecTime<'{1}'", beginTime, endTime); - //if (comboBoxExType.SelectedItem != null) - //{ - // ComboItem chargitem = comboBoxExType.SelectedItem as ComboItem; - // sql += " and (page_type = '" + chargitem.Value + "' ) "; - //} + if (comboBoxExType.Text == "") return; + if (cnoDrugName.Text == "") return; + string beginTime = Convert.ToDateTime(dtpOpeTime.Value).ToString("yyyy-MM-dd 00:00:00"); + string endTime = Convert.ToDateTime(dtpEnd.Value).ToString("yyyy-MM-dd 23:59:59"); + string sql = string.Format(" ExecTime>='{0}' and ExecTime<'{1}'", beginTime, endTime); + if (comboBoxExType.SelectedItem != null) + { + ComboItem chargitem = comboBoxExType.SelectedItem as ComboItem; + sql += " and (FeeTypeId = '" + chargitem.Value + "' ) "; + } + if (cnoDrugName.SelectedItem != null) + { + ComboItem chargitem = cnoDrugName.SelectedItem as ComboItem; + sql += " and (ChargName = '" + chargitem.Value + "' ) "; + } if (FeeType != "") { sql += " and (FeeType = '" + FeeType + "' ) "; } - if (rdoZQ.Checked == true) - { - operationApplys = BFeesRecordReport.GetUpListByWhere(sql); - dgvtEMPOperationInfos.DataSource = operationApplys; - } - else - { - operationApplys = BFeesRecordReport.GetUpListByWhere2(sql); - dgvHZD.DataSource = operationApplys; - } + operationApplys = BFeesRecordReport.GetUpListByWhere3(sql); + dgvDrugs.DataSource = operationApplys; + if (exportConfig != null) + ConfigDataGridView(exportConfig); } - private void toolStripButton10_Click(object sender, EventArgs e) { this.Close(); @@ -90,36 +105,265 @@ namespace AIMS.OperationAfter.UI /// private void tsbSettingDGV_Click(object sender, EventArgs e) { - //DataGridViewSettingManager.GetInstance().ShowConfigUI(dgvOperation); - //dgvOperation.AllowUserToAddRows = false; + frmExportConfig formDataGridViewConfig = new frmExportConfig(dgvDrugs, exportConfig, DataGridViewPath, this.Text); + if (formDataGridViewConfig.ShowDialog() == DialogResult.OK) + { + exportConfig = formDataGridViewConfig.exportConfig; + ConfigDataGridView(formDataGridViewConfig.exportConfig); + } + } + private static string GetControlPath(Control control) + { + StringBuilder controlPathStringBuilder = new StringBuilder(); + controlPathStringBuilder.Append(control.Name); + while (control.Parent != null) + { + control = control.Parent; + controlPathStringBuilder.Append("." + control.Name); + } + return controlPathStringBuilder.ToString(); + } + public ExportConfig dataGridViewSetting; + private void ConfigDataGridView(SysConfig exportConfig) + { + try + { + dataGridViewSetting = JsonConvert.DeserializeObject(exportConfig.Value); + foreach (DataGridViewColumn column in dgvDrugs.Columns) + { + foreach (var item in dataGridViewSetting.exports) + { + if (column.Name == "Id") + { + column.Visible = false; + } + else if (column.Name == item.Name) + { + column.Visible = item.IsVisible; + column.Width = item.Width; + } + } + } + } + catch (Exception ex) + { + PublicMethod.WriteLog(ex); + } } private void button1_Click(object sender, EventArgs e) { - if (dgvOperation.Rows.Count < 0 || dgvOperation.Rows.Count < 1) - { - MessageBox.Show("没有记录,请查询到数据后再导出数据到Excel"); - return; - } - //if (rdoZQ.Checked == true) - //{ - // BLL.DataGridViewToExcel.DataToExcel(dgvtEMPOperationInfos); - //} - //else - //{ - // BLL.DataGridViewToExcel.DataToExcel(dgvHZD); - //} + if (comboBoxExType.Text == "") return; + if (cnoDrugName.Text == "") return; + KillAllExcel(); + ExprotExcel2(); } + private Microsoft.Office.Interop.Excel.Application myExcel = null; + private void ExprotExcel2(bool isPrint = false) + { + //自定义表头 + string title = "查询管理数据"; + if (comboBoxExType.Text == "精神I类") + { + title = "麻醉药品第一类精神药品使用登记簿"; + } + else if (comboBoxExType.Text == "精神II类") + { + title = "麻醉药品第二类精神药品使用登记簿"; + } + else if (comboBoxExType.Text == "麻醉药") + { + title = "麻醉药品使用登记簿"; + } + + //是否横向 + bool xlLandscape = true; + if (dataGridViewSetting != null && dataGridViewSetting.Landscape == false) xlLandscape = false; + //主体字体大小 + int BodySize = 9; + if (dataGridViewSetting != null && dataGridViewSetting.FontSize > 0) BodySize = dataGridViewSetting.FontSize; + + myExcel = new Microsoft.Office.Interop.Excel.Application(); + this.Cursor = Cursors.WaitCursor; + //保存文化环境 + System.Globalization.CultureInfo CurrentCI = System.Threading.Thread.CurrentThread.CurrentCulture; + System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US"); + + Workbook workbookData = myExcel.Workbooks.Add(Missing.Value); + Worksheet xlSheet = (Microsoft.Office.Interop.Excel.Worksheet)workbookData.Worksheets[1]; + + xlSheet.Name = title; + + if (isPrint == false) + myExcel.Visible = true; + + myExcel.Cells[1, 1] = title;//默认的就是在sheet1里面的。 + string DrugName = ""; + Drugs drug = BDrugs.SelectSingle(" name='" + cnoDrugName.Text + "'", null); + DrugName = " 品名:" + drug.Name + " 规格:" + drug.Stand + " 单位:" + drug.Unit; + myExcel.Cells[2, 1] = DrugName;//默认的就是在sheet1里面的。 + int startIndex = 3; + + WorksheetClass wsClass = new WorksheetClass(); + + Dictionary Columns = new Dictionary(); + //填充标题 + for (int i = 0; i < dgvDrugs.Columns.Count; i++) + { + if (dataGridViewSetting != null) + { + foreach (var item in dataGridViewSetting.exports) + { + if (dgvDrugs.Columns[i].Name == item.Name) + { + if (item.IsPrint == true) + { + Columns.Add(i, dgvDrugs.Columns[i].HeaderText); + continue; + } + + } + } + } + else + { + if (dgvDrugs.Columns[i].Visible == true) + Columns.Add(i, dgvDrugs.Columns[i].HeaderText); + } + } + + List> ColumnsStr = Columns.ToList(); + + for (int i = 0; i < ColumnsStr.Count; i++) + { + myExcel.Cells[startIndex, i + 1] = ColumnsStr[i].Value; + if (dataGridViewSetting != null) + { + foreach (var item in dataGridViewSetting.exports) + { + if (ColumnsStr[i].Value == item.Text) + { + xlSheet.get_Range(xlSheet.Cells[startIndex, i + 1], xlSheet.Cells[startIndex, i + 1]).ColumnWidth = item.PrintWidth;//列宽 + } + } + } + else + { + xlSheet.get_Range(xlSheet.Cells[startIndex, i + 1], xlSheet.Cells[startIndex, i + 1]).ColumnWidth = 5;//列宽 + } + } + //获得数据表的值 + int RowCount = dgvDrugs.Rows.Count; + int colCount = ColumnsStr.Count; + //设置填充单元格样式 + xlSheet.get_Range(xlSheet.Cells[startIndex, 1], xlSheet.Cells[RowCount + startIndex, colCount]).Borders.LineStyle = XlLineStyle.xlContinuous;//边框的样式 + object[,] objData = new object[RowCount, colCount]; + + //将DataTable里的值填充到对象数组中 + for (int i = 0; i < RowCount; i++) + { + for (int j = 0; j < colCount; j++) + { + if (dgvDrugs.Columns[ColumnsStr[j].Key].Name == "序号" || dgvDrugs.Columns[ColumnsStr[j].Key].Name == "ApplyId") + objData[i, j] = i + 1; + else if (dgvDrugs.Rows[i].Cells[ColumnsStr[j].Key].Value != null) + objData[i, j] = dgvDrugs.Rows[i].Cells[ColumnsStr[j].Key].Value.ToString().Trim(); + } + System.Windows.Forms.Application.DoEvents(); + } + + //将对象数组的值赋值给Excel + Range range = xlSheet.get_Range(xlSheet.Cells[4, 1], xlSheet.Cells[RowCount + startIndex, colCount]); + range.NumberFormat = "@"; + range.Value2 = objData; + range.RowHeight = 19; + //xlSheet.get_Range(xlSheet.Cells[2, 1], xlSheet.Cells[RowCount + 2, colCount]).Font.Size = BodySize;//字体大小 + + //设置主标题单元格的样式 + xlSheet.get_Range(xlSheet.Cells[1, 1], xlSheet.Cells[1, colCount]).MergeCells = true;//合并单元格 + xlSheet.get_Range(xlSheet.Cells[1, 1], xlSheet.Cells[1, colCount]).HorizontalAlignment = XlHAlign.xlHAlignCenter;//水平对齐方式 + xlSheet.get_Range(xlSheet.Cells[1, 1], xlSheet.Cells[1, colCount]).VerticalAlignment = XlVAlign.xlVAlignCenter;//垂直对齐方式 + xlSheet.get_Range(xlSheet.Cells[1, 1], xlSheet.Cells[1, colCount]).Font.Bold = true;//字体加粗 + xlSheet.get_Range(xlSheet.Cells[1, 1], xlSheet.Cells[1, colCount]).Font.ColorIndex = 0;//字体颜色 + //xlSheet.get_Range(xlSheet.Cells[1, 1], xlSheet.Cells[1, colCount]).Font.Italic = true;//是否斜体 + xlSheet.get_Range(xlSheet.Cells[1, 1], xlSheet.Cells[1, colCount]).Font.Size = 20;//字体大小 + //xlSheet.get_Range(xlSheet.Cells[1, 1], xlSheet.Cells[2, colCount]).Borders.LineStyle = XlLineStyle.xlContinuous;//边框样式 + xlSheet.get_Range(xlSheet.Cells[1, 1], xlSheet.Cells[1, colCount]).RowHeight = 33.75;//行高 + + xlSheet.get_Range(xlSheet.Cells[2, 1], xlSheet.Cells[2, colCount]).MergeCells = true;//合并单元格 + + //设置标题单元格样式 + xlSheet.get_Range(xlSheet.Cells[2, 1], xlSheet.Cells[startIndex, colCount]).RowHeight = 21;//行高 + + if (xlLandscape == true) + xlSheet.PageSetup.Orientation = XlPageOrientation.xlLandscape;//页面方向为横向 + //复苏文化环境 + System.Threading.Thread.CurrentThread.CurrentCulture = CurrentCI; + try + { + if (isPrint == true) + xlSheet.PrintOutEx(); + //myExcel.Save(@"D:a.xls"); + //myExcel.Quit(); + this.Cursor = Cursors.Default; + //MessageBox.Show("导出成功!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); + } + finally + { + if (isPrint == true) + { + //释放资源 + System.Runtime.InteropServices.Marshal.ReleaseComObject(xlSheet); + System.Runtime.InteropServices.Marshal.ReleaseComObject(workbookData); + System.Runtime.InteropServices.Marshal.ReleaseComObject(range); + System.Runtime.InteropServices.Marshal.ReleaseComObject(myExcel); + GC.Collect(); + range = null; + xlSheet = null; + workbookData = null; + myExcel = null; + KillAllExcel(); + } + } + } + private void KillAllExcel() + { + List excelProcess = GetExcelProcesses(); + for (int i = 0; i < excelProcess.Count; i++) + { + excelProcess[i].Kill(); + } + } + private List GetExcelProcesses() + { + Process[] processes = Process.GetProcesses(); + List excelProcesses = new List(); + + for (int i = 0; i < processes.Length; i++) + { + if (processes[i].ProcessName.ToUpper() == "EXCEL") + excelProcesses.Add(processes[i]); + } + + return excelProcesses; + } + private void cboRoom_SelectedIndexChanged(object sender, EventArgs e) { - //btnOK_Click(null, null); - LoadSelectDate(); + System.Data.DataTable table = BFeesRecordReport.GetDrugByType(comboBoxExType.Text); + cnoDrugName.Items.Clear(); + for (int i = 0; i < table.Rows.Count; i++) + { + ComboItem item = new ComboItem(); + item.Text = table.Rows[i][0].ToString(); + item.Value = table.Rows[i][0].ToString(); + cnoDrugName.Items.Add(item); + } } - + public int OpeID = 0; private void dgvOperation_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { - int OpeID = 0; if (dgvOperation.SelectedRows.Count > 0) { OpeID = Convert.ToInt32(dgvOperation.SelectedRows[0].Cells[0].Value.ToString()); @@ -130,34 +374,17 @@ namespace AIMS.OperationAfter.UI } FeesRecordReport upHis = BFeesRecordReport.SelectSingle(OpeID); cboRoom.Text = upHis.ExecDepartmentName; - //comboBoxExType.Text = upHis.PageType; FeeType = upHis.FeeType; if (upHis.FeeType == "麻醉") rdoMz.Checked = true; else rdoHs.Checked = true; - if (upHis.ChargType == rdoZQ.Text) rdoZQ.Checked = true; - else rdoJZ.Checked = true; + comboBoxExType.Text = upHis.ChargType; + cnoDrugName.Text = upHis.PageType; dtpOpeTime.Value = upHis.StartTime.Value; dtpEnd.Value = upHis.EndTime.Value; btnOK_Click(null, null); } - private void rdoZQ_CheckedChanged(object sender, EventArgs e) - { - if (rdoZQ.Checked == true) - { - dgvtEMPOperationInfos.Visible = true; - dgvHZD.Visible = false; - } - else - { - dgvtEMPOperationInfos.Visible = false; - dgvHZD.Visible = true; - } - - //btnOK_Click(null, null); - } - private void voidableRadioButton2_CheckedChanged(object sender, EventArgs e) { if (rdoMz.Checked == true) @@ -173,40 +400,69 @@ namespace AIMS.OperationAfter.UI private void btnSave_Click(object sender, EventArgs e) { - //if (comboBoxExType.Text == "") - //{ - // MessageBox.Show("请选择药品单类型!", "系统提示"); return; - //} - FeesRecordReport upHisDrugOrdersSDYSelect = new FeesRecordReport(); + if (comboBoxExType.Text == "") return; + if (cnoDrugName.Text == "") return; + FeesRecordReport upHisDrugOrdersSDYSelect = new FeesRecordReport(); DateTime beginTime = Convert.ToDateTime(dtpOpeTime.Value); DateTime endTime = Convert.ToDateTime(dtpEnd.Value); upHisDrugOrdersSDYSelect.StartTime = beginTime; upHisDrugOrdersSDYSelect.EndTime = endTime; - - //if (comboBoxExType.SelectedItem != null) - //{ - // ComboItem chargitem = comboBoxExType.SelectedItem as ComboItem; - // upHisDrugOrdersSDYSelect.PageType = chargitem.Text; - // upHisDrugOrdersSDYSelect.PageNo = chargitem.Value.ToString(); - //} - if (FeeType != "") - { - upHisDrugOrdersSDYSelect.FeeType = FeeType; - } - if (rdoZQ.Checked == true) - { - upHisDrugOrdersSDYSelect.ChargType = rdoZQ.Text; - } - else - { - upHisDrugOrdersSDYSelect.ChargType = rdoJZ.Text; - } + upHisDrugOrdersSDYSelect.FeeType = FeeType; + upHisDrugOrdersSDYSelect.ChargType = comboBoxExType.Text; + upHisDrugOrdersSDYSelect.PageType = cnoDrugName.Text; upHisDrugOrdersSDYSelect.OperatorId = PublicMethod.OperatorId; upHisDrugOrdersSDYSelect.OperatorTime = DateTime.Now; BFeesRecordReport.Insert(upHisDrugOrdersSDYSelect); + foreach (DataGridViewRow item in dgvDrugs.Rows) + { + string feerid = item.Cells[0].EditedFormattedValue.ToString(); + FeesRecord report = BFeesRecord.SelectSingle(Convert.ToInt32(feerid)); + report.InsureNO = item.Cells[10].EditedFormattedValue.ToString(); + report.Extend5 = item.Cells[13].EditedFormattedValue.ToString(); + report.Conclusion = item.Cells[14].EditedFormattedValue.ToString(); + report.IsInsure = item.Cells[15].EditedFormattedValue.ToString(); + report.LimitDrug = item.Cells[2].EditedFormattedValue.ToString(); + BFeesRecord.Update(report); + } MessageBox.Show("保存成功!", "系统提示"); LoadSelectDate(); } + private void dgvDrugs_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) + { + //隔行换色 + this.dgvDrugs.RowsDefaultCellStyle.BackColor = Color.White;//设置背景为白色 + this.dgvDrugs.AlternatingRowsDefaultCellStyle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(212)))), ((int)(((byte)(222)))), (((int)(((byte)242)))));//青色 + } + + private void btnDelete_Click(object sender, EventArgs e) + { + if (OpeID == 0) + { + return; + } + FeesRecordReport upHis = BFeesRecordReport.SelectSingle(OpeID); + BFeesRecordReport.Delete(upHis); + MessageBox.Show("删除成功!", "系统提示"); + OpeID = 0; + dgvDrugs.DataSource = null; + LoadSelectDate(); + } + + private void dgvDrugs_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + if (e.ColumnIndex == 10) + { + DialogResult dialog = MessageBox.Show("是否批量填写批号?", "系统提示", MessageBoxButtons.YesNo); + if (dialog == DialogResult.Yes) + { + string batchNo = dgvDrugs.Rows[e.RowIndex].Cells[10].EditedFormattedValue.ToString(); + for (int i = 0; i < dgvDrugs.Rows.Count; i++) + { + dgvDrugs.Rows[i].Cells[10].Value = batchNo; + } + } + } + } } } diff --git a/AIMS/OperationAfter/frmOperationCharg3.designer.cs b/AIMS/OperationAfter/frmOperationCharg3.designer.cs index 08b8b3c..35a2012 100644 --- a/AIMS/OperationAfter/frmOperationCharg3.designer.cs +++ b/AIMS/OperationAfter/frmOperationCharg3.designer.cs @@ -32,6 +32,9 @@ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = 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 dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); this.panel1 = new System.Windows.Forms.Panel(); this.cboRoom = new DevComponents.DotNetBar.Controls.ComboBoxEx(); this.label22 = new System.Windows.Forms.Label(); @@ -43,20 +46,22 @@ this.panel4 = new System.Windows.Forms.Panel(); this.rdoHs = new System.Windows.Forms.RadioButton(); this.rdoMz = new System.Windows.Forms.RadioButton(); + this.cnoDrugName = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.comboItem5 = new DevComponents.Editors.ComboItem(); + this.comboItem6 = new DevComponents.Editors.ComboItem(); + this.comboItem7 = new DevComponents.Editors.ComboItem(); + this.comboItem8 = new DevComponents.Editors.ComboItem(); this.comboBoxExType = new DevComponents.DotNetBar.Controls.ComboBoxEx(); this.comboItem1 = new DevComponents.Editors.ComboItem(); this.comboItem2 = new DevComponents.Editors.ComboItem(); - this.comboItem3 = new DevComponents.Editors.ComboItem(); this.comboItem4 = new DevComponents.Editors.ComboItem(); - this.panel3 = new System.Windows.Forms.Panel(); - this.rdoJZ = new System.Windows.Forms.RadioButton(); - this.rdoZQ = new System.Windows.Forms.RadioButton(); this.dtpEnd = new DevComponents.Editors.DateTimeAdv.DateTimeInput(); this.dtpOpeTime = new DevComponents.Editors.DateTimeAdv.DateTimeInput(); this.label24 = new System.Windows.Forms.Label(); + this.btnDelete = new DevComponents.DotNetBar.ButtonX(); this.btnSave = new DevComponents.DotNetBar.ButtonX(); this.buttonX1 = new DevComponents.DotNetBar.ButtonX(); - this.lblMessage = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.labDate = new System.Windows.Forms.Label(); this.groupBox1 = new System.Windows.Forms.GroupBox(); @@ -67,17 +72,7 @@ this.TemplateType1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ChargType = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.PageType = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PageNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ExecDepartmentName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dgvtEMPOperationInfos = new System.Windows.Forms.DataGridView(); - this.dgvHZD = new System.Windows.Forms.DataGridView(); - this.dataGridViewTextBoxColumn32 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.no = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn33 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn34 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn35 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn41 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn42 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -105,29 +100,16 @@ this.dataGridViewTextBoxColumn29 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn30 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn31 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.DId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dgvDrugs = new DevComponents.DotNetBar.Controls.DataGridViewX(); this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn22 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.spec = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.execDept = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.room = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PatName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.InNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.UpFreeTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn23 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.DUnit = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn24 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ChargePrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.panel4.SuspendLayout(); - this.panel3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dtpEnd)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dtpOpeTime)).BeginInit(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvOperation)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.dgvtEMPOperationInfos)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.dgvHZD)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvDrugs)).BeginInit(); this.SuspendLayout(); // // panel1 @@ -213,9 +195,8 @@ this.tsbSettingDGV.Name = "tsbSettingDGV"; this.tsbSettingDGV.Size = new System.Drawing.Size(85, 30); this.tsbSettingDGV.TabIndex = 4; - this.tsbSettingDGV.Text = "表格设置"; + this.tsbSettingDGV.Text = "导出设置"; this.tsbSettingDGV.UseVisualStyleBackColor = false; - this.tsbSettingDGV.Visible = false; this.tsbSettingDGV.Click += new System.EventHandler(this.tsbSettingDGV_Click); // // toolStripButton10 @@ -237,14 +218,15 @@ // this.panel2.BackColor = System.Drawing.Color.WhiteSmoke; this.panel2.Controls.Add(this.panel4); + this.panel2.Controls.Add(this.cnoDrugName); this.panel2.Controls.Add(this.comboBoxExType); - this.panel2.Controls.Add(this.panel3); this.panel2.Controls.Add(this.dtpEnd); this.panel2.Controls.Add(this.dtpOpeTime); this.panel2.Controls.Add(this.label24); + this.panel2.Controls.Add(this.btnDelete); this.panel2.Controls.Add(this.btnSave); this.panel2.Controls.Add(this.buttonX1); - this.panel2.Controls.Add(this.lblMessage); + this.panel2.Controls.Add(this.label3); this.panel2.Controls.Add(this.label1); this.panel2.Controls.Add(this.labDate); this.panel2.Dock = System.Windows.Forms.DockStyle.Top; @@ -259,10 +241,11 @@ this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel4.Controls.Add(this.rdoHs); this.panel4.Controls.Add(this.rdoMz); - this.panel4.Location = new System.Drawing.Point(21, 6); + this.panel4.Location = new System.Drawing.Point(823, 34); this.panel4.Name = "panel4"; this.panel4.Size = new System.Drawing.Size(177, 33); this.panel4.TabIndex = 474; + this.panel4.Visible = false; // // rdoHs // @@ -288,79 +271,76 @@ this.rdoMz.UseVisualStyleBackColor = true; this.rdoMz.CheckedChanged += new System.EventHandler(this.voidableRadioButton2_CheckedChanged); // + // cnoDrugName + // + this.cnoDrugName.DisplayMember = "Text"; + this.cnoDrugName.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.cnoDrugName.Font = new System.Drawing.Font("微软雅黑", 10.5F); + this.cnoDrugName.FormattingEnabled = true; + this.cnoDrugName.ItemHeight = 20; + this.cnoDrugName.Items.AddRange(new object[] { + this.comboItem5, + this.comboItem6, + this.comboItem7, + this.comboItem8}); + this.cnoDrugName.Location = new System.Drawing.Point(352, 12); + this.cnoDrugName.Name = "cnoDrugName"; + this.cnoDrugName.Size = new System.Drawing.Size(174, 26); + this.cnoDrugName.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.cnoDrugName.TabIndex = 32; + // + // comboItem5 + // + this.comboItem5.Text = "毒麻药品"; + this.comboItem5.Value = "122"; + // + // comboItem6 + // + this.comboItem6.Text = "一类精神药品"; + this.comboItem6.Value = "123"; + // + // comboItem7 + // + this.comboItem7.Text = "二类精神药品"; + this.comboItem7.Value = "121"; + // + // comboItem8 + // + this.comboItem8.Text = "常规药,液"; + this.comboItem8.Value = "64"; + // // comboBoxExType // this.comboBoxExType.DisplayMember = "Text"; this.comboBoxExType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.comboBoxExType.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.comboBoxExType.Font = new System.Drawing.Font("微软雅黑", 10.5F); this.comboBoxExType.FormattingEnabled = true; - this.comboBoxExType.ItemHeight = 17; + this.comboBoxExType.ItemHeight = 20; this.comboBoxExType.Items.AddRange(new object[] { this.comboItem1, this.comboItem2, - this.comboItem3, this.comboItem4}); - this.comboBoxExType.Location = new System.Drawing.Point(491, 12); + this.comboBoxExType.Location = new System.Drawing.Point(94, 12); this.comboBoxExType.Name = "comboBoxExType"; - this.comboBoxExType.Size = new System.Drawing.Size(150, 23); + this.comboBoxExType.Size = new System.Drawing.Size(150, 26); this.comboBoxExType.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.comboBoxExType.TabIndex = 32; - this.comboBoxExType.Visible = false; this.comboBoxExType.SelectedIndexChanged += new System.EventHandler(this.cboRoom_SelectedIndexChanged); // // comboItem1 // - this.comboItem1.Text = "毒麻药品"; - this.comboItem1.Value = "122"; + this.comboItem1.Text = "精神I类"; + this.comboItem1.Value = "精神I类"; // // comboItem2 // - this.comboItem2.Text = "一类精神药品"; - this.comboItem2.Value = "123"; - // - // comboItem3 - // - this.comboItem3.Text = "二类精神药品"; - this.comboItem3.Value = "121"; + this.comboItem2.Text = "精神II类"; + this.comboItem2.Value = "精神II类"; // // comboItem4 // - this.comboItem4.Text = "常规药,液"; - this.comboItem4.Value = "64"; - // - // panel3 - // - this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel3.Controls.Add(this.rdoJZ); - this.panel3.Controls.Add(this.rdoZQ); - this.panel3.Location = new System.Drawing.Point(216, 6); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(172, 33); - this.panel3.TabIndex = 473; - // - // rdoJZ - // - this.rdoJZ.AutoSize = true; - this.rdoJZ.Location = new System.Drawing.Point(93, 5); - this.rdoJZ.Name = "rdoJZ"; - this.rdoJZ.Size = new System.Drawing.Size(69, 24); - this.rdoJZ.TabIndex = 0; - this.rdoJZ.Text = "汇总单"; - this.rdoJZ.UseVisualStyleBackColor = true; - this.rdoJZ.CheckedChanged += new System.EventHandler(this.rdoZQ_CheckedChanged); - // - // rdoZQ - // - this.rdoZQ.AutoSize = true; - this.rdoZQ.Checked = true; - this.rdoZQ.Location = new System.Drawing.Point(11, 5); - this.rdoZQ.Name = "rdoZQ"; - this.rdoZQ.Size = new System.Drawing.Size(69, 24); - this.rdoZQ.TabIndex = 0; - this.rdoZQ.TabStop = true; - this.rdoZQ.Text = "明细单"; - this.rdoZQ.UseVisualStyleBackColor = true; - this.rdoZQ.CheckedChanged += new System.EventHandler(this.rdoZQ_CheckedChanged); + this.comboItem4.Text = "麻醉药"; + this.comboItem4.Value = "麻醉药"; // // dtpEnd // @@ -370,11 +350,12 @@ this.dtpEnd.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.dtpEnd.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown; this.dtpEnd.ButtonDropDown.Visible = true; - this.dtpEnd.CustomFormat = "yyyy-MM-dd HH:mm"; + this.dtpEnd.CustomFormat = "yyyy-MM-dd"; this.dtpEnd.FocusHighlightColor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(186)))), ((int)(((byte)(179))))); + this.dtpEnd.Font = new System.Drawing.Font("微软雅黑", 10.5F); this.dtpEnd.Format = DevComponents.Editors.eDateTimePickerFormat.Custom; this.dtpEnd.IsPopupCalendarOpen = false; - this.dtpEnd.Location = new System.Drawing.Point(310, 45); + this.dtpEnd.Location = new System.Drawing.Point(284, 45); // // // @@ -392,7 +373,7 @@ // this.dtpEnd.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.dtpEnd.Name = "dtpEnd"; - this.dtpEnd.Size = new System.Drawing.Size(200, 26); + this.dtpEnd.Size = new System.Drawing.Size(146, 26); this.dtpEnd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.dtpEnd.TabIndex = 472; // @@ -404,8 +385,9 @@ this.dtpOpeTime.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.dtpOpeTime.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown; this.dtpOpeTime.ButtonDropDown.Visible = true; - this.dtpOpeTime.CustomFormat = "yyyy-MM-dd HH:mm"; + this.dtpOpeTime.CustomFormat = "yyyy-MM-dd"; this.dtpOpeTime.FocusHighlightColor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(186)))), ((int)(((byte)(179))))); + this.dtpOpeTime.Font = new System.Drawing.Font("微软雅黑", 10.5F); this.dtpOpeTime.Format = DevComponents.Editors.eDateTimePickerFormat.Custom; this.dtpOpeTime.IsPopupCalendarOpen = false; this.dtpOpeTime.Location = new System.Drawing.Point(94, 44); @@ -426,25 +408,39 @@ // this.dtpOpeTime.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.dtpOpeTime.Name = "dtpOpeTime"; - this.dtpOpeTime.Size = new System.Drawing.Size(200, 26); + this.dtpOpeTime.Size = new System.Drawing.Size(150, 26); this.dtpOpeTime.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.dtpOpeTime.TabIndex = 471; // // label24 // this.label24.AutoSize = true; - this.label24.Location = new System.Drawing.Point(294, 47); + this.label24.Font = new System.Drawing.Font("微软雅黑", 10.5F); + this.label24.Location = new System.Drawing.Point(259, 45); this.label24.Name = "label24"; this.label24.Size = new System.Drawing.Size(15, 20); this.label24.TabIndex = 470; this.label24.Text = "-"; // + // btnDelete + // + this.btnDelete.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnDelete.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnDelete.Font = new System.Drawing.Font("微软雅黑", 10.5F); + this.btnDelete.Location = new System.Drawing.Point(663, 42); + this.btnDelete.Name = "btnDelete"; + this.btnDelete.Size = new System.Drawing.Size(90, 29); + this.btnDelete.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnDelete.TabIndex = 467; + this.btnDelete.Text = "删除"; + this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); + // // btnSave // this.btnSave.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btnSave.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnSave.Font = new System.Drawing.Font("微软雅黑", 11.5F); - this.btnSave.Location = new System.Drawing.Point(628, 44); + this.btnSave.Font = new System.Drawing.Font("微软雅黑", 10.5F); + this.btnSave.Location = new System.Drawing.Point(556, 42); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(90, 29); this.btnSave.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -456,8 +452,8 @@ // this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.buttonX1.Font = new System.Drawing.Font("微软雅黑", 11.5F); - this.buttonX1.Location = new System.Drawing.Point(520, 44); + this.buttonX1.Font = new System.Drawing.Font("微软雅黑", 10.5F); + this.buttonX1.Location = new System.Drawing.Point(449, 42); this.buttonX1.Name = "buttonX1"; this.buttonX1.Size = new System.Drawing.Size(90, 29); this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; @@ -465,31 +461,30 @@ this.buttonX1.Text = "查询"; this.buttonX1.Click += new System.EventHandler(this.btnOK_Click); // - // lblMessage + // label3 // - this.lblMessage.AutoSize = true; - this.lblMessage.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.lblMessage.ForeColor = System.Drawing.Color.ForestGreen; - this.lblMessage.Location = new System.Drawing.Point(735, 52); - this.lblMessage.Name = "lblMessage"; - this.lblMessage.Size = new System.Drawing.Size(51, 19); - this.lblMessage.TabIndex = 422; - this.lblMessage.Text = "label2"; - this.lblMessage.Visible = false; + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("微软雅黑", 10.5F); + this.label3.Location = new System.Drawing.Point(278, 13); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(68, 20); + this.label3.TabIndex = 421; + this.label3.Text = "药品名称:"; // // label1 // this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(403, 13); + this.label1.Font = new System.Drawing.Font("微软雅黑", 10.5F); + this.label1.Location = new System.Drawing.Point(20, 13); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(82, 20); + this.label1.Size = new System.Drawing.Size(68, 20); this.label1.TabIndex = 421; - this.label1.Text = "药品单类型:"; - this.label1.Visible = false; + this.label1.Text = "药品类型:"; // // labDate // this.labDate.AutoSize = true; + this.labDate.Font = new System.Drawing.Font("微软雅黑", 10.5F); this.labDate.Location = new System.Drawing.Point(20, 48); this.labDate.Name = "labDate"; this.labDate.Size = new System.Drawing.Size(68, 20); @@ -503,7 +498,7 @@ this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 10F); this.groupBox1.Location = new System.Drawing.Point(0, 126); this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(520, 415); + this.groupBox1.Size = new System.Drawing.Size(480, 415); this.groupBox1.TabIndex = 388; this.groupBox1.TabStop = false; this.groupBox1.Text = "查询记录"; @@ -532,7 +527,6 @@ this.TemplateType1, this.ChargType, this.PageType, - this.PageNo, this.ExecDepartmentName}); this.dgvOperation.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvOperation.Location = new System.Drawing.Point(3, 21); @@ -541,7 +535,7 @@ this.dgvOperation.ReadOnly = true; this.dgvOperation.RowTemplate.Height = 27; this.dgvOperation.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dgvOperation.Size = new System.Drawing.Size(514, 391); + this.dgvOperation.Size = new System.Drawing.Size(474, 391); this.dgvOperation.TabIndex = 386; this.dgvOperation.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvOperation_CellDoubleClick); // @@ -555,17 +549,23 @@ // // anesBegintime // + this.anesBegintime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.anesBegintime.DataPropertyName = "StartTime"; + this.anesBegintime.FillWeight = 162.4366F; this.anesBegintime.HeaderText = "开始时间"; this.anesBegintime.Name = "anesBegintime"; this.anesBegintime.ReadOnly = true; + this.anesBegintime.Width = 95; // // Anesendtime // + this.Anesendtime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.Anesendtime.DataPropertyName = "EndTime"; + this.Anesendtime.FillWeight = 79.18781F; this.Anesendtime.HeaderText = "结束时间"; this.Anesendtime.Name = "Anesendtime"; this.Anesendtime.ReadOnly = true; + this.Anesendtime.Width = 95; // // TemplateType1 // @@ -573,29 +573,25 @@ this.TemplateType1.HeaderText = "类别"; this.TemplateType1.Name = "TemplateType1"; this.TemplateType1.ReadOnly = true; + this.TemplateType1.Visible = false; // // ChargType // + this.ChargType.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.ChargType.DataPropertyName = "ChargType"; - this.ChargType.HeaderText = "收费类别"; + this.ChargType.FillWeight = 79.18781F; + this.ChargType.HeaderText = "药品类别"; this.ChargType.Name = "ChargType"; this.ChargType.ReadOnly = true; + this.ChargType.Width = 90; // // PageType // this.PageType.DataPropertyName = "PageType"; - this.PageType.HeaderText = "药品单类型"; + this.PageType.FillWeight = 79.18781F; + this.PageType.HeaderText = "药品名称"; this.PageType.Name = "PageType"; this.PageType.ReadOnly = true; - this.PageType.Visible = false; - // - // PageNo - // - this.PageNo.DataPropertyName = "PageNo"; - this.PageNo.HeaderText = "药品单号"; - this.PageNo.Name = "PageNo"; - this.PageNo.ReadOnly = true; - this.PageNo.Visible = false; // // ExecDepartmentName // @@ -605,148 +601,6 @@ this.ExecDepartmentName.ReadOnly = true; this.ExecDepartmentName.Visible = false; // - // dgvtEMPOperationInfos - // - this.dgvtEMPOperationInfos.AllowUserToAddRows = false; - this.dgvtEMPOperationInfos.AllowUserToDeleteRows = false; - this.dgvtEMPOperationInfos.AllowUserToResizeColumns = false; - this.dgvtEMPOperationInfos.AllowUserToResizeRows = false; - this.dgvtEMPOperationInfos.BackgroundColor = System.Drawing.Color.White; - this.dgvtEMPOperationInfos.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.dgvtEMPOperationInfos.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvtEMPOperationInfos.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.DId, - this.dataGridViewTextBoxColumn21, - this.dataGridViewTextBoxColumn22, - this.spec, - this.execDept, - this.room, - this.PatName, - this.InNo, - this.UpFreeTime, - this.dataGridViewTextBoxColumn23, - this.DUnit, - this.dataGridViewTextBoxColumn24, - this.ChargePrice}); - dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 10.5F); - dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvtEMPOperationInfos.DefaultCellStyle = dataGridViewCellStyle3; - this.dgvtEMPOperationInfos.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvtEMPOperationInfos.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; - this.dgvtEMPOperationInfos.GridColor = System.Drawing.Color.Black; - this.dgvtEMPOperationInfos.Location = new System.Drawing.Point(520, 126); - this.dgvtEMPOperationInfos.MultiSelect = false; - this.dgvtEMPOperationInfos.Name = "dgvtEMPOperationInfos"; - this.dgvtEMPOperationInfos.ReadOnly = true; - this.dgvtEMPOperationInfos.RowHeadersVisible = false; - this.dgvtEMPOperationInfos.RowTemplate.Height = 23; - this.dgvtEMPOperationInfos.ShowCellErrors = false; - this.dgvtEMPOperationInfos.ShowCellToolTips = false; - this.dgvtEMPOperationInfos.Size = new System.Drawing.Size(830, 415); - this.dgvtEMPOperationInfos.TabIndex = 389; - // - // dgvHZD - // - this.dgvHZD.AllowUserToAddRows = false; - this.dgvHZD.AllowUserToDeleteRows = false; - this.dgvHZD.AllowUserToResizeColumns = false; - this.dgvHZD.AllowUserToResizeRows = false; - this.dgvHZD.BackgroundColor = System.Drawing.Color.White; - this.dgvHZD.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.dgvHZD.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvHZD.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.dataGridViewTextBoxColumn32, - this.no, - this.dataGridViewTextBoxColumn33, - this.dataGridViewTextBoxColumn34, - this.dataGridViewTextBoxColumn35, - this.dataGridViewTextBoxColumn41, - this.dataGridViewTextBoxColumn42}); - dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 10.5F); - dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvHZD.DefaultCellStyle = dataGridViewCellStyle4; - this.dgvHZD.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvHZD.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; - this.dgvHZD.GridColor = System.Drawing.Color.Black; - this.dgvHZD.Location = new System.Drawing.Point(520, 126); - this.dgvHZD.MultiSelect = false; - this.dgvHZD.Name = "dgvHZD"; - this.dgvHZD.ReadOnly = true; - this.dgvHZD.RowHeadersVisible = false; - this.dgvHZD.RowTemplate.Height = 23; - this.dgvHZD.ShowCellErrors = false; - this.dgvHZD.ShowCellToolTips = false; - this.dgvHZD.Size = new System.Drawing.Size(830, 415); - this.dgvHZD.TabIndex = 390; - this.dgvHZD.Visible = false; - // - // dataGridViewTextBoxColumn32 - // - this.dataGridViewTextBoxColumn32.HeaderText = "id"; - this.dataGridViewTextBoxColumn32.Name = "dataGridViewTextBoxColumn32"; - this.dataGridViewTextBoxColumn32.ReadOnly = true; - this.dataGridViewTextBoxColumn32.Visible = false; - this.dataGridViewTextBoxColumn32.Width = 60; - // - // no - // - this.no.DataPropertyName = "noo"; - this.no.HeaderText = "序号"; - this.no.Name = "no"; - this.no.ReadOnly = true; - this.no.Width = 56; - // - // dataGridViewTextBoxColumn33 - // - this.dataGridViewTextBoxColumn33.DataPropertyName = "FeeCode"; - this.dataGridViewTextBoxColumn33.HeaderText = "编码"; - this.dataGridViewTextBoxColumn33.Name = "dataGridViewTextBoxColumn33"; - this.dataGridViewTextBoxColumn33.ReadOnly = true; - this.dataGridViewTextBoxColumn33.Visible = false; - this.dataGridViewTextBoxColumn33.Width = 75; - // - // dataGridViewTextBoxColumn34 - // - this.dataGridViewTextBoxColumn34.DataPropertyName = "ChargName"; - this.dataGridViewTextBoxColumn34.HeaderText = "药品名称"; - this.dataGridViewTextBoxColumn34.Name = "dataGridViewTextBoxColumn34"; - this.dataGridViewTextBoxColumn34.ReadOnly = true; - this.dataGridViewTextBoxColumn34.Width = 200; - // - // dataGridViewTextBoxColumn35 - // - this.dataGridViewTextBoxColumn35.DataPropertyName = "ChargSpec"; - this.dataGridViewTextBoxColumn35.HeaderText = "规格"; - this.dataGridViewTextBoxColumn35.Name = "dataGridViewTextBoxColumn35"; - this.dataGridViewTextBoxColumn35.ReadOnly = true; - this.dataGridViewTextBoxColumn35.Width = 160; - // - // dataGridViewTextBoxColumn41 - // - this.dataGridViewTextBoxColumn41.DataPropertyName = "FeeNum"; - this.dataGridViewTextBoxColumn41.HeaderText = "数量"; - this.dataGridViewTextBoxColumn41.Name = "dataGridViewTextBoxColumn41"; - this.dataGridViewTextBoxColumn41.ReadOnly = true; - this.dataGridViewTextBoxColumn41.Width = 60; - // - // dataGridViewTextBoxColumn42 - // - this.dataGridViewTextBoxColumn42.DataPropertyName = "UnitPrice"; - this.dataGridViewTextBoxColumn42.HeaderText = "单价"; - this.dataGridViewTextBoxColumn42.Name = "dataGridViewTextBoxColumn42"; - this.dataGridViewTextBoxColumn42.ReadOnly = true; - this.dataGridViewTextBoxColumn42.Width = 60; - // // dataGridViewTextBoxColumn1 // this.dataGridViewTextBoxColumn1.DataPropertyName = "OperationRecordId"; @@ -990,123 +844,80 @@ this.dataGridViewTextBoxColumn31.Visible = false; this.dataGridViewTextBoxColumn31.Width = 60; // - // DId + // dgvDrugs // - this.DId.DataPropertyName = "Id"; - this.DId.HeaderText = "id"; - this.DId.Name = "DId"; - this.DId.ReadOnly = true; - this.DId.Visible = false; - this.DId.Width = 60; + this.dgvDrugs.AllowUserToAddRows = false; + this.dgvDrugs.AllowUserToResizeColumns = false; + this.dgvDrugs.AllowUserToResizeRows = false; + dataGridViewCellStyle3.BackColor = System.Drawing.Color.MintCream; + this.dgvDrugs.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3; + this.dgvDrugs.BackgroundColor = System.Drawing.Color.White; + this.dgvDrugs.BorderStyle = System.Windows.Forms.BorderStyle.None; + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDrugs.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4; + this.dgvDrugs.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvDrugs.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dataGridViewTextBoxColumn21}); + dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle6.ForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvDrugs.DefaultCellStyle = dataGridViewCellStyle6; + this.dgvDrugs.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvDrugs.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; + this.dgvDrugs.EnableHeadersVisualStyles = false; + this.dgvDrugs.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229))))); + this.dgvDrugs.Location = new System.Drawing.Point(480, 126); + this.dgvDrugs.Margin = new System.Windows.Forms.Padding(0); + this.dgvDrugs.MultiSelect = false; + this.dgvDrugs.Name = "dgvDrugs"; + dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle7.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDrugs.RowHeadersDefaultCellStyle = dataGridViewCellStyle7; + this.dgvDrugs.RowHeadersVisible = false; + this.dgvDrugs.RowTemplate.Height = 25; + this.dgvDrugs.ShowCellErrors = false; + this.dgvDrugs.ShowCellToolTips = false; + this.dgvDrugs.Size = new System.Drawing.Size(870, 415); + this.dgvDrugs.TabIndex = 389; + this.dgvDrugs.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDrugs_CellDoubleClick); + this.dgvDrugs.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgvDrugs_RowPostPaint); // // dataGridViewTextBoxColumn21 // - this.dataGridViewTextBoxColumn21.DataPropertyName = "FeeCode"; - this.dataGridViewTextBoxColumn21.HeaderText = "编码"; + this.dataGridViewTextBoxColumn21.DataPropertyName = "id"; + dataGridViewCellStyle5.ForeColor = System.Drawing.Color.Red; + this.dataGridViewTextBoxColumn21.DefaultCellStyle = dataGridViewCellStyle5; + this.dataGridViewTextBoxColumn21.HeaderText = "ID"; this.dataGridViewTextBoxColumn21.Name = "dataGridViewTextBoxColumn21"; - this.dataGridViewTextBoxColumn21.ReadOnly = true; - this.dataGridViewTextBoxColumn21.Width = 75; - // - // dataGridViewTextBoxColumn22 - // - this.dataGridViewTextBoxColumn22.DataPropertyName = "ChargName"; - this.dataGridViewTextBoxColumn22.HeaderText = "药品名称"; - this.dataGridViewTextBoxColumn22.Name = "dataGridViewTextBoxColumn22"; - this.dataGridViewTextBoxColumn22.ReadOnly = true; - this.dataGridViewTextBoxColumn22.Width = 200; - // - // spec - // - this.spec.DataPropertyName = "ChargSpec"; - this.spec.HeaderText = "规格"; - this.spec.Name = "spec"; - this.spec.ReadOnly = true; - this.spec.Width = 160; - // - // execDept - // - this.execDept.DataPropertyName = "ExecDept"; - this.execDept.HeaderText = "执行科室"; - this.execDept.Name = "execDept"; - this.execDept.ReadOnly = true; - this.execDept.Width = 150; - // - // room - // - this.room.DataPropertyName = "OperationRoom"; - this.room.HeaderText = "手术间"; - this.room.Name = "room"; - this.room.ReadOnly = true; - this.room.Width = 150; - // - // PatName - // - this.PatName.DataPropertyName = "PatientName"; - this.PatName.HeaderText = "患者姓名"; - this.PatName.Name = "PatName"; - this.PatName.ReadOnly = true; - this.PatName.Width = 80; - // - // InNo - // - this.InNo.DataPropertyName = "MdrecNo"; - this.InNo.HeaderText = "住院号"; - this.InNo.Name = "InNo"; - this.InNo.ReadOnly = true; - this.InNo.Width = 80; - // - // UpFreeTime - // - this.UpFreeTime.DataPropertyName = "ExecTime"; - this.UpFreeTime.HeaderText = "执行时间"; - this.UpFreeTime.Name = "UpFreeTime"; - this.UpFreeTime.ReadOnly = true; - this.UpFreeTime.Width = 125; - // - // dataGridViewTextBoxColumn23 - // - this.dataGridViewTextBoxColumn23.DataPropertyName = "FeeNum"; - this.dataGridViewTextBoxColumn23.HeaderText = "数量"; - this.dataGridViewTextBoxColumn23.Name = "dataGridViewTextBoxColumn23"; - this.dataGridViewTextBoxColumn23.ReadOnly = true; - this.dataGridViewTextBoxColumn23.Width = 60; - // - // DUnit - // - this.DUnit.DataPropertyName = "Unit"; - this.DUnit.HeaderText = "单位"; - this.DUnit.Name = "DUnit"; - this.DUnit.ReadOnly = true; - this.DUnit.Visible = false; - this.DUnit.Width = 60; - // - // dataGridViewTextBoxColumn24 - // - this.dataGridViewTextBoxColumn24.DataPropertyName = "UnitPrice"; - this.dataGridViewTextBoxColumn24.HeaderText = "单价"; - this.dataGridViewTextBoxColumn24.Name = "dataGridViewTextBoxColumn24"; - this.dataGridViewTextBoxColumn24.ReadOnly = true; - this.dataGridViewTextBoxColumn24.Width = 70; - // - // ChargePrice - // - this.ChargePrice.DataPropertyName = "ChargePrice"; - this.ChargePrice.HeaderText = "总价"; - this.ChargePrice.Name = "ChargePrice"; - this.ChargePrice.ReadOnly = true; + this.dataGridViewTextBoxColumn21.Visible = false; + this.dataGridViewTextBoxColumn21.Width = 30; // // frmOperationCharg3 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1350, 541); - this.Controls.Add(this.dgvHZD); - this.Controls.Add(this.dgvtEMPOperationInfos); + this.Controls.Add(this.dgvDrugs); this.Controls.Add(this.groupBox1); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); this.Name = "frmOperationCharg3"; - this.Text = "费用对照"; + this.Text = "费用药品登记"; this.Load += new System.EventHandler(this.frmOperationDruggCheck_Load); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); @@ -1114,14 +925,11 @@ this.panel2.PerformLayout(); this.panel4.ResumeLayout(false); this.panel4.PerformLayout(); - this.panel3.ResumeLayout(false); - this.panel3.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dtpEnd)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dtpOpeTime)).EndInit(); this.groupBox1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvOperation)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.dgvtEMPOperationInfos)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.dgvHZD)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvDrugs)).EndInit(); this.ResumeLayout(false); } @@ -1131,7 +939,6 @@ private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Button toolStripButton10; private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Label lblMessage; public System.Windows.Forms.Label labDate; private System.Windows.Forms.Label label2; private System.Windows.Forms.Button tsbSettingDGV; @@ -1164,7 +971,6 @@ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn20; private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.DataGridView dgvOperation; - private System.Windows.Forms.DataGridView dgvtEMPOperationInfos; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn25; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn26; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn27; @@ -1172,47 +978,30 @@ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn29; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn30; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn31; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.RadioButton rdoJZ; - private System.Windows.Forms.RadioButton rdoZQ; private DevComponents.DotNetBar.Controls.ComboBoxEx comboBoxExType; public System.Windows.Forms.Label label1; - private System.Windows.Forms.DataGridView dgvHZD; private DevComponents.Editors.ComboItem comboItem1; private DevComponents.Editors.ComboItem comboItem2; - private DevComponents.Editors.ComboItem comboItem3; private DevComponents.Editors.ComboItem comboItem4; private System.Windows.Forms.Panel panel4; private System.Windows.Forms.RadioButton rdoHs; private System.Windows.Forms.RadioButton rdoMz; private DevComponents.DotNetBar.ButtonX btnSave; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn32; - private System.Windows.Forms.DataGridViewTextBoxColumn no; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn33; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn34; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn35; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn41; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn42; + private DevComponents.DotNetBar.Controls.ComboBoxEx cnoDrugName; + private DevComponents.Editors.ComboItem comboItem5; + private DevComponents.Editors.ComboItem comboItem6; + private DevComponents.Editors.ComboItem comboItem7; + private DevComponents.Editors.ComboItem comboItem8; + public System.Windows.Forms.Label label3; private System.Windows.Forms.DataGridViewTextBoxColumn Id; private System.Windows.Forms.DataGridViewTextBoxColumn anesBegintime; private System.Windows.Forms.DataGridViewTextBoxColumn Anesendtime; private System.Windows.Forms.DataGridViewTextBoxColumn TemplateType1; private System.Windows.Forms.DataGridViewTextBoxColumn ChargType; private System.Windows.Forms.DataGridViewTextBoxColumn PageType; - private System.Windows.Forms.DataGridViewTextBoxColumn PageNo; private System.Windows.Forms.DataGridViewTextBoxColumn ExecDepartmentName; - private System.Windows.Forms.DataGridViewTextBoxColumn DId; + private DevComponents.DotNetBar.Controls.DataGridViewX dgvDrugs; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn21; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn22; - private System.Windows.Forms.DataGridViewTextBoxColumn spec; - private System.Windows.Forms.DataGridViewTextBoxColumn execDept; - private System.Windows.Forms.DataGridViewTextBoxColumn room; - private System.Windows.Forms.DataGridViewTextBoxColumn PatName; - private System.Windows.Forms.DataGridViewTextBoxColumn InNo; - private System.Windows.Forms.DataGridViewTextBoxColumn UpFreeTime; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn23; - private System.Windows.Forms.DataGridViewTextBoxColumn DUnit; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn24; - private System.Windows.Forms.DataGridViewTextBoxColumn ChargePrice; + private DevComponents.DotNetBar.ButtonX btnDelete; } } \ No newline at end of file diff --git a/AIMS/OperationAfter/frmOperationCharg3.resx b/AIMS/OperationAfter/frmOperationCharg3.resx index 6227fd8..06aed97 100644 --- a/AIMS/OperationAfter/frmOperationCharg3.resx +++ b/AIMS/OperationAfter/frmOperationCharg3.resx @@ -135,70 +135,7 @@ True - - True - True - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - \ No newline at end of file diff --git a/AIMS/OperationAfter/frmOperationCharg5.cs b/AIMS/OperationAfter/frmOperationCharg5.cs new file mode 100644 index 0000000..6e9e806 --- /dev/null +++ b/AIMS/OperationAfter/frmOperationCharg5.cs @@ -0,0 +1,212 @@ +using AIMSBLL; +using AIMSExtension; +using AIMSModel; +using DevComponents.Editors; +using System; +using System.Collections.Generic; +using System.Data; +using System.Windows.Forms; + +namespace AIMS.OperationAfter.UI +{ + public partial class frmOperationCharg5 : Form + { + + DataTable operationApplys; + public string FeeType = "麻醉"; + public List upHisDrugs; + + public frmOperationCharg5() + { + InitializeComponent(); + + } + + private void frmOperationDruggCheck_Load(object sender, EventArgs e) + { + try + { + dtpOpeTime.Value = DateTime.Now; + dtpEnd.Value = dtpOpeTime.Value; + dgvOperation.AutoGenerateColumns = false; + dgvtEMPOperationInfos.AutoGenerateColumns = false; + dgvHZD.AutoGenerateColumns = false; + + LoadSelectDate(); + if (upHisDrugs != null && upHisDrugs.Count > 0) + { + dtpOpeTime.Value = upHisDrugs[0].EndTime.Value; + } + } + catch (Exception exp) + { + PublicMethod.WriteLog(exp); + } + } + public void LoadSelectDate() + { + string where = " "; + upHisDrugs = BFeesRecordReport.Select(" FeeType='" + FeeType + "' " + where + " order by endtime desc", null); + dgvOperation.DataSource = upHisDrugs; + dgvOperation.ClearSelection(); + } + private void btnOK_Click(object sender, EventArgs e) + { + //if (comboBoxExType.Text == "") return; + string beginTime = Convert.ToDateTime(dtpOpeTime.Value).ToString("yyyy-MM-dd HH:mm:00"); + string endTime = Convert.ToDateTime(dtpEnd.Value).ToString("yyyy-MM-dd HH:mm:00"); + string sql = string.Format(" ExecTime>='{0}' and ExecTime<'{1}'", beginTime, endTime); + //if (comboBoxExType.SelectedItem != null) + //{ + // ComboItem chargitem = comboBoxExType.SelectedItem as ComboItem; + // sql += " and (page_type = '" + chargitem.Value + "' ) "; + //} + if (FeeType != "") + { + sql += " and (FeeType = '" + FeeType + "' ) "; + } + if (rdoZQ.Checked == true) + { + operationApplys = BFeesRecordReport.GetUpListByWhere(sql); + dgvtEMPOperationInfos.DataSource = operationApplys; + } + else + { + operationApplys = BFeesRecordReport.GetUpListByWhere2(sql); + dgvHZD.DataSource = operationApplys; + } + } + + + private void toolStripButton10_Click(object sender, EventArgs e) + { + this.Close(); + } + + /// + /// 表格配置 + /// + /// + /// + private void tsbSettingDGV_Click(object sender, EventArgs e) + { + //DataGridViewSettingManager.GetInstance().ShowConfigUI(dgvOperation); + //dgvOperation.AllowUserToAddRows = false; + } + + private void button1_Click(object sender, EventArgs e) + { + if (dgvOperation.Rows.Count < 0 || dgvOperation.Rows.Count < 1) + { + MessageBox.Show("没有记录,请查询到数据后再导出数据到Excel"); + return; + } + //if (rdoZQ.Checked == true) + //{ + // BLL.DataGridViewToExcel.DataToExcel(dgvtEMPOperationInfos); + //} + //else + //{ + // BLL.DataGridViewToExcel.DataToExcel(dgvHZD); + //} + } + private void cboRoom_SelectedIndexChanged(object sender, EventArgs e) + { + //btnOK_Click(null, null); + LoadSelectDate(); + } + + + private void dgvOperation_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int OpeID = 0; + if (dgvOperation.SelectedRows.Count > 0) + { + OpeID = Convert.ToInt32(dgvOperation.SelectedRows[0].Cells[0].Value.ToString()); + } + if (OpeID == 0) + { + return; + } + FeesRecordReport upHis = BFeesRecordReport.SelectSingle(OpeID); + cboRoom.Text = upHis.ExecDepartmentName; + //comboBoxExType.Text = upHis.PageType; + FeeType = upHis.FeeType; + if (upHis.FeeType == "麻醉") rdoMz.Checked = true; + else rdoHs.Checked = true; + if (upHis.ChargType == rdoZQ.Text) rdoZQ.Checked = true; + else rdoJZ.Checked = true; + dtpOpeTime.Value = upHis.StartTime.Value; + dtpEnd.Value = upHis.EndTime.Value; + btnOK_Click(null, null); + + } + + private void rdoZQ_CheckedChanged(object sender, EventArgs e) + { + if (rdoZQ.Checked == true) + { + dgvtEMPOperationInfos.Visible = true; + dgvHZD.Visible = false; + } + else + { + dgvtEMPOperationInfos.Visible = false; + dgvHZD.Visible = true; + } + + //btnOK_Click(null, null); + } + + private void voidableRadioButton2_CheckedChanged(object sender, EventArgs e) + { + if (rdoMz.Checked == true) + { + FeeType = "麻醉"; + } + else + { + FeeType = "护士"; + } + LoadSelectDate(); + } + + private void btnSave_Click(object sender, EventArgs e) + { + //if (comboBoxExType.Text == "") + //{ + // MessageBox.Show("请选择药品单类型!", "系统提示"); return; + //} + FeesRecordReport upHisDrugOrdersSDYSelect = new FeesRecordReport(); + DateTime beginTime = Convert.ToDateTime(dtpOpeTime.Value); + DateTime endTime = Convert.ToDateTime(dtpEnd.Value); + upHisDrugOrdersSDYSelect.StartTime = beginTime; + upHisDrugOrdersSDYSelect.EndTime = endTime; + + //if (comboBoxExType.SelectedItem != null) + //{ + // ComboItem chargitem = comboBoxExType.SelectedItem as ComboItem; + // upHisDrugOrdersSDYSelect.PageType = chargitem.Text; + // upHisDrugOrdersSDYSelect.PageNo = chargitem.Value.ToString(); + //} + if (FeeType != "") + { + upHisDrugOrdersSDYSelect.FeeType = FeeType; + } + if (rdoZQ.Checked == true) + { + upHisDrugOrdersSDYSelect.ChargType = rdoZQ.Text; + } + else + { + upHisDrugOrdersSDYSelect.ChargType = rdoJZ.Text; + } + upHisDrugOrdersSDYSelect.OperatorId = PublicMethod.OperatorId; + upHisDrugOrdersSDYSelect.OperatorTime = DateTime.Now; + BFeesRecordReport.Insert(upHisDrugOrdersSDYSelect); + MessageBox.Show("保存成功!", "系统提示"); + LoadSelectDate(); + } + + } +} diff --git a/AIMS/OperationAfter/frmOperationCharg5.designer.cs b/AIMS/OperationAfter/frmOperationCharg5.designer.cs new file mode 100644 index 0000000..1574b41 --- /dev/null +++ b/AIMS/OperationAfter/frmOperationCharg5.designer.cs @@ -0,0 +1,1218 @@ +namespace AIMS.OperationAfter.UI +{ + partial class frmOperationCharg5 + { + /// + /// 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.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + this.panel1 = new System.Windows.Forms.Panel(); + this.cboRoom = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.label22 = new System.Windows.Forms.Label(); + this.button1 = new System.Windows.Forms.Button(); + this.label2 = new System.Windows.Forms.Label(); + this.tsbSettingDGV = new System.Windows.Forms.Button(); + this.toolStripButton10 = new System.Windows.Forms.Button(); + this.panel2 = new System.Windows.Forms.Panel(); + this.panel4 = new System.Windows.Forms.Panel(); + this.rdoHs = new System.Windows.Forms.RadioButton(); + this.rdoMz = new System.Windows.Forms.RadioButton(); + this.comboBoxExType = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.comboItem1 = new DevComponents.Editors.ComboItem(); + this.comboItem2 = new DevComponents.Editors.ComboItem(); + this.comboItem3 = new DevComponents.Editors.ComboItem(); + this.comboItem4 = new DevComponents.Editors.ComboItem(); + this.panel3 = new System.Windows.Forms.Panel(); + this.rdoJZ = new System.Windows.Forms.RadioButton(); + this.rdoZQ = new System.Windows.Forms.RadioButton(); + this.dtpEnd = new DevComponents.Editors.DateTimeAdv.DateTimeInput(); + this.dtpOpeTime = new DevComponents.Editors.DateTimeAdv.DateTimeInput(); + this.label24 = new System.Windows.Forms.Label(); + this.btnSave = new DevComponents.DotNetBar.ButtonX(); + this.buttonX1 = new DevComponents.DotNetBar.ButtonX(); + this.lblMessage = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.labDate = new System.Windows.Forms.Label(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dgvOperation = new System.Windows.Forms.DataGridView(); + this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.anesBegintime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Anesendtime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.TemplateType1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ChargType = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.PageType = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.PageNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ExecDepartmentName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dgvtEMPOperationInfos = new System.Windows.Forms.DataGridView(); + this.dgvHZD = new System.Windows.Forms.DataGridView(); + this.dataGridViewTextBoxColumn32 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.no = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn33 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn34 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn35 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn41 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn42 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + 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.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn16 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn17 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn19 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn20 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn25 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn26 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn27 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn28 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn29 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn30 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn31 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.DId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn22 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.spec = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.execDept = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.room = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.PatName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.InNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.UpFreeTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn23 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.DUnit = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn24 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ChargePrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.panel1.SuspendLayout(); + this.panel2.SuspendLayout(); + this.panel4.SuspendLayout(); + this.panel3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dtpEnd)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dtpOpeTime)).BeginInit(); + this.groupBox1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dgvOperation)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvtEMPOperationInfos)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvHZD)).BeginInit(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.Transparent; + this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.panel1.Controls.Add(this.cboRoom); + this.panel1.Controls.Add(this.label22); + this.panel1.Controls.Add(this.button1); + this.panel1.Controls.Add(this.label2); + this.panel1.Controls.Add(this.tsbSettingDGV); + this.panel1.Controls.Add(this.toolStripButton10); + this.panel1.Dock = System.Windows.Forms.DockStyle.Top; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(1350, 45); + this.panel1.TabIndex = 0; + // + // cboRoom + // + this.cboRoom.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.cboRoom.DisplayMember = "Text"; + this.cboRoom.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.cboRoom.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.cboRoom.FormattingEnabled = true; + this.cboRoom.ItemHeight = 17; + this.cboRoom.Location = new System.Drawing.Point(994, 12); + this.cboRoom.Name = "cboRoom"; + this.cboRoom.Size = new System.Drawing.Size(150, 23); + this.cboRoom.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.cboRoom.TabIndex = 32; + this.cboRoom.Visible = false; + // + // label22 + // + this.label22.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label22.AutoSize = true; + this.label22.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label22.Location = new System.Drawing.Point(923, 13); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(65, 20); + this.label22.TabIndex = 31; + this.label22.Text = "手术地点"; + this.label22.Visible = false; + // + // button1 + // + this.button1.Cursor = System.Windows.Forms.Cursors.Hand; + this.button1.Dock = System.Windows.Forms.DockStyle.Left; + this.button1.FlatAppearance.BorderSize = 0; + this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button1.Font = new System.Drawing.Font("微软雅黑", 11F); + this.button1.Location = new System.Drawing.Point(0, 0); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(100, 45); + this.button1.TabIndex = 16; + this.button1.Text = "导出Excel"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // label2 + // + this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Font = new System.Drawing.Font("微软雅黑", 11F); + this.label2.Location = new System.Drawing.Point(1238, 13); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(13, 20); + this.label2.TabIndex = 5; + this.label2.Text = "|"; + this.label2.Visible = false; + // + // tsbSettingDGV + // + this.tsbSettingDGV.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.tsbSettingDGV.BackColor = System.Drawing.Color.Transparent; + this.tsbSettingDGV.Cursor = System.Windows.Forms.Cursors.Hand; + this.tsbSettingDGV.FlatAppearance.BorderSize = 0; + this.tsbSettingDGV.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.tsbSettingDGV.Font = new System.Drawing.Font("微软雅黑", 11F); + this.tsbSettingDGV.Location = new System.Drawing.Point(1150, 8); + this.tsbSettingDGV.Name = "tsbSettingDGV"; + this.tsbSettingDGV.Size = new System.Drawing.Size(85, 30); + this.tsbSettingDGV.TabIndex = 4; + this.tsbSettingDGV.Text = "表格设置"; + this.tsbSettingDGV.UseVisualStyleBackColor = false; + this.tsbSettingDGV.Visible = false; + this.tsbSettingDGV.Click += new System.EventHandler(this.tsbSettingDGV_Click); + // + // toolStripButton10 + // + this.toolStripButton10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.toolStripButton10.Cursor = System.Windows.Forms.Cursors.Hand; + this.toolStripButton10.FlatAppearance.BorderSize = 0; + this.toolStripButton10.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.toolStripButton10.Font = new System.Drawing.Font("微软雅黑", 11F); + this.toolStripButton10.Location = new System.Drawing.Point(1257, 8); + this.toolStripButton10.Name = "toolStripButton10"; + this.toolStripButton10.Size = new System.Drawing.Size(90, 30); + this.toolStripButton10.TabIndex = 0; + this.toolStripButton10.Text = "关闭"; + this.toolStripButton10.UseVisualStyleBackColor = true; + this.toolStripButton10.Click += new System.EventHandler(this.toolStripButton10_Click); + // + // panel2 + // + this.panel2.BackColor = System.Drawing.Color.WhiteSmoke; + this.panel2.Controls.Add(this.panel4); + this.panel2.Controls.Add(this.comboBoxExType); + this.panel2.Controls.Add(this.panel3); + this.panel2.Controls.Add(this.dtpEnd); + this.panel2.Controls.Add(this.dtpOpeTime); + this.panel2.Controls.Add(this.label24); + this.panel2.Controls.Add(this.btnSave); + this.panel2.Controls.Add(this.buttonX1); + this.panel2.Controls.Add(this.lblMessage); + this.panel2.Controls.Add(this.label1); + this.panel2.Controls.Add(this.labDate); + this.panel2.Dock = System.Windows.Forms.DockStyle.Top; + 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, 45); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(1350, 81); + this.panel2.TabIndex = 387; + // + // panel4 + // + this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel4.Controls.Add(this.rdoHs); + this.panel4.Controls.Add(this.rdoMz); + this.panel4.Location = new System.Drawing.Point(21, 6); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(177, 33); + this.panel4.TabIndex = 474; + // + // rdoHs + // + this.rdoHs.AutoSize = true; + this.rdoHs.Location = new System.Drawing.Point(93, 5); + this.rdoHs.Name = "rdoHs"; + this.rdoHs.Size = new System.Drawing.Size(83, 24); + this.rdoHs.TabIndex = 0; + this.rdoHs.Text = "护士收费"; + this.rdoHs.UseVisualStyleBackColor = true; + this.rdoHs.CheckedChanged += new System.EventHandler(this.voidableRadioButton2_CheckedChanged); + // + // rdoMz + // + this.rdoMz.AutoSize = true; + this.rdoMz.Checked = true; + this.rdoMz.Location = new System.Drawing.Point(2, 5); + this.rdoMz.Name = "rdoMz"; + this.rdoMz.Size = new System.Drawing.Size(83, 24); + this.rdoMz.TabIndex = 0; + this.rdoMz.TabStop = true; + this.rdoMz.Text = "麻醉收费"; + this.rdoMz.UseVisualStyleBackColor = true; + this.rdoMz.CheckedChanged += new System.EventHandler(this.voidableRadioButton2_CheckedChanged); + // + // comboBoxExType + // + this.comboBoxExType.DisplayMember = "Text"; + this.comboBoxExType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.comboBoxExType.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.comboBoxExType.FormattingEnabled = true; + this.comboBoxExType.ItemHeight = 17; + this.comboBoxExType.Items.AddRange(new object[] { + this.comboItem1, + this.comboItem2, + this.comboItem3, + this.comboItem4}); + this.comboBoxExType.Location = new System.Drawing.Point(491, 12); + this.comboBoxExType.Name = "comboBoxExType"; + this.comboBoxExType.Size = new System.Drawing.Size(150, 23); + this.comboBoxExType.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.comboBoxExType.TabIndex = 32; + this.comboBoxExType.Visible = false; + this.comboBoxExType.SelectedIndexChanged += new System.EventHandler(this.cboRoom_SelectedIndexChanged); + // + // comboItem1 + // + this.comboItem1.Text = "毒麻药品"; + this.comboItem1.Value = "122"; + // + // comboItem2 + // + this.comboItem2.Text = "一类精神药品"; + this.comboItem2.Value = "123"; + // + // comboItem3 + // + this.comboItem3.Text = "二类精神药品"; + this.comboItem3.Value = "121"; + // + // comboItem4 + // + this.comboItem4.Text = "常规药,液"; + this.comboItem4.Value = "64"; + // + // panel3 + // + this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel3.Controls.Add(this.rdoJZ); + this.panel3.Controls.Add(this.rdoZQ); + this.panel3.Location = new System.Drawing.Point(216, 6); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(172, 33); + this.panel3.TabIndex = 473; + // + // rdoJZ + // + this.rdoJZ.AutoSize = true; + this.rdoJZ.Location = new System.Drawing.Point(93, 5); + this.rdoJZ.Name = "rdoJZ"; + this.rdoJZ.Size = new System.Drawing.Size(69, 24); + this.rdoJZ.TabIndex = 0; + this.rdoJZ.Text = "汇总单"; + this.rdoJZ.UseVisualStyleBackColor = true; + this.rdoJZ.CheckedChanged += new System.EventHandler(this.rdoZQ_CheckedChanged); + // + // rdoZQ + // + this.rdoZQ.AutoSize = true; + this.rdoZQ.Checked = true; + this.rdoZQ.Location = new System.Drawing.Point(11, 5); + this.rdoZQ.Name = "rdoZQ"; + this.rdoZQ.Size = new System.Drawing.Size(69, 24); + this.rdoZQ.TabIndex = 0; + this.rdoZQ.TabStop = true; + this.rdoZQ.Text = "明细单"; + this.rdoZQ.UseVisualStyleBackColor = true; + this.rdoZQ.CheckedChanged += new System.EventHandler(this.rdoZQ_CheckedChanged); + // + // dtpEnd + // + // + // + // + this.dtpEnd.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dtpEnd.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown; + this.dtpEnd.ButtonDropDown.Visible = true; + this.dtpEnd.CustomFormat = "yyyy-MM-dd HH:mm"; + this.dtpEnd.FocusHighlightColor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(186)))), ((int)(((byte)(179))))); + this.dtpEnd.Format = DevComponents.Editors.eDateTimePickerFormat.Custom; + this.dtpEnd.IsPopupCalendarOpen = false; + this.dtpEnd.Location = new System.Drawing.Point(310, 45); + // + // + // + // + // + // + this.dtpEnd.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.dtpEnd.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dtpEnd.MonthCalendar.DisplayMonth = new System.DateTime(2017, 11, 1, 0, 0, 0, 0); + // + // + // + this.dtpEnd.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dtpEnd.Name = "dtpEnd"; + this.dtpEnd.Size = new System.Drawing.Size(200, 26); + this.dtpEnd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.dtpEnd.TabIndex = 472; + // + // dtpOpeTime + // + // + // + // + this.dtpOpeTime.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dtpOpeTime.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown; + this.dtpOpeTime.ButtonDropDown.Visible = true; + this.dtpOpeTime.CustomFormat = "yyyy-MM-dd HH:mm"; + this.dtpOpeTime.FocusHighlightColor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(186)))), ((int)(((byte)(179))))); + this.dtpOpeTime.Format = DevComponents.Editors.eDateTimePickerFormat.Custom; + this.dtpOpeTime.IsPopupCalendarOpen = false; + this.dtpOpeTime.Location = new System.Drawing.Point(94, 44); + // + // + // + // + // + // + this.dtpOpeTime.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.dtpOpeTime.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dtpOpeTime.MonthCalendar.DisplayMonth = new System.DateTime(2017, 11, 1, 0, 0, 0, 0); + // + // + // + this.dtpOpeTime.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dtpOpeTime.Name = "dtpOpeTime"; + this.dtpOpeTime.Size = new System.Drawing.Size(200, 26); + this.dtpOpeTime.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.dtpOpeTime.TabIndex = 471; + // + // label24 + // + this.label24.AutoSize = true; + this.label24.Location = new System.Drawing.Point(294, 47); + this.label24.Name = "label24"; + this.label24.Size = new System.Drawing.Size(15, 20); + this.label24.TabIndex = 470; + this.label24.Text = "-"; + // + // btnSave + // + this.btnSave.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnSave.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnSave.Font = new System.Drawing.Font("微软雅黑", 11.5F); + this.btnSave.Location = new System.Drawing.Point(628, 44); + this.btnSave.Name = "btnSave"; + this.btnSave.Size = new System.Drawing.Size(90, 29); + this.btnSave.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnSave.TabIndex = 467; + this.btnSave.Text = "保存"; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); + // + // buttonX1 + // + this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.buttonX1.Font = new System.Drawing.Font("微软雅黑", 11.5F); + this.buttonX1.Location = new System.Drawing.Point(520, 44); + this.buttonX1.Name = "buttonX1"; + this.buttonX1.Size = new System.Drawing.Size(90, 29); + this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.buttonX1.TabIndex = 467; + this.buttonX1.Text = "查询"; + this.buttonX1.Click += new System.EventHandler(this.btnOK_Click); + // + // lblMessage + // + this.lblMessage.AutoSize = true; + this.lblMessage.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.lblMessage.ForeColor = System.Drawing.Color.ForestGreen; + this.lblMessage.Location = new System.Drawing.Point(735, 52); + this.lblMessage.Name = "lblMessage"; + this.lblMessage.Size = new System.Drawing.Size(51, 19); + this.lblMessage.TabIndex = 422; + this.lblMessage.Text = "label2"; + this.lblMessage.Visible = false; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(403, 13); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(82, 20); + this.label1.TabIndex = 421; + this.label1.Text = "药品单类型:"; + this.label1.Visible = false; + // + // labDate + // + this.labDate.AutoSize = true; + this.labDate.Location = new System.Drawing.Point(20, 48); + this.labDate.Name = "labDate"; + this.labDate.Size = new System.Drawing.Size(68, 20); + this.labDate.TabIndex = 421; + this.labDate.Text = "上传时间:"; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dgvOperation); + this.groupBox1.Dock = System.Windows.Forms.DockStyle.Left; + this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 10F); + this.groupBox1.Location = new System.Drawing.Point(0, 126); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(520, 415); + this.groupBox1.TabIndex = 388; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "查询记录"; + // + // dgvOperation + // + this.dgvOperation.AllowUserToAddRows = false; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(247)))), ((int)(((byte)(255))))); + this.dgvOperation.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.dgvOperation.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dgvOperation.BackgroundColor = System.Drawing.Color.Snow; + this.dgvOperation.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("微软雅黑", 10F); + dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvOperation.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; + this.dgvOperation.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvOperation.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.Id, + this.anesBegintime, + this.Anesendtime, + this.TemplateType1, + this.ChargType, + this.PageType, + this.PageNo, + this.ExecDepartmentName}); + this.dgvOperation.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvOperation.Location = new System.Drawing.Point(3, 21); + this.dgvOperation.Margin = new System.Windows.Forms.Padding(2); + this.dgvOperation.Name = "dgvOperation"; + this.dgvOperation.ReadOnly = true; + this.dgvOperation.RowTemplate.Height = 27; + this.dgvOperation.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.dgvOperation.Size = new System.Drawing.Size(514, 391); + this.dgvOperation.TabIndex = 386; + this.dgvOperation.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvOperation_CellDoubleClick); + // + // Id + // + this.Id.DataPropertyName = "Id"; + this.Id.HeaderText = "Id"; + this.Id.Name = "Id"; + this.Id.ReadOnly = true; + this.Id.Visible = false; + // + // anesBegintime + // + this.anesBegintime.DataPropertyName = "StartTime"; + this.anesBegintime.HeaderText = "开始时间"; + this.anesBegintime.Name = "anesBegintime"; + this.anesBegintime.ReadOnly = true; + // + // Anesendtime + // + this.Anesendtime.DataPropertyName = "EndTime"; + this.Anesendtime.HeaderText = "结束时间"; + this.Anesendtime.Name = "Anesendtime"; + this.Anesendtime.ReadOnly = true; + // + // TemplateType1 + // + this.TemplateType1.DataPropertyName = "FeeType"; + this.TemplateType1.HeaderText = "类别"; + this.TemplateType1.Name = "TemplateType1"; + this.TemplateType1.ReadOnly = true; + // + // ChargType + // + this.ChargType.DataPropertyName = "ChargType"; + this.ChargType.HeaderText = "收费类别"; + this.ChargType.Name = "ChargType"; + this.ChargType.ReadOnly = true; + // + // PageType + // + this.PageType.DataPropertyName = "PageType"; + this.PageType.HeaderText = "药品单类型"; + this.PageType.Name = "PageType"; + this.PageType.ReadOnly = true; + this.PageType.Visible = false; + // + // PageNo + // + this.PageNo.DataPropertyName = "PageNo"; + this.PageNo.HeaderText = "药品单号"; + this.PageNo.Name = "PageNo"; + this.PageNo.ReadOnly = true; + this.PageNo.Visible = false; + // + // ExecDepartmentName + // + this.ExecDepartmentName.DataPropertyName = "ExecDepartmentName"; + this.ExecDepartmentName.HeaderText = "执行科室"; + this.ExecDepartmentName.Name = "ExecDepartmentName"; + this.ExecDepartmentName.ReadOnly = true; + this.ExecDepartmentName.Visible = false; + // + // dgvtEMPOperationInfos + // + this.dgvtEMPOperationInfos.AllowUserToAddRows = false; + this.dgvtEMPOperationInfos.AllowUserToDeleteRows = false; + this.dgvtEMPOperationInfos.AllowUserToResizeColumns = false; + this.dgvtEMPOperationInfos.AllowUserToResizeRows = false; + this.dgvtEMPOperationInfos.BackgroundColor = System.Drawing.Color.White; + this.dgvtEMPOperationInfos.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.dgvtEMPOperationInfos.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvtEMPOperationInfos.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.DId, + this.dataGridViewTextBoxColumn21, + this.dataGridViewTextBoxColumn22, + this.spec, + this.execDept, + this.room, + this.PatName, + this.InNo, + this.UpFreeTime, + this.dataGridViewTextBoxColumn23, + this.DUnit, + this.dataGridViewTextBoxColumn24, + this.ChargePrice}); + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 10.5F); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvtEMPOperationInfos.DefaultCellStyle = dataGridViewCellStyle3; + this.dgvtEMPOperationInfos.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvtEMPOperationInfos.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; + this.dgvtEMPOperationInfos.GridColor = System.Drawing.Color.Black; + this.dgvtEMPOperationInfos.Location = new System.Drawing.Point(520, 126); + this.dgvtEMPOperationInfos.MultiSelect = false; + this.dgvtEMPOperationInfos.Name = "dgvtEMPOperationInfos"; + this.dgvtEMPOperationInfos.ReadOnly = true; + this.dgvtEMPOperationInfos.RowHeadersVisible = false; + this.dgvtEMPOperationInfos.RowTemplate.Height = 23; + this.dgvtEMPOperationInfos.ShowCellErrors = false; + this.dgvtEMPOperationInfos.ShowCellToolTips = false; + this.dgvtEMPOperationInfos.Size = new System.Drawing.Size(830, 415); + this.dgvtEMPOperationInfos.TabIndex = 389; + // + // dgvHZD + // + this.dgvHZD.AllowUserToAddRows = false; + this.dgvHZD.AllowUserToDeleteRows = false; + this.dgvHZD.AllowUserToResizeColumns = false; + this.dgvHZD.AllowUserToResizeRows = false; + this.dgvHZD.BackgroundColor = System.Drawing.Color.White; + this.dgvHZD.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.dgvHZD.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvHZD.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dataGridViewTextBoxColumn32, + this.no, + this.dataGridViewTextBoxColumn33, + this.dataGridViewTextBoxColumn34, + this.dataGridViewTextBoxColumn35, + this.dataGridViewTextBoxColumn41, + this.dataGridViewTextBoxColumn42}); + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 10.5F); + dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvHZD.DefaultCellStyle = dataGridViewCellStyle4; + this.dgvHZD.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvHZD.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; + this.dgvHZD.GridColor = System.Drawing.Color.Black; + this.dgvHZD.Location = new System.Drawing.Point(520, 126); + this.dgvHZD.MultiSelect = false; + this.dgvHZD.Name = "dgvHZD"; + this.dgvHZD.ReadOnly = true; + this.dgvHZD.RowHeadersVisible = false; + this.dgvHZD.RowTemplate.Height = 23; + this.dgvHZD.ShowCellErrors = false; + this.dgvHZD.ShowCellToolTips = false; + this.dgvHZD.Size = new System.Drawing.Size(830, 415); + this.dgvHZD.TabIndex = 390; + this.dgvHZD.Visible = false; + // + // dataGridViewTextBoxColumn32 + // + this.dataGridViewTextBoxColumn32.HeaderText = "id"; + this.dataGridViewTextBoxColumn32.Name = "dataGridViewTextBoxColumn32"; + this.dataGridViewTextBoxColumn32.ReadOnly = true; + this.dataGridViewTextBoxColumn32.Visible = false; + this.dataGridViewTextBoxColumn32.Width = 60; + // + // no + // + this.no.DataPropertyName = "noo"; + this.no.HeaderText = "序号"; + this.no.Name = "no"; + this.no.ReadOnly = true; + this.no.Width = 56; + // + // dataGridViewTextBoxColumn33 + // + this.dataGridViewTextBoxColumn33.DataPropertyName = "FeeCode"; + this.dataGridViewTextBoxColumn33.HeaderText = "编码"; + this.dataGridViewTextBoxColumn33.Name = "dataGridViewTextBoxColumn33"; + this.dataGridViewTextBoxColumn33.ReadOnly = true; + this.dataGridViewTextBoxColumn33.Visible = false; + this.dataGridViewTextBoxColumn33.Width = 75; + // + // dataGridViewTextBoxColumn34 + // + this.dataGridViewTextBoxColumn34.DataPropertyName = "ChargName"; + this.dataGridViewTextBoxColumn34.HeaderText = "药品名称"; + this.dataGridViewTextBoxColumn34.Name = "dataGridViewTextBoxColumn34"; + this.dataGridViewTextBoxColumn34.ReadOnly = true; + this.dataGridViewTextBoxColumn34.Width = 200; + // + // dataGridViewTextBoxColumn35 + // + this.dataGridViewTextBoxColumn35.DataPropertyName = "ChargSpec"; + this.dataGridViewTextBoxColumn35.HeaderText = "规格"; + this.dataGridViewTextBoxColumn35.Name = "dataGridViewTextBoxColumn35"; + this.dataGridViewTextBoxColumn35.ReadOnly = true; + this.dataGridViewTextBoxColumn35.Width = 160; + // + // dataGridViewTextBoxColumn41 + // + this.dataGridViewTextBoxColumn41.DataPropertyName = "FeeNum"; + this.dataGridViewTextBoxColumn41.HeaderText = "数量"; + this.dataGridViewTextBoxColumn41.Name = "dataGridViewTextBoxColumn41"; + this.dataGridViewTextBoxColumn41.ReadOnly = true; + this.dataGridViewTextBoxColumn41.Width = 60; + // + // dataGridViewTextBoxColumn42 + // + this.dataGridViewTextBoxColumn42.DataPropertyName = "UnitPrice"; + this.dataGridViewTextBoxColumn42.HeaderText = "单价"; + this.dataGridViewTextBoxColumn42.Name = "dataGridViewTextBoxColumn42"; + this.dataGridViewTextBoxColumn42.ReadOnly = true; + this.dataGridViewTextBoxColumn42.Width = 60; + // + // dataGridViewTextBoxColumn1 + // + this.dataGridViewTextBoxColumn1.DataPropertyName = "OperationRecordId"; + this.dataGridViewTextBoxColumn1.HeaderText = "手术ID"; + this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; + this.dataGridViewTextBoxColumn1.ReadOnly = true; + this.dataGridViewTextBoxColumn1.Visible = false; + this.dataGridViewTextBoxColumn1.Width = 167; + // + // dataGridViewTextBoxColumn2 + // + this.dataGridViewTextBoxColumn2.DataPropertyName = "OperationApplyId"; + this.dataGridViewTextBoxColumn2.HeaderText = "申请ID"; + this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; + this.dataGridViewTextBoxColumn2.ReadOnly = true; + this.dataGridViewTextBoxColumn2.Visible = false; + this.dataGridViewTextBoxColumn2.Width = 166; + // + // dataGridViewTextBoxColumn3 + // + this.dataGridViewTextBoxColumn3.DataPropertyName = "PatientId"; + this.dataGridViewTextBoxColumn3.HeaderText = "病人ID"; + this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; + this.dataGridViewTextBoxColumn3.ReadOnly = true; + this.dataGridViewTextBoxColumn3.Visible = false; + this.dataGridViewTextBoxColumn3.Width = 60; + // + // dataGridViewTextBoxColumn4 + // + this.dataGridViewTextBoxColumn4.DataPropertyName = "code"; + this.dataGridViewTextBoxColumn4.HeaderText = "序号"; + this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; + this.dataGridViewTextBoxColumn4.ReadOnly = true; + this.dataGridViewTextBoxColumn4.Visible = false; + this.dataGridViewTextBoxColumn4.Width = 75; + // + // dataGridViewTextBoxColumn5 + // + this.dataGridViewTextBoxColumn5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; + this.dataGridViewTextBoxColumn5.DataPropertyName = "OperationPriority"; + this.dataGridViewTextBoxColumn5.FillWeight = 137.1497F; + this.dataGridViewTextBoxColumn5.HeaderText = "手术分类"; + this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; + this.dataGridViewTextBoxColumn5.ReadOnly = true; + this.dataGridViewTextBoxColumn5.Visible = false; + this.dataGridViewTextBoxColumn5.Width = 112; + // + // dataGridViewTextBoxColumn6 + // + this.dataGridViewTextBoxColumn6.DataPropertyName = "DepartmentName"; + this.dataGridViewTextBoxColumn6.FillWeight = 80.11563F; + this.dataGridViewTextBoxColumn6.HeaderText = "科室"; + this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; + this.dataGridViewTextBoxColumn6.ReadOnly = true; + this.dataGridViewTextBoxColumn6.Visible = false; + this.dataGridViewTextBoxColumn6.Width = 66; + // + // dataGridViewTextBoxColumn7 + // + this.dataGridViewTextBoxColumn7.DataPropertyName = "SZOperationRoom"; + this.dataGridViewTextBoxColumn7.FillWeight = 65.36763F; + this.dataGridViewTextBoxColumn7.HeaderText = "手术间"; + this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; + this.dataGridViewTextBoxColumn7.ReadOnly = true; + this.dataGridViewTextBoxColumn7.Width = 82; + // + // dataGridViewTextBoxColumn8 + // + this.dataGridViewTextBoxColumn8.DataPropertyName = "InHospitalNo"; + this.dataGridViewTextBoxColumn8.FillWeight = 93.9558F; + this.dataGridViewTextBoxColumn8.HeaderText = "住院号"; + this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8"; + this.dataGridViewTextBoxColumn8.ReadOnly = true; + this.dataGridViewTextBoxColumn8.Width = 77; + // + // dataGridViewTextBoxColumn9 + // + this.dataGridViewTextBoxColumn9.DataPropertyName = "MedicalHistoryNo"; + this.dataGridViewTextBoxColumn9.FillWeight = 92.42704F; + this.dataGridViewTextBoxColumn9.HeaderText = "病历号"; + this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9"; + this.dataGridViewTextBoxColumn9.ReadOnly = true; + this.dataGridViewTextBoxColumn9.Visible = false; + this.dataGridViewTextBoxColumn9.Width = 76; + // + // dataGridViewTextBoxColumn10 + // + this.dataGridViewTextBoxColumn10.DataPropertyName = "PatientName"; + this.dataGridViewTextBoxColumn10.FillWeight = 73.51968F; + this.dataGridViewTextBoxColumn10.HeaderText = "姓名"; + this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10"; + this.dataGridViewTextBoxColumn10.ReadOnly = true; + this.dataGridViewTextBoxColumn10.Visible = false; + this.dataGridViewTextBoxColumn10.Width = 60; + // + // dataGridViewTextBoxColumn11 + // + this.dataGridViewTextBoxColumn11.DataPropertyName = "Sex"; + this.dataGridViewTextBoxColumn11.FillWeight = 73.70361F; + this.dataGridViewTextBoxColumn11.HeaderText = "性别"; + this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11"; + this.dataGridViewTextBoxColumn11.ReadOnly = true; + this.dataGridViewTextBoxColumn11.Visible = false; + this.dataGridViewTextBoxColumn11.Width = 61; + // + // dataGridViewTextBoxColumn12 + // + this.dataGridViewTextBoxColumn12.DataPropertyName = "Bed"; + this.dataGridViewTextBoxColumn12.FillWeight = 73.20498F; + this.dataGridViewTextBoxColumn12.HeaderText = "床号"; + this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12"; + this.dataGridViewTextBoxColumn12.ReadOnly = true; + this.dataGridViewTextBoxColumn12.Visible = false; + this.dataGridViewTextBoxColumn12.Width = 60; + // + // dataGridViewTextBoxColumn13 + // + this.dataGridViewTextBoxColumn13.DataPropertyName = "SZDiagnose"; + this.dataGridViewTextBoxColumn13.FillWeight = 134.5945F; + this.dataGridViewTextBoxColumn13.HeaderText = "术后诊断"; + this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13"; + this.dataGridViewTextBoxColumn13.ReadOnly = true; + this.dataGridViewTextBoxColumn13.Visible = false; + this.dataGridViewTextBoxColumn13.Width = 110; + // + // dataGridViewTextBoxColumn14 + // + this.dataGridViewTextBoxColumn14.DataPropertyName = "SZOperation"; + this.dataGridViewTextBoxColumn14.FillWeight = 131.7017F; + this.dataGridViewTextBoxColumn14.HeaderText = "实施手术"; + this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14"; + this.dataGridViewTextBoxColumn14.ReadOnly = true; + this.dataGridViewTextBoxColumn14.Visible = false; + this.dataGridViewTextBoxColumn14.Width = 108; + // + // dataGridViewTextBoxColumn15 + // + this.dataGridViewTextBoxColumn15.DataPropertyName = "SZAnaesthesiaMethod"; + this.dataGridViewTextBoxColumn15.FillWeight = 128.4264F; + this.dataGridViewTextBoxColumn15.HeaderText = "麻醉方式"; + this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15"; + this.dataGridViewTextBoxColumn15.ReadOnly = true; + this.dataGridViewTextBoxColumn15.Visible = false; + this.dataGridViewTextBoxColumn15.Width = 106; + // + // dataGridViewTextBoxColumn16 + // + this.dataGridViewTextBoxColumn16.DataPropertyName = "SZOperationDoctor"; + this.dataGridViewTextBoxColumn16.FillWeight = 81.201F; + this.dataGridViewTextBoxColumn16.HeaderText = "术者"; + this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16"; + this.dataGridViewTextBoxColumn16.ReadOnly = true; + this.dataGridViewTextBoxColumn16.Visible = false; + this.dataGridViewTextBoxColumn16.Width = 67; + // + // dataGridViewTextBoxColumn17 + // + this.dataGridViewTextBoxColumn17.DataPropertyName = "SZAnesthesiaDoctor"; + this.dataGridViewTextBoxColumn17.HeaderText = "麻醉医生"; + this.dataGridViewTextBoxColumn17.Name = "dataGridViewTextBoxColumn17"; + this.dataGridViewTextBoxColumn17.ReadOnly = true; + this.dataGridViewTextBoxColumn17.Visible = false; + this.dataGridViewTextBoxColumn17.Width = 82; + // + // dataGridViewTextBoxColumn18 + // + this.dataGridViewTextBoxColumn18.DataPropertyName = "AnesthesiaEndTime"; + this.dataGridViewTextBoxColumn18.HeaderText = "麻醉结束"; + this.dataGridViewTextBoxColumn18.Name = "dataGridViewTextBoxColumn18"; + this.dataGridViewTextBoxColumn18.ReadOnly = true; + this.dataGridViewTextBoxColumn18.Visible = false; + this.dataGridViewTextBoxColumn18.Width = 96; + // + // dataGridViewTextBoxColumn19 + // + this.dataGridViewTextBoxColumn19.DataPropertyName = "OutRoomTime"; + this.dataGridViewTextBoxColumn19.HeaderText = "出室时间"; + this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19"; + this.dataGridViewTextBoxColumn19.Visible = false; + this.dataGridViewTextBoxColumn19.Width = 96; + // + // dataGridViewTextBoxColumn20 + // + this.dataGridViewTextBoxColumn20.DataPropertyName = "chagestate"; + this.dataGridViewTextBoxColumn20.FillWeight = 65.36763F; + this.dataGridViewTextBoxColumn20.HeaderText = "收费状态"; + this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20"; + this.dataGridViewTextBoxColumn20.Visible = false; + this.dataGridViewTextBoxColumn20.Width = 63; + // + // dataGridViewTextBoxColumn25 + // + this.dataGridViewTextBoxColumn25.HeaderText = "单位"; + this.dataGridViewTextBoxColumn25.Name = "dataGridViewTextBoxColumn25"; + this.dataGridViewTextBoxColumn25.Visible = false; + this.dataGridViewTextBoxColumn25.Width = 60; + // + // dataGridViewTextBoxColumn26 + // + this.dataGridViewTextBoxColumn26.DataPropertyName = "DrugPrice"; + this.dataGridViewTextBoxColumn26.HeaderText = "单价"; + this.dataGridViewTextBoxColumn26.Name = "dataGridViewTextBoxColumn26"; + this.dataGridViewTextBoxColumn26.ReadOnly = true; + this.dataGridViewTextBoxColumn26.Width = 70; + // + // dataGridViewTextBoxColumn27 + // + this.dataGridViewTextBoxColumn27.DataPropertyName = "display_name"; + this.dataGridViewTextBoxColumn27.HeaderText = "单号"; + this.dataGridViewTextBoxColumn27.Name = "dataGridViewTextBoxColumn27"; + this.dataGridViewTextBoxColumn27.Visible = false; + this.dataGridViewTextBoxColumn27.Width = 80; + // + // dataGridViewTextBoxColumn28 + // + this.dataGridViewTextBoxColumn28.DataPropertyName = "specification"; + this.dataGridViewTextBoxColumn28.HeaderText = "医嘱号"; + this.dataGridViewTextBoxColumn28.Name = "dataGridViewTextBoxColumn28"; + this.dataGridViewTextBoxColumn28.Width = 160; + // + // dataGridViewTextBoxColumn29 + // + this.dataGridViewTextBoxColumn29.DataPropertyName = "qty"; + this.dataGridViewTextBoxColumn29.HeaderText = "His医嘱号"; + this.dataGridViewTextBoxColumn29.Name = "dataGridViewTextBoxColumn29"; + this.dataGridViewTextBoxColumn29.Width = 60; + // + // dataGridViewTextBoxColumn30 + // + this.dataGridViewTextBoxColumn30.DataPropertyName = "qty_unit"; + this.dataGridViewTextBoxColumn30.HeaderText = "His数量"; + this.dataGridViewTextBoxColumn30.Name = "dataGridViewTextBoxColumn30"; + this.dataGridViewTextBoxColumn30.Visible = false; + this.dataGridViewTextBoxColumn30.Width = 60; + // + // dataGridViewTextBoxColumn31 + // + this.dataGridViewTextBoxColumn31.DataPropertyName = "qty_unit"; + this.dataGridViewTextBoxColumn31.HeaderText = "收费状态"; + this.dataGridViewTextBoxColumn31.Name = "dataGridViewTextBoxColumn31"; + this.dataGridViewTextBoxColumn31.Visible = false; + this.dataGridViewTextBoxColumn31.Width = 60; + // + // DId + // + this.DId.DataPropertyName = "Id"; + this.DId.HeaderText = "id"; + this.DId.Name = "DId"; + this.DId.ReadOnly = true; + this.DId.Visible = false; + this.DId.Width = 60; + // + // dataGridViewTextBoxColumn21 + // + this.dataGridViewTextBoxColumn21.DataPropertyName = "FeeCode"; + this.dataGridViewTextBoxColumn21.HeaderText = "编码"; + this.dataGridViewTextBoxColumn21.Name = "dataGridViewTextBoxColumn21"; + this.dataGridViewTextBoxColumn21.ReadOnly = true; + this.dataGridViewTextBoxColumn21.Width = 75; + // + // dataGridViewTextBoxColumn22 + // + this.dataGridViewTextBoxColumn22.DataPropertyName = "ChargName"; + this.dataGridViewTextBoxColumn22.HeaderText = "药品名称"; + this.dataGridViewTextBoxColumn22.Name = "dataGridViewTextBoxColumn22"; + this.dataGridViewTextBoxColumn22.ReadOnly = true; + this.dataGridViewTextBoxColumn22.Width = 200; + // + // spec + // + this.spec.DataPropertyName = "ChargSpec"; + this.spec.HeaderText = "规格"; + this.spec.Name = "spec"; + this.spec.ReadOnly = true; + this.spec.Width = 160; + // + // execDept + // + this.execDept.DataPropertyName = "ExecDept"; + this.execDept.HeaderText = "执行科室"; + this.execDept.Name = "execDept"; + this.execDept.ReadOnly = true; + this.execDept.Width = 150; + // + // room + // + this.room.DataPropertyName = "OperationRoom"; + this.room.HeaderText = "手术间"; + this.room.Name = "room"; + this.room.ReadOnly = true; + this.room.Width = 150; + // + // PatName + // + this.PatName.DataPropertyName = "PatientName"; + this.PatName.HeaderText = "患者姓名"; + this.PatName.Name = "PatName"; + this.PatName.ReadOnly = true; + this.PatName.Width = 80; + // + // InNo + // + this.InNo.DataPropertyName = "MdrecNo"; + this.InNo.HeaderText = "住院号"; + this.InNo.Name = "InNo"; + this.InNo.ReadOnly = true; + this.InNo.Width = 80; + // + // UpFreeTime + // + this.UpFreeTime.DataPropertyName = "ExecTime"; + this.UpFreeTime.HeaderText = "执行时间"; + this.UpFreeTime.Name = "UpFreeTime"; + this.UpFreeTime.ReadOnly = true; + this.UpFreeTime.Width = 125; + // + // dataGridViewTextBoxColumn23 + // + this.dataGridViewTextBoxColumn23.DataPropertyName = "FeeNum"; + this.dataGridViewTextBoxColumn23.HeaderText = "数量"; + this.dataGridViewTextBoxColumn23.Name = "dataGridViewTextBoxColumn23"; + this.dataGridViewTextBoxColumn23.ReadOnly = true; + this.dataGridViewTextBoxColumn23.Width = 60; + // + // DUnit + // + this.DUnit.DataPropertyName = "Unit"; + this.DUnit.HeaderText = "单位"; + this.DUnit.Name = "DUnit"; + this.DUnit.ReadOnly = true; + this.DUnit.Visible = false; + this.DUnit.Width = 60; + // + // dataGridViewTextBoxColumn24 + // + this.dataGridViewTextBoxColumn24.DataPropertyName = "UnitPrice"; + this.dataGridViewTextBoxColumn24.HeaderText = "单价"; + this.dataGridViewTextBoxColumn24.Name = "dataGridViewTextBoxColumn24"; + this.dataGridViewTextBoxColumn24.ReadOnly = true; + this.dataGridViewTextBoxColumn24.Width = 70; + // + // ChargePrice + // + this.ChargePrice.DataPropertyName = "ChargePrice"; + this.ChargePrice.HeaderText = "总价"; + this.ChargePrice.Name = "ChargePrice"; + this.ChargePrice.ReadOnly = true; + // + // frmOperationCharg5 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1350, 541); + this.Controls.Add(this.dgvHZD); + this.Controls.Add(this.dgvtEMPOperationInfos); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.panel2); + this.Controls.Add(this.panel1); + this.Name = "frmOperationCharg5"; + this.Text = "费用对照"; + this.Load += new System.EventHandler(this.frmOperationDruggCheck_Load); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.panel2.ResumeLayout(false); + this.panel2.PerformLayout(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + this.panel3.ResumeLayout(false); + this.panel3.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dtpEnd)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dtpOpeTime)).EndInit(); + this.groupBox1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dgvOperation)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvtEMPOperationInfos)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvHZD)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Button toolStripButton10; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Label lblMessage; + public System.Windows.Forms.Label labDate; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Button tsbSettingDGV; + private DevComponents.DotNetBar.ButtonX buttonX1; + 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; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn11; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn12; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn13; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn14; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn15; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn16; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn17; + private DevComponents.Editors.DateTimeAdv.DateTimeInput dtpEnd; + private DevComponents.Editors.DateTimeAdv.DateTimeInput dtpOpeTime; + public System.Windows.Forms.Label label24; + private System.Windows.Forms.Button button1; + private DevComponents.DotNetBar.Controls.ComboBoxEx cboRoom; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn18; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn19; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn20; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.DataGridView dgvOperation; + private System.Windows.Forms.DataGridView dgvtEMPOperationInfos; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn25; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn26; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn27; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn28; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn29; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn30; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn31; + private System.Windows.Forms.Panel panel3; + private System.Windows.Forms.RadioButton rdoJZ; + private System.Windows.Forms.RadioButton rdoZQ; + private DevComponents.DotNetBar.Controls.ComboBoxEx comboBoxExType; + public System.Windows.Forms.Label label1; + private System.Windows.Forms.DataGridView dgvHZD; + private DevComponents.Editors.ComboItem comboItem1; + private DevComponents.Editors.ComboItem comboItem2; + private DevComponents.Editors.ComboItem comboItem3; + private DevComponents.Editors.ComboItem comboItem4; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.RadioButton rdoHs; + private System.Windows.Forms.RadioButton rdoMz; + private DevComponents.DotNetBar.ButtonX btnSave; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn32; + private System.Windows.Forms.DataGridViewTextBoxColumn no; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn33; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn34; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn35; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn41; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn42; + private System.Windows.Forms.DataGridViewTextBoxColumn Id; + private System.Windows.Forms.DataGridViewTextBoxColumn anesBegintime; + private System.Windows.Forms.DataGridViewTextBoxColumn Anesendtime; + private System.Windows.Forms.DataGridViewTextBoxColumn TemplateType1; + private System.Windows.Forms.DataGridViewTextBoxColumn ChargType; + private System.Windows.Forms.DataGridViewTextBoxColumn PageType; + private System.Windows.Forms.DataGridViewTextBoxColumn PageNo; + private System.Windows.Forms.DataGridViewTextBoxColumn ExecDepartmentName; + private System.Windows.Forms.DataGridViewTextBoxColumn DId; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn21; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn22; + private System.Windows.Forms.DataGridViewTextBoxColumn spec; + private System.Windows.Forms.DataGridViewTextBoxColumn execDept; + private System.Windows.Forms.DataGridViewTextBoxColumn room; + private System.Windows.Forms.DataGridViewTextBoxColumn PatName; + private System.Windows.Forms.DataGridViewTextBoxColumn InNo; + private System.Windows.Forms.DataGridViewTextBoxColumn UpFreeTime; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn23; + private System.Windows.Forms.DataGridViewTextBoxColumn DUnit; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn24; + private System.Windows.Forms.DataGridViewTextBoxColumn ChargePrice; + } +} \ No newline at end of file diff --git a/AIMS/OperationAfter/frmOperationCharg5.resx b/AIMS/OperationAfter/frmOperationCharg5.resx new file mode 100644 index 0000000..6227fd8 --- /dev/null +++ b/AIMS/OperationAfter/frmOperationCharg5.resx @@ -0,0 +1,204 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + \ No newline at end of file diff --git a/AIMS/OperationAfter/frmOperationManage.cs b/AIMS/OperationAfter/frmOperationManage.cs index cbe7119..b507162 100644 --- a/AIMS/OperationAfter/frmOperationManage.cs +++ b/AIMS/OperationAfter/frmOperationManage.cs @@ -2,7 +2,6 @@ using AIMSBLL; using AIMSExtension; using AIMSModel; -using DevComponents.DotNetBar.Controls; using Microsoft.Office.Interop.Excel; using Newtonsoft.Json; using System; diff --git a/AIMS/OremrUserControl/EventCodeCompilerBill.cs b/AIMS/OremrUserControl/EventCodeCompilerBill.cs index 241cdcd..4670734 100644 --- a/AIMS/OremrUserControl/EventCodeCompilerBill.cs +++ b/AIMS/OremrUserControl/EventCodeCompilerBill.cs @@ -48,7 +48,7 @@ namespace AIMS if (args.Element.Parent is XTextInputFieldElement && IsLoad == true) { var element = args.Element.Parent as XTextInputFieldElement; - if (element != null && element.ClientID == "KB20180604142340471") + if (element != null && element.ClientID == "KB20180604142607822") { SelElement = element; PublicUI.UI.frmSelectOperation frmOperation = new PublicUI.UI.frmSelectOperation(); diff --git a/AIMS/OremrUserControl/ucDocument.cs b/AIMS/OremrUserControl/ucDocument.cs index fda9619..98547f4 100644 --- a/AIMS/OremrUserControl/ucDocument.cs +++ b/AIMS/OremrUserControl/ucDocument.cs @@ -337,18 +337,8 @@ namespace AIMS.OremrUserControl ClearT(); } myEditControl.Document.Modified = false; - ////更新ASA分级与心功能分级 - //if (DModel.XmlFileName == "麻醉术前访视单") - //{ - // var asa = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement - // && (x as XTextInputFieldElement).ToolTip == "ASA分级").FirstOrDefault(); - // string strASA = asa == null ? "" : asa.Text; - // var hf = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement - // && (x as XTextInputFieldElement).ToolTip == "心功能分级").FirstOrDefault(); - // string strH = hf == null ? "" : hf.Text; - // BOperationApply.UpdateASA(Patient.ApplyId, strASA, strH); - //} - + DocumentExtension.SaveCocumentValue(DModel.XmlFileName, myEditControl.Document,Patient); + new frmMessageBox().Show(); } catch diff --git a/AIMSEntity/BLL/Extension/BFeesRecordReport.cs b/AIMSEntity/BLL/Extension/BFeesRecordReport.cs index b3d48f5..8951229 100644 --- a/AIMSEntity/BLL/Extension/BFeesRecordReport.cs +++ b/AIMSEntity/BLL/Extension/BFeesRecordReport.cs @@ -45,5 +45,38 @@ ROW_NUMBER() OVER (ORDER BY FeeCode ASC) AS noo, return dt; } + public static DataTable GetUpListByWhere3(string where) + { + string sql = string.Format(@" + select FeesRecord.id, + voi.OpeDAY '年月日', + LimitDrug 入库数量, + voi.PatientName 姓名, + voi.Age 年龄, + voi.Sex 性别, + pt.IdentityCard 身份证号, + voi.ApplyDiagnoseInfoName 诊断, + FeesRecord.Extend2+FeesRecord.Extend1 用量, + FeesRecord.Extend4 处方单号, + FeesRecord.InsureNO 批号, + pt.MdrecNo 病志号或住址, + FeesRecord.ExecWork 处方医生, + FeesRecord.Extend5 发药人, + Conclusion 事故损耗, + IsInsure 结存数 +FROM FeesRecord +LEFT JOIN Oris_Patient pt on pt.id=PatientId +LEFT JOIN V_OperationRecordInfo voi on voi.RecoredId=FeesRecord.OperationRecordId + where FeeIsDrug=1 and FeesRecord.Extend4<>'' and {0} ", where); + DataTable dt = DBHelper.GetDataTable(sql); + return dt; + } + + public static DataTable GetDrugByType(string where) + { + string sql = string.Format(@" select ChargName from [FeesRecord] where Extend4<>'' and FeeTypeId='{0}' group by ChargName ", where); + DataTable dt = DBHelper.GetDataTable(sql); + return dt; + } } } diff --git a/AIMSEntity/BLL/Extension/BOperationRecord.cs b/AIMSEntity/BLL/Extension/BOperationRecord.cs index 4261e02..e455b04 100644 --- a/AIMSEntity/BLL/Extension/BOperationRecord.cs +++ b/AIMSEntity/BLL/Extension/BOperationRecord.cs @@ -68,6 +68,7 @@ namespace AIMSBLL if (_record.InRoomTime != null) _record.OperationDate = _record.InRoomTime.Value.ToShortDateString(); + string ASALevel = ""; DataTable OperationFrontdt = BOperationApply.GetOperationFrontDataTableByPatientId(PatientId); if (OperationFrontdt.Rows.Count > 0) { @@ -86,6 +87,7 @@ namespace AIMSBLL _record.Age = OperationFrontdt.Rows[0]["Age"].ToString(); _record.Identity = OperationFrontdt.Rows[0]["IdentityCard"].ToString(); _record.FareType = OperationFrontdt.Rows[0]["PatientKind"].ToString(); + ASALevel = OperationFrontdt.Rows[0]["ASA"].ToString(); if (OperationFrontdt.Rows[0]["Height"].ToString() != "") { double Height = 0; @@ -270,8 +272,10 @@ namespace AIMSBLL } - if (_record.ASALevel == null || _record.ASALevel == 0) - BOperationReview.GetASALevel(PatientId, _record); + if ((_record.ASALevel == null || _record.ASALevel == 0) && ASALevel != "") + BOperationReview.GetASALevel(PatientId, _record, ASALevel); + else if (_record.ASALevel == null || _record.ASALevel == 0) + BOperationReview.GetASALevel(PatientId, _record); return _record; } diff --git a/AIMSEntity/Extensions/BOperationReview.cs b/AIMSEntity/Extensions/BOperationReview.cs index 005ef43..cdaf21e 100644 --- a/AIMSEntity/Extensions/BOperationReview.cs +++ b/AIMSEntity/Extensions/BOperationReview.cs @@ -58,6 +58,19 @@ namespace AIMSBLL } } } + public static void GetASALevel(int PatientId, OperationRecord _record,string ASALevel ) + { + if (ASALevel != "") + { + ASALevel = ASALevel.Replace("级", ""); + BasicDictionary dict = BBasicDictionary.SelectSingle(" ParentId=30 and Name='" + ASALevel.Trim() + "'", null); + if (dict != null) + { + _record.ASALevel = dict.Id.Value; + BOperationRecord.Update(" ASALevel=@ASALevel where Id=@Id", new ParameterList("@ASALevel", _record.ASALevel, "@Id", _record.Id.Value)); + } + } + } /// /// 根据模板名称查询文档 /// diff --git a/AIMSEntity/Model/AutoGenerate/FeesRecord.cs b/AIMSEntity/Model/AutoGenerate/FeesRecord.cs index bd3465d..d6b9687 100644 --- a/AIMSEntity/Model/AutoGenerate/FeesRecord.cs +++ b/AIMSEntity/Model/AutoGenerate/FeesRecord.cs @@ -346,7 +346,7 @@ namespace AIMSModel set{ execTime=value; } } /// - /// + /// 事故损耗 /// public string Conclusion { @@ -354,7 +354,7 @@ namespace AIMSModel set{ conclusion=value; } } /// - /// + /// 结存数量 /// public string IsInsure { @@ -362,7 +362,7 @@ namespace AIMSModel set{ isInsure=value; } } /// - /// + /// 批号 /// public string InsureNO { @@ -370,7 +370,7 @@ namespace AIMSModel set{ insureNO=value; } } /// - /// + /// 入库数量 /// public string LimitDrug { @@ -450,7 +450,7 @@ namespace AIMSModel set{ extend4=value; } } /// - /// + /// 发药人 /// public string Extend5 { diff --git a/DocumentManagement/DocumentEntity/DocumentExtension.cs b/DocumentManagement/DocumentEntity/DocumentExtension.cs index 8849917..50467ab 100644 --- a/DocumentManagement/DocumentEntity/DocumentExtension.cs +++ b/DocumentManagement/DocumentEntity/DocumentExtension.cs @@ -89,7 +89,7 @@ namespace DocumentManagement PriceText.Text = (num * oneprice).ToString(); } catch (Exception) - { + { } } @@ -109,7 +109,7 @@ namespace DocumentManagement Result += price; } catch (Exception) - { + { } } } @@ -221,6 +221,119 @@ namespace DocumentManagement } } } + public static void SaveCocumentValue(string XmlFileName, XTextDocument Document, PatientRecord Patient) + { + try + { + //更新ASA分级与心功能分级 + if (XmlFileName == "麻醉术前访视单") + { + var asa = Document.Fields.ToArray().Where(x => x is XTextInputFieldElement + && (x as XTextInputFieldElement).ToolTip == "ASA分级").FirstOrDefault(); + string strASA = asa == null ? "" : asa.Text; + var hf = Document.Fields.ToArray().Where(x => x is XTextInputFieldElement + && (x as XTextInputFieldElement).ToolTip == "心功能分级").FirstOrDefault(); + string strH = hf == null ? "" : hf.Text; + UpdateASA(Patient.ApplyId, strASA, strH); + } + if (XmlFileName == "麻醉术前访视评估记录") + { + string asaname = ""; + string niyme = ""; + var asa = Document.RadioBoxes.ToArray().Where(x => x is XTextRadioBoxElement + && (x as XTextRadioBoxElement).Name == "asa"); + foreach (var item in asa) + { + if ((item as XTextRadioBoxElement).Checked == true) + { + asaname = item.Text; + } + } + var niy = Document.RadioBoxes.ToArray().Where(x => x is XTextRadioBoxElement + && (x as XTextRadioBoxElement).Name == "xgnfj"); + foreach (var item in niy) + { + if ((item as XTextRadioBoxElement).Checked == true) + { + niyme = item.Text; + } + } + UpdateASA(Patient.ApplyId, asaname, niyme); + } + else if (XmlFileName == "麻醉知情同意书") + { + var asa = Document.Fields.ToArray().Where(x => x is XTextInputFieldElement + && (x as XTextInputFieldElement).Name == "拟定麻醉").FirstOrDefault(); + if (asa != null) + { + AddAnaesthesiaMethod(Patient, asa.FormulaValue); + } + } + } + catch (Exception ex) + { + PublicMethod.WriteLog(ex); + } + } + + public static void AddAnaesthesiaMethod(PatientRecord _operationRecord, string AnaesthesiaMethod) + { + if (AnaesthesiaMethod.Trim() == "" || AnaesthesiaMethod == "+") + { + DeleteAnaesthesiaMethod(_operationRecord.ApplyId); + } + else + { + DeleteAnaesthesiaMethod(_operationRecord.ApplyId); + string[] Operationstr = AnaesthesiaMethod.Split('+'); + foreach (string AnaesthesiaMethodId in Operationstr) + { + StringBuilder strSql = new StringBuilder(); + strSql.Append("insert into [ApplyAnaesthesiaMethod]("); + strSql.Append("[OperationApplyId], [AnaesthesiaMethodId], [OperatorNo], [OperatorName], [OperateDate]"); + strSql.Append(")"); + strSql.Append(" values ("); + strSql.Append("" + _operationRecord.ApplyId + ","); + strSql.Append("" + GetAnaesthesiaMethodId(AnaesthesiaMethodId) + ","); + strSql.Append("'" + AIMSExtension.PublicMethod.OperatorNo + "',"); + strSql.Append("'" + AIMSExtension.PublicMethod.OperatorName + "',"); + strSql.Append("'" + DateTime.Now + "'"); + strSql.Append(")"); + HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString()); + } + } + } + public static void DeleteAnaesthesiaMethod(int PatientId) + { + StringBuilder strSql = new StringBuilder(); + strSql.Append("delete ApplyAnaesthesiaMethod "); + strSql.Append(" where OperationApplyId=" + PatientId + " "); + HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString()); + } + public static int GetAnaesthesiaMethodId(string Name) + { + try + { + StringBuilder strSql = new StringBuilder(); + strSql.Append("select * from AnaesthesiaMethod "); + strSql.Append(" where name='" + Name.Trim() + "' "); + return int.Parse(HelperDB.DBHelper.ExecuteScalar(strSql.ToString()).ToString()); + + } + catch (Exception) + { + return 1; + } + } + public static void UpdateASA(int ApplyId, string ASA, string HeartFunctionLevel) + { + StringBuilder sb = new StringBuilder(); + sb.Append(" UPDATE OperationApply SET"); + sb.Append(" ASA ='" + ASA + "'"); + sb.Append(" ,HeartFunctionLevel='" + HeartFunctionLevel + "'"); + sb.Append(" WHERE id='" + ApplyId + "'"); + HelperDB.DbHelperSQL.ExecNonQuery(sb.ToString()); + } } } //100038004389