类目识别功能 多选功能优化 微信上货优化 微信客服信息识别优化等
This commit is contained in:
1 parent
c27063d704
commit
a2a6719a99
31 files changed
+2223
-750
No files matched your search
+167
-9
@@ -55,10 +55,18 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.colLoginStatus = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.cmbFiltNotes = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
|
||||
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.txtFiltShopName = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.btnFilterShop = new DevComponents.DotNetBar.PanelEx();
|
||||
this.pnlRefresh = new DevComponents.DotNetBar.PanelEx();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.ucTabControl1 = new TemuKJD.UserComponent.UcTabControl();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.pnlTalk = new System.Windows.Forms.Panel();
|
||||
this.btnNext = new System.Windows.Forms.Button();
|
||||
this.btnPrev = new System.Windows.Forms.Button();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.mainPanel = new System.Windows.Forms.Panel();
|
||||
this.ColumnShopStatus = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
@@ -70,6 +78,8 @@ 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.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.contextMenuStrip2 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbLogo)).BeginInit();
|
||||
this.panel3.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
@@ -88,6 +98,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit();
|
||||
this.ucTabControl1.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
this.pnlTalk.SuspendLayout();
|
||||
this.tabPage2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
@@ -98,7 +109,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
// lblVersionName
|
||||
//
|
||||
this.lblVersionName.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblVersionName.Location = new System.Drawing.Point(5529, 33);
|
||||
this.lblVersionName.Location = new System.Drawing.Point(10335, 33);
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
@@ -166,6 +177,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.chkNotShowMessageWindow.TabIndex = 201;
|
||||
this.chkNotShowMessageWindow.Text = "新消息不弹框提示";
|
||||
this.chkNotShowMessageWindow.UseVisualStyleBackColor = true;
|
||||
this.chkNotShowMessageWindow.Visible = false;
|
||||
//
|
||||
// cmbMessage
|
||||
//
|
||||
@@ -251,16 +263,18 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.chkIsAutoReLogin.TabIndex = 2;
|
||||
this.chkIsAutoReLogin.Text = "掉线自动重登";
|
||||
this.chkIsAutoReLogin.UseVisualStyleBackColor = true;
|
||||
this.chkIsAutoReLogin.Visible = false;
|
||||
//
|
||||
// txtAutoReplyText
|
||||
//
|
||||
this.txtAutoReplyText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
this.txtAutoReplyText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtAutoReplyText.Location = new System.Drawing.Point(4, 78);
|
||||
this.txtAutoReplyText.Multiline = true;
|
||||
this.txtAutoReplyText.Name = "txtAutoReplyText";
|
||||
this.txtAutoReplyText.Size = new System.Drawing.Size(266, 0);
|
||||
this.txtAutoReplyText.Size = new System.Drawing.Size(266, 50);
|
||||
this.txtAutoReplyText.TabIndex = 1;
|
||||
this.txtAutoReplyText.Visible = false;
|
||||
//
|
||||
// chkIsAutoReply
|
||||
//
|
||||
@@ -272,6 +286,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.chkIsAutoReply.TabIndex = 0;
|
||||
this.chkIsAutoReply.Text = "自动回复:";
|
||||
this.chkIsAutoReply.UseVisualStyleBackColor = true;
|
||||
this.chkIsAutoReply.Visible = false;
|
||||
//
|
||||
// splitContainer4
|
||||
//
|
||||
@@ -288,16 +303,22 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//
|
||||
// splitContainer4.Panel2
|
||||
//
|
||||
this.splitContainer4.Panel2.Controls.Add(this.cmbFiltNotes);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.panelEx1);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.txtFiltShopName);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.btnFilterShop);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.pnlRefresh);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.label2);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.label3);
|
||||
this.splitContainer4.Size = new System.Drawing.Size(266, 585);
|
||||
this.splitContainer4.SplitterDistance = 555;
|
||||
this.splitContainer4.SplitterDistance = 503;
|
||||
this.splitContainer4.TabIndex = 7;
|
||||
//
|
||||
// pbLoading
|
||||
//
|
||||
this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
|
||||
this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
|
||||
this.pbLoading.Location = new System.Drawing.Point(108, 252);
|
||||
this.pbLoading.Location = new System.Drawing.Point(108, 226);
|
||||
this.pbLoading.Name = "pbLoading";
|
||||
this.pbLoading.Size = new System.Drawing.Size(50, 50);
|
||||
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
@@ -339,7 +360,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.dgvShop.ReadOnly = true;
|
||||
this.dgvShop.RowHeadersWidth = 25;
|
||||
this.dgvShop.RowTemplate.Height = 23;
|
||||
this.dgvShop.Size = new System.Drawing.Size(266, 555);
|
||||
this.dgvShop.Size = new System.Drawing.Size(266, 503);
|
||||
this.dgvShop.TabIndex = 7;
|
||||
this.dgvShop.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellClick);
|
||||
this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick);
|
||||
@@ -410,16 +431,89 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.colMessage.ReadOnly = true;
|
||||
this.colMessage.Width = 120;
|
||||
//
|
||||
// cmbFiltNotes
|
||||
//
|
||||
this.cmbFiltNotes.DefaultText = "全部";
|
||||
this.cmbFiltNotes.DropDownHeight = 1;
|
||||
this.cmbFiltNotes.DropDownWidth = 1;
|
||||
this.cmbFiltNotes.FormattingEnabled = true;
|
||||
this.cmbFiltNotes.IntegralHeight = false;
|
||||
this.cmbFiltNotes.Location = new System.Drawing.Point(61, 25);
|
||||
this.cmbFiltNotes.Name = "cmbFiltNotes";
|
||||
this.cmbFiltNotes.Size = new System.Drawing.Size(205, 25);
|
||||
this.cmbFiltNotes.TabIndex = 0;
|
||||
this.cmbFiltNotes.Text = "全部";
|
||||
//
|
||||
// panelEx1
|
||||
//
|
||||
this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.panelEx1.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.panelEx1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.panelEx1.Location = new System.Drawing.Point(188, 52);
|
||||
this.panelEx1.Name = "panelEx1";
|
||||
this.panelEx1.Size = new System.Drawing.Size(78, 26);
|
||||
this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.White;
|
||||
this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.White;
|
||||
this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.panelEx1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.panelEx1.Style.ForeColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.panelEx1.Style.GradientAngle = 90;
|
||||
this.panelEx1.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.panelEx1.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.panelEx1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.panelEx1.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.panelEx1.TabIndex = 207;
|
||||
this.panelEx1.Text = "还 原 搜 索";
|
||||
this.panelEx1.Click += new System.EventHandler(this.btnEmpty_Click);
|
||||
//
|
||||
// txtFiltShopName
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.txtFiltShopName.Border.Class = "TextBoxBorder";
|
||||
this.txtFiltShopName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.txtFiltShopName.Location = new System.Drawing.Point(61, 0);
|
||||
this.txtFiltShopName.Name = "txtFiltShopName";
|
||||
this.txtFiltShopName.PreventEnterBeep = true;
|
||||
this.txtFiltShopName.Size = new System.Drawing.Size(205, 23);
|
||||
this.txtFiltShopName.TabIndex = 202;
|
||||
//
|
||||
// btnFilterShop
|
||||
//
|
||||
this.btnFilterShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnFilterShop.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnFilterShop.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnFilterShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnFilterShop.Location = new System.Drawing.Point(94, 52);
|
||||
this.btnFilterShop.Name = "btnFilterShop";
|
||||
this.btnFilterShop.Size = new System.Drawing.Size(92, 26);
|
||||
this.btnFilterShop.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnFilterShop.Style.BackColor1.Color = System.Drawing.Color.White;
|
||||
this.btnFilterShop.Style.BackColor2.Color = System.Drawing.Color.White;
|
||||
this.btnFilterShop.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.btnFilterShop.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnFilterShop.Style.ForeColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnFilterShop.Style.GradientAngle = 90;
|
||||
this.btnFilterShop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnFilterShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnFilterShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnFilterShop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnFilterShop.TabIndex = 195;
|
||||
this.btnFilterShop.Text = "搜 索";
|
||||
this.btnFilterShop.Click += new System.EventHandler(this.btnFilterShop_Click);
|
||||
//
|
||||
// pnlRefresh
|
||||
//
|
||||
this.pnlRefresh.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.pnlRefresh.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.pnlRefresh.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.pnlRefresh.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pnlRefresh.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.pnlRefresh.Location = new System.Drawing.Point(0, 0);
|
||||
this.pnlRefresh.Location = new System.Drawing.Point(0, 52);
|
||||
this.pnlRefresh.Name = "pnlRefresh";
|
||||
this.pnlRefresh.Size = new System.Drawing.Size(266, 26);
|
||||
this.pnlRefresh.Size = new System.Drawing.Size(92, 26);
|
||||
this.pnlRefresh.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.pnlRefresh.Style.BackColor1.Color = System.Drawing.Color.White;
|
||||
this.pnlRefresh.Style.BackColor2.Color = System.Drawing.Color.White;
|
||||
@@ -435,6 +529,24 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.pnlRefresh.Text = "刷 新 店 铺";
|
||||
this.pnlRefresh.Click += new System.EventHandler(this.pnlRefresh_Click);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(0, 3);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(68, 17);
|
||||
this.label2.TabIndex = 217;
|
||||
this.label2.Text = "店铺名称:";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(0, 29);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(68, 17);
|
||||
this.label3.TabIndex = 218;
|
||||
this.label3.Text = "店铺备注:";
|
||||
//
|
||||
// ucTabControl1
|
||||
//
|
||||
this.ucTabControl1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251)))));
|
||||
@@ -464,12 +576,36 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//
|
||||
// pnlTalk
|
||||
//
|
||||
this.pnlTalk.Controls.Add(this.btnNext);
|
||||
this.pnlTalk.Controls.Add(this.btnPrev);
|
||||
this.pnlTalk.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pnlTalk.Location = new System.Drawing.Point(3, 3);
|
||||
this.pnlTalk.Name = "pnlTalk";
|
||||
this.pnlTalk.Size = new System.Drawing.Size(1215, 578);
|
||||
this.pnlTalk.TabIndex = 1;
|
||||
//
|
||||
// btnNext
|
||||
//
|
||||
this.btnNext.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnNext.Location = new System.Drawing.Point(1181, 3);
|
||||
this.btnNext.Name = "btnNext";
|
||||
this.btnNext.Size = new System.Drawing.Size(32, 23);
|
||||
this.btnNext.TabIndex = 11;
|
||||
this.btnNext.Text = "→";
|
||||
this.btnNext.UseVisualStyleBackColor = true;
|
||||
this.btnNext.Click += new System.EventHandler(this.btnNext_Click);
|
||||
//
|
||||
// btnPrev
|
||||
//
|
||||
this.btnPrev.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnPrev.Location = new System.Drawing.Point(1149, 3);
|
||||
this.btnPrev.Name = "btnPrev";
|
||||
this.btnPrev.Size = new System.Drawing.Size(32, 23);
|
||||
this.btnPrev.TabIndex = 10;
|
||||
this.btnPrev.Text = "←";
|
||||
this.btnPrev.UseVisualStyleBackColor = true;
|
||||
this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click);
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Controls.Add(this.mainPanel);
|
||||
@@ -561,6 +697,16 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.dataGridViewLinkColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.dataGridViewLinkColumn2.Width = 106;
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(61, 4);
|
||||
//
|
||||
// contextMenuStrip2
|
||||
//
|
||||
this.contextMenuStrip2.Name = "contextMenuStrip2";
|
||||
this.contextMenuStrip2.Size = new System.Drawing.Size(61, 4);
|
||||
//
|
||||
// WxTalkForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
@@ -588,12 +734,14 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.splitContainer2.ResumeLayout(false);
|
||||
this.splitContainer4.Panel1.ResumeLayout(false);
|
||||
this.splitContainer4.Panel2.ResumeLayout(false);
|
||||
this.splitContainer4.Panel2.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit();
|
||||
this.splitContainer4.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit();
|
||||
this.ucTabControl1.ResumeLayout(false);
|
||||
this.tabPage1.ResumeLayout(false);
|
||||
this.pnlTalk.ResumeLayout(false);
|
||||
this.tabPage2.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
@@ -638,5 +786,15 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colMessage;
|
||||
private System.Windows.Forms.PictureBox pbLoading;
|
||||
private DevComponents.DotNetBar.PanelEx btnFilterShop;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
||||
private DevComponents.DotNetBar.PanelEx panelEx1;
|
||||
private DevComponents.DotNetBar.Controls.TextBoxX txtFiltShopName;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip2;
|
||||
private UserComponent.UcComboBoxMutiSelect cmbFiltNotes;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Button btnNext;
|
||||
private System.Windows.Forms.Button btnPrev;
|
||||
}
|
||||
}
|
||||
@@ -119,6 +119,13 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
SetMainBrowserUrl(GlobalConfig.ShopLoginList.FirstOrDefault());
|
||||
LoadShop();
|
||||
InitAutoExecute();
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
foreach (var shopNote in GlobalConfig.ShopLoginList.Select(s => s.Notes).Where(s => !s.IsNullOrEmpty()).Distinct())
|
||||
{
|
||||
this.cmbFiltNotes.Items.Add(shopNote);
|
||||
}
|
||||
}));
|
||||
});
|
||||
}
|
||||
private void cefWebBrowser1_FrameLoadEnd(object sender, CefSharp.FrameLoadEndEventArgs e)
|
||||
@@ -240,6 +247,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
|
||||
dgvShop.Rows[iGrid].Cells["colShopId"].Value = shop.ShopId; // 店铺ID
|
||||
dgvShop.Rows[iGrid].Cells["colShopName"].Value = shop.ShopAccount; // 店铺名称
|
||||
dgvShop.Rows[iGrid].Cells["colShopNotes"].Value = shop.Notes; // 备注
|
||||
dgvShop.Rows[iGrid].Cells["colLoginStatus"].Value = shop.LoginStatus == "登录成功" ? "在线" : "掉线"; // 登录状态
|
||||
dicRowColor[dgvShop.Rows[iGrid]] = dgvShop.Rows[iGrid].DefaultCellStyle.BackColor;
|
||||
|
||||
@@ -385,9 +393,9 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
var send_open_account = summaryObj["send_open_account"].ParseToString();
|
||||
if (send_open_account == shop.ShopId)
|
||||
continue;
|
||||
// 虽然没有回复,但是最后一条消息是七天以前收到的,返回
|
||||
// 虽然没有回复,但是最后一条消息是两天以前收到的,返回
|
||||
var lastUpTime = summaryObj["update_time"].ParseToLong();
|
||||
if (lastUpTime < BaseClass.DateTimeToTimestampSeconds(DateTime.Now.AddDays(-7)))
|
||||
if (lastUpTime < BaseClass.DateTimeToTimestampSeconds(DateTime.Now.AddDays(-2)))
|
||||
continue;
|
||||
// 其他情况,标记需要回复
|
||||
needReply = true;
|
||||
@@ -892,6 +900,8 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
currentShop = shop;
|
||||
shop.Chat.Dock = DockStyle.Fill;
|
||||
shop.Chat.BringToFront();
|
||||
btnPrev.BringToFront();
|
||||
btnNext.BringToFront();
|
||||
}
|
||||
|
||||
Task.Run(() =>
|
||||
@@ -922,5 +932,42 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
Invoke(new Action(() => { pbLoading.Visible = false; }));
|
||||
});
|
||||
}
|
||||
|
||||
private void btnFilterShop_Click(object sender, EventArgs e)
|
||||
{
|
||||
string shopName = txtFiltShopName.Text.Trim();
|
||||
string notes = cmbFiltNotes.Text.Trim().Trim(';');
|
||||
if (notes == "全部")
|
||||
notes = "";
|
||||
List<string> notesLst = notes.Split(new string[] { ";", ",", ",", " " }, StringSplitOptions.RemoveEmptyEntries).ToList();
|
||||
foreach(DataGridViewRow row in dgvShop.Rows)
|
||||
{
|
||||
if ((row.Cells["colShopNotes"].Value.ParseToString().Contains(notes) || notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString())) &&
|
||||
row.Cells["colShopName"].Value.ParseToString().Contains(shopName))
|
||||
{
|
||||
row.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
row.Visible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void btnEmpty_Click(object sender, EventArgs e)
|
||||
{
|
||||
cmbFiltNotes.Text = "全部";
|
||||
btnFilterShop_Click(null, null);
|
||||
}
|
||||
|
||||
private void btnPrev_Click(object sender, EventArgs e)
|
||||
{
|
||||
currentShop.Chat.Back();
|
||||
}
|
||||
|
||||
private void btnNext_Click(object sender, EventArgs e)
|
||||
{
|
||||
currentShop.Chat.Forward();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -156,6 +156,12 @@
|
||||
<metadata name="dataGridViewLinkColumn2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="contextMenuStrip2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>182, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
|
||||
Reference in new issue
Block a user