コード例 #1
0
        private void DiCertificateDialog_Load(object sender, EventArgs e)
        {
            XUserControl userControl = new XUserControl();

            userControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\dicertificate\\dicertificate_config.xml");
            userControl.Dock     = DockStyle.Fill;
            userControl.Size     = this.Panel.Size;
            userControl.Location = this.Panel.Location;
            this.Panel           = userControl;

            //树列表
            DiCertificateTreeView leftView = userControl.GetConfig().GetInstance("leftView") as DiCertificateTreeView;

            if (leftView != null)
            {
                leftView.ent4BannerDTO     = this.ent4BannerDTO;
                leftView.parentBaseControl = this.parentControl;
            }

            //编辑界面
            DiCertificateEditView rightView = userControl.GetConfig().GetInstance("rightView") as DiCertificateEditView;

            if (rightView != null)
            {
                rightView.ent4BannerDTO = this.ent4BannerDTO;
            }

            userControl.LoadData();
        }
コード例 #2
0
        public override void HandleState(object sender, xap.rui.engine.DictionaryEventArgs e)
        {
            string uiEvent  = e.Data[UIConst.UI_EVENT] as string;
            string newState = e.Data[UIConst.NEW_STATE] as string;

            switch (uiEvent)
            {
            case UIEvent.LOAD:
                this.ent4BannerDTO = (this.Context["PatientData"] as BannerData).Ent4BannerDTO;
                //树列表
                DiCertificateTreeView leftView = userControl.GetConfig().GetInstance("leftView") as DiCertificateTreeView;
                if (leftView != null)
                {
                    leftView.ent4BannerDTO     = this.ent4BannerDTO;
                    leftView.parentUserControl = this.Parent.Parent as XUserControl;
                }

                //编辑界面
                DiCertificateEditView rightView = userControl.GetConfig().GetInstance("rightView") as DiCertificateEditView;
                if (rightView != null)
                {
                    rightView.ent4BannerDTO = this.ent4BannerDTO;
                }

                userControl.Enabled = cof.viewEditState8EntSd(ent4BannerDTO.Entpattp);
                break;

            default:
                break;
            }
        }
コード例 #3
0
        private void OrTmplConciseFrame_Load(object sender, System.EventArgs e)
        {
            this.xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\opordertemplate\\Helper_concise.xml");

            this.assiViewFrame = this.Context["assiViewFrame"] as XForm;
            XapBaseControl xapBaseControl = this.Context["sender"] as XapBaseControl;
            CiEnContextDTO ciEnContext    = this.Context["ciEnContext"] as CiEnContextDTO;

            var comTreeView = this.xUserControl.GetConfig().GetInstance("OrTmplTreeViewCom") as OrTmplTreeViewCom;

            if (comTreeView != null)
            {
                comTreeView.xapBaseControl = xapBaseControl;
                comTreeView.ciEnContext    = ciEnContext;
            }

            var lisTreeView = this.xUserControl.GetConfig().GetInstance("OrTmplTreeViewLis") as OrTmplTreeViewLis;

            if (lisTreeView != null)
            {
                lisTreeView.xapBaseControl = xapBaseControl;
                lisTreeView.ciEnContext    = ciEnContext;
            }

            var risTreeView = this.xUserControl.GetConfig().GetInstance("OrTmplTreeViewRis") as OrTmplTreeViewRis;

            if (risTreeView != null)
            {
                risTreeView.xapBaseControl = xapBaseControl;
                risTreeView.ciEnContext    = ciEnContext;
            }

            var treatTreeView = this.xUserControl.GetConfig().GetInstance("OrTmplTreeViewTreat") as OrTmplTreeViewTreat;

            if (treatTreeView != null)
            {
                treatTreeView.xapBaseControl = xapBaseControl;
                treatTreeView.ciEnContext    = ciEnContext;
            }

            var helpButon = xUserControl.GetConfig().GetInstance("OrderHelpButten") as OrderHelpButten;

            if (helpButon != null)
            {
                helpButon.parentFrame = this;
            }

            this.AddRender(this.xUserControl);
        }
