拼多多模拟接口上货
This commit is contained in:
1 parent
caeea6e0c3
commit
e80d281017
7 files changed
+823
-399
No files matched your search
+156
-141
@@ -79,20 +79,6 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.panelEx2 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.dgvPddBuyerOrder = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.chkOnlyShowCurrentShop = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.lblCurrentShop = new System.Windows.Forms.Label();
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.btnFilter = new DevComponents.DotNetBar.PanelEx();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.pnlEmpty = new DevComponents.DotNetBar.PanelEx();
|
||||
this.label17 = new System.Windows.Forms.Label();
|
||||
this.txtMobile = new System.Windows.Forms.TextBox();
|
||||
this.txtOrderSn = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.dtpStartTime = new System.Windows.Forms.DateTimePicker();
|
||||
this.label14 = new System.Windows.Forms.Label();
|
||||
this.dtpEndTime = new System.Windows.Forms.DateTimePicker();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colOBuyerId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOBuyerName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -107,6 +93,21 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.colOExpressId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colSend = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.btnFilter = new DevComponents.DotNetBar.PanelEx();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.pnlEmpty = new DevComponents.DotNetBar.PanelEx();
|
||||
this.label17 = new System.Windows.Forms.Label();
|
||||
this.txtMobile = new System.Windows.Forms.TextBox();
|
||||
this.txtOrderSn = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.dtpStartTime = new System.Windows.Forms.DateTimePicker();
|
||||
this.label14 = new System.Windows.Forms.Label();
|
||||
this.dtpEndTime = new System.Windows.Forms.DateTimePicker();
|
||||
this.lblCurrentShop = new System.Windows.Forms.Label();
|
||||
this.chkOnlyShowCurrentShop = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.chkPause = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -137,6 +138,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//
|
||||
// splitContainer1.Panel1
|
||||
//
|
||||
this.splitContainer1.Panel1.Controls.Add(this.chkPause);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.btnCheck);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.btnRefresh);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.btnStopStop);
|
||||
@@ -206,9 +208,9 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.btnStopStop.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.btnStopStop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnStopStop.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnStopStop.Location = new System.Drawing.Point(246, 39);
|
||||
this.btnStopStop.Location = new System.Drawing.Point(297, 39);
|
||||
this.btnStopStop.Name = "btnStopStop";
|
||||
this.btnStopStop.Size = new System.Drawing.Size(118, 25);
|
||||
this.btnStopStop.Size = new System.Drawing.Size(67, 25);
|
||||
this.btnStopStop.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnStopStop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnStopStop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
@@ -713,31 +715,110 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.dgvPddBuyerOrder.TabIndex = 886;
|
||||
this.dgvPddBuyerOrder.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvPddBuyerOrder_CellContentClick);
|
||||
//
|
||||
// chkOnlyShowCurrentShop
|
||||
// dataGridViewCheckBoxColumn1
|
||||
//
|
||||
this.chkOnlyShowCurrentShop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkOnlyShowCurrentShop.AutoSize = true;
|
||||
this.chkOnlyShowCurrentShop.Location = new System.Drawing.Point(30, 498);
|
||||
this.chkOnlyShowCurrentShop.Name = "chkOnlyShowCurrentShop";
|
||||
this.chkOnlyShowCurrentShop.Size = new System.Drawing.Size(135, 21);
|
||||
this.chkOnlyShowCurrentShop.TabIndex = 885;
|
||||
this.chkOnlyShowCurrentShop.Text = "仅显示当前店铺订单";
|
||||
this.chkOnlyShowCurrentShop.UseVisualStyleBackColor = true;
|
||||
this.chkOnlyShowCurrentShop.Visible = false;
|
||||
this.dataGridViewCheckBoxColumn1.FillWeight = 26F;
|
||||
this.dataGridViewCheckBoxColumn1.HeaderText = "选";
|
||||
this.dataGridViewCheckBoxColumn1.Name = "dataGridViewCheckBoxColumn1";
|
||||
this.dataGridViewCheckBoxColumn1.ReadOnly = true;
|
||||
this.dataGridViewCheckBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridViewCheckBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// lblCurrentShop
|
||||
// colOBuyerId
|
||||
//
|
||||
this.lblCurrentShop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lblCurrentShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblCurrentShop.ForeColor = System.Drawing.Color.DarkOrange;
|
||||
this.lblCurrentShop.Location = new System.Drawing.Point(179, 498);
|
||||
this.lblCurrentShop.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.lblCurrentShop.Name = "lblCurrentShop";
|
||||
this.lblCurrentShop.Size = new System.Drawing.Size(214, 17);
|
||||
this.lblCurrentShop.TabIndex = 718;
|
||||
this.lblCurrentShop.Text = "当前店铺:";
|
||||
this.lblCurrentShop.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
this.lblCurrentShop.Visible = false;
|
||||
this.colOBuyerId.HeaderText = "买手编号";
|
||||
this.colOBuyerId.Name = "colOBuyerId";
|
||||
this.colOBuyerId.ReadOnly = true;
|
||||
this.colOBuyerId.Visible = false;
|
||||
//
|
||||
// colOBuyerName
|
||||
//
|
||||
this.colOBuyerName.FillWeight = 80F;
|
||||
this.colOBuyerName.HeaderText = "买手名称";
|
||||
this.colOBuyerName.Name = "colOBuyerName";
|
||||
this.colOBuyerName.ReadOnly = true;
|
||||
//
|
||||
// colOPddOrderSn
|
||||
//
|
||||
this.colOPddOrderSn.HeaderText = "拍单订单号";
|
||||
this.colOPddOrderSn.Name = "colOPddOrderSn";
|
||||
this.colOPddOrderSn.ReadOnly = true;
|
||||
//
|
||||
// colOOrderTime
|
||||
//
|
||||
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colOOrderTime.DefaultCellStyle = dataGridViewCellStyle11;
|
||||
this.colOOrderTime.FillWeight = 70F;
|
||||
this.colOOrderTime.HeaderText = "拍单时间";
|
||||
this.colOOrderTime.Name = "colOOrderTime";
|
||||
this.colOOrderTime.ReadOnly = true;
|
||||
//
|
||||
// colOImgUrl
|
||||
//
|
||||
this.colOImgUrl.HeaderText = "图片路径";
|
||||
this.colOImgUrl.Name = "colOImgUrl";
|
||||
this.colOImgUrl.ReadOnly = true;
|
||||
this.colOImgUrl.Visible = false;
|
||||
//
|
||||
// colOImg
|
||||
//
|
||||
this.colOImg.FillWeight = 35F;
|
||||
this.colOImg.HeaderText = "订单图片";
|
||||
this.colOImg.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
|
||||
this.colOImg.Name = "colOImg";
|
||||
this.colOImg.ReadOnly = true;
|
||||
this.colOImg.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colOImg.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colOImg.Visible = false;
|
||||
//
|
||||
// colOGoodsInfo
|
||||
//
|
||||
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colOGoodsInfo.DefaultCellStyle = dataGridViewCellStyle12;
|
||||
this.colOGoodsInfo.FillWeight = 140F;
|
||||
this.colOGoodsInfo.HeaderText = "商品信息";
|
||||
this.colOGoodsInfo.Name = "colOGoodsInfo";
|
||||
this.colOGoodsInfo.ReadOnly = true;
|
||||
//
|
||||
// colOOrderAmount
|
||||
//
|
||||
this.colOOrderAmount.FillWeight = 50F;
|
||||
this.colOOrderAmount.HeaderText = "金额";
|
||||
this.colOOrderAmount.Name = "colOOrderAmount";
|
||||
this.colOOrderAmount.ReadOnly = true;
|
||||
//
|
||||
// dgvOStatus
|
||||
//
|
||||
this.dgvOStatus.HeaderText = "订单状态";
|
||||
this.dgvOStatus.Name = "dgvOStatus";
|
||||
this.dgvOStatus.ReadOnly = true;
|
||||
//
|
||||
// colOExpressName
|
||||
//
|
||||
this.colOExpressName.HeaderText = "物流名称";
|
||||
this.colOExpressName.Name = "colOExpressName";
|
||||
this.colOExpressName.ReadOnly = true;
|
||||
//
|
||||
// colOExpressId
|
||||
//
|
||||
this.colOExpressId.HeaderText = "物流单号";
|
||||
this.colOExpressId.Name = "colOExpressId";
|
||||
this.colOExpressId.ReadOnly = true;
|
||||
//
|
||||
// colOMsg
|
||||
//
|
||||
this.colOMsg.HeaderText = "其他信息";
|
||||
this.colOMsg.Name = "colOMsg";
|
||||
this.colOMsg.ReadOnly = true;
|
||||
//
|
||||
// colSend
|
||||
//
|
||||
this.colSend.FillWeight = 50F;
|
||||
this.colSend.HeaderText = "发送";
|
||||
this.colSend.Name = "colSend";
|
||||
this.colSend.ReadOnly = true;
|
||||
this.colSend.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colSend.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// tableLayoutPanel1
|
||||
//
|
||||
@@ -915,6 +996,32 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.dtpEndTime.TabIndex = 813;
|
||||
this.dtpEndTime.Visible = false;
|
||||
//
|
||||
// lblCurrentShop
|
||||
//
|
||||
this.lblCurrentShop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lblCurrentShop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblCurrentShop.ForeColor = System.Drawing.Color.DarkOrange;
|
||||
this.lblCurrentShop.Location = new System.Drawing.Point(179, 498);
|
||||
this.lblCurrentShop.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.lblCurrentShop.Name = "lblCurrentShop";
|
||||
this.lblCurrentShop.Size = new System.Drawing.Size(214, 17);
|
||||
this.lblCurrentShop.TabIndex = 718;
|
||||
this.lblCurrentShop.Text = "当前店铺:";
|
||||
this.lblCurrentShop.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
this.lblCurrentShop.Visible = false;
|
||||
//
|
||||
// chkOnlyShowCurrentShop
|
||||
//
|
||||
this.chkOnlyShowCurrentShop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkOnlyShowCurrentShop.AutoSize = true;
|
||||
this.chkOnlyShowCurrentShop.Location = new System.Drawing.Point(30, 498);
|
||||
this.chkOnlyShowCurrentShop.Name = "chkOnlyShowCurrentShop";
|
||||
this.chkOnlyShowCurrentShop.Size = new System.Drawing.Size(135, 21);
|
||||
this.chkOnlyShowCurrentShop.TabIndex = 885;
|
||||
this.chkOnlyShowCurrentShop.Text = "仅显示当前店铺订单";
|
||||
this.chkOnlyShowCurrentShop.UseVisualStyleBackColor = true;
|
||||
this.chkOnlyShowCurrentShop.Visible = false;
|
||||
//
|
||||
// statusBar
|
||||
//
|
||||
this.statusBar.BackColor = System.Drawing.Color.White;
|
||||
@@ -926,110 +1033,16 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.statusBar.Size = new System.Drawing.Size(1438, 25);
|
||||
this.statusBar.TabIndex = 5;
|
||||
//
|
||||
// dataGridViewCheckBoxColumn1
|
||||
// chkPause
|
||||
//
|
||||
this.dataGridViewCheckBoxColumn1.FillWeight = 26F;
|
||||
this.dataGridViewCheckBoxColumn1.HeaderText = "选";
|
||||
this.dataGridViewCheckBoxColumn1.Name = "dataGridViewCheckBoxColumn1";
|
||||
this.dataGridViewCheckBoxColumn1.ReadOnly = true;
|
||||
this.dataGridViewCheckBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridViewCheckBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// colOBuyerId
|
||||
//
|
||||
this.colOBuyerId.HeaderText = "买手编号";
|
||||
this.colOBuyerId.Name = "colOBuyerId";
|
||||
this.colOBuyerId.ReadOnly = true;
|
||||
this.colOBuyerId.Visible = false;
|
||||
//
|
||||
// colOBuyerName
|
||||
//
|
||||
this.colOBuyerName.FillWeight = 80F;
|
||||
this.colOBuyerName.HeaderText = "买手名称";
|
||||
this.colOBuyerName.Name = "colOBuyerName";
|
||||
this.colOBuyerName.ReadOnly = true;
|
||||
//
|
||||
// colOPddOrderSn
|
||||
//
|
||||
this.colOPddOrderSn.HeaderText = "拍单订单号";
|
||||
this.colOPddOrderSn.Name = "colOPddOrderSn";
|
||||
this.colOPddOrderSn.ReadOnly = true;
|
||||
//
|
||||
// colOOrderTime
|
||||
//
|
||||
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colOOrderTime.DefaultCellStyle = dataGridViewCellStyle11;
|
||||
this.colOOrderTime.FillWeight = 70F;
|
||||
this.colOOrderTime.HeaderText = "拍单时间";
|
||||
this.colOOrderTime.Name = "colOOrderTime";
|
||||
this.colOOrderTime.ReadOnly = true;
|
||||
//
|
||||
// colOImgUrl
|
||||
//
|
||||
this.colOImgUrl.HeaderText = "图片路径";
|
||||
this.colOImgUrl.Name = "colOImgUrl";
|
||||
this.colOImgUrl.ReadOnly = true;
|
||||
this.colOImgUrl.Visible = false;
|
||||
//
|
||||
// colOImg
|
||||
//
|
||||
this.colOImg.FillWeight = 35F;
|
||||
this.colOImg.HeaderText = "订单图片";
|
||||
this.colOImg.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
|
||||
this.colOImg.Name = "colOImg";
|
||||
this.colOImg.ReadOnly = true;
|
||||
this.colOImg.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colOImg.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colOImg.Visible = false;
|
||||
//
|
||||
// colOGoodsInfo
|
||||
//
|
||||
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colOGoodsInfo.DefaultCellStyle = dataGridViewCellStyle12;
|
||||
this.colOGoodsInfo.FillWeight = 140F;
|
||||
this.colOGoodsInfo.HeaderText = "商品信息";
|
||||
this.colOGoodsInfo.Name = "colOGoodsInfo";
|
||||
this.colOGoodsInfo.ReadOnly = true;
|
||||
//
|
||||
// colOOrderAmount
|
||||
//
|
||||
this.colOOrderAmount.FillWeight = 50F;
|
||||
this.colOOrderAmount.HeaderText = "金额";
|
||||
this.colOOrderAmount.Name = "colOOrderAmount";
|
||||
this.colOOrderAmount.ReadOnly = true;
|
||||
//
|
||||
// dgvOStatus
|
||||
//
|
||||
this.dgvOStatus.HeaderText = "订单状态";
|
||||
this.dgvOStatus.Name = "dgvOStatus";
|
||||
this.dgvOStatus.ReadOnly = true;
|
||||
//
|
||||
// colOExpressName
|
||||
//
|
||||
this.colOExpressName.HeaderText = "物流名称";
|
||||
this.colOExpressName.Name = "colOExpressName";
|
||||
this.colOExpressName.ReadOnly = true;
|
||||
//
|
||||
// colOExpressId
|
||||
//
|
||||
this.colOExpressId.HeaderText = "物流单号";
|
||||
this.colOExpressId.Name = "colOExpressId";
|
||||
this.colOExpressId.ReadOnly = true;
|
||||
//
|
||||
// colOMsg
|
||||
//
|
||||
this.colOMsg.HeaderText = "其他信息";
|
||||
this.colOMsg.Name = "colOMsg";
|
||||
this.colOMsg.ReadOnly = true;
|
||||
//
|
||||
// colSend
|
||||
//
|
||||
this.colSend.FillWeight = 50F;
|
||||
this.colSend.HeaderText = "发送";
|
||||
this.colSend.Name = "colSend";
|
||||
this.colSend.ReadOnly = true;
|
||||
this.colSend.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colSend.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.chkPause.AutoSize = true;
|
||||
this.chkPause.Location = new System.Drawing.Point(246, 41);
|
||||
this.chkPause.Name = "chkPause";
|
||||
this.chkPause.Size = new System.Drawing.Size(51, 21);
|
||||
this.chkPause.TabIndex = 937;
|
||||
this.chkPause.Text = "暂停";
|
||||
this.chkPause.UseVisualStyleBackColor = true;
|
||||
this.chkPause.CheckedChanged += new System.EventHandler(this.chkPause_CheckedChanged);
|
||||
//
|
||||
// BuyerOrderListForm
|
||||
//
|
||||
@@ -1049,6 +1062,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.PDDDBProdListForm_KeyUp);
|
||||
this.Controls.SetChildIndex(this.splitContainer2, 0);
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel1.PerformLayout();
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
@@ -1137,5 +1151,6 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOExpressId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOMsg;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colSend;
|
||||
private UserComponent.UcCheckBox chkPause;
|
||||
}
|
||||
}
|
||||
@@ -254,7 +254,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
|
||||
Task.Run(() =>
|
||||
{
|
||||
//SendOrderE57(order);
|
||||
SendOrderE57(order);
|
||||
});
|
||||
|
||||
Invoke(new Action(() =>
|
||||
@@ -412,6 +412,16 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
Thread.Sleep(5000);
|
||||
while (true)
|
||||
{
|
||||
if(chkPause.Checked)
|
||||
{
|
||||
Thread.Sleep(1000);
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
btnSearch.Text = "暂停自动刷新";
|
||||
}));
|
||||
continue;
|
||||
}
|
||||
|
||||
if (DateTime.Now > nextGetOrderTime)
|
||||
{
|
||||
nextGetOrderTime = DateTime.Now.AddMinutes(30);
|
||||
@@ -826,7 +836,10 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
case "编辑/详情":
|
||||
break;
|
||||
case "发送":
|
||||
SendOrderE57(order);
|
||||
Task.Run(() =>
|
||||
{
|
||||
SendOrderE57(order);
|
||||
});
|
||||
break;
|
||||
case "图片":
|
||||
ShowImgForm imgFrom = new ShowImgForm(dgvPddBuyerOrder.Rows[e.RowIndex].Cells["colImgUrl"].Value.ParseToString().Replace("?imageView2/2/w/90/h/90", ""));
|
||||
@@ -848,9 +861,9 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
return;
|
||||
}
|
||||
// 已发货且没有运单号的属于已退货,不再发送
|
||||
if (order.order_status_prompt != "拼单成功,待发货" && string.IsNullOrEmpty(order.tracking_number))
|
||||
if (order.order_status_prompt != "拼单成功,待发货" && order.order_status_prompt != "免拼成功,待发货" && (string.IsNullOrEmpty(order.tracking_number) || string.IsNullOrEmpty(order.outExpressCompanyName)))
|
||||
{
|
||||
order.sendStatus = "已发货无运单号";
|
||||
order.sendStatus = "已发货退货";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
ShowOrder(order);
|
||||
@@ -872,14 +885,16 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
//失败 已存在
|
||||
//<ResultVo><code>1505</code><msg>调用微信接口更新物流信息失败: 非法参数, 同运单号拦截 rid: 69d8ab9c-22baa3b1-67de0d95</msg><data/><totalRecords/></ResultVo>
|
||||
var exportRst = WXHttpResponseBLL.e57PostResponse(url, dataStr, "");
|
||||
if(exportRst.Contains("SUCCESS") || exportRst.Contains("已存在") || exportRst.Contains("同运单号拦截"))
|
||||
if (exportRst.Contains("发送失败 操作超时"))
|
||||
WXHttpResponseBLL.e57PostResponse(url, dataStr, "");
|
||||
if (exportRst.Contains("SUCCESS") || exportRst.Contains("已存在") || exportRst.Contains("同运单号拦截") || exportRst.Contains("订单已绑定外采订单"))
|
||||
{
|
||||
order.sendStatus = "已发送";
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("pdd_buyer_order", lstPddBuyerOrderInfoLite);
|
||||
}
|
||||
else if (exportRst != null && exportRst.Contains("<msg>") && exportRst.Contains("</msg>"))
|
||||
{
|
||||
order.sendStatus = exportRst.Substring(exportRst.IndexOf("<msg>") + 5).Substring(0, exportRst.IndexOf("</msg>"));
|
||||
order.sendStatus = exportRst.Substring(0, exportRst.IndexOf("</msg>")).Substring(exportRst.IndexOf("<msg>") + 5);
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("pdd_buyer_order", lstPddBuyerOrderInfoLite);
|
||||
}
|
||||
else
|
||||
@@ -918,6 +933,16 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
if (dgvPddBuyerOrder.Height < 100)
|
||||
dgvPddBuyerOrder.Height = 100;
|
||||
}
|
||||
|
||||
TimeSpan PauseTick = new TimeSpan(1);
|
||||
private void chkPause_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (chkPause.Checked != true)
|
||||
nextGetOrderTime = DateTime.Now + PauseTick;
|
||||
else
|
||||
PauseTick = nextGetOrderTime - DateTime.Now;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class YkdBuyerOrder
|
||||
|
||||
@@ -120,7 +120,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
|
||||
#if DEBUG
|
||||
#else
|
||||
ucTabControl1.TabPages.Remove(tabPage3);
|
||||
//ucTabControl1.TabPages.Remove(tabPage3);
|
||||
#endif
|
||||
|
||||
// 点击变绿的按钮
|
||||
|
||||
Reference in new issue
Block a user