Exemplo n.º 1
0
        public void saveData()
        {
            LayoutXTabPanelControl layoutTabl = xUserControl.GetConfig().GetInstance("tablayout1") as LayoutXTabPanelControl;

            (layoutTabl.SelectedPage.PageControl as IViewCommond).saveData();
        }
Exemplo n.º 2
0
        public void allCancel()
        {
            LayoutXTabPanelControl layoutTabl = xUserControl.GetConfig().GetInstance("tablayout1") as LayoutXTabPanelControl;

            (layoutTabl.SelectedPage.PageControl as OpTemplateControlComplex).allCancel();
        }
Exemplo n.º 3
0
        private XUserControl setOpOrderTemplateTreeViewOrderAndVisible()
        {
            assiViewFrame = this.Context["assiViewFrame"] as XForm;
            AssiBtnDTO     assiBtnDTO     = this.Context["assiBtnDTO"] as AssiBtnDTO;
            CiEnContextDTO ciEnContext    = this.Context["ciEnContext"] as CiEnContextDTO;
            XapBaseControl xapBaseControl = this.Context["sender"] as XapBaseControl;

            xUserControl = new XUserControl();
            xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\opordertemplate\\Helper_complex.xml");
            OrderHelpButtenComplex helpButon = xUserControl.GetConfig().GetInstance("OrderHelpButten") as OrderHelpButtenComplex;

            helpButon.parentFrame = this;

            OpTemplateControlComplex sysTreeView      = xUserControl.GetConfig().GetInstance("sys_OpOrderTemplateControlComplex") as OpTemplateControlComplex;
            OpTemplateControlComplex obsTreeView      = xUserControl.GetConfig().GetInstance("obs_OpOrderTemplateControlComplex") as OpTemplateControlComplex;
            OpTemplateControlComplex westDrugTreeView = xUserControl.GetConfig().GetInstance("westdrug_OpOrderTemplateControlComplex") as OpTemplateControlComplex;
            OpTemplateControlComplex labTreeView      = xUserControl.GetConfig().GetInstance("lab_OpOrderTemplateControlComplex") as OpTemplateControlComplex;
            OpTemplateControlComplex treateTreeView   = xUserControl.GetConfig().GetInstance("treate_OpOrderTemplateControlComplex") as OpTemplateControlComplex;

            sysTreeView.parentFrame    = this;
            sysTreeView.model          = this.model;
            sysTreeView.BannerDTO      = this.BannerDTO;
            sysTreeView.ciEnContext    = ciEnContext;
            sysTreeView.xapBaseControl = xapBaseControl;
            sysTreeView.modeltype      = BdSrvDictCodeConst.SD_ORTMPLTP_FHMBA;

            obsTreeView.BannerDTO      = this.BannerDTO;
            obsTreeView.parentFrame    = this;
            obsTreeView.model          = this.model;
            obsTreeView.ciEnContext    = ciEnContext;
            obsTreeView.xapBaseControl = xapBaseControl;
            obsTreeView.modeltype      = BdSrvDictCodeConst.SD_ORTMPLTP_RIS;

            labTreeView.BannerDTO      = this.BannerDTO;
            labTreeView.parentFrame    = this;
            labTreeView.model          = this.model;
            labTreeView.ciEnContext    = ciEnContext;
            labTreeView.xapBaseControl = xapBaseControl;
            labTreeView.modeltype      = BdSrvDictCodeConst.SD_ORTMPLTP_LIS;

            treateTreeView.BannerDTO      = this.BannerDTO;
            treateTreeView.parentFrame    = this;
            treateTreeView.model          = this.model;
            treateTreeView.ciEnContext    = ciEnContext;
            treateTreeView.xapBaseControl = xapBaseControl;
            treateTreeView.modeltype      = BdSrvDictCodeConst.SD_ORTMPLTP_TREAT;

            westDrugTreeView.BannerDTO      = this.BannerDTO;
            westDrugTreeView.parentFrame    = this;
            westDrugTreeView.model          = this.model;
            westDrugTreeView.ciEnContext    = ciEnContext;
            westDrugTreeView.xapBaseControl = xapBaseControl;
            westDrugTreeView.modeltype      = BdSrvDictCodeConst.SD_ORTMPLTP_CZXCY;

            xUserControl.Dock = DockStyle.Fill;
            string paramStr = (string)BaseEmsView.BaseEmsInfoContext[ICiOrdNSysParamConst.OrTmplTypeAndSeqSet4OPOrHelper];

            if (!string.IsNullOrWhiteSpace(paramStr))
            {
                LayoutXTabPanelControl layoutTabl = xUserControl.GetConfig().GetInstance("tablayout1") as LayoutXTabPanelControl;
                if (layoutTabl != null)
                {
                    layoutTabl.XTabPages[0].Visible = paramStr.Contains(BdSrvDictCodeConst.SD_ORTMPLTP_RIS);
                    layoutTabl.XTabPages[1].Visible = paramStr.Contains(BdSrvDictCodeConst.SD_ORTMPLTP_LIS);
                    layoutTabl.XTabPages[2].Visible = paramStr.Contains(BdSrvDictCodeConst.SD_ORTMPLTP_TREAT);
                    layoutTabl.XTabPages[3].Visible = paramStr.Contains(BdSrvDictCodeConst.SD_ORTMPLTP_CZXCY);
                    layoutTabl.XTabPages[4].Visible = paramStr.Contains(BdSrvDictCodeConst.SD_ORTMPLTP_FHMBA);
                }
            }

            xUserControl.Dock = DockStyle.Fill;
            return(xUserControl);
        }