コード例 #4
0
ファイル: AssiViewFrame.cs プロジェクト: fhis/order.client
        /// <summary>
        /// 加载助手窗体
        /// </summary>
        /// <param name="parentCtrl"></param>
        /// <param name="classId"></param>
        public void loadFramePithy(XBaseControl parentCtrl, XUserControl xUserControl, AssiBtnDTO btnDTO)
        {
            LayoutPanelManager layoutPanelManager = xUserControl.GetConfig().GetInstance("LayoutPanelManager") as LayoutPanelManager;

            for (int n = 0; n < layoutPanelManager.ManagedPanels.Count; n++)
            {
                LayoutManagedPanel layoutManaged = layoutPanelManager.ManagedPanels[n] as LayoutManagedPanel;
                if (btnDTO.modelType == null || btnDTO.modelType != "complex")
                {
                    if ("OrdertemplatePithy" == layoutManaged.Id)
                    {
                        if (layoutManaged.Controls.Count < 1)
                        {
                            XmlNode node = xUserControl.GetConfig().GetNode("ManagedPanel", layoutManaged.Id);
                            xUserControl.GetConfig().CreateManagedPanelControl(layoutManaged, node);
                        }
                        layoutPanelManager.SelectedIndex = n;
                        break;
                    }
                }
                else
                {
                    if ("OrdertemplateComplex" == layoutManaged.Id)
                    {
                        if (layoutManaged.Controls.Count < 1)
                        {
                            XmlNode node = xUserControl.GetConfig().GetNode("ManagedPanel", layoutManaged.Id);
                            xUserControl.GetConfig().CreateManagedPanelControl(layoutManaged, node);
                        }
                        layoutPanelManager.SelectedIndex = n;
                        break;
                    }
                }
            }
            if (!IsFrameOpened)
            {
                IsFrameOpened = true;

                if (this.FrameOpenModel == AssiFrameOpenModel.SHOW_DIALOG)
                {
                    this.ShowDialog(parentCtrl);
                }
                else
                {
                    this.Show(parentCtrl);
                }
            }
        }
コード例 #5
0
        /// <summary>
        /// 创建诊毕逻辑链,返回链中起始节点
        /// </summary>
        private AbstractActionHandler CreateActionHandlerChain(string xmlCfgPath)
        {
            // 责任链第一个节点
            AbstractActionHandler startHandler      = null;
            AbstractActionHandler preActionHandler  = null;
            AbstractActionHandler nextActionHandler = null;

            XUserControl xUserControl = new XUserControl();

            xUserControl.Init(xmlCfgPath);

            List <XBaseControl> xbaseCtrlList = xUserControl.GetConfig().GetViews();

            if (xbaseCtrlList != null)
            {
                foreach (XBaseControl xBaseCtrl in xbaseCtrlList)
                {
                    nextActionHandler = xBaseCtrl as AbstractActionHandler;
                    preActionHandler  = this.AddNextActionHandler(preActionHandler, nextActionHandler);
                    if (startHandler == null)
                    {
                        startHandler = nextActionHandler;
                    }
                }
            }

            return(startHandler);
        }
コード例 #6
0
        /// <summary>
        /// 对已经实例化的对象设置公共属性
        /// </summary>
        /// <param name="xUserControl"></param>
        private void setCfgInstanceProperty(XUserControl xUserControl)
        {
            ConfigFactory config = xUserControl.GetConfig();
            // 获取配置文件中的view对象
            List <XBaseControl> xBaseCtrls = config.GetViews();

            foreach (XBaseControl ctrl in xBaseCtrls)
            {
                if (ctrl is EntHistoryBase)
                {
                    EntHistoryBase entHistory = (EntHistoryBase)ctrl;
                    entHistory.Ent4BannerDTO       = this.Ent4BannerDTO;
                    entHistory.BaseContext         = this.BaseContext;
                    entHistory.Id_ent              = this.Id_ent;
                    entHistory.Code_entp           = this.Code_entp;
                    entHistory.EntHistoryInitEvent = this.EntHistoryInitEvent;
                }
            }

            if (BdFcDictCodeConst.SD_CODE_ENTP_OP.Equals(this.Code_entp) || BdFcDictCodeConst.SD_CODE_ENTP_ET.Equals(this.Code_entp))
            { // 门诊
            }
            else if (BdFcDictCodeConst.SD_CODE_ENTP_IP.Equals(this.Code_entp))
            {// 住院
             //object ciDiagView = config.GetInstance("EntHistoryIPCiDiagView");
             //BeanPropertyUtil.SetValue(ciDiagView, "Id_ent", this.Id_ent);
            }
        }
