微信app采集

This commit is contained in:
wule committed 2026-03-26 21:34:59 +08:00
1 parent 52220daa8b
commit 2f61dc1cdd
67 files changed
+6197 -1118

No files matched your search

+49 -49
View File
@@ -30,11 +30,11 @@ namespace TemuKJD.ToolForms
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
this.line1 = new DevComponents.DotNetBar.Controls.Line();
this.label2 = new System.Windows.Forms.Label();
this.btnImportCookie = new DevComponents.DotNetBar.PanelEx();
@@ -88,10 +88,10 @@ namespace TemuKJD.ToolForms
this.colWangwang = new System.Windows.Forms.DataGridViewImageColumn();
this.colDel = new System.Windows.Forms.DataGridViewLinkColumn();
this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.chkSkip = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.btnGetDetail = new DevComponents.DotNetBar.PanelEx();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.panel1 = new System.Windows.Forms.Panel();
this.chkSkip = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.btnGetDetail = new DevComponents.DotNetBar.PanelEx();
this.pnlMultiLogin.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
@@ -567,7 +567,7 @@ namespace TemuKJD.ToolForms
this.splitContainer1.Panel2.Controls.Add(this.label2);
this.splitContainer1.Panel2.Controls.Add(this.line1);
this.splitContainer1.Size = new System.Drawing.Size(1404, 561);
this.splitContainer1.SplitterDistance = 463;
this.splitContainer1.SplitterDistance = 465;
this.splitContainer1.SplitterWidth = 3;
this.splitContainer1.TabIndex = 4;
//
@@ -584,7 +584,7 @@ namespace TemuKJD.ToolForms
this.ucTabControlMetro1.Name = "ucTabControlMetro1";
this.ucTabControlMetro1.SelectedIndex = 0;
this.ucTabControlMetro1.ShowCloseButton = false;
this.ucTabControlMetro1.Size = new System.Drawing.Size(1404, 463);
this.ucTabControlMetro1.Size = new System.Drawing.Size(1404, 465);
this.ucTabControlMetro1.TabIndex = 462;
this.ucTabControlMetro1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.ucTabControlMetro1.TabSelectTextColor = System.Drawing.Color.Gray;
@@ -597,7 +597,7 @@ namespace TemuKJD.ToolForms
this.tabPage1.Margin = new System.Windows.Forms.Padding(5);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(1396, 431);
this.tabPage1.Size = new System.Drawing.Size(1396, 433);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "商品页面";
this.tabPage1.UseVisualStyleBackColor = true;
@@ -616,7 +616,7 @@ namespace TemuKJD.ToolForms
this.splitContainer2.Panel1.Controls.Add(this.btnNext);
this.splitContainer2.Panel1.Controls.Add(this.btnPrev);
this.splitContainer2.Panel1.Controls.Add(this.txtAddress);
this.splitContainer2.Size = new System.Drawing.Size(1390, 425);
this.splitContainer2.Size = new System.Drawing.Size(1390, 427);
this.splitContainer2.SplitterDistance = 26;
this.splitContainer2.TabIndex = 6;
//
@@ -658,7 +658,7 @@ namespace TemuKJD.ToolForms
this.tabPage2.Location = new System.Drawing.Point(4, 28);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(1396, 431);
this.tabPage2.Size = new System.Drawing.Size(1396, 433);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "采集商品列表";
this.tabPage2.UseVisualStyleBackColor = true;
@@ -667,7 +667,7 @@ namespace TemuKJD.ToolForms
//
this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
this.pbLoading.Location = new System.Drawing.Point(673, 188);
this.pbLoading.Location = new System.Drawing.Point(673, 189);
this.pbLoading.Name = "pbLoading";
this.pbLoading.Size = new System.Drawing.Size(50, 50);
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
@@ -679,20 +679,20 @@ namespace TemuKJD.ToolForms
//
this.dgvProduct.AllowUserToAddRows = false;
this.dgvProduct.AllowUserToDeleteRows = false;
dataGridViewCellStyle11.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.dgvProduct.AutoRowNumber = true;
this.dgvProduct.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgvProduct.BackgroundColor = System.Drawing.Color.White;
this.dgvProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle12.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.dgvProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colCheck,
@@ -718,7 +718,7 @@ namespace TemuKJD.ToolForms
this.dgvProduct.Name = "dgvProduct";
this.dgvProduct.ReadOnly = true;
this.dgvProduct.RowTemplate.Height = 23;
this.dgvProduct.Size = new System.Drawing.Size(1390, 425);
this.dgvProduct.Size = new System.Drawing.Size(1390, 427);
this.dgvProduct.TabIndex = 7;
this.dgvProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvProduct_CellContentClick);
//
@@ -754,8 +754,8 @@ namespace TemuKJD.ToolForms
//
// colGoodsName
//
dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colGoodsName.DefaultCellStyle = dataGridViewCellStyle13;
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colGoodsName.DefaultCellStyle = dataGridViewCellStyle3;
this.colGoodsName.HeaderText = "商品名称";
this.colGoodsName.Name = "colGoodsName";
this.colGoodsName.ReadOnly = true;
@@ -787,8 +787,8 @@ namespace TemuKJD.ToolForms
//
// colPrice
//
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colPrice.DefaultCellStyle = dataGridViewCellStyle14;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colPrice.DefaultCellStyle = dataGridViewCellStyle4;
this.colPrice.FillWeight = 40F;
this.colPrice.HeaderText = "供货价";
this.colPrice.Name = "colPrice";
@@ -847,13 +847,32 @@ namespace TemuKJD.ToolForms
//
// colMsg
//
dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colMsg.DefaultCellStyle = dataGridViewCellStyle15;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colMsg.DefaultCellStyle = dataGridViewCellStyle5;
this.colMsg.FillWeight = 160F;
this.colMsg.HeaderText = "操作结果";
this.colMsg.Name = "colMsg";
this.colMsg.ReadOnly = true;
//
// tabPage3
//
this.tabPage3.Controls.Add(this.panel1);
this.tabPage3.Location = new System.Drawing.Point(4, 28);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(1396, 432);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "1688地址管理";
this.tabPage3.UseVisualStyleBackColor = true;
//
// panel1
//
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(3, 3);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1390, 426);
this.panel1.TabIndex = 0;
//
// chkSkip
//
this.chkSkip.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -892,25 +911,6 @@ namespace TemuKJD.ToolForms
this.btnGetDetail.Text = "采集商品详情";
this.btnGetDetail.Click += new System.EventHandler(this.btnGetDetail_Click);
//
// tabPage3
//
this.tabPage3.Controls.Add(this.panel1);
this.tabPage3.Location = new System.Drawing.Point(4, 28);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(1396, 431);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "1688地址管理";
this.tabPage3.UseVisualStyleBackColor = true;
//
// panel1
//
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(3, 3);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1390, 425);
this.panel1.TabIndex = 0;
//
// Get1688ProductForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
+10 -1
View File
@@ -72,7 +72,9 @@ namespace TemuKJD.ToolForms
if (lst1688OneProductListInfo == null)
lst1688OneProductListInfo = new ConcurrentList<_1688OneProductListInfo>();
var _1688AddressForm = new Get1688AddressForm();
var _1688AddressForm = new GetAddressForm() { AddressType = "1688" };
_1688AddressForm.cmbType.Enabled = false;
_1688AddressForm.cmbTypeFilter.Enabled = false;
_1688AddressForm.TopLevel = false;
_1688AddressForm.FormBorderStyle = FormBorderStyle.None;
_1688AddressForm.Dock = DockStyle.Fill;
@@ -906,6 +908,13 @@ namespace TemuKJD.ToolForms
"&cat_id=" + prod.dbProduct.cat_id +
"&cat_name=" + HttpUtility.UrlEncode((prod.dbProduct.cat_name ?? prod.dbProduct.cat_name).ParseToString(), Encoding.UTF8);
}
if (1 == 1)
{
//1688没有分销,但是聚水潭上货条件要判断1是否类目识别 2是否服务端加密 3是否分销
//作为1688和聚水潭一致的上货必备条件,此处1688分销直接设置为1
prod.dbProduct.distribution_set = 1;
data += "&distribution_set=1";
}
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
@@ -1,6 +1,6 @@
namespace TemuKJD.ToolForms
{
partial class Get1688AddressForm
partial class GetAddressForm
{
/// <summary>
/// Required designer variable.
@@ -32,9 +32,12 @@
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.splitContainer5 = new System.Windows.Forms.SplitContainer();
this.pnlEmpty = new DevComponents.DotNetBar.PanelEx();
this.txtSearch = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.cmbType = new System.Windows.Forms.ComboBox();
this.label16 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.txtStreetName = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
@@ -54,7 +57,6 @@
this.label3 = new System.Windows.Forms.Label();
this.txtUserName = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.btnRefresh = new TemuKJD.UserControls.ButtonEx();
this.btnCancel = new TemuKJD.UserControls.ButtonEx();
this.btnAddAddress = new TemuKJD.UserControls.ButtonEx();
this.label34 = new System.Windows.Forms.Label();
@@ -65,11 +67,15 @@
this.txtCoid = new System.Windows.Forms.TextBox();
this.label40 = new System.Windows.Forms.Label();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.cmbTypeFilter = new System.Windows.Forms.ComboBox();
this.btnSearch = new DevComponents.DotNetBar.PanelEx();
this.pnlEmpty = new DevComponents.DotNetBar.PanelEx();
this.label17 = new System.Windows.Forms.Label();
this.txtSearch = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.pbLoading = new System.Windows.Forms.PictureBox();
this.txtStreetName = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.dgvUser = new TemuKJD.UserComponent.DataGridViewEx();
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
this.dgvAddress = new TemuKJD.UserComponent.DataGridViewEx();
this.colId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colCoid = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colSupplierName = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -81,8 +87,11 @@
this.colCountyName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colStreetName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colDetailInfo = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colAddressType = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.editColumn = new System.Windows.Forms.DataGridViewLinkColumn();
this.deleteColumn = new System.Windows.Forms.DataGridViewLinkColumn();
this.colSync = new System.Windows.Forms.DataGridViewLinkColumn();
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).BeginInit();
this.splitContainer5.Panel1.SuspendLayout();
this.splitContainer5.Panel2.SuspendLayout();
@@ -91,8 +100,12 @@
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout();
this.splitContainer2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgvUser)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgvAddress)).BeginInit();
this.SuspendLayout();
//
// splitContainer5
@@ -105,9 +118,12 @@
//
// splitContainer5.Panel1
//
this.splitContainer5.Panel1.Controls.Add(this.pnlEmpty);
this.splitContainer5.Panel1.Controls.Add(this.txtSearch);
this.splitContainer5.Panel1.Controls.Add(this.label14);
this.splitContainer5.Panel1.Controls.Add(this.label18);
this.splitContainer5.Panel1.Controls.Add(this.cmbType);
this.splitContainer5.Panel1.Controls.Add(this.label16);
this.splitContainer5.Panel1.Controls.Add(this.label15);
this.splitContainer5.Panel1.Controls.Add(this.txtStreetName);
this.splitContainer5.Panel1.Controls.Add(this.label11);
this.splitContainer5.Panel1.Controls.Add(this.label13);
this.splitContainer5.Panel1.Controls.Add(this.label12);
this.splitContainer5.Panel1.Controls.Add(this.label10);
@@ -127,7 +143,6 @@
this.splitContainer5.Panel1.Controls.Add(this.label3);
this.splitContainer5.Panel1.Controls.Add(this.txtUserName);
this.splitContainer5.Panel1.Controls.Add(this.label2);
this.splitContainer5.Panel1.Controls.Add(this.btnRefresh);
this.splitContainer5.Panel1.Controls.Add(this.btnCancel);
this.splitContainer5.Panel1.Controls.Add(this.btnAddAddress);
this.splitContainer5.Panel1.Controls.Add(this.label34);
@@ -147,55 +162,77 @@
this.splitContainer5.SplitterWidth = 1;
this.splitContainer5.TabIndex = 2;
//
// pnlEmpty
// label18
//
this.pnlEmpty.CanvasColor = System.Drawing.SystemColors.Control;
this.pnlEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.pnlEmpty.DisabledBackColor = System.Drawing.Color.Empty;
this.pnlEmpty.Location = new System.Drawing.Point(310, 5);
this.pnlEmpty.Name = "pnlEmpty";
this.pnlEmpty.Size = new System.Drawing.Size(43, 25);
this.pnlEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
this.pnlEmpty.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.pnlEmpty.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.pnlEmpty.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.pnlEmpty.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.pnlEmpty.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.pnlEmpty.Style.GradientAngle = 90;
this.pnlEmpty.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
this.pnlEmpty.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.pnlEmpty.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.pnlEmpty.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.pnlEmpty.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
this.pnlEmpty.TabIndex = 417;
this.pnlEmpty.Text = "清空";
this.pnlEmpty.Click += new System.EventHandler(this.pnlEmpty_Click);
this.label18.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label18.AutoSize = true;
this.label18.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label18.Location = new System.Drawing.Point(303, 39);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(13, 17);
this.label18.TabIndex = 65;
this.label18.Text = "*";
//
// txtSearch
// cmbType
//
this.txtSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
this.cmbType.FormattingEnabled = true;
this.cmbType.Items.AddRange(new object[] {
"",
"jst",
"1688"});
this.cmbType.Location = new System.Drawing.Point(123, 34);
this.cmbType.Name = "cmbType";
this.cmbType.Size = new System.Drawing.Size(173, 25);
this.cmbType.TabIndex = 64;
this.cmbType.Text = "jst";
//
// label16
//
this.label16.AutoSize = true;
this.label16.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label16.Location = new System.Drawing.Point(22, 36);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(93, 20);
this.label16.TabIndex = 63;
this.label16.Text = "供应商类型:";
//
// label15
//
this.label15.AutoSize = true;
this.label15.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label15.Location = new System.Drawing.Point(5, 5);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(99, 20);
this.label15.TabIndex = 62;
this.label15.Text = "新增/修改地址";
//
// txtStreetName
//
this.txtStreetName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtSearch.Location = new System.Drawing.Point(73, 6);
this.txtSearch.Name = "txtSearch";
this.txtSearch.Size = new System.Drawing.Size(188, 23);
this.txtSearch.TabIndex = 60;
this.txtStreetName.Location = new System.Drawing.Point(123, 438);
this.txtStreetName.Name = "txtStreetName";
this.txtStreetName.Size = new System.Drawing.Size(173, 23);
this.txtStreetName.TabIndex = 52;
this.txtStreetName.Visible = false;
//
// label14
// label11
//
this.label14.AutoSize = true;
this.label14.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label14.Location = new System.Drawing.Point(3, 7);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(79, 20);
this.label14.TabIndex = 61;
this.label14.Text = "模糊查询:";
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label11.Location = new System.Drawing.Point(65, 439);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(51, 20);
this.label11.TabIndex = 53;
this.label11.Text = "街道:";
this.label11.Visible = false;
//
// label13
//
this.label13.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label13.AutoSize = true;
this.label13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label13.Location = new System.Drawing.Point(292, 157);
this.label13.Location = new System.Drawing.Point(303, 163);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(13, 17);
this.label13.TabIndex = 59;
@@ -205,7 +242,7 @@
//
this.label12.AutoSize = true;
this.label12.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label12.Location = new System.Drawing.Point(40, 155);
this.label12.Location = new System.Drawing.Point(51, 161);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(65, 20);
this.label12.TabIndex = 58;
@@ -216,7 +253,7 @@
this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label10.AutoSize = true;
this.label10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label10.Location = new System.Drawing.Point(292, 316);
this.label10.Location = new System.Drawing.Point(303, 322);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(13, 17);
this.label10.TabIndex = 56;
@@ -227,7 +264,7 @@
this.txtDetailInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtDetailInfo.Location = new System.Drawing.Point(112, 312);
this.txtDetailInfo.Location = new System.Drawing.Point(123, 318);
this.txtDetailInfo.Multiline = true;
this.txtDetailInfo.Name = "txtDetailInfo";
this.txtDetailInfo.Size = new System.Drawing.Size(173, 81);
@@ -237,7 +274,7 @@
//
this.txtTelNumber.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtTelNumber.Location = new System.Drawing.Point(111, 154);
this.txtTelNumber.Location = new System.Drawing.Point(123, 160);
this.txtTelNumber.Name = "txtTelNumber";
this.txtTelNumber.Size = new System.Drawing.Size(173, 23);
this.txtTelNumber.TabIndex = 57;
@@ -246,7 +283,7 @@
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(27, 314);
this.label1.Location = new System.Drawing.Point(38, 320);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(79, 20);
this.label1.TabIndex = 54;
@@ -257,7 +294,7 @@
this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label8.AutoSize = true;
this.label8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label8.Location = new System.Drawing.Point(292, 250);
this.label8.Location = new System.Drawing.Point(303, 256);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(13, 17);
this.label8.TabIndex = 51;
@@ -267,7 +304,7 @@
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label9.Location = new System.Drawing.Point(49, 279);
this.label9.Location = new System.Drawing.Point(60, 285);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(57, 20);
this.label9.TabIndex = 50;
@@ -277,7 +314,7 @@
//
this.txtCountyName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtCountyName.Location = new System.Drawing.Point(112, 278);
this.txtCountyName.Location = new System.Drawing.Point(123, 284);
this.txtCountyName.Name = "txtCountyName";
this.txtCountyName.Size = new System.Drawing.Size(173, 23);
this.txtCountyName.TabIndex = 49;
@@ -287,7 +324,7 @@
this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label6.AutoSize = true;
this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label6.Location = new System.Drawing.Point(292, 219);
this.label6.Location = new System.Drawing.Point(303, 225);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(13, 17);
this.label6.TabIndex = 48;
@@ -297,7 +334,7 @@
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.Location = new System.Drawing.Point(69, 248);
this.label7.Location = new System.Drawing.Point(80, 254);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(37, 20);
this.label7.TabIndex = 47;
@@ -307,7 +344,7 @@
//
this.txtCityName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtCityName.Location = new System.Drawing.Point(112, 247);
this.txtCityName.Location = new System.Drawing.Point(123, 253);
this.txtCityName.Name = "txtCityName";
this.txtCityName.Size = new System.Drawing.Size(173, 23);
this.txtCityName.TabIndex = 46;
@@ -317,7 +354,7 @@
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label5.AutoSize = true;
this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label5.Location = new System.Drawing.Point(292, 281);
this.label5.Location = new System.Drawing.Point(303, 287);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(13, 17);
this.label5.TabIndex = 45;
@@ -327,7 +364,7 @@
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label4.Location = new System.Drawing.Point(69, 217);
this.label4.Location = new System.Drawing.Point(80, 223);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(37, 20);
this.label4.TabIndex = 44;
@@ -337,7 +374,7 @@
//
this.txtProvinceName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtProvinceName.Location = new System.Drawing.Point(112, 216);
this.txtProvinceName.Location = new System.Drawing.Point(123, 222);
this.txtProvinceName.Name = "txtProvinceName";
this.txtProvinceName.Size = new System.Drawing.Size(173, 23);
this.txtProvinceName.TabIndex = 43;
@@ -346,7 +383,7 @@
//
this.txtPostalCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtPostalCode.Location = new System.Drawing.Point(112, 185);
this.txtPostalCode.Location = new System.Drawing.Point(123, 191);
this.txtPostalCode.Name = "txtPostalCode";
this.txtPostalCode.Size = new System.Drawing.Size(173, 23);
this.txtPostalCode.TabIndex = 41;
@@ -355,7 +392,7 @@
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(55, 186);
this.label3.Location = new System.Drawing.Point(66, 192);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(51, 20);
this.label3.TabIndex = 40;
@@ -365,7 +402,7 @@
//
this.txtUserName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtUserName.Location = new System.Drawing.Point(112, 123);
this.txtUserName.Location = new System.Drawing.Point(123, 129);
this.txtUserName.Name = "txtUserName";
this.txtUserName.Size = new System.Drawing.Size(173, 23);
this.txtUserName.TabIndex = 39;
@@ -374,28 +411,12 @@
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(41, 124);
this.label2.Location = new System.Drawing.Point(52, 130);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(65, 20);
this.label2.TabIndex = 38;
this.label2.Text = "收件人:";
//
// btnRefresh
//
this.btnRefresh.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnRefresh.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnRefresh.ForeColor = System.Drawing.Color.White;
this.btnRefresh.Location = new System.Drawing.Point(264, 5);
this.btnRefresh.Name = "btnRefresh";
this.btnRefresh.Size = new System.Drawing.Size(43, 25);
this.btnRefresh.TabIndex = 36;
this.btnRefresh.Text = "查询";
this.btnRefresh.UseVisualStyleBackColor = false;
this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
//
// btnCancel
//
this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
@@ -404,7 +425,7 @@
this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCancel.ForeColor = System.Drawing.Color.White;
this.btnCancel.Location = new System.Drawing.Point(111, 411);
this.btnCancel.Location = new System.Drawing.Point(123, 407);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(82, 25);
this.btnCancel.TabIndex = 35;
@@ -421,7 +442,7 @@
this.btnAddAddress.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnAddAddress.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnAddAddress.ForeColor = System.Drawing.Color.White;
this.btnAddAddress.Location = new System.Drawing.Point(203, 411);
this.btnAddAddress.Location = new System.Drawing.Point(215, 407);
this.btnAddAddress.Name = "btnAddAddress";
this.btnAddAddress.Size = new System.Drawing.Size(82, 25);
this.btnAddAddress.TabIndex = 34;
@@ -434,7 +455,7 @@
this.label34.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label34.AutoSize = true;
this.label34.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label34.Location = new System.Drawing.Point(292, 126);
this.label34.Location = new System.Drawing.Point(303, 132);
this.label34.Name = "label34";
this.label34.Size = new System.Drawing.Size(13, 17);
this.label34.TabIndex = 29;
@@ -445,7 +466,7 @@
this.label35.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label35.AutoSize = true;
this.label35.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label35.Location = new System.Drawing.Point(292, 95);
this.label35.Location = new System.Drawing.Point(303, 101);
this.label35.Name = "label35";
this.label35.Size = new System.Drawing.Size(13, 17);
this.label35.TabIndex = 28;
@@ -456,7 +477,7 @@
this.label36.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label36.AutoSize = true;
this.label36.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label36.Location = new System.Drawing.Point(292, 64);
this.label36.Location = new System.Drawing.Point(303, 70);
this.label36.Name = "label36";
this.label36.Size = new System.Drawing.Size(13, 17);
this.label36.TabIndex = 27;
@@ -466,7 +487,7 @@
//
this.txtSupplierName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtSupplierName.Location = new System.Drawing.Point(112, 92);
this.txtSupplierName.Location = new System.Drawing.Point(123, 98);
this.txtSupplierName.Name = "txtSupplierName";
this.txtSupplierName.Size = new System.Drawing.Size(173, 23);
this.txtSupplierName.TabIndex = 21;
@@ -475,7 +496,7 @@
//
this.label39.AutoSize = true;
this.label39.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label39.Location = new System.Drawing.Point(12, 93);
this.label39.Location = new System.Drawing.Point(23, 99);
this.label39.Name = "label39";
this.label39.Size = new System.Drawing.Size(93, 20);
this.label39.TabIndex = 20;
@@ -485,7 +506,7 @@
//
this.txtCoid.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtCoid.Location = new System.Drawing.Point(112, 61);
this.txtCoid.Location = new System.Drawing.Point(123, 67);
this.txtCoid.Name = "txtCoid";
this.txtCoid.Size = new System.Drawing.Size(173, 23);
this.txtCoid.TabIndex = 19;
@@ -494,7 +515,7 @@
//
this.label40.AutoSize = true;
this.label40.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label40.Location = new System.Drawing.Point(25, 62);
this.label40.Location = new System.Drawing.Point(36, 68);
this.label40.Name = "label40";
this.label40.Size = new System.Drawing.Size(80, 20);
this.label40.TabIndex = 18;
@@ -510,10 +531,7 @@
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.pbLoading);
this.splitContainer1.Panel1.Controls.Add(this.txtStreetName);
this.splitContainer1.Panel1.Controls.Add(this.label11);
this.splitContainer1.Panel1.Controls.Add(this.dgvUser);
this.splitContainer1.Panel1.Controls.Add(this.splitContainer2);
this.splitContainer1.Panel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 0);
//
// splitContainer1.Panel2
@@ -524,48 +542,140 @@
this.splitContainer1.SplitterDistance = 436;
this.splitContainer1.TabIndex = 2;
//
// splitContainer2
//
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
this.splitContainer2.Location = new System.Drawing.Point(3, 0);
this.splitContainer2.Name = "splitContainer2";
this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer2.Panel1
//
this.splitContainer2.Panel1.Controls.Add(this.cmbTypeFilter);
this.splitContainer2.Panel1.Controls.Add(this.btnSearch);
this.splitContainer2.Panel1.Controls.Add(this.pnlEmpty);
this.splitContainer2.Panel1.Controls.Add(this.label17);
this.splitContainer2.Panel1.Controls.Add(this.txtSearch);
this.splitContainer2.Panel1.Controls.Add(this.label14);
//
// splitContainer2.Panel2
//
this.splitContainer2.Panel2.Controls.Add(this.pbLoading);
this.splitContainer2.Panel2.Controls.Add(this.dgvAddress);
this.splitContainer2.Size = new System.Drawing.Size(914, 436);
this.splitContainer2.TabIndex = 55;
//
// cmbTypeFilter
//
this.cmbTypeFilter.FormattingEnabled = true;
this.cmbTypeFilter.Items.AddRange(new object[] {
"",
"jst",
"1688"});
this.cmbTypeFilter.Location = new System.Drawing.Point(374, 12);
this.cmbTypeFilter.Name = "cmbTypeFilter";
this.cmbTypeFilter.Size = new System.Drawing.Size(173, 25);
this.cmbTypeFilter.TabIndex = 803;
this.cmbTypeFilter.Text = "jst";
//
// btnSearch
//
this.btnSearch.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSearch.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSearch.Location = new System.Drawing.Point(561, 12);
this.btnSearch.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(52, 25);
this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnSearch.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearch.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnSearch.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnSearch.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnSearch.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnSearch.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnSearch.Style.GradientAngle = 90;
this.btnSearch.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnSearch.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSearch.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSearch.TabIndex = 802;
this.btnSearch.Text = "查询";
this.btnSearch.Click += new System.EventHandler(this.btnRefresh_Click);
//
// pnlEmpty
//
this.pnlEmpty.CanvasColor = System.Drawing.SystemColors.Control;
this.pnlEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.pnlEmpty.DisabledBackColor = System.Drawing.Color.Empty;
this.pnlEmpty.Location = new System.Drawing.Point(622, 12);
this.pnlEmpty.Name = "pnlEmpty";
this.pnlEmpty.Size = new System.Drawing.Size(52, 25);
this.pnlEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
this.pnlEmpty.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.pnlEmpty.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.pnlEmpty.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.pnlEmpty.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.pnlEmpty.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.pnlEmpty.Style.GradientAngle = 90;
this.pnlEmpty.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
this.pnlEmpty.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.pnlEmpty.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.pnlEmpty.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.pnlEmpty.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
this.pnlEmpty.TabIndex = 417;
this.pnlEmpty.Text = "清空";
this.pnlEmpty.Click += new System.EventHandler(this.pnlEmpty_Click);
//
// label17
//
this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label17.Location = new System.Drawing.Point(290, 13);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(93, 20);
this.label17.TabIndex = 804;
this.label17.Text = "供应商类型:";
//
// txtSearch
//
this.txtSearch.Location = new System.Drawing.Point(86, 12);
this.txtSearch.Name = "txtSearch";
this.txtSearch.Size = new System.Drawing.Size(198, 23);
this.txtSearch.TabIndex = 60;
//
// label14
//
this.label14.AutoSize = true;
this.label14.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label14.Location = new System.Drawing.Point(16, 13);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(79, 20);
this.label14.TabIndex = 61;
this.label14.Text = "模糊查询:";
//
// 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(435, 193);
this.pbLoading.Location = new System.Drawing.Point(2729, 1154);
this.pbLoading.Name = "pbLoading";
this.pbLoading.Size = new System.Drawing.Size(50, 50);
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pbLoading.TabIndex = 54;
this.pbLoading.TabStop = false;
//
// txtStreetName
// dgvAddress
//
this.txtStreetName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtStreetName.Location = new System.Drawing.Point(86, 43);
this.txtStreetName.Name = "txtStreetName";
this.txtStreetName.Size = new System.Drawing.Size(173, 23);
this.txtStreetName.TabIndex = 52;
this.txtStreetName.Visible = false;
//
// label11
//
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label11.Location = new System.Drawing.Point(29, 44);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(51, 20);
this.label11.TabIndex = 53;
this.label11.Text = "街道:";
this.label11.Visible = false;
//
// dgvUser
//
this.dgvUser.AllowUserToAddRows = false;
this.dgvUser.AllowUserToDeleteRows = false;
this.dgvAddress.AllowUserToAddRows = false;
this.dgvAddress.AllowUserToDeleteRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.dgvUser.AutoRowNumber = true;
this.dgvUser.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgvUser.BackgroundColor = System.Drawing.Color.White;
this.dgvUser.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.dgvAddress.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.dgvAddress.AutoRowNumber = true;
this.dgvAddress.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgvAddress.BackgroundColor = System.Drawing.Color.White;
this.dgvAddress.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@@ -573,9 +683,9 @@
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvUser.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.dgvUser.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvUser.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dgvAddress.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.dgvAddress.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvAddress.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colId,
this.colCoid,
this.colSupplierName,
@@ -587,8 +697,10 @@
this.colCountyName,
this.colStreetName,
this.colDetailInfo,
this.colAddressType,
this.editColumn,
this.deleteColumn});
this.deleteColumn,
this.colSync});
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@@ -596,31 +708,17 @@
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvUser.DefaultCellStyle = dataGridViewCellStyle3;
this.dgvUser.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvUser.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
this.dgvUser.Location = new System.Drawing.Point(3, 0);
this.dgvUser.MultiSelectCheckBox = true;
this.dgvUser.Name = "dgvUser";
this.dgvUser.ReadOnly = true;
this.dgvUser.RowTemplate.Height = 23;
this.dgvUser.Size = new System.Drawing.Size(914, 436);
this.dgvUser.TabIndex = 1;
this.dgvUser.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvUser_CellContentClick);
//
// ucSplitPage1
//
this.ucSplitPage1.CurrentPage = 1;
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
this.ucSplitPage1.IsShowPageSize = true;
this.ucSplitPage1.Location = new System.Drawing.Point(431, 0);
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
this.ucSplitPage1.Name = "ucSplitPage1";
this.ucSplitPage1.PageSize = 50;
this.ucSplitPage1.Size = new System.Drawing.Size(489, 25);
this.ucSplitPage1.TabIndex = 5;
this.ucSplitPage1.TotalPage = 1;
this.ucSplitPage1.PageChange += new System.Action<object>(this.ucSplitPage1_PageChange);
this.dgvAddress.DefaultCellStyle = dataGridViewCellStyle3;
this.dgvAddress.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvAddress.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
this.dgvAddress.Location = new System.Drawing.Point(0, 0);
this.dgvAddress.MultiSelectCheckBox = true;
this.dgvAddress.Name = "dgvAddress";
this.dgvAddress.ReadOnly = true;
this.dgvAddress.RowTemplate.Height = 23;
this.dgvAddress.Size = new System.Drawing.Size(914, 382);
this.dgvAddress.TabIndex = 1;
this.dgvAddress.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvUser_CellContentClick);
//
// colId
//
@@ -638,7 +736,7 @@
//
// colSupplierName
//
this.colSupplierName.FillWeight = 150F;
this.colSupplierName.FillWeight = 160F;
this.colSupplierName.HeaderText = "供应商名称";
this.colSupplierName.Name = "colSupplierName";
this.colSupplierName.ReadOnly = true;
@@ -663,24 +761,28 @@
//
// colProvinceName
//
this.colProvinceName.FillWeight = 80F;
this.colProvinceName.HeaderText = "省";
this.colProvinceName.Name = "colProvinceName";
this.colProvinceName.ReadOnly = true;
//
// colCityName
//
this.colCityName.FillWeight = 80F;
this.colCityName.HeaderText = "市";
this.colCityName.Name = "colCityName";
this.colCityName.ReadOnly = true;
//
// colCountyName
//
this.colCountyName.FillWeight = 80F;
this.colCountyName.HeaderText = "区/县";
this.colCountyName.Name = "colCountyName";
this.colCountyName.ReadOnly = true;
//
// colStreetName
//
this.colStreetName.FillWeight = 80F;
this.colStreetName.HeaderText = "街道";
this.colStreetName.Name = "colStreetName";
this.colStreetName.ReadOnly = true;
@@ -693,8 +795,15 @@
this.colDetailInfo.Name = "colDetailInfo";
this.colDetailInfo.ReadOnly = true;
//
// colAddressType
//
this.colAddressType.HeaderText = "类型";
this.colAddressType.Name = "colAddressType";
this.colAddressType.ReadOnly = true;
//
// editColumn
//
this.editColumn.FillWeight = 70F;
this.editColumn.HeaderText = "编辑";
this.editColumn.Name = "editColumn";
this.editColumn.ReadOnly = true;
@@ -703,11 +812,33 @@
//
// deleteColumn
//
this.deleteColumn.FillWeight = 70F;
this.deleteColumn.HeaderText = "删除";
this.deleteColumn.Name = "deleteColumn";
this.deleteColumn.ReadOnly = true;
//
// Get1688AddressForm
// colSync
//
this.colSync.FillWeight = 90F;
this.colSync.HeaderText = "同步地址";
this.colSync.Name = "colSync";
this.colSync.ReadOnly = true;
//
// ucSplitPage1
//
this.ucSplitPage1.CurrentPage = 1;
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
this.ucSplitPage1.IsShowPageSize = true;
this.ucSplitPage1.Location = new System.Drawing.Point(431, 0);
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
this.ucSplitPage1.Name = "ucSplitPage1";
this.ucSplitPage1.PageSize = 50;
this.ucSplitPage1.Size = new System.Drawing.Size(489, 25);
this.ucSplitPage1.TabIndex = 5;
this.ucSplitPage1.TotalPage = 1;
this.ucSplitPage1.PageChange += new System.Action<object>(this.ucSplitPage1_PageChange);
//
// GetAddressForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
@@ -716,7 +847,7 @@
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.KeyPreview = true;
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.Name = "Get1688AddressForm";
this.Name = "GetAddressForm";
this.Text = "1688地址管理";
this.Load += new System.EventHandler(this.SubAccountForm_Load);
this.splitContainer5.Panel1.ResumeLayout(false);
@@ -725,12 +856,16 @@
((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).EndInit();
this.splitContainer5.ResumeLayout(false);
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel1.PerformLayout();
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.splitContainer2.Panel1.ResumeLayout(false);
this.splitContainer2.Panel1.PerformLayout();
this.splitContainer2.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
this.splitContainer2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgvUser)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgvAddress)).EndInit();
this.ResumeLayout(false);
}
@@ -747,8 +882,7 @@
private System.Windows.Forms.Label label39;
private System.Windows.Forms.TextBox txtCoid;
private System.Windows.Forms.Label label40;
private UserComponent.DataGridViewEx dgvUser;
private UserControls.ButtonEx btnRefresh;
private UserComponent.DataGridViewEx dgvAddress;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.TextBox txtStreetName;
private System.Windows.Forms.Label label8;
@@ -776,6 +910,14 @@
private System.Windows.Forms.Label label14;
private System.Windows.Forms.TextBox txtSearch;
private DevComponents.DotNetBar.PanelEx pnlEmpty;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.SplitContainer splitContainer2;
private System.Windows.Forms.Label label16;
private DevComponents.DotNetBar.PanelEx btnSearch;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label18;
public System.Windows.Forms.ComboBox cmbType;
public System.Windows.Forms.ComboBox cmbTypeFilter;
private System.Windows.Forms.DataGridViewTextBoxColumn colId;
private System.Windows.Forms.DataGridViewTextBoxColumn colCoid;
private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierName;
@@ -787,7 +929,9 @@
private System.Windows.Forms.DataGridViewTextBoxColumn colCountyName;
private System.Windows.Forms.DataGridViewTextBoxColumn colStreetName;
private System.Windows.Forms.DataGridViewTextBoxColumn colDetailInfo;
private System.Windows.Forms.DataGridViewTextBoxColumn colAddressType;
private System.Windows.Forms.DataGridViewLinkColumn editColumn;
private System.Windows.Forms.DataGridViewLinkColumn deleteColumn;
private System.Windows.Forms.DataGridViewLinkColumn colSync;
}
}
@@ -18,23 +18,32 @@ using System.Threading;
namespace TemuKJD.ToolForms
{
public partial class Get1688AddressForm : BaseForm
public partial class GetAddressForm : BaseForm
{
public string AddressType { get; set; } = "jst";
public CancellationTokenSource cancellationTokenSource { get; set; } = new CancellationTokenSource();
public static List<WX1688AddressInfo> lstAddressInfo { get; set; } = new List<WX1688AddressInfo>();
public Get1688AddressForm()
public GetAddressForm()
{
InitializeComponent();
}
private void SubAccountForm_Load(object sender, EventArgs e)
{
this.dgvUser.BackgroundColor = Color.White;
this.dgvAddress.BackgroundColor = Color.White;
cmbType.Text = AddressType;
cmbTypeFilter.Text = AddressType;
Get1688Address();
}
private void btnAddress_Click(object sender, EventArgs e)
{
if (string.IsNullOrWhiteSpace(cmbType.Text))
{
BaseMsgForm.ShowError("供应商类型不能为空");
return;
}
if (string.IsNullOrWhiteSpace(txtCoid.Text))
{
BaseMsgForm.ShowError("供应商ID不能为空");
@@ -76,6 +85,21 @@ namespace TemuKJD.ToolForms
return;
}
// 先逻辑删除再添加
StringBuilder sb = new StringBuilder();
sb.Append(UserLogin.GetSignaturex());
sb.Append("&coid=" + txtCoid.Text.Trim());
string urlDel = BaseClass.BuildObjString("product/wx_del_address");
string htmlDel = GetHtml.PostUtf8(urlDel, sb.ToString());
if (!htmlDel.Contains("\"code\":200"))
{
var msg = BaseRegex.GetStringJson(ref htmlDel, "msg");
if (string.IsNullOrEmpty(msg))
msg = htmlDel;
BaseMsgForm.ShowError("出现异常,添加失败" + msg, "错误");
return;
}
var jAfterSale = new JObject();
jAfterSale["address_id"] = null;
jAfterSale["user_name"] = txtUserName.Text.Trim();
@@ -94,7 +118,7 @@ namespace TemuKJD.ToolForms
data.Append("&coid=" + GetHtml.UrlEncodeUtf8(txtCoid.Text.Trim()));
data.Append("&after_sale_json=" + GetHtml.UrlEncodeUtf8(JsonHelper.SerializeObject(jAfterSale)));
data.Append("&supplier_name=" + GetHtml.UrlEncodeUtf8(txtSupplierName.Text.Trim()));
data.Append("&type=1688");
data.Append("&type=" + cmbType.Text.Trim());
string url = BaseClass.BuildObjString("product/wx_add_mdy_after_sale");
string html = GetHtml.PostUtf8(url, data.ToString()).Trim();
if (!html.Contains("\"code\":200"))
@@ -129,11 +153,12 @@ namespace TemuKJD.ToolForms
txtSupplierName.Clear();
txtTelNumber.Clear();
txtUserName.Clear();
cmbType.Text = AddressType;
}
private void Get1688Address(int page = 1)
{
dgvUser.Rows.Clear();
dgvAddress.Rows.Clear();
lstAddressInfo.Clear();
pbLoading.Visible = true;
if (cancellationTokenSource != null)
@@ -143,11 +168,15 @@ namespace TemuKJD.ToolForms
{
string url = BaseClass.BuildObjString("product/wx_get_after_sale_list");
string data = UserLogin.GetSignaturex();
data += "&type=1688";
if (!string.IsNullOrEmpty(txtSearch.Text.Trim()))
data += "&detail=" + txtSearch.Text.Trim();
data += "&page=" + page;
data += "&page_size=" + ucSplitPage1.PageSize;
Invoke(new Action(() =>
{
if (!string.IsNullOrEmpty(cmbTypeFilter.Text.Trim()))
data += "&type=" + cmbTypeFilter.Text.Trim();
if (!string.IsNullOrEmpty(txtSearch.Text.Trim()))
data += "&detail=" + txtSearch.Text.Trim();
data += "&page=" + page;
data += "&page_size=" + ucSplitPage1.PageSize;
}));
string html = GetHtml.PostUtf8(url, data);
if (!html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data.ToString()).Trim();
@@ -173,13 +202,14 @@ namespace TemuKJD.ToolForms
string county_name = BaseRegex.GetStringJson(ref addressDetailStr, "county_name");
string street_name = BaseRegex.GetStringJson(ref addressDetailStr, "street_name");
string detail_info = BaseRegex.GetStringJson(ref addressDetailStr, "detail_info");
string name = BaseRegex.GetStringJson(ref addressDetailStr, "name");
Invoke(new Action(() =>
{
dgvUser.Rows.Add(
dgvAddress.Rows.Add(
addressInfo.id,
addressInfo.coid,
addressInfo.supplier_name,
addressInfo.supplier_name.IsNullOrEmpty() ? name : addressInfo.supplier_name,
user_name,
tel_number,
postal_code,
@@ -188,8 +218,10 @@ namespace TemuKJD.ToolForms
county_name,
street_name,
detail_info,
addressInfo.type,
"编辑",
"删除");
"删除",
"同步");
}));
}
}
@@ -212,23 +244,25 @@ namespace TemuKJD.ToolForms
{
if (e.ColumnIndex < 0 || e.RowIndex < 0)
return;
string columname = dgvUser.Columns[e.ColumnIndex].HeaderText;
string coId = dgvUser.Rows[e.RowIndex].Cells["colCoid"].Value.ToString();
string columname = dgvAddress.Columns[e.ColumnIndex].HeaderText;
string coId = dgvAddress.Rows[e.RowIndex].Cells["colCoid"].Value.ToString();
var addressInfo = lstAddressInfo.FirstOrDefault(a => a.coid == coId);
if (columname == "编辑")
{
btnAddAddress.Text = "保存地址";
btnCancel.Visible = true;
btnCancel.Text = "取消編輯";
txtCoid.Text = dgvUser.Rows[e.RowIndex].Cells["colCoid"].Value.ToString();
txtSupplierName.Text = dgvUser.Rows[e.RowIndex].Cells["colSupplierName"].Value.ToString();
txtUserName.Text = dgvUser.Rows[e.RowIndex].Cells["colUserName"].Value.ToString();
txtPostalCode.Text = dgvUser.Rows[e.RowIndex].Cells["colPostalCode"].Value.ToString();
txtTelNumber.Text = dgvUser.Rows[e.RowIndex].Cells["colTelNumber"].Value.ToString();
txtProvinceName.Text = dgvUser.Rows[e.RowIndex].Cells["colProvinceName"].Value.ToString();
txtCityName.Text = dgvUser.Rows[e.RowIndex].Cells["colCityName"].Value.ToString();
txtCountyName.Text = dgvUser.Rows[e.RowIndex].Cells["colCountyName"].Value.ToString();
txtStreetName.Text = dgvUser.Rows[e.RowIndex].Cells["colStreetName"].Value.ToString();
txtDetailInfo.Text = dgvUser.Rows[e.RowIndex].Cells["colDetailInfo"].Value.ToString();
txtCoid.Text = dgvAddress.Rows[e.RowIndex].Cells["colCoid"].Value.ParseToString();
txtSupplierName.Text = dgvAddress.Rows[e.RowIndex].Cells["colSupplierName"].Value.ParseToString();
txtUserName.Text = dgvAddress.Rows[e.RowIndex].Cells["colUserName"].Value.ParseToString();
txtPostalCode.Text = dgvAddress.Rows[e.RowIndex].Cells["colPostalCode"].Value.ParseToString();
txtTelNumber.Text = dgvAddress.Rows[e.RowIndex].Cells["colTelNumber"].Value.ToString();
txtProvinceName.Text = dgvAddress.Rows[e.RowIndex].Cells["colProvinceName"].Value.ParseToString();
txtCityName.Text = dgvAddress.Rows[e.RowIndex].Cells["colCityName"].Value.ParseToString();
txtCountyName.Text = dgvAddress.Rows[e.RowIndex].Cells["colCountyName"].Value.ParseToString();
txtStreetName.Text = dgvAddress.Rows[e.RowIndex].Cells["colStreetName"].Value.ParseToString();
txtDetailInfo.Text = dgvAddress.Rows[e.RowIndex].Cells["colDetailInfo"].Value.ParseToString();
cmbType.Text = dgvAddress.Rows[e.RowIndex].Cells["colAddressType"].Value.ParseToString();
}
if (columname == "删除")
{
@@ -239,7 +273,7 @@ namespace TemuKJD.ToolForms
}
}
public void Delete(string coid)
public string Delete(string coid)
{
StringBuilder data = new StringBuilder();
data.Append(UserLogin.GetSignaturex());
@@ -252,15 +286,16 @@ namespace TemuKJD.ToolForms
{
BaseMsgForm.ShowInfo("删除成功", "提示");
Get1688Address(ucSplitPage1.CurrentPage);
return;
return "";
}
var msg = BaseRegex.GetStringJson(ref html, "msg");
if (string.IsNullOrEmpty(msg))
msg = html;
BaseMsgForm.ShowError(msg, "错误");
return;
return "删除失败";
}
BaseMsgForm.ShowError("返回异常", "错误");
return "删除失败";
}
private void btnRefresh_Click(object sender, EventArgs e)
@@ -271,6 +306,7 @@ namespace TemuKJD.ToolForms
private void pnlEmpty_Click(object sender, EventArgs e)
{
txtSearch.Clear();
cmbTypeFilter.Text = AddressType;
}
private void ucSplitPage1_PageChange(object obj)
@@ -150,10 +150,16 @@
<metadata name="colDetailInfo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colAddressType.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="editColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="deleteColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colSync.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
+13 -11
View File
@@ -164,7 +164,7 @@ namespace TemuKJD.ToolForms
this.splitContainer2.Panel1.Controls.Add(this.btnNext);
this.splitContainer2.Panel1.Controls.Add(this.btnPrev);
this.splitContainer2.Panel1.Controls.Add(this.txtAddress);
this.splitContainer2.Size = new System.Drawing.Size(1390, 436);
this.splitContainer2.Size = new System.Drawing.Size(1390, 427);
this.splitContainer2.SplitterDistance = 26;
this.splitContainer2.TabIndex = 6;
//
@@ -246,10 +246,11 @@ namespace TemuKJD.ToolForms
this.colMsg});
this.dgvProduct.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvProduct.Location = new System.Drawing.Point(3, 3);
this.dgvProduct.MultiSelectCheckBox = true;
this.dgvProduct.Name = "dgvProduct";
this.dgvProduct.ReadOnly = true;
this.dgvProduct.RowTemplate.Height = 23;
this.dgvProduct.Size = new System.Drawing.Size(1390, 437);
this.dgvProduct.Size = new System.Drawing.Size(1390, 436);
this.dgvProduct.TabIndex = 7;
this.dgvProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvProduct_CellContentClick);
//
@@ -406,7 +407,7 @@ namespace TemuKJD.ToolForms
this.splitContainer1.Panel2.Controls.Add(this.label2);
this.splitContainer1.Panel2.Controls.Add(this.line1);
this.splitContainer1.Size = new System.Drawing.Size(1404, 561);
this.splitContainer1.SplitterDistance = 474;
this.splitContainer1.SplitterDistance = 465;
this.splitContainer1.SplitterWidth = 3;
this.splitContainer1.TabIndex = 4;
//
@@ -423,7 +424,7 @@ namespace TemuKJD.ToolForms
this.ucTabControlMetro1.Name = "ucTabControlMetro1";
this.ucTabControlMetro1.SelectedIndex = 0;
this.ucTabControlMetro1.ShowCloseButton = false;
this.ucTabControlMetro1.Size = new System.Drawing.Size(1404, 474);
this.ucTabControlMetro1.Size = new System.Drawing.Size(1404, 465);
this.ucTabControlMetro1.TabIndex = 462;
this.ucTabControlMetro1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.ucTabControlMetro1.TabSelectTextColor = System.Drawing.Color.Gray;
@@ -435,7 +436,7 @@ namespace TemuKJD.ToolForms
this.tabPage1.Location = new System.Drawing.Point(4, 28);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(1396, 442);
this.tabPage1.Size = new System.Drawing.Size(1396, 433);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "商品页面";
this.tabPage1.UseVisualStyleBackColor = true;
@@ -444,10 +445,10 @@ namespace TemuKJD.ToolForms
//
this.tabPage2.Controls.Add(this.pbLoading);
this.tabPage2.Controls.Add(this.dgvProduct);
this.tabPage2.Location = new System.Drawing.Point(4, 26);
this.tabPage2.Location = new System.Drawing.Point(4, 28);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(1396, 443);
this.tabPage2.Size = new System.Drawing.Size(1396, 442);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "采集列表";
this.tabPage2.UseVisualStyleBackColor = true;
@@ -455,9 +456,9 @@ namespace TemuKJD.ToolForms
// tabPage3
//
this.tabPage3.Controls.Add(this.splitContainer3);
this.tabPage3.Location = new System.Drawing.Point(4, 26);
this.tabPage3.Location = new System.Drawing.Point(4, 28);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(1396, 443);
this.tabPage3.Size = new System.Drawing.Size(1396, 442);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "下架SKU查询";
this.tabPage3.UseVisualStyleBackColor = true;
@@ -489,7 +490,7 @@ namespace TemuKJD.ToolForms
//
this.splitContainer3.Panel2.Controls.Add(this.pictureBox1);
this.splitContainer3.Panel2.Controls.Add(this.dgvDownSku);
this.splitContainer3.Size = new System.Drawing.Size(1396, 443);
this.splitContainer3.Size = new System.Drawing.Size(1396, 442);
this.splitContainer3.SplitterDistance = 82;
this.splitContainer3.TabIndex = 0;
//
@@ -692,10 +693,11 @@ namespace TemuKJD.ToolForms
this.dataGridViewTextBoxColumn8});
this.dgvDownSku.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvDownSku.Location = new System.Drawing.Point(0, 0);
this.dgvDownSku.MultiSelectCheckBox = true;
this.dgvDownSku.Name = "dgvDownSku";
this.dgvDownSku.ReadOnly = true;
this.dgvDownSku.RowTemplate.Height = 23;
this.dgvDownSku.Size = new System.Drawing.Size(1396, 357);
this.dgvDownSku.Size = new System.Drawing.Size(1396, 356);
this.dgvDownSku.TabIndex = 8;
//
// colDownSelect