示例#1
0
        private void ReNameContols(string ControlType)
        {
            bool     IsReNameAll = GlobalMethods.Misc.IsEmptyString(ControlType);
            IControl control     = null;

            if (ControlType == "XCheckBox" || IsReNameAll)
            {
                control = new XCheckBox();
                this.RefreshContols(control, "XCheckBox");
            }
            if (ControlType == "XDateTime" || IsReNameAll)
            {
                control = new XDateTime();
                this.RefreshContols(control, "XDateTime");
            }
            if (ControlType == "XRadioButton" || IsReNameAll)
            {
                control = new XRadioButton();
                this.RefreshContols(control, "XRadioButton");
            }
            if (ControlType == "XTextBox" || IsReNameAll)
            {
                control = new XTextBox();
                this.RefreshContols(control, "XTextBox");
            }
            if (ControlType == "XComboBox" || IsReNameAll)
            {
                control = new XComboBox();
                this.RefreshContols(control, "XComboBox");
            }
        }
示例#2
0
        private void FreqncRender_ValueTextChanged(object sender, EventArgs e)
        {
            XComboBox render = sender as XComboBox;

            if (this.ListDo != null && this.ListDo.Length > 0 && (this.ListDo[0] is OrTplNItmDO))
            {
                (this.ListDo[0] as OrTplNItmDO).Id_freq             = render.ValueText;
                (this.ListDo[0] as OrTplNItmDO).Ortplnitm_freq_name = render.ShowText;
            }
        }
        private void usageRender_ValueTextChanged(object sender, EventArgs e)
        {
            XLabelBaseUserRender render = sender as XLabelBaseUserRender;
            XComboBox            combo  = render.UserRender as XComboBox;

            foreach (OrTplNItmDO ortDo in this.OrTplDodic.Values)
            {
                ortDo.Id_route = combo.ValueText;
            }
            this.Invalidate();
        }
