From 085fef1f2662c238d56ee0dbaae1e4c777c171e2 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期一, 25 十一月 2024 09:55:10 +0800 Subject: [PATCH] 分页查询 --- DevApp/Gs.DevApp/UserControl/UcPageBar.Designer.cs | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcPageBar.Designer.cs b/DevApp/Gs.DevApp/UserControl/UcPageBar.Designer.cs index 74f172d..b3d67aa 100644 --- a/DevApp/Gs.DevApp/UserControl/UcPageBar.Designer.cs +++ b/DevApp/Gs.DevApp/UserControl/UcPageBar.Designer.cs @@ -257,7 +257,7 @@ this.cbxRowCount.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.cbxRowCount.EditValue = "20"; + this.cbxRowCount.EditValue = "0"; this.cbxRowCount.Location = new System.Drawing.Point(846, 2); this.cbxRowCount.Margin = new System.Windows.Forms.Padding(3, 6, 3, 0); this.cbxRowCount.Name = "cbxRowCount"; @@ -270,12 +270,16 @@ "20", "50", "100", - "200"}); + "200", + "250", + "500", + "800", + "1000"}); + this.cbxRowCount.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; this.cbxRowCount.Size = new System.Drawing.Size(62, 28); this.cbxRowCount.StyleController = this.layoutControl1; this.cbxRowCount.TabIndex = 5; this.cbxRowCount.Tag = "rowcount"; - this.cbxRowCount.SelectedIndexChanged += new System.EventHandler(this.cbxRowCount_SelectedIndexChanged); // // labelControl1 // @@ -301,6 +305,8 @@ this.tbxCurrentPage.Name = "tbxCurrentPage"; this.tbxCurrentPage.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); this.tbxCurrentPage.Properties.Appearance.Options.UseFont = true; + this.tbxCurrentPage.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; + this.tbxCurrentPage.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.tbxCurrentPage.Size = new System.Drawing.Size(66, 28); this.tbxCurrentPage.StyleController = this.layoutControl1; this.tbxCurrentPage.TabIndex = 2; @@ -562,12 +568,12 @@ this.emptySpaceItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); // - // PageBar + // UcPageBar // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.layoutControl1); - this.Name = "PageBar"; + this.Name = "UcPageBar"; this.Size = new System.Drawing.Size(954, 40); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); -- Gitblit v1.9.3