コード例 #7
0
ファイル: OrdDiOpenDialog.cs プロジェクト: fhis/order.client
        private void xapFormControl_Load(object sender, EventArgs e)
        {
            xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\opdimodifydialog\\opdimodifydialog_config.xml");

            // 此处不能设置为 Fill 方式,否则 xUserControl 会充满整个窗体,
            // 会将其他通过代码创建的控件全部遮挡
            xUserControl.Dock     = DockStyle.Fill;
            xUserControl.Location = this.Panel.Location;
            xUserControl.Size     = this.Panel.Size;

            DiListView diListView = xUserControl.GetConfig().GetInstance("DiListView") as DiListView;

            if (diListView != null)
            {
                diListView.IsOrdersEmpty = this.isOrdersEmpty;
                diListView.SetOwnerControl(msgOwner as XapBaseControl);
                diListView.SetCallbackAction(this);
                diListView.SetEnt4BannerDTO(this.Ent4BannerDto);
            }

            this.Panel = xUserControl;

            // 触发执行表单中的 onLoadData 和 onFillData 方法
            xUserControl.LoadData();
        }
コード例 #8
0
        private void EntHistoryTabFrame_Load(object sender, EventArgs e)
        {
            xUserControl = new XUserControl();
            xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\opordertemplate\\Helper_complex_control.xml");
            OpOrderTemplateTreeViewComplex templTreeView = xUserControl.GetConfig().GetInstance("complex_OpOrderTemplateTreeView") as OpOrderTemplateTreeViewComplex;
            OpOrderTemplateListViewComplex templListView = xUserControl.GetConfig().GetInstance("complex_OpOrderTemplateListView") as OpOrderTemplateListViewComplex;

            templListView.Ent4BannerDTO = this.BannerDTO;
            templListView.parentControl = this;
            if (!string.IsNullOrWhiteSpace(this.modeltype))
            {
                templTreeView.treeKeyModel = this.model.loadTreeModel(this.modeltype);
            }

            xUserControl.Dock = DockStyle.Fill;
            this.xapFormControl.AddRender(xUserControl);
        }
コード例 #9
0
        private void CiMedReferralDialog_Load(object sender, EventArgs e)
        {
            this.InitBizDialog();

            CiMedReferralController c = xUserControl.GetConfig().GetInstance("CiMedReferralController") as CiMedReferralController;

            c.EventDelegate = mOwnerControl;
            c.ViewModel     = new CiMedReferralViewModel(mOwnerControl.Context, mEnt4BannerDTO);

            CiMedReferralView m = xUserControl.GetConfig().GetInstance("CiMedReferralView") as CiMedReferralView;

            m.SetModel(c.ViewModel);

            c.eventPrint += m.ReloadForm;

            // 触发执行表单中的 onLoadData 和 onFillData 方法
            xUserControl.LoadData();
        }
コード例 #10
0
        private void EntHistoryTabFrame_Load(object sender, EventArgs e)
        {
            // 弹出窗口
            XForm assiViewFrame = this.Context["assiViewFrame"] as XForm;
            // 加载窗口对象,用于对外发送事件
            XapBaseControl xapBaseControl = this.Context["sender"] as XapBaseControl;
            // 点击确定按钮时是否关闭窗口
            bool isConfirmCloseAssiFrame = (bool)this.Context["isConfirmCloseAssiFrame"];
            // 关闭按钮名称
            string closeBtnText = this.Context["closeBtnText"].ToString();

            this.BannerDTO           = this.Context["ent4BannerDTO"] as Ent4BannerDTO;
            this.BaseContext         = this.Context["context"] as BaseContext;
            this.EntHistoryInitEvent = this.Context["entHistoryInitEvent"] as EntHistoryInitEvent;


            XUserControl xUserControl = new XUserControl();

            xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\optrdocstation\\enthistory\\enthistory_config.xml");

            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;
            // 弹出窗口
            entHistoryContent.AssiViewFrame = assiViewFrame;
            // 确定时是否关闭窗口
            entHistoryContent.IsConfirmCloseAssiFrame = isConfirmCloseAssiFrame;

            entHistoryBtn.Ent4BannerDTO = this.BannerDTO;
            entHistoryBtn.CloseBtnText  = closeBtnText;
            // 弹出窗口
            entHistoryBtn.AssiViewFrame = assiViewFrame;

            xUserControl.Dock = DockStyle.Fill;
            this.xapFormControl.AddRender(xUserControl);
        }
