/// <summary>
        /// 初始化科室列表

        /// </summary>
        private void InitDeptComboBox()
        {
            ArrayList deptList = managerIntegrate.GetDeptmentAllValid();

            // 除去当前登录科室
            //int i = -1;
            //foreach ( Neusoft.HISFC.Models.Base.Department dept in deptList )
            //{
            //    if ( dept.ID == this.loginDept.ID )
            //    {
            //        break;
            //    }

            //    i++;
            //}

            //if ( i >= 0 )
            //{
            //    deptList.RemoveAt( i + 1 );
            //}

            if (deptList != null)
            {
                this.neuComboBoxDept.AddItems(deptList);
            }
        }
        /// <summary>
        /// 初始化
        /// </summary>
        /// <returns>成功返回1 失败返回-1</returns>
        protected int Init()
        {
            Neusoft.HISFC.BizLogic.Pharmacy.Constant consManager = new Neusoft.HISFC.BizLogic.Pharmacy.Constant();
            ArrayList alProduce = consManager.QueryCompany("0");

            if (alProduce == null)
            {
                MessageBox.Show(Language.Msg("获取生产厂家列表发生错误" + consManager.Err));
                return(-1);
            }
            this.produceHelper = new Neusoft.FrameWork.Public.ObjectHelper(alProduce);

            this.privDept = ((Neusoft.HISFC.Models.Base.Employee)consManager.Operator).Dept;

            Neusoft.HISFC.BizProcess.Integrate.Manager managerIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            ArrayList alDept = managerIntegrate.GetDeptmentAllValid();

            this.deptHelpre = new Neusoft.FrameWork.Public.ObjectHelper(alDept);

            this.InitDataSet();

            DateTime sysTime = consManager.GetDateTimeFromSysDateTime();

            this.dtpEnd.Value   = sysTime.Date.AddDays(1);
            this.dtpBegin.Value = sysTime.Date.AddDays(-7);

            this.tvPatient.ImageList = this.tvPatient.deptImageList;

            return(1);
        }
Exemple #3
0
        protected override void OnLoad()
        {
            base.OnLoad();
            //填充数据
            Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            System.Collections.ArrayList constantList          = manager.GetDeptmentAllValid();

            Neusoft.HISFC.Models.Base.Department top = new Neusoft.HISFC.Models.Base.Department();
            top.ID         = "all";
            top.Name       = "全  部";
            top.IsRegDept  = false;
            top.IsStatDept = false;
            top.SpellCode  = "QB";
            top.WBCode     = "WU";


            this.neuComboBox1.Items.Add(top);
            foreach (Neusoft.HISFC.Models.Base.Department con in constantList)
            {
                neuComboBox1.Items.Add(con);
            }
            this.neuComboBox1.alItems.Add(top);
            this.neuComboBox1.alItems.AddRange(constantList);

            if (neuComboBox1.Items.Count > 0)
            {
                neuComboBox1.SelectedIndex = 0;
                deptCode = ((Neusoft.HISFC.Models.Base.Department)neuComboBox1.Items[0]).ID;
                deptName = ((Neusoft.HISFC.Models.Base.Department)neuComboBox1.Items[0]).Name;
            }
        }
        protected override void OnLoad()
        {
            this.Init();

            string strAll  = "all";
            string strName = "全部";

            Neusoft.HISFC.Models.Base.Department deptO = new Neusoft.HISFC.Models.Base.Department();
            deptO.ID   = strAll;
            deptO.Name = strName;

            #region 科室
            DeptList = manager.GetDeptmentAllValid();
            //     DeptList = phaPriv.GetAllPrivDept(operDeptCode);
            DeptList.Add(deptO);
            foreach (Neusoft.FrameWork.Models.NeuObject con in DeptList)
            {
                this.neuComboBox1.Items.Add(con);
            }


            if (neuComboBox1.Items.Count >= 0)
            {
                neuComboBox1.SelectedIndex = 0;
                DeptCode = ((Neusoft.FrameWork.Models.NeuObject)neuComboBox1.Items[0]).ID;
                DeptName = ((Neusoft.FrameWork.Models.NeuObject)neuComboBox1.Items[0]).Name;
            }

            #endregion

            SetCmb();

            base.OnLoad();
        }
        protected override void OnLoad()
        {
            this.Init();

            phaList = manager.GetDeptmentAllValid();

            foreach (Neusoft.FrameWork.Models.NeuObject con in phaList)
            {
                this.deptComboBox1.Items.Add(con);
            }
            base.OnLoad();
        }
        /// <summary>
        /// 初始化
        /// </summary>
        private void Init()
        {
            Neusoft.HISFC.BizProcess.Integrate.Manager deptManager = new Neusoft.HISFC.BizProcess.Integrate.Manager();

            ArrayList alDept = deptManager.GetDeptmentAllValid();

            if (alDept == null)
            {
                return;
            }

            this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept);

            this.ImageList = this.groupImageList;
        }
        /// <summary>
        /// 数据初始化
        /// </summary>
        private void Init()
        {
            #region 科室信息加载

            Neusoft.HISFC.BizProcess.Integrate.Manager deptManager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            ArrayList alDept = deptManager.GetDeptmentAllValid();
            if (alDept == null)
            {
                Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm();
                MessageBox.Show("获取所有科室列表发生错误" + deptManager.Err);
                return;
            }

            this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept);

            //当前操作科室
            this.operDeptCode = ((Neusoft.HISFC.Models.Base.Employee) this.terminalManager.Operator).Dept.ID;

            #endregion
        }
