Ejemplo n.º 1
0
        /// <summary>
        /// 获取科室结构信息
        /// </summary>
        /// <returns></returns>
        private int ShowDeptStat()
        {
            Neusoft.HISFC.BizLogic.Manager.DepartmentStatManager deptStatManager = new Neusoft.HISFC.BizLogic.Manager.DepartmentStatManager();
            ArrayList alDeptStat = deptStatManager.LoadDepartmentStat("03");

            if (alDeptStat == null)
            {
                MessageBox.Show(Language.Msg("获取科室节点信息失败"));
                return(-1);
            }

            foreach (Neusoft.HISFC.Models.Base.DepartmentStat deptStat in alDeptStat)
            {
                if (this.hsphaDept.ContainsKey(deptStat.DeptCode))
                {
                    continue;
                }

                if (deptStat.DeptCode.Substring(0, 1) == "S")
                {
                    continue;
                }

                Neusoft.HISFC.Models.Pharmacy.DeptConstant deptConstant = new Neusoft.HISFC.Models.Pharmacy.DeptConstant();

                deptConstant.ID   = deptStat.DeptCode;
                deptConstant.Name = deptStat.DeptName;

                int iCount = this.neuSpread1_Sheet1.Rows.Count;

                this.neuSpread1_Sheet1.Rows.Add(iCount, 1);

                this.neuSpread1_Sheet1.Cells[iCount, (int)ColumnSet.ColDeptID].Value   = deptConstant.ID;               //部门编码
                this.neuSpread1_Sheet1.Cells[iCount, (int)ColumnSet.ColDeptName].Value = deptConstant.Name;             //部门名称

                this.neuSpread1_Sheet1.Cells[iCount, (int)ColumnSet.ColIsStore].Value  = false;
                this.neuSpread1_Sheet1.Cells[iCount, (int)ColumnSet.ColIsBatch].Value  = false;  //是否按批号管理
                this.neuSpread1_Sheet1.Cells[iCount, (int)ColumnSet.ColUnitFlag].Value = "最小单位"; //库存管理默认单位:0最小单位,1包装单位
                this.neuSpread1_Sheet1.Cells[iCount, (int)ColumnSet.ColIsArk].Value    = false;  //药柜管理标志 是否药柜管理

                this.neuSpread1_Sheet1.Cells[iCount, (int)ColumnSet.ColInListNO].Value  = "";    //药柜管理标志 是否药柜管理
                this.neuSpread1_Sheet1.Cells[iCount, (int)ColumnSet.ColOutListNO].Value = "";    //药柜管理标志 是否药柜管理
            }
            return(1);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 科室结构信息显示
        /// </summary>
        public void ShowDeptStruct()
        {
            Neusoft.HISFC.BizLogic.Manager.DepartmentStatManager deptStatManager = new Neusoft.HISFC.BizLogic.Manager.DepartmentStatManager();
            ArrayList alDeptStat = deptStatManager.LoadDepartmentStat("05");

            if (alDeptStat == null)
            {
                MessageBox.Show(Language.Msg("获取科室节点信息失败"));
                return;
            }

            ArrayList al = new ArrayList();

            foreach (Neusoft.HISFC.Models.Base.DepartmentStat deptStat in alDeptStat)
            {
                if (this.hsphaDept.ContainsKey(deptStat.DeptCode))
                {
                    continue;
                }

                if (deptStat.DeptCode.Substring(0, 1) == "S")
                {
                    continue;
                }

                Neusoft.HISFC.Models.Material.MaterialStorage storage = new Neusoft.HISFC.Models.Material.MaterialStorage();

                storage.ID        = deptStat.DeptCode;
                storage.Name      = this.deptHelper.GetName(deptStat.DeptCode);
                storage.Name      = storage.Name;
                storage.ID        = deptStat.DeptCode;
                storage.SpellCode = deptStat.SpellCode;
                storage.WBCode    = deptStat.WBCode;

                al.Add(storage);
            }

            this.AddDataToTable(al, true);
        }