コード例 #11
0
        public void saveData()
        {
            OpOrderTemplateListViewComplex templListView = xUserControl.GetConfig().GetInstance("complex_OpOrderTemplateListView") as OpOrderTemplateListViewComplex;
            object obj = templListView.getSaveData();

            if (obj == null)
            {
                return;
            }
            List <OrTplNItmDO> selectList = obj as List <OrTplNItmDO>;

            if (selectList.Count > 0)
            {
                saveToDb(selectList);
            }
            else
            {
                this.ShowInfo("请确认已选择医嘱数据!");
            }
        }
コード例 #12
0
        /// <summary>
        /// 打印管理窗口
        /// </summary>
        /// <param name="selectedIndex"></param>
        /// <param name="lstIdor"></param>
        /// <param name="lstIdpres"></param>
        /// <param name="ordListView"></param>
        /// <param name="id_hp"></param>
        /// <param name="sd_hptp"></param>
        /// <param name="bShowTools"></param>
        public PrintManageDialog(int selectedIndex, List <String> lstIdor, List <String> lstIdpres, XapBaseControl ordListView, String id_hp, String sd_hptp, bool bShowTools)
        {
            InitializeComponent();
            this.Text          = "打印预览";
            this.Formsize      = FormSize.ExtraLarge;
            this.Height        = 600;
            this.HasbtnBackRec = false;
            this.Closing      += new System.ComponentModel.CancelEventHandler(PrintManageDialog_Closing);

            XUserControl userControl = new XUserControl();

            userControl.Init(Application.StartupPath + (bShowTools ? "\\modules\\iihci\\ui\\printmanage\\printmrg_config.xml" : "\\modules\\iihci\\ui\\printmanage\\printmrg_preview_config.xml"));
            userControl.Dock = DockStyle.Fill;
            userControl.LoadData();
            userControl.Size     = this.Panel.Size;
            userControl.Location = this.Panel.Location;
            this.Panel           = userControl;

            if (bShowTools)
            {
                PrintChooseView topView = userControl.GetConfig().GetInstance("topView") as PrintChooseView;
                if (topView != null)
                {
                    topView.OwnerView  = ordListView;
                    topView.IsEditable = selectedIndex < 1;
                }
            }

            this.bottomView = userControl.GetConfig().GetInstance("bottomView") as PrintPreviewView;
            if (this.bottomView != null)
            {
                this.bottomView.OwnerView     = ordListView;
                this.bottomView.SelectedIndex = selectedIndex;
                this.bottomView.LstIdor       = lstIdor;
                this.bottomView.LstIdpres     = lstIdpres;
                this.bottomView.Id_hp         = id_hp;
                this.bottomView.Sd_hptp       = sd_hptp;
                this.bottomView.bShowTools    = bShowTools;
            }
        }
コード例 #13
0
        protected void EntpHistoryFrame_Load(object sender, System.EventArgs e)
        {
            XUserControl xUserControl = new XUserControl();

            xUserControl.Init("modules\\iihci\\ui\\optrdocstation\\enthistory\\enthistory_config.xml");


            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.EntHistoryFrame = this;
            entHistoryBtn.Ent4BannerDTO   = this.BannerDTO;

            xUserControl.Dock = DockStyle.Fill;
            this.xapFormControl.AddRender(xUserControl);
        }
