麻醉药品登记 删除文书

This commit is contained in:
leomon 2023-04-08 15:11:44 +08:00
parent 337141dbe6
commit 6aba9a6aa5
21 changed files with 2693 additions and 860 deletions

View File

@ -239,6 +239,12 @@
<Compile Include="OperationAanesthesia\frmSelectPatientGoodsBill2.Designer.cs">
<DependentUpon>frmSelectPatientGoodsBill2.cs</DependentUpon>
</Compile>
<Compile Include="OperationAanesthesia\oldSystemCode\frmDrugRegister.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="OperationAanesthesia\oldSystemCode\frmDrugRegister.Designer.cs">
<DependentUpon>frmDrugRegister.cs</DependentUpon>
</Compile>
<Compile Include="OperationAanesthesia\oldSystemCode\frmPrescriptionDocument.cs">
<SubType>Form</SubType>
</Compile>
@ -263,6 +269,12 @@
<Compile Include="OperationAfter\frmOperationCharg2.designer.cs">
<DependentUpon>frmOperationCharg2.cs</DependentUpon>
</Compile>
<Compile Include="OperationAfter\frmOperationCharg5.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="OperationAfter\frmOperationCharg5.designer.cs">
<DependentUpon>frmOperationCharg5.cs</DependentUpon>
</Compile>
<Compile Include="OperationAfter\frmOperationCharg4.cs">
<SubType>Form</SubType>
</Compile>
@ -898,6 +910,9 @@
<EmbeddedResource Include="OperationAanesthesia\frmSelectPatientGoodsBill2.resx">
<DependentUpon>frmSelectPatientGoodsBill2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OperationAanesthesia\oldSystemCode\frmDrugRegister.resx">
<DependentUpon>frmDrugRegister.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OperationAanesthesia\oldSystemCode\frmPrescriptionDocument.resx">
<DependentUpon>frmPrescriptionDocument.cs</DependentUpon>
</EmbeddedResource>
@ -910,6 +925,9 @@
<EmbeddedResource Include="OperationAfter\frmOperationCharg2.resx">
<DependentUpon>frmOperationCharg2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OperationAfter\frmOperationCharg5.resx">
<DependentUpon>frmOperationCharg5.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OperationAfter\frmOperationCharg4.resx">
<DependentUpon>frmOperationCharg4.cs</DependentUpon>
</EmbeddedResource>

View File

@ -3,6 +3,7 @@ using AIMSBLL;
using AIMSExtension;
using AIMSModel;
using DCSoftDotfuscate;
using DevComponents.AdvTree;
using DevComponents.DotNetBar;
using DocumentManagement;
using System;
@ -78,8 +79,10 @@ namespace AIMS.OperationAfter.UI
tsbDoc.TabItemClose += new TabStrip.UserActionEventHandler(tsbDoc_TabItemClose);
if (PublicMethod.OperatorNo=="admin")
buttonX2.Visible= true;
if (PublicMethod.OperatorNo == "admin" || PublicMethod.RoleName.Contains("删除医疗文书"))
{
btnDelete.Visible = true;
}
}
/// <summary>
/// 手术间信息加载到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<string> list = new List<string>();
foreach (var item in OperationRooms)
@ -442,5 +445,26 @@ namespace AIMS.OperationAfter.UI
{
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();
}
}
}
}
}

View File

@ -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;
}
}

View File

@ -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
@ -694,7 +700,7 @@ namespace AIMS.PublicUI.UI
feesR.InsureNO = "";
feesR.LimitDrug = "";
feesR.Extend4 = "";
feesR.Extend5 = "";
feesR.Extend5 = "韩智慧";
feesR.Id = BFeesRecord.Insert(feesR);

View File

@ -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, "护理");
}
}
/// <summary>
@ -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<string> ());
//_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<int> list = new List<int>();
// 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<string> result = new List<string>();
List<string> names = new List<string>();
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());
}
/// <summary>
/// 得到当前使用的器械对象集合
/// </summary>

