示例#1
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);
        }
示例#2
0
        /// <summary>
        /// 添加注释
        /// </summary>
        private void AddNote(XBaseControl Control, int type)
        {
            int startX = 20;
            int startY = 310;

            foreach (XLabel item in this.noteList)
            {
                Control.RemoveRender(item);
                if (type <= 3)
                {
                    if (item.Tag != null && item.Tag.Equals(type))
                    {
                        item.Location = new Point(startX, startY);
                        startY       += item.Size.Height;
                        Control.AddRender(item);
                    }
                    else if (item.Tag == null)
                    {
                        item.Location = new Point(startX, startY);
                        startY       += item.Size.Height;
                        Control.AddRender(item);
                    }
                    else if (item.Tag != null && Convert.ToInt32(item.Tag) >= type && item.Equals(this.connectLabel))
                    {
                        item.Location = new Point(startX, startY);
                        startY       += item.Size.Height;
                        Control.AddRender(item);
                    }
                }
            }
            Control.Invalidate();
        }
示例#3
0
        /// <summary>
        ///     CreateView执行完毕后,用LoadData的数据填充界面
        /// </summary>
        protected override void OnFillData()
        {
            var explorerBar  = new ExplorerBar();
            var dataBar      = new ExplorerBar();
            var contentPanel = new XBaseControl();
            int loaction     = 20;

            OrObsAandLabDTO[] labs = model.getOrObsAandLabDTO(ent4BannerDto.Id_ent, "lab");
            if (labs != null && labs.Length > 0)
            {
                for (int i = 0; i < labs.Length; i++)
                {
                    var lab = new LabelRender();
                    lab.Text     = labs[i].Name;
                    lab.ID       = labs[i].Id;
                    lab.Location = new Point(0, loaction);
                    loaction     = loaction + lab.Size.Height + 30;
                    lab.Size     = new Size(100, 24);
                    contentPanel.AddRender(lab);
                    lab.MouseClick += lab_MouseDoubleClick;
                }
            }
            var layout = new LinearLayout(contentPanel);

            layout.Orientation = Orientation.Horizontal;
            layout.ApplyLayout();

            explorerBar.AddMenuItem(new MenuItemInfo("常规检验", contentPanel));

            dataBar.AddMenuItem(new MenuItemInfo("日期", contentPanel));

            menu.AddMenuItem(new MenuItemInfo("分类模式", explorerBar));
            menu.AddMenuItem(new MenuItemInfo("日期模式", dataBar));
        }
示例#4
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);
        }
示例#5
0
        /// <summary>
        /// 初始化多医疗单容器以及顶部按钮区域
        /// </summary>
        /// <returns></returns>
        public OrdEditorView InitMultiEmsControl()
        {
            if (isInited)
            {
                return(this);
            }

            // 添加医疗单布局容器
            this.rootView.AddControl(emsLayout, ControlPosition.Center);
            this.rootView.AddControl(new XLayoutPanel {
                Dock = DockStyle.None
            }, ControlPosition.Bottom, 36);

            // 利用XBaseControl包装多医疗单Render
            var leftControl = new XBaseControl();

            (rootView.ControlBottom as XLayoutPanel).AddControl(leftControl, ControlPosition.Center);
            // 实例化多医疗单Render
            multiEmsGroup = new XOrderButtonGroup {
                Location = new Point(0, 0), Size = leftControl.Size, RoundSize = leftControl.Size.Height / 2
            };
            multiEmsGroup.SelectChanged += OnMultiEmsPageSelectChanged;
            leftControl.AddRender(multiEmsGroup);

            // 实例化顶部共同按钮区域
            (rootView.ControlBottom as XLayoutPanel).AddControl(this.buttonGroupView, ControlPosition.Right, 360);

            return(this);
        }
