コード例 #1
0
        /// <summary>
        /// 窗口初始化
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            //取操作员权限科室(暂时以所在科室代替 )
            this.privDept = ((Neusoft.HISFC.Object.Base.Employee) this.drugStore.Operator).Dept;

            //判断是否有模版维护权限
            Neusoft.HISFC.Management.Manager.UserPowerDetailManager user = new Neusoft.HISFC.Management.Manager.UserPowerDetailManager( );
            //ArrayList alPrivDetail = user.QueryUserPriv( this.drugStore.Operator.ID , "0350" , this.privDept.ID );
            //if( alPrivDetail != null )
            //{
            //    foreach( Neusoft.NFC.Object.NeuObject privInfo in alPrivDetail )
            //    {
            //        //门诊终端维护权限
            //        if( privInfo.ID == "01" )
            //        {
            //            this.isPrivilegeEdit = true;
            //            break;
            //        }
            //    }
            //}
            //else
            //{
            //    this.isPrivilegeEdit = true;
            //}
            Neusoft.NFC.Interface.Classes.Function.ShowWaitForm(Language.Msg("正在加载门诊终端信息...."));
            Application.DoEvents( );

            //初始化科室终端数据
            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( );

            //设置当前选中的第一个sheet
            this.neuSpread1.ActiveSheet = this.neuSpread1_Sheet1;
            //初始化数据
            //this.ShowData( );

            Neusoft.NFC.Interface.Classes.Function.HideWaitForm( );

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

            //判断是否有模版维护权限
            Neusoft.HISFC.Management.Manager.UserPowerDetailManager user = new Neusoft.HISFC.Management.Manager.UserPowerDetailManager( );
            //ArrayList alPrivDetail = user.QueryUserPriv( this.drugStore.Operator.ID , "0350" , this.privDept.ID );
            //if( alPrivDetail != null )
            //{
            //    foreach( Neusoft.NFC.Object.NeuObject privInfo in alPrivDetail )
            //    {
            //        //门诊终端维护权限
            //        if( privInfo.ID == "01" )
            //        {
            //            this.isPrivilegeEdit = true;
            //            break;
            //        }
            //    }
            //}
            //else
            //{
            //    this.isPrivilegeEdit = true;
            //}
            Neusoft.NFC.Interface.Classes.Function.ShowWaitForm(Language.Msg("正在加载门诊终端信息...."));
            Application.DoEvents( );

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

            Neusoft.NFC.Interface.Classes.Function.HideWaitForm( );

            base.OnLoad(e);
        }