Ejemplo n.º 1
0
        /// <summary>
        ///根据标题在tabpage中显示出页面
        ///增加新按钮需 1.在该方法的switch中加一个case,case后面的字符为按钮的text属性值
        ///case中new出你要显示的用户控件
        ///2.并且按钮的单击事件绑定到 menubutton_click 方法上
        /// </summary>
        /// <param name="pageTitle">button的text属性字段</param>
        private void MenuShowPage(string pageTitle)
        {
            if (!isExistPage(pageTitle))
            {
                UserControl uc = null;
                switch (pageTitle)
                {
                case "单组冲药":
                    uc = new UI.SendPharm();
                    break;

                case "批次维护":
                    uc = new UI.DataManage.BatchToRedDrugView();
                    break;

                case "退药申请":
                    uc = new UI.CancelLabelView();
                    break;

                case "退药查询":
                    uc = new UI.NewCancelRCPView();
                    break;

                case "瓶贴查询":
                    uc = new UI.SendPharmSelect();
                    break;

                case "药师审方":
                    uc = new UI.CheckAdviceView();
                    break;

                case "修改医嘱批次":
                    uc = new UI.CheckAdviceView();
                    break;

                case "瓶贴生成":
                    uc = new UI.Label.QueryPrintLabellView();
                    break;

                //case "瓶贴查询":
                //    uc = new UI.Label.QueryLabelView();
                //    break;
                case "瓶贴扫描":
                    uc = new UI.Label.LabelScanning();
                    break;

                case "发药统计查询":
                    uc = new UI.PharmSendStatSelectView();
                    break;

                case "拉单维护":
                    uc = new UI.DataManage.RedDrugView(1);
                    break;

                case "冲药维护":
                    uc = new UI.DataManage.RedDrugView(2);
                    break;

                case "静脉药物批次维护":
                    uc = new UI.DataManage.BatchToRedDrugView();
                    break;

                case "频率批次维护":
                    uc = new UI.DataManage.FrequencyToBatchView();
                    break;

                case "用法给药途径维护":
                    uc = new UI.DataManage.DeptUsageView();
                    break;

                case "用户维护":
                    uc = new UI.DataManage.UserView();
                    break;

                case "退药处理":
                    uc = new UI.NewCancelApplyView();
                    break;

                case "药品库存查询":
                    uc = new UI.StorageQueryView();
                    break;

                case "瓶贴重打":
                    uc = new UI.Label.LabelAgainPrintView();
                    break;

                case "日常用药":
                    uc = new UI.PharmEconomizeView();
                    break;

                case "扫描监控":
                    uc = new UI.ScanningMonitoringView();
                    break;

                case "未校验医嘱":
                    uc = new UI.ErrorView();
                    break;

                default:
                    break;
                }
                if (uc != null)
                {
                    ShowPage(pageTitle, uc);
                }
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        ///根据标题在tabpage中显示出页面
        ///增加新按钮需 1.在该方法的switch中加一个case,case后面的字符为按钮的text属性值
        ///case中new出你要显示的用户控件
        ///2.并且按钮的单击事件绑定到 menubutton_click 方法上
        /// </summary>
        /// <param name="pageTitle">button的text属性字段</param>
        private void MenuShowPage(string pageTitle)
        {
            if (!isExistPage(pageTitle))
            {
                UserControl uc = null;
                switch (pageTitle)
                {
                case "冲药":
                    uc = new UI.PharmSendView();
                    break;

                case "退药申请":
                    uc = new UI.CancelApplyView();
                    break;

                case "退药查询":
                    uc = new UI.CancelRCPView();
                    break;

                case "冲药查询":
                    uc = new UI.PharmSendSelectView();
                    break;

                case "药师审方":
                    uc = new UI.CheckAdviceView();
                    break;

                case "瓶贴生成":
                    uc = new UI.Label.GenLabelView();
                    break;

                case "瓶贴查询":
                    uc = new UI.Label.QueryLabelView();
                    break;

                case "瓶贴扫描":
                    uc = new UI.Label.LabelScanning();
                    break;

                case "发药统计查询":
                    uc = new UI.PharmSendStatSelectView();
                    break;

                case "拉单维护":
                    uc = new UI.DataManage.RedDrugView(1);
                    break;

                case "冲药维护":
                    uc = new UI.DataManage.RedDrugView(2);
                    break;

                case "静脉药物批次维护":
                    uc = new UI.DataManage.BatchToRedDrugView();
                    break;

                case "频率批次维护":
                    uc = new UI.DataManage.FrequencyToBatchView();
                    break;

                case "用法给药途径维护":
                    uc = new UI.DataManage.DeptUsageView();
                    break;

                case "用户维护":
                    uc = new UI.DataManage.UserView();
                    break;

                case "退药处理":
                    uc = new UI.CancelApplyView();
                    break;

                default:
                    break;
                }
                if (uc != null)
                {
                    ShowPage(pageTitle, uc);
                }
            }
        }