コード例 #14
0
        void AssMedSrvCatgDialog_Load(object sender, EventArgs e)
        {
            if (this.ownerView == null || this.ownerView.Context.Config == null)
            {
                return;
            }
            XapBaseControl emrView = this.ownerView.Context.Config.GetInstance("emrView") as XapBaseControl;

            this.Location = emrView.PointToScreen(emrView.Location);
            this.Size     = emrView.Size;

            this.rootView = new XLayoutPanel();
            rootView.Dock = DockStyle.Fill;
            this.AddRender(rootView);

            XLayoutPanel centerPanel = new XLayoutPanel();

            XUserControl xUserControl = new XUserControl();

            xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\assmedsrvcatg\\assmedsrvcatg_config.xml");

            // 此处不能设置为 Fill 方式,否则 xUserControl 会充满整个窗体,
            // 会将其他通过代码创建的控件全部遮挡
            xUserControl.Dock     = DockStyle.Fill;
            xUserControl.Location = new Point(0, 0);
            xUserControl.Size     = this.Size;
            rootView.AddControl(xUserControl, ControlPosition.Center);
            itemView = xUserControl.GetConfig().GetInstance("AssMedSrvCatgItemView") as AssMedSrvCatgItemView;
            itemView.setOwnerView(this.ownerView);

//             treeView = this.ownerView.Context.Config.GetInstance("AssMedSrvCatgTreeView") as AssMedSrvCatgTreeView;
//             itemView = this.ownerView.Context.Config.GetInstance("AssMedSrvCatgItemView") as AssMedSrvCatgItemView;
//             itemView.setOwnerView(this.ownerView);
//
//             centerPanel.AddControl(treeView, ControlPosition.Left, 220);
//             centerPanel.AddControl(itemView, ControlPosition.Center);
//
//             rootView.AddControl(centerPanel, ControlPosition.Center);

            XLayoutPanel bottomPanel = new XLayoutPanel();

            bottomPanel.BackColor = Color.Gray;
            rootView.AddControl(bottomPanel, ControlPosition.Bottom, 44);

            xUserControl.LoadData();
        }
コード例 #15
0
        private void DiProvePrintDialog_Load(object sender, EventArgs e)
        {
            XUserControl userControl = new XUserControl();

            userControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\entdiprove\\diproveprint_config.xml");
            userControl.Dock     = DockStyle.Fill;
            userControl.Size     = this.Panel.Size;
            userControl.Location = this.Panel.Location;
            userControl.LoadData();
            Dictionary <string, string> dic = new Dictionary <string, string>();

            DiProvePrintPreView bottomView = userControl.GetConfig().GetInstance("bottomView") as DiProvePrintPreView;

            if (bottomView != null)
            {
                bottomView.id_ent = id_ent;
            }

            this.Panel = userControl;
        }
コード例 #16
0
        void helperForm_Load(object sender, EventArgs e)
        {
            HelperViewModel model = new HelperViewModel(null, null, null);

            this.list = model.pageList.ToList();
            XUserControl xUserControl = new XUserControl();

            xUserControl.Init("modules\\iihci\\ui\\OrderHelper\\Helper.xml");
            xUserControl.Dock     = DockStyle.None;
            xUserControl.Location = this.Panel.Location;
            xUserControl.Padding  = new Padding(4);
            xUserControl.Size     = this.Panel.Size;
            List <XBaseControl> xBaseCtrlList = xUserControl.GetConfig().GetViews();

            foreach (XBaseControl xBaseCtrl in xBaseCtrlList)
            {
                BaseHelperView baseHelperView = xBaseCtrl as BaseHelperView;
                if (baseHelperView != null)
                {
                    baseHelperView.Ent4BannerDTO = Ent4BannerDTO;
                }
            }

            this.Panel = xUserControl;
            xUserControl.LoadData();
            Control content = xUserControl.GetControl();

            foreach (Control obj in content.Controls)
            {
                if (obj is XTabControl)
                {
                    tabControl = obj as XTabControl;
                    foreach (XTabPage page in tabControl.XTabPages)
                    {
                        Visible(page, tabControl);
                    }
                }
            }
        }
