1优化店铺查询 2数据库上传次数统计优化

This commit is contained in:
wule committed 2026-01-05 21:14:45 +08:00
1 parent ed5aec05ca
commit ba5dfe3264
18 files changed
+414 -186

No files matched your search

@@ -39,6 +39,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MarketingActivityForm));
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
this.btnSearchShop = new DevComponents.DotNetBar.PanelEx();
this.btnEmpty = new DevComponents.DotNetBar.PanelEx();
this.txtNotes = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
@@ -72,6 +73,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
this.label5 = new System.Windows.Forms.Label();
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.pbShopLoading = new System.Windows.Forms.PictureBox();
this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
this.colSelect = new TemuKJD.UserComponent.UcDataGridViewCheckBoxColumn(this.components);
this.colShopLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -117,8 +119,8 @@ namespace TemuKJD.KJDForms.SalesCenterForms
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
this.btnClear = new DevComponents.DotNetBar.PanelEx();
this.panel1 = new System.Windows.Forms.Panel();
this.btnSearchShop = new DevComponents.DotNetBar.PanelEx();
this.pbShopLoading = new System.Windows.Forms.PictureBox();
this.txtSubAccount = new System.Windows.Forms.TextBox();
this.lblSubAccount = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@@ -138,6 +140,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout();
this.splitContainer2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pbShopLoading)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).BeginInit();
this.splitContainer5.Panel1.SuspendLayout();
@@ -150,7 +153,6 @@ namespace TemuKJD.KJDForms.SalesCenterForms
this.splitContainer4.Panel2.SuspendLayout();
this.splitContainer4.SuspendLayout();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pbShopLoading)).BeginInit();
this.SuspendLayout();
//
// splitContainer1
@@ -180,6 +182,8 @@ namespace TemuKJD.KJDForms.SalesCenterForms
| System.Windows.Forms.AnchorStyles.Left)));
this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
this.ucGroupBoxEx1.Controls.Add(this.txtSubAccount);
this.ucGroupBoxEx1.Controls.Add(this.lblSubAccount);
this.ucGroupBoxEx1.Controls.Add(this.btnSearchShop);
this.ucGroupBoxEx1.Controls.Add(this.btnEmpty);
this.ucGroupBoxEx1.Controls.Add(this.txtNotes);
@@ -196,6 +200,30 @@ namespace TemuKJD.KJDForms.SalesCenterForms
this.ucGroupBoxEx1.TabStop = false;
this.ucGroupBoxEx1.Text = "基础";
//
// btnSearchShop
//
this.btnSearchShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnSearchShop.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSearchShop.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSearchShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSearchShop.Location = new System.Drawing.Point(138, 90);
this.btnSearchShop.Name = "btnSearchShop";
this.btnSearchShop.Size = new System.Drawing.Size(61, 23);
this.btnSearchShop.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnSearchShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearchShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearchShop.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnSearchShop.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnSearchShop.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnSearchShop.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnSearchShop.Style.GradientAngle = 90;
this.btnSearchShop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnSearchShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSearchShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSearchShop.TabIndex = 735;
this.btnSearchShop.Text = "查询店铺";
this.btnSearchShop.Click += new System.EventHandler(this.btnSearchShop_Click);
//
// btnEmpty
//
this.btnEmpty.CanvasColor = System.Drawing.SystemColors.Control;
@@ -224,7 +252,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
//
this.txtNotes.Location = new System.Drawing.Point(75, 65);
this.txtNotes.Name = "txtNotes";
this.txtNotes.Size = new System.Drawing.Size(186, 23);
this.txtNotes.Size = new System.Drawing.Size(70, 23);
this.txtNotes.TabIndex = 723;
//
// label14
@@ -653,6 +681,18 @@ namespace TemuKJD.KJDForms.SalesCenterForms
this.splitContainer2.SplitterDistance = 280;
this.splitContainer2.TabIndex = 0;
//
// pbShopLoading
//
this.pbShopLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pbShopLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
this.pbShopLoading.Location = new System.Drawing.Point(117, 181);
this.pbShopLoading.Name = "pbShopLoading";
this.pbShopLoading.Size = new System.Drawing.Size(50, 50);
this.pbShopLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pbShopLoading.TabIndex = 190;
this.pbShopLoading.TabStop = false;
this.pbShopLoading.Visible = false;
//
// dgvShop
//
this.dgvShop.AllowUserToAddRows = false;
@@ -1165,41 +1205,21 @@ namespace TemuKJD.KJDForms.SalesCenterForms
this.panel1.Size = new System.Drawing.Size(1438, 566);
this.panel1.TabIndex = 12;
//
// btnSearchShop
// txtSubAccount
//
this.btnSearchShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnSearchShop.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSearchShop.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSearchShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSearchShop.Location = new System.Drawing.Point(138, 90);
this.btnSearchShop.Name = "btnSearchShop";
this.btnSearchShop.Size = new System.Drawing.Size(61, 23);
this.btnSearchShop.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnSearchShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearchShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearchShop.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnSearchShop.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnSearchShop.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnSearchShop.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnSearchShop.Style.GradientAngle = 90;
this.btnSearchShop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnSearchShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSearchShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSearchShop.TabIndex = 735;
this.btnSearchShop.Text = "查询店铺";
this.btnSearchShop.Click += new System.EventHandler(this.btnSearchShop_Click);
this.txtSubAccount.Location = new System.Drawing.Point(191, 65);
this.txtSubAccount.Name = "txtSubAccount";
this.txtSubAccount.Size = new System.Drawing.Size(70, 23);
this.txtSubAccount.TabIndex = 745;
//
// pbShopLoading
// lblSubAccount
//
this.pbShopLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pbShopLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
this.pbShopLoading.Location = new System.Drawing.Point(117, 181);
this.pbShopLoading.Name = "pbShopLoading";
this.pbShopLoading.Size = new System.Drawing.Size(50, 50);
this.pbShopLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pbShopLoading.TabIndex = 190;
this.pbShopLoading.TabStop = false;
this.pbShopLoading.Visible = false;
this.lblSubAccount.AutoSize = true;
this.lblSubAccount.Location = new System.Drawing.Point(146, 68);
this.lblSubAccount.Name = "lblSubAccount";
this.lblSubAccount.Size = new System.Drawing.Size(56, 17);
this.lblSubAccount.TabIndex = 746;
this.lblSubAccount.Text = "子账号:";
//
// MarketingActivityForm
//
@@ -1240,6 +1260,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
this.splitContainer2.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
this.splitContainer2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pbShopLoading)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit();
this.splitContainer5.Panel1.ResumeLayout(false);
this.splitContainer5.Panel1.PerformLayout();
@@ -1253,7 +1274,6 @@ namespace TemuKJD.KJDForms.SalesCenterForms
((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit();
this.splitContainer4.ResumeLayout(false);
this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pbShopLoading)).EndInit();
this.ResumeLayout(false);
}
@@ -1342,5 +1362,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
private System.Windows.Forms.DataGridViewTextBoxColumn colMessage;
private DevComponents.DotNetBar.PanelEx btnSearchShop;
private System.Windows.Forms.PictureBox pbShopLoading;
private System.Windows.Forms.TextBox txtSubAccount;
private System.Windows.Forms.Label lblSubAccount;
}
}
@@ -88,6 +88,13 @@ namespace TemuKJD.KJDForms.SalesCenterForms
this.actDiscount70.chkSignActivity.CheckedChanged += ChkSignActivity_CheckedChanged;
this.actDiscount80.chkSignActivity.CheckedChanged += ChkSignActivity_CheckedChanged;
this.actDiscount85.chkSignActivity.CheckedChanged += ChkSignActivity_CheckedChanged;
if (BaseClass.GroupId != 3)
{
this.txtSubAccount.Visible = false;
this.lblSubAccount.Visible = false;
this.txtNotes.Width = txtShopName.Width;
}
}
private void ChkSignActivity_CheckedChanged(object sender, EventArgs e)
@@ -195,6 +202,13 @@ namespace TemuKJD.KJDForms.SalesCenterForms
{
shopLst = shopLst.Where(s => ("," + txtNotes.Text.Trim() + ",").Contains("," + s.Notes + ",") || s.Notes.ToLower().Contains(txtNotes.Text.Trim().ToLower())).ToList();
}
if (BaseClass.GroupId == 3)
{
if (!string.IsNullOrWhiteSpace(txtSubAccount.Text.Trim()))
{
shopLst = shopLst.Where(s => ("," + txtSubAccount.Text.Trim() + ",").Contains("," + s.SubUserName + ",") || s.SubUserName.Contains(txtSubAccount.Text.Trim())).ToList();
}
}
// 获取被删除的店铺
List<DataGridViewRow> dgvRowList = dgvShop.Rows.Cast<DataGridViewRow>().Where(row
@@ -215,6 +229,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
private void btnEmpty_Click(object sender, EventArgs e)
{
txtNotes.Text = txtShopId.Text = txtShopName.Text = "";
txtSubAccount.Text = "";
FiltShop();
}