示例#1
0
        /// <summary>
        /// 初始化业务视图
        /// </summary>
        protected override void InitializeBizView()
        {
            rootPanel      = new XLayoutPanel();
            rootPanel.Dock = DockStyle.Fill;


            this.tableViewControl      = CreateEmsGridView(this);//
            this.tableViewControl.Dock = DockStyle.None;
            rootPanel.AddControl(this.tableViewControl, ControlPosition.Center);
            //
            this.cardViewControl = CreateEmsCardView(this);

            if (null != this.cardViewControl)
            {
                this.cardViewControl.Dock = DockStyle.None;
                this.srvItemViewType      = cardViewControl.GetEmsViewType();
                this.tableViewControl.SetEmsViewType(this.srvItemViewType);
                this.OrdErrorList = cardViewControl.OrdErrorList;
                this.tableViewControl.OrdErrorList = cardViewControl.OrdErrorList;
                this.tableViewControl.SetEmsValidate(cardViewControl.GetEmsValidate());


                rootPanel.AddControl(this.cardViewControl, ControlPosition.Bottom, (RelativeUIParam.RELATIVERATIO < 1920 ? BaseEmsView.FORM_CARD_HEIGHT : BaseEmsView.FORM_CARD_HEIGHT + 30));
                rootPanel.BottomWidth = (RelativeUIParam.RELATIVERATIO < 1920 ? BaseEmsView.FORM_CARD_HEIGHT: BaseEmsView.FORM_CARD_HEIGHT + 30);
            }

            this.AddRender(rootPanel);
            this.tableViewControl.UnRegFormEvent_AllowEditing();                                     // 取消原始的AllowEditing事件
            this.tableViewControl.GetXapFormControl().AllowEditing += OnXapFormControl_AllowEditing; // 绑定当前的 AllowEditing
        }
        /// <summary>
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            this.xapFormControl1 = new xap.rui.control.forms.view.XapFormControl();
            panel = new XLayoutPanel();
            this.SuspendLayout();
            //
            // xapFormControl1
            //
            this.xapFormControl1.AutoSize = true;

            panel.Dock = DockStyle.Fill;
            ////this.xapFormControl1.AutoValidate = System.Windows.Forms.AutoValidate.EnableAllowFocusChange;
            //this.xapFormControl1.CanShowing = null;
            this.xapFormControl1.Context = null;
            //this.xapFormControl1.Dock = DockStyle.Fill;
            this.xapFormControl1.File     = null;
            this.xapFormControl1.Location = new System.Drawing.Point(0, 0);
            this.xapFormControl1.Name     = "xapFormControl1";
            this.xapFormControl1.Size     = new System.Drawing.Size(592, 365);
            this.xapFormControl1.TabIndex = 0;
            this.xapFormControl1.ViewFile = null;
            //
            // OrderItemView
            //
            ////this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
            ////this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            //this.Dock = DockStyle.Fill;
            //panel.AddControl(new XBaseControl(), ControlPosition.Right, 1);
            panel.AddControl(this.xapFormControl1, ControlPosition.Center);
            this.AddRender(panel);
            this.Name = "OrderItemView";
            this.ResumeLayout(false);
            this.PerformLayout();
        }
示例#3
0
        /// <summary>
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        protected virtual void InitializeComponent()
        {
            components               = new System.ComponentModel.Container();
            this.Dock                = DockStyle.None;
            this.xapFromControl      = new XapFormControl();
            this.xapFromControl.Dock = DockStyle.Fill;
            XapBaseControl titleControl = new XapBaseControl();
            XLabel         title        = new XLabel();

            title.ValueText = this.title;
            title.Height    = 20;
            title.Width     = 100;
            title.Font      = new Font("微软雅黑", 14, GraphicsUnit.Pixel);
            title.ForeColor = Color.FromArgb(0, 153, 229);
            xapLayoutPanel  = new XLayoutPanel();
            //xapLayoutPanel.Size = this.Size;
            xapLayoutPanel.Dock = DockStyle.Fill;
            this.AddRender(xapLayoutPanel);
            XBaseControl titleCtr = new XBaseControl();

            titleCtr.AddRender(title);
            xapLayoutPanel.AddControl(titleCtr, ControlPosition.Top, 30);
            //xapFromControl.Location = new Point(0,title.Location.Y+title.Height + 10);
            xapLayoutPanel.AddControl(xapFromControl, ControlPosition.Center);
        }