示例#6
0
 protected void AddInput(XBaseControl Control, int type)
 {
     Control.RemoveRenderAll();
     if (type <= 3)
     {
         quadrantEditor           = new QuadrantEditorRender();
         quadrantEditor.Location  = new Point(11, 10);
         quadrantEditor.TeethType = type;
         quadrantEditor.Text      = this.SelectRender.Text;
         tempRender = quadrantEditor;
         Control.AddRender(quadrantEditor);
     }
     else if (type == 4)
     {
         pdRender           = new PdEditorRender();
         pdRender.Location  = new Point(10, 10);
         pdRender.TeethType = type;
         pdRender.Text      = this.SelectRender.Text;
         tempRender         = pdRender;
         Control.AddRender(pdRender);
     }
     else if (type == 5)
     {
         sicknessRender           = new SicknessTeethRender();
         sicknessRender.Location  = new Point(10, 10);
         sicknessRender.TeethType = type;
         sicknessRender.Text      = this.SelectRender.Text;
         tempRender = sicknessRender;
         Control.AddRender(sicknessRender);
     }
     else
     {
         grEditorRender           = new GrEditorRender();
         grEditorRender.Location  = new Point(10, 10);
         grEditorRender.TeethType = type;
         grEditorRender.Text      = this.SelectRender.Text;
         tempRender = grEditorRender;
         Control.AddRender(grEditorRender);
     }
     tempRender.ValueTextChanged += new EventHandler(tempRender_ValueTextChanged);
     this.btSave.Enabled          = false;
     // 添加注释说明
     this.AddNote(Control, type);
 }
示例#7
0
        void MedicalSharingInfoForm_Load(object sender, EventArgs e)
        {
            Dictionary <string, object> param = new Dictionary <string, object>();

            param.Add("showinfo", this.medicalSharingDTOList);

            var          x    = FuncletCreater.GetLocalFunclet(string.Format("modules/iihci/ui/judgedidelete/{0}", "judgedidelete_config.xml"), param);
            XBaseControl xcon = new XBaseControl();

            xcon.AddRender(x);
            this.Panel = xcon;
        }
示例#8
0
        /// <summary>
        /// 弹出物品选择器
        /// </summary>
        /// <param name="ds"></param>
        /// <param name="def"></param>
        /// <param name="atPoint"></param>
        private void ShowMmSelector(XDataRow row, List <EmsOrDrug> ds, EmsOrDrug def, Point atPoint, bool canEdit = true)
        {
            var mmContainer = new XBaseControl();

            mmContainer.Size = new Size(473, 160);

            var query = from items in ds orderby items.Fact_count descending select items;

            var mm = new ExtMmRefView(LogicEx.GetInstance().ConvertDataSouse <EmsOrDrug>(query.ToList()), def, false);

            mm.Dock = DockStyle.Fill;
            mmContainer.AddRender(mm);
            var popWindow = new XContextForm(mmContainer);

            mm.Event_SelectChanged += (sender, e) =>
            {
                EmsOrDrug orDrug = EmsHeadDO.Emsdrugs.EmsOrDrugList[gv.FocusedRowHandle];
                var       mmDrug = e.Data as EmsOrDrug;

                if (mmDrug == null)
                {
                    if (orDrug.Fg_self == true)
                    {
                        orDrug.Name_mm = orDrug.Name_srv;
                        orDrug.Id_mm   = null;
                    }
                    popWindow.Close();
                    return;
                }

                #region 皮试逻辑的判断
                if (mmDrug.Fg_skintest != null && mmDrug.Fg_skintest == true)
                {
                    SkinTestLogic logic = new SkinTestLogic(EmsHeadDO.PatInfo);
                    orDrug.Name_mm    = mmDrug.Name_mm;
                    orDrug.Id_mm      = mmDrug.Id_mm;
                    orDrug.Id_srvskin = mmDrug.Id_srvskin;
                    if (logic.skinTestLogic(orDrug).Equals("0"))
                    {
                        popWindow.Close();
                        return;
                    }
                }
                #endregion
                cof.CopyTo(mmDrug, orDrug, "Id_srv", "Name_srv");
                cof.concateMMSpecAndName(orDrug);
                orDrug.Fg_mm = true;
                updateTableCustomerComtrol();
                popWindow.Close();
            };
            popWindow.Show(atPoint);
            mm.Enabled = canEdit;
        }
