Ejemplo n.º 1
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 = 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);
            }
        }
Ejemplo n.º 2
0
        /// <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);
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 入库申请
        ///
        /// 剩余根据警戒线自动生产申请尚未做
        /// 根据模版生成申请尚未做
        /// </summary>
        /// <param name="isBackIn">True 退库申请 False 正常入库申请</param>
        /// <param name="ucPhaManager"></param>
        public InnerApplyPriv(bool isBackIn, Neusoft.HISFC.Components.Pharmacy.In.ucPhaIn ucPhaManager)
        {
            this.isBack = isBackIn;

            this.listNO = "";

            this.SetPhaManagerProperty(ucPhaManager);
        }
Ejemplo n.º 4
0
        public BackInPriv(Neusoft.HISFC.Components.Pharmacy.In.ucPhaIn ucPhaManager)
        {
            if (System.Diagnostics.Process.GetCurrentProcess().ProcessName.ToUpper() != "DEVENV")
            {
                this.Init();

                this.SetPhaManagerProperty(ucPhaManager);
            }
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 设置主控件属性
        /// </summary>
        private void SetPhaManagerProperty(Neusoft.HISFC.Components.Pharmacy.In.ucPhaIn ucPhaManager)
        {
            this.phaInManager = ucPhaManager;

            //设置界面显示
            this.phaInManager.IsShowInputPanel      = false;
            this.phaInManager.IsShowItemSelectpanel = true;
            //设置目标单位选项 设置工具栏按钮状态
            if (this.phaInManager.DeptInfo.Memo == "PI")
            {
                this.isPIDept = true;
                this.phaInManager.SetTargetDept(true, false, Neusoft.HISFC.Models.IMA.EnumModuelType.Phamacy, Neusoft.HISFC.Models.Base.EnumDepartmentType.P);

                this.phaInManager.SetToolBarButton(false, false, false, false, true);

                this.phaInManager.SetToolBarButtonVisible(false, false, false, false, true, true, false);
            }
            else
            {
                this.isPIDept = false;
                this.phaInManager.SetTargetDept(false, true, Neusoft.HISFC.Models.IMA.EnumModuelType.Phamacy, Neusoft.HISFC.Models.Base.EnumDepartmentType.P);

                this.phaInManager.SetToolBarButton(false, false, true, false, true);

                this.phaInManager.SetToolBarButtonVisible(false, false, true, false, true, true, false);
            }
            //显示选择信息
            if (this.phaInManager.TargetDept.ID != "")
            {
                this.ShowSelectData();
            }
            this.phaInManager.ShowInfo = "入库单:";
            //设置项目列表宽度
            this.phaInManager.SetItemListWidth(2);

            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);

            System.EventHandler eFun = new EventHandler(this.ChangeCheck);
            this.phaInManager.AddToolBarButton("选择", "对未选中数据进行反向选择", Neusoft.FrameWork.WinForms.Classes.EnumImageList.H合并, 0, true, eFun);
        }
Ejemplo n.º 6
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;
            }
        }
Ejemplo n.º 7
0
 public ApproveInPriv(Neusoft.HISFC.Components.Pharmacy.In.ucPhaIn ucPhaManager)
 {
     this.SetPhaManagerProperty(ucPhaManager);
 }
Ejemplo n.º 8
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 = 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();
            }
        }
Ejemplo n.º 9
0
        public Neusoft.HISFC.Components.Pharmacy.In.IPhaInManager GetInInstance(Neusoft.FrameWork.Models.NeuObject inPrivType, Neusoft.HISFC.Components.Pharmacy.In.ucPhaIn ucPhaManager)
        {
            switch (inPrivType.Memo)
            {
            case "11":              //一般入库
                return(new HISFC.Components.Pharmacy.In.CommonInPriv(false, ucPhaManager));

            case "1C":              //特殊入库
                return(new HISFC.Components.Pharmacy.In.CommonInPriv(true, ucPhaManager));

            case "13":              //内部入库申请
                return(new HISFC.Components.Pharmacy.In.InnerApplyPriv(false, ucPhaManager));

            /*
             * try
             * {
             *  AppDomainSetup dllDomin = new AppDomainSetup();
             *
             *  AppDomain innerDomin = AppDomain.CreateDomain("InnerApply", null, dllDomin);
             *
             *  UFC.Pharmacy.In.IPhaInManager inInterface = (UFC.Pharmacy.In.IPhaInManager)innerDomin.CreateInstanceAndUnwrap(System.Windows.Forms.Application.StartupPath + "\\PharmacyNotice.dll","PharmacyNotice.InnerApplyPriv",true, System.Reflection.BindingFlags.Default, null, new object[] { false, ucPhaManager }, null, null,null);
             *
             *  AppDomain.Unload(innerDomin);
             *
             *  return inInterface;
             * }
             * catch (Exception e)
             * {
             *  System.Windows.Forms.MessageBox.Show(e.Message);
             *  return null;
             * }
             */
            case "18":              //内部入库退库申请
                return(new HISFC.Components.Pharmacy.In.InnerApplyPriv(true, ucPhaManager));

            case "1A":              //发票入库
                return(new HISFC.Components.Pharmacy.In.InvoiceInPriv(ucPhaManager));

            case "16":              //核准入库
                return(new HISFC.Components.Pharmacy.In.ApproveInPriv(ucPhaManager));

            case "19":                //入库退库
                return(new HISFC.Components.Pharmacy.In.BackInPriv(ucPhaManager));
            }

            EnumIMAInType enumType = EnumIMAInTypeService.GetEnumFromName(inPrivType.Memo);

            switch (enumType)
            {
            case EnumIMAInType.OuterApply:
                return(new HISFC.Components.Pharmacy.In.OuterApplyPriv(ucPhaManager));
            }
            return(null);
        }