店铺考核提供备注功能 微信带货助手采集功能
This commit is contained in:
1 parent
4fa1fc03ca
commit
119b2f4f3e
64 files changed
+7940
-908
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user