Пример #1
0
        /// <summary>
        /// 初始化出库类别列表
        /// </summary>
        private void InitCmb()
        {
            Neusoft.HISFC.BizLogic.Manager.UserPowerDetailManager userPower = new Neusoft.HISFC.BizLogic.Manager.UserPowerDetailManager();
            List <Neusoft.FrameWork.Models.NeuObject>             list      = userPower.QueryUserPrivCollection(this.employee.ID, "0320", this.employee.Dept.ID);

            if (list != null)
            {
                this.cmbOutType.AddItems(new ArrayList(list));
                if (list.Count > 0)
                {
                    this.cmbOutType.SelectedIndex = 0;
                }
            }
        }
Пример #2
0
        /// <summary>
        /// 根据权限人员编码/科室编码/二级权限码 获取所拥有的三级权限集合
        /// </summary>
        /// <param name="userCode">权限人员编码</param>
        /// <param name="deptCode">科室编码</param>
        /// <param name="class2Code">二级权限编码</param>
        /// <returns>成功返回所拥有的权限1 失败返回0</returns>
        public virtual int GetUserPriv(string userCode, string deptCode, string class2Code)
        {
            Neusoft.HISFC.BizLogic.Manager.UserPowerDetailManager privManager = new Neusoft.HISFC.BizLogic.Manager.UserPowerDetailManager();
            List <Neusoft.FrameWork.Models.NeuObject>             alPriv      = privManager.QueryUserPrivCollection(userCode, class2Code, deptCode);

            if (alPriv == null)
            {
                MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("获取三级权限集合失败"));
                return(0);
            }
            this.SetPriv(alPriv, false);

            return(1);
        }
Пример #3
0
        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            //取操作员权限科室(暂时以所在科室代替 )
            this.privDept = ((Neusoft.HISFC.Models.Base.Employee) this.drugStoreManager.Operator).Dept;

            //判断是否有模版维护权限
            Neusoft.HISFC.BizLogic.Manager.UserPowerDetailManager userManager  = new Neusoft.HISFC.BizLogic.Manager.UserPowerDetailManager( );
            List <Neusoft.FrameWork.Models.NeuObject>             alPrivDetail = userManager.QueryUserPrivCollection(this.drugStoreManager.Operator.ID, "0350", this.privDept.ID);

            if (alPrivDetail != null)
            {
                foreach (Neusoft.FrameWork.Models.NeuObject privInfo in alPrivDetail)
                {
                    //门诊终端维护权限
                    if (privInfo.ID == "01")
                    {
                        this.isPrivilegeEdit = true;
                        break;
                    }
                }
            }
            else
            {
                this.isPrivilegeEdit = true;
            }

            this.IsEdit = this.isPrivilegeEdit;

            this.ShowAdjustType( );
            this.ShowTerminalInfo( );

            //改变FarPoint的回车事件,使回车转到下一行当前列
            FarPoint.Win.Spread.InputMap im;
            im = this.neuSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);
            im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextRow);

            this.neuSpread1.EditModeReplace = true;

            Neusoft.FrameWork.WinForms.Classes.MarkCellType.NumCellType markNumCell = new Neusoft.FrameWork.WinForms.Classes.MarkCellType.NumCellType();
            markNumCell.DecimalPlaces = 0;
            markNumCell.MinimumValue  = 0;
            markNumCell.MaximumValue  = 9999;

            this.neuSpread1_Sheet1.Columns[3].CellType = markNumCell;
            this.neuSpread1_Sheet1.Columns[4].CellType = markNumCell;
            this.neuSpread1_Sheet1.Columns[5].CellType = markNumCell;

            base.OnLoad(e);
        }
        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            //取操作员权限科室(暂时以所在科室代替 )
            this.privDept = ((Neusoft.HISFC.Models.Base.Employee) this.drugStore.Operator).Dept;

            //判断是否有模版维护权限
            Neusoft.HISFC.BizLogic.Manager.UserPowerDetailManager userManager  = new Neusoft.HISFC.BizLogic.Manager.UserPowerDetailManager( );
            List <Neusoft.FrameWork.Models.NeuObject>             alPrivDetail = userManager.QueryUserPrivCollection(this.drugStore.Operator.ID, "0350", this.privDept.ID);

            if (alPrivDetail != null)
            {
                this.isPrivilegeEdit = false;
                foreach (Neusoft.FrameWork.Models.NeuObject privInfo in alPrivDetail)
                {
                    //门诊终端维护权限
                    if (privInfo.ID == "01")
                    {
                        this.isPrivilegeEdit = true;
                        break;
                    }
                }
            }
            else
            {
                this.isPrivilegeEdit = true;
            }

            this.IsEdit = this.isPrivilegeEdit;

            Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm(Language.Msg("正在加载门诊终端信息...."));
            Application.DoEvents( );

            //初始化科室终端数据
            this.ucDrugTerminalList1.InitDeptTerminal(this.privDept.ID);
            //初始化模板列表
            this.ShowTemplateList( );

            Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm( );

            base.OnLoad(e);
        }
Пример #5
0
        /// <summary>
        /// 窗口初始化
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            #region 权限判断

            //取操作员权限科室(暂时以所在科室代替 )
            this.privDept = ((Neusoft.HISFC.Models.Base.Employee) this.drugStore.Operator).Dept;

            //判断是否有模版维护权限
            Neusoft.HISFC.BizLogic.Manager.UserPowerDetailManager user         = new Neusoft.HISFC.BizLogic.Manager.UserPowerDetailManager( );
            List <Neusoft.FrameWork.Models.NeuObject>             alPrivDetail = user.QueryUserPrivCollection(this.drugStore.Operator.ID, "0350", this.privDept.ID);
            if (alPrivDetail != null)
            {
                foreach (Neusoft.FrameWork.Models.NeuObject privInfo in alPrivDetail)
                {
                    //门诊终端维护权限
                    if (privInfo.ID == "01")
                    {
                        this.isPrivilegeEdit = true;
                        break;
                    }
                }
            }
            else
            {
                this.isPrivilegeEdit = true;
            }

            this.IsEdit = this.isPrivilegeEdit;

            #endregion

            #region 初始化

            Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm(Language.Msg("正在加载门诊终端信息...."));
            Application.DoEvents( );

            //初始化sheet格式
            this.InitFp( );

            //初始化科室终端数据
            this.ucDrugTerminalList1.InitDeptTerminal(this.privDept.ID);

            ////多线程加载数据
            //System.Threading.ThreadStart start = new System.Threading.ThreadStart( this.InitConstant );
            //System.Threading.Thread thread = new System.Threading.Thread( start );
            //thread.Start( );

            this.InitConstant();

            //默认选择药品
            this.neuSpread1.ActiveSheetIndex = 0;
            this.ShowData(this.neuSpread1.ActiveSheetIndex);

            //改变FarPoint的回车事件,使回车转到下一行当前列
            FarPoint.Win.Spread.InputMap im;
            im = this.neuSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
            im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextRow);

            //屏蔽挂号级别功能
            if (this.neuSpread1.Sheets.Contains(this.sheetSpeRegLevel))
            {
                this.neuSpread1.Sheets.Remove(this.sheetSpeRegLevel);
            }

            Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm( );

            #endregion

            base.OnLoad(e);
        }