示例#4
0
        protected override void InitializeComponent()
        {
            this.Dock                = DockStyle.None;
            components               = new System.ComponentModel.Container();
            this.xapFromControl      = new XapFormControl();
            this.xapFromControl.Dock = DockStyle.None;
            XLabel title = new XLabel();

            title.ValueText          = "医保审核";
            title.Height             = 20;
            title.Width              = 100;
            title.Font               = new Font("微软雅黑", 14, GraphicsUnit.Pixel);
            title.ForeColor          = Color.FromArgb(0, 153, 229);
            xapLayoutPanel           = new XLayoutPanel();
            this.xapLayoutPanel.Dock = DockStyle.Fill;
            //xapLayoutPanel.Size = this.Size;
            this.AddRender(xapLayoutPanel);
            XBaseControl titleCtr = new XBaseControl();

            titleCtr.Dock = DockStyle.None;
            titleCtr.AddRender(title);
            this.radioGroup = new XRadioboxGroup(this.GetRadioList());
            this.radioGroup.IsDefaultSelected = false;
            radioGroup.Location = new Point(0, 30);
            radioGroup.Size     = new Size(300, 25);
            titleCtr.AddRender(radioGroup);
            xapLayoutPanel.AddControl(titleCtr, ControlPosition.Top, 65);
            //xapFromControl.Location = new Point(0,title.Location.Y+title.Height + 10);
            xapLayoutPanel.AddControl(xapFromControl, ControlPosition.Center);
        }
示例#5
0
        /// <summary>
        /// 创建固定数据表格部件
        /// </summary>
        //         private void contructControls()
        //         {
        //
        //             if (!emsViewCache.ContainsKey("EmsDrugsTableViewCard"))
        //             {
        //                 this.tableControl = new EmptyDrugSrvGridView(this);
        //
        //                 emsViewCache.Add("EmptyDrugSrvGridView", this.tableControl);
        //             }
        //             else
        //             {
        //                 this.tableControl = emsViewCache["EmptyDrugSrvGridView"];
        //             }
        //         }
        #endregion

        #region 父类继承区域

        protected override void DisposeManaged()
        {
            if (tableControl != null)
            {
                tableControl.Dispose();
                tableControl = null;
            }

            if (_defaultTableControl != null)
            {
                _defaultTableControl.Dispose();
                _defaultTableControl = null;
            }
            rootView = null;

            // 患者就诊信息(来自于选中就诊患者时候)
            ent4BannerDTO = null;

            tableControl = null;

            orderDo = null;

            isFirstVisit = true;

            nOpOrValidTime = -1;

            isCreateEms = false;
            base.DisposeManaged();
        }
示例#6
0
        public ConsInvitedDeptsDialog(object ds)
        {
            datasource = ds as XapDataList <EmsItemInCons>;
            InitializeComponent();
            rootPanel       = new XLayoutPanel();
            this.Size       = new Size(380, 300);
            this.Name       = "受邀科室选择";
            this.Panel      = rootPanel;
            this.Panel.Size = this.Size;
            xapFormControl  = new XapFormControl();
            this.xapFormControl.AutoSize = true;

            rootPanel.Dock = DockStyle.None;

            this.xapFormControl.Context = null;
            //this.xapFormControl1.Dock = DockStyle.Fill;
            this.xapFormControl.File     = null;
            this.xapFormControl.Location = new System.Drawing.Point(0, 0);
            this.xapFormControl.Name     = "xapFormControl1";
            this.xapFormControl.Size     = new System.Drawing.Size(380, 300);
            this.xapFormControl.TabIndex = 0;
            this.xapFormControl.ViewFile = null;
            rootPanel.AddControl(this.xapFormControl, ControlPosition.Center);

            // 按钮
            this.loadBottomButtons();

            // 初始化事件
            this.xapFormControl.Load        += new EventHandler(ConsInvitedDeptsDialog_Load);
            this.xapFormControl.FormCreated += new EventHandler(xapFormControl_FormCreated);
            this.xapFormControl.ModelFilled += new EventHandler(xapFormControl_ModelFilled);
            this.xapFormControl.RefFilter   += new EventHandler <xap.rui.control.refcontrol.events.RefActivatingEventArgs>(xapFormControl_RefFilter);
        }
