示例#1
0
        /// <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);
            }
        }
示例#2
0
        /// <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();
        }