店铺考核提供备注功能 微信带货助手采集功能
This commit is contained in:
1 parent
4fa1fc03ca
commit
119b2f4f3e
64 files changed
+7940
-908
No files matched your search
+180
-134
@@ -47,20 +47,6 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.chkIsAutoReply = new System.Windows.Forms.CheckBox();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.colSelect = new TemuKJD.UserComponent.UcDataGridViewCheckBoxColumn(this.components);
|
||||
this.colShopLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colLoginStatus = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colAutoReplyCount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colWaitSend = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colWayBillError = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colAfterSale = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colPunishCount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colScore = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.pbLoading = new System.Windows.Forms.PictureBox();
|
||||
this.lblTalkCount = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
@@ -104,6 +90,23 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dataGridViewLinkColumn2 = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colSelect = new TemuKJD.UserComponent.UcDataGridViewCheckBoxColumn(this.components);
|
||||
this.colShopLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colGroup = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colLoginStatus = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colAutoReplyCount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colWaitSend = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colWayBillError = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colAfterSale = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colPunishCount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colScore = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.cmbFiltGroups = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbLogo)).BeginInit();
|
||||
this.panel3.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
@@ -367,6 +370,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//
|
||||
// splitContainer4.Panel2
|
||||
//
|
||||
this.splitContainer4.Panel2.Controls.Add(this.cmbFiltGroups);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.pbLoading);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.lblTalkCount);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.label6);
|
||||
@@ -384,6 +388,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.splitContainer4.Panel2.Controls.Add(this.label2);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.label3);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.line1);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.label5);
|
||||
this.splitContainer4.Size = new System.Drawing.Size(496, 548);
|
||||
this.splitContainer4.SplitterDistance = 450;
|
||||
this.splitContainer4.TabIndex = 7;
|
||||
@@ -411,6 +416,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.colShopLoginName,
|
||||
this.colShopId,
|
||||
this.colShopName,
|
||||
this.colGroup,
|
||||
this.colShopNotes,
|
||||
this.colLoginStatus,
|
||||
this.colMessage,
|
||||
@@ -435,115 +441,6 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick);
|
||||
this.dgvShop.CellMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvShop_CellMouseClick);
|
||||
//
|
||||
// colSelect
|
||||
//
|
||||
this.colSelect.HeaderText = "选";
|
||||
this.colSelect.Name = "colSelect";
|
||||
this.colSelect.ReadOnly = true;
|
||||
this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colSelect.Visible = false;
|
||||
this.colSelect.Width = 28;
|
||||
//
|
||||
// colShopLoginName
|
||||
//
|
||||
this.colShopLoginName.HeaderText = "店铺登录名";
|
||||
this.colShopLoginName.Name = "colShopLoginName";
|
||||
this.colShopLoginName.ReadOnly = true;
|
||||
this.colShopLoginName.Visible = false;
|
||||
//
|
||||
// colShopId
|
||||
//
|
||||
this.colShopId.HeaderText = "店铺Id";
|
||||
this.colShopId.Name = "colShopId";
|
||||
this.colShopId.ReadOnly = true;
|
||||
this.colShopId.Visible = false;
|
||||
this.colShopId.Width = 55;
|
||||
//
|
||||
// colShopName
|
||||
//
|
||||
this.colShopName.FillWeight = 150F;
|
||||
this.colShopName.HeaderText = "店铺名称";
|
||||
this.colShopName.Name = "colShopName";
|
||||
this.colShopName.ReadOnly = true;
|
||||
this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colShopName.Width = 70;
|
||||
//
|
||||
// colShopNotes
|
||||
//
|
||||
this.colShopNotes.HeaderText = "备注";
|
||||
this.colShopNotes.Name = "colShopNotes";
|
||||
this.colShopNotes.ReadOnly = true;
|
||||
this.colShopNotes.Width = 70;
|
||||
//
|
||||
// colLoginStatus
|
||||
//
|
||||
this.colLoginStatus.HeaderText = "状态";
|
||||
this.colLoginStatus.Name = "colLoginStatus";
|
||||
this.colLoginStatus.ReadOnly = true;
|
||||
this.colLoginStatus.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colLoginStatus.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colLoginStatus.Width = 38;
|
||||
//
|
||||
// colMessage
|
||||
//
|
||||
this.colMessage.HeaderText = "消息";
|
||||
this.colMessage.Name = "colMessage";
|
||||
this.colMessage.ReadOnly = true;
|
||||
this.colMessage.Width = 90;
|
||||
//
|
||||
// colAutoReplyCount
|
||||
//
|
||||
this.colAutoReplyCount.HeaderText = "自动回复";
|
||||
this.colAutoReplyCount.Name = "colAutoReplyCount";
|
||||
this.colAutoReplyCount.ReadOnly = true;
|
||||
this.colAutoReplyCount.Width = 62;
|
||||
//
|
||||
// colWaitSend
|
||||
//
|
||||
this.colWaitSend.HeaderText = "待发货";
|
||||
this.colWaitSend.Name = "colWaitSend";
|
||||
this.colWaitSend.ReadOnly = true;
|
||||
this.colWaitSend.Width = 50;
|
||||
//
|
||||
// colWayBillError
|
||||
//
|
||||
this.colWayBillError.HeaderText = "物流异常";
|
||||
this.colWayBillError.Name = "colWayBillError";
|
||||
this.colWayBillError.ReadOnly = true;
|
||||
this.colWayBillError.Width = 62;
|
||||
//
|
||||
// colAfterSale
|
||||
//
|
||||
this.colAfterSale.HeaderText = "售后";
|
||||
this.colAfterSale.Name = "colAfterSale";
|
||||
this.colAfterSale.ReadOnly = true;
|
||||
this.colAfterSale.Width = 38;
|
||||
//
|
||||
// colPunishCount
|
||||
//
|
||||
this.colPunishCount.HeaderText = "店铺违规";
|
||||
this.colPunishCount.Name = "colPunishCount";
|
||||
this.colPunishCount.ReadOnly = true;
|
||||
this.colPunishCount.Width = 62;
|
||||
//
|
||||
// colScore
|
||||
//
|
||||
this.colScore.HeaderText = "评分";
|
||||
this.colScore.Name = "colScore";
|
||||
this.colScore.ReadOnly = true;
|
||||
this.colScore.Width = 38;
|
||||
//
|
||||
// colCanUse
|
||||
//
|
||||
this.colCanUse.HeaderText = "可用";
|
||||
this.colCanUse.Name = "colCanUse";
|
||||
this.colCanUse.ReadOnly = true;
|
||||
this.colCanUse.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colCanUse.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colCanUse.Visible = false;
|
||||
this.colCanUse.Width = 28;
|
||||
//
|
||||
// pbLoading
|
||||
//
|
||||
this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
|
||||
@@ -683,9 +580,9 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.cmbFiltNotes.DropDownWidth = 1;
|
||||
this.cmbFiltNotes.FormattingEnabled = true;
|
||||
this.cmbFiltNotes.IntegralHeight = false;
|
||||
this.cmbFiltNotes.Location = new System.Drawing.Point(61, 66);
|
||||
this.cmbFiltNotes.Location = new System.Drawing.Point(208, 66);
|
||||
this.cmbFiltNotes.Name = "cmbFiltNotes";
|
||||
this.cmbFiltNotes.Size = new System.Drawing.Size(252, 25);
|
||||
this.cmbFiltNotes.Size = new System.Drawing.Size(105, 25);
|
||||
this.cmbFiltNotes.TabIndex = 0;
|
||||
this.cmbFiltNotes.Text = "全部";
|
||||
//
|
||||
@@ -793,11 +690,11 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//
|
||||
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(0, 70);
|
||||
this.label3.Location = new System.Drawing.Point(172, 70);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(68, 17);
|
||||
this.label3.Size = new System.Drawing.Size(44, 17);
|
||||
this.label3.TabIndex = 218;
|
||||
this.label3.Text = "店铺备注:";
|
||||
this.label3.Text = "备注:";
|
||||
//
|
||||
// line1
|
||||
//
|
||||
@@ -1143,6 +1040,152 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.dataGridViewLinkColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.dataGridViewLinkColumn2.Width = 106;
|
||||
//
|
||||
// colSelect
|
||||
//
|
||||
this.colSelect.Frozen = true;
|
||||
this.colSelect.HeaderText = "选";
|
||||
this.colSelect.Name = "colSelect";
|
||||
this.colSelect.ReadOnly = true;
|
||||
this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colSelect.Visible = false;
|
||||
this.colSelect.Width = 28;
|
||||
//
|
||||
// colShopLoginName
|
||||
//
|
||||
this.colShopLoginName.Frozen = true;
|
||||
this.colShopLoginName.HeaderText = "店铺登录名";
|
||||
this.colShopLoginName.Name = "colShopLoginName";
|
||||
this.colShopLoginName.ReadOnly = true;
|
||||
this.colShopLoginName.Visible = false;
|
||||
//
|
||||
// colShopId
|
||||
//
|
||||
this.colShopId.Frozen = true;
|
||||
this.colShopId.HeaderText = "店铺Id";
|
||||
this.colShopId.Name = "colShopId";
|
||||
this.colShopId.ReadOnly = true;
|
||||
this.colShopId.Visible = false;
|
||||
this.colShopId.Width = 55;
|
||||
//
|
||||
// colShopName
|
||||
//
|
||||
this.colShopName.FillWeight = 150F;
|
||||
this.colShopName.Frozen = true;
|
||||
this.colShopName.HeaderText = "店铺名称";
|
||||
this.colShopName.Name = "colShopName";
|
||||
this.colShopName.ReadOnly = true;
|
||||
this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colShopName.Width = 70;
|
||||
//
|
||||
// colGroup
|
||||
//
|
||||
this.colGroup.Frozen = true;
|
||||
this.colGroup.HeaderText = "分组";
|
||||
this.colGroup.Name = "colGroup";
|
||||
this.colGroup.ReadOnly = true;
|
||||
this.colGroup.Width = 70;
|
||||
//
|
||||
// colShopNotes
|
||||
//
|
||||
this.colShopNotes.HeaderText = "备注";
|
||||
this.colShopNotes.Name = "colShopNotes";
|
||||
this.colShopNotes.ReadOnly = true;
|
||||
this.colShopNotes.Width = 70;
|
||||
//
|
||||
// colLoginStatus
|
||||
//
|
||||
this.colLoginStatus.HeaderText = "状态";
|
||||
this.colLoginStatus.Name = "colLoginStatus";
|
||||
this.colLoginStatus.ReadOnly = true;
|
||||
this.colLoginStatus.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colLoginStatus.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colLoginStatus.Width = 38;
|
||||
//
|
||||
// colMessage
|
||||
//
|
||||
this.colMessage.HeaderText = "消息";
|
||||
this.colMessage.Name = "colMessage";
|
||||
this.colMessage.ReadOnly = true;
|
||||
this.colMessage.Width = 90;
|
||||
//
|
||||
// colAutoReplyCount
|
||||
//
|
||||
this.colAutoReplyCount.HeaderText = "自动回复";
|
||||
this.colAutoReplyCount.Name = "colAutoReplyCount";
|
||||
this.colAutoReplyCount.ReadOnly = true;
|
||||
this.colAutoReplyCount.Width = 62;
|
||||
//
|
||||
// colWaitSend
|
||||
//
|
||||
this.colWaitSend.HeaderText = "待发货";
|
||||
this.colWaitSend.Name = "colWaitSend";
|
||||
this.colWaitSend.ReadOnly = true;
|
||||
this.colWaitSend.Width = 50;
|
||||
//
|
||||
// colWayBillError
|
||||
//
|
||||
this.colWayBillError.HeaderText = "物流异常";
|
||||
this.colWayBillError.Name = "colWayBillError";
|
||||
this.colWayBillError.ReadOnly = true;
|
||||
this.colWayBillError.Width = 62;
|
||||
//
|
||||
// colAfterSale
|
||||
//
|
||||
this.colAfterSale.HeaderText = "售后";
|
||||
this.colAfterSale.Name = "colAfterSale";
|
||||
this.colAfterSale.ReadOnly = true;
|
||||
this.colAfterSale.Width = 38;
|
||||
//
|
||||
// colPunishCount
|
||||
//
|
||||
this.colPunishCount.HeaderText = "店铺违规";
|
||||
this.colPunishCount.Name = "colPunishCount";
|
||||
this.colPunishCount.ReadOnly = true;
|
||||
this.colPunishCount.Width = 62;
|
||||
//
|
||||
// colScore
|
||||
//
|
||||
this.colScore.HeaderText = "评分";
|
||||
this.colScore.Name = "colScore";
|
||||
this.colScore.ReadOnly = true;
|
||||
this.colScore.Width = 38;
|
||||
//
|
||||
// colCanUse
|
||||
//
|
||||
this.colCanUse.HeaderText = "可用";
|
||||
this.colCanUse.Name = "colCanUse";
|
||||
this.colCanUse.ReadOnly = true;
|
||||
this.colCanUse.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colCanUse.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colCanUse.Visible = false;
|
||||
this.colCanUse.Width = 28;
|
||||
//
|
||||
// cmbFiltGroups
|
||||
//
|
||||
this.cmbFiltGroups.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbFiltGroups.DefaultText = "全部";
|
||||
this.cmbFiltGroups.DropDownHeight = 1;
|
||||
this.cmbFiltGroups.DropDownWidth = 1;
|
||||
this.cmbFiltGroups.FormattingEnabled = true;
|
||||
this.cmbFiltGroups.IntegralHeight = false;
|
||||
this.cmbFiltGroups.Location = new System.Drawing.Point(61, 66);
|
||||
this.cmbFiltGroups.Name = "cmbFiltGroups";
|
||||
this.cmbFiltGroups.Size = new System.Drawing.Size(105, 25);
|
||||
this.cmbFiltGroups.TabIndex = 772;
|
||||
this.cmbFiltGroups.Text = "全部";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(0, 70);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(68, 17);
|
||||
this.label5.TabIndex = 774;
|
||||
this.label5.Text = "店铺分组:";
|
||||
//
|
||||
// WxTalkForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
@@ -1243,10 +1286,17 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.CheckBox chkShowShopStatistics;
|
||||
private System.Windows.Forms.CheckBox chkShowAutoReplyNum;
|
||||
private DevComponents.DotNetBar.PanelEx btnMultiLogin;
|
||||
private DevComponents.DotNetBar.PanelEx btnChangeAddress;
|
||||
private System.Windows.Forms.Label lblProgress;
|
||||
private System.Windows.Forms.TabPage tabPage3;
|
||||
private System.Windows.Forms.Label lblAutoReplyStatus;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private UserComponent.UcDataGridViewCheckBoxColumn colSelect;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopLoginName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colGroup;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopNotes;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colLoginStatus;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colMessage;
|
||||
@@ -1257,11 +1307,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colPunishCount;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colScore;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse;
|
||||
private DevComponents.DotNetBar.PanelEx btnMultiLogin;
|
||||
private DevComponents.DotNetBar.PanelEx btnChangeAddress;
|
||||
private System.Windows.Forms.Label lblProgress;
|
||||
private System.Windows.Forms.TabPage tabPage3;
|
||||
private System.Windows.Forms.Label lblAutoReplyStatus;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private UserComponent.UcComboBoxMutiSelect cmbFiltGroups;
|
||||
private System.Windows.Forms.Label label5;
|
||||
}
|
||||
}
|
||||
@@ -36,6 +36,8 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
{
|
||||
public partial class WxTalkForm : BaseTalkForm
|
||||
{
|
||||
public static WxTalkForm instance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 自动回复话术信息
|
||||
/// </summary>
|
||||
@@ -90,6 +92,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
instance = this;
|
||||
ChatConfig.LoadChatSetting();
|
||||
}
|
||||
|
||||
@@ -190,6 +193,10 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
{
|
||||
this.cmbFiltNotes.Items.Add(shopNote);
|
||||
}
|
||||
foreach (var group in GlobalConfig.ShopLoginList.Select(s => s.GroupName).Where(s => !s.IsNullOrEmpty()).Distinct())
|
||||
{
|
||||
this.cmbFiltGroups.Items.Add(group);
|
||||
}
|
||||
|
||||
lstShopAfterSale = NaiBa.Util.Helper.ConfigHelper.LoadConfig<NaiBa.Util.ConcurrentList<WxTalkFormShopMainInfo>>("wx_shop_after_sale_list");
|
||||
if (lstShopAfterSale == null)
|
||||
@@ -587,6 +594,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
r.Cells["colShopName"].Value = shop.ShopAccount; // 店铺名称
|
||||
//r.Cells["colShopName"].Style.ForeColor = LstTagShop.Contains(shop.ShopId) ? Color.LightGreen : Control.DefaultForeColor;
|
||||
r.Cells["colShopName"].Style.BackColor = LstTagShop.Contains(shop.ShopId) ? Color.LightGreen : (r.Tag is Color ? (Color)r.Tag : Color.White);
|
||||
r.Cells["colGroup"].Value = shop.GroupName; // 分组
|
||||
r.Cells["colShopNotes"].Value = shop.Notes; // 备注
|
||||
r.Cells["colAutoReplyCount"].Value = dicTalkAutoReplyCount.FirstOrDefault(t => t.Key == shop.ShopId).Value.ParseToInt();
|
||||
r.Cells["colLoginStatus"].Value = shop.LoginStatus == "登录成功" ? "在线" : "掉线"; // 登录状态
|
||||
@@ -1387,24 +1395,29 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
{
|
||||
string shopName = txtFiltShopName.Text.Trim();
|
||||
string notes = cmbFiltNotes.Text.Trim().Trim(';');
|
||||
string groups = cmbFiltGroups.Text.Trim().Trim(';');
|
||||
if (notes == "全部")
|
||||
notes = "";
|
||||
if (groups == "全部")
|
||||
groups = "";
|
||||
List<string> notesLst = notes.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList();
|
||||
foreach(DataGridViewRow row in dgvShop.Rows)
|
||||
List<string> groupsLst = groups.Split(new string[] { ";", ";", ",", "," }, StringSplitOptions.RemoveEmptyEntries).ToList();
|
||||
foreach (DataGridViewRow row in dgvShop.Rows)
|
||||
{
|
||||
if ((string.IsNullOrEmpty(notes) || notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString())) && row.Cells["colShopName"].Value.ParseToString().Contains(shopName))
|
||||
{
|
||||
row.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!row.Cells["colShopName"].Value.ParseToString().Contains(shopName))
|
||||
row.Visible = false;
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(notes) && !notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString()))
|
||||
row.Visible = false;
|
||||
else if (!string.IsNullOrEmpty(groups) && !groupsLst.Contains(row.Cells["colGroup"].Value.ParseToString()))
|
||||
row.Visible = false;
|
||||
else
|
||||
row.Visible = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void btnEmpty_Click(object sender, EventArgs e)
|
||||
{
|
||||
cmbFiltGroups.Text = "全部";
|
||||
cmbFiltNotes.Text = "全部";
|
||||
btnFilterShop_Click(null, null);
|
||||
}
|
||||
|
||||
@@ -126,6 +126,9 @@
|
||||
<metadata name="colShopId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colGroup.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colShopNotes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
||||
Reference in new issue
Block a user