コード例 #17
0
        private void loadContentUserControl()
        {
            string xmlCfgPath = null;

            if (xUserControl != null)
            {
                this.xapFormControl.RemoveRender(xUserControl);
            }

            xUserControl = new XUserControl();

            xmlCfgPath = this.getXmlCfgPath();
            xUserControl.Init(xmlCfgPath);
            xUserControl.Location = new System.Drawing.Point(0, 0);
            xUserControl.Size     = this.Size;
            xUserControl.Dock     = DockStyle.Fill;

            contentEvent = xUserControl.GetConfig().GetInstance("EntHistoryContentEnvet") as EntHistoryContentEnvet;
            if (contentEvent == null)
            {
                // 日志、提示信息
            }

            contentEvent.Id_ent              = this.Id_ent;
            contentEvent.Code_entp           = this.Code_entp;
            contentEvent.EntHistoryInitEvent = this.EntHistoryInitEvent;

            // 弹出窗口
            contentEvent.AssiViewFrame = this.AssiViewFrame;
            // 确定时是否关闭窗口
            contentEvent.IsConfirmCloseAssiFrame = this.IsConfirmCloseAssiFrame;

            this.setCfgInstanceProperty(xUserControl);

            this.xapFormControl.AddRender(xUserControl);
        }
コード例 #18
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);
        }
コード例 #19
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);
        }
コード例 #20
0
        public void saveData()
        {
            LayoutXTabPanelControl layoutTabl = xUserControl.GetConfig().GetInstance("tablayout1") as LayoutXTabPanelControl;

            (layoutTabl.SelectedPage.PageControl as IViewCommond).saveData();
        }
コード例 #21
0
ファイル: AssiViewFrame.cs プロジェクト: fhis/order.client
        /// <summary>
        /// 加载助手窗体
        /// </summary>
        /// <param name="parentCtrl"></param>
        /// <param name="classId"></param>
        public void loadFrame(XBaseControl parentCtrl, XUserControl xUserControl, AssiBtnDTO btnDTO)
        {
            this.xUserControl = xUserControl;
            this.xapFormControl.AddRender(xUserControl);

            if (btnDTO.ButtonId == "btnOpTemplateFrame")
            {
                this.loadFramePithy(parentCtrl, xUserControl, btnDTO);
                return;
            }

            LayoutPanelManager layoutPanelManager = xUserControl.GetConfig().GetInstance("LayoutPanelManager") as LayoutPanelManager;

            for (int n = 0; n < layoutPanelManager.ManagedPanels.Count; n++)
            {
                LayoutManagedPanel layoutManaged = layoutPanelManager.ManagedPanels[n] as LayoutManagedPanel;
                if (btnDTO.PanelManagerId == layoutManaged.Id)
                {
                    if (layoutManaged.Controls.Count < 1)
                    {
                        XmlNode node = xUserControl.GetConfig().GetNode("ManagedPanel", layoutManaged.Id);
                        xUserControl.GetConfig().CreateManagedPanelControl(layoutManaged, node);
                    }
                    layoutPanelManager.SelectedIndex = n;

                    foreach (Control ctrTemp in layoutManaged.Controls)
                    {
                        if (ctrTemp is XLayoutPanel)
                        {
                            if ((ctrTemp as XLayoutPanel).ControlCenter is XTabControl)
                            {
                                //if (ctrTemp is XTabControl)
                                {
                                    var tabCtr = (ctrTemp as XLayoutPanel).ControlCenter as XTabControl;
                                    for (var j = 0; j < tabCtr.XTabPages.Count; j++)
                                    {
                                        if (btnDTO.XTabPageId.Equals(tabCtr.XTabPages[j].Id))
                                        {
                                            tabCtr.SelectedIndex = j;
                                            break;
                                        }
                                    }
                                }
                            }
                        }
                    }
                    break;
                }
            }

            int     i       = 0;
            Control control = xUserControl.GetControl();

            foreach (Control obj in control.Controls)
            {
                XTabPage xtabPage = obj as XTabPage;
                if (xtabPage != null)
                {
                    i++;
                    if (i == 3)
                    {
                        xtabPage.Select();
                    }
                }
            }

            //layoutPanelManager.SelectedIndex = 1;

            // 如果窗体已经打开,只进行切换tab页签
            if (!IsFrameOpened)
            {
                IsFrameOpened = true;

                if (this.FrameOpenModel == AssiFrameOpenModel.SHOW_DIALOG)
                {
                    this.ShowDialog(parentCtrl);
                }
                else
                {
                    this.Show(parentCtrl);
                }
            }
        }
コード例 #22
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);
        }