示例#7
0
        private void intButten()
        {
            // 确定、打印病历、病历打印预览,取消(关闭)按钮
            this.xBtnOK        = new XButton();
            this.xBtnPrint     = new XButton();
            this.xBtnPrintView = new XButton();
            this.xBtnClose     = new XButton();
            this.xBtnSwitch    = new XButton();

            // 左右布局控件 展现按钮、图例
            this.rightBaseCtrl = new XBaseControl();
            this.xLayoutPanel  = new XLayoutPanel();
            this.SuspendLayout();

            ///
            /// xLayoutPanel
            ///
            this.xLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;

            ///
            /// rightBaseCtrl 按钮区域
            ///
            this.xLayoutPanel.AddControl(this.rightBaseCtrl, ControlPosition.Right, 474);

            Size btnSize = new Size(86, 30);

            this.xBtnSwitch.Text        = "切换";
            this.xBtnSwitch.Size        = new Size(86, 30);
            this.xBtnSwitch.Location    = new Point(190, 8);
            this.xBtnSwitch.MouseClick += new MouseEventHandler(xBtnSwitch_MouseClick);
            this.rightBaseCtrl.AddRender(this.xBtnSwitch);
            ///
            /// xBtnInovke
            ///
            this.xBtnOK.Text        = "确定";
            this.xBtnOK.Size        = new Size(86, 30);
            this.xBtnOK.Location    = new Point(284, 8);
            this.xBtnOK.MouseClick += new MouseEventHandler(xBtnOK_MouseClick);
            this.rightBaseCtrl.AddRender(this.xBtnOK);

            ///
            /// xBtnClose
            ///
            this.xBtnClose.Text        = "取消";
            this.xBtnClose.Size        = new Size(86, 30);
            this.xBtnClose.Location    = new Point(378, 8);
            this.xBtnClose.MouseClick += new MouseEventHandler(xBtnClose_MouseClick);
            this.rightBaseCtrl.AddRender(this.xBtnClose);

            ///
            /// this
            ///
            this.BackColor = Color.FromArgb(245, 245, 245);
            this.Controls.Add(this.xLayoutPanel);

            this.ResumeLayout(false);
        }
示例#8
0
        private void DiAssListView_Load(object sender, EventArgs e)
        {
            EntDiAssiContainer diAssiForm = new EntDiAssiContainer(this.Context);

            diAssiForm.delegateHelper += getDOsFromHelp;

            panel      = new XLayoutPanel();
            panel.Dock = DockStyle.Fill;
            panel.AddControl(diAssiForm, ControlPosition.Center);
            this.AddRender(panel);
        }
示例#9
0
        protected override void InitializeBizView()
        {
            rootView = new XLayoutPanel {
                Dock = DockStyle.Fill
            };
            this.AddRender(rootView);
            //base.InitializeBizView();
            // 创建原始表格 - 药品

            this.tableControl = DefaultTableControl;
        }
示例#10
0
        private void SpltPrescriptionView_Load(object sender, EventArgs e)
        {
            rootPanel      = new XLayoutPanel();
            rootPanel.Dock = DockStyle.Fill;
            this.AddRender(rootPanel);


            spreadView = new XSpreadView();
            spreadView.CancelItemSelected += SpreadView_CancelItemSelected;
            rptViewer       = new ReportViewer(true);
            spreadView.Dock = DockStyle.None;
            this.getRootPanel().AddControl(spreadView, ControlPosition.Center);
        }