示例#9
0
        public Ent4BannerDTO ent4BannerDto;//患者信息DTO
        #endregion

        #region 构造函数区域
        public OrderSrvListView()
        {
            InitializeComponent();
            xapFormControl1.FormCreated += new EventHandler(xapFormControl1_FormCreated);
            //搜索框
            srvSearch              = new XSearch(ctr);
            srvSearch.Size         = new Size(350, 24);
            srvSearch.Location     = new Point(0, 0);
            srvSearch.dipItemsCout = 10;
            ctr.Size = srvSearch.Size;
            ctr.AddRender(srvSearch);
            Dictionary <string, Control> controls = new Dictionary <string, Control>();

            controls.Add("search", ctr);
            this.xapFormControl1.RegisterControl(controls);
        }
示例#10
0
        protected void Additem(XBaseControl Control)
        {
            QuadrantRender render1 = new QuadrantRender();

            render1.Location  = new Point(3, 4);
            render1.TeethType = 1;
            Control.AddRender(render1);
            render1.Select    = true;
            this.SelectRender = render1;
            this.quadrantDic.Add(render1.TeethType, render1);

            QuadrantRender render2 = new QuadrantRender();

            render2.Location  = new Point(3, render1.Bound.Bottom + 3);
            render2.TeethType = 2;
            Control.AddRender(render2);
            this.quadrantDic.Add(render2.TeethType, render2);

            QuadrantRender render3 = new QuadrantRender();

            render3.Location  = new Point(3, render2.Bound.Bottom + 3);
            render3.Size      = new System.Drawing.Size(215, 90);
            render3.TeethType = 3;
            Control.AddRender(render3);
            this.quadrantDic.Add(render3.TeethType, render3);

            QuadrantRender render4 = new QuadrantRender();

            render4.Location  = new Point(3, render3.Bound.Bottom + 3);
            render4.TeethType = 4;
            Control.AddRender(render4);
            this.quadrantDic.Add(render4.TeethType, render4);

            QuadrantRender render5 = new QuadrantRender();

            render5.Location  = new Point(3, render4.Bound.Bottom + 3);
            render5.TeethType = 5;
            Control.AddRender(render5);
            this.quadrantDic.Add(render5.TeethType, render5);

            //QuadrantRender render6 = new QuadrantRender();
            //render6.Location = new Point(3, render5.Bound.Bottom + 3);
            //render6.TeethType = 6;
            //Control.AddRender(render6);
            this.quadrantDic.Add(render5.TeethType + 1, render5);

            QuadrantRender render7 = new QuadrantRender();

            render7.Location  = new Point(3, render5.Bound.Bottom + 3);
            render7.TeethType = 7;
            Control.AddRender(render7);
            this.quadrantDic.Add(render7.TeethType, render7);
        }
示例#11
0
        private void InfoButton_MouseClick(object sender, MouseEventArgs e)
        {
            var mmContainer = new XBaseControl()
            {
                Size = new Size(473, 200)
            };

            var ordFeeCollectInfoView = new OrdFeeCollectInfoView(mmContainer, _dataSource["group"] as FArrayList);

            ordFeeCollectInfoView.Dock = DockStyle.Fill;
            ordFeeCollectInfoView.SingleBorderStyle = true;
            mmContainer.AddRender(ordFeeCollectInfoView);
            var popWindow = new XContextForm(mmContainer);
            var pt        = this.ownerView.Location;

            pt.Offset((ownerView.Size.Width - mmContainer.Size.Width) / 2, (RelativeUIParam.ScreenSize != ScreenSize.Large)? -7:22);
            popWindow.Show(ownerView.PointToScreen(pt));
        }
