优化客服统计功能

This commit is contained in:
wule committed 2026-02-05 19:32:45 +08:00
1 parent a2a6719a99
commit 4fd8d9cc17
17 files changed
+1218 -471

No files matched your search

+96 -58
View File
@@ -38,17 +38,19 @@
this.btnCheck = new TemuKJD.UserControls.ButtonEx();
this.panel4 = new System.Windows.Forms.Panel();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.label5 = new System.Windows.Forms.Label();
this.cmbGroup = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
this.label2 = new System.Windows.Forms.Label();
this.cmbNotes = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
this.txtShopId = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.txtShopName = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.cmbSubAccount = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
this.btnRefreshShop = new DevComponents.DotNetBar.PanelEx();
this.pnlEmpty = new DevComponents.DotNetBar.PanelEx();
this.btnSearch = new DevComponents.DotNetBar.PanelEx();
this.cmbSubAccount = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.btnOpenOrder = new TemuKJD.UserControls.ButtonEx();
this.btnAddShop = new TemuKJD.UserControls.ButtonEx();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
@@ -199,46 +201,58 @@
//
this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanel1.ColumnCount = 11;
this.tableLayoutPanel1.ColumnCount = 17;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25.00067F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20.00054F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25.00066F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20.00053F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25.00066F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20.00053F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 24.99801F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 19.99841F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 2F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 60F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 2F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 60F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 2F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 60F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel1.Controls.Add(this.label5, 6, 0);
this.tableLayoutPanel1.Controls.Add(this.cmbGroup, 7, 0);
this.tableLayoutPanel1.Controls.Add(this.label2, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.cmbNotes, 5, 0);
this.tableLayoutPanel1.Controls.Add(this.txtShopId, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.label3, 2, 0);
this.tableLayoutPanel1.Controls.Add(this.txtShopName, 3, 0);
this.tableLayoutPanel1.Controls.Add(this.label4, 4, 0);
this.tableLayoutPanel1.Controls.Add(this.cmbSubAccount, 7, 0);
this.tableLayoutPanel1.Controls.Add(this.btnRefreshShop, 8, 0);
this.tableLayoutPanel1.Controls.Add(this.pnlEmpty, 10, 0);
this.tableLayoutPanel1.Controls.Add(this.btnSearch, 9, 0);
this.tableLayoutPanel1.Location = new System.Drawing.Point(94, 1);
this.tableLayoutPanel1.Controls.Add(this.btnRefreshShop, 11, 0);
this.tableLayoutPanel1.Controls.Add(this.pnlEmpty, 15, 0);
this.tableLayoutPanel1.Controls.Add(this.btnSearch, 13, 0);
this.tableLayoutPanel1.Controls.Add(this.cmbSubAccount, 9, 0);
this.tableLayoutPanel1.Controls.Add(this.label5, 8, 0);
this.tableLayoutPanel1.Controls.Add(this.label6, 6, 0);
this.tableLayoutPanel1.Location = new System.Drawing.Point(94, 0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 1;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(719, 39);
this.tableLayoutPanel1.Size = new System.Drawing.Size(719, 40);
this.tableLayoutPanel1.TabIndex = 375;
//
// label5
// cmbGroup
//
this.label5.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(398, 11);
this.label5.Margin = new System.Windows.Forms.Padding(3, 3, 0, 3);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(44, 17);
this.label5.TabIndex = 414;
this.label5.Text = "子账户";
this.cmbGroup.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbGroup.DefaultText = "全部";
this.cmbGroup.DropDownHeight = 1;
this.cmbGroup.DropDownWidth = 1;
this.cmbGroup.FormattingEnabled = true;
this.cmbGroup.IntegralHeight = false;
this.cmbGroup.Location = new System.Drawing.Point(355, 8);
this.cmbGroup.Margin = new System.Windows.Forms.Padding(0, 0, 0, 4);
this.cmbGroup.Name = "cmbGroup";
this.cmbGroup.Size = new System.Drawing.Size(64, 25);
this.cmbGroup.TabIndex = 803;
this.cmbGroup.Text = "全部";
//
// label2
//
@@ -259,10 +273,10 @@
this.cmbNotes.DropDownWidth = 1;
this.cmbNotes.FormattingEnabled = true;
this.cmbNotes.IntegralHeight = false;
this.cmbNotes.Location = new System.Drawing.Point(314, 6);
this.cmbNotes.Margin = new System.Windows.Forms.Padding(0, 1, 0, 3);
this.cmbNotes.Location = new System.Drawing.Point(256, 8);
this.cmbNotes.Margin = new System.Windows.Forms.Padding(0, 0, 0, 4);
this.cmbNotes.Name = "cmbNotes";
this.cmbNotes.Size = new System.Drawing.Size(81, 25);
this.cmbNotes.Size = new System.Drawing.Size(64, 25);
this.cmbNotes.TabIndex = 413;
this.cmbNotes.Text = "全部";
//
@@ -272,14 +286,14 @@
this.txtShopId.Location = new System.Drawing.Point(46, 8);
this.txtShopId.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.txtShopId.Name = "txtShopId";
this.txtShopId.Size = new System.Drawing.Size(81, 23);
this.txtShopId.Size = new System.Drawing.Size(64, 23);
this.txtShopId.TabIndex = 372;
//
// label3
//
this.label3.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(130, 11);
this.label3.Location = new System.Drawing.Point(113, 11);
this.label3.Margin = new System.Windows.Forms.Padding(3, 3, 0, 3);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(44, 17);
@@ -289,37 +303,22 @@
// txtShopName
//
this.txtShopName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.txtShopName.Location = new System.Drawing.Point(174, 8);
this.txtShopName.Location = new System.Drawing.Point(157, 8);
this.txtShopName.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.txtShopName.Name = "txtShopName";
this.txtShopName.Size = new System.Drawing.Size(81, 23);
this.txtShopName.Size = new System.Drawing.Size(64, 23);
this.txtShopName.TabIndex = 374;
//
// label4
//
this.label4.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(258, 11);
this.label4.Location = new System.Drawing.Point(224, 11);
this.label4.Margin = new System.Windows.Forms.Padding(3, 3, 0, 3);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(56, 17);
this.label4.Size = new System.Drawing.Size(32, 17);
this.label4.TabIndex = 377;
this.label4.Text = "分组备注";
//
// cmbSubAccount
//
this.cmbSubAccount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbSubAccount.DefaultText = "全部";
this.cmbSubAccount.DropDownHeight = 1;
this.cmbSubAccount.DropDownWidth = 1;
this.cmbSubAccount.FormattingEnabled = true;
this.cmbSubAccount.IntegralHeight = false;
this.cmbSubAccount.Location = new System.Drawing.Point(442, 8);
this.cmbSubAccount.Margin = new System.Windows.Forms.Padding(0, 1, 0, 3);
this.cmbSubAccount.Name = "cmbSubAccount";
this.cmbSubAccount.Size = new System.Drawing.Size(80, 25);
this.cmbSubAccount.TabIndex = 415;
this.cmbSubAccount.Text = "全部";
this.label4.Text = "备注";
//
// btnRefreshShop
//
@@ -328,10 +327,10 @@
this.btnRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnRefreshShop.DisabledBackColor = System.Drawing.Color.Empty;
this.btnRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnRefreshShop.Location = new System.Drawing.Point(524, 8);
this.btnRefreshShop.Margin = new System.Windows.Forms.Padding(2, 3, 0, 3);
this.btnRefreshShop.Location = new System.Drawing.Point(532, 8);
this.btnRefreshShop.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.btnRefreshShop.Name = "btnRefreshShop";
this.btnRefreshShop.Size = new System.Drawing.Size(58, 23);
this.btnRefreshShop.Size = new System.Drawing.Size(60, 23);
this.btnRefreshShop.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnRefreshShop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnRefreshShop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
@@ -353,10 +352,10 @@
this.pnlEmpty.CanvasColor = System.Drawing.SystemColors.Control;
this.pnlEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.pnlEmpty.DisabledBackColor = System.Drawing.Color.Empty;
this.pnlEmpty.Location = new System.Drawing.Point(644, 8);
this.pnlEmpty.Margin = new System.Windows.Forms.Padding(2, 3, 0, 3);
this.pnlEmpty.Location = new System.Drawing.Point(656, 8);
this.pnlEmpty.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.pnlEmpty.Name = "pnlEmpty";
this.pnlEmpty.Size = new System.Drawing.Size(75, 23);
this.pnlEmpty.Size = new System.Drawing.Size(60, 23);
this.pnlEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
this.pnlEmpty.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.pnlEmpty.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
@@ -380,10 +379,10 @@
this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSearch.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSearch.Location = new System.Drawing.Point(584, 8);
this.btnSearch.Margin = new System.Windows.Forms.Padding(2, 3, 0, 3);
this.btnSearch.Location = new System.Drawing.Point(594, 8);
this.btnSearch.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(58, 23);
this.btnSearch.Size = new System.Drawing.Size(60, 23);
this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnSearch.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearch.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
@@ -399,6 +398,43 @@
this.btnSearch.Text = "筛选";
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
//
// cmbSubAccount
//
this.cmbSubAccount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbSubAccount.DefaultText = "全部";
this.cmbSubAccount.DropDownHeight = 1;
this.cmbSubAccount.DropDownWidth = 1;
this.cmbSubAccount.FormattingEnabled = true;
this.cmbSubAccount.IntegralHeight = false;
this.cmbSubAccount.Location = new System.Drawing.Point(466, 8);
this.cmbSubAccount.Margin = new System.Windows.Forms.Padding(0, 0, 0, 4);
this.cmbSubAccount.Name = "cmbSubAccount";
this.cmbSubAccount.Size = new System.Drawing.Size(64, 25);
this.cmbSubAccount.TabIndex = 415;
this.cmbSubAccount.Text = "全部";
//
// label5
//
this.label5.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(422, 11);
this.label5.Margin = new System.Windows.Forms.Padding(3, 3, 0, 3);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(44, 17);
this.label5.TabIndex = 414;
this.label5.Text = "子账户";
//
// label6
//
this.label6.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(323, 11);
this.label6.Margin = new System.Windows.Forms.Padding(3, 3, 0, 3);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(32, 17);
this.label6.TabIndex = 415;
this.label6.Text = "分组";
//
// btnOpenOrder
//
this.btnOpenOrder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -866,5 +902,7 @@
private UserComponent.UcComboBoxMutiSelect cmbSubAccount;
private DevComponents.DotNetBar.PanelEx btnSearch;
private DevComponents.DotNetBar.PanelEx btnRefreshShop;
private UserComponent.UcComboBoxMutiSelect cmbGroup;
private System.Windows.Forms.Label label6;
}
}
@@ -398,6 +398,10 @@ namespace TemuKJD.WXForms.ShopForms
var notes = GlobalConfig.ShopLoginList.Select(s => s.Notes).Distinct();
cmbNotes.Items.AddRange(notes.Where(n => !n.IsNullOrEmpty()).ToArray());
cmbGroup.Items.Clear();
var groups = GlobalConfig.ShopLoginList.Select(s => s.GroupName).Distinct();
cmbGroup.Items.AddRange(groups.Where(n => !n.IsNullOrEmpty()).ToArray());
cmbSubAccount.Items.Clear();
var subAccountStr = string.Join(",", GlobalConfig.ShopLoginList.Select(s => s.SubUserName).Distinct());
var subAccounts = subAccountStr.Split(',').Distinct();
@@ -416,6 +420,12 @@ namespace TemuKJD.WXForms.ShopForms
var notesLst = cmbNotes.Text.ToLower().Split(new string[] { ";", ",", ",", " " }, StringSplitOptions.RemoveEmptyEntries);
shopList = shopList.Where(s => s.Notes.ParseToString().ToLower().Contains(notes) || notesLst.Contains(s.Notes.ParseToString().ToLower())).ToList();
}
if (!string.IsNullOrWhiteSpace(cmbGroup.Text) && cmbGroup.Text.Trim() != "全部")
{
var group = cmbGroup.Text.ToLower();
var groupLst = cmbGroup.Text.ToLower().Split(new string[] { ";", ",", ",", " " }, StringSplitOptions.RemoveEmptyEntries);
shopList = shopList.Where(s => s.GroupName.ParseToString().ToLower().Contains(group) || groupLst.Contains(s.GroupName.ParseToString().ToLower())).ToList();
}
if (!string.IsNullOrWhiteSpace(cmbSubAccount.Text) && cmbSubAccount.Text.Trim() != "全部")
{
var subAccount = cmbSubAccount.Text.ToLower();
@@ -1038,6 +1048,7 @@ namespace TemuKJD.WXForms.ShopForms
{
this.cmbNotes.Text = "全部";
this.cmbSubAccount.Text = "全部";
this.cmbGroup.Text = "全部";
this.txtShopId.Text = "";
this.txtShopName.Text = "";
}