/// <summary> /// 初始化加载数据 /// </summary> private void Init() { //获得所有频次信息 if (this.frequencyHelper == null) { Neusoft.HISFC.BizLogic.Manager.Frequency frequencyManagement = new Neusoft.HISFC.BizLogic.Manager.Frequency(); ArrayList alFrequency = frequencyManagement.GetAll("Root"); if (alFrequency != null) { this.frequencyHelper = new Neusoft.FrameWork.Public.ObjectHelper(alFrequency); } } //获取所用用法 if (this.usageHelper == null) { Neusoft.HISFC.BizLogic.Manager.Constant c = new Neusoft.HISFC.BizLogic.Manager.Constant(); ArrayList alUsage = c.GetList(Neusoft.HISFC.Models.Base.EnumConstant.USAGE); if (alUsage == null) { MessageBox.Show("获取用法列表出错!"); return; } ArrayList tempAl = new ArrayList(); foreach (Neusoft.FrameWork.Models.NeuObject info in alUsage) { tempAl.Add(info); } this.usageHelper = new Neusoft.FrameWork.Public.ObjectHelper(tempAl); } }
public void PassSetRecipeInfo(Neusoft.HISFC.Models.Order.OutPatient.Order order) { if (this.PassEnabled && ((order != null) && (order.Item.ItemType.ToString() != ItemTypes.Undrug.ToString()))) { string applyNO = order.ApplyNo; //string iD = order.Item.ID; string iD = "Y00000001077"; string name = order.Item.Name; string singleDose = order.DoseOnce.ToString(); string doseUnit = order.DoseUnit; int length = 0; string str7 = ""; if ((order.Frequency != null) && (order.Usage != null)) { if (order.Frequency.Time == null) { Neusoft.HISFC.BizLogic.Manager.Frequency frequency = new Neusoft.HISFC.BizLogic.Manager.Frequency(); order.Frequency = (Neusoft.HISFC.Models.Order.Frequency)frequency.Get(order.Frequency, "ROOT"); if (order.Frequency == null) { return; } } if (order.Frequency.Time == null) { length = 1; } else { length = order.Frequency.Times.Length; } if (order.Frequency.Days == null) { str7 = "1"; } else { str7 = order.Frequency.Days[0]; } string str6 = length.ToString() + "/" + str7.ToString(); string startOrderDate = order.BeginTime.ToString("yyyy-MM-dd"); string stopOrderDate = ""; string routeName = order.Usage.Name; string groupTag = order.Combo.ID; string orderType = "1"; string orderDoctor = order.Doctor.ID + "/" + order.Doctor.Name; PassSetRecipeInfo(applyNO, iD, name, singleDose, doseUnit, str6, startOrderDate, stopOrderDate, routeName, groupTag, orderType, orderDoctor); } } }
/// <summary> /// 初始化 /// </summary> public virtual void Init() { Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm(Neusoft.FrameWork.Management.Language.Msg("正在加载单据打印基础数据...")); Application.DoEvents(); #region 获取常数信息 用于界面数据显示 //获得所有频次信息 Neusoft.HISFC.BizLogic.Manager.Frequency frequencyManagement = new Neusoft.HISFC.BizLogic.Manager.Frequency(); ArrayList alFrequency = frequencyManagement.GetAll("Root"); this.frequencyHelper = new Neusoft.FrameWork.Public.ObjectHelper(alFrequency); //获取所用用法 Neusoft.HISFC.BizLogic.Manager.Constant c = new Neusoft.HISFC.BizLogic.Manager.Constant(); ArrayList alUsage = c.GetList(Neusoft.HISFC.Models.Base.EnumConstant.USAGE); if (alUsage == null) { MessageBox.Show("获取用法列表出错!"); return; } this.usageHelper = new Neusoft.FrameWork.Public.ObjectHelper(alUsage); Neusoft.HISFC.BizProcess.Integrate.Manager managerIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Manager(); //获取所有人员 ArrayList alEmployee = managerIntegrate.QueryEmployeeAll(); this.personHelper = new Neusoft.FrameWork.Public.ObjectHelper(alEmployee); //获取所有科室 ArrayList alDept = managerIntegrate.GetDepartment(); this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept); //获取所有门诊终端 Neusoft.HISFC.BizLogic.Pharmacy.DrugStore drugStoreManager = new Neusoft.HISFC.BizLogic.Pharmacy.DrugStore(); ArrayList alDruged = drugStoreManager.QueryDrugTerminalByDeptCode(this.OperDept.ID, "0"); ArrayList alSend = drugStoreManager.QueryDrugTerminalByDeptCode(this.OperDept.ID, "1"); alDruged.AddRange(alSend); this.terminalHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDruged); #endregion #region 获取控制参数信息 用于控制调剂参数更新方式 Neusoft.FrameWork.Management.ExtendParam extManager = new Neusoft.FrameWork.Management.ExtendParam(); try { Neusoft.HISFC.Models.Base.ExtendInfo deptExt = extManager.GetComExtInfo(Neusoft.HISFC.Models.Base.EnumExtendClass.DEPT, "AdjustGist", this.OperDept.ID); if (deptExt == null) { MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("获取科室扩展属性内配药调剂参数失败!")); } if (deptExt.StringProperty == "1") //发药 { this.isAdjustInDrug = false; } else { this.isAdjustInDrug = true; //配药 } } catch { } #endregion Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm(); this.IntiControlParam(); }