Exemplo n.º 4
0
        private XUserControl setOpOrderTemplateTreeViewOrderAndVisible()
        {
            assiViewFrame = this.Context["assiViewFrame"] as XForm;
            AssiBtnDTO     assiBtnDTO     = this.Context["assiBtnDTO"] as AssiBtnDTO;
            CiEnContextDTO ciEnContext    = this.Context["ciEnContext"] as CiEnContextDTO;
            XapBaseControl xapBaseControl = this.Context["sender"] as XapBaseControl;


            OpOrderTemplateTreeViewPithy sysTreeView      = xUserControl.GetConfig().GetInstance("sys_OpOrderTemplateTreeViewPithy") as OpOrderTemplateTreeViewPithy;
            OpOrderTemplateTreeViewPithy obsTreeView      = xUserControl.GetConfig().GetInstance("obs_OpOrderTemplateTreeViewPithy") as OpOrderTemplateTreeViewPithy;
            OpOrderTemplateTreeViewPithy labTreeView      = xUserControl.GetConfig().GetInstance("lab_OpOrderTemplateTreeViewPithy") as OpOrderTemplateTreeViewPithy;
            OpOrderTemplateTreeViewPithy treateTreeView   = xUserControl.GetConfig().GetInstance("treate_OpOrderTemplateTreeViewPithy") as OpOrderTemplateTreeViewPithy;
            OpOrderTemplateTreeViewPithy westDrugTreeView = xUserControl.GetConfig().GetInstance("westdrug_OpOrderTemplateTreeViewPithy") as OpOrderTemplateTreeViewPithy;
            OrderHelpButten helpButon = xUserControl.GetConfig().GetInstance("OrderHelpButten") as OrderHelpButten;

            helpButon.parentFrame      = this;
            sysTreeView.parentFrame    = this;
            sysTreeView.model          = this.model;
            sysTreeView.BannerDTO      = this.BannerDTO;
            sysTreeView.ciEnContext    = ciEnContext;
            sysTreeView.xapBaseControl = xapBaseControl;
            sysTreeView.modeltype      = BdSrvDictCodeConst.SD_ORTMPLTP_FHMBA;

            obsTreeView.BannerDTO      = this.BannerDTO;
            obsTreeView.parentFrame    = this;
            obsTreeView.model          = this.model;
            obsTreeView.ciEnContext    = ciEnContext;
            obsTreeView.xapBaseControl = xapBaseControl;
            obsTreeView.modeltype      = BdSrvDictCodeConst.SD_ORTMPLTP_RIS;

            labTreeView.BannerDTO      = this.BannerDTO;
            labTreeView.parentFrame    = this;
            labTreeView.model          = this.model;
            labTreeView.ciEnContext    = ciEnContext;
            labTreeView.xapBaseControl = xapBaseControl;
            labTreeView.modeltype      = BdSrvDictCodeConst.SD_ORTMPLTP_LIS;

            treateTreeView.BannerDTO      = this.BannerDTO;
            treateTreeView.parentFrame    = this;
            treateTreeView.model          = this.model;
            treateTreeView.ciEnContext    = ciEnContext;
            treateTreeView.xapBaseControl = xapBaseControl;
            treateTreeView.modeltype      = BdSrvDictCodeConst.SD_ORTMPLTP_TREAT;

            westDrugTreeView.BannerDTO      = this.BannerDTO;
            westDrugTreeView.parentFrame    = this;
            westDrugTreeView.model          = this.model;
            westDrugTreeView.ciEnContext    = ciEnContext;
            westDrugTreeView.xapBaseControl = xapBaseControl;
            westDrugTreeView.modeltype      = BdSrvDictCodeConst.SD_ORTMPLTP_CZXCY;

            xUserControl.Dock = DockStyle.Fill;
            string paramStr = (string)BaseEmsView.BaseEmsInfoContext[ICiOrdNSysParamConst.OrTmplTypeAndSeqSet4OPOrHelper];

            if (!string.IsNullOrWhiteSpace(paramStr))
            {
                LayoutXTabPanelControl layoutTabl = xUserControl.GetConfig().GetInstance("tablayout1") as LayoutXTabPanelControl;
                //layoutTabl.SelectedIndexChanged += new xap.cli.sdk.controls.tabControl.XTabControl.selectedIndexChanged(layoutTabl_SelectedIndexChanged);
                if (layoutTabl != null)
                {
                    layoutTabl.XTabPages[0].Visible = paramStr.Contains(BdSrvDictCodeConst.SD_ORTMPLTP_RIS);
                    layoutTabl.XTabPages[1].Visible = paramStr.Contains(BdSrvDictCodeConst.SD_ORTMPLTP_LIS);
                    layoutTabl.XTabPages[2].Visible = paramStr.Contains(BdSrvDictCodeConst.SD_ORTMPLTP_TREAT);
                    layoutTabl.XTabPages[3].Visible = paramStr.Contains(BdSrvDictCodeConst.SD_ORTMPLTP_CZXCY);
                    layoutTabl.XTabPages[4].Visible = paramStr.Contains(BdSrvDictCodeConst.SD_ORTMPLTP_FHMBA);
                }
            }
            return(xUserControl);
        }