//打印 /// <summary> /// 条码打印{D2F77BDA-F5E5-48fe-AB73-B7FE6D92E6E2} /// </summary> public void PrintBar() { Neusoft.HISFC.BizProcess.Interface.Registration.IPrintBar ip = Neusoft.FrameWork.WinForms.Classes.UtilInterface.CreateObject(this.GetType(), typeof(Neusoft.HISFC.BizProcess.Interface.Registration.IPrintBar)) as Neusoft.HISFC.BizProcess.Interface.Registration.IPrintBar; if (ip == null)//默认实现打印 { if (string.IsNullOrEmpty(CardNO)) { MessageBox.Show("病历号为空,不能打印"); return; } Neusoft.FrameWork.WinForms.Controls.ucBaseControl uc = new Neusoft.FrameWork.WinForms.Controls.ucBaseControl(); Neusoft.FrameWork.WinForms.Controls.NeuPictureBox p = new Neusoft.FrameWork.WinForms.Controls.NeuPictureBox(); p.Image = Neusoft.FrameWork.WinForms.Classes.CodePrint.GetCode39(CardNO); Neusoft.FrameWork.WinForms.Controls.NeuPanel pn = new Neusoft.FrameWork.WinForms.Controls.NeuPanel(); pn.Controls.Add(p); pn.BackColor = Color.White; uc.Controls.Add(pn); uc.BackColor = Color.White; Neusoft.FrameWork.WinForms.Classes.Print print = new Neusoft.FrameWork.WinForms.Classes.Print(); print.PrintPage(0, 0, uc); } else //接口实现打印 { string errText = string.Empty; int returnValue = ip.printBar((patientInfo as Neusoft.HISFC.Models.RADT.Patient), ref errText); if (returnValue < 0) { MessageBox.Show(errText); return; } } }
/// <summary> /// 开放的Tabpage /// </summary> /// <param name="control"></param> /// <param name="title"></param> /// <param name="tag"></param> public void AddTabpage(Neusoft.FrameWork.WinForms.Controls.ucBaseControl control, string title, object tag) { foreach (TabPage tb in this.neuTabControl1.TabPages) { if (tb.Text == title) { this.neuTabControl1.SelectedTab = tb; return; } } TabPage tp = new TabPage(title); this.neuTabControl1.TabPages.Add(tp); control.Dock = DockStyle.Fill; control.Visible = true; Neusoft.FrameWork.WinForms.Forms.IControlable ic = control as Neusoft.FrameWork.WinForms.Forms.IControlable; if (ic != null) { ic.Init(this.tv, null, null); } tp.Controls.Add(control); if (ic != null) { ic.SetValue(patient, node); } this.neuTabControl1.SelectedTab = tp; }
/// <summary> /// 开放的Tabpage /// </summary> /// <param name="control"></param> /// <param name="title"></param> /// <param name="tag"></param> public void AddTabpage(Neusoft.FrameWork.WinForms.Controls.ucBaseControl control, string title, object tag) { foreach (TabPage tb in this.neuTabControl1.TabPages) { if (tb.Text == title) { this.neuTabControl1.SelectedTab = tb; return; } } TabPage tp = new TabPage(title); this.neuTabControl1.TabPages.Add(tp); control.Dock = DockStyle.Fill; control.Visible = true; Neusoft.FrameWork.WinForms.Forms.IControlable ic = control as Neusoft.FrameWork.WinForms.Forms.IControlable; if (ic != null) { ic.Init(this.tv, null, null); } #region {5DF40042-300D-49b8-BB8D-4E4E906B7BAF} if (control.GetType() == typeof(Neusoft.HISFC.Components.RADT.Controls.ucBedManager)) { Neusoft.HISFC.Components.RADT.Controls.ucBedManager uc = control as Neusoft.HISFC.Components.RADT.Controls.ucBedManager; uc.IsAllBedWave = this.isAllBedWave; tp.Controls.Add(uc); } else { tp.Controls.Add(control); } #endregion if (ic != null) { ic.SetValue(patient, node); } this.neuTabControl1.SelectedTab = tp; }
private void toolStrip1_ItemClicked_1(object sender, ToolStripItemClickedEventArgs e) { if (e.ClickedItem == this.tbAddOrder) { /// <summary> /// [功能描述: 开立医嘱]<br></br> /// [创 建 者: ]<br></br> /// [创建时间: ]<br></br> /// <修改记录 /// 修改人='张琦' /// 修改时间='2007-8-25' /// 修改目的='对会诊医师能否开立医嘱进行控制' /// 修改描述='判断会诊患者有无开立医嘱的权限' /// /> /// </summary> //选择子节点 if (this.tvNursePatientList1.SelectedNode.Parent != null && this.tvNursePatientList1.SelectedNode.Parent.Tag != null) { int count = 0; count = this.tvNursePatientList1.SelectedNode.Parent.GetNodeCount(false); //判断所选节点父节点如果为会诊患者,则判断有无开立医嘱的权限/如果不是会诊患者则不需要进行判断,都可以进行开立医嘱 if (this.tvNursePatientList1.SelectedNode.Parent.Text == ("会诊患者" + "(" + count.ToString() + ")")) { patient = this.tvNursePatientList1.SelectedNode.Tag as Neusoft.HISFC.Models.RADT.PatientInfo; this.Text = "您正在操作的患者为 住院号:" + patient.ID + "姓名:" + patient.Name + "性别:" + patient.Sex.Name + " 床号:" + patient.PVisit.PatientLocation.Bed.ID; inpatientNo = patient.ID; co = consultation.QueryConsulation(this.inpatientNo); if (co != null || co.Count != 0) { for (int i = 0; i < co.Count; i++) { Neusoft.HISFC.Models.Order.Consultation obj = co[i] as Neusoft.HISFC.Models.Order.Consultation; //根据会诊患者有效的会诊单信息,判断医生是否有对该会诊患者开立医嘱权限 if ((Neusoft.FrameWork.Management.Connection.Operator.ID == obj.DoctorConsultation.ID) && (obj.EndTime >= consultation.GetDateTimeFromSysDateTime()) && (obj.IsCreateOrder)) { if (this.ucOrder1.Add() == 0) { this.initButton(true); } } else { MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("对不起,您没有对该患者开立医嘱的权限!"), "提示"); return; } } } } else { Neusoft.HISFC.Models.RADT.PatientInfo patient1 = this.tvNursePatientList1.SelectedNode.Tag as Neusoft.HISFC.Models.RADT.PatientInfo; this.Text = "您正在操作的患者为 住院号:" + patient1.ID + "姓名:" + patient1.Name + " 性别:" + patient1.Sex.Name + " 床号:" + patient1.PVisit.PatientLocation.Bed.ID; if (this.ucOrder1.Add() == 0) { this.initButton(true); } } } } else if (e.ClickedItem == this.tbCheck) { this.ucOrder1.AddTest(); } else if (e.ClickedItem == this.tbRefresh) { //刷新 this.tvNursePatientList1.Refresh(); } else if (e.ClickedItem == this.tbGroup) { if (this.tbGroup.CheckState == CheckState.Checked) { this.tbGroup.CheckState = CheckState.Unchecked; } else { this.tbGroup.CheckState = CheckState.Checked; } if (this.tbGroup.CheckState == CheckState.Checked) { this.ucOrder1.SetEditGroup(true); this.ucOrder1.SetPatient(null); this.initButtonGroup(true); } else { this.ucOrder1.SetEditGroup(false); this.initButtonGroup(false); } } else if (e.ClickedItem == this.tbOperation) { //Neusoft.HISFC.Models.RADT.PatientInfo pi = (Neusoft.HISFC.Models.RADT.PatientInfo)this.tvDoctorPatientList1.SelectedNode.Tag; //frmOperation frmOpt = new frmOperation(pi); //frmOpt.ShowDialog(); //ucOperation operation = new ucOperation(pi); //operation.Show(); //operation.Show(); //UFC.Operation.ucApplicationForm appForm = new UFC.Operation.ucApplicationForm(); //appForm.PatientInfo = pi; //Neusoft.FrameWork.WinForms.Classes.Function.PopShowControl(appForm); //appForm.Show(); //UFC.Operation.ucApplication ucApply = new UFC.Operation.ucApplication(pi, pi); Neusoft.HISFC.Models.RADT.PatientInfo pi = (Neusoft.HISFC.Models.RADT.PatientInfo) this.tvNursePatientList1.SelectedNode.Tag; frmOperation frmOpt = new frmOperation(pi); frmOpt.ShowDialog(); } else if (e.ClickedItem == this.tbAssayCure) { this.ucOrder1.AddAssayCure(); } else if (e.ClickedItem == this.tbDelOrder) { this.ucOrder1.Delete(); } else if (e.ClickedItem == this.tbQueryOrder) { try { this.ucOrder1.Query(this.tvNursePatientList1.SelectedNode, this.tvNursePatientList1.SelectedNode.Tag); } catch { } } else if (e.ClickedItem == this.tbPrintOrder) { if (CurrentControl != null) { try { Neusoft.FrameWork.WinForms.Controls.ucBaseControl control = CurrentControl as Neusoft.FrameWork.WinForms.Controls.ucBaseControl; if (control != null) { control.Print(null, null); } } catch { } } } else if (e.ClickedItem == this.tbComboOrder) { this.ucOrder1.ComboOrder(); } else if (e.ClickedItem == this.tbCancelOrder) { this.ucOrder1.CancelCombo(); } else if (e.ClickedItem == this.tbExitOrder) { if (this.isEditGroup) { if (this.tbGroup.CheckState == CheckState.Checked) { this.tbGroup.CheckState = CheckState.Unchecked; } else { this.tbGroup.CheckState = CheckState.Checked; } this.ucOrder1.SetEditGroup(false); this.initButtonGroup(false); } else { if (this.ucOrder1.ExitOrder() == 0) { this.initButton(false); } tvNursePatientList1.Refresh(); } } else if (e.ClickedItem == this.tbInValid) { this.ucOrder1.Filter(Neusoft.HISFC.Components.Order.Controls.EnumFilterList.Invalid); } else if (e.ClickedItem == this.tbValid) { this.ucOrder1.Filter(Neusoft.HISFC.Components.Order.Controls.EnumFilterList.Valid); } else if (e.ClickedItem == this.tbAll) { this.ucOrder1.Filter(Neusoft.HISFC.Components.Order.Controls.EnumFilterList.All); } else if (e.ClickedItem == this.tbToday) { this.ucOrder1.Filter(Neusoft.HISFC.Components.Order.Controls.EnumFilterList.Today); } else if (e.ClickedItem == this.tbNew) { this.ucOrder1.Filter(Neusoft.HISFC.Components.Order.Controls.EnumFilterList.New); } else if (e.ClickedItem == this.tbSaveOrder) { // if (isEditGroup) { SaveGroup(); } else { if (this.ucOrder1.Save() == -1) { } else { this.initButton(false); tvNursePatientList1.Refresh(); } } } else if (e.ClickedItem == this.tsbHerbal) { this.ucOrder1.HerbalOrder(); } else if (e.ClickedItem == this.tbChooseDoct)//{D5517722-7128-4d0c-BBC4-1A5558A39A03} { this.ucOrder1.ChooseDoctor(); } else if (e.ClickedItem == this.tb1Exit) { if (this.ucOrder1.IsDesignMode) //是在开立状态 { DialogResult result = MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("医嘱目前处于开立模式,是否保存?"), "提示", MessageBoxButtons.YesNoCancel); if (result == DialogResult.Yes) { if (this.ucOrder1.Save() == 0) { this.Close(); } } else if (result == DialogResult.Cancel) { return; } else { this.Close(); } } else { this.Close(); } } ///{FB86E7D8-A148-4147-B729-FD0348A3D670} 增加医嘱重整按钮 else if (e.ClickedItem == this.tbRetidyOrder) { if (this.ucOrder1.IsDesignMode == false) { this.ucOrder1.ReTidyOrder(); } else { MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("非开立状态下才允许进行医嘱重整"), "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } } }
protected void readRight(System.Xml.XmlNode nodeRight) { this.panelMain1.Controls.Clear(); this.panelMain2.Controls.Clear(); container1.Panel1.Controls.Clear(); container2.Panel1.Controls.Clear(); container1.Panel2.Controls.Clear(); container2.Panel2.Controls.Clear(); alControls = new List <Neusoft.FrameWork.WinForms.Controls.ucBaseControl>(); try { foreach (System.Xml.XmlNode node in nodeRight.ChildNodes) { Neusoft.FrameWork.WinForms.Controls.AutoDockControl button = new Neusoft.FrameWork.WinForms.Controls.AutoDockControl(); button.Title = node.Attributes["NAME"].Value; Control c = Neusoft.FrameWork.WinForms.Classes.Function.CreateControl(node.Attributes["DLLNAME"].Value, node.Attributes["CONTROLNAME"].Value); c.Visible = true; button.Dock = DockStyle.Fill; button.RelateControl = c; try { button.TitleColor = Color.FromArgb(int.Parse(node.Attributes["TITLECOLOR"].Value)); } catch { } try { c.BackColor = Color.FromArgb(int.Parse(node.Attributes["BACKCOLOR"].Value)); } catch { } Neusoft.FrameWork.WinForms.Controls.ucBaseControl ucbase = c as Neusoft.FrameWork.WinForms.Controls.ucBaseControl; if (ucbase != null) { alControls.Add(ucbase); } //ÉèÖÿؼþÊôÐÔ System.Collections.ArrayList alProperty = new System.Collections.ArrayList(); foreach (System.Xml.XmlNode nodeProperty in node.ChildNodes) { alProperty.Add(new Neusoft.FrameWork.Models.NeuObject(nodeProperty.Attributes[0].Value, nodeProperty.InnerText, "")); } Neusoft.FrameWork.WinForms.Classes.Function.SetPropertyToControl(ucbase, alProperty); button.IsCanMove = Neusoft.FrameWork.Function.NConvert.ToBoolean(node.Attributes["ISALLOWMOVE"].Value); if (button.Title.Trim() == "") { this.AddPanel(node, ucbase); } else { this.AddPanel(node, button); } //this.faTabStripItem1.Controls.Add(button); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void toolStrip1_ItemClicked_1(object sender, ToolStripItemClickedEventArgs e) { if (e.ClickedItem == this.tbAddOrder) { /// <summary> /// [功能描述: 开立医嘱]<br></br> /// [创 建 者: ]<br></br> /// [创建时间: ]<br></br> /// <修改记录 /// 修改人='张琦' /// 修改时间='2007-8-25' /// 修改目的='对会诊医师能否开立医嘱进行控制' /// 修改描述='判断会诊患者有无开立医嘱的权限' /// /> /// </summary> //选择子节点 if (this.tvDoctorPatientList1.SelectedNode.Parent != null && this.tvDoctorPatientList1.SelectedNode.Parent.Tag != null) { int count = 0; count = this.tvDoctorPatientList1.SelectedNode.Parent.GetNodeCount(false); //判断所选节点父节点如果为会诊患者,则判断有无开立医嘱的权限/如果不是会诊患者则不需要进行判断,都可以进行开立医嘱 if (this.tvDoctorPatientList1.SelectedNode.Parent.Text == ("会诊患者" + "(" + count.ToString() + ")")) { patient = this.tvDoctorPatientList1.SelectedNode.Tag as Neusoft.HISFC.Models.RADT.PatientInfo; //处理床位号截位 string bedNO = patient.PVisit.PatientLocation.Bed.ID; if (bedNO.Length > 4) { bedNO = bedNO.Substring(4); } //处理住院号显示 string patientNO = patient.PID.PatientNO; if (string.IsNullOrEmpty(patientNO) == true) { patientNO = patient.ID; } this.Text = "您正在操作的患者为 住院号:" + patientNO + "姓名:" + patient.Name + "性别:" + patient.Sex.Name + "年龄:" + consultation.GetAge(this.patient.Birthday) + " 床号:" + bedNO; inpatientNo = patient.ID; co = consultation.QueryConsulation(this.inpatientNo); if (co != null || co.Count != 0) { for (int i = 0; i < co.Count; i++) { Neusoft.HISFC.Models.Order.Consultation obj = co[i] as Neusoft.HISFC.Models.Order.Consultation; //根据会诊患者有效的会诊单信息,判断医生是否有对该会诊患者开立医嘱权限 if ((Neusoft.FrameWork.Management.Connection.Operator.ID == obj.DoctorConsultation.ID) && (obj.EndTime >= consultation.GetDateTimeFromSysDateTime()) && (obj.IsCreateOrder)) { if (this.ucOrder1.Add() == 0) { this.initButton(true); } break;//{3541798B-AF9C-415c-AFAA-8BD22A34A808} } else { MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("对不起,您没有对该患者开立医嘱的权限!"), "提示"); return; } } } } else { Neusoft.HISFC.Models.RADT.PatientInfo patient1 = this.tvDoctorPatientList1.SelectedNode.Tag as Neusoft.HISFC.Models.RADT.PatientInfo; //处理床位号截位 string bedNO = patient1.PVisit.PatientLocation.Bed.ID; if (bedNO.Length > 4) { bedNO = bedNO.Substring(4); } //处理住院号显示 string patientNO = patient1.PID.PatientNO; if (string.IsNullOrEmpty(patientNO) == true) { patientNO = patient1.ID; } this.Text = "您正在操作的患者为 住院号:" + patientNO + "姓名:" + patient1.Name + " 性别:" + patient1.Sex.Name + "年龄:" + consultation.GetAge(patient1.Birthday) + " 床号:" + bedNO; //{FBBE8298-886C-4b33-8CF6-69134BE95422} 判断是否请假患者 20100507 yangw if (patient1.PVisit.PatientLocation.Bed != null && patient1.PVisit.PatientLocation.Bed.Status.ID.ToString() == Neusoft.HISFC.Models.Base.EnumBedStatus.R.ToString()) {//请假患者不能开医嘱,须先销假,主要为防止请假后开立长嘱下次执行时间不对,这个bug有点2 MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("患者请假中,如需开立医嘱请先销假")); return; } if (this.ucOrder1.Add() == 0) { this.initButton(true); } } } } else if (e.ClickedItem == this.tbCheck) { this.ucOrder1.AddTest(); } else if (e.ClickedItem == this.tbRefresh) { //刷新 this.tvDoctorPatientList1.RefreshInfo(); } else if (e.ClickedItem == this.tbGroup) { if (this.tbGroup.CheckState == CheckState.Checked) { this.tbGroup.CheckState = CheckState.Unchecked; } else { this.tbGroup.CheckState = CheckState.Checked; } if (this.tbGroup.CheckState == CheckState.Checked) { this.ucOrder1.SetEditGroup(true); this.ucOrder1.SetPatient(null); this.initButtonGroup(true); } else { this.ucOrder1.SetEditGroup(false); this.initButtonGroup(false); } } else if (e.ClickedItem == this.tbOperation) { //Neusoft.HISFC.Models.RADT.PatientInfo pi = (Neusoft.HISFC.Models.RADT.PatientInfo)this.tvDoctorPatientList1.SelectedNode.Tag; //frmOperation frmOpt = new frmOperation(pi); //frmOpt.ShowDialog(); //ucOperation operation = new ucOperation(pi); //operation.Show(); //operation.Show(); //UFC.Operation.ucApplicationForm appForm = new UFC.Operation.ucApplicationForm(); //appForm.PatientInfo = pi; //Neusoft.FrameWork.WinForms.Classes.Function.PopShowControl(appForm); //appForm.Show(); //UFC.Operation.ucApplication ucApply = new UFC.Operation.ucApplication(pi, pi); Neusoft.HISFC.Models.RADT.PatientInfo pi = (Neusoft.HISFC.Models.RADT.PatientInfo) this.tvDoctorPatientList1.SelectedNode.Tag; frmOperation frmOpt = new frmOperation(pi); frmOpt.ShowDialog(); } else if (e.ClickedItem == this.tbAssayCure) { this.ucOrder1.AddAssayCure(); } else if (e.ClickedItem == this.tbDelOrder) { this.ucOrder1.Delete(); } else if (e.ClickedItem == this.tbQueryOrder) { try { this.ucOrder1.Query(this.tvDoctorPatientList1.SelectedNode, this.tvDoctorPatientList1.SelectedNode.Tag); } catch { } } else if (e.ClickedItem == this.tbPrintOrder) { if (CurrentControl != null) { try { Neusoft.FrameWork.WinForms.Controls.ucBaseControl control = CurrentControl as Neusoft.FrameWork.WinForms.Controls.ucBaseControl; if (control != null) { control.Print(null, null); } } catch { } } } else if (e.ClickedItem == this.tbComboOrder) { this.ucOrder1.ComboOrder(); } else if (e.ClickedItem == this.tbCancelOrder) { this.ucOrder1.CancelCombo(); } else if (e.ClickedItem == this.tbExitOrder) { if (this.isEditGroup) { if (this.tbGroup.CheckState == CheckState.Checked) { this.tbGroup.CheckState = CheckState.Unchecked; } else { this.tbGroup.CheckState = CheckState.Checked; } this.ucOrder1.SetEditGroup(false); //this.initButtonGroup(false);//{64E07B94-39F0-439a-BB53-6C3D8DB7EFE4}退出医嘱,患者树不失去焦点 } else { if (this.ucOrder1.ExitOrder() == 0) { this.initButton(false); } tvDoctorPatientList1.RefreshInfo(); } } else if (e.ClickedItem == this.tbInValid) { this.ucOrder1.Filter(Neusoft.HISFC.Components.Order.Controls.EnumFilterList.Invalid); } else if (e.ClickedItem == this.tbValid) { this.ucOrder1.Filter(Neusoft.HISFC.Components.Order.Controls.EnumFilterList.Valid); } else if (e.ClickedItem == this.tbAll) { this.ucOrder1.Filter(Neusoft.HISFC.Components.Order.Controls.EnumFilterList.All); } else if (e.ClickedItem == this.tbToday) { this.ucOrder1.Filter(Neusoft.HISFC.Components.Order.Controls.EnumFilterList.Today); } else if (e.ClickedItem == this.tbNew) { this.ucOrder1.Filter(Neusoft.HISFC.Components.Order.Controls.EnumFilterList.New); } else if (e.ClickedItem == this.tbSaveOrder) { // if (isEditGroup) { SaveGroup(); } else { if (this.ucOrder1.Save() == -1) { } else { this.initButton(false); //tvDoctorPatientList1.RefreshInfo();//{64E07B94-39F0-439a-BB53-6C3D8DB7EFE4}保存医嘱,患者树不失去焦点 } } } else if (e.ClickedItem == this.tsbHerbal) { this.ucOrder1.HerbalOrder(); } else if (e.ClickedItem == this.tbChooseDoct)//{D5517722-7128-4d0c-BBC4-1A5558A39A03} { this.ucOrder1.ChooseDoctor(); } else if (e.ClickedItem == this.tb1Exit) { if (this.ucOrder1.IsDesignMode) //是在开立状态 { DialogResult result = MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("医嘱目前处于开立模式,是否保存?"), "提示", MessageBoxButtons.YesNoCancel); if (result == DialogResult.Yes) { if (this.ucOrder1.Save() == 0) { this.Close(); } } else if (result == DialogResult.Cancel) { return; } else { this.Close(); } } else { this.Close(); } } ///{FB86E7D8-A148-4147-B729-FD0348A3D670} 增加医嘱重整按钮 else if (e.ClickedItem == this.tbRetidyOrder) { if (this.ucOrder1.IsDesignMode == false) { this.ucOrder1.ReTidyOrder(); } else { MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("非开立状态下才允许进行医嘱重整"), "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } } else if (e.ClickedItem == this.tbDiseaseReport) // {E53A21A7-2B74-4b48-A9F4-9E05F8FA11A2} 传染病报告卡 { if (this.dcpInstance == null) { this.dcpInstance = Neusoft.FrameWork.WinForms.Classes.UtilInterface.CreateObject(this.GetType(), typeof(Neusoft.HISFC.BizProcess.Interface.DCP.IDCP)) as Neusoft.HISFC.BizProcess.Interface.DCP.IDCP; } if (this.dcpInstance != null) { Neusoft.HISFC.Models.RADT.PatientInfo patientInfo = this.tvDoctorPatientList1.SelectedNode.Tag as Neusoft.HISFC.Models.RADT.PatientInfo; this.dcpInstance.RegisterDiseaseReport(patientInfo, Neusoft.HISFC.Models.Base.ServiceTypes.I); } } else if (e.ClickedItem == this.tbLisResultPrint)//{17CC6DF8-1883-4d3c-8D24-2E08C93F047F},Lis结果打印,shangxw 2009-11-10 { patient = this.tvDoctorPatientList1.SelectedNode.Tag as Neusoft.HISFC.Models.RADT.PatientInfo; if (this.patient == null || this.patient.PID.ID == "" || this.patient.PID.ID == null) { MessageBox.Show("请选择一个患者!"); return; } try { #region 郑大修改---{15C4A9D2-34AF-484b-B65B-BBD3CACABA5C} rm_barprinter_common.In_rm_barprinter_common mobj = new rm_barprinter_common.COClass_n_rm_barprinter_commonClass(); if (!string.IsNullOrEmpty(patient.ID)) { mobj.uf_lis_result(patient.ID, "3"); } else { MessageBox.Show("Lis调用失败"); return; } //string s = "LisResult"; //System.Diagnostics.Process[] proc = System.Diagnostics.Process.GetProcessesByName(s); //if (proc.Length > 0) //{ // for (int i = 0; i < proc.Length; i++) // { // proc[i].Kill(); // } //} //System.Diagnostics.Process p = new System.Diagnostics.Process(); //p.StartInfo.FileName = Application.StartupPath + @"\LisBin\LisResult.exe"; //需要启动的程序名 //#region 取配置参数 //ArrayList defaultValue = Neusoft.FrameWork.WinForms.Classes.Function.GetDefaultValue("lis"); //if ((defaultValue == null) || (defaultValue.Count == 0)) //{ // p.StartInfo.Arguments = " '" + this.patient.PID.ID + "' " + "住院" + "";// +" " + "'住院'";//启动参数 //} //else //{ // p.StartInfo.Arguments = " '" + defaultValue[1].ToString() + "' " + "住院" + "";// +" " + "'住院'";//启动参数 //} //#endregion //p.Start();//启动 #endregion } catch (Exception ex) { MessageBox.Show(ex.Message); } } else if (e.ClickedItem == this.tbPacsResultPrint)//{17CC6DF8-1883-4d3c-8D24-2E08C93F047F},Lis结果打印,shangxw 2009-11-10 { patient = this.tvDoctorPatientList1.SelectedNode.Tag as Neusoft.HISFC.Models.RADT.PatientInfo; if (this.patient == null || this.patient.PID.ID == "" || this.patient.PID.ID == null) { MessageBox.Show("请选择一个患者!"); return; } try { string patientNo = patient.ID; this.ucOrder1.ShowPacsResultByPatient(patientNo); } catch (Exception ex) { MessageBox.Show(ex.Message); } } else if (e.ClickedItem == this.tbChooseDrugDept) { #region 进入医嘱窗口选择药房 {CD0DD444-07D0-4e80-9D26-0DB79BA9A177} wbo 2010-10-26 this.ChooseDrugDept(true); #endregion } }