View File

@ -282,5 +282,26 @@ namespace AIMS.OperationAfter.UI
document.ShowDialog();
}
}
private void button3_Click(object sender, EventArgs e)
{
List<int> list = new List<int>();
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();
}
}
}
}

View File

@ -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;
}
}

View File

@ -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<FeesRecordReport> upHisDrugs;
public string DataGridViewPath = "";
public SysConfig exportConfig;
public frmOperationCharg3()
{
InitializeComponent();
}
private void frmOperationDruggCheck_Load(object sender, EventArgs e)
@ -29,10 +40,13 @@ namespace AIMS.OperationAfter.UI
dtpOpeTime.Value = DateTime.Now;
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,6 +57,7 @@ namespace AIMS.OperationAfter.UI
PublicMethod.WriteLog(exp);
}
}
public void LoadSelectDate()
{
string where = " ";
@ -50,34 +65,34 @@ namespace AIMS.OperationAfter.UI
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");
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 (page_type = '" + chargitem.Value + "' ) ";
//}
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
/// <param name="e"></param>
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>(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<int, string> Columns = new Dictionary<int, string>();
//填充标题
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<KeyValuePair<int, string>> 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<Process> excelProcess = GetExcelProcesses();
for (int i = 0; i < excelProcess.Count; i++)
{
excelProcess[i].Kill();
}
}
private List<Process> GetExcelProcesses()
{
Process[] processes = Process.GetProcesses();
List<Process> excelProcesses = new List<Process>();
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;
//}
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;
}
}
}
}
}
}

View File

@ -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;
}
}

View File

@ -135,70 +135,7 @@
<metadata name="PageType.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PageNo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ExecDepartmentName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="DId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn21.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn22.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="spec.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="execDept.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="room.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PatName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="InNo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="UpFreeTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn23.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="DUnit.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn24.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ChargePrice.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn32.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="no.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn33.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn34.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn35.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn41.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn42.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@ -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<FeesRecordReport> 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();
}
/// <summary>
/// 表格配置
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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();
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,204 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="Id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="anesBegintime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Anesendtime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TemplateType1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ChargType.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PageType.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PageNo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ExecDepartmentName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="DId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn21.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn22.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="spec.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="execDept.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="room.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PatName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="InNo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="UpFreeTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn23.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="DUnit.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn24.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ChargePrice.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn32.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="no.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn33.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn34.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn35.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn41.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn42.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@ -2,7 +2,6 @@
using AIMSBLL;
using AIMSExtension;
using AIMSModel;
using DevComponents.DotNetBar.Controls;
using Microsoft.Office.Interop.Excel;
using Newtonsoft.Json;
using System;

View File

@ -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();

View File

@ -337,17 +337,7 @@ 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();
}

View File

@ -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;
}
}
}

View File

@ -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,7 +272,9 @@ namespace AIMSBLL
}
if (_record.ASALevel == null || _record.ASALevel == 0)
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;

View File

@ -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));
}
}
}
/// <summary>
/// 根据模板名称查询文档
/// </summary>

View File

@ -346,7 +346,7 @@ namespace AIMSModel
set{ execTime=value; }
}
/// <summary>
///
/// 事故损耗
/// </summary>
public string Conclusion
{
@ -354,7 +354,7 @@ namespace AIMSModel
set{ conclusion=value; }
}
/// <summary>
///
/// 结存数量
/// </summary>
public string IsInsure
{
@ -362,7 +362,7 @@ namespace AIMSModel
set{ isInsure=value; }
}
/// <summary>
///
/// 批号
/// </summary>
public string InsureNO
{
@ -370,7 +370,7 @@ namespace AIMSModel
set{ insureNO=value; }
}
/// <summary>
///
/// 入库数量
/// </summary>
public string LimitDrug
{
@ -450,7 +450,7 @@ namespace AIMSModel
set{ extend4=value; }
}
/// <summary>
///
/// 发药人
/// </summary>
public string Extend5
{

View File

@ -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