temu推单相关功能
This commit is contained in:
1 parent
165df61234
commit
b05de6797e
27 files changed
+4561
-315
No files matched your search
@@ -226,6 +226,7 @@
|
||||
<Compile Include="Model\Result\TemuDBProductSelect.cs" />
|
||||
<Compile Include="Model\Result\TemuGoodsQualityInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuListProductInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuDBOrderInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuPriceAdjustInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuDetailProductInfo.cs" />
|
||||
<Compile Include="Model\Param\TemuProductManage\TemuProductParam.cs" />
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace AllBase
|
||||
/// <summary>
|
||||
/// 版本ID
|
||||
/// </summary>
|
||||
public static int VersionCount = 706;
|
||||
public static int VersionCount = 709;
|
||||
//public static int VersionCount = 613;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -0,0 +1,215 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AllBase.Model.Result
|
||||
{
|
||||
public class TemuDBOrderInfo
|
||||
{
|
||||
public int? id { get; set; }
|
||||
public string supplierId { get; set; } // '店铺Id',
|
||||
public string supplierName { get; set; }
|
||||
public string originalPurchaseOrderSn { get; set; } // '备货单号',
|
||||
public string subPurchaseOrderSn { get; set; } // '备货母单号',
|
||||
public string productName { get; set; }
|
||||
public string category { get; set; }
|
||||
public string productId { get; set; } // '商品编号',
|
||||
public string upProductId { get; set; } // 上家商品编号
|
||||
public string productSkcId { get; set; } //
|
||||
public string productSkcPicture { get; set; } //'主图',
|
||||
public string productSn { get; set; } // '货号',
|
||||
public int status { get; set; } = 1; // '状态 1待发货 2已送货 7已入库 8已作废',
|
||||
public string productSkuId { get; set; } // CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||||
/// <summary>
|
||||
/// 订单sku货号
|
||||
/// </summary>
|
||||
public string extCode { get; set; } // 'sku货号',
|
||||
public string className { get; set; } // 'sku规格',
|
||||
public string currencyType { get; set; } // 价格单位
|
||||
public int supplierPrice { get; set; } // '申报价格',
|
||||
public int? costPrice { get; set; } // '成本价',
|
||||
public int? deliveryFee { get; set; } // '车队费',
|
||||
public int? markFee { get; set; } // '贴标费',
|
||||
public int purchaseQuantity { get; set; } // '备货件数',
|
||||
public int deliverQuantity { get; set; } // '送货件数',
|
||||
public int realReceiveAuthenticQuantity { get; set; } // '入库件数',
|
||||
public decimal? availableSaleDays { get; set; } // '可售天数',
|
||||
public int? qcResult { get; set; } // '抽检结果 1合格 2不合格',
|
||||
public string thumbUrlList { get; set; } // 'sku图片',
|
||||
public long purchaseTime { get; set; } // '备货单创建时间',
|
||||
public long? deliverTime { get; set; } // '发货时间',
|
||||
public long? receiveTime { get; set; } // '收货时间',
|
||||
public long expectLatestDeliverTimeOrDefault { get; set; } // '最迟发货时间',
|
||||
public long expectLatestArrivalTimeOrDefault { get; set; } // '最迟到货时间',
|
||||
public string deliveryOrderSn { get; set; } // '发货单号',
|
||||
public string receiveWarehouseId { get; set; } // '实际收货仓库Id',
|
||||
public string receiveWarehouseName { get; set; } // '实际收货仓库',
|
||||
public string warehouseGroupId { get; set; } // '仓组Id',
|
||||
public string jiaTongCode { get; set; } // '佳同码',
|
||||
public string barCodeMd5 { get; set; } // '商品条码MD5',
|
||||
public string shippingMarkMd5 { get; set; } // '箱唛文件MD5',
|
||||
public string notes { get; set; } // '备注',
|
||||
public int upLoadStatus { get; set; } = 0; // '是否上传订单(上传后扣除用户授权金额,产生扣费记录)',
|
||||
public DateTime? add_time { get; set; } //
|
||||
public DateTime? mdy_time { get; set; } //
|
||||
}
|
||||
|
||||
public class subOrderForSupplier
|
||||
{
|
||||
public long? supplierId { get; set; } // 634418225872187,
|
||||
public string supplierName { get; set; } // "CZhaoH",
|
||||
public string originalPurchaseOrderSn { get; set; } // "WP2512015632492",
|
||||
public string subPurchaseOrderSn { get; set; } // "WB2512013405446",
|
||||
public string productName { get; set; } // "Factory supplied slippers, Multi colored optional slippers, Travel slippers, Leisure slippers, Warm Home Shoes, New Year's home slippers, indoor slippers, hotel slippers, Portable travel slippers, Winter team building slippers, Men's outdoor slippers, Father's Day Comfortable Slippers, Wear resistant slippers, Waterproof slippers, Open mouth breathable thick soled sandals, Indoor and outdoor, Apartment household slippers, beach slippers, Washable slippers, summer slippers",
|
||||
public string category { get; set; } // "女士居家鞋、室内拖鞋",
|
||||
public int? categoryType { get; set; } // 0,
|
||||
public long? productId { get; set; } // 7907989544,
|
||||
public long? productSkcId { get; set; } // 13093977686,
|
||||
public string productSkcPicture { get; set; } // "https://img.kwcdn.com/product/20add7005a/f0aad84d-54d6-466c-afeb-bc73dda970bd_800x800.jpeg",
|
||||
public string productSn { get; set; } // "benpao-256",
|
||||
public int? status { get; set; } // 1,
|
||||
public object fulfilmentFormId { get; set; } // null,
|
||||
public object fulfilmentFormStatus { get; set; } // null,
|
||||
public List<skuQuantityDetail> skuQuantityDetailList { get; set; }
|
||||
public object skuQuantityDetailForCustomList { get; set; }
|
||||
public skuQuantityDetail skuQuantityTotalInfo { get; set; }
|
||||
public expectLatestTime expectLatestDeliverTime { get; set; }
|
||||
public expectLatestTime expectLatestArrivalTime { get; set; }
|
||||
public deliverInfo deliverInfo { get; set; }
|
||||
public long? defectiveTime { get; set; } // null,
|
||||
public long? purchaseTime { get; set; } // 1764544907763,
|
||||
public bool? isCanJoinDeliverPlatform { get; set; } // true,
|
||||
public object joinDeliverPlatformReason { get; set; } // null,
|
||||
public int? settlementType { get; set; } // 1,
|
||||
public bool? existConfirmAdjustOrder { get; set; } // false,
|
||||
public bool? hasProductImage { get; set; } // true,
|
||||
public int? urgencyType { get; set; } // 1,
|
||||
public bool? isCustomProduct { get; set; } // false,
|
||||
public int? purchaseStockType { get; set; } // 1,
|
||||
public bool? isCloseJit { get; set; } // false,
|
||||
public bool? isFirst { get; set; } // true,
|
||||
public int? source { get; set; } // 9999,
|
||||
public bool? displayWaterLevelChart { get; set; } // false,
|
||||
public bool? canAdjustPurchaseNum { get; set; } // false,
|
||||
public bool? supportIncreaseNum { get; set; } // false,
|
||||
public int? hasQcBill { get; set; } // 0,
|
||||
public string deliveryOrderSn { get; set; } // null,
|
||||
public List<object> priceAdjustLogVOList { get; set; } // [],
|
||||
public int? inventoryRegion { get; set; } // 1,
|
||||
public object deleteType { get; set; } // null,
|
||||
public List<skuLackItem> skuLackItemList { get; set; }
|
||||
public int? qcReject { get; set; } // 0,
|
||||
public object skuQcRejectItemList { get; set; } // null,
|
||||
public int? skuLackSnapshot { get; set; } // 1,
|
||||
public int? supplyStatus { get; set; } // 0,
|
||||
public int? applyChangeSupplyStatus { get; set; } // 0,
|
||||
public int? applyDeleteStatus { get; set; } // 0,
|
||||
public List<lackOrSoldOutTag> lackOrSoldOutTagList { get; set; }
|
||||
public bool? todayCanDeliver { get; set; } // true,
|
||||
public bool? inFulfilmentPunish { get; set; } // true,
|
||||
public bool? hotTag { get; set; } // false,
|
||||
public int? progressStatus { get; set; } // 0,
|
||||
public object canDeliverTime { get; set; } // null,
|
||||
public string remark { get; set; } // "",
|
||||
public object supplementType { get; set; } // null,
|
||||
public bool? qcNotPassCreate { get; set; } // false,
|
||||
public object qcOriginalSubPurchaseOrderSn { get; set; } // null,
|
||||
public object qcOriginalSubPurchaseOrderLatestDeliveryTime { get; set; } // null,
|
||||
public object qcOriginalSubPurchaseOrderLatestArrivalTime { get; set; } // null,
|
||||
public object qcNotPassCreateSubPurchaseOrderSnList { get; set; } // null,
|
||||
public object autoAcceptCountDownMs { get; set; } // null,
|
||||
public object activityType { get; set; } // null,
|
||||
public long? subWarehouseId { get; set; } // 0,
|
||||
public object subWarehouseName { get; set; } // null,
|
||||
public long? warehouseGroupId { get; set; } // 828046,
|
||||
public int? appealStatus { get; set; } // 0,
|
||||
public object expectLatestArrivalIntervalDays { get; set; } // null,
|
||||
public List<object> customTagList { get; set; } // [],
|
||||
public bool? isAdProduct { get; set; } // false,
|
||||
public object canCombine { get; set; } // null,
|
||||
public int? combineStatus { get; set; } // 0,
|
||||
public bool? canApplyToDelete { get; set; } // true
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class lackOrSoldOutTag
|
||||
{
|
||||
public string skuDisplay { get; set; } // "绿色44-45",
|
||||
public bool? isLack { get; set; } // true,
|
||||
public object soldOut { get; set; } // null
|
||||
}
|
||||
|
||||
public class skuLackItem
|
||||
{
|
||||
public string skuDisplay { get; set; } // "绿色44-45"
|
||||
}
|
||||
public class deliverInfo
|
||||
{
|
||||
public long? deliverTime { get; set; } // null,
|
||||
public long? receiveTime { get; set; } // null,
|
||||
public long? expectLatestDeliverTimeOrDefault { get; set; } // 1764631288942,
|
||||
public long? expectLatestArrivalTimeOrDefault { get; set; } // 1764804088425,
|
||||
public long? expectLatestPickTime { get; set; } // null,
|
||||
public string deliveryOrderSn { get; set; } // null,
|
||||
public long? receiveWarehouseId { get; set; } // null,
|
||||
public string receiveWarehouseName { get; set; } // null
|
||||
|
||||
}
|
||||
public class expectLatestTime
|
||||
{
|
||||
public long? time { get; set; } // 1764631288942,
|
||||
public int? timeStatus { get; set; } // 1,
|
||||
public object remainingTimeInHour { get; set; } // null
|
||||
}
|
||||
public class skuQuantityDetail
|
||||
{
|
||||
public long? productSkuId { get; set; } // 50427451228,
|
||||
public object goodsSkuId { get; set; } // null,
|
||||
public string extCode { get; set; } // "",
|
||||
public string className { get; set; } // "绿色-44-45",
|
||||
public string currencyType { get; set; } // "CNY",
|
||||
public int? supplierPrice { get; set; } // 1000,
|
||||
public int? usd2cnySupplierPrice { get; set; } // null,
|
||||
public object exchangeRate { get; set; } // null,
|
||||
public object exchangeRateDenominator { get; set; } // null,
|
||||
public int? purchaseQuantity { get; set; } // 1,
|
||||
public int? adviceQuantity { get; set; } // 1,
|
||||
public int? purchaseUpLimit { get; set; } // 1,
|
||||
public object purchaseDownLimit { get; set; } // null,
|
||||
public int? deliverQuantity { get; set; } // 0,
|
||||
public int? waitReceiveNum { get; set; } // 0,
|
||||
public int? waitQcNum { get; set; } // 0,
|
||||
public int? waitOnShelfNum { get; set; } // 0,
|
||||
public int? waitInStock { get; set; } // 0,
|
||||
public int? realReceiveAuthenticQuantity { get; set; } // 0,
|
||||
public int? defectiveQuantity { get; set; } // 0,
|
||||
public decimal? availableSaleDays { get; set; } // null,
|
||||
public object availableSaleDaysFromInventory { get; set; } // null,
|
||||
public object isAdjusted { get; set; } // null,
|
||||
public int? onShelfWaitingQcQuantity { get; set; } // 0,
|
||||
public int? onShelfQcQuantity { get; set; } // 0,
|
||||
public int? qcWaitingWithdrawQuantity { get; set; } // 0,
|
||||
public int? qcWithdrawQuantity { get; set; } // 0,
|
||||
public long? fulfilmentProductSkuId { get; set; } // 50427451228,
|
||||
public object personalText { get; set; } // null,
|
||||
public object orderSn { get; set; } // null,
|
||||
public int? qcResult { get; set; } // null,
|
||||
public object inboundReturn { get; set; } // null,
|
||||
public object skuLackNum { get; set; } // null,
|
||||
public object accumulateDeliverNum { get; set; } // null,
|
||||
public object accumulateInboundNum { get; set; } // null,
|
||||
public List<string> thumbUrlList { get; set; } // [ "https://img.kwcdn.com/product/20add7005a/cb936aca-2b6a-4507-ab1f-129ee9afd2cc_800x800.jpeg" ],
|
||||
public object inStockAvlbDays { get; set; } // null,
|
||||
public int? customizationType { get; set; } // 0,
|
||||
public string purchaseConfig { get; set; } // "0 + 0",
|
||||
public int? purchaseConfigDays { get; set; } // 0,
|
||||
public int? initialQuantity { get; set; } // 1,
|
||||
public object availableStock { get; set; } // null,
|
||||
public object purchaseLabel { get; set; } // null,
|
||||
public bool? supportIncreaseNum { get; set; } // false,
|
||||
public object processTypeVO { get; set; } // null
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,259 @@
|
||||
using KJD_Web.Model;
|
||||
using KJD_Web.Utils;
|
||||
using NaiBa.Util.Extension;
|
||||
using NaiBa.Util.Helper;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace KJD_Web.BLL
|
||||
{
|
||||
public class OrderManage
|
||||
{
|
||||
public string AddOrder(string inputData)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
var time = 0;
|
||||
int.TryParse(RegexUtils.GetStringQuery(ref inputData, "time"), out time);
|
||||
string time1 = RegexUtils.GetStringQuery(ref inputData, "code");
|
||||
if (time1 != EncrypUtil.Encryption(time))
|
||||
return "{\"code\":50000,\"msg\":\"校验失败\"}";
|
||||
|
||||
string user_name = RegexUtils.GetStringQuery(ref inputData, "user_name");
|
||||
if (string.IsNullOrEmpty(user_name))
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"没有用户名\"}";
|
||||
}
|
||||
var shop_id = RegexUtils.GetStringQuery(ref inputData, "shop_id")?.Replace("'", "\\'");
|
||||
if (string.IsNullOrEmpty(shop_id))
|
||||
return "{\"code\":500,\"msg\":\"请输入店铺\"}";
|
||||
|
||||
string order_data = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "order_data"))?.Replace("'", "\\'");
|
||||
if (string.IsNullOrEmpty(order_data))
|
||||
return "{\"code\":500,\"msg\":\"请输入订单\"}";
|
||||
JObject jObj = null;
|
||||
try
|
||||
{
|
||||
jObj = JObject.Parse(order_data);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"数据格式错误\"}";
|
||||
}
|
||||
|
||||
long table_id = shop_id.ParseToLong() % 128;
|
||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
MysqlUtils mySql = new MysqlUtils(conn);
|
||||
string sql = "";
|
||||
|
||||
sql = "insert into kjd_order.order_" + table_id + " (";
|
||||
foreach (var item in jObj)
|
||||
{
|
||||
if (item.Key.ParseToString() != "id" && JsonConvert.SerializeObject(item.Value) != "null" &&
|
||||
item.Key.ParseToString() != "add_time" && item.Key.ParseToString() != "mdy_time")
|
||||
sql += item.Key + ",";
|
||||
}
|
||||
sql = sql.Trim(',');
|
||||
sql += ")";
|
||||
sql += "values (";
|
||||
foreach (var item in jObj)
|
||||
{
|
||||
if (item.Key.ParseToString() != "id" && JsonConvert.SerializeObject(item.Value) != "null" &&
|
||||
item.Key.ParseToString() != "add_time" && item.Key.ParseToString() != "mdy_time")
|
||||
sql += "'" + item.Value.ParseToString().Replace("\\'", "'").Replace("'", "\\'") + "',";
|
||||
}
|
||||
sql = sql.Trim(',');
|
||||
sql += ");";
|
||||
var rst = mySql.ExecuteInsertId(sql);
|
||||
mySql.Close();
|
||||
if (rst > 0)
|
||||
{
|
||||
return "{\"code\":200,\"msg\":\"success\"}";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"" + mySql.Message + "\"}";
|
||||
}
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
|
||||
public string GetOrderList(string inputData, bool isDetail = false)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
var time = RegexUtils.GetStringQuery(ref inputData, "time").ParseToInt();
|
||||
string time1 = RegexUtils.GetStringQuery(ref inputData, "code");
|
||||
if (time1 != EncrypUtil.Encryption(time))
|
||||
return "{\"code\":50000,\"msg\":\"校验失败\"}";
|
||||
|
||||
var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name")?.Replace("'", "\\'");
|
||||
var password = RegexUtils.GetStringQuery(ref inputData, "password")?.Replace("'", "\\'");
|
||||
|
||||
var shop_id = RegexUtils.GetStringQuery(ref inputData, "shop_id")?.Replace("'", "\\'");
|
||||
if (string.IsNullOrEmpty(shop_id))
|
||||
return "{\"code\":500,\"msg\":\"请输入查询店铺\",\"data\":[],\"count\":" + 0 + "}";
|
||||
//var start_time = RegexUtils.GetStringQuery(ref inputData, "start_time")?.Replace("'", "\\'");
|
||||
var start_time = TimeUtils.DateTimeToTimestampMilliseconds(DateTime.Now.Date.AddDays(-45));
|
||||
|
||||
int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
|
||||
int page_size = RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(50);
|
||||
|
||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
MysqlUtils mySql = new MysqlUtils(conn);
|
||||
|
||||
long table_id = shop_id.ParseToLong() % 128;
|
||||
string sql = "select count(id) from kjd_order.order_" + table_id + " o where 1=1";
|
||||
|
||||
string where = "";
|
||||
if (start_time > 0)
|
||||
where += " and o.purchaseTime > " + start_time;
|
||||
if (!string.IsNullOrWhiteSpace(shop_id))
|
||||
where += " and o.supplierId = '" + shop_id + "'";
|
||||
sql += where;
|
||||
|
||||
var count = mySql.ExecuteRowCount(sql);
|
||||
|
||||
DataTable dt;
|
||||
if (count == 0)
|
||||
{
|
||||
dt = new DataTable();
|
||||
}
|
||||
else
|
||||
{
|
||||
sql = "SELECT * from kjd_order.order_" + table_id + " o where 1=1"; // p.is_del=0
|
||||
|
||||
//where子句
|
||||
sql += where;
|
||||
sql += " ORDER BY o.purchaseTime";
|
||||
//sql += " ORDER BY o.select_total_count desc, p.id desc";
|
||||
sql += " LIMIT " + Math.Max(page - 1, 0) * page_size + "," + page_size;
|
||||
dt = mySql.ExecuteDataTable(sql);
|
||||
}
|
||||
|
||||
mySql.Close();
|
||||
if (dt != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
List<TemuDBOrderInfo> orderLst = new List<TemuDBOrderInfo>();
|
||||
foreach (DataRow row in dt.Rows)
|
||||
{
|
||||
TemuDBOrderInfo prod = new TemuDBOrderInfo
|
||||
{
|
||||
id = Convert.ToInt32(row["id"]),
|
||||
add_time = Convert.ToDateTime(row["add_time"]),
|
||||
mdy_time = Convert.ToDateTime(row["mdy_time"]),
|
||||
notes = row["notes"].ToString(),
|
||||
availableSaleDays = row["availableSaleDays"].ParseToNullableDecimal(),
|
||||
barCodeMd5 = row["barCodeMd5"].ParseToString(),
|
||||
category = row["category"].ParseToString(),
|
||||
className = row["className"].ParseToString(),
|
||||
costPrice = row["costPrice"].ParseToNullableInt(),
|
||||
currencyType = row["currencyType"].ParseToString(),
|
||||
deliverQuantity = row["deliverQuantity"].ParseToInt(),
|
||||
deliverTime = row["deliverTime"].ParseToNullableLong(),
|
||||
deliveryFee = row["deliveryFee"].ParseToNullableInt(),
|
||||
deliveryOrderSn = row["deliveryOrderSn"].ParseToString(),
|
||||
expectLatestArrivalTimeOrDefault = row["expectLatestArrivalTimeOrDefault"].ParseToLong(),
|
||||
expectLatestDeliverTimeOrDefault = row["expectLatestDeliverTimeOrDefault"].ParseToLong(),
|
||||
extCode = row["extCode"].ParseToString(),
|
||||
jiaTongCode = row["jiaTongCode"].ParseToString(),
|
||||
markFee = row["markFee"].ParseToNullableInt(),
|
||||
originalPurchaseOrderSn = row["originalPurchaseOrderSn"].ParseToString(),
|
||||
productId = row["productId"].ParseToString(),
|
||||
productName = row["productName"].ParseToString(),
|
||||
productSkcPicture = row["productSkcPicture"].ParseToString(),
|
||||
productSkcId = row["productSkcId"].ParseToString(),
|
||||
productSkuId = row["productSkuId"].ParseToString(),
|
||||
productSn = row["productSn"].ParseToString(),
|
||||
purchaseQuantity = row["purchaseQuantity"].ParseToInt(),
|
||||
purchaseTime = row["purchaseTime"].ParseToLong(),
|
||||
qcResult = row["qcResult"].ParseToNullableInt(),
|
||||
realReceiveAuthenticQuantity = row["realReceiveAuthenticQuantity"].ParseToInt(),
|
||||
receiveTime = row["receiveTime"].ParseToNullableLong(),
|
||||
receiveWarehouseId = row["receiveWarehouseId"].ParseToString(),
|
||||
receiveWarehouseName = row["receiveWarehouseName"].ParseToString(),
|
||||
shippingMarkMd5 = row["shippingMarkMd5"].ParseToString(),
|
||||
status = row["status"].ParseToInt(),
|
||||
subPurchaseOrderSn = row["subPurchaseOrderSn"].ParseToString(),
|
||||
supplierId = row["supplierId"].ParseToString(),
|
||||
supplierName = row["supplierName"].ParseToString(),
|
||||
supplierPrice = row["supplierPrice"].ParseToInt(),
|
||||
thumbUrlList = row["thumbUrlList"].ParseToString(),
|
||||
upLoadStatus = row["upLoadStatus"].ParseToInt(),
|
||||
upProductId = row["upProductId"].ParseToString(),
|
||||
warehouseGroupId = row["warehouseGroupId"].ParseToString(),
|
||||
};
|
||||
orderLst.Add(prod);
|
||||
}
|
||||
var data = JsonUtils.SerializerObjectToString(orderLst);
|
||||
return "{\"code\":200,\"msg\":\"success\",\"data\":" + data + ",\"count\":" + count + "}";
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"" + ex.Message + "\",\"data\":[],\"count\":" + 0 + "}";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"" + mySql.Message + "\",\"data\":[],\"count\":" + 0 + "}";
|
||||
}
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
|
||||
public string UpdateOrderStatus1(string inputData, bool isDetail = false)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
var time = RegexUtils.GetStringQuery(ref inputData, "time").ParseToInt();
|
||||
string time1 = RegexUtils.GetStringQuery(ref inputData, "code");
|
||||
if (time1 != EncrypUtil.Encryption(time))
|
||||
return "{\"code\":50000,\"msg\":\"校验失败\"}";
|
||||
|
||||
var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name")?.Replace("'", "\\'");
|
||||
var password = RegexUtils.GetStringQuery(ref inputData, "password")?.Replace("'", "\\'");
|
||||
|
||||
var shop_id = RegexUtils.GetStringQuery(ref inputData, "shop_id")?.Replace("'", "\\'");
|
||||
if (string.IsNullOrEmpty(shop_id))
|
||||
return "{\"code\":500,\"msg\":\"请输入查询店铺\"}";
|
||||
var product_id = RegexUtils.GetStringQuery(ref inputData, "product_id")?.Replace("'", "\\'");
|
||||
if (string.IsNullOrEmpty(product_id))
|
||||
return "{\"code\":500,\"msg\":\"请输入商品编号\"}";
|
||||
|
||||
int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
|
||||
int page_size = RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(50);
|
||||
|
||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
MysqlUtils mySql = new MysqlUtils(conn);
|
||||
|
||||
long table_id = shop_id.ParseToLong() % 128;
|
||||
string sql = "update kjd_order.order_" + table_id + " o set o.upLoadStatus=1";
|
||||
|
||||
string where = "";
|
||||
where += " and o.supplierId = '" + shop_id + "'";
|
||||
where += " and o.productId = '" + product_id + "'";
|
||||
where += " and o.upLoadStatus < 1";
|
||||
sql += where;
|
||||
|
||||
var rst = mySql.ExecuteNonQuery(sql);
|
||||
|
||||
if (rst)
|
||||
{
|
||||
return "{\"code\":200,\"msg\":\"success\"}";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"" + mySql.Message + "\"}";
|
||||
}
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,49 +9,140 @@ namespace KJD_Web.BLL
|
||||
public class ToolManage
|
||||
{
|
||||
//mysql workbench 存储过程,可以使用分隔符重定义
|
||||
// string 存储过程1 = @"
|
||||
//DELIMITER $
|
||||
//DROP PROCEDURE IF EXISTS add_spu_map;
|
||||
//CREATE PROCEDURE add_spu_map()
|
||||
//BEGIN
|
||||
//insert into kjd_map.spu_map_0 (draft_id,from_spu_id,shop_id) values(9122600878,727585921,'3049342434562');
|
||||
//update kjd.third_product_select set draft_id='9122600878', status='已上传', add_times=add_times+1, mdy_time='2025-08-06 11:54:50' where id=6532;
|
||||
//END $
|
||||
//DELIMITER ;
|
||||
//CALL add_spu_map();";
|
||||
// string 存储过程1 = @"
|
||||
//DELIMITER $
|
||||
//DROP PROCEDURE IF EXISTS add_spu_map;
|
||||
//CREATE PROCEDURE add_spu_map()
|
||||
//BEGIN
|
||||
//insert into kjd_map.spu_map_0 (draft_id,from_spu_id,shop_id) values(9122600878,727585921,'3049342434562');
|
||||
//update kjd.third_product_select set draft_id='9122600878', status='已上传', add_times=add_times+1, mdy_time='2025-08-06 11:54:50' where id=6532;
|
||||
//END $
|
||||
//DELIMITER ;
|
||||
//CALL add_spu_map();";
|
||||
|
||||
//腾讯云服务器存储过程,不能使用分隔符重定义
|
||||
// string 存储过程2 = @"
|
||||
//DROP PROCEDURE IF EXISTS add_spu_map;
|
||||
//CREATE PROCEDURE add_spu_map()
|
||||
//BEGIN
|
||||
//insert into kjd_map.spu_map_1 (draft_id,from_spu_id,shop_id) values(9122600878,727585921,'3049342434562');
|
||||
//update kjd.third_product_select set draft_id='9122600878', status='已上传', add_times=add_times+1, mdy_time='2025-08-06 11:54:50' where id=6532;
|
||||
//END ;
|
||||
//CALL add_spu_map();";
|
||||
// string 存储过程2 = @"
|
||||
//DROP PROCEDURE IF EXISTS add_spu_map;
|
||||
//CREATE PROCEDURE add_spu_map()
|
||||
//BEGIN
|
||||
//insert into kjd_map.spu_map_1 (draft_id,from_spu_id,shop_id) values(9122600878,727585921,'3049342434562');
|
||||
//update kjd.third_product_select set draft_id='9122600878', status='已上传', add_times=add_times+1, mdy_time='2025-08-06 11:54:50' where id=6532;
|
||||
//END ;
|
||||
//CALL add_spu_map();";
|
||||
|
||||
public void CreateTable()
|
||||
{
|
||||
// string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
// MysqlUtils mySql = new MysqlUtils(conn);
|
||||
// string sql = "";
|
||||
// string sql1 = "";
|
||||
// for (int i = 0; i < 64; i++)
|
||||
// {
|
||||
// //sql = @"drop table if exists kjd_map.spu_map_" + i + ";\r\n";
|
||||
// sql = @"CREATE TABLE IF NOT EXISTS kjd_map.jit_product_select_map_" + i + @" (
|
||||
// `id` int NOT NULL AUTO_INCREMENT,
|
||||
// `product_id` bigint NOT NULL COMMENT '草稿箱/商品Id',
|
||||
// `product_select_db_id` bigint NOT NULL COMMENT '选品上传数据库Id',
|
||||
// `shop_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '上传的店铺',
|
||||
// PRIMARY KEY (`id`)
|
||||
//) ENGINE = InnoDB AUTO_INCREMENT = 1 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '上传商品kjd库Id与商品DraftId映射关系';";
|
||||
|
||||
// sql += @"
|
||||
//ALTER TABLE
|
||||
// kjd_map.jit_product_select_map_" + i + @"
|
||||
//ADD
|
||||
// COLUMN `add_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP";
|
||||
// var rst = mySql.ExecuteNonQuery(sql);
|
||||
// }
|
||||
// mySql.Close();
|
||||
|
||||
|
||||
|
||||
// string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
// MysqlUtils mySql = new MysqlUtils(conn);
|
||||
// string sql = "";
|
||||
// for (int i = 0; i < 128; i++)
|
||||
// {
|
||||
// //sql = @"drop table if exists kjd_map.spu_map_" + i + ";\r\n";
|
||||
// sql = @"CREATE TABLE IF NOT EXISTS kjd_order.order_code_" + i + @" (
|
||||
// `id` int unsigned NOT NULL AUTO_INCREMENT,
|
||||
// `supplierId` varchar(25) COLLATE utf8mb4_general_ci NOT NULL,
|
||||
// `subPurchaseOrderSn` varchar(25) COLLATE utf8mb4_general_ci DEFAULT NULL,
|
||||
// `jiaTongCode` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL,
|
||||
// `barCodeMd5` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL,
|
||||
// `barCodeBase64` longtext COLLATE utf8mb4_general_ci,
|
||||
// `shippingMarkMd5` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL,
|
||||
// `shippingMarkBase64` longtext COLLATE utf8mb4_general_ci,
|
||||
// `add_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
// `mdy_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
// PRIMARY KEY (`id`),
|
||||
// UNIQUE KEY `index_subPurchaseOrderSn` (`subPurchaseOrderSn`) USING BTREE
|
||||
//) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci";
|
||||
// sql = "ALTER TABLE\r\n kjd_order.order_code_" + i + "\r\nMODIFY\r\n COLUMN `jiaTongCode` varchar (50) NULL COMMENT '佳同码'\r\nAFTER\r\n `subPurchaseOrderSn`";
|
||||
// var rst = mySql.ExecuteNonQuery(sql);
|
||||
// }
|
||||
// mySql.Close();
|
||||
|
||||
|
||||
|
||||
// string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
// MysqlUtils mySql = new MysqlUtils(conn);
|
||||
// string sql = "";
|
||||
// string sql1 = "";
|
||||
// for (int i = 0; i < 64; i++)
|
||||
// for (int i = 0; i < 128; i++)
|
||||
// {
|
||||
// //sql = @"drop table if exists kjd_map.spu_map_" + i + ";\r\n";
|
||||
// sql = @"CREATE TABLE IF NOT EXISTS kjd_map.jit_product_select_map_" + i + @" (
|
||||
// sql = @"CREATE TABLE IF NOT EXISTS kjd_order.order_" + i + @" (
|
||||
// `id` int NOT NULL AUTO_INCREMENT,
|
||||
// `product_id` bigint NOT NULL COMMENT '草稿箱/商品Id',
|
||||
// `product_select_db_id` bigint NOT NULL COMMENT '选品上传数据库Id',
|
||||
// `shop_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '上传的店铺',
|
||||
// PRIMARY KEY (`id`)
|
||||
//) ENGINE = InnoDB AUTO_INCREMENT = 1 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '上传商品kjd库Id与商品DraftId映射关系';";
|
||||
// `supplierId` varchar(25) COLLATE utf8mb4_general_ci NOT NULL COMMENT '店铺Id',
|
||||
// `originalPurchaseOrderSn` varchar(25) COLLATE utf8mb4_general_ci NOT NULL COMMENT '备货单号',
|
||||
// `subPurchaseOrderSn` varchar(25) COLLATE utf8mb4_general_ci NOT NULL COMMENT '备货母单号',
|
||||
// `productName` varchar(1000) COLLATE utf8mb4_general_ci NOT NULL,
|
||||
// `category` varchar(50) COLLATE utf8mb4_general_ci NOT NULL,
|
||||
// `productId` varchar(25) COLLATE utf8mb4_general_ci NOT NULL COMMENT '商品编号',
|
||||
// `productSkcId` varchar(25) COLLATE utf8mb4_general_ci NOT NULL,
|
||||
// `productSkcPicture` varchar(250) COLLATE utf8mb4_general_ci NOT NULL COMMENT '主图',
|
||||
// `productSn` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '货号',
|
||||
// `status` int NOT NULL COMMENT '状态 1待发货 2已送货 7已入库 8已作废',
|
||||
// `productSkuId` varchar(25) COLLATE utf8mb4_general_ci NOT NULL,
|
||||
// `className` varchar(100) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'sku规格',
|
||||
// `currencyType` varchar(10) COLLATE utf8mb4_general_ci NOT NULL,
|
||||
// `supplierPrice` int NOT NULL COMMENT '申报价格',
|
||||
// `purchaseQuantity` int NOT NULL COMMENT '备货件数',
|
||||
// `deliverQuantity` int NOT NULL COMMENT '送货件数',
|
||||
// `realReceiveAuthenticQuantity` int NOT NULL COMMENT '入库件数',
|
||||
// `availableSaleDays` decimal(10, 0) NOT NULL COMMENT '可售天数',
|
||||
// `qcResult` int DEFAULT NULL COMMENT '抽检结果 1合格 2不合格',
|
||||
// `thumbUrlList` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'sku图片',
|
||||
// `purchaseTime` bigint NOT NULL COMMENT '备货单创建时间',
|
||||
// `deliverTime` bigint DEFAULT NULL COMMENT '发货时间',
|
||||
// `receiveTime` bigint DEFAULT NULL COMMENT '收货时间',
|
||||
// `expectLatestDeliverTimeOrDefault` bigint NOT NULL COMMENT '最迟发货时间',
|
||||
// `expectLatestArrivalTimeOrDefault` bigint NOT NULL COMMENT '最迟到货时间',
|
||||
// `deliveryOrderSn` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '发货单号',
|
||||
// `receiveWarehouseId` varchar(25) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '实际收货仓库Id',
|
||||
// `receiveWarehouseName` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '实际收货仓库',
|
||||
// `warehouseGroupId` varchar(25) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '仓组Id',
|
||||
// `jiaTongCode` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '佳同码',
|
||||
// `barCodeMd5` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '商品条码MD5',
|
||||
// `shippingMarkMd5` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '箱唛文件MD5',
|
||||
// `notes` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
|
||||
// `add_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
// `mdy_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
// PRIMARY KEY (`id`),
|
||||
// UNIQUE KEY `index_subPurchaseOrderSn` (`subPurchaseOrderSn`) USING BTREE
|
||||
//) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单推送表'";
|
||||
|
||||
// sql += @"
|
||||
//ALTER TABLE
|
||||
// kjd_map.jit_product_select_map_" + i + @"
|
||||
//ADD
|
||||
// COLUMN `add_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP";
|
||||
// sql = "ALTER TABLE\r\n kjd_order.order_" + i + "\r\nADD\r\n COLUMN `upLoadStatus` int NOT NULL DEFAULT 0 COMMENT '是否上传订单(上传后扣除用户授权金额,产生扣费记录)',\r\nMODIFY\r\n COLUMN `add_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP\r\nAFTER\r\n `upLoadStatus`,\r\nMODIFY\r\n COLUMN `mdy_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\r\nAFTER\r\n `add_time`";
|
||||
// sql = "ALTER TABLE\r\n kjd_order.order_" + i + "\r\nADD\r\n COLUMN `extCode` varchar (50) NOT NULL COMMENT 'sku货号',\r\nMODIFY\r\n COLUMN `className` varchar (100) NOT NULL COMMENT 'sku规格'\r\nAFTER\r\n `extCode`,\r\nMODIFY\r\n COLUMN `currencyType` varchar (10) NOT NULL\r\nAFTER\r\n `className`,\r\nMODIFY\r\n COLUMN `supplierPrice` int NOT NULL COMMENT '申报价格'\r\nAFTER\r\n `currencyType`,\r\nMODIFY\r\n COLUMN `purchaseQuantity` int NOT NULL COMMENT '备货件数'\r\nAFTER\r\n `supplierPrice`,\r\nMODIFY\r\n COLUMN `deliverQuantity` int NOT NULL COMMENT '送货件数'\r\nAFTER\r\n `purchaseQuantity`,\r\nMODIFY\r\n COLUMN `realReceiveAuthenticQuantity` int NOT NULL COMMENT '入库件数'\r\nAFTER\r\n `deliverQuantity`,\r\nMODIFY\r\n COLUMN `availableSaleDays` decimal (10, 0) NOT NULL COMMENT '可售天数'\r\nAFTER\r\n `realReceiveAuthenticQuantity`,\r\nMODIFY\r\n COLUMN `qcResult` int NULL COMMENT '抽检结果 1合格 2不合格'\r\nAFTER\r\n `availableSaleDays`,\r\nMODIFY\r\n COLUMN `thumbUrlList` varchar (500) NULL COMMENT 'sku图片'\r\nAFTER\r\n `qcResult`,\r\nMODIFY\r\n COLUMN `purchaseTime` bigint NOT NULL COMMENT '备货单创建时间'\r\nAFTER\r\n `thumbUrlList`,\r\nMODIFY\r\n COLUMN `deliverTime` bigint NULL COMMENT '发货时间'\r\nAFTER\r\n `purchaseTime`,\r\nMODIFY\r\n COLUMN `receiveTime` bigint NULL COMMENT '收货时间'\r\nAFTER\r\n `deliverTime`,\r\nMODIFY\r\n COLUMN `expectLatestDeliverTimeOrDefault` bigint NOT NULL COMMENT '最迟发货时间'\r\nAFTER\r\n `receiveTime`,\r\nMODIFY\r\n COLUMN `expectLatestArrivalTimeOrDefault` bigint NOT NULL COMMENT '最迟到货时间'\r\nAFTER\r\n `expectLatestDeliverTimeOrDefault`,\r\nMODIFY\r\n COLUMN `deliveryOrderSn` varchar (50) NULL COMMENT '发货单号'\r\nAFTER\r\n `expectLatestArrivalTimeOrDefault`,\r\nMODIFY\r\n COLUMN `receiveWarehouseId` varchar (25) NULL COMMENT '实际收货仓库Id'\r\nAFTER\r\n `deliveryOrderSn`,\r\nMODIFY\r\n COLUMN `receiveWarehouseName` varchar (50) NULL COMMENT '实际收货仓库'\r\nAFTER\r\n `receiveWarehouseId`,\r\nMODIFY\r\n COLUMN `warehouseGroupId` varchar (25) NULL COMMENT '仓组Id'\r\nAFTER\r\n `receiveWarehouseName`,\r\nMODIFY\r\n COLUMN `jiaTongCode` varchar (50) NULL COMMENT '佳同码'\r\nAFTER\r\n `warehouseGroupId`,\r\nMODIFY\r\n COLUMN `barCodeMd5` varchar (32) NULL COMMENT '商品条码MD5'\r\nAFTER\r\n `jiaTongCode`,\r\nMODIFY\r\n COLUMN `shippingMarkMd5` varchar (32) NULL COMMENT '箱唛文件MD5'\r\nAFTER\r\n `barCodeMd5`,\r\nMODIFY\r\n COLUMN `notes` varchar (50) NULL COMMENT '备注'\r\nAFTER\r\n `shippingMarkMd5`,\r\nMODIFY\r\n COLUMN `add_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP\r\nAFTER\r\n `notes`,\r\nMODIFY\r\n COLUMN `mdy_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\r\nAFTER\r\n `add_time`";
|
||||
// sql = "ALTER TABLE\r\n kjd_order.order_" + i + "\r\nMODIFY\r\n COLUMN `extCode` varchar (50) NOT NULL COMMENT 'sku货号'\r\nAFTER\r\n `productSkuId`,\r\nMODIFY\r\n COLUMN `className` varchar (100) NOT NULL COMMENT 'sku规格'\r\nAFTER\r\n `extCode`,\r\nMODIFY\r\n COLUMN `currencyType` varchar (10) NOT NULL\r\nAFTER\r\n `className`,\r\nMODIFY\r\n COLUMN `supplierPrice` int NOT NULL COMMENT '申报价格'\r\nAFTER\r\n `currencyType`,\r\nMODIFY\r\n COLUMN `purchaseQuantity` int NOT NULL COMMENT '备货件数'\r\nAFTER\r\n `supplierPrice`,\r\nMODIFY\r\n COLUMN `deliverQuantity` int NOT NULL COMMENT '送货件数'\r\nAFTER\r\n `purchaseQuantity`,\r\nMODIFY\r\n COLUMN `realReceiveAuthenticQuantity` int NOT NULL COMMENT '入库件数'\r\nAFTER\r\n `deliverQuantity`,\r\nMODIFY\r\n COLUMN `availableSaleDays` decimal (10, 0) NOT NULL COMMENT '可售天数'\r\nAFTER\r\n `realReceiveAuthenticQuantity`,\r\nMODIFY\r\n COLUMN `qcResult` int NULL COMMENT '抽检结果 1合格 2不合格'\r\nAFTER\r\n `availableSaleDays`,\r\nMODIFY\r\n COLUMN `thumbUrlList` varchar (500) NULL COMMENT 'sku图片'\r\nAFTER\r\n `qcResult`,\r\nMODIFY\r\n COLUMN `purchaseTime` bigint NOT NULL COMMENT '备货单创建时间'\r\nAFTER\r\n `thumbUrlList`,\r\nMODIFY\r\n COLUMN `deliverTime` bigint NULL COMMENT '发货时间'\r\nAFTER\r\n `purchaseTime`,\r\nMODIFY\r\n COLUMN `receiveTime` bigint NULL COMMENT '收货时间'\r\nAFTER\r\n `deliverTime`,\r\nMODIFY\r\n COLUMN `expectLatestDeliverTimeOrDefault` bigint NOT NULL COMMENT '最迟发货时间'\r\nAFTER\r\n `receiveTime`,\r\nMODIFY\r\n COLUMN `expectLatestArrivalTimeOrDefault` bigint NOT NULL COMMENT '最迟到货时间'\r\nAFTER\r\n `expectLatestDeliverTimeOrDefault`,\r\nMODIFY\r\n COLUMN `deliveryOrderSn` varchar (50) NULL COMMENT '发货单号'\r\nAFTER\r\n `expectLatestArrivalTimeOrDefault`,\r\nMODIFY\r\n COLUMN `receiveWarehouseId` varchar (25) NULL COMMENT '实际收货仓库Id'\r\nAFTER\r\n `deliveryOrderSn`,\r\nMODIFY\r\n COLUMN `receiveWarehouseName` varchar (50) NULL COMMENT '实际收货仓库'\r\nAFTER\r\n `receiveWarehouseId`,\r\nMODIFY\r\n COLUMN `warehouseGroupId` varchar (25) NULL COMMENT '仓组Id'\r\nAFTER\r\n `receiveWarehouseName`,\r\nMODIFY\r\n COLUMN `jiaTongCode` varchar (50) NULL COMMENT '佳同码'\r\nAFTER\r\n `warehouseGroupId`,\r\nMODIFY\r\n COLUMN `barCodeMd5` varchar (32) NULL COMMENT '商品条码MD5'\r\nAFTER\r\n `jiaTongCode`,\r\nMODIFY\r\n COLUMN `shippingMarkMd5` varchar (32) NULL COMMENT '箱唛文件MD5'\r\nAFTER\r\n `barCodeMd5`,\r\nMODIFY\r\n COLUMN `notes` varchar (50) NULL COMMENT '备注'\r\nAFTER\r\n `shippingMarkMd5`,\r\nMODIFY\r\n COLUMN `upLoadStatus` int NOT NULL DEFAULT '0' COMMENT '是否上传订单(上传后扣除用户授权金额,产生扣费记录)'\r\nAFTER\r\n `notes`";
|
||||
// sql = "ALTER TABLE\r\n kjd_order.order_" + i + "\r\nADD\r\n COLUMN `costPrice` int NULL COMMENT '成本价',\r\nADD\r\n COLUMN `deliveryFee` int NULL COMMENT '车队费',\r\nADD\r\n COLUMN `markFee` int NULL COMMENT '贴标费',\r\nMODIFY\r\n COLUMN `purchaseQuantity` int NOT NULL COMMENT '备货件数'\r\nAFTER\r\n `markFee`,\r\nMODIFY\r\n COLUMN `deliverQuantity` int NOT NULL COMMENT '送货件数'\r\nAFTER\r\n `purchaseQuantity`,\r\nMODIFY\r\n COLUMN `realReceiveAuthenticQuantity` int NOT NULL COMMENT '入库件数'\r\nAFTER\r\n `deliverQuantity`,\r\nMODIFY\r\n COLUMN `availableSaleDays` decimal (10, 0) NOT NULL COMMENT '可售天数'\r\nAFTER\r\n `realReceiveAuthenticQuantity`,\r\nMODIFY\r\n COLUMN `qcResult` int NULL COMMENT '抽检结果 1合格 2不合格'\r\nAFTER\r\n `availableSaleDays`,\r\nMODIFY\r\n COLUMN `thumbUrlList` varchar (500) NULL COMMENT 'sku图片'\r\nAFTER\r\n `qcResult`,\r\nMODIFY\r\n COLUMN `purchaseTime` bigint NOT NULL COMMENT '备货单创建时间'\r\nAFTER\r\n `thumbUrlList`,\r\nMODIFY\r\n COLUMN `deliverTime` bigint NULL COMMENT '发货时间'\r\nAFTER\r\n `purchaseTime`,\r\nMODIFY\r\n COLUMN `receiveTime` bigint NULL COMMENT '收货时间'\r\nAFTER\r\n `deliverTime`,\r\nMODIFY\r\n COLUMN `expectLatestDeliverTimeOrDefault` bigint NOT NULL COMMENT '最迟发货时间'\r\nAFTER\r\n `receiveTime`,\r\nMODIFY\r\n COLUMN `expectLatestArrivalTimeOrDefault` bigint NOT NULL COMMENT '最迟到货时间'\r\nAFTER\r\n `expectLatestDeliverTimeOrDefault`,\r\nMODIFY\r\n COLUMN `deliveryOrderSn` varchar (50) NULL COMMENT '发货单号'\r\nAFTER\r\n `expectLatestArrivalTimeOrDefault`,\r\nMODIFY\r\n COLUMN `receiveWarehouseId` varchar (25) NULL COMMENT '实际收货仓库Id'\r\nAFTER\r\n `deliveryOrderSn`,\r\nMODIFY\r\n COLUMN `receiveWarehouseName` varchar (50) NULL COMMENT '实际收货仓库'\r\nAFTER\r\n `receiveWarehouseId`,\r\nMODIFY\r\n COLUMN `warehouseGroupId` varchar (25) NULL COMMENT '仓组Id'\r\nAFTER\r\n `receiveWarehouseName`,\r\nMODIFY\r\n COLUMN `jiaTongCode` varchar (50) NULL COMMENT '佳同码'\r\nAFTER\r\n `warehouseGroupId`,\r\nMODIFY\r\n COLUMN `barCodeMd5` varchar (32) NULL COMMENT '商品条码MD5'\r\nAFTER\r\n `jiaTongCode`,\r\nMODIFY\r\n COLUMN `shippingMarkMd5` varchar (32) NULL COMMENT '箱唛文件MD5'\r\nAFTER\r\n `barCodeMd5`,\r\nMODIFY\r\n COLUMN `notes` varchar (50) NULL COMMENT '备注'\r\nAFTER\r\n `shippingMarkMd5`,\r\nMODIFY\r\n COLUMN `upLoadStatus` int NOT NULL DEFAULT '0' COMMENT '是否上传订单(上传后扣除用户授权金额,产生扣费记录)'\r\nAFTER\r\n `notes`,\r\nMODIFY\r\n COLUMN `add_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP\r\nAFTER\r\n `upLoadStatus`,\r\nMODIFY\r\n COLUMN `mdy_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\r\nAFTER\r\n `add_time`";
|
||||
// sql = "ALTER TABLE\r\n kjd_order.order_" + i + "\r\nMODIFY\r\n COLUMN `originalPurchaseOrderSn` varchar (25) NOT NULL COMMENT '备母货单号'\r\nAFTER\r\n `supplierId`,\r\nMODIFY\r\n COLUMN `subPurchaseOrderSn` varchar (25) NOT NULL COMMENT '备货单号'\r\nAFTER\r\n `originalPurchaseOrderSn`";
|
||||
// sql = "ALTER TABLE\r\n kjd_order.order_" + i + "\r\nMODIFY\r\n COLUMN `availableSaleDays` decimal (10, 0) NULL COMMENT '可售天数'\r\nAFTER\r\n `realReceiveAuthenticQuantity`";
|
||||
// sql = "ALTER TABLE\r\n kjd_order.order_" + i + "\r\nADD\r\n COLUMN `upProductId` varchar (25) NOT NULL COMMENT '上家编号',\r\nMODIFY\r\n COLUMN `productSkcId` varchar (25) NOT NULL\r\nAFTER\r\n `upProductId`,\r\nMODIFY\r\n COLUMN `productSkcPicture` varchar (250) NOT NULL COMMENT '主图'\r\nAFTER\r\n `productSkcId`,\r\nMODIFY\r\n COLUMN `productSn` varchar (50) NULL COMMENT '货号'\r\nAFTER\r\n `productSkcPicture`,\r\nMODIFY\r\n COLUMN `status` int NOT NULL COMMENT '状态 1待发货 2已送货 7已入库 8已作废'\r\nAFTER\r\n `productSn`,\r\nMODIFY\r\n COLUMN `productSkuId` varchar (25) NOT NULL\r\nAFTER\r\n `status`,\r\nMODIFY\r\n COLUMN `extCode` varchar (50) NOT NULL COMMENT 'sku货号'\r\nAFTER\r\n `productSkuId`,\r\nMODIFY\r\n COLUMN `className` varchar (100) NOT NULL COMMENT 'sku规格'\r\nAFTER\r\n `extCode`,\r\nMODIFY\r\n COLUMN `currencyType` varchar (10) NOT NULL\r\nAFTER\r\n `className`,\r\nMODIFY\r\n COLUMN `supplierPrice` int NOT NULL COMMENT '申报价格'\r\nAFTER\r\n `currencyType`,\r\nMODIFY\r\n COLUMN `costPrice` int NULL COMMENT '成本价'\r\nAFTER\r\n `supplierPrice`,\r\nMODIFY\r\n COLUMN `deliveryFee` int NULL COMMENT '车队费'\r\nAFTER\r\n `costPrice`,\r\nMODIFY\r\n COLUMN `markFee` int NULL COMMENT '贴标费'\r\nAFTER\r\n `deliveryFee`,\r\nMODIFY\r\n COLUMN `purchaseQuantity` int NOT NULL COMMENT '备货件数'\r\nAFTER\r\n `markFee`,\r\nMODIFY\r\n COLUMN `deliverQuantity` int NOT NULL COMMENT '送货件数'\r\nAFTER\r\n `purchaseQuantity`,\r\nMODIFY\r\n COLUMN `realReceiveAuthenticQuantity` int NOT NULL COMMENT '入库件数'\r\nAFTER\r\n `deliverQuantity`,\r\nMODIFY\r\n COLUMN `availableSaleDays` decimal (10, 0) NULL COMMENT '可售天数'\r\nAFTER\r\n `realReceiveAuthenticQuantity`,\r\nMODIFY\r\n COLUMN `qcResult` int NULL COMMENT '抽检结果 1合格 2不合格'\r\nAFTER\r\n `availableSaleDays`,\r\nMODIFY\r\n COLUMN `thumbUrlList` varchar (500) NULL COMMENT 'sku图片'\r\nAFTER\r\n `qcResult`,\r\nMODIFY\r\n COLUMN `purchaseTime` bigint NOT NULL COMMENT '备货单创建时间'\r\nAFTER\r\n `thumbUrlList`,\r\nMODIFY\r\n COLUMN `deliverTime` bigint NULL COMMENT '发货时间'\r\nAFTER\r\n `purchaseTime`,\r\nMODIFY\r\n COLUMN `receiveTime` bigint NULL COMMENT '收货时间'\r\nAFTER\r\n `deliverTime`,\r\nMODIFY\r\n COLUMN `expectLatestDeliverTimeOrDefault` bigint NOT NULL COMMENT '最迟发货时间'\r\nAFTER\r\n `receiveTime`,\r\nMODIFY\r\n COLUMN `expectLatestArrivalTimeOrDefault` bigint NOT NULL COMMENT '最迟到货时间'\r\nAFTER\r\n `expectLatestDeliverTimeOrDefault`,\r\nMODIFY\r\n COLUMN `deliveryOrderSn` varchar (50) NULL COMMENT '发货单号'\r\nAFTER\r\n `expectLatestArrivalTimeOrDefault`,\r\nMODIFY\r\n COLUMN `receiveWarehouseId` varchar (25) NULL COMMENT '实际收货仓库Id'\r\nAFTER\r\n `deliveryOrderSn`,\r\nMODIFY\r\n COLUMN `receiveWarehouseName` varchar (50) NULL COMMENT '实际收货仓库'\r\nAFTER\r\n `receiveWarehouseId`,\r\nMODIFY\r\n COLUMN `warehouseGroupId` varchar (25) NULL COMMENT '仓组Id'\r\nAFTER\r\n `receiveWarehouseName`,\r\nMODIFY\r\n COLUMN `jiaTongCode` varchar (50) NULL COMMENT '佳同码'\r\nAFTER\r\n `warehouseGroupId`,\r\nMODIFY\r\n COLUMN `barCodeMd5` varchar (32) NULL COMMENT '商品条码MD5'\r\nAFTER\r\n `jiaTongCode`,\r\nMODIFY\r\n COLUMN `shippingMarkMd5` varchar (32) NULL COMMENT '箱唛文件MD5'\r\nAFTER\r\n `barCodeMd5`,\r\nMODIFY\r\n COLUMN `notes` varchar (50) NULL COMMENT '备注'\r\nAFTER\r\n `shippingMarkMd5`,\r\nMODIFY\r\n COLUMN `upLoadStatus` int NOT NULL DEFAULT '0' COMMENT '是否上传订单(上传后扣除用户授权金额,产生扣费记录)'\r\nAFTER\r\n `notes`,\r\nMODIFY\r\n COLUMN `add_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP\r\nAFTER\r\n `upLoadStatus`,\r\nMODIFY\r\n COLUMN `mdy_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\r\nAFTER\r\n `add_time`";
|
||||
// sql = "ALTER TABLE\r\n kjd_order.order_" + i + "\r\nMODIFY\r\n COLUMN `upProductId` varchar (25) NULL COMMENT '上家编号'\r\nAFTER\r\n `productId`";
|
||||
// sql = "ALTER TABLE\r\n kjd_order.order_" + i + "\r\nADD\r\n COLUMN `supplierName` varchar (50) NOT NULL COMMENT '店铺名称',\r\nMODIFY\r\n COLUMN `originalPurchaseOrderSn` varchar (25) NOT NULL COMMENT '备母货单号'\r\nAFTER\r\n `supplierName`,\r\nMODIFY\r\n COLUMN `subPurchaseOrderSn` varchar (25) NOT NULL COMMENT '备货单号'\r\nAFTER\r\n `originalPurchaseOrderSn`,\r\nMODIFY\r\n COLUMN `productName` varchar (1000) NOT NULL\r\nAFTER\r\n `subPurchaseOrderSn`,\r\nMODIFY\r\n COLUMN `category` varchar (50) NOT NULL\r\nAFTER\r\n `productName`,\r\nMODIFY\r\n COLUMN `productId` varchar (25) NOT NULL COMMENT '商品编号'\r\nAFTER\r\n `category`,\r\nMODIFY\r\n COLUMN `upProductId` varchar (25) NULL COMMENT '上家编号'\r\nAFTER\r\n `productId`,\r\nMODIFY\r\n COLUMN `productSkcId` varchar (25) NOT NULL\r\nAFTER\r\n `upProductId`,\r\nMODIFY\r\n COLUMN `productSkcPicture` varchar (250) NOT NULL COMMENT '主图'\r\nAFTER\r\n `productSkcId`,\r\nMODIFY\r\n COLUMN `productSn` varchar (50) NULL COMMENT '货号'\r\nAFTER\r\n `productSkcPicture`,\r\nMODIFY\r\n COLUMN `status` int NOT NULL COMMENT '状态 1待发货 2已送货 7已入库 8已作废'\r\nAFTER\r\n `productSn`,\r\nMODIFY\r\n COLUMN `productSkuId` varchar (25) NOT NULL\r\nAFTER\r\n `status`,\r\nMODIFY\r\n COLUMN `extCode` varchar (50) NOT NULL COMMENT 'sku货号'\r\nAFTER\r\n `productSkuId`,\r\nMODIFY\r\n COLUMN `className` varchar (100) NOT NULL COMMENT 'sku规格'\r\nAFTER\r\n `extCode`,\r\nMODIFY\r\n COLUMN `currencyType` varchar (10) NOT NULL\r\nAFTER\r\n `className`,\r\nMODIFY\r\n COLUMN `supplierPrice` int NOT NULL COMMENT '申报价格'\r\nAFTER\r\n `currencyType`,\r\nMODIFY\r\n COLUMN `costPrice` int NULL COMMENT '成本价'\r\nAFTER\r\n `supplierPrice`,\r\nMODIFY\r\n COLUMN `deliveryFee` int NULL COMMENT '车队费'\r\nAFTER\r\n `costPrice`,\r\nMODIFY\r\n COLUMN `markFee` int NULL COMMENT '贴标费'\r\nAFTER\r\n `deliveryFee`,\r\nMODIFY\r\n COLUMN `purchaseQuantity` int NOT NULL COMMENT '备货件数'\r\nAFTER\r\n `markFee`,\r\nMODIFY\r\n COLUMN `deliverQuantity` int NOT NULL COMMENT '送货件数'\r\nAFTER\r\n `purchaseQuantity`,\r\nMODIFY\r\n COLUMN `realReceiveAuthenticQuantity` int NOT NULL COMMENT '入库件数'\r\nAFTER\r\n `deliverQuantity`,\r\nMODIFY\r\n COLUMN `availableSaleDays` decimal (10, 0) NULL COMMENT '可售天数'\r\nAFTER\r\n `realReceiveAuthenticQuantity`,\r\nMODIFY\r\n COLUMN `qcResult` int NULL COMMENT '抽检结果 1合格 2不合格'\r\nAFTER\r\n `availableSaleDays`,\r\nMODIFY\r\n COLUMN `thumbUrlList` varchar (500) NULL COMMENT 'sku图片'\r\nAFTER\r\n `qcResult`,\r\nMODIFY\r\n COLUMN `purchaseTime` bigint NOT NULL COMMENT '备货单创建时间'\r\nAFTER\r\n `thumbUrlList`,\r\nMODIFY\r\n COLUMN `deliverTime` bigint NULL COMMENT '发货时间'\r\nAFTER\r\n `purchaseTime`,\r\nMODIFY\r\n COLUMN `receiveTime` bigint NULL COMMENT '收货时间'\r\nAFTER\r\n `deliverTime`,\r\nMODIFY\r\n COLUMN `expectLatestDeliverTimeOrDefault` bigint NOT NULL COMMENT '最迟发货时间'\r\nAFTER\r\n `receiveTime`,\r\nMODIFY\r\n COLUMN `expectLatestArrivalTimeOrDefault` bigint NOT NULL COMMENT '最迟到货时间'\r\nAFTER\r\n `expectLatestDeliverTimeOrDefault`,\r\nMODIFY\r\n COLUMN `deliveryOrderSn` varchar (50) NULL COMMENT '发货单号'\r\nAFTER\r\n `expectLatestArrivalTimeOrDefault`,\r\nMODIFY\r\n COLUMN `receiveWarehouseId` varchar (25) NULL COMMENT '实际收货仓库Id'\r\nAFTER\r\n `deliveryOrderSn`,\r\nMODIFY\r\n COLUMN `receiveWarehouseName` varchar (50) NULL COMMENT '实际收货仓库'\r\nAFTER\r\n `receiveWarehouseId`,\r\nMODIFY\r\n COLUMN `warehouseGroupId` varchar (25) NULL COMMENT '仓组Id'\r\nAFTER\r\n `receiveWarehouseName`,\r\nMODIFY\r\n COLUMN `jiaTongCode` varchar (50) NULL COMMENT '佳同码'\r\nAFTER\r\n `warehouseGroupId`,\r\nMODIFY\r\n COLUMN `barCodeMd5` varchar (32) NULL COMMENT '商品条码MD5'\r\nAFTER\r\n `jiaTongCode`,\r\nMODIFY\r\n COLUMN `shippingMarkMd5` varchar (32) NULL COMMENT '箱唛文件MD5'\r\nAFTER\r\n `barCodeMd5`,\r\nMODIFY\r\n COLUMN `notes` varchar (50) NULL COMMENT '备注'\r\nAFTER\r\n `shippingMarkMd5`,\r\nMODIFY\r\n COLUMN `upLoadStatus` int NOT NULL DEFAULT '0' COMMENT '是否上传订单(上传后扣除用户授权金额,产生扣费记录)'\r\nAFTER\r\n `notes`,\r\nMODIFY\r\n COLUMN `add_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP\r\nAFTER\r\n `upLoadStatus`,\r\nMODIFY\r\n COLUMN `mdy_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\r\nAFTER\r\n `add_time`";
|
||||
|
||||
// sql = "ALTER TABLE\r\n kjd_order.order_" + i + " CHANGE COLUMN `shippingMarkMd5` `shippingMarkMd5` varchar (32) NULL COMMENT '箱唛文件MD5'";
|
||||
// var rst = mySql.ExecuteNonQuery(sql);
|
||||
// }
|
||||
// mySql.Close();
|
||||
|
||||
@@ -38,6 +38,11 @@ namespace KJD_Web
|
||||
hPath = hPath.Replace("/update/", "/UpdateService.asmx/");
|
||||
Context.RewritePath(hPath);
|
||||
}
|
||||
else if (!hPath.Contains(".asmx") && hPath.Contains("/order/"))
|
||||
{
|
||||
hPath = hPath.Replace("/order/", "/OrderService.asmx/");
|
||||
Context.RewritePath(hPath);
|
||||
}
|
||||
else if (!hPath.Contains(".asmx") && hPath.Contains("/product/"))
|
||||
{
|
||||
hPath = hPath.Replace("/product/", "/ProductService.asmx/");
|
||||
|
||||
@@ -79,6 +79,7 @@
|
||||
<Content Include="PriceService.asmx" />
|
||||
<Content Include="BXXProductService.asmx" />
|
||||
<Content Include="BXXProductThirdService.asmx" />
|
||||
<Content Include="OrderService.asmx" />
|
||||
<Content Include="ProductThirdService.asmx" />
|
||||
<Content Include="ProductService.asmx" />
|
||||
<Content Include="BXXShopService.asmx" />
|
||||
@@ -95,6 +96,7 @@
|
||||
<Compile Include="BLL\BXX\BXXProductThirdManage.cs" />
|
||||
<Compile Include="BLL\BXX\BXXShopManage.cs" />
|
||||
<Compile Include="BLL\BXX\BXXUserManage.cs" />
|
||||
<Compile Include="BLL\KJD\OrderManage.cs" />
|
||||
<Compile Include="BLL\KJD\PriceManage.cs" />
|
||||
<Compile Include="BLL\KJD\ProductThirdManage.cs" />
|
||||
<Compile Include="BLL\KJD\ProductManage.cs" />
|
||||
@@ -116,6 +118,7 @@
|
||||
<Compile Include="Model\ShopModel\ShopParam.cs" />
|
||||
<Compile Include="Model\ShopModel\sku_img_replace.cs" />
|
||||
<Compile Include="Model\SkuImgResult.cs" />
|
||||
<Compile Include="Model\TemuDBOrderInfo.cs" />
|
||||
<Compile Include="Model\UserLoginResultParam.cs" />
|
||||
<Compile Include="BXXPriceService.asmx.cs">
|
||||
<DependentUpon>BXXPriceService.asmx</DependentUpon>
|
||||
@@ -133,6 +136,10 @@
|
||||
<DependentUpon>BXXProductThirdService.asmx</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="OrderService.asmx.cs">
|
||||
<DependentUpon>OrderService.asmx</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ProductThirdService.asmx.cs">
|
||||
<DependentUpon>ProductThirdService.asmx</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace KJD_Web.Model
|
||||
{
|
||||
public class TemuDBOrderInfo
|
||||
{
|
||||
public int? id { get; set; }
|
||||
public string supplierId { get; set; } // '店铺Id',
|
||||
public string supplierName { get; set; }
|
||||
public string originalPurchaseOrderSn { get; set; } // '备货单号',
|
||||
public string subPurchaseOrderSn { get; set; } // '备货母单号',
|
||||
public string productName { get; set; }
|
||||
public string category { get; set; }
|
||||
public string productId { get; set; } // '商品编号',
|
||||
public string upProductId { get; set; } // 上家商品编号
|
||||
public string productSkcId { get; set; } //
|
||||
public string productSkcPicture { get; set; } //'主图',
|
||||
public string productSn { get; set; } // '货号',
|
||||
public int status { get; set; } = 1; // '状态 1待发货 2已送货 7已入库 8已作废',
|
||||
public string productSkuId { get; set; } // CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||||
/// <summary>
|
||||
/// 订单sku货号
|
||||
/// </summary>
|
||||
public string extCode { get; set; } // 'sku货号',
|
||||
public string className { get; set; } // 'sku规格',
|
||||
public string currencyType { get; set; } // 价格单位
|
||||
public int supplierPrice { get; set; } // '申报价格',
|
||||
public int? costPrice { get; set; } // '成本价',
|
||||
public int? deliveryFee { get; set; } // '车队费',
|
||||
public int? markFee { get; set; } // '贴标费',
|
||||
public int purchaseQuantity { get; set; } // '备货件数',
|
||||
public int deliverQuantity { get; set; } // '送货件数',
|
||||
public int realReceiveAuthenticQuantity { get; set; } // '入库件数',
|
||||
public decimal? availableSaleDays { get; set; } // '可售天数',
|
||||
public int? qcResult { get; set; } // '抽检结果 1合格 2不合格',
|
||||
public string thumbUrlList { get; set; } // 'sku图片',
|
||||
public long purchaseTime { get; set; } // '备货单创建时间',
|
||||
public long? deliverTime { get; set; } // '发货时间',
|
||||
public long? receiveTime { get; set; } // '收货时间',
|
||||
public long expectLatestDeliverTimeOrDefault { get; set; } // '最迟发货时间',
|
||||
public long expectLatestArrivalTimeOrDefault { get; set; } // '最迟到货时间',
|
||||
public string deliveryOrderSn { get; set; } // '发货单号',
|
||||
public string receiveWarehouseId { get; set; } // '实际收货仓库Id',
|
||||
public string receiveWarehouseName { get; set; } // '实际收货仓库',
|
||||
public string warehouseGroupId { get; set; } // '仓组Id',
|
||||
public string jiaTongCode { get; set; } // '佳同码',
|
||||
public string barCodeMd5 { get; set; } // '商品条码MD5',
|
||||
public string shippingMarkMd5 { get; set; } // '箱唛文件MD5',
|
||||
public string notes { get; set; } // '备注',
|
||||
public int upLoadStatus { get; set; } = 0; // '是否上传订单(上传后扣除用户授权金额,产生扣费记录)',
|
||||
public DateTime add_time { get; set; } //
|
||||
public DateTime mdy_time { get; set; } //
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<%@ WebService Language="C#" CodeBehind="OrderService.asmx.cs" Class="KJD_Web.OrderService" %>
|
||||
@@ -0,0 +1,90 @@
|
||||
using KJD_Web.BLL;
|
||||
using KJD_Web.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Services;
|
||||
|
||||
namespace KJD_Web
|
||||
{
|
||||
/// <summary>
|
||||
/// OrderService 的摘要说明
|
||||
/// </summary>
|
||||
[WebService(Namespace = "http://tempuri.org/")]
|
||||
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
||||
[System.ComponentModel.ToolboxItem(false)]
|
||||
// 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。
|
||||
// [System.Web.Script.Services.ScriptService]
|
||||
public class OrderService : System.Web.Services.WebService
|
||||
{
|
||||
private string GetRequestJsonString()
|
||||
{
|
||||
Context.Response.ContentType = "text/html;charset=utf-8";
|
||||
Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8");
|
||||
|
||||
using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流
|
||||
{
|
||||
// 还原数据流
|
||||
byte[] b = new byte[s.Length];
|
||||
s.Read(b, 0, (int)s.Length);
|
||||
string jsonText = Encoding.UTF8.GetString(b); // JSON字符串
|
||||
if (string.IsNullOrEmpty(jsonText))
|
||||
{
|
||||
var qs = HttpContext.Current.Request.QueryString;
|
||||
if (qs != null && qs.Keys.Count > 0)
|
||||
{
|
||||
jsonText = "{";
|
||||
foreach (var key in qs.Keys)
|
||||
{
|
||||
jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";";
|
||||
}
|
||||
jsonText = jsonText.TrimEnd(';') + "}";
|
||||
}
|
||||
}
|
||||
return jsonText;
|
||||
}
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public void add_order()
|
||||
{
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = new OrderManage().AddOrder(jsontext);
|
||||
|
||||
Context.Response.Write(result);
|
||||
Context.Response.End();
|
||||
}
|
||||
|
||||
|
||||
|
||||
[WebMethod]
|
||||
public void get_order_list()
|
||||
{
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = new OrderManage().GetOrderList(jsontext);
|
||||
|
||||
Context.Response.Write(result);
|
||||
Context.Response.End();
|
||||
}
|
||||
|
||||
//UpdateOrderStatus1
|
||||
[WebMethod]
|
||||
public void update_order_status1()
|
||||
{
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = new OrderManage().UpdateOrderStatus1(jsontext);
|
||||
|
||||
Context.Response.Write(result);
|
||||
Context.Response.End();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -311,7 +311,7 @@ namespace KJD_Web
|
||||
//AddCateSizeWeightConfig
|
||||
|
||||
[WebMethod]
|
||||
public void add_cate_size_weight_config()
|
||||
public void add_cate_size_weight_config_v2()
|
||||
{
|
||||
string jsontext = GetRequestJsonString();
|
||||
var result = jsontext;
|
||||
@@ -322,7 +322,7 @@ namespace KJD_Web
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public void get_cate_size_weight_config()
|
||||
public void get_cate_size_weight_config_v2()
|
||||
{
|
||||
string jsontext = GetRequestJsonString();
|
||||
var result = jsontext;
|
||||
|
||||
@@ -39,6 +39,26 @@ namespace NaiBa.Util.Extension
|
||||
}
|
||||
}
|
||||
|
||||
public static long? ParseToNullableLong(this object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
|
||||
try
|
||||
{
|
||||
string str = obj.ParseToString();
|
||||
if (string.IsNullOrEmpty(str))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return long.Parse(str);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 将object转换为long,若转换失败,则返回指定值。不抛出异常。
|
||||
/// </summary>
|
||||
@@ -82,6 +102,21 @@ namespace NaiBa.Util.Extension
|
||||
}
|
||||
}
|
||||
|
||||
public static int? ParseToNullableInt(this object str)
|
||||
{
|
||||
if (str == null)
|
||||
return null;
|
||||
|
||||
try
|
||||
{
|
||||
return Convert.ToInt32(str);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static int DecimalPointParseToInt(this object str)
|
||||
{
|
||||
try
|
||||
@@ -194,6 +229,17 @@ namespace NaiBa.Util.Extension
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
public static decimal? ParseToNullableDecimal(this object str)
|
||||
{
|
||||
try
|
||||
{
|
||||
return decimal.Parse(str.ToString());
|
||||
}
|
||||
catch
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 转化为bool
|
||||
|
||||
@@ -20,6 +20,19 @@ namespace KJD_Web.Utils
|
||||
return dateTimeStart.Add(toNow);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 时间戳转为C#格式时间
|
||||
/// </summary>
|
||||
/// <param name="timeStamp"></param>
|
||||
/// <returns></returns>
|
||||
public static DateTime StampMillisecondsToDateTime(long timeStamp)
|
||||
{
|
||||
DateTime dateTimeStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1));
|
||||
long lTime = long.Parse(timeStamp + "0000");
|
||||
TimeSpan toNow = new TimeSpan(lTime);
|
||||
return dateTimeStart.Add(toNow);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// C#格式时间转换为Unix时间戳(秒)
|
||||
/// </summary>
|
||||
|
||||
+10
-1
@@ -37,7 +37,7 @@
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
@@ -160,6 +160,12 @@
|
||||
<Compile Include="KJDForms\JITForms\JITForm.Designer.cs">
|
||||
<DependentUpon>JITForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="KJDForms\JITForms\JitPushOrder.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="KJDForms\JITForms\JitPushOrder.Designer.cs">
|
||||
<DependentUpon>JitPushOrder.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="KJDForms\JITForms\JitShopActiveForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -913,6 +919,9 @@
|
||||
<EmbeddedResource Include="KJDForms\JITForms\JITForm.resx">
|
||||
<DependentUpon>JITForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="KJDForms\JITForms\JitPushOrder.resx">
|
||||
<DependentUpon>JitPushOrder.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="KJDForms\JITForms\JitShopActiveForm.resx">
|
||||
<DependentUpon>JitShopActiveForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
||||
+102
-75
@@ -30,20 +30,22 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
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();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
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 dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.btnSearchPrice3 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.numSleep = new System.Windows.Forms.NumericUpDown();
|
||||
this.lblSleep = new System.Windows.Forms.Label();
|
||||
this.btnRestoreFilterParams = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnStop = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnSaveFilterParams = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnRestoreSizeAndNumber = new DevComponents.DotNetBar.PanelEx();
|
||||
this.txtPrice2 = new System.Windows.Forms.TextBox();
|
||||
@@ -67,7 +69,6 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.btnMutliOk = new DevComponents.DotNetBar.PanelEx();
|
||||
this.dtpEndTime = new System.Windows.Forms.DateTimePicker();
|
||||
this.dtpStartTime = new System.Windows.Forms.DateTimePicker();
|
||||
this.btnStop = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnSearchPrice2 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnRestoreProdName = new DevComponents.DotNetBar.PanelEx();
|
||||
this.txtSkcId = new System.Windows.Forms.TextBox();
|
||||
@@ -221,9 +222,11 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx1.Controls.Add(this.btnSearchPrice3);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.numSleep);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.lblSleep);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.btnRestoreFilterParams);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.btnStop);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.btnSaveFilterParams);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.btnRestoreSizeAndNumber);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.txtPrice2);
|
||||
@@ -244,7 +247,6 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.ucGroupBoxEx1.Controls.Add(this.btnMutliOk);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.dtpEndTime);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.dtpStartTime);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.btnStop);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.btnSearchPrice2);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.btnRestoreProdName);
|
||||
this.ucGroupBoxEx1.Controls.Add(this.txtSkcId);
|
||||
@@ -273,6 +275,30 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.ucGroupBoxEx1.TabStop = false;
|
||||
this.ucGroupBoxEx1.Text = "参数设置";
|
||||
//
|
||||
// btnSearchPrice3
|
||||
//
|
||||
this.btnSearchPrice3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnSearchPrice3.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSearchPrice3.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnSearchPrice3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSearchPrice3.Location = new System.Drawing.Point(267, 110);
|
||||
this.btnSearchPrice3.Name = "btnSearchPrice3";
|
||||
this.btnSearchPrice3.Size = new System.Drawing.Size(71, 23);
|
||||
this.btnSearchPrice3.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnSearchPrice3.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnSearchPrice3.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnSearchPrice3.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnSearchPrice3.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnSearchPrice3.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnSearchPrice3.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnSearchPrice3.Style.GradientAngle = 90;
|
||||
this.btnSearchPrice3.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnSearchPrice3.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnSearchPrice3.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnSearchPrice3.TabIndex = 1164;
|
||||
this.btnSearchPrice3.Text = "读取已发布";
|
||||
this.btnSearchPrice3.Click += new System.EventHandler(this.btnSearchPrice3_Click);
|
||||
//
|
||||
// numSleep
|
||||
//
|
||||
this.numSleep.DecimalPlaces = 2;
|
||||
@@ -331,6 +357,30 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.btnRestoreFilterParams.Text = "还原选中配置";
|
||||
this.btnRestoreFilterParams.Click += new System.EventHandler(this.btnRestoreFilterParams_Click);
|
||||
//
|
||||
// btnStop
|
||||
//
|
||||
this.btnStop.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.btnStop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnStop.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnStop.Location = new System.Drawing.Point(280, 86);
|
||||
this.btnStop.Name = "btnStop";
|
||||
this.btnStop.Size = new System.Drawing.Size(44, 23);
|
||||
this.btnStop.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnStop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnStop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnStop.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.btnStop.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnStop.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.btnStop.Style.GradientAngle = 90;
|
||||
this.btnStop.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnStop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnStop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnStop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnStop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnStop.TabIndex = 797;
|
||||
this.btnStop.Text = "停止";
|
||||
this.btnStop.Click += new System.EventHandler(this.btnStop_Click);
|
||||
//
|
||||
// btnSaveFilterParams
|
||||
//
|
||||
this.btnSaveFilterParams.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
@@ -446,22 +496,22 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
this.dgvExtCode.AllowUserToAddRows = false;
|
||||
this.dgvExtCode.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
|
||||
this.dgvExtCode.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||
dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
|
||||
this.dgvExtCode.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle10;
|
||||
this.dgvExtCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.dgvExtCode.AutoRowNumber = false;
|
||||
this.dgvExtCode.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dgvExtCode.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvExtCode.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)));
|
||||
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.dgvExtCode.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
|
||||
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle11.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvExtCode.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11;
|
||||
this.dgvExtCode.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colSelectExtCode,
|
||||
this.colFilterExtCode,
|
||||
@@ -672,39 +722,15 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.dtpStartTime.Size = new System.Drawing.Size(183, 23);
|
||||
this.dtpStartTime.TabIndex = 825;
|
||||
//
|
||||
// btnStop
|
||||
//
|
||||
this.btnStop.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.btnStop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnStop.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnStop.Location = new System.Drawing.Point(453, 110);
|
||||
this.btnStop.Name = "btnStop";
|
||||
this.btnStop.Size = new System.Drawing.Size(56, 23);
|
||||
this.btnStop.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnStop.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnStop.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnStop.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.btnStop.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnStop.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.btnStop.Style.GradientAngle = 90;
|
||||
this.btnStop.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnStop.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnStop.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnStop.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnStop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnStop.TabIndex = 797;
|
||||
this.btnStop.Text = "停止读取";
|
||||
this.btnStop.Click += new System.EventHandler(this.btnStop_Click);
|
||||
//
|
||||
// btnSearchPrice2
|
||||
//
|
||||
this.btnSearchPrice2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnSearchPrice2.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSearchPrice2.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnSearchPrice2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSearchPrice2.Location = new System.Drawing.Point(357, 110);
|
||||
this.btnSearchPrice2.Location = new System.Drawing.Point(411, 110);
|
||||
this.btnSearchPrice2.Name = "btnSearchPrice2";
|
||||
this.btnSearchPrice2.Size = new System.Drawing.Size(94, 23);
|
||||
this.btnSearchPrice2.Size = new System.Drawing.Size(98, 23);
|
||||
this.btnSearchPrice2.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnSearchPrice2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnSearchPrice2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
@@ -781,9 +807,9 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.btnSearchPrice.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSearchPrice.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnSearchPrice.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSearchPrice.Location = new System.Drawing.Point(280, 110);
|
||||
this.btnSearchPrice.Location = new System.Drawing.Point(339, 110);
|
||||
this.btnSearchPrice.Name = "btnSearchPrice";
|
||||
this.btnSearchPrice.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnSearchPrice.Size = new System.Drawing.Size(71, 23);
|
||||
this.btnSearchPrice.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnSearchPrice.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnSearchPrice.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
@@ -1322,19 +1348,19 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
this.dgvShop.AllowUserToAddRows = false;
|
||||
this.dgvShop.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
|
||||
dataGridViewCellStyle12.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle12;
|
||||
this.dgvShop.AutoRowNumber = true;
|
||||
this.dgvShop.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvShop.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
|
||||
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle13.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle13.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle13.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle13.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle13;
|
||||
this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colSelect,
|
||||
@@ -1553,19 +1579,19 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
this.dgvPriceCheck.AllowUserToAddRows = false;
|
||||
this.dgvPriceCheck.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvPriceCheck.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
|
||||
dataGridViewCellStyle14.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvPriceCheck.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle14;
|
||||
this.dgvPriceCheck.AutoRowNumber = true;
|
||||
this.dgvPriceCheck.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvPriceCheck.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvPriceCheck.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
|
||||
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle15.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvPriceCheck.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle15;
|
||||
this.dgvPriceCheck.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvPriceCheck.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colCheck,
|
||||
@@ -1678,8 +1704,8 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// colProdName
|
||||
//
|
||||
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colProdName.DefaultCellStyle = dataGridViewCellStyle7;
|
||||
dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colProdName.DefaultCellStyle = dataGridViewCellStyle16;
|
||||
this.colProdName.HeaderText = "标题";
|
||||
this.colProdName.Name = "colProdName";
|
||||
this.colProdName.ReadOnly = true;
|
||||
@@ -1687,8 +1713,8 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// colSkuName
|
||||
//
|
||||
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colSkuName.DefaultCellStyle = dataGridViewCellStyle8;
|
||||
dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colSkuName.DefaultCellStyle = dataGridViewCellStyle17;
|
||||
this.colSkuName.HeaderText = "规格名称";
|
||||
this.colSkuName.Name = "colSkuName";
|
||||
this.colSkuName.ReadOnly = true;
|
||||
@@ -1738,8 +1764,8 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// colCreatTime
|
||||
//
|
||||
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colCreatTime.DefaultCellStyle = dataGridViewCellStyle9;
|
||||
dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colCreatTime.DefaultCellStyle = dataGridViewCellStyle18;
|
||||
this.colCreatTime.HeaderText = "创建时间";
|
||||
this.colCreatTime.Name = "colCreatTime";
|
||||
this.colCreatTime.ReadOnly = true;
|
||||
@@ -1998,5 +2024,6 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
private System.Windows.Forms.NumericUpDown numPieces;
|
||||
private System.Windows.Forms.Label label17;
|
||||
private System.Windows.Forms.Panel pnlRestoreSizeAndNumber;
|
||||
private DevComponents.DotNetBar.PanelEx btnSearchPrice3;
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ using TemuKJD.KJDForms.ShopForms;
|
||||
using Work;
|
||||
using TemuKJD.KJDForms.JITForms;
|
||||
using AllBase.Helper;
|
||||
using NaiBa.Util;
|
||||
|
||||
namespace TemuKJD.KJDForms.AdminForms
|
||||
{
|
||||
@@ -31,9 +32,9 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
PriceCheckConfig priceCheckConfig = null;
|
||||
List<PriceCheckFilterConfig> lstPriceCheckFilterConfig = new List<PriceCheckFilterConfig>();
|
||||
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
|
||||
public List<ShopLoginInfo> lstAdminShopInfo { get; set; } = new List<ShopLoginInfo>();
|
||||
public List<TemuForChainProductInfo> lstCheckPriceInfo = new List<TemuForChainProductInfo>();
|
||||
public List<CateSizeWeightConfig> lstCateSizeWeightConfig = new List<CateSizeWeightConfig>();
|
||||
public ConcurrentList<ShopLoginInfo> lstAdminShopInfo { get; set; } = new ConcurrentList<ShopLoginInfo>();
|
||||
public ConcurrentList<TemuForChainProductInfo> lstCheckPriceInfo = new ConcurrentList<TemuForChainProductInfo>();
|
||||
public ConcurrentList<CateSizeWeightConfig> lstCateSizeWeightConfig = new ConcurrentList<CateSizeWeightConfig>();
|
||||
|
||||
public AdminProductPriceCheckForm()
|
||||
{
|
||||
@@ -80,16 +81,18 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
pnlRestoreSizeAndNumber.Visible = false;
|
||||
btnRestoreSizeAndNumber.Text = "还原核价设置";
|
||||
|
||||
this.numJudgeLen.Value = 15;
|
||||
this.numJudgeWeight.Value = 150;
|
||||
this.numLen1.Value = 8;
|
||||
this.numLen2.Value = 8;
|
||||
this.numWidth1.Value = 7;
|
||||
this.numWidth2.Value = 7;
|
||||
this.numHeight1.Value = 6;
|
||||
this.numHeight2.Value = 6;
|
||||
this.numWeight1.Value = 6;
|
||||
this.numWeight2.Value = 6;
|
||||
this.numJudgeLen.Value = 26;
|
||||
this.numJudgeWeight.Value = 201;
|
||||
this.numLen1.Value = 25;
|
||||
this.numLen2.Value = 25;
|
||||
this.numWidth1.Value = 20;
|
||||
this.numWidth2.Value = 20;
|
||||
this.numHeight1.Value = 8;
|
||||
this.numHeight2.Value = 8;
|
||||
this.numWeight1.Value = 200;
|
||||
this.numWeight2.Value = 200;
|
||||
|
||||
btnSearchPrice3.Visible = false;
|
||||
}
|
||||
|
||||
if (IsClientJit)
|
||||
@@ -762,6 +765,20 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.dgvPriceCheck.Columns["colCancel"].Visible = false;
|
||||
this.dgvPriceCheck.Columns["colCancelWithTitleWrong"].Visible = true;
|
||||
SearchPrice("待创建首单");
|
||||
//SearchPrice("已发布到站点");
|
||||
}
|
||||
|
||||
private void btnSearchPrice3_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.pnlDetailOperate1.Visible = false;
|
||||
this.btnMutliOk.Visible = false;
|
||||
this.btnMutliCancel.Visible = false;
|
||||
this.pnlMutliCancelWithTitleWrong.Visible = false;
|
||||
this.pnlMutliCancelWithTitleWrong.Location = btnMutliOk.Location;
|
||||
this.dgvPriceCheck.Columns["colOk"].Visible = false;
|
||||
this.dgvPriceCheck.Columns["colCancel"].Visible = false;
|
||||
this.dgvPriceCheck.Columns["colCancelWithTitleWrong"].Visible = false;
|
||||
SearchPrice("已发布到站点");
|
||||
}
|
||||
|
||||
private void SearchPrice(string type = "待卖家确认")
|
||||
@@ -1055,6 +1072,8 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
body += "\"priceReviewStatusList\":[1],\"secondarySelectStatusList\":[7],";
|
||||
else if (type == "待创建首单")
|
||||
body += "\"secondarySelectStatusList\":[10],";
|
||||
else if (type == "已发布到站点")
|
||||
body += "\"secondarySelectStatusList\":[12],\"supplierTodoTypeList\":[],";
|
||||
body += "\"supplierTodoTypeList\":[],";
|
||||
if (!string.IsNullOrEmpty(prodSkcIds))
|
||||
body += "\"productSkcIdList\":[" + prodSkcIds + "],";
|
||||
@@ -1145,7 +1164,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
/// <param name="shop"></param>
|
||||
/// <param name="productId"></param>
|
||||
/// <returns></returns>
|
||||
private string editPriceProductSizeAndNumberBatchAdd(ShopLoginInfo shop, string productId)
|
||||
public static string editPriceProductSizeAndNumberBatchAdd(ShopLoginInfo shop, string productId)
|
||||
{
|
||||
string url = "https://agentseller.temu.com/lich-mms/audit/edit/task/product/batchAdd";
|
||||
string body = @"{""bizIdType"":1,""bizIds"":[" + productId + @"],""productEditItems"":[{""editItem"":4,""editAdvice"":""优化""},{""editItem"":8,""editAdvice"":""优化""}]}";
|
||||
@@ -1153,7 +1172,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
|
||||
}
|
||||
|
||||
private string editPriceProductSizeAndNumberTaskQuery(ShopLoginInfo shop, string productId)
|
||||
public static string editPriceProductSizeAndNumberTaskQuery(ShopLoginInfo shop, string productId)
|
||||
{
|
||||
string url = "https://agentseller.temu.com/lich-mms/audit/edit/task/product/pageQuery";
|
||||
string body = @"{""page"":1,""pageSize"":10,""editTaskAggStatuses"":[1],""productIdList"":[" + productId + "]}";
|
||||
@@ -1161,7 +1180,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
|
||||
}
|
||||
|
||||
private string editPriceProductQuery(ShopLoginInfo shop, string prodId, string taskUid)
|
||||
public static string editPriceProductQuery(ShopLoginInfo shop, string prodId, string taskUid)
|
||||
{
|
||||
string url = "https://agentseller.temu.com/visage-agent-seller/product/query";
|
||||
string body = @"{""productId"":" + prodId + @",""productEditTaskUid"":""" + taskUid + @"""}";
|
||||
@@ -1169,14 +1188,25 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
|
||||
}
|
||||
|
||||
private string queryProductSizeAndWeightConfig(ShopLoginInfo shop, string taskUid, string productId)
|
||||
public static string queryProductSizeAndWeightConfig(ShopLoginInfo shop, string taskUid, string productId, string catId)
|
||||
{
|
||||
string url = "https://agentseller.temu.com/anniston-agent-seller/product/check/common/queryConfig";
|
||||
string body = "{}";
|
||||
string referer = "https://agentseller.temu.com/goods/edit?from=platform&productId=" + productId + "&taskUid=" + taskUid;
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
|
||||
}
|
||||
private string editPriceProductSizeAndNumber(ShopLoginInfo shop, string taskUid, string productId, string data)
|
||||
|
||||
public static string queryCatSizeAndWeightConfig(ShopLoginInfo shop, string taskUid, string productId, string catId)
|
||||
{
|
||||
string url = "https://agentseller.temu.com/anniston-agent-seller/product/check/common/queryConfig";
|
||||
url = "https://agentseller.temu.com/anniston-agent-seller/product/check/cat/queryConfig";
|
||||
string body = "{}";
|
||||
body = @"{""catId"":" + catId + "}";
|
||||
string referer = "https://agentseller.temu.com/goods/edit?from=platform&productId=" + productId + "&taskUid=" + taskUid;
|
||||
referer = "https://agentseller.temu.com/goods/edit?from=productList&productId=" + productId;
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
|
||||
}
|
||||
public static string editPriceProductSizeAndNumber(ShopLoginInfo shop, string taskUid, string productId, string data)
|
||||
{
|
||||
string url = "https://agentseller.temu.com/visage-agent-seller/product/edit/task/reply";
|
||||
//string body = @"{""productId"":4432690492,""taskUid"":""8de73095-733e-4cdf-8fbd-3ddd8d9dff18"",""taskVersion"":0,""refuseEdit"":false,""productName"":""男士轻便 EVA 拖鞋,带钩环后跟带 ,舒适的露趾拖鞋,适合室内和室外使用,家居拖鞋,易于使用的魔鬼毡扣带扣,洞洞鞋,家居拖鞋,带钩环扣件,适合室内和室外使用,带扣凉鞋,后厨工专用鞋简约款两用,适合室内/室外使用,春夏凉鞋,EVA 拖鞋,适合19个不同的搭配风格""}";
|
||||
@@ -1865,7 +1895,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
|
||||
if (cateSizeWeightConfig == null)
|
||||
{
|
||||
var url = BaseClass.BuildObjString("product/get_cate_size_weight_config");
|
||||
var url = BaseClass.BuildObjString("product/get_cate_size_weight_config_v2");
|
||||
var data = UserLogin.GetSignaturex() +
|
||||
"&cat_id=" + catId;
|
||||
html = GetHtml.PostUtf8(url, data);
|
||||
@@ -1877,7 +1907,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
{
|
||||
var jArr = JObject.Parse(html)["data"];
|
||||
cateSizeWeightConfig = JsonHelper.DeserializeJsonToObject<CateSizeWeightConfig>(jArr.ToString());
|
||||
if (lstCateSizeWeightConfig != null)
|
||||
if (cateSizeWeightConfig != null)
|
||||
lstCateSizeWeightConfig.Add(cateSizeWeightConfig);
|
||||
}
|
||||
catch { }
|
||||
@@ -1887,36 +1917,57 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
if (cateSizeWeightConfig == null)
|
||||
{
|
||||
//查询接口尺寸重量限制
|
||||
html = queryProductSizeAndWeightConfig(shop, taskUid.ParseToString(), price.productId.ParseToString());
|
||||
html = queryProductSizeAndWeightConfig(shop, taskUid.ParseToString(), price.productId.ParseToString(), catId.ParseToString());
|
||||
var html1 = queryCatSizeAndWeightConfig(shop, taskUid.ParseToString(), price.productId.ParseToString(), catId.ParseToString());
|
||||
if (!string.IsNullOrEmpty(html1) && html1.Contains("length"))
|
||||
html = html1;
|
||||
//{"success":true,"errorCode":1000000,"errorMsg":null,"result":{"common":{"operatorId":null,"operatorName":null,"operatorType":null,"checkSideRelation":false,"noticeSideEquation":false,"length":{"min":10,"max":2999},"width":{"min":5,"max":2999},"height":{"min":2,"max":2999},"weight":{"min":2000,"max":99999000}}}}
|
||||
Thread.Sleep(Randomx.GetId(25, 75));
|
||||
commonSleep();
|
||||
if (html.Contains("\"success\":true"))
|
||||
{
|
||||
JObject jObj = JObject.Parse(html);
|
||||
cateSizeWeightConfig = new CateSizeWeightConfig() { catId = catId.ToString() };
|
||||
cateSizeWeightConfig.minLen = jObj["result"]["common"]["length"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxLen = jObj["result"]["common"]["length"]["max"].ParseToInt();
|
||||
cateSizeWeightConfig.minWidth = jObj["result"]["common"]["width"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxWidth = jObj["result"]["common"]["width"]["max"].ParseToInt();
|
||||
cateSizeWeightConfig.minHeight = jObj["result"]["common"]["height"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxHeight = jObj["result"]["common"]["height"]["max"].ParseToInt();
|
||||
cateSizeWeightConfig.minWeight = jObj["result"]["common"]["weight"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxWeight = jObj["result"]["common"]["weight"]["max"].ParseToInt();
|
||||
lstCateSizeWeightConfig.Add(cateSizeWeightConfig);
|
||||
try
|
||||
{
|
||||
JObject jObj = JObject.Parse(html);
|
||||
cateSizeWeightConfig = new CateSizeWeightConfig() { catId = catId.ToString() };
|
||||
if (html.Contains("common"))
|
||||
{
|
||||
cateSizeWeightConfig.minLen = jObj["result"]["common"]["length"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxLen = jObj["result"]["common"]["length"]["max"].ParseToInt();
|
||||
cateSizeWeightConfig.minWidth = jObj["result"]["common"]["width"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxWidth = jObj["result"]["common"]["width"]["max"].ParseToInt();
|
||||
cateSizeWeightConfig.minHeight = jObj["result"]["common"]["height"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxHeight = jObj["result"]["common"]["height"]["max"].ParseToInt();
|
||||
cateSizeWeightConfig.minWeight = jObj["result"]["common"]["weight"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxWeight = jObj["result"]["common"]["weight"]["max"].ParseToInt();
|
||||
}
|
||||
else
|
||||
{
|
||||
cateSizeWeightConfig.minLen = jObj["result"]["length"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxLen = jObj["result"]["length"]["max"].ParseToInt();
|
||||
cateSizeWeightConfig.minWidth = jObj["result"]["width"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxWidth = jObj["result"]["width"]["max"].ParseToInt();
|
||||
cateSizeWeightConfig.minHeight = jObj["result"]["height"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxHeight = jObj["result"]["height"]["max"].ParseToInt();
|
||||
cateSizeWeightConfig.minWeight = jObj["result"]["weight"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxWeight = jObj["result"]["weight"]["max"].ParseToInt();
|
||||
}
|
||||
lstCateSizeWeightConfig.Add(cateSizeWeightConfig);
|
||||
|
||||
var url = BaseClass.BuildObjString("product/add_cate_size_weight_config");
|
||||
var data = UserLogin.GetSignaturex();
|
||||
data += "&cat_id=" + catId;
|
||||
data += "&minLen=" + cateSizeWeightConfig.minLen;
|
||||
data += "&maxLen=" + cateSizeWeightConfig.maxLen;
|
||||
data += "&minWidth=" + cateSizeWeightConfig.minWidth;
|
||||
data += "&maxWidth=" + cateSizeWeightConfig.maxWidth;
|
||||
data += "&minHeight=" + cateSizeWeightConfig.minHeight;
|
||||
data += "&maxHeight=" + cateSizeWeightConfig.maxHeight;
|
||||
data += "&minWeight=" + cateSizeWeightConfig.minWeight;
|
||||
data += "&maxWeight=" + cateSizeWeightConfig.maxWeight;
|
||||
html = GetHtml.PostUtf8(url, data);
|
||||
var url = BaseClass.BuildObjString("product/add_cate_size_weight_config_v2");
|
||||
var data = UserLogin.GetSignaturex();
|
||||
data += "&cat_id=" + catId;
|
||||
data += "&minLen=" + cateSizeWeightConfig.minLen;
|
||||
data += "&maxLen=" + cateSizeWeightConfig.maxLen;
|
||||
data += "&minWidth=" + cateSizeWeightConfig.minWidth;
|
||||
data += "&maxWidth=" + cateSizeWeightConfig.maxWidth;
|
||||
data += "&minHeight=" + cateSizeWeightConfig.minHeight;
|
||||
data += "&maxHeight=" + cateSizeWeightConfig.maxHeight;
|
||||
data += "&minWeight=" + cateSizeWeightConfig.minWeight;
|
||||
data += "&maxWeight=" + cateSizeWeightConfig.maxWeight;
|
||||
html = GetHtml.PostUtf8(url, data);
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1942,16 +1993,18 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
}
|
||||
}
|
||||
|
||||
// 设置长宽高
|
||||
if (len < cateSizeWeightConfig.minLen) len = cateSizeWeightConfig.minLen;
|
||||
if (len > cateSizeWeightConfig.maxLen) len = cateSizeWeightConfig.maxLen;
|
||||
if (width < cateSizeWeightConfig.minWidth) width = cateSizeWeightConfig.minWidth;
|
||||
if (width > cateSizeWeightConfig.maxWidth) width = cateSizeWeightConfig.maxWidth;
|
||||
if (height < cateSizeWeightConfig.minHeight) height = cateSizeWeightConfig.minHeight;
|
||||
if (height > cateSizeWeightConfig.maxHeight) height = cateSizeWeightConfig.maxHeight;
|
||||
if (weight < cateSizeWeightConfig.minWeight) weight = cateSizeWeightConfig.minWeight;
|
||||
if (weight > cateSizeWeightConfig.maxWeight) weight = cateSizeWeightConfig.maxWeight;
|
||||
|
||||
if (cateSizeWeightConfig != null)
|
||||
{
|
||||
// 设置长宽高
|
||||
if (len < cateSizeWeightConfig.minLen) len = cateSizeWeightConfig.minLen;
|
||||
if (len > cateSizeWeightConfig.maxLen) len = cateSizeWeightConfig.maxLen;
|
||||
if (width < cateSizeWeightConfig.minWidth) width = cateSizeWeightConfig.minWidth;
|
||||
if (width > cateSizeWeightConfig.maxWidth) width = cateSizeWeightConfig.maxWidth;
|
||||
if (height < cateSizeWeightConfig.minHeight) height = cateSizeWeightConfig.minHeight;
|
||||
if (height > cateSizeWeightConfig.maxHeight) height = cateSizeWeightConfig.maxHeight;
|
||||
if (weight < cateSizeWeightConfig.minWeight) weight = cateSizeWeightConfig.minWeight;
|
||||
if (weight > cateSizeWeightConfig.maxWeight) weight = cateSizeWeightConfig.maxWeight;
|
||||
}
|
||||
|
||||
//JObject jPost = new JObject();
|
||||
//jPost.Add("productId", price.productId);
|
||||
|
||||
+28
-24
@@ -29,17 +29,19 @@ namespace TemuKJD.KJDForms.JITForms
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("JIT卡密激活");
|
||||
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("JIT商品选品");
|
||||
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("JIT商品上传");
|
||||
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("JIT商品核价");
|
||||
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("开通JIT");
|
||||
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("JIT", new System.Windows.Forms.TreeNode[] {
|
||||
treeNode1,
|
||||
treeNode2,
|
||||
treeNode3,
|
||||
treeNode4,
|
||||
treeNode5});
|
||||
System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("JIT卡密激活");
|
||||
System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("JIT商品选品");
|
||||
System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("JIT商品上传");
|
||||
System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("JIT商品核价");
|
||||
System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("开通JIT");
|
||||
System.Windows.Forms.TreeNode treeNode13 = new System.Windows.Forms.TreeNode("JIT推单");
|
||||
System.Windows.Forms.TreeNode treeNode14 = new System.Windows.Forms.TreeNode("JIT", new System.Windows.Forms.TreeNode[] {
|
||||
treeNode8,
|
||||
treeNode9,
|
||||
treeNode10,
|
||||
treeNode11,
|
||||
treeNode12,
|
||||
treeNode13});
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.tv = new TemuKJD.UserComponent.UcTreeView();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
@@ -92,20 +94,22 @@ namespace TemuKJD.KJDForms.JITForms
|
||||
this.tv.Location = new System.Drawing.Point(0, 0);
|
||||
this.tv.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.tv.Name = "tv";
|
||||
treeNode1.Name = "JIT卡密激活";
|
||||
treeNode1.Text = "JIT卡密激活";
|
||||
treeNode2.Name = "JIT商品选品";
|
||||
treeNode2.Text = "JIT商品选品";
|
||||
treeNode3.Name = "JIT商品上传";
|
||||
treeNode3.Text = "JIT商品上传";
|
||||
treeNode4.Name = "JIT商品核价";
|
||||
treeNode4.Text = "JIT商品核价";
|
||||
treeNode5.Name = "开通JIT";
|
||||
treeNode5.Text = "开通JIT";
|
||||
treeNode6.Name = "JIT";
|
||||
treeNode6.Text = "JIT";
|
||||
treeNode8.Name = "JIT卡密激活";
|
||||
treeNode8.Text = "JIT卡密激活";
|
||||
treeNode9.Name = "JIT商品选品";
|
||||
treeNode9.Text = "JIT商品选品";
|
||||
treeNode10.Name = "JIT商品上传";
|
||||
treeNode10.Text = "JIT商品上传";
|
||||
treeNode11.Name = "JIT商品核价";
|
||||
treeNode11.Text = "JIT商品核价";
|
||||
treeNode12.Name = "开通JIT";
|
||||
treeNode12.Text = "开通JIT";
|
||||
treeNode13.Name = "JIT推单";
|
||||
treeNode13.Text = "JIT推单";
|
||||
treeNode14.Name = "JIT";
|
||||
treeNode14.Text = "JIT";
|
||||
this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
|
||||
treeNode6});
|
||||
treeNode14});
|
||||
this.tv.OverForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
|
||||
this.tv.Size = new System.Drawing.Size(140, 450);
|
||||
this.tv.TabIndex = 4;
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace TemuKJD.KJDForms.JITForms
|
||||
public Lazy<DbProductSelectListManageForm> dDbProductSelectListManageForm = new Lazy<DbProductSelectListManageForm>(); // jit商品上传
|
||||
public Lazy<AdminProductPriceCheckForm> productPriceCheckForm = new Lazy<AdminProductPriceCheckForm>(); // jit商品核价
|
||||
public Lazy<TemuJitForm> temuJitForm = new Lazy<TemuJitForm>();
|
||||
public Lazy<JitPushOrder> jitPushOrder = new Lazy<JitPushOrder>();
|
||||
public JITForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -30,7 +31,7 @@ namespace TemuKJD.KJDForms.JITForms
|
||||
tv.SelectedNode = tv.Nodes[0].Nodes[0];
|
||||
tv.ExpandGroup(tv.Nodes[0].Name);
|
||||
|
||||
List<string> hideName = new List<string>() { "请在列表中填写要隐藏的Tab页面" };
|
||||
List<string> hideName = new List<string>() { "请在列表中填写要隐藏的Tab页面", "JIT推单" };
|
||||
|
||||
foreach (var item in hideName)
|
||||
{
|
||||
@@ -69,6 +70,10 @@ namespace TemuKJD.KJDForms.JITForms
|
||||
temuJitForm.Value.IsClientJit = true;
|
||||
SetForm(temuJitForm.Value);
|
||||
break;
|
||||
case "JIT推单":
|
||||
jitPushOrder.Value.IsClientJit = true;
|
||||
SetForm(jitPushOrder.Value);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1590
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,222 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="colSelect.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colUser.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colLoginName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colShopId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colShopNotes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colLoginStatus.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colJitStatus.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colCanUse.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colMessage.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colCheck.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colIndexId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSupplierId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSupplierName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSupplierInfo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSubOrderSn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSubOrderSnInfo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colImgUrl.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colProductSkcPic.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colParentStockId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colProductId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colUpProuctId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colProdName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colProductSn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colProdInfo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSkuImgUrl.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSkuImg.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colSkuInfo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colCost.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colPrcie.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colStockUpNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colCreateTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colUploadCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colUploadOrder.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colMsg.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -1,6 +1,7 @@
|
||||
using AllBase;
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.Result;
|
||||
using NaiBa.Util;
|
||||
using NaiBa.Util.Extension;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
@@ -28,11 +29,11 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
JoinDeliveryConfig joinDeliveryConfig = null;
|
||||
public bool IsAdmin = false;
|
||||
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
|
||||
public List<ShopLoginInfo> lstAdminShopInfo { get; set; } = new List<ShopLoginInfo>();
|
||||
public ConcurrentList<ShopLoginInfo> lstAdminShopInfo { get; set; } = new ConcurrentList<ShopLoginInfo>();
|
||||
/// <summary>
|
||||
/// 备货单列表
|
||||
/// </summary>
|
||||
List<TemuStockInfo> lstStockInfo = new List<TemuStockInfo>();
|
||||
ConcurrentList<TemuStockInfo> lstStockInfo = new ConcurrentList<TemuStockInfo>();
|
||||
|
||||
public JoinDeliveryForm()
|
||||
{
|
||||
|
||||
@@ -121,10 +121,10 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.splitContainer1.TabIndex = 37;
|
||||
this.splitContainer1.TabStop = false;
|
||||
//
|
||||
// txtNotes
|
||||
// txtReason
|
||||
//
|
||||
this.txtReason.Location = new System.Drawing.Point(69, 42);
|
||||
this.txtReason.Name = "txtNotes";
|
||||
this.txtReason.Name = "txtReason";
|
||||
this.txtReason.Size = new System.Drawing.Size(347, 23);
|
||||
this.txtReason.TabIndex = 472;
|
||||
//
|
||||
@@ -325,6 +325,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.dgvOrder.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvOrder.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dgvOrder.AutoRowNumber = true;
|
||||
this.dgvOrder.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dgvOrder.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvOrder.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
@@ -434,6 +435,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
//
|
||||
this.colType.HeaderText = "申报价格类型";
|
||||
this.colType.Name = "colType";
|
||||
this.colType.ReadOnly = true;
|
||||
//
|
||||
// colSkuPrice
|
||||
//
|
||||
@@ -455,6 +457,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
//
|
||||
this.colUseArea.HeaderText = "调整后申报价格适用范围";
|
||||
this.colUseArea.Name = "colUseArea";
|
||||
this.colUseArea.ReadOnly = true;
|
||||
//
|
||||
// colAvailableBalance
|
||||
//
|
||||
|
||||
@@ -92,8 +92,11 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
{
|
||||
pbLoading.Visible = false;
|
||||
}));
|
||||
|
||||
if (IsAuto)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(ErrMsg))
|
||||
return;
|
||||
SaveNewPrice();
|
||||
}
|
||||
});
|
||||
@@ -156,7 +159,7 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
try
|
||||
{
|
||||
var jObj = JObject.Parse(adjustRst);
|
||||
var objStr = JsonHelper.SerializeObject( jObj["result"]);
|
||||
var objStr = JsonHelper.SerializeObject(jObj["result"]);
|
||||
var adjustPriceInfo = JsonHelper.DeserializeJsonToObject<AdjustPriceInfo>(objStr);
|
||||
|
||||
foreach (var item in adjustPriceInfo.spuAdjustResult[productId].skcItems[0].items)
|
||||
@@ -325,12 +328,18 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
|
||||
if (shop == null || productId.IsNullOrEmpty() || skcId.IsNullOrEmpty() || productName.IsNullOrEmpty())
|
||||
{
|
||||
BaseMsgForm.ShowError("店铺商品信息为空!");
|
||||
if (IsAuto)
|
||||
ErrMsg = "店铺商品信息为空!";
|
||||
else
|
||||
BaseMsgForm.ShowError("店铺商品信息为空!");
|
||||
return;
|
||||
}
|
||||
if (!dgvOrder.Rows.Cast<DataGridViewRow>().Any(r => r.Cells["colSelect"].Value.ParseToBool() == true))
|
||||
{
|
||||
BaseMsgForm.ShowError("请至少勾选一项!"); // todo
|
||||
if (IsAuto)
|
||||
ErrMsg = "请至少勾选一项!" + dgvOrder.Rows.Cast<DataGridViewRow>().Count();
|
||||
else
|
||||
BaseMsgForm.ShowError("请至少勾选一项!"); // todo,查找自动设置出现次错误原因
|
||||
return;
|
||||
}
|
||||
foreach (DataGridViewRow r in dgvOrder.Rows)
|
||||
@@ -339,7 +348,10 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
{
|
||||
if (r.Cells["colSkuNewPrice"].Value.ParseToDecimal() == 0)
|
||||
{
|
||||
BaseMsgForm.ShowError("请输入合理的新申报价格!");
|
||||
if (IsAuto)
|
||||
ErrMsg = "请输入合理的新申报价格!";
|
||||
else
|
||||
BaseMsgForm.ShowError("请输入合理的新申报价格!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
+74
-74
@@ -114,10 +114,6 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.btnClose = new DevComponents.DotNetBar.PanelEx();
|
||||
this.pbLoading = new System.Windows.Forms.PictureBox();
|
||||
this.dgvOpenJit = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
|
||||
this.btnClear = new DevComponents.DotNetBar.PanelEx();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colProdIndex = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOrderId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -140,6 +136,10 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.colStock = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colRecevieArea = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
|
||||
this.btnClear = new DevComponents.DotNetBar.PanelEx();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -1198,76 +1198,6 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.dgvOpenJit.TabIndex = 187;
|
||||
this.dgvOpenJit.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvOpenJit_CellContentClick);
|
||||
//
|
||||
// splitContainer4
|
||||
//
|
||||
this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer4.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer4.Name = "splitContainer4";
|
||||
//
|
||||
// splitContainer4.Panel1
|
||||
//
|
||||
this.splitContainer4.Panel1.Controls.Add(this.ucSplitPage1);
|
||||
//
|
||||
// splitContainer4.Panel2
|
||||
//
|
||||
this.splitContainer4.Panel2.Controls.Add(this.btnClear);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.statusBar);
|
||||
this.splitContainer4.Size = new System.Drawing.Size(1584, 26);
|
||||
this.splitContainer4.SplitterDistance = 282;
|
||||
this.splitContainer4.TabIndex = 3;
|
||||
//
|
||||
// ucSplitPage1
|
||||
//
|
||||
this.ucSplitPage1.CurrentPage = 1;
|
||||
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.ucSplitPage1.IsShowPageSize = false;
|
||||
this.ucSplitPage1.Location = new System.Drawing.Point(0, 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(282, 26);
|
||||
this.ucSplitPage1.TabIndex = 5;
|
||||
this.ucSplitPage1.TotalPage = 1;
|
||||
this.ucSplitPage1.PageChange += new System.Action<object>(this.ucSplitPage1_PageChange);
|
||||
//
|
||||
// btnClear
|
||||
//
|
||||
this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnClear.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnClear.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnClear.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnClear.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnClear.Location = new System.Drawing.Point(1204, 0);
|
||||
this.btnClear.Name = "btnClear";
|
||||
this.btnClear.Size = new System.Drawing.Size(90, 21);
|
||||
this.btnClear.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnClear.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnClear.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnClear.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.Style.GradientAngle = 90;
|
||||
this.btnClear.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.TabIndex = 440;
|
||||
this.btnClear.Text = "清空结果";
|
||||
this.btnClear.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(1298, 26);
|
||||
this.statusBar.TabIndex = 2;
|
||||
//
|
||||
// colCheck
|
||||
//
|
||||
this.colCheck.HeaderText = "选择";
|
||||
@@ -1448,6 +1378,76 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
this.colMsg.ReadOnly = true;
|
||||
this.colMsg.Width = 180;
|
||||
//
|
||||
// splitContainer4
|
||||
//
|
||||
this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer4.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer4.Name = "splitContainer4";
|
||||
//
|
||||
// splitContainer4.Panel1
|
||||
//
|
||||
this.splitContainer4.Panel1.Controls.Add(this.ucSplitPage1);
|
||||
//
|
||||
// splitContainer4.Panel2
|
||||
//
|
||||
this.splitContainer4.Panel2.Controls.Add(this.btnClear);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.statusBar);
|
||||
this.splitContainer4.Size = new System.Drawing.Size(1584, 26);
|
||||
this.splitContainer4.SplitterDistance = 321;
|
||||
this.splitContainer4.TabIndex = 3;
|
||||
//
|
||||
// ucSplitPage1
|
||||
//
|
||||
this.ucSplitPage1.CurrentPage = 1;
|
||||
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.ucSplitPage1.IsShowPageSize = false;
|
||||
this.ucSplitPage1.Location = new System.Drawing.Point(0, 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(321, 26);
|
||||
this.ucSplitPage1.TabIndex = 5;
|
||||
this.ucSplitPage1.TotalPage = 1;
|
||||
this.ucSplitPage1.PageChange += new System.Action<object>(this.ucSplitPage1_PageChange);
|
||||
//
|
||||
// btnClear
|
||||
//
|
||||
this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnClear.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnClear.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnClear.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnClear.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnClear.Location = new System.Drawing.Point(1165, 0);
|
||||
this.btnClear.Name = "btnClear";
|
||||
this.btnClear.Size = new System.Drawing.Size(90, 21);
|
||||
this.btnClear.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnClear.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnClear.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnClear.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.Style.GradientAngle = 90;
|
||||
this.btnClear.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.TabIndex = 440;
|
||||
this.btnClear.Text = "清空结果";
|
||||
this.btnClear.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(1259, 26);
|
||||
this.statusBar.TabIndex = 2;
|
||||
//
|
||||
// TemuJitForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using AllBase;
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.Result;
|
||||
using NaiBa.Util;
|
||||
using NaiBa.Util.Extension;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
@@ -30,27 +31,27 @@ namespace TemuKJD.KJDForms.ProductForms
|
||||
{
|
||||
public bool IsClientJit { get; set; } = false;
|
||||
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
|
||||
public List<ShopLoginInfo> lstAdminShopInfo { get; set; } = new List<ShopLoginInfo>();
|
||||
public ConcurrentList<ShopLoginInfo> lstAdminShopInfo { get; set; } = new ConcurrentList<ShopLoginInfo>();
|
||||
/// <summary>
|
||||
/// 生命周期商品列表
|
||||
/// </summary>
|
||||
public List<TemuForChainProductInfo> lstChainProdInfo = new List<TemuForChainProductInfo>();
|
||||
public ConcurrentList<TemuForChainProductInfo> lstChainProdInfo = new ConcurrentList<TemuForChainProductInfo>();
|
||||
/// <summary>
|
||||
/// 商品合规信息列表
|
||||
/// </summary>
|
||||
public List<complianceInfo> lstComplianceInfo = new List<complianceInfo>();
|
||||
public ConcurrentList<complianceInfo> lstComplianceInfo = new ConcurrentList<complianceInfo>();
|
||||
/// <summary>
|
||||
/// 实拍图
|
||||
/// </summary>
|
||||
public List<RealPictureInfo> lstRealPictureInfo = new List<RealPictureInfo>();
|
||||
public ConcurrentList<RealPictureInfo> lstRealPictureInfo = new ConcurrentList<RealPictureInfo>();
|
||||
/// <summary>
|
||||
/// 商品信息(含虚拟库存)列表
|
||||
/// </summary>
|
||||
public List<TemuListProductInfo> lstProductInfo = new List<TemuListProductInfo>();
|
||||
public ConcurrentList<TemuListProductInfo> lstProductInfo = new ConcurrentList<TemuListProductInfo>();
|
||||
/// <summary>
|
||||
/// 期望到货区域列表
|
||||
/// </summary>
|
||||
public List<SkcReceiveAreaPickOutInfo> lstReceiveArea = new List<SkcReceiveAreaPickOutInfo>();
|
||||
public ConcurrentList<SkcReceiveAreaPickOutInfo> lstReceiveArea = new ConcurrentList<SkcReceiveAreaPickOutInfo>();
|
||||
|
||||
/// <summary>
|
||||
/// 界面参数配置
|
||||
@@ -2468,6 +2469,7 @@ Content-Disposition: form-data; name=""upload_sign""
|
||||
public string SearchNotes { get; set; } = "";
|
||||
public bool SearchAllShop { get; set; } = true;
|
||||
public string SearchSpuId { get; set; } = "";
|
||||
public string SearchSkcId { get; set; } = "";
|
||||
public string SearchExtCode { get; set; } = "";
|
||||
public bool SearchDuration { get; set; } = true;
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ using TemuKJD.BLL;
|
||||
using TemuKJD.ToolForms;
|
||||
using AllBase.Model.Result.TemuResult.TemuSizeConfigResult;
|
||||
using AllBase.Model.Result.TemuResult;
|
||||
using NaiBa.Util;
|
||||
|
||||
namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
{
|
||||
@@ -39,8 +40,9 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
List<string> skuRandomLetterArr = new List<string> { "~", "#", "¥", "%", "&", "*", "(", ")", "(", ")", "+", "-", "_", "=", "【", "】", "·", "|", "《", "》" };
|
||||
|
||||
NaiBa.Util.ConcurrentList<TemuDBProductSelect> lstAdminTemuDBProductSelect = new NaiBa.Util.ConcurrentList<TemuDBProductSelect>();
|
||||
List<ShopLoginInfo> shopLst = new List<ShopLoginInfo>();
|
||||
List<TemuDBExtCodePriceInfo> lstDbPrice = new List<TemuDBExtCodePriceInfo>();
|
||||
public ConcurrentList<CateSizeWeightConfig> lstCateSizeWeightConfig = new ConcurrentList<CateSizeWeightConfig>();
|
||||
ConcurrentList<ShopLoginInfo> shopLst = new ConcurrentList<ShopLoginInfo>();
|
||||
ConcurrentList<TemuDBExtCodePriceInfo> lstDbPrice = new ConcurrentList<TemuDBExtCodePriceInfo>();
|
||||
List<string> lstCustomImg = new List<string>();
|
||||
Dictionary<string, string> dicCustomImg = new Dictionary<string, string>();
|
||||
List<string> lstExtCodeFleeceInShoes = new List<string>() {
|
||||
@@ -148,8 +150,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
else
|
||||
{
|
||||
ucSplitPage1.cmbPageSize.Items.Remove("5000");
|
||||
ucSplitPage1.cmbPageSize.Items.Remove("2000");
|
||||
ucSplitPage1.cmbPageSize.Items.Remove("1000");
|
||||
//ucSplitPage1.cmbPageSize.Items.Remove("2000");
|
||||
//ucSplitPage1.cmbPageSize.Items.Remove("1000");
|
||||
}
|
||||
|
||||
if (BaseClass.SaLevel == 1 && !IsClientJit)
|
||||
@@ -282,7 +284,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
this.ucSplitPage1.TotalPage = pageCount;
|
||||
|
||||
var shopIdLst = list.Select(p => p.shop_id).Distinct().ToList();
|
||||
shopLst = ShopBLL.AdminGetServerShopLstByIds(shopIdLst);
|
||||
shopLst.Clear();
|
||||
shopLst.AddRange(ShopBLL.AdminGetServerShopLstByIds(shopIdLst));
|
||||
|
||||
//if (defaultBitmap == null)
|
||||
// defaultBitmap = new Bitmap(80, 80);
|
||||
@@ -509,9 +512,9 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
break;
|
||||
case "进店":
|
||||
{
|
||||
var shop = GetShop(shopId);
|
||||
if (!IsClientJit)
|
||||
{
|
||||
var shop = GetShop(shopId);
|
||||
AdminShopLoginForm adminLoginForm = new AdminShopLoginForm(shop);
|
||||
//adminLoginForm.InitUrl = "https://seller.kuajingmaihuo.com/goods/product/draft";
|
||||
adminLoginForm.InitUrl = "https://agentseller.temu.com/goods/draft";
|
||||
@@ -519,25 +522,41 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
adminLoginForm.WindowState = FormWindowState.Maximized;
|
||||
adminLoginForm.ShowDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
ShopLoginForm adminLoginForm = new ShopLoginForm(shop);
|
||||
//adminLoginForm.InitUrl = "https://seller.kuajingmaihuo.com/goods/product/draft";
|
||||
adminLoginForm.InitUrl = "https://agentseller.temu.com/goods/draft";
|
||||
adminLoginForm.openType = EnumOpenType.manage;
|
||||
adminLoginForm.WindowState = FormWindowState.Maximized;
|
||||
adminLoginForm.ShowDialog();
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "登录":
|
||||
{
|
||||
var shop = GetShop(shopId);
|
||||
// 登录店铺
|
||||
if (!IsClientJit)
|
||||
{
|
||||
var shop = GetShop(shopId);
|
||||
// 登录店铺
|
||||
AdminShopLoginForm shopLoginForm = new AdminShopLoginForm(shop);
|
||||
shopLoginForm.openType = EnumOpenType.login;
|
||||
shopLoginForm.SaveComplete += ShopLoginForm_SaveComplete;
|
||||
shopLoginForm.ShowDialog();
|
||||
foreach (DataGridViewRow row in this.dgvSelectProduct.Rows)
|
||||
}
|
||||
else
|
||||
{
|
||||
ShopLoginForm shopLoginForm = new ShopLoginForm(shop);
|
||||
shopLoginForm.openType = EnumOpenType.login;
|
||||
shopLoginForm.SaveComplete += ShopLoginForm_SaveComplete;
|
||||
shopLoginForm.ShowDialog();
|
||||
}
|
||||
foreach (DataGridViewRow row in this.dgvSelectProduct.Rows)
|
||||
{
|
||||
if (row.Cells["colSupplierId"].Value.ParseToString() == shop.ShopId)
|
||||
{
|
||||
if (row.Cells["colSupplierId"].Value.ParseToString() == shop.ShopId)
|
||||
{
|
||||
row.Cells["colLogin"].Value = shop.LoginStatus2 == "国际版在线" ? "在线" : "登录";
|
||||
displayLoginStatusColor(row.Cells["colLogin"], row.Cells["colLogin"].Value.ParseToString());
|
||||
}
|
||||
row.Cells["colLogin"].Value = shop.LoginStatus2 == "国际版在线" ? "在线" : "登录";
|
||||
displayLoginStatusColor(row.Cells["colLogin"], row.Cells["colLogin"].Value.ParseToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -639,17 +658,25 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
|
||||
ShopLoginInfo GetShop(string shopId)
|
||||
{
|
||||
var shop = shopLst.FirstOrDefault(s => s.ShopId == shopId);
|
||||
if (shop == null)
|
||||
ShopLoginInfo shop;
|
||||
if (IsClientJit)
|
||||
{
|
||||
shop = AdminGetServerShop(shopId);
|
||||
shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
}
|
||||
else
|
||||
{
|
||||
shop = shopLst.FirstOrDefault(s => s.ShopId == shopId);
|
||||
if (shop == null)
|
||||
{
|
||||
shop = new ShopLoginInfo() { ShopId = shopId };
|
||||
shop.LoginStatus = "不存在";
|
||||
shop = AdminGetServerShop(shopId);
|
||||
}
|
||||
shopLst.Add(shop);
|
||||
}
|
||||
if (shop == null)
|
||||
{
|
||||
shop = new ShopLoginInfo() { ShopId = shopId };
|
||||
shop.LoginStatus = "不存在";
|
||||
}
|
||||
shopLst.Add(shop);
|
||||
return shop;
|
||||
}
|
||||
|
||||
@@ -762,18 +789,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
continue;
|
||||
}
|
||||
|
||||
var shop = shopLst.FirstOrDefault(s => s.ShopId == prod.shop_id);
|
||||
if (shop == null)
|
||||
{
|
||||
shop = AdminGetServerShop(prod.shop_id);
|
||||
if (shop == null)
|
||||
{
|
||||
shop = new ShopLoginInfo() { ShopId = prod.shop_id };
|
||||
shop.LoginStatus = "不存在";
|
||||
}
|
||||
shopLst.Add(shop);
|
||||
}
|
||||
|
||||
var shop = GetShop(prod.shop_id);
|
||||
if (shop.LoginStatus != "登录成功")
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
@@ -837,7 +853,10 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
|
||||
if (result.Contains("登录过期") || result.Contains("Invalid Login State"))
|
||||
{
|
||||
AdminShopListForm.Instance.CheckShopLogin(shopLst.Where(s => s.LoginName == shop.LoginName).ToArray(), false);
|
||||
if (!IsClientJit)
|
||||
AdminShopListForm.Instance.CheckShopLogin(shopLst.Where(s => s.LoginName == shop.LoginName).ToArray(), false);
|
||||
else
|
||||
ShopListForm.Instance.CheckShopLogin(shopLst.Where(s => s.LoginName == shop.LoginName).ToArray(), false);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -1627,13 +1646,132 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
int numberOfPieces = 1; // 单品数量
|
||||
if (chkChangeSizeAndNumber.Checked) // 修改包装尺寸和单品数量
|
||||
{
|
||||
len = Randomx.GetId(numLen1.Value.ParseToInt(), numLen2.Value.ParseToInt()+1);
|
||||
len = Randomx.GetId(numLen1.Value.ParseToInt(), numLen2.Value.ParseToInt() + 1);
|
||||
width = Randomx.GetId(numWidth1.Value.ParseToInt(), Math.Min(len, numWidth2.Value.ParseToInt() + 1));
|
||||
height = Randomx.GetId(numHeight1.Value.ParseToInt(), Math.Min(width, numHeight2.Value.ParseToInt() + 1));
|
||||
weight = Randomx.GetId(numWeight1.Value.ParseToInt(), numWeight2.Value.ParseToInt() + 1);
|
||||
len *= 10;
|
||||
width *= 10;
|
||||
height *= 10;
|
||||
weight *= 1000;
|
||||
numberOfPieces = Randomx.GetId(numUnitNum1.Value.ParseToInt(), numUnitNum2.Value.ParseToInt());
|
||||
|
||||
var cateSizeWeightConfig = lstCateSizeWeightConfig.FirstOrDefault(c => c.catId == catId.ToString());
|
||||
if (cateSizeWeightConfig == null)
|
||||
{
|
||||
var url = BaseClass.BuildObjString("product/get_cate_size_weight_config_v2");
|
||||
var data = UserLogin.GetSignaturex() +
|
||||
"&cat_id=" + catId;
|
||||
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"))
|
||||
{
|
||||
try
|
||||
{
|
||||
var jArr = JObject.Parse(html)["data"];
|
||||
cateSizeWeightConfig = JsonHelper.DeserializeJsonToObject<CateSizeWeightConfig>(jArr.ToString());
|
||||
if (cateSizeWeightConfig != null)
|
||||
lstCateSizeWeightConfig.Add(cateSizeWeightConfig);
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
|
||||
if (cateSizeWeightConfig == null)
|
||||
{
|
||||
//查询接口尺寸重量限制
|
||||
html = "";
|
||||
html = queryProductSizeAndWeightConfig(shop, prodParam.productDraftId.ParseToString(), catId.ParseToString());
|
||||
var html1 = queryCatSizeAndWeightConfig(shop, prodParam.productDraftId.ParseToString(), catId.ParseToString());
|
||||
if (!string.IsNullOrEmpty(html1) && html1.Contains("length"))
|
||||
html = html1;
|
||||
//{"success":true,"errorCode":1000000,"errorMsg":null,"result":{"common":{"operatorId":null,"operatorName":null,"operatorType":null,"checkSideRelation":false,"noticeSideEquation":false,"length":{"min":10,"max":2999},"width":{"min":5,"max":2999},"height":{"min":2,"max":2999},"weight":{"min":2000,"max":99999000}}}}
|
||||
Thread.Sleep(Randomx.GetId(50, 100));
|
||||
if (html.Contains("\"success\":true"))
|
||||
{
|
||||
try
|
||||
{
|
||||
JObject jObj = JObject.Parse(html);
|
||||
cateSizeWeightConfig = new CateSizeWeightConfig() { catId = catId.ToString() };
|
||||
if (html.Contains("common"))
|
||||
{
|
||||
cateSizeWeightConfig.minLen = jObj["result"]["common"]["length"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxLen = jObj["result"]["common"]["length"]["max"].ParseToInt();
|
||||
cateSizeWeightConfig.minWidth = jObj["result"]["common"]["width"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxWidth = jObj["result"]["common"]["width"]["max"].ParseToInt();
|
||||
cateSizeWeightConfig.minHeight = jObj["result"]["common"]["height"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxHeight = jObj["result"]["common"]["height"]["max"].ParseToInt();
|
||||
cateSizeWeightConfig.minWeight = jObj["result"]["common"]["weight"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxWeight = jObj["result"]["common"]["weight"]["max"].ParseToInt();
|
||||
}
|
||||
else
|
||||
{
|
||||
cateSizeWeightConfig.minLen = jObj["result"]["length"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxLen = jObj["result"]["length"]["max"].ParseToInt();
|
||||
cateSizeWeightConfig.minWidth = jObj["result"]["width"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxWidth = jObj["result"]["width"]["max"].ParseToInt();
|
||||
cateSizeWeightConfig.minHeight = jObj["result"]["height"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxHeight = jObj["result"]["height"]["max"].ParseToInt();
|
||||
cateSizeWeightConfig.minWeight = jObj["result"]["weight"]["min"].ParseToInt();
|
||||
cateSizeWeightConfig.maxWeight = jObj["result"]["weight"]["max"].ParseToInt();
|
||||
}
|
||||
lstCateSizeWeightConfig.Add(cateSizeWeightConfig);
|
||||
|
||||
var url = BaseClass.BuildObjString("product/add_cate_size_weight_config_v2");
|
||||
var data = UserLogin.GetSignaturex();
|
||||
data += "&cat_id=" + catId;
|
||||
data += "&minLen=" + cateSizeWeightConfig.minLen;
|
||||
data += "&maxLen=" + cateSizeWeightConfig.maxLen;
|
||||
data += "&minWidth=" + cateSizeWeightConfig.minWidth;
|
||||
data += "&maxWidth=" + cateSizeWeightConfig.maxWidth;
|
||||
data += "&minHeight=" + cateSizeWeightConfig.minHeight;
|
||||
data += "&maxHeight=" + cateSizeWeightConfig.maxHeight;
|
||||
data += "&minWeight=" + cateSizeWeightConfig.minWeight;
|
||||
data += "&maxWeight=" + cateSizeWeightConfig.maxWeight;
|
||||
html = GetHtml.PostUtf8(url, data);
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
else
|
||||
{
|
||||
//if (html.Contains("登录过期") || html.Contains("Invalid Login State"))
|
||||
//{
|
||||
// this.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
|
||||
// //Invoke(new Action(() =>
|
||||
// //{
|
||||
// // displayShopStatus(shop);
|
||||
// //}));
|
||||
//}
|
||||
//string sErrMsg = BaseRegex.GetStringJson(ref html, "errorMsg").ParseToString();
|
||||
//if (string.IsNullOrEmpty(sErrMsg))
|
||||
// sErrMsg = BaseRegex.GetStringJson(ref html, "error_msg").ParseToString();
|
||||
//if (string.IsNullOrEmpty(sErrMsg))
|
||||
// sErrMsg = html;
|
||||
//Invoke(new Action(() =>
|
||||
//{
|
||||
// foreach (var row in rows)
|
||||
// row.Cells["colMsg"].Value = "修改请求失败 " + sErrMsg;
|
||||
//}));
|
||||
//return; //continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (cateSizeWeightConfig != null)
|
||||
{
|
||||
// 设置长宽高
|
||||
if (len < cateSizeWeightConfig.minLen) len = cateSizeWeightConfig.minLen;
|
||||
if (len > cateSizeWeightConfig.maxLen) len = cateSizeWeightConfig.maxLen;
|
||||
if (width < cateSizeWeightConfig.minWidth) width = cateSizeWeightConfig.minWidth;
|
||||
if (width > cateSizeWeightConfig.maxWidth) width = cateSizeWeightConfig.maxWidth;
|
||||
if (height < cateSizeWeightConfig.minHeight) height = cateSizeWeightConfig.minHeight;
|
||||
if (height > cateSizeWeightConfig.maxHeight) height = cateSizeWeightConfig.maxHeight;
|
||||
if (weight < cateSizeWeightConfig.minWeight) weight = cateSizeWeightConfig.minWeight;
|
||||
if (weight > cateSizeWeightConfig.maxWeight) weight = cateSizeWeightConfig.maxWeight;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int skuCount = 0;
|
||||
//foreach (var skuInfo in skcInfo.productSkuList)
|
||||
NaiBa.Util.ConcurrentList<TemuProductSku> skuListTmp = new NaiBa.Util.ConcurrentList<TemuProductSku>();
|
||||
@@ -1829,10 +1967,10 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
|
||||
if (chkChangeSizeAndNumber.Checked) // 修改包装尺寸和单品数量
|
||||
{
|
||||
skuItem.productSkuWhExtAttrReq.productSkuVolumeReq.len = len * 10;
|
||||
skuItem.productSkuWhExtAttrReq.productSkuVolumeReq.width = width * 10;
|
||||
skuItem.productSkuWhExtAttrReq.productSkuVolumeReq.height = height * 10;
|
||||
skuItem.productSkuWhExtAttrReq.productSkuWeightReq.value = weight * 1000;
|
||||
skuItem.productSkuWhExtAttrReq.productSkuVolumeReq.len = len;
|
||||
skuItem.productSkuWhExtAttrReq.productSkuVolumeReq.width = width;
|
||||
skuItem.productSkuWhExtAttrReq.productSkuVolumeReq.height = height;
|
||||
skuItem.productSkuWhExtAttrReq.productSkuWeightReq.value = weight;
|
||||
}
|
||||
skuItem.supplierPrice = skuInfo.supplierPrice;
|
||||
// 按照批号原价取商品原价和加价规则并修改商品上传价格
|
||||
@@ -2831,6 +2969,22 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
|
||||
}
|
||||
|
||||
private string queryProductSizeAndWeightConfig(ShopLoginInfo shop, string productId, string catId)
|
||||
{
|
||||
string url = "https://agentseller.temu.com/anniston-agent-seller/product/check/common/queryConfig";
|
||||
string body = "{}";
|
||||
string referer = "https://agentseller.temu.com/goods/edit?productDraftId=" + productId + "&from=productDraftList";
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
|
||||
}
|
||||
private string queryCatSizeAndWeightConfig(ShopLoginInfo shop, string productId, string catId)
|
||||
{
|
||||
string url = "https://agentseller.temu.com/anniston-agent-seller/product/check/common/queryConfig";
|
||||
url = "https://agentseller.temu.com/anniston-agent-seller/product/check/cat/queryConfig";
|
||||
string body = @"{""catId"":" + catId + "}";
|
||||
string referer = "https://agentseller.temu.com/goods/edit?productDraftId=" + productId + "&from=productDraftList";
|
||||
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
|
||||
}
|
||||
|
||||
private string GetCatPathList(ShopLoginInfo shop, string draftId, string catId)
|
||||
{
|
||||
string url = "https://agentseller.temu.com/anniston-agent-seller/category/path/list";
|
||||
|
||||
Reference in new issue
Block a user