示例#11
0
        public EmsPathgyViewCard(IEventDelegate owner = null)
            : base(owner)
        {
            this.srvItemViewType = EmsViewType.EmsPathgyViewType;
            this.iValidate       = new EmsPathgyValidate();

            tabPropertyTable = new XLayoutPanel()
            {
                Dock = DockStyle.Bottom
            };
            tabPropertyTable.Height = this.Height;
            this.Controls.Add(tabPropertyTable);
        }
示例#12
0
        /// <summary>
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OrderCardView));
            this.emsIndexAndButtonArea = new EmsIndexAndButtonArea();
            this.splitContainer1       = new XLayoutPanel();
            //((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
            //this.splitContainer1.SuspendLayout();
            this.SuspendLayout();
            //
            // orCom
            //
            //this.orCom.AutoValidate = System.Windows.Forms.AutoValidate.EnableAllowFocusChange;
            //this.orCom.Bottmflag = false;
            this.emsIndexAndButtonArea.Context = null;
            //this.orCom.Dock = System.Windows.Forms.DockStyle.Fill;
            this.emsIndexAndButtonArea.File          = null;
            this.emsIndexAndButtonArea.Location      = new System.Drawing.Point(0, 0);
            this.emsIndexAndButtonArea.Name          = "emsIndexAndButtonArea";
            this.emsIndexAndButtonArea.RenderVisable = false;
            this.emsIndexAndButtonArea.Size          = new System.Drawing.Size(628, 56);
            this.emsIndexAndButtonArea.TabIndex      = 0;
            //this.emsIndexAndButtonArea.SaveClickEvent += new System.EventHandler(this.orCom_SaveClickEvent);
            this.emsIndexAndButtonArea.CancelClickEvent += new System.EventHandler(this.orCom_CancelClickEvent);
            this.emsIndexAndButtonArea.RounderClick     += new MouseEventHandler(this.orCom_MouseClick);
            this.emsIndexAndButtonArea.DeleteEvent      += new EventHandler(this.orCom_deleteevent);
            //
            // splitContainer1
            //
            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            //this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
            //this.splitContainer1.Location = new System.Drawing.Point(0, 0);
            //this.splitContainer1.Name = "splitContainer1";
            //this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
            //this.splitContainer1.Size = new System.Drawing.Size(507, 313);
            //this.splitContainer1.SplitterDistance = 223;
            //this.splitContainer1.SplitterWidth = 1;
            //this.splitContainer1.TabIndex = 3;
            //
            // OrderCardView
            //
            ////this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            ////this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.splitContainer1);

            this.Name = "OrderCardView";
            //((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
            //this.splitContainer1.ResumeLayout(false);
            this.ResumeLayout(false);
        }
示例#13
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();
        }
示例#14
0
 private void InitializeComponent()
 {
     this.orCom          = new XBaseControl();
     orCom.Size          = new System.Drawing.Size(450, 75);
     saveButton          = new XButton();
     saveButton.Size     = new System.Drawing.Size(75, 25);
     saveButton.Location = new Point(150, 0);
     saveButton.Text     = "确认";
     this.orCom.AddRender(saveButton);
     cancelButton          = new XButton();
     cancelButton.Size     = new System.Drawing.Size(75, 25);
     cancelButton.Location = new Point(245, 0);
     cancelButton.Text     = "取消";
     this.orCom.AddRender(cancelButton);
     splitContainer1           = new XLayoutPanel();
     this.splitContainer1.Size = new System.Drawing.Size(475, 190);
     this.Text = "MmForm";
 }
示例#15
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.Text       = "HpIndicDocJudgeForm";
            this.components = new System.ComponentModel.Container();
            //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            xLayoutPanel                    = new XLayoutPanel();
            this.xLayoutPanel.Dock          = System.Windows.Forms.DockStyle.Fill;
            this.xLayoutPanel.Location      = new System.Drawing.Point(5, 37);
            this.xLayoutPanel.CenterPadding = "10,0,0,0";
            buttonControl                   = new XapBaseControl();
            saveButton = new XButton {
                Size = new Size(90, 25), Text = "确认"
            };
            saveButton.Location = new Point(this.Bounds.Width - 120, 0);
            buttonControl.AddRender(saveButton);

            xLayoutPanel.AddControl(buttonControl, ControlPosition.Bottom, 35);
            this.AddRender(xLayoutPanel);
            //lblDes.Size = lblDes.GetPreferredSize(new Size(this.Width - 30, 60));
            this.StartPosition = FormStartPosition.CenterScreen;
        }
