修改分页总数显示

This commit is contained in:
wule committed 2026-09-07 17:18:29 +08:00
1 parent c60e6d1be0
commit fadda22178
6 files changed
+782 -755

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -1087,7 +1087,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"", "",
"修改时间", "修改时间",
"入库时间"}); "入库时间"});
this.cmbTime.Location = new System.Drawing.Point(402, 82); this.cmbTime.Location = new System.Drawing.Point(402, 80);
this.cmbTime.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbTime.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbTime.Name = "cmbTime"; this.cmbTime.Name = "cmbTime";
this.cmbTime.Size = new System.Drawing.Size(56, 25); this.cmbTime.Size = new System.Drawing.Size(56, 25);
@@ -1101,7 +1101,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"", "",
"是", "是",
"否"}); "否"});
this.cmbHasFission.Location = new System.Drawing.Point(800, 45); this.cmbHasFission.Location = new System.Drawing.Point(800, 43);
this.cmbHasFission.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbHasFission.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbHasFission.Name = "cmbHasFission"; this.cmbHasFission.Name = "cmbHasFission";
this.cmbHasFission.Size = new System.Drawing.Size(51, 25); this.cmbHasFission.Size = new System.Drawing.Size(51, 25);
@@ -1136,7 +1136,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"", "",
"是", "是",
"否"}); "否"});
this.cmbPddRelation.Location = new System.Drawing.Point(687, 8); this.cmbPddRelation.Location = new System.Drawing.Point(687, 6);
this.cmbPddRelation.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbPddRelation.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbPddRelation.Name = "cmbPddRelation"; this.cmbPddRelation.Name = "cmbPddRelation";
this.cmbPddRelation.Size = new System.Drawing.Size(51, 25); this.cmbPddRelation.Size = new System.Drawing.Size(51, 25);
@@ -1181,7 +1181,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// //
this.cmbCat2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.cmbCat2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbCat2.FormattingEnabled = true; this.cmbCat2.FormattingEnabled = true;
this.cmbCat2.Location = new System.Drawing.Point(252, 82); this.cmbCat2.Location = new System.Drawing.Point(252, 80);
this.cmbCat2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbCat2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat2.Name = "cmbCat2"; this.cmbCat2.Name = "cmbCat2";
this.cmbCat2.Size = new System.Drawing.Size(51, 25); this.cmbCat2.Size = new System.Drawing.Size(51, 25);
@@ -1267,7 +1267,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"机会商品", "机会商品",
"以图搜品", "以图搜品",
"多多外部数据"}); "多多外部数据"});
this.cmbSourceType.Location = new System.Drawing.Point(252, 45); this.cmbSourceType.Location = new System.Drawing.Point(252, 43);
this.cmbSourceType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbSourceType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbSourceType.Name = "cmbSourceType"; this.cmbSourceType.Name = "cmbSourceType";
this.cmbSourceType.Size = new System.Drawing.Size(51, 25); this.cmbSourceType.Size = new System.Drawing.Size(51, 25);
@@ -1313,7 +1313,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"", "",
"是", "是",
"否"}); "否"});
this.cmbWxCat.Location = new System.Drawing.Point(574, 8); this.cmbWxCat.Location = new System.Drawing.Point(574, 6);
this.cmbWxCat.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbWxCat.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbWxCat.Name = "cmbWxCat"; this.cmbWxCat.Name = "cmbWxCat";
this.cmbWxCat.Size = new System.Drawing.Size(51, 25); this.cmbWxCat.Size = new System.Drawing.Size(51, 25);
@@ -1335,7 +1335,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.cmbSort.Items.AddRange(new object[] { this.cmbSort.Items.AddRange(new object[] {
"入库时间", "入库时间",
"曝光量"}); "曝光量"});
this.cmbSort.Location = new System.Drawing.Point(348, 45); this.cmbSort.Location = new System.Drawing.Point(348, 43);
this.cmbSort.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbSort.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbSort.Name = "cmbSort"; this.cmbSort.Name = "cmbSort";
this.cmbSort.Size = new System.Drawing.Size(51, 25); this.cmbSort.Size = new System.Drawing.Size(51, 25);
@@ -1399,7 +1399,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// //
this.cmbGroupFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.cmbGroupFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbGroupFilter.FormattingEnabled = true; this.cmbGroupFilter.FormattingEnabled = true;
this.cmbGroupFilter.Location = new System.Drawing.Point(156, 45); this.cmbGroupFilter.Location = new System.Drawing.Point(156, 43);
this.cmbGroupFilter.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbGroupFilter.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbGroupFilter.Name = "cmbGroupFilter"; this.cmbGroupFilter.Name = "cmbGroupFilter";
this.cmbGroupFilter.Size = new System.Drawing.Size(51, 25); this.cmbGroupFilter.Size = new System.Drawing.Size(51, 25);
@@ -1414,7 +1414,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"是", "是",
"否", "否",
"导出未拉回"}); "导出未拉回"});
this.cmbExportToOutServer.Location = new System.Drawing.Point(574, 45); this.cmbExportToOutServer.Location = new System.Drawing.Point(574, 43);
this.cmbExportToOutServer.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbExportToOutServer.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbExportToOutServer.Name = "cmbExportToOutServer"; this.cmbExportToOutServer.Name = "cmbExportToOutServer";
this.cmbExportToOutServer.Size = new System.Drawing.Size(51, 25); this.cmbExportToOutServer.Size = new System.Drawing.Size(51, 25);
@@ -1450,7 +1450,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"安全商品", "安全商品",
"违规商品", "违规商品",
"未校验"}); "未校验"});
this.cmbWxSafe.Location = new System.Drawing.Point(461, 45); this.cmbWxSafe.Location = new System.Drawing.Point(461, 43);
this.cmbWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbWxSafe.Name = "cmbWxSafe"; this.cmbWxSafe.Name = "cmbWxSafe";
this.cmbWxSafe.Size = new System.Drawing.Size(51, 25); this.cmbWxSafe.Size = new System.Drawing.Size(51, 25);
@@ -1492,7 +1492,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// //
this.cmbCat1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.cmbCat1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbCat1.FormattingEnabled = true; this.cmbCat1.FormattingEnabled = true;
this.cmbCat1.Location = new System.Drawing.Point(156, 82); this.cmbCat1.Location = new System.Drawing.Point(156, 80);
this.cmbCat1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbCat1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat1.Name = "cmbCat1"; this.cmbCat1.Name = "cmbCat1";
this.cmbCat1.Size = new System.Drawing.Size(51, 25); this.cmbCat1.Size = new System.Drawing.Size(51, 25);
@@ -1514,7 +1514,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
// //
this.cmbCat3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.cmbCat3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbCat3.FormattingEnabled = true; this.cmbCat3.FormattingEnabled = true;
this.cmbCat3.Location = new System.Drawing.Point(348, 82); this.cmbCat3.Location = new System.Drawing.Point(348, 80);
this.cmbCat3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbCat3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat3.Name = "cmbCat3"; this.cmbCat3.Name = "cmbCat3";
this.cmbCat3.Size = new System.Drawing.Size(51, 25); this.cmbCat3.Size = new System.Drawing.Size(51, 25);
@@ -1610,7 +1610,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"", "",
"普通商品", "普通商品",
"爆款数据"}); "爆款数据"});
this.cmbSpProdType.Location = new System.Drawing.Point(800, 8); this.cmbSpProdType.Location = new System.Drawing.Point(800, 6);
this.cmbSpProdType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); this.cmbSpProdType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbSpProdType.Name = "cmbSpProdType"; this.cmbSpProdType.Name = "cmbSpProdType";
this.cmbSpProdType.Size = new System.Drawing.Size(51, 25); this.cmbSpProdType.Size = new System.Drawing.Size(51, 25);
@@ -2234,6 +2234,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.ucSplitPage1.PageSize = 100; this.ucSplitPage1.PageSize = 100;
this.ucSplitPage1.Size = new System.Drawing.Size(453, 25); this.ucSplitPage1.Size = new System.Drawing.Size(453, 25);
this.ucSplitPage1.TabIndex = 6; this.ucSplitPage1.TabIndex = 6;
this.ucSplitPage1.TotalCount = ((long)(0));
this.ucSplitPage1.TotalPage = 1; this.ucSplitPage1.TotalPage = 1;
// //
// statusBar // statusBar
@@ -52,6 +52,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
private void ProductListForm_Load(object sender, EventArgs e) private void ProductListForm_Load(object sender, EventArgs e)
{ {
ucSplitPage1.lblTotal.Visible = false;
cmbSpProdType.SelectedIndex = 0; cmbSpProdType.SelectedIndex = 0;
cmbSetWxSafe.SelectedIndex = 0; cmbSetWxSafe.SelectedIndex = 0;
if (BaseClass.SaLevel == 1 && shop == null) // 一级管理员且不是选品状态 if (BaseClass.SaLevel == 1 && shop == null) // 一级管理员且不是选品状态
@@ -178,8 +179,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
int pageSize = 100; int pageSize = 100;
decimal seconds; decimal seconds;
Invoke(new Action(() => { pageSize = this.ucSplitPage1.PageSize; })); Invoke(new Action(() => { pageSize = this.ucSplitPage1.PageSize; }));
var list = GetProductList(out pageCount, out seconds, page, pageSize); //var list = GetProductList(out pageCount, out seconds, page, pageSize);
//var list = GetHotProductList(out pageCount, out seconds, page, pageSize); var list = GetHotProductList(out pageCount, out seconds, page, pageSize);
lstTemuDbProduct.AddRange(list); lstTemuDbProduct.AddRange(list);
this.ucSplitPage1.TotalPage = pageCount; this.ucSplitPage1.TotalPage = pageCount;
@@ -352,8 +353,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
seconds = 0; seconds = 0;
var url = BaseClass.BuildWXObjString("product/get_hot_product_list"); var url = BaseClass.BuildWXObjString("product/get_hot_product_list");
if (shop != null && shop.DbId.ParseToInt() != 0) if (!txtSPU.Text.Trim().IsNullOrEmpty())
url = BaseClass.BuildWXObjString("product/get_hot_product_list"); url = BaseClass.BuildWXObjString("product/get_hot_product_list_detail");
var data = ""; var data = "";
Invoke(new Action(() => Invoke(new Action(() =>
+235 -234
View File
@@ -29,220 +29,221 @@ namespace TemuKJD.UserControls
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.btnPrev = new DevComponents.DotNetBar.PanelEx(); this.btnPrev = new DevComponents.DotNetBar.PanelEx();
this.btnNext = new DevComponents.DotNetBar.PanelEx(); this.btnNext = new DevComponents.DotNetBar.PanelEx();
this.lblPage = new System.Windows.Forms.Label(); this.lblPage = new System.Windows.Forms.Label();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel(); this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
this.btnJump = new DevComponents.DotNetBar.PanelEx(); this.btnJump = new DevComponents.DotNetBar.PanelEx();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.txtJumpPage = new DevComponents.DotNetBar.Controls.TextBoxX(); this.txtJumpPage = new DevComponents.DotNetBar.Controls.TextBoxX();
this.lblJump = new System.Windows.Forms.Label(); this.lblJump = new System.Windows.Forms.Label();
this.lblTotal = new System.Windows.Forms.Label(); this.lblTotal = new System.Windows.Forms.Label();
this.lblPageSize = new System.Windows.Forms.Label(); this.lblPageSize = new System.Windows.Forms.Label();
this.cmbPageSize = new System.Windows.Forms.ComboBox(); this.cmbPageSize = new System.Windows.Forms.ComboBox();
this.flowLayoutPanel2.SuspendLayout(); this.flowLayoutPanel2.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// btnPrev // btnPrev
// //
this.btnPrev.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); this.btnPrev.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
this.btnPrev.AutoSize = true; this.btnPrev.AutoSize = true;
this.btnPrev.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.btnPrev.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnPrev.Cursor = System.Windows.Forms.Cursors.Hand; this.btnPrev.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnPrev.DisabledBackColor = System.Drawing.Color.Empty; this.btnPrev.DisabledBackColor = System.Drawing.Color.Empty;
this.btnPrev.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnPrev.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnPrev.Location = new System.Drawing.Point(235, 0); this.btnPrev.Location = new System.Drawing.Point(235, 0);
this.btnPrev.Margin = new System.Windows.Forms.Padding(0); this.btnPrev.Margin = new System.Windows.Forms.Padding(0);
this.btnPrev.Name = "btnPrev"; this.btnPrev.Name = "btnPrev";
this.btnPrev.Size = new System.Drawing.Size(31, 20); this.btnPrev.Size = new System.Drawing.Size(31, 20);
this.btnPrev.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnPrev.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnPrev.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnPrev.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnPrev.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnPrev.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnPrev.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; this.btnPrev.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnPrev.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; this.btnPrev.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnPrev.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; this.btnPrev.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnPrev.Style.ForeColor.Color = System.Drawing.Color.White; this.btnPrev.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnPrev.Style.GradientAngle = 90; this.btnPrev.Style.GradientAngle = 90;
this.btnPrev.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; this.btnPrev.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnPrev.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); this.btnPrev.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnPrev.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); this.btnPrev.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnPrev.TabIndex = 431; this.btnPrev.TabIndex = 431;
this.btnPrev.Text = "上页"; this.btnPrev.Text = "上页";
this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click); this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click);
// //
// btnNext // btnNext
// //
this.btnNext.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); this.btnNext.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
this.btnNext.AutoSize = true; this.btnNext.AutoSize = true;
this.btnNext.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.btnNext.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand; this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnNext.DisabledBackColor = System.Drawing.Color.Empty; this.btnNext.DisabledBackColor = System.Drawing.Color.Empty;
this.btnNext.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnNext.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnNext.Location = new System.Drawing.Point(311, 0); this.btnNext.Location = new System.Drawing.Point(311, 0);
this.btnNext.Margin = new System.Windows.Forms.Padding(0); this.btnNext.Margin = new System.Windows.Forms.Padding(0);
this.btnNext.Name = "btnNext"; this.btnNext.Name = "btnNext";
this.btnNext.Size = new System.Drawing.Size(31, 20); this.btnNext.Size = new System.Drawing.Size(31, 20);
this.btnNext.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnNext.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnNext.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnNext.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnNext.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnNext.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnNext.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; this.btnNext.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnNext.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; this.btnNext.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnNext.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; this.btnNext.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnNext.Style.ForeColor.Color = System.Drawing.Color.White; this.btnNext.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnNext.Style.GradientAngle = 90; this.btnNext.Style.GradientAngle = 90;
this.btnNext.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; this.btnNext.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnNext.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); this.btnNext.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnNext.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); this.btnNext.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnNext.TabIndex = 435; this.btnNext.TabIndex = 435;
this.btnNext.Text = "下页"; this.btnNext.Text = "下页";
this.btnNext.Click += new System.EventHandler(this.btnNext_Click); this.btnNext.Click += new System.EventHandler(this.btnNext_Click);
// //
// lblPage // lblPage
// //
this.lblPage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); this.lblPage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
this.lblPage.AutoSize = true; this.lblPage.AutoSize = true;
this.lblPage.Location = new System.Drawing.Point(269, 0); this.lblPage.Location = new System.Drawing.Point(269, 0);
this.lblPage.Name = "lblPage"; this.lblPage.Name = "lblPage";
this.lblPage.Size = new System.Drawing.Size(39, 20); this.lblPage.Size = new System.Drawing.Size(39, 20);
this.lblPage.TabIndex = 436; this.lblPage.TabIndex = 436;
this.lblPage.Text = "1/1页"; this.lblPage.Text = "1/1页";
this.lblPage.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lblPage.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// flowLayoutPanel1 // flowLayoutPanel1
// //
this.flowLayoutPanel1.Location = new System.Drawing.Point(3, 3); this.flowLayoutPanel1.Location = new System.Drawing.Point(3, 3);
this.flowLayoutPanel1.Name = "flowLayoutPanel1"; this.flowLayoutPanel1.Name = "flowLayoutPanel1";
this.flowLayoutPanel1.Size = new System.Drawing.Size(200, 100); this.flowLayoutPanel1.Size = new System.Drawing.Size(200, 100);
this.flowLayoutPanel1.TabIndex = 437; this.flowLayoutPanel1.TabIndex = 437;
// //
// flowLayoutPanel2 // flowLayoutPanel2
// //
this.flowLayoutPanel2.Controls.Add(this.btnJump); this.flowLayoutPanel2.Controls.Add(this.btnJump);
this.flowLayoutPanel2.Controls.Add(this.label1); this.flowLayoutPanel2.Controls.Add(this.label1);
this.flowLayoutPanel2.Controls.Add(this.txtJumpPage); this.flowLayoutPanel2.Controls.Add(this.txtJumpPage);
this.flowLayoutPanel2.Controls.Add(this.lblJump); this.flowLayoutPanel2.Controls.Add(this.lblJump);
this.flowLayoutPanel2.Controls.Add(this.btnNext); this.flowLayoutPanel2.Controls.Add(this.btnNext);
this.flowLayoutPanel2.Controls.Add(this.lblPage); this.flowLayoutPanel2.Controls.Add(this.lblPage);
this.flowLayoutPanel2.Controls.Add(this.btnPrev); this.flowLayoutPanel2.Controls.Add(this.btnPrev);
this.flowLayoutPanel2.Controls.Add(this.lblTotal); this.flowLayoutPanel2.Controls.Add(this.lblTotal);
this.flowLayoutPanel2.Controls.Add(this.lblPageSize); this.flowLayoutPanel2.Controls.Add(this.lblPageSize);
this.flowLayoutPanel2.Controls.Add(this.cmbPageSize); this.flowLayoutPanel2.Controls.Add(this.cmbPageSize);
this.flowLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; this.flowLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.flowLayoutPanel2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.flowLayoutPanel2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.flowLayoutPanel2.Location = new System.Drawing.Point(0, 0); this.flowLayoutPanel2.Location = new System.Drawing.Point(0, 0);
this.flowLayoutPanel2.Margin = new System.Windows.Forms.Padding(0); this.flowLayoutPanel2.Margin = new System.Windows.Forms.Padding(0);
this.flowLayoutPanel2.Name = "flowLayoutPanel2"; this.flowLayoutPanel2.Name = "flowLayoutPanel2";
this.flowLayoutPanel2.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.flowLayoutPanel2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.flowLayoutPanel2.Size = new System.Drawing.Size(480, 23); this.flowLayoutPanel2.Size = new System.Drawing.Size(480, 23);
this.flowLayoutPanel2.TabIndex = 0; this.flowLayoutPanel2.TabIndex = 0;
// //
// btnJump // btnJump
// //
this.btnJump.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); this.btnJump.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
this.btnJump.AutoSize = true; this.btnJump.AutoSize = true;
this.btnJump.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.btnJump.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnJump.Cursor = System.Windows.Forms.Cursors.Hand; this.btnJump.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnJump.DisabledBackColor = System.Drawing.Color.Empty; this.btnJump.DisabledBackColor = System.Drawing.Color.Empty;
this.btnJump.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnJump.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnJump.Location = new System.Drawing.Point(446, 0); this.btnJump.Location = new System.Drawing.Point(446, 0);
this.btnJump.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0); this.btnJump.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0);
this.btnJump.Name = "btnJump"; this.btnJump.Name = "btnJump";
this.btnJump.Size = new System.Drawing.Size(31, 20); this.btnJump.Size = new System.Drawing.Size(31, 20);
this.btnJump.Style.Alignment = System.Drawing.StringAlignment.Center; this.btnJump.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnJump.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnJump.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnJump.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255))))); this.btnJump.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnJump.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; this.btnJump.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnJump.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash; this.btnJump.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnJump.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None; this.btnJump.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnJump.Style.ForeColor.Color = System.Drawing.Color.White; this.btnJump.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnJump.Style.GradientAngle = 90; this.btnJump.Style.GradientAngle = 90;
this.btnJump.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; this.btnJump.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnJump.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); this.btnJump.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnJump.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); this.btnJump.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnJump.TabIndex = 439; this.btnJump.TabIndex = 439;
this.btnJump.Text = "跳转"; this.btnJump.Text = "跳转";
this.btnJump.Click += new System.EventHandler(this.pnlJump_Click); this.btnJump.Click += new System.EventHandler(this.pnlJump_Click);
// //
// label1 // label1
// //
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(423, 0); this.label1.Location = new System.Drawing.Point(423, 0);
this.label1.Margin = new System.Windows.Forms.Padding(0); this.label1.Margin = new System.Windows.Forms.Padding(0);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(20, 20); this.label1.Size = new System.Drawing.Size(20, 20);
this.label1.TabIndex = 445; this.label1.TabIndex = 445;
this.label1.Text = "页"; this.label1.Text = "页";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// txtJumpPage // txtJumpPage
// //
this.txtJumpPage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); this.txtJumpPage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
// //
// //
// //
this.txtJumpPage.Border.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; this.txtJumpPage.Border.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.txtJumpPage.Border.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; this.txtJumpPage.Border.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.txtJumpPage.Border.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; this.txtJumpPage.Border.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.txtJumpPage.Border.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; this.txtJumpPage.Border.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.txtJumpPage.Border.Class = "CrumbBarBackgroundKey"; this.txtJumpPage.Border.Class = "CrumbBarBackgroundKey";
this.txtJumpPage.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.txtJumpPage.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.txtJumpPage.Border.PaddingBottom = 2; this.txtJumpPage.Border.PaddingBottom = 2;
this.txtJumpPage.Border.PaddingLeft = 2; this.txtJumpPage.Border.PaddingLeft = 2;
this.txtJumpPage.Border.PaddingRight = 2; this.txtJumpPage.Border.PaddingRight = 2;
this.txtJumpPage.Border.PaddingTop = 2; this.txtJumpPage.Border.PaddingTop = 2;
this.txtJumpPage.Font = new System.Drawing.Font("微软雅黑", 7.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtJumpPage.Font = new System.Drawing.Font("微软雅黑", 7.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtJumpPage.Location = new System.Drawing.Point(393, 0); this.txtJumpPage.Location = new System.Drawing.Point(393, 0);
this.txtJumpPage.Margin = new System.Windows.Forms.Padding(0); this.txtJumpPage.Margin = new System.Windows.Forms.Padding(0);
this.txtJumpPage.Name = "txtJumpPage"; this.txtJumpPage.Name = "txtJumpPage";
this.txtJumpPage.Size = new System.Drawing.Size(30, 21); this.txtJumpPage.Size = new System.Drawing.Size(30, 21);
this.txtJumpPage.TabIndex = 444; this.txtJumpPage.TabIndex = 444;
this.txtJumpPage.Text = "1"; this.txtJumpPage.Text = "1";
// //
// lblJump // lblJump
// //
this.lblJump.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); this.lblJump.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
this.lblJump.AutoSize = true; this.lblJump.AutoSize = true;
this.lblJump.Location = new System.Drawing.Point(345, 0); this.lblJump.Location = new System.Drawing.Point(345, 0);
this.lblJump.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); this.lblJump.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
this.lblJump.Name = "lblJump"; this.lblJump.Name = "lblJump";
this.lblJump.Size = new System.Drawing.Size(48, 20); this.lblJump.Size = new System.Drawing.Size(48, 20);
this.lblJump.TabIndex = 437; this.lblJump.TabIndex = 437;
this.lblJump.Text = "跳转到 "; this.lblJump.Text = "跳转到 ";
this.lblJump.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lblJump.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// lblTotal // lblTotal
// //
this.lblTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); this.lblTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
this.lblTotal.AutoSize = true; this.lblTotal.AutoSize = true;
this.lblTotal.Location = new System.Drawing.Point(196, 0); this.lblTotal.Location = new System.Drawing.Point(196, 0);
this.lblTotal.Margin = new System.Windows.Forms.Padding(0); this.lblTotal.Margin = new System.Windows.Forms.Padding(0);
this.lblTotal.Name = "lblTotal"; this.lblTotal.Name = "lblTotal";
this.lblTotal.Size = new System.Drawing.Size(39, 20); this.lblTotal.Size = new System.Drawing.Size(39, 20);
this.lblTotal.TabIndex = 446; this.lblTotal.TabIndex = 446;
this.lblTotal.Text = "共1条"; this.lblTotal.Text = "共1条";
this.lblTotal.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lblTotal.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// this.lblTotal.Visible = false;
// lblPageSize //
// // lblPageSize
this.lblPageSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); //
this.lblPageSize.AutoSize = true; this.lblPageSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
this.lblPageSize.Location = new System.Drawing.Point(153, 0); this.lblPageSize.AutoSize = true;
this.lblPageSize.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); this.lblPageSize.Location = new System.Drawing.Point(153, 0);
this.lblPageSize.Name = "lblPageSize"; this.lblPageSize.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.lblPageSize.Size = new System.Drawing.Size(37, 20); this.lblPageSize.Name = "lblPageSize";
this.lblPageSize.TabIndex = 453; this.lblPageSize.Size = new System.Drawing.Size(37, 20);
this.lblPageSize.Text = "条/页"; this.lblPageSize.TabIndex = 453;
this.lblPageSize.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lblPageSize.Text = "条/页";
this.lblPageSize.Visible = false; this.lblPageSize.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// this.lblPageSize.Visible = false;
// cmbPageSize //
// // cmbPageSize
this.cmbPageSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); //
this.cmbPageSize.Font = new System.Drawing.Font("微软雅黑", 7F); this.cmbPageSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
this.cmbPageSize.FormattingEnabled = true; this.cmbPageSize.Font = new System.Drawing.Font("微软雅黑", 7F);
this.cmbPageSize.Items.AddRange(new object[] { this.cmbPageSize.FormattingEnabled = true;
this.cmbPageSize.Items.AddRange(new object[] {
"50", "50",
"100", "100",
"200", "200",
@@ -250,26 +251,26 @@ namespace TemuKJD.UserControls
"1000", "1000",
"2000", "2000",
"5000"}); "5000"});
this.cmbPageSize.Location = new System.Drawing.Point(108, 0); this.cmbPageSize.Location = new System.Drawing.Point(108, 0);
this.cmbPageSize.Margin = new System.Windows.Forms.Padding(0); this.cmbPageSize.Margin = new System.Windows.Forms.Padding(0);
this.cmbPageSize.Name = "cmbPageSize"; this.cmbPageSize.Name = "cmbPageSize";
this.cmbPageSize.RightToLeft = System.Windows.Forms.RightToLeft.No; this.cmbPageSize.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.cmbPageSize.Size = new System.Drawing.Size(45, 22); this.cmbPageSize.Size = new System.Drawing.Size(45, 22);
this.cmbPageSize.TabIndex = 452; this.cmbPageSize.TabIndex = 452;
this.cmbPageSize.Text = "50"; this.cmbPageSize.Text = "50";
this.cmbPageSize.Visible = false; this.cmbPageSize.Visible = false;
// //
// UcSplitPage // UcSplitPage
// //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.Controls.Add(this.flowLayoutPanel2); this.Controls.Add(this.flowLayoutPanel2);
this.Controls.Add(this.flowLayoutPanel1); this.Controls.Add(this.flowLayoutPanel1);
this.Margin = new System.Windows.Forms.Padding(0); this.Margin = new System.Windows.Forms.Padding(0);
this.Name = "UcSplitPage"; this.Name = "UcSplitPage";
this.Size = new System.Drawing.Size(480, 23); this.Size = new System.Drawing.Size(480, 23);
this.flowLayoutPanel2.ResumeLayout(false); this.flowLayoutPanel2.ResumeLayout(false);
this.flowLayoutPanel2.PerformLayout(); this.flowLayoutPanel2.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
+20 -1
View File
@@ -32,7 +32,26 @@ namespace TemuKJD.UserControls
} }
} }
} }
long totalCount = 0; /// <summary>
/// 是否显示总条数
/// </summary>
[Description("显示总条数"), Category("UserProperty")]
public bool IsShowTotalCount
{
get
{
return this.lblTotal.Visible;
}
set
{
if (lblTotal.Visible != value)
{
this.lblTotal.Visible = value;
this.Invalidate();
}
}
}
long totalCount = 0;
/// <summary> /// <summary>
/// 总数量 /// 总数量
/// </summary> /// </summary>
@@ -192,14 +192,16 @@ namespace TemuKJD.WXForms.ProductForms
Task.Run(() => Task.Run(() =>
{ {
int pageCount; int pageCount;
int totalCount;
int pageSize = 100; int pageSize = 100;
decimal seconds; decimal seconds;
Invoke(new Action(() => { pageSize = this.ucSplitPage1.PageSize; })); Invoke(new Action(() => { pageSize = this.ucSplitPage1.PageSize; }));
var list = GetProductList(out pageCount, out seconds, page, pageSize, isNotCount); var list = GetProductList(out pageCount, out totalCount, out seconds, page, pageSize, isNotCount);
lstTemuDbProduct.AddRange(list); lstTemuDbProduct.AddRange(list);
this.ucSplitPage1.TotalPage = pageCount; this.ucSplitPage1.TotalPage = pageCount;
this.ucSplitPage1.TotalCount = totalCount;
if (defaultBitmap == null) if (defaultBitmap == null)
defaultBitmap = new Bitmap(80, 80); defaultBitmap = new Bitmap(80, 80);
// 获取Bitmap的Graphics对象 // 获取Bitmap的Graphics对象
using (Graphics g = Graphics.FromImage(defaultBitmap)) using (Graphics g = Graphics.FromImage(defaultBitmap))
@@ -367,11 +369,12 @@ namespace TemuKJD.WXForms.ProductForms
}); });
} }
public List<KJDDBProduct> GetProductList(out int pageCount, out decimal seconds, int page = 1, int pageSize = 200, bool isNotCount = true) public List<KJDDBProduct> GetProductList(out int pageCount, out int totalNum, out decimal seconds, int page = 1, int pageSize = 200, bool isNotCount = true)
{ {
List<KJDDBProduct> list = new List<KJDDBProduct>(); List<KJDDBProduct> list = new List<KJDDBProduct>();
pageCount = 1; pageCount = 1;
seconds = 0; totalNum = 0;
seconds = 0;
var url = BaseClass.BuildPDDObjString("product/get_product_list"); var url = BaseClass.BuildPDDObjString("product/get_product_list");
if (shop != null && shop.DbId.ParseToInt() != 0) if (shop != null && shop.DbId.ParseToInt() != 0)
@@ -523,8 +526,8 @@ namespace TemuKJD.WXForms.ProductForms
} }
seconds = BaseRegex.GetDecimalJson(ref html, "seconds"); seconds = BaseRegex.GetDecimalJson(ref html, "seconds");
int count = BaseRegex.GetIntJson(ref html, "count"); totalNum = BaseRegex.GetIntJson(ref html, "count");
pageCount = Math.Ceiling(1.0 * count / pageSize).ParseToInt(); pageCount = Math.Ceiling(1.0 * totalNum / pageSize).ParseToInt();
pageCount = Math.Max(pageCount, 1); pageCount = Math.Max(pageCount, 1);
if (isNotCount) if (isNotCount)
pageCount = 1000; pageCount = 1000;