コード例 #1
0
ファイル: OpTechnoloyFrame.cs プロジェクト: fhis/order.client
        private void EntHistoryTabFrame_Load(object sender, EventArgs e)
        {
            this.BannerDTO   = this.Context["ent4BannerDTO"] as Ent4BannerDTO;
            this.BaseContext = this.Context["context"] as BaseContext;
            // 助手最外层窗口
            XForm 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 xUserControl = new XUserControl();

            //if (assiBtnDTO == null)
            //{
            //    this.ShowInfo("按钮异常", "提示");
            //}
            //else
            //{
            //    if (assiBtnDTO.ButtonId == "btnOpTemplateFrame")
            //    {
            //        xUserControl.Init("modules\\iihci\\ui\\opordertemplate\\Helper.xml");
            //        OpOrderTemplateListView orderHelpButten = xUserControl.GetConfig().GetInstance("OpOrderTemplateListView") as OpOrderTemplateListView;
            //        orderHelpButten.BannerDTO = this.BannerDTO;
            //        orderHelpButten.AssiViewFrame = assiViewFrame;
            //        orderHelpButten.xapBaseControl = xapBaseControl;
            //    }
            //    else if (assiBtnDTO.ButtonId == "btnOpMedicalTechnology")
            //    {
            //        xUserControl.Init("modules\\iihci\\ui\\opmedicaltechnology\\Helper.xml");
            //        OPMedicalTechnologyListView orderHelpButten = xUserControl.GetConfig().GetInstance("OPMedicalTechnologyListView") as OPMedicalTechnologyListView;
            //        orderHelpButten.BannerDTO = this.BannerDTO;
            //        orderHelpButten.AssiViewFrame = assiViewFrame;
            //        orderHelpButten.xapBaseControl = xapBaseControl;

            //    }
            //    else if (assiBtnDTO.ButtonId == "btnMedSrv")
            //    {
            //        xUserControl.Init("modules\\iihci\\ui\\medsrvclass\\Helper.xml");
            //        OpmedSrvRadioView orderHelpButten = xUserControl.GetConfig().GetInstance("OpmedSrvRadioView") as OpmedSrvRadioView;
            //        orderHelpButten.BannerDTO = this.BannerDTO;
            //        orderHelpButten.AssiViewFrame = assiViewFrame;
            //        orderHelpButten.xapBaseControl = xapBaseControl;
            //    }

            //}

            xUserControl.Init("modules\\iihci\\ui\\opmedicaltechnology\\Helper.xml");
            OPMedicalTechnologyListView orderHelpButten = xUserControl.GetConfig().GetInstance("OPMedicalTechnologyListView") as OPMedicalTechnologyListView;

            orderHelpButten.BannerDTO      = this.BannerDTO;
            orderHelpButten.AssiViewFrame  = assiViewFrame;
            orderHelpButten.ciEnContext    = ciEnContext;
            orderHelpButten.xapBaseControl = xapBaseControl;

            // cancelButton.MouseClick += new MouseEventHandler(cancelButton_MouseClick);

            //EntHistory entHistory = xUserControl.GetConfig().GetInstance("EntHistory") as EntHistory;
            //EntHistoryContent entHistoryContent = xUserControl.GetConfig().GetInstance("EntHistoryContent") as EntHistoryContent;
            //EntHistoryBtn entHistoryBtn = xUserControl.GetConfig().GetInstance("EntHistoryBtn") as EntHistoryBtn;

            //entHistory.Ent4BannerDTO = this.BannerDTO;

            //entHistoryContent.Ent4BannerDTO = this.BannerDTO;
            //entHistoryContent.EntHistoryInitEvent = this.EntHistoryInitEvent;
            //entHistoryContent.BaseContext = this.BaseContext;

            //entHistoryBtn.Ent4BannerDTO = this.BannerDTO;

            xUserControl.Dock = DockStyle.Fill;
            this.xapFormControl.AddRender(xUserControl);
        }
コード例 #2
0
 void OrderHelpButten_Load(object sender, EventArgs e)
 {
     templateListView = this.Context.Config.GetInstance("OPMedicalTechnologyListView") as OPMedicalTechnologyListView;
     this.BannerDTO   = this.Context["ent4BannerDTO"] as Ent4BannerDTO;
 }