店铺考核提供备注功能 微信带货助手采集功能

This commit is contained in:
wule committed 2026-05-14 02:55:53 +08:00
1 parent 4fa1fc03ca
commit 119b2f4f3e
64 files changed
+7940 -908

No files matched your search

@@ -59,8 +59,12 @@ namespace TemuKJD.WXForms.ShopForms
if (chkShopGroup.Checked)
shop.GroupName = this.cmbGroup.Text;
if (chkSubAccount.Checked)
{
if (shopSubAccountTmp == null)
shopSubAccountTmp = JsonHelper.DeserializeJsonToObject<ShopLoginInfo>(JsonHelper.SerializeObject(shop));
shop.SubUserName = shopSubAccountTmp.SubUserName;
}
shop.CompanyName = AllBase.BaseClass.CompanyName;
foreach (var sp in lstShopLoginInfo)
+148 -43
View File
@@ -26,9 +26,12 @@ namespace TemuKJD.WXForms.ShopForms
public class WXShopBrowserObject
{
public delegate void InfoReceivedHandler(string information);
/// <summary>
/// 通知前端事件
/// </summary>
public event InfoReceivedHandler OnInfoReceived;
public string getProduct(string sProdId, string supplierId, bool isReGet = true, bool notSaveDb = false)
public string getProduct(string sProdId, string supplierId, bool isReGet = true)
{
var prodId = sProdId.ParseToLong();
if (prodId <= 0)
@@ -54,7 +57,11 @@ namespace TemuKJD.WXForms.ShopForms
Task.Run(() =>
{
var msg = reGetProductWidthWXFormat(shop, sProdId, isReGet);
string msg = "";
if (isReGet)
msg = ReGetProductWithWXFormat(shop, sProdId);
else
msg = GetWxProduct(shop, sProdId);
if (!string.IsNullOrEmpty(msg))
{
if (!msg.StartsWith("success") && !msg.StartsWith("商品回采保存成功") && !msg.Contains("微信商品采集入库成功"))
@@ -77,9 +84,9 @@ namespace TemuKJD.WXForms.ShopForms
return "success";
}
public string reGetProductWidthWXFormat(ShopLoginInfo shop, string prodId, bool isReGet = true)
public string ReGetProductWithWXFormat(ShopLoginInfo shop, string prodId)
{
string getString = isReGet ? "商品回采" : "商品采集";
//string getString = isReGet ? "商品回采" : "商品采集";
try
{
Thread.Sleep(Randomx.GetId(10, 50));
@@ -100,13 +107,13 @@ namespace TemuKJD.WXForms.ShopForms
if (shop.LoginStatus != "登录成功")
errmsg = "店铺掉线";
return getString + "失败!" + errmsg;
return "商品回采失败!" + errmsg;
}
}
catch (Exception ex)
{
//OnInfoReceived("商品获取失败!商品数据格式获取失败!" + ex.Message);
return getString + "失败!商品数据格式获取失败!" + ex.Message;
//OnInfoReceived("商品回采失败!商品数据格式获取失败!" + ex.Message);
return "商品回采失败!商品数据格式获取失败!" + ex.Message;
}
WXGetEditProductInfoLite wxProdInfoLite = null;
@@ -126,32 +133,24 @@ namespace TemuKJD.WXForms.ShopForms
if (shop.LoginStatus != "登录成功")
errmsg = "店铺掉线";
return getString + "失败!" + errmsg;
return "商品回采失败!" + errmsg;
}
var addressStr = JsonHelper.JObjectParse(addressRst)["addressList"].FirstOrDefault().ParseToString();
wxProdInfoLite.address = JsonHelper.DeserializeJsonToObject<WXAfterSaleAddressInfo>(addressStr);
if (isReGet && wxProdInfoLite.address == null)
return getString + "失败!商品详情获取失败";
if (wxProdInfoLite.address == null)
return "商品回采失败!商品详情获取失败";
// 查看下json结构
var wxProdInfoLiteStr = JsonHelper.SerializeObject(wxProdInfoLite);
if (string.IsNullOrWhiteSpace(wxProdInfoLite.product.info.spuCode))
{
if (isReGet)
{
return getString + "失败:外部编码采集失败,跳过";
}
else
{
return SaveWxProd(shop, prodId, wxProdInfoLite);
}
return "商品回采失败:未找到外部编码,采集失败,跳过";
}
}
catch (Exception ex)
{
return getString + "失败:格式转换失败 " + ex.Message;
return "商品回采失败:格式转换失败 " + ex.Message;
}
// 查询商品库有没有
var url = BaseClass.BuildPDDObjString("product/get_product_spu_id_list");
Thread.Sleep(200);
@@ -166,12 +165,12 @@ namespace TemuKJD.WXForms.ShopForms
var errMsg = BaseRegex.GetStringJson(ref result, "msg");
if (string.IsNullOrEmpty(errMsg))
errMsg = result;
return getString + "查询商品错误:" + errMsg;
return "商品回采查询商品错误:" + errMsg;
}
List<KJDDBProduct> complateDbProdExistLst = JsonHelper.DeserializeJsonToList<KJDDBProduct>(JsonHelper.JObjectParse(result)["data"].ParseToString());
if (complateDbProdExistLst.Count == 0)
{
return getString + "商品不存在";
return "回采商品不存在";
}
url = BaseClass.BuildPDDObjString("product/add_prod_wx_complate");
@@ -190,20 +189,109 @@ namespace TemuKJD.WXForms.ShopForms
var errMsg = BaseRegex.GetStringJson(ref result, "msg");
if (string.IsNullOrEmpty(errMsg))
errMsg = result;
return getString + "查询商品错误:" + errMsg;
return "商品回采查询商品错误:" + errMsg;
}
else
{
return getString + "保存成功!";
return "商品回采保存成功!";
}
}
catch (Exception ex)
{
return getString + "失败!" + ex.Message;
return "商品回采失败!" + ex.Message;
}
}
string SaveWxProd(ShopLoginInfo shop, string prodId, WXGetEditProductInfoLite wxEditProdInfoLite)
public string GetWxProduct(ShopLoginInfo shop, string prodId)
{
WXGetEditProductInfoLite wxProdInfoLite = null;
return GetWxProduct(shop, prodId, ref wxProdInfoLite);
}
public string GetWxProduct(ShopLoginInfo shop, string prodId, ref WXGetEditProductInfoLite wxProdInfoLite, bool isNotSaveDB = false)
{
try
{
Thread.Sleep(Randomx.GetId(10, 50));
string getEditProdRst = "";
try
{
getEditProdRst = WXUpload.getEditProductV2(shop, prodId);
Thread.Sleep(Randomx.GetId(50, 100));
if (getEditProdRst.Contains("biz magic invalid"))
{
WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
}
if (!getEditProdRst.Contains("\"success\":true"))
{
var errmsg = BaseRegex.GetStringJson(ref getEditProdRst, "msg");
if (string.IsNullOrWhiteSpace(errmsg))
errmsg = getEditProdRst;
if (shop.LoginStatus != "登录成功")
errmsg = "店铺掉线";
return "店铺商品采集失败!" + errmsg;
}
}
catch (Exception ex)
{
//OnInfoReceived("商品获取失败!商品数据格式获取失败!" + ex.Message);
return "店铺商品采集失败!商品数据格式获取失败!" + ex.Message;
}
try
{
wxProdInfoLite = JsonHelper.DeserializeJsonToObject<WXGetEditProductInfoLite>(getEditProdRst);
var addressRst = WXUpload.getAddressById(shop, wxProdInfoLite.product.info.afterSaleInfo.afterSaleAddressId);
if (addressRst.Contains("biz magic invalid"))
{
WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
}
if (!addressRst.Contains("\"success\":true"))
{
var errmsg = BaseRegex.GetStringJson(ref addressRst, "msg");
if (string.IsNullOrWhiteSpace(errmsg))
errmsg = addressRst;
if (shop.LoginStatus != "登录成功")
errmsg = "店铺掉线";
return "店铺商品采集失败!" + errmsg;
}
var addressStr = JsonHelper.JObjectParse(addressRst)["addressList"].FirstOrDefault().ParseToString();
wxProdInfoLite.address = JsonHelper.DeserializeJsonToObject<WXAfterSaleAddressInfo>(addressStr);
if (wxProdInfoLite.address == null)
return "店铺商品采集失败!商品详情获取失败";
// 查看下json结构
var wxProdInfoLiteStr = JsonHelper.SerializeObject(wxProdInfoLite);
if (isNotSaveDB)
return "success";
else
return SaveWxProd(shop, prodId, wxProdInfoLite);
}
catch (Exception ex)
{
return "店铺商品采集失败:格式转换失败 " + ex.Message;
}
}
catch (Exception ex)
{
return "失败!" + ex.Message;
}
}
/// <summary>
/// 店采商品保存
/// </summary>
/// <param name="shop"></param>
/// <param name="prodId"></param>
/// <param name="wxEditProdInfoLite"></param>
/// <param name="specialProdType"></param>
/// <param name="coid"></param>
/// <param name="realCoid"></param>
/// <returns></returns>
public string SaveWxProd(ShopLoginInfo shop, string prodId, WXGetEditProductInfoLite wxEditProdInfoLite,
string specialProdType = null, string coid = null, string realCoid = null, int? viewUv = null, string wx_safe_status = "安全商品")
{
bool isExist = false;
var existUrl = BaseClass.BuildPDDObjString("product/get_product_spu_id_list");
@@ -231,18 +319,27 @@ namespace TemuKJD.WXForms.ShopForms
var data = Work.UserLogin.GetSignaturex() +
"&from_shop_id=" + shop.ShopId +
"&from_shop_name=" + shop.ShopAccount +
"&spu_id=" + prodId +
"&skc_id=" + prodId +
"&price_text=" + skus.Min(s => s.productSkuInfo.salePrice * 0.01m) + " - " + skus.Max(s => s.productSkuInfo.salePrice * 0.01m) +
"&ext_code=" + "" +
"&product_name=" + HttpUtility.UrlEncode(wxEditProdInfoLite.product.info.title, Encoding.UTF8) +
"&product_json=" + HttpUtility.UrlEncode(JsonHelper.SerializeObject(wxEditProdInfoLite), Encoding.UTF8) +
"&size_json=" + HttpUtility.UrlEncode("{}", Encoding.UTF8) +
"&sale_count=" +
"&sale_count_text=" +
"&main_img=" + HttpUtility.UrlEncode(wxEditProdInfoLite.product.info.headImg.FirstOrDefault(), Encoding.UTF8) +
"&wx_safe_status=" + HttpUtility.UrlEncode("安全商品", Encoding.UTF8) +
"&product_get_type=" + HttpUtility.UrlEncode("微信店采", Encoding.UTF8);
"&spu_id=" + prodId;
if (specialProdType == "爆款数据")
data += "&add_hot_version=v3";
if (!string.IsNullOrWhiteSpace(coid))
data += "&skc_id=" + coid;
else
data += "&skc_id=" + prodId;
if (!string.IsNullOrWhiteSpace(realCoid))
{
data += "&real_coid=" + realCoid;
}
data += "&price_text=" + skus.Min(s => s.productSkuInfo.salePrice * 0.01m) + " - " + skus.Max(s => s.productSkuInfo.salePrice * 0.01m);
data += "&ext_code=" + wxEditProdInfoLite.product.info.spuCode;
data += "&product_name=" + HttpUtility.UrlEncode(wxEditProdInfoLite.product.info.title, Encoding.UTF8) +
"&product_json=" + HttpUtility.UrlEncode(JsonHelper.SerializeObject(wxEditProdInfoLite), Encoding.UTF8) +
"&size_json=" + HttpUtility.UrlEncode("{}", Encoding.UTF8) +
"&sale_count=" +
"&sale_count_text=" +
"&main_img=" + HttpUtility.UrlEncode(wxEditProdInfoLite.product.info.headImg.FirstOrDefault(), Encoding.UTF8) +
"&wx_safe_status=" + HttpUtility.UrlEncode(wx_safe_status, Encoding.UTF8) +
"&product_get_type=" + HttpUtility.UrlEncode("微信店采", Encoding.UTF8);
if (wxEditProdInfoLite.product.info.category.Count > 0)
{
@@ -254,9 +351,17 @@ namespace TemuKJD.WXForms.ShopForms
data += "&cat_id=" + wxEditProdInfoLite.product.info.category.LastOrDefault()?.catId;
data += "&cat_name=" + HttpUtility.UrlEncode((wxEditProdInfoLite.product.info.category.LastOrDefault()?.name).ParseToString(), Encoding.UTF8);
}
if (wxEditProdInfoLite.product.info.category.FirstOrDefault().name == "图书")
//if (wxEditProdInfoLite.product.info.category.FirstOrDefault().name == "图书")
//{
// data += "&special_prod_type=" + HttpUtility.UrlEncode("书籍", Encoding.UTF8);
//}
if (specialProdType != null)
{
data += "&special_prod_type=" + HttpUtility.UrlEncode("书籍", Encoding.UTF8);
data += "&special_prod_type=" + HttpUtility.UrlEncode("爆款数据", Encoding.UTF8);
}
if (viewUv != null)
{
data += "&view_uv=" + viewUv;
}
html = GetHtml.PostUtf8(url, data);
@@ -264,7 +369,7 @@ namespace TemuKJD.WXForms.ShopForms
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
{
string msg = "商品入库失败!请检查网络连接:" + BaseRegex.GetStringJson(ref html, "msg");
string msg = "商品入库失败!请检查网络连接:" + BaseRegex.GetStringJson(ref html, "msg");
//Invoke(new Action(() =>
//{
// row.Cells["colMsg"].Value = msg;
@@ -286,12 +391,12 @@ namespace TemuKJD.WXForms.ShopForms
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
{
string msg = "商品入库失败!请检查网络连接:" + BaseRegex.GetStringJson(ref html, "msg");
string msg = "商品入库失败!请检查网络连接:" + BaseRegex.GetStringJson(ref html, "msg");
return msg;
}
}
return "微信商品采集入库成功!";
return "微信商品采集入库成功!";
}
}
}
@@ -363,21 +363,23 @@ namespace TemuKJD.WXForms.ShopForms
string jsStr1 = @"document.getElementsByClassName('shop-info-popover')[0].style ='';
var divLst = document.getElementsByClassName('shop-info-popover')[0].getElementsByTagName('div');
for (i=0; i<divLst.length; i++){
(function() { for (i=0; i<divLst.length; i++){
if(divLst[i].innerHTML.indexOf('切换店铺') >= 0){
divLst[i].click();
//return 'success'
//return 'success';
}
}";
} })();";
var t1 = cefWebBrowser.GetMainFrame().EvaluateScriptAsync(jsStr1);
t1.Wait(5000);
Thread.Sleep(Randomx.GetId(500, 1000));
jsStr1 = @"for (i=0; i<divLst.length; i++){
if(divLst[i].innerHTML.indexOf('" + switchInfo.nickname + @"') >= 0){
jsStr1 = @"(function() { for (i=0; i<divLst.length; i++){
//if(divLst[i].innerHTML.indexOf('" + switchInfo.nickname + @"') >= 0){
if(divLst[i].innerHTML == '" + switchInfo.nickname + @"'){
divLst[i].click();
return 'success';
}
}";
} })();";
t1 = cefWebBrowser.GetMainFrame().EvaluateScriptAsync(jsStr1);
t1.Wait(5000);
+324 -146
View File
@@ -56,8 +56,6 @@ namespace TemuKJD.WXForms.ShopForms
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle36 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
@@ -68,6 +66,8 @@ namespace TemuKJD.WXForms.ShopForms
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle36 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle37 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle38 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle39 = new System.Windows.Forms.DataGridViewCellStyle();
@@ -123,6 +123,14 @@ namespace TemuKJD.WXForms.ShopForms
this.tabPage1 = new System.Windows.Forms.TabPage();
this.panel1 = new System.Windows.Forms.Panel();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.pnlUpdateRemark = new System.Windows.Forms.Panel();
this.lblShopId = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.txtRemark = new System.Windows.Forms.TextBox();
this.btnRemarkCancel = new DevComponents.DotNetBar.PanelEx();
this.btnRemarkOK = new DevComponents.DotNetBar.PanelEx();
this.lblOrderId = new System.Windows.Forms.Label();
this.lblShopName = new System.Windows.Forms.Label();
this.dgvData1 = new TemuKJD.UserComponent.DataGridViewEx();
this.colDgv1Check = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colDgv1ShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -141,6 +149,7 @@ namespace TemuKJD.WXForms.ShopForms
this.colDgv1AfterSaleReason = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colDgv1OptimizeStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colDgv1Optimize = new System.Windows.Forms.DataGridViewLinkColumn();
this.colDgv1Remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.panel2 = new System.Windows.Forms.Panel();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
@@ -165,18 +174,11 @@ namespace TemuKJD.WXForms.ShopForms
this.colDgv2CommentContent = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colDgv2OptimizeStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colDgv2Optimize = new System.Windows.Forms.DataGridViewLinkColumn();
this.colDgv2Remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.mainPanel = new System.Windows.Forms.Panel();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.dgvData3 = new TemuKJD.UserComponent.DataGridViewEx();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.panel3 = new System.Windows.Forms.Panel();
this.pictureBox4 = new System.Windows.Forms.PictureBox();
this.dgvData4 = new TemuKJD.UserComponent.DataGridViewEx();
this.tabPage5 = new System.Windows.Forms.TabPage();
this.chkTestNoAuditUpload = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
this.colDgv3Check = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colDgv3ShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colDgv3ShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -198,6 +200,11 @@ namespace TemuKJD.WXForms.ShopForms
this.colDgv3WaybillId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colDgv3OptimizeStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colDgv3Optimize = new System.Windows.Forms.DataGridViewLinkColumn();
this.colDgv3Remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.panel3 = new System.Windows.Forms.Panel();
this.pictureBox4 = new System.Windows.Forms.PictureBox();
this.dgvData4 = new TemuKJD.UserComponent.DataGridViewEx();
this.colDgv4Check = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colDgv4ShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colDgv4ShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -219,6 +226,12 @@ namespace TemuKJD.WXForms.ShopForms
this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colDgv4OptimizeStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colDgv4Optimize = new System.Windows.Forms.DataGridViewLinkColumn();
this.colDgv4Remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tabPage5 = new System.Windows.Forms.TabPage();
this.chkTestNoAuditUpload = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
this.label2 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@@ -235,6 +248,7 @@ namespace TemuKJD.WXForms.ShopForms
this.tabPage1.SuspendLayout();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.pnlUpdateRemark.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvData1)).BeginInit();
this.tabPage2.SuspendLayout();
this.panel2.SuspendLayout();
@@ -935,6 +949,7 @@ namespace TemuKJD.WXForms.ShopForms
// panel1
//
this.panel1.Controls.Add(this.pictureBox1);
this.panel1.Controls.Add(this.pnlUpdateRemark);
this.panel1.Controls.Add(this.dgvData1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@@ -955,6 +970,117 @@ namespace TemuKJD.WXForms.ShopForms
this.pictureBox1.TabStop = false;
this.pictureBox1.Visible = false;
//
// pnlUpdateRemark
//
this.pnlUpdateRemark.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.pnlUpdateRemark.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pnlUpdateRemark.Controls.Add(this.lblShopId);
this.pnlUpdateRemark.Controls.Add(this.label1);
this.pnlUpdateRemark.Controls.Add(this.txtRemark);
this.pnlUpdateRemark.Controls.Add(this.btnRemarkCancel);
this.pnlUpdateRemark.Controls.Add(this.btnRemarkOK);
this.pnlUpdateRemark.Controls.Add(this.lblOrderId);
this.pnlUpdateRemark.Controls.Add(this.lblShopName);
this.pnlUpdateRemark.Controls.Add(this.label2);
this.pnlUpdateRemark.Location = new System.Drawing.Point(467, 63);
this.pnlUpdateRemark.Name = "pnlUpdateRemark";
this.pnlUpdateRemark.Size = new System.Drawing.Size(474, 146);
this.pnlUpdateRemark.TabIndex = 781;
this.pnlUpdateRemark.Visible = false;
//
// lblShopId
//
this.lblShopId.AutoSize = true;
this.lblShopId.Location = new System.Drawing.Point(20, 112);
this.lblShopId.Name = "lblShopId";
this.lblShopId.Size = new System.Drawing.Size(50, 17);
this.lblShopId.TabIndex = 475;
this.lblShopId.Text = "ShopId";
this.lblShopId.Visible = false;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(20, 52);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(32, 17);
this.label1.TabIndex = 468;
this.label1.Text = "备注";
//
// txtRemark
//
this.txtRemark.Location = new System.Drawing.Point(55, 48);
this.txtRemark.Multiline = true;
this.txtRemark.Name = "txtRemark";
this.txtRemark.Size = new System.Drawing.Size(407, 54);
this.txtRemark.TabIndex = 467;
//
// btnRemarkCancel
//
this.btnRemarkCancel.CanvasColor = System.Drawing.SystemColors.Control;
this.btnRemarkCancel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnRemarkCancel.DisabledBackColor = System.Drawing.Color.Empty;
this.btnRemarkCancel.Location = new System.Drawing.Point(406, 112);
this.btnRemarkCancel.Name = "btnRemarkCancel";
this.btnRemarkCancel.Size = new System.Drawing.Size(56, 24);
this.btnRemarkCancel.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnRemarkCancel.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnRemarkCancel.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
this.btnRemarkCancel.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.btnRemarkCancel.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnRemarkCancel.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.btnRemarkCancel.Style.GradientAngle = 90;
this.btnRemarkCancel.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
this.btnRemarkCancel.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnRemarkCancel.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnRemarkCancel.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnRemarkCancel.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
this.btnRemarkCancel.TabIndex = 466;
this.btnRemarkCancel.Text = "取消";
this.btnRemarkCancel.Click += new System.EventHandler(this.btnRemarkCancel_Click);
//
// btnRemarkOK
//
this.btnRemarkOK.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnRemarkOK.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnRemarkOK.DisabledBackColor = System.Drawing.Color.Empty;
this.btnRemarkOK.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnRemarkOK.Location = new System.Drawing.Point(347, 112);
this.btnRemarkOK.Name = "btnRemarkOK";
this.btnRemarkOK.Size = new System.Drawing.Size(56, 24);
this.btnRemarkOK.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnRemarkOK.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnRemarkOK.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnRemarkOK.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnRemarkOK.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnRemarkOK.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnRemarkOK.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnRemarkOK.Style.GradientAngle = 90;
this.btnRemarkOK.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnRemarkOK.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnRemarkOK.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnRemarkOK.TabIndex = 465;
this.btnRemarkOK.Text = "确定";
this.btnRemarkOK.Click += new System.EventHandler(this.btnRemarkOK_Click);
//
// lblOrderId
//
this.lblOrderId.AutoSize = true;
this.lblOrderId.Location = new System.Drawing.Point(255, 19);
this.lblOrderId.Name = "lblOrderId";
this.lblOrderId.Size = new System.Drawing.Size(55, 17);
this.lblOrderId.TabIndex = 456;
this.lblOrderId.Text = "OrderId";
//
// lblShopName
//
this.lblShopName.AutoSize = true;
this.lblShopName.Location = new System.Drawing.Point(20, 19);
this.lblShopName.Name = "lblShopName";
this.lblShopName.Size = new System.Drawing.Size(73, 17);
this.lblShopName.TabIndex = 455;
this.lblShopName.Text = "ShopName";
//
// dgvData1
//
this.dgvData1.AllowUserToAddRows = false;
@@ -990,7 +1116,8 @@ namespace TemuKJD.WXForms.ShopForms
this.colDgv1OrderTime,
this.colDgv1AfterSaleReason,
this.colDgv1OptimizeStatus,
this.colDgv1Optimize});
this.colDgv1Optimize,
this.colDgv1Remark});
this.dgvData1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvData1.Location = new System.Drawing.Point(0, 0);
this.dgvData1.MultiSelectCheckBox = true;
@@ -1145,6 +1272,12 @@ namespace TemuKJD.WXForms.ShopForms
this.colDgv1Optimize.ReadOnly = true;
this.colDgv1Optimize.Width = 50;
//
// colDgv1Remark
//
this.colDgv1Remark.HeaderText = "备注";
this.colDgv1Remark.Name = "colDgv1Remark";
this.colDgv1Remark.ReadOnly = true;
//
// tabPage2
//
this.tabPage2.Controls.Add(this.panel2);
@@ -1216,7 +1349,8 @@ namespace TemuKJD.WXForms.ShopForms
this.colDgv2CommentTime,
this.colDgv2CommentContent,
this.colDgv2OptimizeStatus,
this.colDgv2Optimize});
this.colDgv2Optimize,
this.colDgv2Remark});
this.dgvData2.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvData2.Location = new System.Drawing.Point(0, 0);
this.dgvData2.MultiSelectCheckBox = true;
@@ -1398,6 +1532,12 @@ namespace TemuKJD.WXForms.ShopForms
this.colDgv2Optimize.ReadOnly = true;
this.colDgv2Optimize.Width = 50;
//
// colDgv2Remark
//
this.colDgv2Remark.HeaderText = "备注";
this.colDgv2Remark.Name = "colDgv2Remark";
this.colDgv2Remark.ReadOnly = true;
//
// tabPage3
//
this.tabPage3.Controls.Add(this.mainPanel);
@@ -1470,7 +1610,8 @@ namespace TemuKJD.WXForms.ShopForms
this.colDgv3DeliveryName,
this.colDgv3WaybillId,
this.colDgv3OptimizeStatus,
this.colDgv3Optimize});
this.colDgv3Optimize,
this.colDgv3Remark});
this.dgvData3.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvData3.Location = new System.Drawing.Point(0, 0);
this.dgvData3.MultiSelectCheckBox = true;
@@ -1481,139 +1622,6 @@ namespace TemuKJD.WXForms.ShopForms
this.dgvData3.TabIndex = 187;
this.dgvData3.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvData_CellContentClick);
//
// tabPage4
//
this.tabPage4.Controls.Add(this.panel3);
this.tabPage4.Location = new System.Drawing.Point(2, 40);
this.tabPage4.Name = "tabPage4";
this.tabPage4.Size = new System.Drawing.Size(1408, 489);
this.tabPage4.TabIndex = 2;
this.tabPage4.Text = " 配送不达标 ";
this.tabPage4.UseVisualStyleBackColor = true;
//
// panel3
//
this.panel3.Controls.Add(this.pictureBox4);
this.panel3.Controls.Add(this.dgvData4);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panel3.Location = new System.Drawing.Point(0, 0);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1408, 489);
this.panel3.TabIndex = 2;
//
// pictureBox4
//
this.pictureBox4.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pictureBox4.Image = global::TemuKJD.Properties.Resources.loading_blue;
this.pictureBox4.Location = new System.Drawing.Point(685, 219);
this.pictureBox4.Name = "pictureBox4";
this.pictureBox4.Size = new System.Drawing.Size(50, 50);
this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox4.TabIndex = 780;
this.pictureBox4.TabStop = false;
this.pictureBox4.Visible = false;
//
// dgvData4
//
this.dgvData4.AllowUserToAddRows = false;
this.dgvData4.AllowUserToDeleteRows = false;
dataGridViewCellStyle35.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvData4.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle35;
this.dgvData4.AutoRowNumber = true;
this.dgvData4.BackgroundColor = System.Drawing.Color.White;
this.dgvData4.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
dataGridViewCellStyle36.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle36.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle36.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle36.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle36.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle36.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle36.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvData4.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle36;
this.dgvData4.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvData4.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colDgv4Check,
this.colDgv4ShopId,
this.colDgv4ShopName,
this.colDgv4Login,
this.colDgv4InShop,
this.colDgv4ImgUrl,
this.colDgv4Img,
this.dataGridViewTextBoxColumn4,
this.dataGridViewTextBoxColumn5,
this.dataGridViewTextBoxColumn6,
this.dataGridViewTextBoxColumn7,
this.colDgv4OrderId,
this.colDgv4Address,
this.colDgv4OrderTime,
this.dataGridViewTextBoxColumn9,
this.colDgv4WaybillId,
this.dataGridViewTextBoxColumn10,
this.colDgv4Addresses,
this.dataGridViewTextBoxColumn12,
this.colDgv4OptimizeStatus,
this.colDgv4Optimize});
this.dgvData4.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvData4.Location = new System.Drawing.Point(0, 0);
this.dgvData4.MultiSelectCheckBox = true;
this.dgvData4.Name = "dgvData4";
this.dgvData4.ReadOnly = true;
this.dgvData4.RowTemplate.Height = 23;
this.dgvData4.Size = new System.Drawing.Size(1408, 489);
this.dgvData4.TabIndex = 187;
this.dgvData4.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvData_CellContentClick);
//
// tabPage5
//
this.tabPage5.Location = new System.Drawing.Point(2, 40);
this.tabPage5.Name = "tabPage5";
this.tabPage5.Size = new System.Drawing.Size(1408, 489);
this.tabPage5.TabIndex = 3;
this.tabPage5.Text = " 物流负向反馈 ";
this.tabPage5.UseVisualStyleBackColor = true;
//
// chkTestNoAuditUpload
//
this.chkTestNoAuditUpload.AutoSize = true;
this.chkTestNoAuditUpload.Location = new System.Drawing.Point(1094, 35);
this.chkTestNoAuditUpload.Name = "chkTestNoAuditUpload";
this.chkTestNoAuditUpload.Size = new System.Drawing.Size(123, 21);
this.chkTestNoAuditUpload.TabIndex = 779;
this.chkTestNoAuditUpload.Text = "测试免审提交商品";
this.chkTestNoAuditUpload.UseVisualStyleBackColor = true;
this.chkTestNoAuditUpload.Visible = false;
//
// statusBar
//
this.statusBar.BackColor = System.Drawing.Color.White;
this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill;
this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.statusBar.Location = new System.Drawing.Point(0, 0);
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
this.statusBar.Name = "statusBar";
this.statusBar.Size = new System.Drawing.Size(1772, 27);
this.statusBar.TabIndex = 2;
//
// splitContainer3
//
this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer3.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
this.splitContainer3.Location = new System.Drawing.Point(0, 0);
this.splitContainer3.Name = "splitContainer3";
this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer3.Panel1
//
this.splitContainer3.Panel1.Controls.Add(this.splitContainer2);
//
// splitContainer3.Panel2
//
this.splitContainer3.Panel2.Controls.Add(this.statusBar);
this.splitContainer3.Size = new System.Drawing.Size(1772, 564);
this.splitContainer3.SplitterDistance = 533;
this.splitContainer3.TabIndex = 3;
//
// colDgv3Check
//
this.colDgv3Check.Frozen = true;
@@ -1796,6 +1804,96 @@ namespace TemuKJD.WXForms.ShopForms
this.colDgv3Optimize.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.colDgv3Optimize.Width = 50;
//
// colDgv3Remark
//
this.colDgv3Remark.HeaderText = "备注";
this.colDgv3Remark.Name = "colDgv3Remark";
this.colDgv3Remark.ReadOnly = true;
//
// tabPage4
//
this.tabPage4.Controls.Add(this.panel3);
this.tabPage4.Location = new System.Drawing.Point(2, 40);
this.tabPage4.Name = "tabPage4";
this.tabPage4.Size = new System.Drawing.Size(1408, 489);
this.tabPage4.TabIndex = 2;
this.tabPage4.Text = " 配送不达标 ";
this.tabPage4.UseVisualStyleBackColor = true;
//
// panel3
//
this.panel3.Controls.Add(this.pictureBox4);
this.panel3.Controls.Add(this.dgvData4);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panel3.Location = new System.Drawing.Point(0, 0);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1408, 489);
this.panel3.TabIndex = 2;
//
// pictureBox4
//
this.pictureBox4.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pictureBox4.Image = global::TemuKJD.Properties.Resources.loading_blue;
this.pictureBox4.Location = new System.Drawing.Point(685, 219);
this.pictureBox4.Name = "pictureBox4";
this.pictureBox4.Size = new System.Drawing.Size(50, 50);
this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox4.TabIndex = 780;
this.pictureBox4.TabStop = false;
this.pictureBox4.Visible = false;
//
// dgvData4
//
this.dgvData4.AllowUserToAddRows = false;
this.dgvData4.AllowUserToDeleteRows = false;
dataGridViewCellStyle35.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvData4.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle35;
this.dgvData4.AutoRowNumber = true;
this.dgvData4.BackgroundColor = System.Drawing.Color.White;
this.dgvData4.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
dataGridViewCellStyle36.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle36.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle36.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle36.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle36.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle36.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle36.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvData4.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle36;
this.dgvData4.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvData4.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colDgv4Check,
this.colDgv4ShopId,
this.colDgv4ShopName,
this.colDgv4Login,
this.colDgv4InShop,
this.colDgv4ImgUrl,
this.colDgv4Img,
this.dataGridViewTextBoxColumn4,
this.dataGridViewTextBoxColumn5,
this.dataGridViewTextBoxColumn6,
this.dataGridViewTextBoxColumn7,
this.colDgv4OrderId,
this.colDgv4Address,
this.colDgv4OrderTime,
this.dataGridViewTextBoxColumn9,
this.colDgv4WaybillId,
this.dataGridViewTextBoxColumn10,
this.colDgv4Addresses,
this.dataGridViewTextBoxColumn12,
this.colDgv4OptimizeStatus,
this.colDgv4Optimize,
this.colDgv4Remark});
this.dgvData4.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvData4.Location = new System.Drawing.Point(0, 0);
this.dgvData4.MultiSelectCheckBox = true;
this.dgvData4.Name = "dgvData4";
this.dgvData4.ReadOnly = true;
this.dgvData4.RowTemplate.Height = 23;
this.dgvData4.Size = new System.Drawing.Size(1408, 489);
this.dgvData4.TabIndex = 187;
this.dgvData4.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvData_CellContentClick);
//
// colDgv4Check
//
this.colDgv4Check.Frozen = true;
@@ -1978,6 +2076,71 @@ namespace TemuKJD.WXForms.ShopForms
this.colDgv4Optimize.ReadOnly = true;
this.colDgv4Optimize.Width = 50;
//
// colDgv4Remark
//
this.colDgv4Remark.HeaderText = "备注";
this.colDgv4Remark.Name = "colDgv4Remark";
this.colDgv4Remark.ReadOnly = true;
//
// tabPage5
//
this.tabPage5.Location = new System.Drawing.Point(2, 40);
this.tabPage5.Name = "tabPage5";
this.tabPage5.Size = new System.Drawing.Size(1408, 489);
this.tabPage5.TabIndex = 3;
this.tabPage5.Text = " 物流负向反馈 ";
this.tabPage5.UseVisualStyleBackColor = true;
//
// chkTestNoAuditUpload
//
this.chkTestNoAuditUpload.AutoSize = true;
this.chkTestNoAuditUpload.Location = new System.Drawing.Point(1094, 35);
this.chkTestNoAuditUpload.Name = "chkTestNoAuditUpload";
this.chkTestNoAuditUpload.Size = new System.Drawing.Size(123, 21);
this.chkTestNoAuditUpload.TabIndex = 779;
this.chkTestNoAuditUpload.Text = "测试免审提交商品";
this.chkTestNoAuditUpload.UseVisualStyleBackColor = true;
this.chkTestNoAuditUpload.Visible = false;
//
// statusBar
//
this.statusBar.BackColor = System.Drawing.Color.White;
this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill;
this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.statusBar.Location = new System.Drawing.Point(0, 0);
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
this.statusBar.Name = "statusBar";
this.statusBar.Size = new System.Drawing.Size(1772, 27);
this.statusBar.TabIndex = 2;
//
// splitContainer3
//
this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer3.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
this.splitContainer3.Location = new System.Drawing.Point(0, 0);
this.splitContainer3.Name = "splitContainer3";
this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer3.Panel1
//
this.splitContainer3.Panel1.Controls.Add(this.splitContainer2);
//
// splitContainer3.Panel2
//
this.splitContainer3.Panel2.Controls.Add(this.statusBar);
this.splitContainer3.Size = new System.Drawing.Size(1772, 564);
this.splitContainer3.SplitterDistance = 533;
this.splitContainer3.TabIndex = 3;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(223, 19);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(44, 17);
this.label2.TabIndex = 482;
this.label2.Text = "单号:";
//
// WXShopOptimizeForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -2009,6 +2172,8 @@ namespace TemuKJD.WXForms.ShopForms
this.tabPage1.ResumeLayout(false);
this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.pnlUpdateRemark.ResumeLayout(false);
this.pnlUpdateRemark.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvData1)).EndInit();
this.tabPage2.ResumeLayout(false);
this.panel2.ResumeLayout(false);
@@ -2110,6 +2275,14 @@ namespace TemuKJD.WXForms.ShopForms
private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1AfterSaleReason;
private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1OptimizeStatus;
private System.Windows.Forms.DataGridViewLinkColumn colDgv1Optimize;
private System.Windows.Forms.DataGridViewTextBoxColumn colDgv1Remark;
private System.Windows.Forms.Panel pnlUpdateRemark;
private System.Windows.Forms.Label lblOrderId;
private System.Windows.Forms.Label lblShopName;
private DevComponents.DotNetBar.PanelEx btnRemarkCancel;
private DevComponents.DotNetBar.PanelEx btnRemarkOK;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox txtRemark;
private System.Windows.Forms.DataGridViewCheckBoxColumn colDgv2Check;
private System.Windows.Forms.DataGridViewTextBoxColumn colDgv2ShopId;
private System.Windows.Forms.DataGridViewTextBoxColumn colDgv2ShopName;
@@ -2130,6 +2303,7 @@ namespace TemuKJD.WXForms.ShopForms
private System.Windows.Forms.DataGridViewTextBoxColumn colDgv2CommentContent;
private System.Windows.Forms.DataGridViewTextBoxColumn colDgv2OptimizeStatus;
private System.Windows.Forms.DataGridViewLinkColumn colDgv2Optimize;
private System.Windows.Forms.DataGridViewTextBoxColumn colDgv2Remark;
private System.Windows.Forms.DataGridViewCheckBoxColumn colDgv3Check;
private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3ShopId;
private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3ShopName;
@@ -2151,6 +2325,7 @@ namespace TemuKJD.WXForms.ShopForms
private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3WaybillId;
private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3OptimizeStatus;
private System.Windows.Forms.DataGridViewLinkColumn colDgv3Optimize;
private System.Windows.Forms.DataGridViewTextBoxColumn colDgv3Remark;
private System.Windows.Forms.DataGridViewCheckBoxColumn colDgv4Check;
private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4ShopId;
private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4ShopName;
@@ -2172,5 +2347,8 @@ namespace TemuKJD.WXForms.ShopForms
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn12;
private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4OptimizeStatus;
private System.Windows.Forms.DataGridViewLinkColumn colDgv4Optimize;
private System.Windows.Forms.DataGridViewTextBoxColumn colDgv4Remark;
private System.Windows.Forms.Label lblShopId;
private System.Windows.Forms.Label label2;
}
}
+337 -10
View File
@@ -666,7 +666,99 @@ namespace TemuKJD.WXForms.ShopForms
}
}
}
// 查询是否有失败记录
url = BaseClass.BuildObjString("shop/get_express_optimize_rst");
data = "";
data = UserLogin.GetSignaturex();
data += "&order_ids=" + string.Join(",", orderAfterSaleInfoLst.Select(w => w.orderInfo.orderId));
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
{
foreach (var orderAfterSale in orderAfterSaleInfoLst)
{
if (orderAfterSale.optimizeWaybillId.IsNullOrEmpty())
{
orderAfterSale.optimizeWaybillId = "查询失败";
orderAfterSale.optimizeTime = "";
}
}
}
else
{
try
{
var jArr = JObject.Parse(html)["data"];
var sProd = JsonHelper.SerializeObject(jArr);
var optimizeLst = JsonHelper.DeserializeJsonToList<WxOptimizeRstInfo>(sProd);
foreach (var orderAfterSale in orderAfterSaleInfoLst)
{
if (orderAfterSale.optimizeWaybillId.IsNullOrEmpty())
{
var ov = optimizeLst.FirstOrDefault(o => o.order_id == orderAfterSale.orderInfo.orderId);
if (ov != null)
{
orderAfterSale.optimizeWaybillId = ov == null ? "" : ov.optimize_rst;
orderAfterSale.optimizeTime = ov == null ? "" : ov?.mdy_time.ToString("yyyy-MM-dd HH:mm");
}
}
}
}
catch (Exception ex)
{
foreach (var orderAfterSale in orderAfterSaleInfoLst)
{
if (orderAfterSale.optimizeWaybillId.IsNullOrEmpty())
{
orderAfterSale.optimizeWaybillId = "查询失败";
orderAfterSale.optimizeTime = "";
}
}
}
}
// 查询备注记录
url = BaseClass.BuildObjString("shop/get_express_optimize_remark");
data = "";
data = UserLogin.GetSignaturex();
data += "&order_ids=" + string.Join(",", orderAfterSaleInfoLst.Select(w => w.orderInfo.orderId));
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
{
foreach (var orderAfterSale in orderAfterSaleInfoLst)
{
orderAfterSale.remark = "备注查询失败";
}
}
else
{
try
{
var jArr = JObject.Parse(html)["data"];
var sProd = JsonHelper.SerializeObject(jArr);
var optimizeLst = JsonHelper.DeserializeJsonToList<WxOptimizeRemarkInfo>(sProd);
foreach (var orderAfterSale in orderAfterSaleInfoLst)
{
var ov = optimizeLst.FirstOrDefault(o => o.order_id == orderAfterSale.orderInfo.orderId);
orderAfterSale.remark = ov == null ? "" : ov.remark;
}
}
catch (Exception ex)
{
foreach (var orderAfterSale in orderAfterSaleInfoLst)
{
orderAfterSale.remark = "备注查询失败 " + ex.Message;
}
}
}
// 显示列表
foreach (var refundOrder in orderAfterSaleInfoLst)
{
if (CheckOrderExist(refundOrder.orderInfo.orderId))
@@ -693,7 +785,8 @@ namespace TemuKJD.WXForms.ShopForms
BaseClass.StampToDateTime(refundOrder.orderInfo.createTime.ParseToInt()).ToString("yyyy-MM-dd HH:mm:ss"),
refundOrder.reason,
refundOrder.optimizeWaybillId + "\r\n" + refundOrder.optimizeTime,
"补发"
"补发",
refundOrder.remark.Trim().IsNullOrEmpty() ? "添加备注" : refundOrder.remark.Trim()
);
dgvData1.Rows[rowIndex].Height = 60;
@@ -876,6 +969,98 @@ namespace TemuKJD.WXForms.ShopForms
}
}
// 查询是否有失败记录
url = BaseClass.BuildObjString("shop/get_express_optimize_rst");
data = "";
data = UserLogin.GetSignaturex();
data += "&order_ids=" + string.Join(",", productEvaluationInfoLst.Select(w => w.order_id));
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
{
foreach (var evaluationInfo in productEvaluationInfoLst)
{
if (evaluationInfo.optimizeWaybillId.IsNullOrEmpty())
{
evaluationInfo.optimizeWaybillId = "查询失败";
evaluationInfo.optimizeTime = "";
}
}
}
else
{
try
{
var jArr = JObject.Parse(html)["data"];
var sProd = JsonHelper.SerializeObject(jArr);
var optimizeLst = JsonHelper.DeserializeJsonToList<WxOptimizeRstInfo>(sProd);
foreach (var evaluationInfo in productEvaluationInfoLst)
{
if (evaluationInfo.optimizeWaybillId.IsNullOrEmpty())
{
var ov = optimizeLst.FirstOrDefault(o => o.order_id == evaluationInfo.order_id);
if (ov != null)
{
evaluationInfo.optimizeWaybillId = ov == null ? "" : ov.optimize_rst;
evaluationInfo.optimizeTime = ov == null ? "" : ov?.mdy_time.ToString("yyyy-MM-dd HH:mm");
}
}
}
}
catch (Exception ex)
{
foreach (var evaluationInfo in productEvaluationInfoLst)
{
if (evaluationInfo.optimizeWaybillId.IsNullOrEmpty())
{
evaluationInfo.optimizeWaybillId = "查询失败";
evaluationInfo.optimizeTime = "";
}
}
}
}
// 查询备注记录
url = BaseClass.BuildObjString("shop/get_express_optimize_remark");
data = "";
data = UserLogin.GetSignaturex();
data += "&order_ids=" + string.Join(",", productEvaluationInfoLst.Select(w => w.order_id));
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
{
foreach (var evaluationInfo in productEvaluationInfoLst)
{
evaluationInfo.remark = "备注查询失败";
}
}
else
{
try
{
var jArr = JObject.Parse(html)["data"];
var sProd = JsonHelper.SerializeObject(jArr);
var optimizeLst = JsonHelper.DeserializeJsonToList<WxOptimizeRemarkInfo>(sProd);
foreach (var evaluationInfo in productEvaluationInfoLst)
{
var ov = optimizeLst.FirstOrDefault(o => o.order_id == evaluationInfo.order_id);
evaluationInfo.remark = ov == null ? "" : ov.remark;
}
}
catch (Exception ex)
{
foreach (var evaluationInfo in productEvaluationInfoLst)
{
evaluationInfo.remark = "备注查询失败 " + ex.Message;
}
}
}
//显示列表
foreach (var prodEvaluationInfo in productEvaluationInfoLst)
{
if (CheckOrderExist(prodEvaluationInfo.order_id))
@@ -908,7 +1093,8 @@ namespace TemuKJD.WXForms.ShopForms
BaseClass.StampToDateTime(prodEvaluationInfo.evaluationInfo.firstEvaluationInfo.buyerEvaluationInfo.createTime.ParseToInt()).ToString("yyyy-MM-dd HH:mm:ss"),
(content + " " + (lblLst == null ? "" : string.Join(" ", lblLst.Select(e => e.labelName)))).Trim(),
prodEvaluationInfo.optimizeWaybillId + "\r\n" + prodEvaluationInfo.optimizeTime,
"补发"
"补发",
prodEvaluationInfo.remark.Trim().IsNullOrEmpty() ? "添加备注" : prodEvaluationInfo.remark.Trim()
);
dgvData2.Rows[rowIndex].Height = 60;
@@ -1195,6 +1381,44 @@ namespace TemuKJD.WXForms.ShopForms
}
}
// 查询备注记录
url = BaseClass.BuildObjString("shop/get_express_optimize_remark");
data = "";
data = UserLogin.GetSignaturex();
data += "&order_ids=" + string.Join(",", waybillLst.Select(w => w.orderInfo.orderId));
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
{
foreach (var orderWaybill in waybillLst)
{
orderWaybill.remark = "备注查询失败";
}
}
else
{
try
{
var jArr = JObject.Parse(html)["data"];
var sProd = JsonHelper.SerializeObject(jArr);
var optimizeLst = JsonHelper.DeserializeJsonToList<WxOptimizeRemarkInfo>(sProd);
foreach (var orderWaybill in waybillLst)
{
var ov = optimizeLst.FirstOrDefault(o => o.order_id == orderWaybill.orderInfo.orderId);
orderWaybill.remark = ov == null ? "" : ov.remark;
}
}
catch (Exception ex)
{
foreach (var orderWaybill in waybillLst)
{
orderWaybill.remark = "备注查询失败 " + ex.Message;
}
}
}
// 显示列表
foreach (var orderWaybill in waybillLst)
{
if (CheckOrderExist(orderWaybill.orderInfo.orderId))
@@ -1224,7 +1448,8 @@ namespace TemuKJD.WXForms.ShopForms
orderWaybill.delivery.deliveryName,
orderWaybill.waybillId,
orderWaybill.optimizeWaybillId + "\r\n" + orderWaybill.optimizeTime,
"补发"
"补发",
orderWaybill.remark.Trim().IsNullOrEmpty() ? "添加备注" : orderWaybill.remark.Trim()
);
dgvData3.Rows[rowIndex].Height = 60;
@@ -1490,6 +1715,43 @@ namespace TemuKJD.WXForms.ShopForms
}
}
// 查询备注记录
url = BaseClass.BuildObjString("shop/get_express_optimize_remark");
data = "";
data = UserLogin.GetSignaturex();
data += "&order_ids=" + string.Join(",", optrimizeLinerCgiLst.Select(w => w.order_id));
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
{
foreach (var linerCgi in optrimizeLinerCgiLst)
{
linerCgi.remark = "备注查询失败";
}
}
else
{
try
{
var jArr = JObject.Parse(html)["data"];
var sProd = JsonHelper.SerializeObject(jArr);
var optimizeLst = JsonHelper.DeserializeJsonToList<WxOptimizeRemarkInfo>(sProd);
foreach (var linerCgi in optrimizeLinerCgiLst)
{
var ov = optimizeLst.FirstOrDefault(o => o.order_id == linerCgi.order_id);
linerCgi.remark = ov == null ? "" : ov.remark;
}
}
catch (Exception ex)
{
foreach (var linerCgi in optrimizeLinerCgiLst)
{
linerCgi.remark = "备注查询失败 " + ex.Message;
}
}
}
foreach (var orderLinerCgiInfo in optrimizeLinerCgiLst)
{
if (CheckOrderExist(orderLinerCgiInfo.order_id))
@@ -1520,7 +1782,8 @@ namespace TemuKJD.WXForms.ShopForms
"发货地:" + orderLinerCgiInfo.ship_city + "\r\n" + "收货地:" + orderLinerCgiInfo.ship_province + orderLinerCgiInfo.receipt_city,
(orderLinerCgiInfo.transport_duration.ParseToInt() / 3600) + "小时" + (orderLinerCgiInfo.transport_duration.ParseToInt() % 3600) / 60 + "分" + "\r\n标准时长" + (orderLinerCgiInfo.transport_std_duration.ParseToInt() / 3600) + "小时",
orderLinerCgiInfo.optimizeWaybillId + "\r\n" + orderLinerCgiInfo.optimizeTime,
"补发"
"补发",
orderLinerCgiInfo.remark.Trim().IsNullOrEmpty() ? "添加备注" : orderLinerCgiInfo.remark.Trim()
);
dgvData4.Rows[rowIndex].Height = 60;
@@ -1703,19 +1966,44 @@ namespace TemuKJD.WXForms.ShopForms
BaseMsgForm.ShowError("订单编号不符合补发条件!");
return;
}
orderId = orderId.Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault();
if (!string.IsNullOrEmpty(orderId))
{
var rst = OptimizeExpress(shop, orderId, row.Cells[$"colDgv{dgvNum}OrderTime"].Value.ParseToString());
row.Cells[$"colDgv{dgvNum}OptimizeStatus"].Value = rst;
}
else
{
BaseMsgForm.ShowError("缺少订单编号无法补发!");
return;
}
var rst = OptimizeExpress(shop, orderId, row.Cells[$"colDgv{dgvNum}OrderTime"].Value.ParseToString());
row.Cells[$"colDgv{dgvNum}OptimizeStatus"].Value = rst;
break;
}
case "备注":
{
var orderId = row.Cells[$"colDgv{dgvNum}OrderId"].Value.ParseToString();
if (orderId.Contains("未获取到对应订单号"))
{
BaseMsgForm.ShowError("缺少单编号无法补发!");
return;
}
if (orderId.Contains("获取到多条订单号"))
{
BaseMsgForm.ShowError("订单编号不符合补发条件!");
return;
}
orderId = orderId.Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault();
if (string.IsNullOrEmpty(orderId))
{
BaseMsgForm.ShowError("缺少订单编号无法补发!");
return;
}
pnlUpdateRemark.Tag = row.Cells[$"colDgv{dgvNum}Remark"];
lblShopName.Text = shop.ShopAccount;
lblShopId.Text = shop.ShopId;
lblOrderId.Text = orderId;
pnlUpdateRemark.Parent = dgvData.Parent;
pnlUpdateRemark.BringToFront();
pnlUpdateRemark.Visible = true;
}
break;
case "":
row.Cells[$"colDgv{dgvNum}check"].Value = !(bool)row.Cells[$"colDgv{dgvNum}check"].Value;
break;
@@ -1742,6 +2030,45 @@ namespace TemuKJD.WXForms.ShopForms
return true;
return false;
}
private void btnRemarkCancel_Click(object sender, EventArgs e)
{
txtRemark.Text = "";
lblOrderId.Text = "";
lblShopId.Text = "";
lblShopName.Text = "";
pnlUpdateRemark.Visible = false;
}
private void btnRemarkOK_Click(object sender, EventArgs e)
{
var cell = this.pnlUpdateRemark.Tag as DataGridViewCell;
if (cell == null)
return;
var url = BaseClass.BuildObjString("shop/add_mdy_express_optimize_remark");
var data = "";
data = UserLogin.GetSignaturex();
data += "&shop_id=" + lblShopId.Text;
data += "&order_id=" + lblOrderId.Text;
data += "&remark=" + txtRemark.Text.Trim();
var html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
{
BaseMsgForm.ShowError("修改备注失败,请重试!");
return;
}
cell.Value = txtRemark.Text.Trim().IsNullOrEmpty() ? "添加备注" : txtRemark.Text.Trim();
txtRemark.Text = "";
lblOrderId.Text = "";
lblShopId.Text = "";
lblShopName.Text = "";
pnlUpdateRemark.Visible = false;
}
}
public static class ShopOptimize
@@ -204,6 +204,9 @@
<metadata name="colDgv1Optimize.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colDgv1Remark.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colDgv2Check.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -264,6 +267,9 @@
<metadata name="colDgv2Optimize.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colDgv2Remark.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colDgv3Check.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -327,6 +333,9 @@
<metadata name="colDgv3Optimize.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colDgv3Remark.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colDgv4Check.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -390,4 +399,7 @@
<metadata name="colDgv4Optimize.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colDgv4Remark.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>