示例#12
0
        /// <summary>
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            components                           = new System.ComponentModel.Container();
            this.leftXLayoutPanel                = new XLayoutPanel();
            this.centerXLayoutPanel              = new XLayoutPanel();
            this.centerXLayoutPanel.Padding      = new Padding(15, 0, 0, 0);
            this.xLayoutPanel1                   = new XLayoutPanel();
            this.xLayoutPanel1.BottomBorder      = 0;
            this.xLayoutPanel1.BottomCtrPriority = xap.cli.sdk.controls.ControlPriority.Lower;
            this.xLayoutPanel1.BottomGap         = 0;
            this.xLayoutPanel1.BottomMaxWidth    = 300;
            this.xLayoutPanel1.BottomMinWidth    = 50;
            this.xLayoutPanel1.BottomPadding     = null;
            this.xLayoutPanel1.BottomPercent     = 0;
            this.xLayoutPanel1.BottomWidth       = 50;

            this.xLayoutPanel1.CenterCtrPriority = xap.cli.sdk.controls.ControlPriority.Lower;
            this.xLayoutPanel1.CenterPadding     = null;
            this.xLayoutPanel1.CenterPercent     = 0;
            this.xLayoutPanel1.ControlBottom     = null;
            this.xLayoutPanel1.ControlCenter     = null;
            this.xLayoutPanel1.ControlLeft       = null;
            this.xLayoutPanel1.ControlRight      = null;
            this.xLayoutPanel1.ControlTop        = null;
            this.xLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.xLayoutPanel1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
            this.xLayoutPanel1.Gap  = 1;
            this.xLayoutPanel1.IsContainerRender = true;
            this.xLayoutPanel1.LeftBorder        = 0;
            this.xLayoutPanel1.LeftCtrPriority   = xap.cli.sdk.controls.ControlPriority.Lower;
            this.xLayoutPanel1.LeftGap           = 0;
            this.xLayoutPanel1.LeftMaxWidth      = 300;
            this.xLayoutPanel1.LeftMinWidth      = 50;
            this.xLayoutPanel1.LeftPadding       = null;
            this.xLayoutPanel1.LeftPercent       = 0;
            this.xLayoutPanel1.LeftWidth         = 50;
            this.xLayoutPanel1.Location          = new System.Drawing.Point(5, 37);
            this.xLayoutPanel1.Name              = "xLayoutPanel1";
            this.xLayoutPanel1.RightBorder       = 0;
            this.xLayoutPanel1.RightCtrPriority  = xap.cli.sdk.controls.ControlPriority.Lower;
            this.xLayoutPanel1.RightGap          = 0;
            this.xLayoutPanel1.RightPadding      = null;
            this.xLayoutPanel1.RightPercent      = 0;
            this.xLayoutPanel1.SingleBorderStyle = false;
            this.xLayoutPanel1.Size              = new System.Drawing.Size(840, 383);
            this.xLayoutPanel1.TabIndex          = 0;
            this.xLayoutPanel1.Text              = "xLayoutPanel1";
            this.xLayoutPanel1.TopBorder         = 0;
            this.xLayoutPanel1.TopCtrPriority    = xap.cli.sdk.controls.ControlPriority.Lower;
            this.xLayoutPanel1.TopGap            = 0;
            this.xLayoutPanel1.TopMaxWidth       = 300;
            this.xLayoutPanel1.TopMinWidth       = 50;
            this.xLayoutPanel1.TopPadding        = null;
            this.xLayoutPanel1.TopPercent        = 0;
            this.xLayoutPanel1.TopWidth          = 50;
            this.Controls.Add(this.xLayoutPanel1);
            //this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
            //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Size = new System.Drawing.Size(830, 520);
            this.Controls.Add(this.xLayoutPanel1);
            this.Font        = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Margin      = new System.Windows.Forms.Padding(2, 4, 2, 4);
            this.Name        = "or_report";
            this.Text        = "医嘱报告";
            this.MinimizeBox = false;
            this.MaximizeBox = false;
            //this.DoReSize = false;
            this.ResumeLayout(false);
            xLayoutPanel1.CenterPadding = "10,0,0,0";
            this.xLayoutPanel1.AddControl(this.leftXLayoutPanel, ControlPosition.Left, 185);
            this.xLayoutPanel1.AddControl(this.centerXLayoutPanel, ControlPosition.Center);
            //this.leftXLayoutPanel.Width = 185;
            this.leftXLayoutPanel.RightBorder = 2;
            buttonControl        = new XBaseControl();
            buttonControl.Height = 40;
            saveButton           = new XButton {
                Size = new Size(75, 25), Text = "保存"
            };
            cancelButton = new XButton {
                Size = new Size(75, 25), Text = "取消"
            };
            saveButton.Location   = new Point(275, 0);
            cancelButton.Location = new Point(360, 0);
            buttonControl.AddRender(saveButton);
            buttonControl.AddRender(cancelButton);
            this.centerXLayoutPanel.AddControl(buttonControl, ControlPosition.Bottom);
            this.StartPosition = FormStartPosition.CenterScreen;
        }
        private void ResetControl(bool isHerb, NewOrderTemplateDTO tnmpDto)
        {
            if (isHerb)
            {
                if (topControl != null && this.RenderControls.Contains(topControl))
                {
                    return;
                }

                topControl          = new XBaseControl();
                topControl.Size     = new Size(this.Size.Width, 36);
                topControl.Location = new Point(1, 0);
                this.AddRender(topControl);

                usageRender                   = XLabelControlFactory.GetLabelComboBox(topControl, tnmpDto.getrouteList());
                usageRender.ValueText         = tnmpDto.Name_route;
                usageRender.Size              = new System.Drawing.Size(236, 24);
                usageRender.TitleText         = "用法:";
                usageRender.Location          = new Point(0, 6);
                usageRender.ValueTextChanged += new EventHandler(usageRender_ValueTextChanged);
                topControl.AddRender(usageRender);

                frequencyRender                   = XLabelControlFactory.GetLabelComboBox(topControl, tnmpDto.getFreqdefdo());
                frequencyRender.TitleText         = "频次:";
                frequencyRender.ValueText         = tnmpDto.Name_freq;
                frequencyRender.Size              = new System.Drawing.Size(236, 24);
                frequencyRender.Location          = new Point(usageRender.Bound.Right, 6);
                frequencyRender.ValueTextChanged += new EventHandler(frequencyRender_ValueTextChanged);
                topControl.AddRender(frequencyRender);

                decoctionRender                   = XLabelControlFactory.GetLabelComboBox(topControl, tnmpDto.getBoilList());
                decoctionRender.TitleText         = "煎法:";
                decoctionRender.ValueText         = tnmpDto.Name_boil;
                decoctionRender.Size              = new System.Drawing.Size(236, 24);
                decoctionRender.Location          = new Point(frequencyRender.Bound.Right, 6);
                decoctionRender.ValueTextChanged += new EventHandler(decoctionRender_ValueTextChanged);
                topControl.AddRender(decoctionRender);

                checkAllRender                   = new XCheckBox();
                checkAllRender.Text              = "全选";
                checkAllRender.Location          = new Point(decoctionRender.Bound.Right + 20, (36 - checkAllRender.Bound.Height) / 2);
                checkAllRender.ValueTextChanged += new EventHandler(checkAllRender_ValueTextChanged);
                topControl.AddRender(checkAllRender);

                this.ContainerControl.Size     = new Size(this.Size.Width, this.Size.Height - 37);
                this.ContainerControl.Location = new Point(1, 37);
                this.Container.Size            = new Size(this.Container.Width, this.ContainerControl.Height);
                if (this.Container.Width <= this.ContainerControl.Width)
                {
                    this.Container.Size = new Size(this.ContainerControl.Width, this.ContainerControl.Height);
                }
                else
                {
                    this.Container.Size = new Size(this.Container.Width, this.ContainerControl.Height);
                }
            }
            else
            {
                if (topControl != null && this.RenderControls.Contains(topControl))
                {
                    this.RemoveRender(topControl);
                    this.ContainerControl.Size     = new Size(this.Size.Width, this.Size.Height);
                    this.ContainerControl.Location = new Point(1, 0);
                    this.Container.Size            = new Size(this.Container.Width, this.ContainerControl.Height);
                    if (this.Container.Width <= this.ContainerControl.Width)
                    {
                        this.Container.Size = new Size(this.ContainerControl.Width, this.ContainerControl.Height);
                    }
                    else
                    {
                        this.Container.Size = new Size(this.Container.Width, this.ContainerControl.Height);
                    }
                }
            }
        }
