/// <summary>
        /// 设置主窗体属性
        /// </summary>
        /// <param name="ucPhaManager"></param>
        protected void SetPhaManagerProperty(Neusoft.HISFC.Components.Pharmacy.In.ucPhaIn ucPhaManager)
        {
            this.phaInManager = ucPhaManager;

            if (this.phaInManager != null)
            {
                //设置目标科室信息  显示供货单位列表
                this.phaInManager.SetTargetDept(true, false, Neusoft.HISFC.Models.IMA.EnumModuelType.Phamacy, Neusoft.HISFC.Models.Base.EnumDepartmentType.P);
                //设置需过滤数据
                this.phaInManager.IsShowItemSelectpanel = false;

                //{1DED4697-A590-47b3-B727-92A4AA05D2ED} 调整入库退库代码
                this.phaInManager.IsShowInputPanel = true;
                this.ShowSelectData();

                //设置工具栏按钮显示
                this.phaInManager.SetToolBarButton(false, true, false, false, true);
                this.phaInManager.SetToolBarButtonVisible(false, true, false, false, true, true, false);
                //设置项目列表宽度
                this.phaInManager.SetItemListWidth(2);
                //设置Fp
                this.phaInManager.Fp.EditModePermanent            = false;
                this.phaInManager.Fp.EditModeReplace              = true;
                this.phaInManager.FpSheetView.DataAutoSizeColumns = false;

                this.phaInManager.EndTargetChanged -= new ucIMAInOutBase.DataChangedHandler(value_EndTargetChanged);
                this.phaInManager.EndTargetChanged += new ucIMAInOutBase.DataChangedHandler(value_EndTargetChanged);

                this.phaInManager.FpKeyEvent -= new ucIMAInOutBase.FpKeyHandler(value_FpKeyEvent);
                this.phaInManager.FpKeyEvent += new ucIMAInOutBase.FpKeyHandler(value_FpKeyEvent);

                this.phaInManager.Fp.EditModeOff -= new EventHandler(Fp_EditModeOff);
                this.phaInManager.Fp.EditModeOff += new EventHandler(Fp_EditModeOff);
            }
        }
        /// <summary>
        /// 设置主窗体属性
        /// </summary>
        /// <param name="ucPhaManager"></param>
        private void SetPhaManagerProperty(Neusoft.HISFC.Components.Pharmacy.In.ucPhaIn ucPhaManager)
        {
            this.phaInManager = ucPhaManager;

            if (this.phaInManager != null)
            {
                //设置界面显示
                this.phaInManager.IsShowItemSelectpanel = true;
                //设置目标科室信息
                this.phaInManager.SetTargetDept(true, false, Neusoft.HISFC.Models.IMA.EnumModuelType.Phamacy, Neusoft.HISFC.Models.Base.EnumDepartmentType.P);
                //设置需过滤数据
                if (this.phaInManager.TargetDept.ID != "")
                {
                    this.ShowSelectData();
                }
                //显示信息设置清空
                this.phaInManager.ShowInfo = "";
                //设置工具栏按钮显示
                this.phaInManager.SetToolBarButton(false, true, false, false, true);
                this.phaInManager.SetToolBarButtonVisible(false, true, false, false, true, true, false);
                //设置Fp可替代
                this.phaInManager.Fp.EditModeReplace = true;
                this.phaInManager.FpSheetView.DataAutoSizeColumns = false;

                this.phaInManager.EndTargetChanged -= new ucIMAInOutBase.DataChangedHandler(value_EndTargetChanged);
                this.phaInManager.EndTargetChanged += new ucIMAInOutBase.DataChangedHandler(value_EndTargetChanged);

                this.phaInManager.FpKeyEvent -= new ucIMAInOutBase.FpKeyHandler(value_FpKeyEvent);
                this.phaInManager.FpKeyEvent += new ucIMAInOutBase.FpKeyHandler(value_FpKeyEvent);

                this.phaInManager.Fp.EditModeOff -= new EventHandler(Fp_EditModeOff);
                this.phaInManager.Fp.EditModeOff += new EventHandler(Fp_EditModeOff);
            }
        }
