优化客服统计功能
This commit is contained in:
1 parent
a2a6719a99
commit
4fd8d9cc17
17 files changed
+1218
-471
No files matched your search
+356
-96
@@ -53,20 +53,33 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colLoginStatus = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colAfterSale = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.lblTalkCount = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.btnRefreshMsgCount = new DevComponents.DotNetBar.PanelEx();
|
||||
this.lblUserCount = new System.Windows.Forms.Label();
|
||||
this.lblReplyCount = new System.Windows.Forms.Label();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.btnRefreshAfterSale = new DevComponents.DotNetBar.PanelEx();
|
||||
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.pnlRefreshShop = new DevComponents.DotNetBar.PanelEx();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.line1 = new DevComponents.DotNetBar.Controls.Line();
|
||||
this.ucTabControl1 = new TemuKJD.UserComponent.UcTabControl();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
|
||||
this.btnNext = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnToKfMainPage = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnPrev = new DevComponents.DotNetBar.PanelEx();
|
||||
this.txtAddress = new System.Windows.Forms.TextBox();
|
||||
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();
|
||||
@@ -78,8 +91,6 @@ 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();
|
||||
@@ -98,7 +109,10 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit();
|
||||
this.ucTabControl1.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
this.pnlTalk.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit();
|
||||
this.splitContainer3.Panel1.SuspendLayout();
|
||||
this.splitContainer3.Panel2.SuspendLayout();
|
||||
this.splitContainer3.SuspendLayout();
|
||||
this.tabPage2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
@@ -109,7 +123,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(10335, 33);
|
||||
this.lblVersionName.Location = new System.Drawing.Point(15675, 33);
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
@@ -137,7 +151,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//
|
||||
this.splitContainer1.Panel2.Controls.Add(this.ucTabControl1);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(1498, 618);
|
||||
this.splitContainer1.SplitterDistance = 270;
|
||||
this.splitContainer1.SplitterDistance = 330;
|
||||
this.splitContainer1.SplitterWidth = 1;
|
||||
this.splitContainer1.TabIndex = 1;
|
||||
//
|
||||
@@ -164,7 +178,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//
|
||||
this.splitContainer2.Panel2.Controls.Add(this.splitContainer4);
|
||||
this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(4, 0, 0, 4);
|
||||
this.splitContainer2.Size = new System.Drawing.Size(270, 618);
|
||||
this.splitContainer2.Size = new System.Drawing.Size(330, 618);
|
||||
this.splitContainer2.SplitterDistance = 25;
|
||||
this.splitContainer2.TabIndex = 0;
|
||||
//
|
||||
@@ -181,6 +195,8 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//
|
||||
// cmbMessage
|
||||
//
|
||||
this.cmbMessage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbMessage.BackColor = System.Drawing.Color.White;
|
||||
this.cmbMessage.Font = new System.Drawing.Font("新宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.cmbMessage.FormattingEnabled = true;
|
||||
@@ -210,7 +226,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
"无"});
|
||||
this.cmbMessage.Location = new System.Drawing.Point(71, 4);
|
||||
this.cmbMessage.Name = "cmbMessage";
|
||||
this.cmbMessage.Size = new System.Drawing.Size(199, 20);
|
||||
this.cmbMessage.Size = new System.Drawing.Size(259, 20);
|
||||
this.cmbMessage.TabIndex = 193;
|
||||
//
|
||||
// label1
|
||||
@@ -229,7 +245,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.pnlSet.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.pnlSet.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.pnlSet.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.pnlSet.Location = new System.Drawing.Point(230, 56);
|
||||
this.pnlSet.Location = new System.Drawing.Point(290, 56);
|
||||
this.pnlSet.Name = "pnlSet";
|
||||
this.pnlSet.Size = new System.Drawing.Size(40, 20);
|
||||
this.pnlSet.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -272,7 +288,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
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, 50);
|
||||
this.txtAutoReplyText.Size = new System.Drawing.Size(326, 50);
|
||||
this.txtAutoReplyText.TabIndex = 1;
|
||||
this.txtAutoReplyText.Visible = false;
|
||||
//
|
||||
@@ -280,7 +296,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//
|
||||
this.chkIsAutoReply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkIsAutoReply.AutoSize = true;
|
||||
this.chkIsAutoReply.Location = new System.Drawing.Point(4, 56);
|
||||
this.chkIsAutoReply.Location = new System.Drawing.Point(64, 56);
|
||||
this.chkIsAutoReply.Name = "chkIsAutoReply";
|
||||
this.chkIsAutoReply.Size = new System.Drawing.Size(87, 21);
|
||||
this.chkIsAutoReply.TabIndex = 0;
|
||||
@@ -303,22 +319,31 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//
|
||||
// splitContainer4.Panel2
|
||||
//
|
||||
this.splitContainer4.Panel2.Controls.Add(this.lblTalkCount);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.label6);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.btnRefreshMsgCount);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.lblUserCount);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.lblReplyCount);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.label7);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.label4);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.btnRefreshAfterSale);
|
||||
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.pnlRefreshShop);
|
||||
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 = 503;
|
||||
this.splitContainer4.Panel2.Controls.Add(this.line1);
|
||||
this.splitContainer4.Size = new System.Drawing.Size(326, 585);
|
||||
this.splitContainer4.SplitterDistance = 462;
|
||||
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, 226);
|
||||
this.pbLoading.Location = new System.Drawing.Point(138, 206);
|
||||
this.pbLoading.Name = "pbLoading";
|
||||
this.pbLoading.Size = new System.Drawing.Size(50, 50);
|
||||
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
@@ -351,6 +376,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.colShopName,
|
||||
this.colShopNotes,
|
||||
this.colLoginStatus,
|
||||
this.colAfterSale,
|
||||
this.colCanUse,
|
||||
this.colMessage});
|
||||
this.dgvShop.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
@@ -360,7 +386,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, 503);
|
||||
this.dgvShop.Size = new System.Drawing.Size(326, 462);
|
||||
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);
|
||||
@@ -400,7 +426,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//
|
||||
// colShopNotes
|
||||
//
|
||||
this.colShopNotes.HeaderText = "分组";
|
||||
this.colShopNotes.HeaderText = "备注";
|
||||
this.colShopNotes.Name = "colShopNotes";
|
||||
this.colShopNotes.ReadOnly = true;
|
||||
this.colShopNotes.Width = 70;
|
||||
@@ -414,6 +440,13 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.colLoginStatus.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colLoginStatus.Width = 38;
|
||||
//
|
||||
// colAfterSale
|
||||
//
|
||||
this.colAfterSale.HeaderText = "售后";
|
||||
this.colAfterSale.Name = "colAfterSale";
|
||||
this.colAfterSale.ReadOnly = true;
|
||||
this.colAfterSale.Width = 38;
|
||||
//
|
||||
// colCanUse
|
||||
//
|
||||
this.colCanUse.HeaderText = "可用";
|
||||
@@ -431,28 +464,148 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.colMessage.ReadOnly = true;
|
||||
this.colMessage.Width = 120;
|
||||
//
|
||||
// lblTalkCount
|
||||
//
|
||||
this.lblTalkCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.lblTalkCount.AutoSize = true;
|
||||
this.lblTalkCount.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblTalkCount.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.lblTalkCount.Location = new System.Drawing.Point(135, 5);
|
||||
this.lblTalkCount.Name = "lblTalkCount";
|
||||
this.lblTalkCount.Size = new System.Drawing.Size(17, 19);
|
||||
this.lblTalkCount.TabIndex = 755;
|
||||
this.lblTalkCount.Text = "0";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(91, 6);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(56, 17);
|
||||
this.label6.TabIndex = 754;
|
||||
this.label6.Text = "对话数:";
|
||||
//
|
||||
// btnRefreshMsgCount
|
||||
//
|
||||
this.btnRefreshMsgCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.btnRefreshMsgCount.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnRefreshMsgCount.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnRefreshMsgCount.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnRefreshMsgCount.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnRefreshMsgCount.Location = new System.Drawing.Point(283, 4);
|
||||
this.btnRefreshMsgCount.Name = "btnRefreshMsgCount";
|
||||
this.btnRefreshMsgCount.Size = new System.Drawing.Size(42, 21);
|
||||
this.btnRefreshMsgCount.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnRefreshMsgCount.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnRefreshMsgCount.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnRefreshMsgCount.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnRefreshMsgCount.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnRefreshMsgCount.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnRefreshMsgCount.Style.CornerDiameter = 3;
|
||||
this.btnRefreshMsgCount.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.btnRefreshMsgCount.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnRefreshMsgCount.Style.GradientAngle = 90;
|
||||
this.btnRefreshMsgCount.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnRefreshMsgCount.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnRefreshMsgCount.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnRefreshMsgCount.TabIndex = 738;
|
||||
this.btnRefreshMsgCount.Text = "刷新";
|
||||
this.btnRefreshMsgCount.Click += new System.EventHandler(this.btnRefreshMsgCount_Click);
|
||||
//
|
||||
// lblUserCount
|
||||
//
|
||||
this.lblUserCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.lblUserCount.AutoSize = true;
|
||||
this.lblUserCount.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblUserCount.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.lblUserCount.Location = new System.Drawing.Point(45, 5);
|
||||
this.lblUserCount.Name = "lblUserCount";
|
||||
this.lblUserCount.Size = new System.Drawing.Size(17, 19);
|
||||
this.lblUserCount.TabIndex = 239;
|
||||
this.lblUserCount.Text = "0";
|
||||
//
|
||||
// lblReplyCount
|
||||
//
|
||||
this.lblReplyCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.lblReplyCount.AutoSize = true;
|
||||
this.lblReplyCount.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblReplyCount.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.lblReplyCount.Location = new System.Drawing.Point(225, 5);
|
||||
this.lblReplyCount.Name = "lblReplyCount";
|
||||
this.lblReplyCount.Size = new System.Drawing.Size(17, 19);
|
||||
this.lblReplyCount.TabIndex = 241;
|
||||
this.lblReplyCount.Text = "0";
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(181, 6);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(56, 17);
|
||||
this.label7.TabIndex = 240;
|
||||
this.label7.Text = "回复率:";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(1, 6);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(56, 17);
|
||||
this.label4.TabIndex = 238;
|
||||
this.label4.Text = "用户数:";
|
||||
//
|
||||
// btnRefreshAfterSale
|
||||
//
|
||||
this.btnRefreshAfterSale.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.btnRefreshAfterSale.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnRefreshAfterSale.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnRefreshAfterSale.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnRefreshAfterSale.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnRefreshAfterSale.Location = new System.Drawing.Point(164, 93);
|
||||
this.btnRefreshAfterSale.Name = "btnRefreshAfterSale";
|
||||
this.btnRefreshAfterSale.Size = new System.Drawing.Size(162, 26);
|
||||
this.btnRefreshAfterSale.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnRefreshAfterSale.Style.BackColor1.Color = System.Drawing.Color.White;
|
||||
this.btnRefreshAfterSale.Style.BackColor2.Color = System.Drawing.Color.White;
|
||||
this.btnRefreshAfterSale.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.btnRefreshAfterSale.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnRefreshAfterSale.Style.ForeColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnRefreshAfterSale.Style.GradientAngle = 90;
|
||||
this.btnRefreshAfterSale.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnRefreshAfterSale.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnRefreshAfterSale.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnRefreshAfterSale.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnRefreshAfterSale.TabIndex = 222;
|
||||
this.btnRefreshAfterSale.Text = "刷 新 售 后";
|
||||
this.btnRefreshAfterSale.Click += new System.EventHandler(this.btnRefreshAfterSale_Click);
|
||||
//
|
||||
// cmbFiltNotes
|
||||
//
|
||||
this.cmbFiltNotes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
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.Location = new System.Drawing.Point(61, 66);
|
||||
this.cmbFiltNotes.Name = "cmbFiltNotes";
|
||||
this.cmbFiltNotes.Size = new System.Drawing.Size(205, 25);
|
||||
this.cmbFiltNotes.Size = new System.Drawing.Size(210, 25);
|
||||
this.cmbFiltNotes.TabIndex = 0;
|
||||
this.cmbFiltNotes.Text = "全部";
|
||||
//
|
||||
// panelEx1
|
||||
//
|
||||
this.panelEx1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
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.Location = new System.Drawing.Point(273, 41);
|
||||
this.panelEx1.Name = "panelEx1";
|
||||
this.panelEx1.Size = new System.Drawing.Size(78, 26);
|
||||
this.panelEx1.Size = new System.Drawing.Size(53, 23);
|
||||
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;
|
||||
@@ -465,31 +618,33 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
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.Text = "还 原";
|
||||
this.panelEx1.Click += new System.EventHandler(this.btnEmpty_Click);
|
||||
//
|
||||
// txtFiltShopName
|
||||
//
|
||||
this.txtFiltShopName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
//
|
||||
//
|
||||
//
|
||||
this.txtFiltShopName.Border.Class = "TextBoxBorder";
|
||||
this.txtFiltShopName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.txtFiltShopName.Location = new System.Drawing.Point(61, 0);
|
||||
this.txtFiltShopName.Location = new System.Drawing.Point(61, 41);
|
||||
this.txtFiltShopName.Name = "txtFiltShopName";
|
||||
this.txtFiltShopName.PreventEnterBeep = true;
|
||||
this.txtFiltShopName.Size = new System.Drawing.Size(205, 23);
|
||||
this.txtFiltShopName.Size = new System.Drawing.Size(210, 23);
|
||||
this.txtFiltShopName.TabIndex = 202;
|
||||
//
|
||||
// btnFilterShop
|
||||
//
|
||||
this.btnFilterShop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
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.Location = new System.Drawing.Point(273, 66);
|
||||
this.btnFilterShop.Name = "btnFilterShop";
|
||||
this.btnFilterShop.Size = new System.Drawing.Size(92, 26);
|
||||
this.btnFilterShop.Size = new System.Drawing.Size(53, 25);
|
||||
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;
|
||||
@@ -505,34 +660,36 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.btnFilterShop.Text = "搜 索";
|
||||
this.btnFilterShop.Click += new System.EventHandler(this.btnFilterShop_Click);
|
||||
//
|
||||
// pnlRefresh
|
||||
// pnlRefreshShop
|
||||
//
|
||||
this.pnlRefresh.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.pnlRefresh.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.pnlRefresh.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
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, 52);
|
||||
this.pnlRefresh.Name = "pnlRefresh";
|
||||
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;
|
||||
this.pnlRefresh.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.pnlRefresh.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlRefresh.Style.ForeColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlRefresh.Style.GradientAngle = 90;
|
||||
this.pnlRefresh.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.pnlRefresh.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlRefresh.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlRefresh.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.pnlRefresh.TabIndex = 188;
|
||||
this.pnlRefresh.Text = "刷 新 店 铺";
|
||||
this.pnlRefresh.Click += new System.EventHandler(this.pnlRefresh_Click);
|
||||
this.pnlRefreshShop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.pnlRefreshShop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.pnlRefreshShop.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.pnlRefreshShop.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.pnlRefreshShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.pnlRefreshShop.Location = new System.Drawing.Point(0, 93);
|
||||
this.pnlRefreshShop.Name = "pnlRefreshShop";
|
||||
this.pnlRefreshShop.Size = new System.Drawing.Size(162, 26);
|
||||
this.pnlRefreshShop.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.pnlRefreshShop.Style.BackColor1.Color = System.Drawing.Color.White;
|
||||
this.pnlRefreshShop.Style.BackColor2.Color = System.Drawing.Color.White;
|
||||
this.pnlRefreshShop.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.pnlRefreshShop.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlRefreshShop.Style.ForeColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlRefreshShop.Style.GradientAngle = 90;
|
||||
this.pnlRefreshShop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.pnlRefreshShop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlRefreshShop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlRefreshShop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.pnlRefreshShop.TabIndex = 188;
|
||||
this.pnlRefreshShop.Text = "刷 新 店 铺";
|
||||
this.pnlRefreshShop.Click += new System.EventHandler(this.pnlRefresh_Click);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(0, 3);
|
||||
this.label2.Location = new System.Drawing.Point(0, 44);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(68, 17);
|
||||
this.label2.TabIndex = 217;
|
||||
@@ -540,13 +697,23 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//
|
||||
// label3
|
||||
//
|
||||
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, 29);
|
||||
this.label3.Location = new System.Drawing.Point(0, 70);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(68, 17);
|
||||
this.label3.TabIndex = 218;
|
||||
this.label3.Text = "店铺备注:";
|
||||
//
|
||||
// line1
|
||||
//
|
||||
this.line1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.line1.Location = new System.Drawing.Point(0, 20);
|
||||
this.line1.Name = "line1";
|
||||
this.line1.Size = new System.Drawing.Size(326, 23);
|
||||
this.line1.TabIndex = 242;
|
||||
this.line1.Text = "line1";
|
||||
//
|
||||
// ucTabControl1
|
||||
//
|
||||
this.ucTabControl1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251)))));
|
||||
@@ -558,61 +725,149 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.ucTabControl1.Name = "ucTabControl1";
|
||||
this.ucTabControl1.SelectedIndex = 0;
|
||||
this.ucTabControl1.ShowCloseButton = false;
|
||||
this.ucTabControl1.Size = new System.Drawing.Size(1227, 618);
|
||||
this.ucTabControl1.Size = new System.Drawing.Size(1167, 618);
|
||||
this.ucTabControl1.TabIndex = 0;
|
||||
this.ucTabControl1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucTabControl1.TabTextColor = System.Drawing.Color.Gray;
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Controls.Add(this.pnlTalk);
|
||||
this.tabPage1.Controls.Add(this.splitContainer3);
|
||||
this.tabPage1.Location = new System.Drawing.Point(2, 30);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(1221, 584);
|
||||
this.tabPage1.Size = new System.Drawing.Size(1161, 584);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "客服窗口";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// pnlTalk
|
||||
// splitContainer3
|
||||
//
|
||||
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;
|
||||
this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer3.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer3.Location = new System.Drawing.Point(3, 3);
|
||||
this.splitContainer3.Name = "splitContainer3";
|
||||
this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||
//
|
||||
// splitContainer3.Panel1
|
||||
//
|
||||
this.splitContainer3.Panel1.Controls.Add(this.btnNext);
|
||||
this.splitContainer3.Panel1.Controls.Add(this.btnToKfMainPage);
|
||||
this.splitContainer3.Panel1.Controls.Add(this.btnPrev);
|
||||
this.splitContainer3.Panel1.Controls.Add(this.txtAddress);
|
||||
//
|
||||
// splitContainer3.Panel2
|
||||
//
|
||||
this.splitContainer3.Panel2.Controls.Add(this.pnlTalk);
|
||||
this.splitContainer3.Size = new System.Drawing.Size(1155, 578);
|
||||
this.splitContainer3.SplitterDistance = 25;
|
||||
this.splitContainer3.TabIndex = 2;
|
||||
//
|
||||
// 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.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnNext.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnNext.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnNext.Location = new System.Drawing.Point(33, 2);
|
||||
this.btnNext.Name = "btnNext";
|
||||
this.btnNext.Size = new System.Drawing.Size(32, 23);
|
||||
this.btnNext.TabIndex = 11;
|
||||
this.btnNext.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnNext.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnNext.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnNext.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnNext.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnNext.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnNext.Style.CornerDiameter = 3;
|
||||
this.btnNext.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.btnNext.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnNext.Style.GradientAngle = 90;
|
||||
this.btnNext.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnNext.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnNext.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnNext.TabIndex = 734;
|
||||
this.btnNext.Text = "→";
|
||||
this.btnNext.UseVisualStyleBackColor = true;
|
||||
this.btnNext.Click += new System.EventHandler(this.btnNext_Click);
|
||||
//
|
||||
// btnToKfMainPage
|
||||
//
|
||||
this.btnToKfMainPage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnToKfMainPage.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnToKfMainPage.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnToKfMainPage.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnToKfMainPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnToKfMainPage.Location = new System.Drawing.Point(1068, 2);
|
||||
this.btnToKfMainPage.Name = "btnToKfMainPage";
|
||||
this.btnToKfMainPage.Size = new System.Drawing.Size(88, 23);
|
||||
this.btnToKfMainPage.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnToKfMainPage.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnToKfMainPage.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnToKfMainPage.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnToKfMainPage.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnToKfMainPage.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnToKfMainPage.Style.CornerDiameter = 3;
|
||||
this.btnToKfMainPage.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.btnToKfMainPage.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnToKfMainPage.Style.GradientAngle = 90;
|
||||
this.btnToKfMainPage.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnToKfMainPage.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnToKfMainPage.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnToKfMainPage.TabIndex = 730;
|
||||
this.btnToKfMainPage.Text = "返回客服首页";
|
||||
this.btnToKfMainPage.Click += new System.EventHandler(this.btnToKfMainPage_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.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnPrev.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnPrev.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnPrev.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnPrev.Location = new System.Drawing.Point(0, 2);
|
||||
this.btnPrev.Name = "btnPrev";
|
||||
this.btnPrev.Size = new System.Drawing.Size(32, 23);
|
||||
this.btnPrev.TabIndex = 10;
|
||||
this.btnPrev.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnPrev.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnPrev.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnPrev.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnPrev.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnPrev.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnPrev.Style.CornerDiameter = 3;
|
||||
this.btnPrev.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.btnPrev.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnPrev.Style.GradientAngle = 90;
|
||||
this.btnPrev.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnPrev.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnPrev.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnPrev.TabIndex = 734;
|
||||
this.btnPrev.Text = "←";
|
||||
this.btnPrev.UseVisualStyleBackColor = true;
|
||||
this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click);
|
||||
//
|
||||
// txtAddress
|
||||
//
|
||||
this.txtAddress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtAddress.Location = new System.Drawing.Point(66, 1);
|
||||
this.txtAddress.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.txtAddress.Name = "txtAddress";
|
||||
this.txtAddress.Size = new System.Drawing.Size(1000, 23);
|
||||
this.txtAddress.TabIndex = 12;
|
||||
this.txtAddress.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtAddress_KeyDown);
|
||||
//
|
||||
// pnlTalk
|
||||
//
|
||||
this.pnlTalk.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pnlTalk.Location = new System.Drawing.Point(0, 0);
|
||||
this.pnlTalk.Name = "pnlTalk";
|
||||
this.pnlTalk.Size = new System.Drawing.Size(1155, 549);
|
||||
this.pnlTalk.TabIndex = 1;
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Controls.Add(this.mainPanel);
|
||||
this.tabPage2.Location = new System.Drawing.Point(2, 30);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage2.Size = new System.Drawing.Size(1221, 584);
|
||||
this.tabPage2.Size = new System.Drawing.Size(1161, 584);
|
||||
this.tabPage2.TabIndex = 1;
|
||||
this.tabPage2.Text = "店铺后台";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
@@ -622,7 +877,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.mainPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.mainPanel.Location = new System.Drawing.Point(3, 3);
|
||||
this.mainPanel.Name = "mainPanel";
|
||||
this.mainPanel.Size = new System.Drawing.Size(1215, 578);
|
||||
this.mainPanel.Size = new System.Drawing.Size(1155, 578);
|
||||
this.mainPanel.TabIndex = 1;
|
||||
//
|
||||
// ColumnShopStatus
|
||||
@@ -697,16 +952,6 @@ 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;
|
||||
@@ -741,7 +986,11 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit();
|
||||
this.ucTabControl1.ResumeLayout(false);
|
||||
this.tabPage1.ResumeLayout(false);
|
||||
this.pnlTalk.ResumeLayout(false);
|
||||
this.splitContainer3.Panel1.ResumeLayout(false);
|
||||
this.splitContainer3.Panel1.PerformLayout();
|
||||
this.splitContainer3.Panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit();
|
||||
this.splitContainer3.ResumeLayout(false);
|
||||
this.tabPage2.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
@@ -761,7 +1010,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
private System.Windows.Forms.TextBox txtAutoReplyText;
|
||||
private System.Windows.Forms.CheckBox chkIsAutoReply;
|
||||
private System.Windows.Forms.SplitContainer splitContainer4;
|
||||
private DevComponents.DotNetBar.PanelEx pnlRefresh;
|
||||
private DevComponents.DotNetBar.PanelEx pnlRefreshShop;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnShopID;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnShopName;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn ColumnShopStatus;
|
||||
@@ -777,24 +1026,35 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
private System.Windows.Forms.Panel pnlTalk;
|
||||
private System.Windows.Forms.TabPage tabPage2;
|
||||
private System.Windows.Forms.Panel mainPanel;
|
||||
private System.Windows.Forms.PictureBox pbLoading;
|
||||
private DevComponents.DotNetBar.PanelEx btnFilterShop;
|
||||
private DevComponents.DotNetBar.PanelEx panelEx1;
|
||||
private DevComponents.DotNetBar.Controls.TextBoxX txtFiltShopName;
|
||||
private UserComponent.UcComboBoxMutiSelect cmbFiltNotes;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private DevComponents.DotNetBar.PanelEx btnRefreshAfterSale;
|
||||
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 colShopNotes;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colLoginStatus;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colAfterSale;
|
||||
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;
|
||||
private System.Windows.Forms.SplitContainer splitContainer3;
|
||||
private System.Windows.Forms.TextBox txtAddress;
|
||||
private DevComponents.DotNetBar.PanelEx btnNext;
|
||||
private DevComponents.DotNetBar.PanelEx btnToKfMainPage;
|
||||
private DevComponents.DotNetBar.PanelEx btnPrev;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label lblUserCount;
|
||||
private System.Windows.Forms.Label lblReplyCount;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private DevComponents.DotNetBar.Controls.Line line1;
|
||||
private DevComponents.DotNetBar.PanelEx btnRefreshMsgCount;
|
||||
private System.Windows.Forms.Label lblTalkCount;
|
||||
private System.Windows.Forms.Label label6;
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,12 @@
|
||||
using AllBase;
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.Config;
|
||||
using AllBase.Model.Result;
|
||||
using CefSharp;
|
||||
using CefSharp.WinForms;
|
||||
using NaiBa.CefHelper;
|
||||
using NaiBa.CefHelper.Handler;
|
||||
using NaiBa.Util;
|
||||
using NaiBa.Util.Extension;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -20,6 +22,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using TemuKJD.BaseForms;
|
||||
using TemuKJD.BLL;
|
||||
using TemuKJD.Helper;
|
||||
using TemuKJD.ToolForms;
|
||||
using TemuKJD.WXForms.ShopForms;
|
||||
@@ -29,7 +32,8 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
{
|
||||
public partial class WxTalkForm : BaseTalkForm
|
||||
{
|
||||
public Dictionary<string, int> ShopChatCount = new Dictionary<string, int>();
|
||||
public ConcurrentList<WxShopKfStatistics> lstShopKfStatistics = new ConcurrentList<WxShopKfStatistics>();
|
||||
public ConcurrentList<WxShopAfterSaleInfo> lstShopAfterSale = new ConcurrentList<WxShopAfterSaleInfo>();
|
||||
|
||||
public delegate void SearchResultReceivedHandler(ShopLoginInfo shop);
|
||||
/// <summary>
|
||||
@@ -106,7 +110,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
lifeSpanHandler.parent = mainWebBrowser;
|
||||
lifeSpanHandler.OnPop += MainLifeHandler_OnPop;
|
||||
mainWebBrowser.LifeSpanHandler = lifeSpanHandler;
|
||||
//mainWebBrowser.AddressChanged += mainWebBrowser_UrlChanged;
|
||||
mainWebBrowser.AddressChanged += MainWebBrowser_AddressChanged;
|
||||
mainWebBrowser.FrameLoadEnd += cefWebBrowser1_FrameLoadEnd;
|
||||
mainPanel.Controls.Add(mainWebBrowser);
|
||||
}
|
||||
@@ -125,9 +129,38 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
{
|
||||
this.cmbFiltNotes.Items.Add(shopNote);
|
||||
}
|
||||
|
||||
lstShopAfterSale = NaiBa.Util.Helper.ConfigHelper.LoadConfig<NaiBa.Util.ConcurrentList<WxShopAfterSaleInfo>>("wx_shop_after_sale_list");
|
||||
if (lstShopAfterSale == null)
|
||||
lstShopAfterSale = new ConcurrentList<WxShopAfterSaleInfo>();
|
||||
RefreshAfterSale();
|
||||
}));
|
||||
|
||||
while (true)
|
||||
{
|
||||
Thread.Sleep(1000);
|
||||
if (DateTime.Now > nextRefreshTime)
|
||||
{
|
||||
nextRefreshTime = DateTime.Now.AddMinutes(30);
|
||||
Invoke(new Action(() => { RefreshCookie(true); }));
|
||||
Invoke(new Action(() => { RefreshMsgCount(); }));
|
||||
}
|
||||
var deltaTime = nextRefreshTime - DateTime.Now;
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.pnlRefreshShop.Text = "刷 新 店 铺 " + deltaTime.Minutes.ToString("00") + ":" + deltaTime.Seconds.ToString("00");
|
||||
}));
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
private void MainWebBrowser_AddressChanged(object sender, AddressChangedEventArgs e)
|
||||
{
|
||||
if (sender == currentShop?.Chat)
|
||||
this.txtAddress.Text = e.Address;
|
||||
}
|
||||
|
||||
private void cefWebBrowser1_FrameLoadEnd(object sender, CefSharp.FrameLoadEndEventArgs e)
|
||||
{
|
||||
//ChromiumWebBrowser cefWebBrowser1 = (ChromiumWebBrowser)sender;
|
||||
@@ -241,15 +274,18 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
iGrid = dgvShop.Rows.Add();
|
||||
if (iGrid == 0)
|
||||
dgvShop.Rows[iGrid].Cells["colSelect"].Value = true;
|
||||
r = dgvShop.Rows[iGrid];
|
||||
}
|
||||
else
|
||||
iGrid = r.Index;
|
||||
|
||||
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;
|
||||
r.Cells["colShopId"].Value = shop.ShopId; // 店铺ID
|
||||
r.Cells["colShopName"].Value = shop.ShopAccount; // 店铺名称
|
||||
r.Cells["colShopNotes"].Value = shop.Notes; // 备注
|
||||
r.Cells["colLoginStatus"].Value = shop.LoginStatus == "登录成功" ? "在线" : "掉线"; // 登录状态
|
||||
bool canUse = shop.LoginStatus == "登录成功";
|
||||
(r.Cells["colLoginStatus"] as DataGridViewLinkCell).Style.ForeColor = canUse ? Color.Blue : Color.Red;
|
||||
(r.Cells["colLoginStatus"] as DataGridViewLinkCell).LinkColor = canUse ? Color.Blue : Color.Red;
|
||||
(r.Cells["colLoginStatus"] as DataGridViewLinkCell).ActiveLinkColor = canUse ? Color.LightBlue : Color.OrangeRed;
|
||||
(r.Cells["colLoginStatus"] as DataGridViewLinkCell).VisitedLinkColor = canUse ? Color.DarkBlue : Color.DarkRed;
|
||||
dicRowColor[r] = r.DefaultCellStyle.BackColor;
|
||||
|
||||
if (shop.Chat == null)
|
||||
{
|
||||
@@ -324,6 +360,17 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadShopAfterSale(WxShopAfterSaleInfo shopAfterSale, string msg)
|
||||
{
|
||||
var r = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(x => x.Cells["colShopId"].Value.ToString() == shopAfterSale.ShopId);
|
||||
if (r != null)
|
||||
{
|
||||
r.Cells["colMessage"].Value = msg;
|
||||
r.Cells["colAfterSale"].Value = shopAfterSale.AfterSaleCount;
|
||||
r.Cells["colAfterSale"].Style.ForeColor = shopAfterSale.AfterSaleCount > 0 ? Color.Red : Color.Black;
|
||||
}
|
||||
}
|
||||
|
||||
private void RequestHandler_ResourceLoadComplete(object sender, string url, string postData, string responseData)
|
||||
{
|
||||
//if (responseData.Contains("你好"))
|
||||
@@ -897,11 +944,25 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
|
||||
if (shop?.Chat != null)
|
||||
{
|
||||
// 之前的当前店铺如果不在聊天界面强制转回聊天界面
|
||||
if (currentShop?.Chat != null)
|
||||
{
|
||||
//if (currentShop.LoginStatus == "登录成功" && !currentShop.Chat.Address.StartsWith("https://store.weixin.qq.com/shop/kf"))
|
||||
// currentShop.Chat.Load("https://store.weixin.qq.com/shop/kf");
|
||||
|
||||
var script = "document.documentElement.outerHTML;";
|
||||
string htmlContent = currentShop.Chat.EvaluateScriptAsync(script).Result.Result.ParseToString();
|
||||
if (currentShop.LoginStatus == "登录成功" && !htmlContent.Contains("按Enter发送"))
|
||||
currentShop.Chat.Load("https://store.weixin.qq.com/shop/kf");
|
||||
}
|
||||
|
||||
currentShop = shop;
|
||||
shop.Chat.Dock = DockStyle.Fill;
|
||||
shop.Chat.BringToFront();
|
||||
btnPrev.BringToFront();
|
||||
btnNext.BringToFront();
|
||||
|
||||
txtAddress.Text = currentShop.Chat.Address;
|
||||
}
|
||||
|
||||
Task.Run(() =>
|
||||
@@ -923,11 +984,23 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
}
|
||||
|
||||
private void pnlRefresh_Click(object sender, EventArgs e)
|
||||
{
|
||||
nextRefreshTime = DateTime.Now.AddMinutes(30);
|
||||
RefreshCookie();
|
||||
}
|
||||
|
||||
DateTime nextRefreshTime = DateTime.Now;
|
||||
void RefreshCookie(bool isAuto = false)
|
||||
{
|
||||
pbLoading.Visible = true;
|
||||
Task.Run(() =>
|
||||
{
|
||||
WXShopListForm.UpdateShop();
|
||||
if (!isAuto)
|
||||
WXShopListForm.UpdateShop();
|
||||
foreach (var shop in GlobalConfig.ShopLoginList)
|
||||
{
|
||||
WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
|
||||
}
|
||||
LoadShop();
|
||||
Invoke(new Action(() => { pbLoading.Visible = false; }));
|
||||
});
|
||||
@@ -969,5 +1042,162 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
{
|
||||
currentShop.Chat.Forward();
|
||||
}
|
||||
|
||||
private void btnRefreshAfterSale_Click(object sender, EventArgs e)
|
||||
{
|
||||
RefreshAfterSale(true);
|
||||
}
|
||||
|
||||
void RefreshAfterSale(bool refreshAll = false)
|
||||
{
|
||||
this.pbLoading.Visible = true;
|
||||
Task.Run(() =>
|
||||
{
|
||||
List<Task> tList = new List<Task>();
|
||||
if (refreshAll)
|
||||
lstShopAfterSale.Clear();
|
||||
foreach (var shop in GlobalConfig.ShopLoginList)
|
||||
{
|
||||
var afterInfo = lstShopAfterSale.FirstOrDefault(sa => sa.ShopId == shop.ShopId);
|
||||
if (afterInfo == null)
|
||||
afterInfo = new WxShopAfterSaleInfo() { ShopId = shop.ShopId };
|
||||
Invoke(new Action(() => { LoadShopAfterSale(afterInfo, ""); }));
|
||||
var t = Task.Run(() =>
|
||||
{
|
||||
try
|
||||
{
|
||||
if (shop.LoginStatus != "登录成功")
|
||||
{
|
||||
Invoke(new Action(() => { LoadShopAfterSale(new WxShopAfterSaleInfo() { ShopId = shop.ShopId }, "店铺掉线"); }));
|
||||
return;
|
||||
}
|
||||
|
||||
var afterSaleInfo = lstShopAfterSale.FirstOrDefault(sa => sa.ShopId == shop.ShopId);
|
||||
if (refreshAll || afterSaleInfo == null || afterSaleInfo.RefreshTime.Date != DateTime.Now.Date)
|
||||
{
|
||||
lstShopAfterSale.RemoveAll(sa => sa.ShopId == shop.ShopId);
|
||||
var rst = GetApiServiceList(shop);
|
||||
if (!rst.Contains("\"code\":0"))
|
||||
{
|
||||
WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
|
||||
if (shop.LoginStatus != "登录成功")
|
||||
{
|
||||
Invoke(new Action(() => { LoadShopAfterSale(new WxShopAfterSaleInfo() { ShopId = shop.ShopId }, "店铺掉线"); }));
|
||||
return;
|
||||
}
|
||||
|
||||
afterInfo = new WxShopAfterSaleInfo() { ShopId = shop.ShopId, RefreshTime = DateTime.Now };
|
||||
lstShopAfterSale.Add(afterInfo);
|
||||
Invoke(new Action(() => { LoadShopAfterSale(afterInfo, "查询失败"); }));
|
||||
return;
|
||||
}
|
||||
|
||||
var afterCount = JsonHelper.JObjectParse(rst)["aftersaleAllRet"]["totalNum"].ParseToInt();
|
||||
afterInfo = new WxShopAfterSaleInfo() { ShopId = shop.ShopId, RefreshTime = DateTime.Now, AfterSaleCount = afterCount };
|
||||
lstShopAfterSale.Add(afterInfo);
|
||||
Invoke(new Action(() => { LoadShopAfterSale(afterInfo, "已查询"); }));
|
||||
return;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
});
|
||||
tList.Add(t);
|
||||
while (tList.Where(ta => !ta.IsFaulted && !ta.IsCompleted).Count() >= 20) { Thread.Sleep(100); }
|
||||
}
|
||||
while (tList.Where(ta => !ta.IsFaulted && !ta.IsCompleted).Count() >= 1) { Thread.Sleep(100); }
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_shop_after_sale_list", lstShopAfterSale);
|
||||
Invoke(new Action(() => { pbLoading.Visible = false; }));
|
||||
});
|
||||
}
|
||||
|
||||
private void btnToKfMainPage_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (currentShop?.Chat != null && currentShop.LoginStatus == "登录成功")
|
||||
currentShop.Chat.Load("https://store.weixin.qq.com/shop/kf");
|
||||
}
|
||||
|
||||
private void txtAddress_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
{
|
||||
if (currentShop?.Chat != null)
|
||||
{
|
||||
currentShop?.Chat.Load(txtAddress.Text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取店铺后台主页售后数量等数据
|
||||
/// </summary>
|
||||
/// <param name="shop"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetApiServiceList(ShopLoginInfo shop)
|
||||
{
|
||||
string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradehome/home/main?token=&lang=zh_CN";
|
||||
string referer = "https://store.weixin.qq.com/shop/home";
|
||||
var result = WXHttpResponseBLL.WeiXinGetResponse(shop, url, referer);
|
||||
return result;
|
||||
//{"code":0,"orderNumRet":{"code":0,"pendingShipNum":"1"},"waybillErrorRet":{"code":0,"totalNum":0},"aftersaleAllRet":{"code":0,"totalNum":3},"guaranteeRet":{"code":0,"totalNum":0},"prewarnRet":{"code":0,"waitStatusCount":0},"punishRet":{"code":0,"pendingNum":1},"mchUndealRet":{"code":0,"totalNum":0}}
|
||||
//pendingShipNum待发货 waybillErrorRet物流异常 aftersaleAllRet售后 guaranteeRet服务保障 prewarnRet店铺预警 punishRet店铺违规 mchUndealRet工单
|
||||
}
|
||||
|
||||
public static string GetKfMsgStatistics(ShopLoginInfo shop, long beginDateTick, long endDateTick)
|
||||
{
|
||||
string url = "https://store.weixin.qq.com/shop/kf/cgi/data/getRealTimeShopV2?" + "beginDate=" + (beginDateTick / 1000) + "&endDate=" + (endDateTick / 1000m).ToString("0.000");
|
||||
string referer = "https://store.weixin.qq.com/shop/kf/data/store";
|
||||
var result = WXHttpResponseBLL.WeiXinGetResponse(shop, url, referer);
|
||||
return result;
|
||||
}
|
||||
|
||||
private void btnRefreshMsgCount_Click(object sender, EventArgs e)
|
||||
{
|
||||
RefreshMsgCount();
|
||||
}
|
||||
|
||||
void RefreshMsgCount()
|
||||
{
|
||||
pbLoading.Visible = true;
|
||||
Task.Run(() =>
|
||||
{
|
||||
lstShopKfStatistics.Clear();
|
||||
foreach (var shop in GlobalConfig.ShopLoginList)
|
||||
{
|
||||
var kfMsg = new WxShopKfStatistics() { ShopId = shop.ShopId };
|
||||
var kfMsgRst = GetKfMsgStatistics(shop, BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now.Date), BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now));
|
||||
if (!kfMsgRst.Contains("\"ret\":0"))
|
||||
continue;
|
||||
try
|
||||
{
|
||||
var jObj = JsonHelper.JObjectParse(kfMsgRst);
|
||||
kfMsg.user_cnt = jObj["cardResp"]["objects"]["tableValueLine"][0]["columnValue"][1].ParseToInt();
|
||||
kfMsg.sesseion_cnt = jObj["cardResp"]["objects"]["tableValueLine"][0]["columnValue"][2].ParseToInt();
|
||||
kfMsg.service_noreply_ratio = jObj["cardResp"]["objects"]["tableValueLine"][0]["columnValue"][5].ParseToDecimal();
|
||||
lstShopKfStatistics.Add(kfMsg);
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
int count = Math.Max(1, lstShopKfStatistics.Count());
|
||||
lblUserCount.Text = lstShopKfStatistics.Sum(s => s.user_cnt).ParseToString();
|
||||
lblTalkCount.Text = lstShopKfStatistics.Sum(s => s.sesseion_cnt).ParseToString();
|
||||
lblReplyCount.Text = lstShopKfStatistics.Sum(s => s.service_reply_ratio * 100 / count).ParseToDecimal().ToString("0.0") + "%";
|
||||
}));
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
int count = Math.Max(1, lstShopKfStatistics.Count());
|
||||
lblUserCount.Text = lstShopKfStatistics.Sum(s => s.user_cnt).ParseToString();
|
||||
lblTalkCount.Text = lstShopKfStatistics.Sum(s => s.sesseion_cnt).ParseToString();
|
||||
lblReplyCount.Text = lstShopKfStatistics.Sum(s => s.service_reply_ratio * 100 / count).ParseToDecimal().ToString("0.0") + "%";
|
||||
pbLoading.Visible = false;
|
||||
}));
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -132,6 +132,9 @@
|
||||
<metadata name="colLoginStatus.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colAfterSale.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colCanUse.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
@@ -156,12 +159,6 @@
|
||||
<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