void helperForm_Load(object sender, EventArgs e)
        {
            // HelperViewModel model = new HelperViewModel(null,null,null);


            XUserControl xUserControl = new XUserControl();

            xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\opordertemplate\\Helper.xml");
            xUserControl.Dock     = DockStyle.None;
            xUserControl.Location = this.Panel.Location;
            xUserControl.Size     = this.Panel.Size;
            this.Panel            = xUserControl;
            xUserControl.LoadData();
            Control content = xUserControl.GetControl();

            foreach (Control obj in content.Controls)
            {
                if (obj is XTabControl)
                {
                    tabControl = obj as XTabControl;
                    if (tabControl.XTabPages.Count > 2)
                    {
                        tabControl.SelectedIndex = SelectedIndex;
                    }
                    //foreach (XTabPage page in tabControl.XTabPages)
                    //{
                    //    if (page.TabIndex == 2)
                    //    {
                    //        page.IsSelected = FBoolean.True;
                    //    }
                    //    // Visible(page, tabControl);
                    //}
                }
            }
        }
Exemple #2
0
        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();
        }
Exemple #3
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();
        }
Exemple #4
0
        void helperForm_Load(object sender, EventArgs e)
        {
            // HelperViewModel model = new HelperViewModel(null,null,null);


            XUserControl xUserControl = new XUserControl();

            xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\opmedicaltechnology\\Helper.xml");
            xUserControl.Dock     = DockStyle.None;
            xUserControl.Location = this.Panel.Location;
            xUserControl.Size     = this.Panel.Size;
            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);
                    }
                }
            }
        }
        private void DiCertificateView_Load(object sender, EventArgs e)
        {
            userControl = new XUserControl();
            userControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\dicertificate\\dicertificate_config.xml");
            userControl.Dock     = DockStyle.Fill;
            userControl.Size     = this.Size;
            userControl.Location = this.Location;
            userControl.LoadData();

            this.Controls.Add(userControl);
        }
        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();
        }
        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();
        }
Exemple #8
0
        public ConsMrCommonDialog(Dictionary <string, object> args)
        {
            InitializeComponent();
            this.Text          = "病历文书记录";
            this.HasbtnBackRec = false;
            this.Formsize      = FormSize.ExtraLarge;
            this.Height        = 600;
            // 发送所要传送的数据包装
            treearg = args;

            XUserControl userControl = new XUserControl();

            userControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\mrcommonoutp\\mrcommonoutp_config.xml");
            userControl.Dock = DockStyle.Fill;
            userControl.LoadData(treearg);

            userControl.Size     = this.Panel.Size;
            userControl.Location = this.Panel.Location;
            this.Panel           = userControl;
        }
Exemple #9
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;
        }
        /// <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;
            }
        }
Exemple #11
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);
                    }
                }
            }
        }
Exemple #12
0
        void OrdTplDialog_Load(object sender, EventArgs e)
        {
            XUserControl xUserControl = new XUserControl();

            xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\OrderHelper\\Helper.xml");
            xUserControl.Dock     = DockStyle.None;
            xUserControl.Location = this.Panel.Location;
            xUserControl.Size     = this.Panel.Size;
            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);
                    }
                }
            }
        }