示例#14
0
        public BdHpIndicationDTOForm(string limit, string name_srv, bool?isDefault)
        {
            this.IsShowButton  = false;
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Formsize      = FormSize.Medium;
            this.Text          = "是否为医保适应症";
            this.Height        = 200;

            panel          = new XAPScrollBarPanel();
            panel.Size     = this.Panel.Size;
            panel.Location = this.Panel.Location;
            this.Panel     = panel;

            centerControl = new XBaseControl();

            lblDes = new XLabel();
            if (!string.IsNullOrEmpty(limit))
            {
                lblDes.ValueText = limit;
            }
            else
            {
                lblDes.ValueText = "没有医保适应症限制条件";
            }

            //string  strParam = SysParamUtils.getSysParam().SYS_PARAM_HPInfoMode.OrgParam;
            //if (strParam != null && strParam =="2")
            // {
            //     lblDes.ValueText = " 医保限制条件 :"+lblDes.ValueText + "\n  院内限制条件:" + hislimit;
            // }
            //else if (strParam != null && strParam == "1")
            // {
            //     lblDes.ValueText = " 院内限制条件:" + hislimit;
            // }



            lblDes.Font     = new System.Drawing.Font("微软雅黑", 10.75F);
            lblDes.Size     = lblDes.GetPreferredSize(new Size(this.Size.Width - 20, 0));
            lblDes.Location = new Point(10, 0);

            centerControl.Size     = new Size(this.Size.Width - this.Padding.Horizontal, lblDes.Size.Height + 10);
            centerControl.Location = new Point(0, 0);
            centerControl.AddRender(lblDes);
            panel.AddRender(centerControl);
            panel.getScrollBarRect();

            saveButton = new XButton {
                Size = new Size(90, 25), Text = "符合-医保"
            };
            saveButton1 = new XButton {
                Size = new Size(90, 25), Text = "符合-医保1"
            };
            saveButton2 = new XButton {
                Size = new Size(90, 25), Text = "符合-医保2"
            };
            cancelButton = new XButton {
                Size = new Size(90, 25), Text = "不符合-自费"
            };

            saveButton.MouseClick   += new MouseEventHandler(saveButton_MouseClick);
            saveButton1.MouseClick  += new MouseEventHandler(saveButton_MouseClick1);
            saveButton2.MouseClick  += new MouseEventHandler(saveButton_MouseClick2);
            cancelButton.MouseClick += new MouseEventHandler(cancelButton_MouseClick);

            this.AddRender_Btn(saveButton1, saveButton2, saveButton, cancelButton);
            // this.AddRender_Btn( saveButton1, saveButton2, cancelButton);
            if (isDefault != null && (bool)isDefault)
            {
                this.MouseButton = saveButton;
            }
            else
            {
                this.MouseButton = cancelButton;
            }
        }