Exemple #3
0
        /// <summary>
        /// 设置主窗体属性
        /// </summary>
        /// <param name="ucPhaManager"></param>
        private void SetPhaManagerProperty(Neusoft.HISFC.Components.Pharmacy.In.ucPhaIn ucPhaManager)
        {
            this.phaInManager = ucPhaManager;

            if (this.phaInManager != null)
            {
                //设置界面显示
                this.phaInManager.IsShowItemSelectpanel = false;
                this.phaInManager.IsShowInputPanel      = true;
                //设置目标科室信息  对于药库/药房进行不同设置
                if (this.phaInManager.DeptInfo.Memo == "PI")
                {
                    this.phaInManager.SetTargetDept(true, true, Neusoft.HISFC.Models.IMA.EnumModuelType.Phamacy, Neusoft.HISFC.Models.Base.EnumDepartmentType.P);

                    this.phaInManager.TargetDept = new Neusoft.FrameWork.Models.NeuObject();

                    //设置工具栏按钮显示
                    this.phaInManager.SetToolBarButtonVisible(true, false, false, true, true, true, true);
                }
                else
                {
                    this.phaInManager.SetTargetDept(false, true, true, Neusoft.HISFC.Models.IMA.EnumModuelType.Phamacy, Neusoft.HISFC.Models.Base.EnumDepartmentType.P);

                    this.phaInManager.TargetDept = new Neusoft.FrameWork.Models.NeuObject();

                    //设置工具栏按钮显示
                    this.phaInManager.SetToolBarButtonVisible(true, false, false, false, true, true, false);
                }

                //信息说明设置
                this.phaInManager.ShowInfo = "对下部所列数据双击可进行修改";
                //设置Fp属性
                this.phaInManager.Fp.EditModePermanent = false;
                this.phaInManager.Fp.EditModeReplace   = false;

                this.phaInManager.EndTargetChanged -= new ucIMAInOutBase.DataChangedHandler(phaInManager_EndTargetChanged);
                this.phaInManager.EndTargetChanged += new ucIMAInOutBase.DataChangedHandler(phaInManager_EndTargetChanged);

                this.phaInManager.Fp.CellDoubleClick += new FarPoint.Win.Spread.CellClickEventHandler(Fp_CellDoubleClick);

                this.svTemp = this.phaInManager.FpSheetView;
            }
        }
        /// <summary>
        /// 设置主窗体属性
        /// </summary>
        /// <param name="ucPhaManager"></param>
        private void SetPhaManagerProperty(Neusoft.HISFC.Components.Pharmacy.In.ucPhaIn ucPhaManager)
        {
            this.phaInManager = ucPhaManager;

            if (this.phaInManager != null)
            {
                //设置界面显示
                this.phaInManager.IsShowItemSelectpanel = true;
                this.phaInManager.IsShowInputPanel      = false;
                //目标科室设置
                this.phaInManager.SetTargetDept(false, true, Neusoft.HISFC.Models.IMA.EnumModuelType.Phamacy, Neusoft.HISFC.Models.Base.EnumDepartmentType.P);
                //FpSheetView
                this.svTemp = this.phaInManager.FpSheetView;

                //设置显示数据
                if (this.phaInManager.TargetDept.ID != "")
                {
                    this.ShowSelectData();
                }
                //设置工具栏按钮显示
                this.phaInManager.SetToolBarButton(true, false, false, false, true);
                this.phaInManager.SetToolBarButtonVisible(true, false, false, false, true, true, false);
                //设置信息显示
                this.phaInManager.ShowInfo = "";
                //Fp 设置
                this.phaInManager.FpSheetView.DataAutoSizeColumns = false;
                this.phaInManager.Fp.EditModeReplace = true;

                this.phaInManager.EndTargetChanged -= new ucIMAInOutBase.DataChangedHandler(value_EndTargetChanged);
                this.phaInManager.EndTargetChanged += new ucIMAInOutBase.DataChangedHandler(value_EndTargetChanged);

                this.phaInManager.FpKeyEvent -= new ucIMAInOutBase.FpKeyHandler(value_FpKeyEvent);
                this.phaInManager.FpKeyEvent += new ucIMAInOutBase.FpKeyHandler(value_FpKeyEvent);

                this.phaInManager.FpSheetView.DataAutoSizeColumns = false;
                this.phaInManager.FpSheetView.DataAutoCellTypes   = false;
                this.SetFormat();

                if (!isBack)
                {
                    System.EventHandler eFun = new EventHandler(NumAlterHandler);

                    //{37D3D84C-702A-4090-8CB0-B9993279C735}   入库申请暂存
                    this.phaInManager.AddToolBarButton("警戒线", "根据库存上下限自动生成申请", Neusoft.FrameWork.WinForms.Classes.EnumImageList.B报警, 2, false, eFun);

                    System.EventHandler eOutFun = new EventHandler(OutAlterHandler);

                    this.phaInManager.AddToolBarButton("日消耗", "根据日消耗情况自动生成申请", Neusoft.FrameWork.WinForms.Classes.EnumImageList.F分解, 3, false, eOutFun);

                    System.EventHandler stencilFun = new EventHandler(StencilHandler);

                    this.phaInManager.AddToolBarButton("模版", "根据申请模版形成申请计划", Neusoft.FrameWork.WinForms.Classes.EnumImageList.F复制, 4, false, stencilFun);

                    //{37D3D84C-702A-4090-8CB0-B9993279C735}   入库申请暂存
                    System.EventHandler temporaryListFun = new EventHandler(TemporaryListHandler);
                    this.phaInManager.AddToolBarButton("暂存单", "已录入的暂存申请单列表", Neusoft.FrameWork.WinForms.Classes.EnumImageList.X信息, 5, true, temporaryListFun);

                    //{37D3D84C-702A-4090-8CB0-B9993279C735}   入库申请暂存
                    System.EventHandler temporarySaveFun = new EventHandler(TemporarySaveHandler);
                    this.phaInManager.AddToolBarButton("暂存", "对当前已录入的申请单数据进行暂存", Neusoft.FrameWork.WinForms.Classes.EnumImageList.Z暂存, 7, false, temporarySaveFun);

                    //{37D3D84C-702A-4090-8CB0-B9993279C735}   入库申请暂存
                    System.EventHandler clearFun = new EventHandler(ClearHandler);
                    this.phaInManager.AddToolBarButton("清空", "数据初始化 清空已录入信息", Neusoft.FrameWork.WinForms.Classes.EnumImageList.Q清空, 9, true, clearFun);
                }

                this.InitConfig();
            }
        }