Exemple #8
0
        /// <summary>
        /// 加载数据,将科室和人员列表加载到树形控件上

        /// </summary>
        private void loadDeptAndPerson()
        {
            this.Nodes.Clear();

            TreeNode rootNode = new TreeNode();

            rootNode.Text       = "所有科室";
            rootNode.Tag        = null;
            rootNode.ImageIndex = 0;//根节点图标


            ArrayList alDept = integrateManager.GetDeptmentAllValid();

            if (alDept == null || alDept.Count < 1)
            {
                return;
            }

            TreeNode curNode = null;

            //添加所有科室

            foreach (Neusoft.HISFC.Models.Base.Department curDept in alDept)
            {
                curNode            = new TreeNode();
                curNode.Text       = curDept.Name;
                curNode.Tag        = curDept;
                curNode.ImageIndex = 1;//表示显示代表科室的图片

                curNode.ToolTipText = DEPT_NODE_TYPE;
                loadPersonQuickly(curNode);

                rootNode.Nodes.Add(curNode);
            }
            rootNode.Expand();
            this.Nodes.Add(rootNode);
        }
        public int Init()
        {
            this.fpSpread1_Sheet1.GrayAreaBackColor = System.Drawing.Color.White;
            InitDataTable();
            #region 最小费用
            Neusoft.HISFC.BizProcess.Integrate.Manager managerMgr = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            ArrayList minFeeList = managerMgr.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.MINFEE);
            if (minFeeList == null)
            {
                MessageBox.Show("获取最小费用失败!");
                return(-1);
            }
            minFeeHelp.ArrayObject = minFeeList;
            #endregion

            #region 科室
            ArrayList deptList = managerMgr.GetDeptmentAllValid();
            if (deptList == null)
            {
                MessageBox.Show("获取科室列表失败");
                return(-1);
            }
            deptHelp.ArrayObject = deptList;
            #endregion
            this.fpSpread1_Sheet1.Columns[(int)Cols.ItemCode].Visible = false;
            this.fpSpread1_Sheet1.Columns[(int)Cols.WBCode].Visible   = false;
            this.fpSpread1_Sheet1.Columns[(int)Cols.DrugFlag].Visible = false;

            //{ED51E97B-B752-4c32-BD93-F80209A24879}增加输入次数排序
            xSortDoc = Common.Classes.Function.GetSortXML();

            Common.Classes.Function.xmlDoc = xSortDoc;
            //{ED51E97B-B752-4c32-BD93-F80209A24879}增加输入次数完毕

            return(1);
        }
        /// <summary>
        /// 列表显示
        /// </summary>
        /// <returns></returns>
        public int ShowDeptAll(string state)
        {
            //Neusoft.HISFC.BizLogic.Terminal.TerminalCarrier terminalManager = new Neusoft.HISFC.BizLogic.Terminal.TerminalCarrier();

            Neusoft.HISFC.BizProcess.Integrate.Manager deptManager = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            ArrayList alDept = deptManager.GetDeptmentAllValid();

            this.Nodes.Clear();

            System.Windows.Forms.TreeNode deptNode = new System.Windows.Forms.TreeNode();

            foreach (Neusoft.HISFC.Models.Base.Department dept in alDept)
            {
                deptNode = new System.Windows.Forms.TreeNode();

                deptNode.Text       = this.deptHelper.GetName(dept.ID);
                deptNode.ImageIndex = 0;
                deptNode.Tag        = dept;

                this.Nodes.Add(deptNode);
            }

            return(1);
        }