/// <summary>
        /// 根据项目类别、分类内容获取描述信息
        /// </summary>
        /// <param name="customType">分类</param>
        /// <param name="typeItem">分类内容</param>
        /// <returns></returns>
        protected string GetDescriptionFromTypeItem(EnumMSCustomType customType, string typeItem, TransTypes trans)
        {
            switch (customType)
            {
            case Neusoft.HISFC.Models.Base.EnumMSCustomType.入库:           //根据入库类型检索
            case Neusoft.HISFC.Models.Base.EnumMSCustomType.出库:           //根据出库类型检索
                Neusoft.HISFC.BizLogic.Manager.PowerLevelManager powerManager = new Neusoft.HISFC.BizLogic.Manager.PowerLevelManager();

                PowerLevelClass3 pIn3 = powerManager.LoadLevel3ByPrimaryKey(Neusoft.HISFC.Models.Base.EnumMSCustomTypeService.GetNameFromEnum(customType), typeItem);

                return(customType.ToString() + " - " + pIn3.Name);

            case Neusoft.HISFC.Models.Base.EnumMSCustomType.科室:           //科室 根据入出库科室选择
                Neusoft.HISFC.BizLogic.Manager.PrivInOutDept privInOutManager = new Neusoft.HISFC.BizLogic.Manager.PrivInOutDept();

                return("科室 - " + this.deptHelper.GetName(typeItem));

            case Neusoft.HISFC.Models.Base.EnumMSCustomType.调价:
                if (typeItem == "00")
                {
                    return(this.strAdjustCollection[0]);
                }
                else
                {
                    return(this.strAdjustCollection[1]);
                }

            case Neusoft.HISFC.Models.Base.EnumMSCustomType.盘点:           //根据盘点盈亏
                if (typeItem == "00")
                {
                    return(this.strCheckCollection[0]);
                }
                else
                {
                    return(this.strCheckCollection[1]);
                }

            default:
                return(customType.ToString());
            }
        }
        /// <summary>
        /// 初始化
        /// </summary>
        protected void Init()
        {
            FarPoint.Win.Spread.CellType.ComboBoxCellType addFlagCmbType = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
            addFlagCmbType.Items = this.addFlagStrCollection;

            this.neuSpread1_Sheet1.Columns[6].CellType = addFlagCmbType;

            Neusoft.FrameWork.Management.DataBaseManger dataManager = new DataBaseManger();

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

            Neusoft.HISFC.BizProcess.Integrate.Manager integrateManager = new Neusoft.HISFC.BizProcess.Integrate.Manager();

            ArrayList aldept = integrateManager.GetDepartment();

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

            int iIndex = 0;

            #region 获取出入库科室列表

            Neusoft.HISFC.BizLogic.Manager.PrivInOutDept privInOutManager = new Neusoft.HISFC.BizLogic.Manager.PrivInOutDept();

            ArrayList alPrivInDept = privInOutManager.GetPrivInOutDeptList(this.privDept.ID, "0310");
            if (alPrivInDept == null)
            {
                MessageBox.Show(Language.Msg("获取当前科室入库科室列表发生错误") + privInOutManager.Err);
                return;
            }

            this.privInStrCollection = new string[alPrivInDept.Count];
            iIndex = 0;
            foreach (Neusoft.HISFC.Models.Base.PrivInOutDept privInInfo in alPrivInDept)
            {
                this.privInStrCollection[iIndex] = "科室 - " + privInInfo.Dept.Name;

                this.hsPrivInDept.Add(this.privInStrCollection[iIndex], privInInfo.Dept.ID);

                iIndex++;
            }

            ArrayList alPrivOutDept = privInOutManager.GetPrivInOutDeptList(this.privDept.ID, "0320");
            if (alPrivOutDept == null)
            {
                MessageBox.Show(Language.Msg("获取当前科室出库科室列表发生错误") + privInOutManager.Err);
                return;
            }
            this.privOutStrCollection = new string[alPrivOutDept.Count];
            iIndex = 0;
            foreach (Neusoft.HISFC.Models.Base.PrivInOutDept privOutInfo in alPrivOutDept)
            {
                this.privOutStrCollection[iIndex] = "科室 - " + privOutInfo.Dept.Name;

                this.hsPrivOutDept.Add(this.privOutStrCollection[iIndex], privOutInfo.Dept.ID);

                iIndex++;
            }

            #endregion

            #region 入出库权限集合

            Neusoft.HISFC.BizLogic.Manager.PowerLevelManager powerManager = new Neusoft.HISFC.BizLogic.Manager.PowerLevelManager();

            ArrayList alPrivInC3 = powerManager.LoadLevel3ByLevel2("0310");
            if (alPrivInC3 == null)
            {
                MessageBox.Show(Language.Msg("获取当前入库三级权限类型发生错误") + powerManager.Err);
                return;
            }
            this.privInC3StrCollection = new string[alPrivInC3.Count];
            iIndex = 0;
            foreach (Neusoft.HISFC.Models.Admin.PowerLevelClass3 privInC3 in alPrivInC3)
            {
                this.privInC3StrCollection[iIndex] = "入库 - " + privInC3.Name;

                this.hsPrivInC3.Add(this.privInC3StrCollection[iIndex], privInC3.ID);

                iIndex++;
            }

            ArrayList alPrivOutC3 = powerManager.LoadLevel3ByLevel2("0320");
            if (alPrivOutC3 == null)
            {
                MessageBox.Show(Language.Msg("获取当前出库三级权限类型发生错误") + powerManager.Err);
                return;
            }
            this.privOutC3StrCollection = new string[alPrivOutC3.Count];
            iIndex = 0;
            foreach (Neusoft.HISFC.Models.Admin.PowerLevelClass3 privOutC3 in alPrivOutC3)
            {
                this.privOutC3StrCollection[iIndex] = "出库 - " + privOutC3.Name;

                this.hsPrivOutC3.Add(this.privOutC3StrCollection[iIndex], privOutC3.ID);

                iIndex++;
            }

            #endregion
        }