示例#1
0
        private void AddFLWSDownloadItem(MDModel_Table_Column _tc, DataRow TableRecordData)
        {
            if (_tc.ColumnDefine.TableColumn.DisplayLength >= 2)
            {
                this.RightPanel.Visible = false;
                this.LeftPanel.Visible  = true;
                this.LeftPanel.Dock     = DockStyle.Fill;
                this.LeftLabel.Text     = _tc.ColumnTitle;
                this.LeftMemo.Visible   = false;
                this.LeftText.Visible   = false;

                HyperLinkEdit _link = new HyperLinkEdit();
                _link.Properties.AutoHeight = false;
                _link.Dock = DockStyle.Fill;
                _link.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
                _link.Properties.Appearance.Options.UseTextOptions = true;
                this.LeftPanel.Controls.Add(_link);
                _link.BringToFront();
                _link.Text        = "下载法律文书";
                _link.Tag         = TableRecordData[_tc.ColumnAlias] + "," + _tc.ColumnDefine.TableColumn.RefWordTableName;
                _link.Click      += new EventHandler(FLWSAttachmentDownload_Click);
                this._blankLength = 0;
            }
            else
            {
                if (this.BlankLength == 2)
                {
                    this.LeftLabel.Text   = _tc.ColumnTitle;
                    this.LeftMemo.Visible = false;
                    this.LeftText.Visible = false;
                    HyperLinkEdit _link = new HyperLinkEdit();
                    _link.Properties.AutoHeight = false;
                    _link.Dock = DockStyle.Fill;
                    _link.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
                    _link.Properties.Appearance.Options.UseTextOptions = true;
                    this.LeftPanel.Controls.Add(_link);
                    _link.BringToFront();
                    _link.Text        = "下载法律文书";
                    _link.Tag         = TableRecordData[_tc.ColumnAlias] + "," + _tc.ColumnDefine.TableColumn.RefWordTableName;
                    _link.Click      += new EventHandler(FLWSAttachmentDownload_Click);
                    this._blankLength = 1;
                }
                else
                {
                    this.RightLabel.Text   = _tc.ColumnTitle;
                    this.RightText.Visible = false;
                    HyperLinkEdit _link = new HyperLinkEdit();
                    _link.Properties.AutoHeight = false;
                    _link.Dock = DockStyle.Fill;
                    _link.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
                    _link.Properties.Appearance.Options.UseTextOptions = true;
                    this.RightPanel.Controls.Add(_link);
                    _link.BringToFront();
                    _link.Text        = "下载法律文书";
                    _link.Tag         = TableRecordData[_tc.ColumnAlias] + "," + _tc.ColumnDefine.TableColumn.RefWordTableName;
                    _link.Click      += new EventHandler(FLWSAttachmentDownload_Click);
                    this._blankLength = 0;
                }
            }
        }