示例#1
0
        private IDockContent GetContentFromPersistString(string persistString)
        {
            switch (persistString)
            {
            case "SIS.frmReportTemp":
                picClick = new SIS.frmReportEdit.PicBoxClick(PicBox_Click);
                frmTemp  = new frmReportTemp(picClick, word);

                return(frmTemp);

            case "SIS.frmRptImages":
                frmRptImg        = new frmRptImages(word, this.ctms_Tools);
                frmRptImg.panel  = this.p_Main;
                frmRptImg.change = new frmRptImages.ChceckChanged(Picture_CheckChanged);
                return(frmRptImg);

            case "SIS.frmExamInf":
                frmExam       = new frmExamInf();
                frmExam.panel = this.p_Main;
                frmExam.Show(this.dockPanel, BaseControls.Docking.DockState.DockRightAutoHide);
                return(frmExam);

            case "SIS.frmPacsHistory":
                picClick       = new SIS.frmReportEdit.PicBoxClick(PicBox_Click);
                frmPacsH       = new frmPacsHistory(picClick);
                frmPacsH.panel = this.p_Main;
                frmPacsH.Show(this.dockPanel, BaseControls.Docking.DockState.DockLeftAutoHide);
                return(frmPacsH);

            case "SIS.frmHistoryExam":
                picClick      = new SIS.frmReportEdit.PicBoxClick(PicBox_Click);
                frmHRpt       = new frmHistoryExam(picClick);
                frmHRpt.panel = this.p_Main;
                frmHRpt.Show(this.dockPanel, BaseControls.Docking.DockState.DockLeftAutoHide);
                return(frmHRpt);

            case "SIS.frmRecommendation":
                frmRem       = new frmRecommendation();
                frmRem.panel = this.p_Main;
                frmRem.Show(this.dockPanel, BaseControls.Docking.DockState.DockBottomAutoHide);
                return(frmRem);

            default:
                return(null);
            }
        }
示例#2
0
        /*以下两个函数,处理报告编辑主界面布局显示*/
        public void FrmRptEditInit()
        {
            m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
            word = new WordClass(this.winWordControl);
            string configFile = Application.StartupPath + "\\Config\\RptDockPanel.config";

            if (!dockPanel.LoadFromXml(configFile, m_deserializeDockContent))
            {
                picClick = new SIS.frmReportEdit.PicBoxClick(PicBox_Click);
                frmTemp  = new frmReportTemp(picClick, word);
                frmTemp.Show(this.dockPanel, BaseControls.Docking.DockState.DockLeft);

                frmRptImg        = new frmRptImages(word, this.ctms_Tools);
                frmRptImg.panel  = this.p_Main;
                frmRptImg.change = new frmRptImages.ChceckChanged(Picture_CheckChanged);
                frmRptImg.Show(this.dockPanel, BaseControls.Docking.DockState.DockRight);
                frmRptImg.ContextMenuStrip = ctms_Tools;

                frmRem       = new frmRecommendation();
                frmRem.panel = this.p_Main;
                frmRem.Show(this.dockPanel, BaseControls.Docking.DockState.DockBottomAutoHide);
                if (GetConfig.RS_HistoryRpt == "PACS")
                {
                    frmPacsH       = new frmPacsHistory(picClick);
                    frmPacsH.panel = this.p_Main;
                    frmPacsH.Show(this.dockPanel, BaseControls.Docking.DockState.DockLeft);
                }
                else
                {
                    frmHRpt       = new frmHistoryExam(picClick);
                    frmHRpt.panel = this.p_Main;
                    frmHRpt.Show(this.dockPanel, BaseControls.Docking.DockState.DockLeft);
                }

                frmExam       = new frmExamInf();
                frmExam.panel = this.p_Main;
                frmExam.Show(this.dockPanel, BaseControls.Docking.DockState.DockRight);
            }
        }