示例#16
0
        private void intButten()
        {
            // 确定、打印病历、病历打印预览,取消(关闭)按钮
            this.xBtnOK        = new XButton();
            this.xBtnPrint     = new XButton();
            this.xBtnPrintView = new XButton();
            this.xBtnClose     = new XButton();

            // 住院、门诊图例
            // this.stateRenderIP = new StateRender { ForeColor = Color.FromArgb(0, 153, 229), ExplainName = "门诊" };
            // this.stateRenderOP = new StateRender { ForeColor = Color.FromArgb(36, 159, 131), ExplainName = "住院" };

            // 左右布局控件 展现按钮、图例
            this.leftBaseCtrl  = new XBaseControl();
            this.rightBaseCtrl = new XBaseControl();
            this.xLayoutPanel  = new XLayoutPanel();
            this.SuspendLayout();

            ///
            /// xLayoutPanel
            ///
            this.xLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;

            ///
            /// leftBaseCtrl 图例区域
            ///
            //this.xLayoutPanel.AddControl(this.leftBaseCtrl, ControlPosition.Left, 300);

            ///
            /// rightBaseCtrl 按钮区域
            ///
            //this.xLayoutPanel.AddControl(this.rightBaseCtrl, ControlPosition.Right, 308);
            this.xLayoutPanel.AddControl(this.rightBaseCtrl, ControlPosition.Right, 474);

            ///
            /// stateRenderOP
            ///
            // this.stateRenderOP.Location = new Point(73, 15);
            //this.leftBaseCtrl.AddRender(this.stateRenderOP);

            ///
            /// stateRenderIP
            ///
            //this.stateRenderIP.Location = new Point(160, 15);
            // this.leftBaseCtrl.AddRender(this.stateRenderIP);

            Size btnSize = new Size(86, 30);

            ///
            /// xBtnInovke
            ///
            this.xBtnOK.Text        = "确定";
            this.xBtnOK.Size        = new Size(86, 30);
            this.xBtnOK.Location    = new Point(270, 8);
            this.xBtnOK.MouseClick += new MouseEventHandler(xBtnOK_MouseClick);
            this.rightBaseCtrl.AddRender(this.xBtnOK);

            ///
            /// xBtnPrint
            ///
            this.xBtnPrint.Text     = "打印病历";
            this.xBtnPrint.Size     = new Size(126, 30);
            this.xBtnPrint.Location = new Point(106, 8);
            // this.xBtnPrint.MouseClick += new System.Windows.Forms.MouseEventHandler(XBtnPrint_MouseClick);
            //  this.rightBaseCtrl.AddRender(this.xBtnPrint);

            ///
            /// xBtnPrint
            ///
            this.xBtnPrintView.Text     = "病历预览打印";
            this.xBtnPrintView.Size     = new Size(126, 30);
            this.xBtnPrintView.Location = new Point(242, 8);
            // this.xBtnPrintView.MouseClick += new System.Windows.Forms.MouseEventHandler(XBtnPrintView_MouseClick);
            //this.rightBaseCtrl.AddRender(this.xBtnPrintView);

            ///
            /// xBtnClose
            ///
            this.xBtnClose.Text        = "取消";
            this.xBtnClose.Size        = new Size(86, 30);
            this.xBtnClose.Location    = new Point(373, 8);
            this.xBtnClose.MouseClick += new MouseEventHandler(xBtnClose_MouseClick);
            this.rightBaseCtrl.AddRender(this.xBtnClose);

            ///
            /// this
            ///
            this.BackColor = Color.FromArgb(245, 245, 245);
            this.Controls.Add(this.xLayoutPanel);


            this.ResumeLayout(false);
        }