示例#4
0
        private void freqnc_ValueTextChanged(object sender, EventArgs e)
        {
            XComboBox render = sender as XComboBox;

            if (this.ListDo != null && this.ListDo.Length > 0)
            {
                for (int i = 0; i < this.ListDo.Length; i++)
                {
                    (this.ListDo[i] as OrTplNItmDO).Id_freq = render.ValueText;
                }
            }
        }
        private void loadRender()
        {
            this.xScrollPanel_PrtParams = new XAPScrollBarPanel();
            this.label8        = new XLabel();
            this.comboPrinters = new XComboBox(this.xScrollPanel_PrtParams);

            // lable8
            this.label8.Name      = "label_prtname";
            this.label8.Location  = new Point(20, 36);
            this.label8.ForeColor = Color.FromArgb(78, 78, 78);
            this.label8.Size      = new Size(105, RelativeUIParam.RELATIVECELLSIZE.Height);
            this.label8.Alignment = StringAlignment.Far;
            this.label8.ValueText = "选择小票打印机";
            // comboPrinter
            this.comboPrinters.Location          = new Point(label8.Bound.Right + 8, this.label8.Bound.Y);
            this.comboPrinters.Name              = "comboPrinter";
            this.comboPrinters.Size              = new Size(256, RelativeUIParam.RELATIVECELLSIZE.Height);
            this.comboPrinters.TabIndex          = 11;
            this.comboPrinters.ValueTextChanged += new EventHandler(comboPrinters_ValueTextChanged);

            //
            // xScrollPanel_PrtParams
            //
            this.xScrollPanel_PrtParams.AutoScroll        = true;
            this.xScrollPanel_PrtParams.Dock              = System.Windows.Forms.DockStyle.Fill;
            this.xScrollPanel_PrtParams.EnabledHorizontal = false;
            this.xScrollPanel_PrtParams.EnabledVertical   = false;
            //this.xScrollPanel_PrtParams.AddRender(this.label2); //打印份数
            //this.xScrollPanel_PrtParams.AddRender(this.textPrintCopies);
            this.xScrollPanel_PrtParams.AddRender(this.label8); //选择打印机
            this.xScrollPanel_PrtParams.AddRender(this.comboPrinters);
            this.xScrollPanel_PrtParams.Font              = new Font("微软雅黑", 12F, FontStyle.Regular, GraphicsUnit.Pixel);
            this.xScrollPanel_PrtParams.HPreferStep       = 1D;
            this.xScrollPanel_PrtParams.IsContainerRender = true;
            this.xScrollPanel_PrtParams.Name              = "xScrollPanel_PrtParams";
            this.xScrollPanel_PrtParams.ScrollWidth       = 10;
            this.xScrollPanel_PrtParams.SingleBorderStyle = false;
            this.xScrollPanel_PrtParams.TabStop           = false;
            this.xScrollPanel_PrtParams.Text              = "xScrollPanel_PrtParams";
            this.xScrollPanel_PrtParams.VPreferStep       = 1D;

            this.Controls.Add(this.xScrollPanel_PrtParams);

            this.Font   = new Font("Microsoft Sans Serif", 10.8F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
            this.Margin = new System.Windows.Forms.Padding(2, 4, 2, 4);
            this.Name   = "XForm_PrtConfig";
        }
示例#6
0
        void Init(String treatStyle)
        {
            this.TreatStyle  = treatStyle;
            this.IsFirstLoad = true;

            _treatNameCheckBox = new OrderCheckBox();
            _treatNameCheckBox.ValueTextChanged += _treatNameCheckBox_ValueTextChanged;


            _userNum              = new OrderTextUnit();
            _userNum.GotFocus    += new EventHandler(_userNum_GotFocus);
            _userNum.MaxUnitWidth = 40;

            _freqXComboBox           = new XComboBox();
            _freqXComboBox.GotFocus += new EventHandler(_userNum_GotFocus);

            _userDays              = new OrderTextUnit();
            _userDays.GotFocus    += new EventHandler(_userNum_GotFocus);
            _userDays.IsOnlyNum    = true;
            _userDays.MaxUnitWidth = 40;

            _excuteProject = new OrderLabel();
            _excuteProject.IsSuitScreenRelative = true;

            _orderLabel           = new OrderLabel();
            _orderLabel.TextBrush = OrderContext.TitleBrush;

            if (String.IsNullOrEmpty(this.TreatStyle) || (this.TreatStyle.Equals("1")))//诊疗模式为1或者空(默认)
            {
                this.AddRender(_treatNameCheckBox);
                this.AddRender(_orderLabel);
                this.AddRender(_userNum);
                this.AddRender(_excuteProject);
            }
            else if (this.TreatStyle.Equals("0"))
            {
                this.AddRender(_treatNameCheckBox);
                // this.AddRender(_orderLabel);
                this.AddRender(_userNum);
                this.AddRender(_freqXComboBox);
                this.AddRender(_userDays);
                this.AddRender(_excuteProject);
            }

            this._treatNameCheckBox.MouseDoubleClick += new MouseEventHandler(_treatNameCheckBox_MouseDoubleClick);
        }
示例#7
0
        /// <summary>
        /// 频次单位双下拉框控件(频次下拉单位文本框组合控件)
        /// </summary>
        /// <param name="parent"></param>
        /// <param name="isDoubleDrop">是否是双下拉形式</param>
        public XOrderUnitFreqGroup(Control parent, bool isDoubleDrop)
        {
            this.Size         = new System.Drawing.Size(205, 24);
            this.isDoubleDrop = isDoubleDrop;
            if (isDoubleDrop)
            {
                unitReUnder                     = new XComboBoxUnit(parent);
                unitReUnder.Size                = new System.Drawing.Size(102, 24);
                unitReUnder.Location            = new Point(this.Bound.X, this.Bound.Y);
                unitReUnder.RightTophorn        = false;
                unitReUnder.RightBottmhorn      = false;
                unitReUnder.SelectValueChanged += new EventHandler(UnitReUnder_SelectValueChanged);
                unitReUnder.ValueTextChanged   += new EventHandler(UnitReUnder_ValueTextChanged);
                this.AddRender(unitReUnder);

                freqncRender                   = new XComboBox(parent);
                freqncRender.Size              = new Size(102, 24);
                freqncRender.Location          = new Point(unitReUnder.Bound.Right - 1, unitReUnder.Bound.Top);
                freqncRender.ValueTextChanged += new EventHandler(FreqncRender_ValueTextChanged);
                freqncRender.LeftTophorn       = false;
                freqncRender.LeftBottmhorn     = false;
                this.AddRender(freqncRender);
            }
            else
            {
                unitTextBox                   = new XUnitTextBoxMul();
                unitTextBox.Size              = new System.Drawing.Size(100, 24);
                unitTextBox.IsNumber          = true;
                unitTextBox.NullFlag          = false;
                unitTextBox.MinValue          = 0;
                unitTextBox.MaxLength         = 4;
                unitTextBox.Location          = new Point(this.Bound.X, this.Bound.Y);
                unitTextBox.ValueTextChanged += new EventHandler(UnitTextBox_ValueTextChanged);
                this.AddRender(unitTextBox);

                freqncRender                   = new XComboBox(parent);
                freqncRender.Size              = new Size(100, 24);
                freqncRender.ValueTextChanged += new EventHandler(FreqncRender_ValueTextChanged);
                freqncRender.Location          = new Point(unitTextBox.Bound.Right + 4, unitTextBox.Bound.Top);
                this.AddRender(freqncRender);
            }
        }
示例#8
0
    unsafe public void Create()
    {
        xc.XInitXCGUI("");
        int hWindow = XWnd.Create(0, 0, 500, 300, "xcgui", 0, 15);

        int hComboBox = XComboBox.Create(0, 0, 300, 20, hWindow);

        XComboBox.SetItemTemplateXML(hComboBox, "..//..//ComboBox_ListBox_Item.xml");

        int hAdapterTable = XAdapterTable.Create();

        XComboBox.BindApapter(hComboBox, hAdapterTable);
        XAdapterTable.AddColumn(hAdapterTable, "name");

        int nItem = XAdapterTable.AddItemText(hAdapterTable, "1.1");

        XWnd.ShowWindow(hWindow, 5);
        xc.XRunXCGUI();
        xc.XExitXCGUI();
    }
示例#9
0
        protected override void xapFormControl_FormCreated(object sender, EventArgs e)
        {
            base.xapFormControl_FormCreated(sender, e);

            urDeptDica.Visible = true;
            urDeptDica.Enabled = true;

            Dictionary <object, string> item = new Dictionary <object, string>();

            item.Add("~", "全部");
            foreach (var caDO in (this.viewModel as EntDiDeptAssiViewModel).DeptDiagCaDOs)
            {
                item.Add(caDO.Id_deptdiagca, caDO.Name);
            }

            XComboBox cmb = urDeptDica.UserRender as XComboBox;

            cmb.DataSource          = item;
            cmb.SelectIndex         = 0;
            cmb.SelectValueChanged += new EventHandler(cmb_SelectValueChanged);
        }
示例#10
0
        protected void Load()
        {
            this.RenderList = new List <UserRender>();

            if (this.ListDo != null && this.ListDo.Length > 0)
            {
                if (this.ListDo.Length > 0)
                {
                    OrderRender TMP = new OrderRender(this.parent);
                    #region Ui_flag=1 套
                    if ((ObjDo as NewOrderTemplateDTO).Ui_flag == "1")
                    {
                        lable           = new Brieflabel();
                        lable.ForeColor = Color.FromArgb(0, 153, 229);
                        //lable.Size = new Size(141, 24);
                        //lable.Topspace = 4;
                        lable.Font = new Font("微软雅黑", 12, GraphicsUnit.Pixel);
                        lable.Text = (ObjDo as NewOrderTemplateDTO).Name;
                        if (TextRenderer.MeasureText(lable.Text, lable.Font).Width > 141)
                        {
                            lable.Size = new Size(141, 24);
                        }
                        else
                        {
                            lable.Size = new Size(TextRenderer.MeasureText(lable.Text, lable.Font).Width, 24);
                        }
                        this.lablelist.Add(lable);
                        this.AddRender(lable);
                        this.RenderList.Add(lable);
                        OrderRenderList = new List <OrderRender>();
                        foreach (OrTplNItmDO Second in this.ListDo)
                        {
                            OrderRender ThreadRender = new OrderRender(this.parent);
                            ThreadRender.ObjDo             = Second;
                            ThreadRender.EditFlag          = Second.Fg_edit.Value;
                            ThreadRender.Id                = Second.Id_ortmplitm;
                            ThreadRender.Size              = new Size(260, 24);
                            ThreadRender.parentOrderRender = this;
                            ThreadRender.isparent          = false;
                            OrderRenderList.Add(ThreadRender);
                            this.AddRender(ThreadRender);
                            this.RenderList.Add(ThreadRender);
                            TMP = ThreadRender;
                        }
                    }
                    #endregion

                    #region 2:(多药品)药品
                    else if ((ObjDo as NewOrderTemplateDTO).Ui_flag == "2")
                    {
                        lable           = new Brieflabel();
                        lable.ForeColor = Color.FromArgb(0, 153, 229);
                        //lable.Size = new System.Drawing.Size(141, 24);
                        //lable.Topspace = 4;
                        lable.Font = new Font("微软雅黑", 12, GraphicsUnit.Pixel);
                        lable.Text = (ObjDo as NewOrderTemplateDTO).Name;
                        if (TextRenderer.MeasureText(lable.Text, lable.Font).Width > 141)
                        {
                            lable.Size = new Size(141, 24);
                        }
                        else
                        {
                            lable.Size = new Size(TextRenderer.MeasureText(lable.Text, lable.Font).Width, 24);
                        }
                        XComboBox freqnc = new XComboBox(this.parent);
                        freqnc.Location = new Point(lable.Bound.Right + 5, lable.Bound.Top - 3);
                        //freqnc.DataSource = (ObjDo as NewOrderTemplateDTO).getFreqdefdo();
                        freqnc.ValueText         = (this.ListDo[0] as OrTplNItmDO).Ortplnitm_srv_name;
                        freqnc.Size              = new System.Drawing.Size(92, 24);
                        freqnc.ValueTextChanged += new EventHandler(freqnc_ValueTextChanged);
                        this.lablelist.Add(lable);
                        this.AddRender(lable);
                        this.AddRender(freqnc);
                        this.RenderList.Add(lable);
                        this.RenderList.Add(freqnc);
                        OrderRenderList  = new List <OrderRender>();
                        XUnitTextBoxList = new List <XUnitTextBoxMul>();
                        foreach (OrTplNItmDO Second in this.ListDo)
                        {
                            OrderRender ThreadRender = new OrderRender(this.parent);
                            ThreadRender.ObjDo             = Second;
                            ThreadRender.Id                = Second.Id_ortmplitm;
                            ThreadRender.Size              = new Size(260, 24);
                            ThreadRender.parentOrderRender = this;
                            ThreadRender.isparent          = false;
                            this.AddRender(ThreadRender);
                            this.RenderList.Add(ThreadRender);
                            OrderRenderList.Add(ThreadRender);
                            //XComboBoxUnitList = new List<XComboBoxUnit>();
                            //XComboBoxUnit UnitReUnder = new XComboBoxUnit(this.parent);
                            //UnitReUnder.ValueText = Second.Quan_med.ToString();
                            //UnitReUnder.DataSource = (ObjDo as NewOrderTemplateDTO).getmeasList();
                            //UnitReUnder.ValueUnit = Second.Id_unit_med;
                            //ThreadRender.Check = false;
                            //UnitReUnder.Location = new Point(ThreadRender.Bound.Right, ThreadRender.Bound.Top);
                            //UnitReUnder.ValueTextChanged += new EventHandler(ComBoxUnitReUnder_ValueTextChanged);
                            //UnitReUnder.SelectValueChanged += new EventHandler(ComBoxUnitReUnder_SelectValueChanged);
                            //ThreadRender.AddRender(UnitReUnder);
                            //ThreadRender.RenderList.Add(UnitReUnder);
                            //XComboBoxUnitList.Add(UnitReUnder);

                            XUnitTextBoxMul UnitTextBoxUnder = new XUnitTextBoxMul();
                            UnitTextBoxUnder.Size              = new System.Drawing.Size(92, 24);
                            UnitTextBoxUnder.IsNumber          = true;
                            UnitTextBoxUnder.NullFlag          = false;
                            UnitTextBoxUnder.MinValue          = 0;
                            UnitTextBoxUnder.MaxLength         = 4;
                            UnitTextBoxUnder.ValueText         = Second.Quan_med.ToString();
                            UnitTextBoxUnder.UnitText          = Second.Ortplnitm_unit_name;
                            ThreadRender.Check                 = false;
                            UnitTextBoxUnder.Location          = new Point(ThreadRender.Bound.Right, ThreadRender.Bound.Top);
                            UnitTextBoxUnder.ValueTextChanged += new EventHandler(UnitTextBoxUnder_ValueTextChanged);
                            ThreadRender.AddRender(UnitTextBoxUnder);
                            ThreadRender.RenderList.Add(UnitTextBoxUnder);
                            XUnitTextBoxList.Add(UnitTextBoxUnder);
                            TMP = ThreadRender;
                        }
                    }
                    #endregion
                    #region 5 草药
                    else if ((ObjDo as NewOrderTemplateDTO).Ui_flag == "5")
                    {
                        lable           = new Brieflabel();
                        lable.ForeColor = Color.FromArgb(0, 153, 229);
                        //lable.Size = new System.Drawing.Size(141, 24);
                        //lable.Topspace = 4;
                        lable.Font = new Font("微软雅黑", 12, GraphicsUnit.Pixel);
                        lable.Text = (ObjDo as NewOrderTemplateDTO).Name;
                        if (TextRenderer.MeasureText(lable.Text, lable.Font).Width > 141)
                        {
                            lable.Size = new Size(141, 24);
                        }
                        else
                        {
                            lable.Size = new Size(TextRenderer.MeasureText(lable.Text, lable.Font).Width, 24);
                        }
                        // XComboBox freqnc = new XComboBox(this.parent);
                        //freqnc.Location = new Point(lable.Bound.Right + 5, lable.Bound.Top - 3);
                        //freqnc.DataSource = (ObjDo as NewOrderTemplateDTO).getFreqdefdo();
                        //freqnc.ValueText = (this.ListDo[0] as OrTplNItmDO).Ortplnitm_srv_name;
                        //freqnc.Size = new System.Drawing.Size(92, 24);
                        //freqnc.ValueTextChanged += new EventHandler(freqnc_ValueTextChanged);
                        this.lablelist.Add(lable);
                        this.AddRender(lable);
                        // this.AddRender(freqnc);
                        this.RenderList.Add(lable);
                        //this.RenderList.Add(freqnc);
                        OrderRenderList  = new List <OrderRender>();
                        XUnitTextBoxList = new List <XUnitTextBoxMul>();
                        foreach (OrTplNItmDO Second in this.ListDo)
                        {
                            OrderRender ThreadRender = new OrderRender(this.parent);
                            ThreadRender.ObjDo             = Second;
                            ThreadRender.Id                = Second.Id_ortmplitm;
                            ThreadRender.Size              = new Size(260, 24);
                            ThreadRender.parentOrderRender = this;
                            ThreadRender.isparent          = false;
                            this.AddRender(ThreadRender);
                            this.RenderList.Add(ThreadRender);
                            OrderRenderList.Add(ThreadRender);
                            //XComboBoxUnitList = new List<XComboBoxUnit>();
                            //XComboBoxUnit UnitReUnder = new XComboBoxUnit(this.parent);
                            //UnitReUnder.ValueText = Second.Quan_med.ToString();
                            //UnitReUnder.DataSource = (ObjDo as NewOrderTemplateDTO).getmeasList();
                            //UnitReUnder.ValueUnit = Second.Id_unit_med;
                            //ThreadRender.Check = false;
                            //UnitReUnder.Location = new Point(ThreadRender.Bound.Right, ThreadRender.Bound.Top);
                            //UnitReUnder.ValueTextChanged += new EventHandler(ComBoxUnitReUnder_ValueTextChanged);
                            //UnitReUnder.SelectValueChanged += new EventHandler(ComBoxUnitReUnder_SelectValueChanged);
                            //ThreadRender.AddRender(UnitReUnder);
                            //ThreadRender.RenderList.Add(UnitReUnder);
                            //XComboBoxUnitList.Add(UnitReUnder);

                            XUnitTextBoxMul UnitTextBoxUnder = new XUnitTextBoxMul();
                            UnitTextBoxUnder.Size              = new System.Drawing.Size(92, 24);
                            UnitTextBoxUnder.IsNumber          = true;
                            UnitTextBoxUnder.NullFlag          = false;
                            UnitTextBoxUnder.MinValue          = 0;
                            UnitTextBoxUnder.MaxLength         = 4;
                            UnitTextBoxUnder.ValueText         = Second.Quan_med.ToString();
                            UnitTextBoxUnder.UnitText          = Second.Ortplnitm_unit_name;
                            ThreadRender.Check                 = false;
                            UnitTextBoxUnder.Location          = new Point(ThreadRender.Bound.Right, ThreadRender.Bound.Top);
                            UnitTextBoxUnder.ValueTextChanged += new EventHandler(UnitTextBoxUnder_ValueTextChanged);
                            ThreadRender.AddRender(UnitTextBoxUnder);
                            ThreadRender.RenderList.Add(UnitTextBoxUnder);
                            XUnitTextBoxList.Add(UnitTextBoxUnder);
                            TMP = ThreadRender;
                        }
                    }
                    #endregion
                    #region 3:(单一药品),4其他
                    else if ((ObjDo as NewOrderTemplateDTO).Ui_flag == "3")
                    {
                        if (this.ListDo[0] is OrTplNItmDO)
                        {
                            this.isparent   = false;
                            this.Id         = (this.ListDo[0] as OrTplNItmDO).Id_ortmplitm;
                            lable           = new Brieflabel();
                            lable.ForeColor = Color.FromArgb(0, 153, 229);
                            //lable.Size = new System.Drawing.Size(141, 24);
                            //lable.Topspace = 4;
                            lable.Font = new Font("微软雅黑", 12, GraphicsUnit.Pixel);
                            lable.Text = (this.ListDo[0] as OrTplNItmDO).Ortplnitm_srv_name;
                            if (TextRenderer.MeasureText(lable.Text, lable.Font).Width > 141)
                            {
                                lable.Size = new Size(141, 24);
                            }
                            else
                            {
                                lable.Size = new Size(TextRenderer.MeasureText(lable.Text, lable.Font).Width, 24);
                            }
                            lablelist.Add(lable);
                            this.AddRender(lable);
                            this.RenderList.Add(lable);
                            XOrderUnitFreqGroup unitFreqGroup = new XOrderUnitFreqGroup(this.parent, false);
                            this.Check = false;
                            unitFreqGroup.ValueText = (this.ListDo[0] as OrTplNItmDO).Quan_med.ToString();
                            // unitFreqGroup.UnitDataSource = (ObjDo as NewOrderTemplateDTO).getmeasList();
                            unitFreqGroup.UnitValueText    = (this.ListDo[0] as OrTplNItmDO).Ortplnitm_unit_name;
                            unitFreqGroup.FreqncDataSource = (ObjDo as NewOrderTemplateDTO).getFreqdefdo();
                            unitFreqGroup.FreqncValueText  = (this.ListDo[0] as OrTplNItmDO).Ortplnitm_freq_name;
                            // unitFreqGroup.UnitReUnderSelectValueChanged += new EventHandler(UnitReUnder_SelectValueChanged);
                            unitFreqGroup.UnitTextBoxValueTextChanged  += new EventHandler(unitFreqGroup_UnitTextBoxValueTextChanged);
                            unitFreqGroup.FreqncRenderValueTextChanged += new EventHandler(FreqncRender_ValueTextChanged);
                            this.AddRender(unitFreqGroup);
                            this.RenderList.Add(unitFreqGroup);
                        }
                    }
                    else
                    {
                        if (this.ListDo[0] is OrTplNItmDO)
                        {
                            this.isparent = false;
                            this.Id       = (this.ListDo[0] as OrTplNItmDO).Id_ortmplitm;
                            lable         = new Brieflabel();
                            //lable.Size = new System.Drawing.Size(141, 24);
                            lable.ForeColor = Color.FromArgb(0, 153, 229);
                            //lable.Topspace = 4;
                            lable.Font = new Font("微软雅黑", 12, GraphicsUnit.Pixel);
                            lable.Text = (this.ListDo[0] as OrTplNItmDO).Ortplnitm_srv_name;
                            if (TextRenderer.MeasureText(lable.Text, lable.Font).Width > 141)
                            {
                                lable.Size = new Size(141, 24);
                            }
                            else
                            {
                                lable.Size = new Size(TextRenderer.MeasureText(lable.Text, lable.Font).Width, 24);
                            }
                            lablelist.Add(lable);
                            this.AddRender(lable);
                            this.RenderList.Add(lable);
                        }
                    }
                    #endregion
                    this.LastBottm = TMP.Bound.Bottom;
                }
            }
            #region 单一使用没有子元素
            else if (this.ObjDo != null)
            {
                if (this.ObjDo is MedSrvDO)
                {
                    lable = new Brieflabel();
                    //lable.Size = new System.Drawing.Size(171, 24);
                    //lable.Topspace = 4;
                    lable.Font = new Font("微软雅黑", 12, GraphicsUnit.Pixel);
                    lable.Text = (this.ObjDo as MedSrvDO).Name;
                    if (TextRenderer.MeasureText(lable.Text, lable.Font).Width > 171)
                    {
                        lable.Size = new Size(171, 24);
                    }
                    else
                    {
                        lable.Size = new Size(TextRenderer.MeasureText(lable.Text, lable.Font).Width, 24);
                    }
                    lablelist.Add(lable);
                    this.AddRender(lable);
                    this.RenderList.Add(lable);
                }
                if (this.ObjDo is OrTplItmDtDO)
                {
                    lable = new Brieflabel();
                    //lable.Size = new System.Drawing.Size(141, 24);
                    //lable.Topspace = 4;
                    lable.Font = new Font("微软雅黑", 12, GraphicsUnit.Pixel);
                    lable.Text = (this.ObjDo as OrTplItmDtDO).Name_srv;
                    if (TextRenderer.MeasureText(lable.Text, lable.Font).Width > 141)
                    {
                        lable.Size = new Size(141, 24);
                    }
                    else
                    {
                        lable.Size = new Size(TextRenderer.MeasureText(lable.Text, lable.Font).Width, 24);
                    }
                    lablelist.Add(lable);
                    this.AddRender(lable);
                    this.RenderList.Add(lable);
                }
                if (this.ObjDo is SrvortplitemAggDO)
                {
                    lable = new Brieflabel();
                    //lable.Size = new System.Drawing.Size(141, 24);
                    //lable.Topspace = 4;
                    lable.Font = new Font("微软雅黑", 12, GraphicsUnit.Pixel);
                    lable.Text = (this.ObjDo as SrvortplitemAggDO).getParentDO().Name_srv;
                    if (TextRenderer.MeasureText(lable.Text, lable.Font).Width > 141)
                    {
                        lable.Size = new Size(141, 24);
                    }
                    else
                    {
                        lable.Size = new Size(TextRenderer.MeasureText(lable.Text, lable.Font).Width, 24);
                    }
                    lablelist.Add(lable);
                    this.AddRender(lable);
                    this.RenderList.Add(lable);
                }
                if (this.ObjDo is RegularOrRelSrvDO)
                {
                    lable = new Brieflabel();
                    //lable.Size = new System.Drawing.Size(171, 24);
                    //lable.Topspace = 4;
                    lable.Font = new Font("微软雅黑", 12, GraphicsUnit.Pixel);
                    lable.Text = (this.ObjDo as RegularOrRelSrvDO).Name_srv;
                    if (TextRenderer.MeasureText(lable.Text, lable.Font).Width > 171)
                    {
                        lable.Size = new Size(171, 24);
                    }
                    else
                    {
                        lable.Size = new Size(TextRenderer.MeasureText(lable.Text, lable.Font).Width, 24);
                    }
                    lablelist.Add(lable);
                    this.AddRender(lable);
                    this.RenderList.Add(lable);
                }
                if (this.ObjDo is OrTplNItmDO)
                {
                    lable = new Brieflabel();
                    //lable.Size = new System.Drawing.Size(141, 24);
                    //lable.Topspace = 4;
                    lable.Font = new Font("微软雅黑", 12, GraphicsUnit.Pixel);
                    lable.Text = (this.ObjDo as OrTplNItmDO).Ortplnitm_srv_name;
                    if (TextRenderer.MeasureText(lable.Text, lable.Font).Width > 141)
                    {
                        lable.Size = new Size(141, 24);
                    }
                    else
                    {
                        lable.Size = new Size(TextRenderer.MeasureText(lable.Text, lable.Font).Width, 24);
                    }
                    lablelist.Add(lable);
                    this.AddRender(lable);
                    this.RenderList.Add(lable);
                }
                #endregion
            }
            RecLocat();
        }