diff --git a/AllBase/Model/Result/StockInfo.cs b/AllBase/Model/Result/StockInfo.cs
index f6ce499..b4c8c48 100644
--- a/AllBase/Model/Result/StockInfo.cs
+++ b/AllBase/Model/Result/StockInfo.cs
@@ -6,6 +6,9 @@ using System.Threading.Tasks;
namespace AllBase.Model.Result
{
+ ///
+ /// 系统待创建备货单
+ ///
public class StockInfo
{
///
@@ -44,5 +47,222 @@ namespace AllBase.Model.Result
/// skc图片
///
public string productSkcPicture { get; set; }
+
+ ///
+ /// 是否取消待创建备货单
+ ///
+ public bool isCancel { get; set; } = false;
+ }
+
+ ///
+ /// 待备货商品信息
+ ///
+ public class SubOrderInfo
+ {
+ ///
+ /// 卖家店铺id
+ ///
+ public long supplierId { get; set; }
+ ///
+ /// 卖家店铺名称
+ ///
+ public string supplierName { get; set; }
+ ///
+ /// 商品名
+ ///
+ public string productName { get; set; }
+ ///
+ /// 商品Id
+ ///
+ public long productId { get; set; }
+ ///
+ /// 商品Skc
+ ///
+ public long productSkcId { get; set; }
+ ///
+ /// skc图片
+ ///
+ public string productSkcPicture { get; set; }
+ ///
+ /// sku列表信息
+ ///
+ public List skuQuantityDetailList { get; set; } = new List();
+ ///
+ /// sku总计
+ ///
+ public SkuQuantityInfo skuQuantityTotalInfo { get; set; }
+ ///
+ /// 备货仓组Id列表
+ ///
+ public List warehouseGroupIdList { get; set; }
+
+ ///
+ /// 是否需要备货
+ ///
+ public bool needStockUp { get; set; } = false;
+
+ ///
+ /// 临时存储已创建备货单信息
+ ///
+ public bool isStockUp { get; set; } = false;
+ }
+
+ ///
+ /// sku数量信息
+ ///
+ public class SkuQuantityInfo
+ {
+ ///
+ /// sku编号
+ ///
+ public long? productSkuId { get; set; }
+ ///
+ /// sku名称
+ ///
+ public string className { get; set; }
+ ///
+ /// 备货仓组
+ ///
+ public string warehouseGroupName { get; set; }
+
+ ///
+ /// 累计加购数量
+ ///
+ public int? inCardNumber { get; set; }
+ ///
+ /// 近7日加购数量
+ ///
+ public int? inCartNumber7d { get; set; }
+
+ ///
+ /// 今日销量
+ ///
+ public int? todaySaleVolume { get; set; }
+ ///
+ /// 近七日销量
+ ///
+ public int? lastSevenDaysSaleVolume { get; set; }
+ ///
+ /// 近30天销量
+ ///
+ public int? lastThirtyDaysSaleVolume { get; set; }
+ ///
+ /// 申报价格 CNY 分
+ ///
+ public int? supplierPrice { get; set; }
+ /////
+ ///// 仓内可用库存
+ /////
+ //public int? salesInventoryNum { get; set; }
+
+ ///
+ /// 建议备货引导(为true无需备货?)
+ ///
+ public bool? showStockGuide { get; set; }
+
+ ///
+ /// 建议备货数量
+ ///
+ public int? adviceQuantity { get; set; }
+
+ public InventoryNumInfo inventoryNumInfo { get; set; }
+
+ ///
+ /// 拟备货数量,=0不备货
+ ///
+ public int wantStockUpBound { get; set; } = 0;
+ }
+
+ ///
+ /// 备货相关库存数量
+ ///
+ public class InventoryNumInfo
+ {
+ public int? waitOnShelfNum {get;set;}
+ public int? arrivalDelayNum { get; set; }
+ ///
+ /// 已创建备货单待发货库存
+ ///
+ public int? waitDeliveryInventoryNum { get; set; }
+ public int? salesInventoryNum { get; set; }
+ public int? deliveryDelayNum { get; set; }
+ ///
+ /// 仓内可用库存
+ ///
+ public int? warehouseInventoryNum { get; set; }
+ public int? expectedOccupiedInventoryNum { get; set; }
+ ///
+ /// 仓库预占用库存
+ ///
+ public int? normalLockNumber { get; set; }
+ public int? waitApproveInventoryNum { get; set; }
+ public int? waitQcNum { get; set; }
+ public int? unavailableWarehouseInventoryNum { get; set; }
+ public int? waitInStock { get; set; }
+ ///
+ /// 已发货库存
+ ///
+ public int? waitReceiveNum { get; set; }
+ }
+
+
+
+ ///
+ /// 备货商品基础信息
+ ///
+ public class stockBaseInfo
+ {
+ public string productName { get; set; }
+ public string catName { get; set; }
+ public string productSkcId { get; set; }
+ public string productSkcPicture { get; set; }
+ public long supplierId { get; set; }
+ public string supplierName { get; set; }
+ public bool punishVmiUrgencyOrder { get; set; }
+ public string purchaseConfig { get; set; }
+ public List purchaseConfigDetailList { get; set; } = new List();
+ }
+ ///
+ /// 配货sku配置详情
+ ///
+ public class purchaseConfigDetail
+ {
+ public bool isReducePricePass { get; set; }
+ public bool isVerifyPrice { get; set; }
+ ///
+ /// 价格单位 CNY
+ ///
+ public string currencyType { get; set; }
+ ///
+ /// sku价格 2800 分
+ ///
+ public int supplierPrice { get; set; }
+ ///
+ /// sku名称 12color gel pens
+ ///
+ public string className { get; set; }
+ public long productSkuId { get; set; }
+ public int? exceptQuantity { get; set; }
+ public int? applyQuantity { get; set; }
+ public int? lastSevenDaysSaleVolume { get; set; }
+ public int? availableSaleDays { get; set; }
+ public int? stockOut { get; set; }
+ public int? urgencyPurchaseNum { get; set; }
+ public int? auditLowerBound { get; set; }
+ public int? auditUpperBound { get; set; }
+ ///
+ /// 备货量上限
+ ///
+ public int? applyUpperBound { get; set; }
+ ///
+ /// 备货量下限
+ ///
+ public int? applyLowerBound { get; set; }
+ public int? exceptQuantityWhenApply { get; set; }
+ public int? addPurchaseNumBound { get; set; }
+ ///
+ /// 备货逻辑 "0 + 0"
+ ///
+ public string purchaseConfig { get; set; }
}
}
diff --git a/TEMUKJD/KJDForms/ShopForms/ShopLoginForm.cs b/TEMUKJD/KJDForms/ShopForms/ShopLoginForm.cs
index 9033fca..3b3e305 100644
--- a/TEMUKJD/KJDForms/ShopForms/ShopLoginForm.cs
+++ b/TEMUKJD/KJDForms/ShopForms/ShopLoginForm.cs
@@ -120,17 +120,19 @@ namespace TemuKJD.KJDForms.ShopForms
{
foreach (var cookie in cookieList)
{
- //if (cookies.Contains(cookie.Name + "=" + cookie.Value))
- // continue;
+ //SUB_PASS_ID要用domain是seller.kuajingmaihuo.com才是能登录店铺后台的
+ if (cookie.Name == "SUB_PASS_ID" && cookie.Domain != "seller.kuajingmaihuo.com")
+ continue;
+
cookies += cookie.Name + "=" + cookie.Value + "; ";
}
cookies = cookies.Trim().TrimEnd(';');
}
+ shop.Cookies = cookies;
if (!string.IsNullOrEmpty(cookies)
&& lstShopCompany.Any(c => c.LoginName == shop.LoginName))
{
- shop.Cookies = cookies;
var lstShopCompanyCopy = lstShopCompany.ToList();
lstShopCompanyCopy = lstShopCompanyCopy.Where(l => l.LoginName == shop.LoginName).ToList();
@@ -280,7 +282,7 @@ namespace TemuKJD.KJDForms.ShopForms
Task.Run(() =>
{
- Thread.Sleep(20);
+ Thread.Sleep(25);
cefWebBrowser.Load(shopMainUrl);
if (openType != EnumOpenType.login)
@@ -288,8 +290,10 @@ namespace TemuKJD.KJDForms.ShopForms
for (int i = 0; i < 50; i++)
{
- Thread.Sleep(100);
+ if (cefWebBrowser.IsLoading)
+ Thread.Sleep(100);
}
+ Thread.Sleep(Randomx.GetId(1000,1500));
//设置 local storage
//if (GlobalConfig.dicLocalStorage != null)
@@ -371,6 +375,8 @@ namespace TemuKJD.KJDForms.ShopForms
var jArr = jObj["result"]?["companyList"]?[0]?["malInfoList"] as JArray;
if (jArr == null)
jArr = new JArray();
+
+ Thread.Sleep(500);
foreach (var productObj in jArr)
{
var prod = JsonHelper.SerializeObject(productObj);
diff --git a/TEMUKJD/KJDForms/ShopForms/SubAccountListForm.Designer.cs b/TEMUKJD/KJDForms/ShopForms/SubAccountListForm.Designer.cs
index f0b36ed..8b83d8b 100644
--- a/TEMUKJD/KJDForms/ShopForms/SubAccountListForm.Designer.cs
+++ b/TEMUKJD/KJDForms/ShopForms/SubAccountListForm.Designer.cs
@@ -33,6 +33,9 @@
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.splitContainer5 = new System.Windows.Forms.SplitContainer();
this.label1 = new System.Windows.Forms.Label();
+ this.btnRefresh = new TemuKJD.UserControls.ButtonEx();
+ this.btnCancel = new TemuKJD.UserControls.ButtonEx();
+ this.btnOpUser = new TemuKJD.UserControls.ButtonEx();
this.label30 = new System.Windows.Forms.Label();
this.label31 = new System.Windows.Forms.Label();
this.repasstextBox = new System.Windows.Forms.TextBox();
@@ -49,9 +52,6 @@
this.label39 = new System.Windows.Forms.Label();
this.nametextBox = new System.Windows.Forms.TextBox();
this.label40 = new System.Windows.Forms.Label();
- this.btnRefresh = new TemuKJD.UserControls.ButtonEx();
- this.btnCancel = new TemuKJD.UserControls.ButtonEx();
- this.btnOpUser = new TemuKJD.UserControls.ButtonEx();
this.dgvUser = new TemuKJD.UserComponent.DataGridViewEx();
this.UserIdColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.UserNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -118,6 +118,53 @@
this.label1.TabIndex = 37;
this.label1.Text = "编辑时,密码为空表示不更改原密码。";
//
+ // btnRefresh
+ //
+ this.btnRefresh.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
+ this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnRefresh.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnRefresh.ForeColor = System.Drawing.Color.White;
+ this.btnRefresh.Location = new System.Drawing.Point(267, 5);
+ this.btnRefresh.Name = "btnRefresh";
+ this.btnRefresh.Size = new System.Drawing.Size(86, 25);
+ this.btnRefresh.TabIndex = 36;
+ this.btnRefresh.Text = "刷新列表";
+ this.btnRefresh.UseVisualStyleBackColor = false;
+ this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
+ //
+ // btnCancel
+ //
+ this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
+ this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnCancel.ForeColor = System.Drawing.Color.White;
+ this.btnCancel.Location = new System.Drawing.Point(59, 328);
+ this.btnCancel.Name = "btnCancel";
+ this.btnCancel.Size = new System.Drawing.Size(86, 25);
+ this.btnCancel.TabIndex = 35;
+ this.btnCancel.Text = "取消编辑";
+ this.btnCancel.UseVisualStyleBackColor = false;
+ this.btnCancel.Visible = false;
+ this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
+ //
+ // btnOpUser
+ //
+ this.btnOpUser.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
+ this.btnOpUser.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnOpUser.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnOpUser.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnOpUser.ForeColor = System.Drawing.Color.White;
+ this.btnOpUser.Location = new System.Drawing.Point(174, 328);
+ this.btnOpUser.Name = "btnOpUser";
+ this.btnOpUser.Size = new System.Drawing.Size(86, 25);
+ this.btnOpUser.TabIndex = 34;
+ this.btnOpUser.Text = "添加用户";
+ this.btnOpUser.UseVisualStyleBackColor = false;
+ this.btnOpUser.Click += new System.EventHandler(this.btnOpUser_Click);
+ //
// label30
//
this.label30.AutoSize = true;
@@ -198,6 +245,7 @@
//
// groupIdcomboBox
//
+ this.groupIdcomboBox.Enabled = false;
this.groupIdcomboBox.FormattingEnabled = true;
this.groupIdcomboBox.Items.AddRange(new object[] {
"客服",
@@ -209,7 +257,7 @@
this.groupIdcomboBox.Name = "groupIdcomboBox";
this.groupIdcomboBox.Size = new System.Drawing.Size(148, 25);
this.groupIdcomboBox.TabIndex = 26;
- this.groupIdcomboBox.Text = "采购";
+ this.groupIdcomboBox.Text = "客服";
//
// label37
//
@@ -273,53 +321,6 @@
this.label40.TabIndex = 18;
this.label40.Text = "账户名:";
//
- // btnRefresh
- //
- this.btnRefresh.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
- this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnRefresh.Cursor = System.Windows.Forms.Cursors.Hand;
- this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnRefresh.ForeColor = System.Drawing.Color.White;
- this.btnRefresh.Location = new System.Drawing.Point(267, 5);
- this.btnRefresh.Name = "btnRefresh";
- this.btnRefresh.Size = new System.Drawing.Size(86, 25);
- this.btnRefresh.TabIndex = 36;
- this.btnRefresh.Text = "刷新列表";
- this.btnRefresh.UseVisualStyleBackColor = false;
- this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
- //
- // btnCancel
- //
- this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
- this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand;
- this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnCancel.ForeColor = System.Drawing.Color.White;
- this.btnCancel.Location = new System.Drawing.Point(59, 328);
- this.btnCancel.Name = "btnCancel";
- this.btnCancel.Size = new System.Drawing.Size(86, 25);
- this.btnCancel.TabIndex = 35;
- this.btnCancel.Text = "取消编辑";
- this.btnCancel.UseVisualStyleBackColor = false;
- this.btnCancel.Visible = false;
- this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
- //
- // btnOpUser
- //
- this.btnOpUser.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
- this.btnOpUser.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnOpUser.Cursor = System.Windows.Forms.Cursors.Hand;
- this.btnOpUser.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnOpUser.ForeColor = System.Drawing.Color.White;
- this.btnOpUser.Location = new System.Drawing.Point(174, 328);
- this.btnOpUser.Name = "btnOpUser";
- this.btnOpUser.Size = new System.Drawing.Size(86, 25);
- this.btnOpUser.TabIndex = 34;
- this.btnOpUser.Text = "添加用户";
- this.btnOpUser.UseVisualStyleBackColor = false;
- this.btnOpUser.Click += new System.EventHandler(this.btnOpUser_Click);
- //
// dgvUser
//
this.dgvUser.AllowUserToAddRows = false;
@@ -328,6 +329,7 @@
this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.dgvUser.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgvUser.BackgroundColor = System.Drawing.Color.White;
+ this.dgvUser.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
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)));
diff --git a/TEMUKJD/KJDForms/ShopForms/SubAccountListForm.cs b/TEMUKJD/KJDForms/ShopForms/SubAccountListForm.cs
index c6f0487..9db8e0e 100644
--- a/TEMUKJD/KJDForms/ShopForms/SubAccountListForm.cs
+++ b/TEMUKJD/KJDForms/ShopForms/SubAccountListForm.cs
@@ -45,8 +45,8 @@ namespace TemuKJD.KJDForms.ShopForms
StringBuilder data = new StringBuilder();
data.Append(UserLogin.GetSignaturex());
data.Append("&name=" + GetHtml.UrlEncodeUtf8(nametextBox.Text));
- data.Append("&username=" + GetHtml.UrlEncodeUtf8(mobiletextBox.Text));
- data.Append("&mobile=" + GetHtml.UrlEncodeUtf8(mobiletextBox.Text));
+ data.Append("&sub_user_name=" + GetHtml.UrlEncodeUtf8(mobiletextBox.Text));
+ data.Append("&sub_user_mobile=" + GetHtml.UrlEncodeUtf8(mobiletextBox.Text));
if (groupIdcomboBox.Text == "客服")
data.Append("&group_id=4");
else if (groupIdcomboBox.Text == "采购")
@@ -64,7 +64,7 @@ namespace TemuKJD.KJDForms.ShopForms
// data.Append("&group_id=8");
if (!string.IsNullOrEmpty(passwordtextBox.Text))
data.Append("&password=" + Md5Base.GetMd5(passwordtextBox.Text).ToLower());
- string url = BaseClass.BuildObjString("user&act=add");
+ string url = BaseClass.BuildObjString("user/add_user");
if (btnOpUser.Text != "添加用户" && !string.IsNullOrEmpty(Uid))
{
data.Append("&id=" + Uid);
diff --git a/TEMUKJD/KJDForms/UploadForms/StockUpForm.Designer.cs b/TEMUKJD/KJDForms/UploadForms/StockUpForm.Designer.cs
index e625bcd..6b9d975 100644
--- a/TEMUKJD/KJDForms/UploadForms/StockUpForm.Designer.cs
+++ b/TEMUKJD/KJDForms/UploadForms/StockUpForm.Designer.cs
@@ -37,7 +37,40 @@ namespace TemuKJD.KJDForms.UploadForms
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
+ this.ucGroupBoxEx4 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
+ this.txtScale2 = new System.Windows.Forms.TextBox();
+ this.label14 = new System.Windows.Forms.Label();
+ this.txtScale1 = new System.Windows.Forms.TextBox();
+ this.panelEx3 = new DevComponents.DotNetBar.PanelEx();
+ this.btnListWarehouse = new DevComponents.DotNetBar.PanelEx();
+ this.btnStartStockUp = new DevComponents.DotNetBar.PanelEx();
+ this.label10 = new System.Windows.Forms.Label();
this.ucGroupBoxEx3 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
+ this.btnCancelSubPurchaseOrder = new DevComponents.DotNetBar.PanelEx();
+ this.panelEx2 = new DevComponents.DotNetBar.PanelEx();
+ this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
+ this.chkHasCreate = new System.Windows.Forms.CheckBox();
+ this.btnSearch = new DevComponents.DotNetBar.PanelEx();
+ this.btnStop = new DevComponents.DotNetBar.PanelEx();
+ this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
+ this.btnRefreshShop = new DevComponents.DotNetBar.PanelEx();
+ this.splitContainer3 = new System.Windows.Forms.SplitContainer();
+ this.splitContainer2 = new System.Windows.Forms.SplitContainer();
+ this.txtPid = new System.Windows.Forms.TextBox();
+ this.txtStockid = new System.Windows.Forms.TextBox();
+ this.label9 = new System.Windows.Forms.Label();
+ this.label4 = new System.Windows.Forms.Label();
+ this.txtParentStockid = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
+ this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+ this.colShopLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colLoginStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+ this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.ucGroupBoxEx99 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
this.cmbCity = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.cmbProvince = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.label3 = new System.Windows.Forms.Label();
@@ -75,32 +108,13 @@ namespace TemuKJD.KJDForms.UploadForms
this.btnAdd = new DevComponents.DotNetBar.PanelEx();
this.btnStopAdd = new DevComponents.DotNetBar.PanelEx();
this.chkLimited = new System.Windows.Forms.CheckBox();
- this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
- this.txtPid = new System.Windows.Forms.TextBox();
- this.label9 = new System.Windows.Forms.Label();
- this.txtParentStockid = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.txtStockid = new System.Windows.Forms.TextBox();
- this.label4 = new System.Windows.Forms.Label();
- this.btnSearch = new DevComponents.DotNetBar.PanelEx();
- this.btnStop = new DevComponents.DotNetBar.PanelEx();
- this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
- this.btnRefreshShop = new DevComponents.DotNetBar.PanelEx();
- this.splitContainer3 = new System.Windows.Forms.SplitContainer();
- this.splitContainer2 = new System.Windows.Forms.SplitContainer();
- this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
this.dgvStock = new TemuKJD.UserComponent.DataGridViewEx();
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
+ this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
this.btnClear = new DevComponents.DotNetBar.PanelEx();
- this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
- this.colShopLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colLoginStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn();
- this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colUpId = new System.Windows.Forms.DataGridViewLinkColumn();
+ this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colSupplierId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colSupplierName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colStockId = new System.Windows.Forms.DataGridViewLinkColumn();
@@ -112,18 +126,18 @@ namespace TemuKJD.KJDForms.UploadForms
this.colPrcie = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colFrom = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colFromFake = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colInCartNumber7d = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colTodaySaleVolume = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colSalesInventoryNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colWaitReceiveNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.colNeedStockUp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
+ this.ucGroupBoxEx4.SuspendLayout();
this.ucGroupBoxEx3.SuspendLayout();
- this.pnlSamePostage.SuspendLayout();
- this.panel3.SuspendLayout();
- this.pnlStepPostage.SuspendLayout();
- this.panel2.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.nudGroupCount)).BeginInit();
- this.panel1.SuspendLayout();
this.ucGroupBoxEx2.SuspendLayout();
this.ucGroupBoxEx1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit();
@@ -135,6 +149,13 @@ namespace TemuKJD.KJDForms.UploadForms
this.splitContainer2.Panel2.SuspendLayout();
this.splitContainer2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit();
+ this.ucGroupBoxEx99.SuspendLayout();
+ this.pnlSamePostage.SuspendLayout();
+ this.panel3.SuspendLayout();
+ this.pnlStepPostage.SuspendLayout();
+ this.panel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.nudGroupCount)).BeginInit();
+ this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvStock)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit();
this.splitContainer4.Panel1.SuspendLayout();
@@ -152,6 +173,7 @@ namespace TemuKJD.KJDForms.UploadForms
//
// splitContainer1.Panel1
//
+ this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx4);
this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx3);
this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx2);
this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxEx1);
@@ -163,501 +185,204 @@ namespace TemuKJD.KJDForms.UploadForms
this.splitContainer1.SplitterDistance = 150;
this.splitContainer1.TabIndex = 9;
//
- // ucGroupBoxEx3
+ // ucGroupBoxEx4
//
- this.ucGroupBoxEx3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ this.ucGroupBoxEx4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
+ this.ucGroupBoxEx4.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.ucGroupBoxEx4.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
+ this.ucGroupBoxEx4.Controls.Add(this.txtScale2);
+ this.ucGroupBoxEx4.Controls.Add(this.label14);
+ this.ucGroupBoxEx4.Controls.Add(this.txtScale1);
+ this.ucGroupBoxEx4.Controls.Add(this.panelEx3);
+ this.ucGroupBoxEx4.Controls.Add(this.btnListWarehouse);
+ this.ucGroupBoxEx4.Controls.Add(this.btnStartStockUp);
+ this.ucGroupBoxEx4.Controls.Add(this.label10);
+ this.ucGroupBoxEx4.Location = new System.Drawing.Point(397, 2);
+ this.ucGroupBoxEx4.Name = "ucGroupBoxEx4";
+ this.ucGroupBoxEx4.Size = new System.Drawing.Size(749, 150);
+ this.ucGroupBoxEx4.TabIndex = 666;
+ this.ucGroupBoxEx4.TabStop = false;
+ this.ucGroupBoxEx4.Text = "创建备货单";
+ //
+ // txtScale2
+ //
+ this.txtScale2.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.txtScale2.Location = new System.Drawing.Point(369, 79);
+ this.txtScale2.Margin = new System.Windows.Forms.Padding(0);
+ this.txtScale2.Name = "txtScale2";
+ this.txtScale2.Size = new System.Drawing.Size(39, 23);
+ this.txtScale2.TabIndex = 680;
+ this.txtScale2.Text = "8";
+ this.txtScale2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // label14
+ //
+ this.label14.AutoSize = true;
+ this.label14.Location = new System.Drawing.Point(223, 82);
+ this.label14.Name = "label14";
+ this.label14.Size = new System.Drawing.Size(147, 17);
+ this.label14.TabIndex = 679;
+ this.label14.Text = "近7日加购大于今日销量 X";
+ //
+ // txtScale1
+ //
+ this.txtScale1.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.txtScale1.Location = new System.Drawing.Point(369, 51);
+ this.txtScale1.Margin = new System.Windows.Forms.Padding(0);
+ this.txtScale1.Name = "txtScale1";
+ this.txtScale1.Size = new System.Drawing.Size(39, 23);
+ this.txtScale1.TabIndex = 677;
+ this.txtScale1.Text = "7";
+ this.txtScale1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // panelEx3
+ //
+ this.panelEx3.CanvasColor = System.Drawing.SystemColors.Control;
+ this.panelEx3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.panelEx3.DisabledBackColor = System.Drawing.Color.Empty;
+ this.panelEx3.Location = new System.Drawing.Point(27, 87);
+ this.panelEx3.Name = "panelEx3";
+ this.panelEx3.Size = new System.Drawing.Size(115, 23);
+ this.panelEx3.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.panelEx3.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.panelEx3.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.panelEx3.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
+ this.panelEx3.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.panelEx3.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
+ this.panelEx3.Style.GradientAngle = 90;
+ this.panelEx3.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
+ this.panelEx3.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.panelEx3.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.panelEx3.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.panelEx3.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
+ this.panelEx3.TabIndex = 664;
+ this.panelEx3.Text = "停止";
+ this.panelEx3.Visible = false;
+ this.panelEx3.Click += new System.EventHandler(this.btnStop_Click);
+ //
+ // btnListWarehouse
+ //
+ this.btnListWarehouse.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnListWarehouse.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnListWarehouse.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnListWarehouse.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnListWarehouse.Location = new System.Drawing.Point(27, 44);
+ this.btnListWarehouse.Name = "btnListWarehouse";
+ this.btnListWarehouse.Size = new System.Drawing.Size(115, 23);
+ this.btnListWarehouse.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnListWarehouse.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnListWarehouse.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnListWarehouse.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnListWarehouse.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnListWarehouse.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnListWarehouse.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnListWarehouse.Style.GradientAngle = 90;
+ this.btnListWarehouse.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnListWarehouse.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnListWarehouse.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnListWarehouse.TabIndex = 660;
+ this.btnListWarehouse.Text = "读取待备货商品";
+ this.btnListWarehouse.Click += new System.EventHandler(this.btnListWarehouse_Click);
+ //
+ // btnStartStockUp
+ //
+ this.btnStartStockUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.btnStartStockUp.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnStartStockUp.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnStartStockUp.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnStartStockUp.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnStartStockUp.Location = new System.Drawing.Point(647, 44);
+ this.btnStartStockUp.Name = "btnStartStockUp";
+ this.btnStartStockUp.Size = new System.Drawing.Size(80, 23);
+ this.btnStartStockUp.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnStartStockUp.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnStartStockUp.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnStartStockUp.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnStartStockUp.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnStartStockUp.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnStartStockUp.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnStartStockUp.Style.GradientAngle = 90;
+ this.btnStartStockUp.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnStartStockUp.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnStartStockUp.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnStartStockUp.TabIndex = 427;
+ this.btnStartStockUp.Text = "开始备货";
+ this.btnStartStockUp.Click += new System.EventHandler(this.btnStartStockUp_Click);
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(163, 54);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(207, 17);
+ this.label10.TabIndex = 678;
+ this.label10.Text = "备货数量:近7日加购小于今日销量 X";
+ //
+ // ucGroupBoxEx3
+ //
+ this.ucGroupBoxEx3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)));
this.ucGroupBoxEx3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.ucGroupBoxEx3.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
- this.ucGroupBoxEx3.Controls.Add(this.cmbCity);
- this.ucGroupBoxEx3.Controls.Add(this.cmbProvince);
- this.ucGroupBoxEx3.Controls.Add(this.label3);
- this.ucGroupBoxEx3.Controls.Add(this.pnlSamePostage);
- this.ucGroupBoxEx3.Controls.Add(this.panel3);
- this.ucGroupBoxEx3.Controls.Add(this.pnlStepPostage);
- this.ucGroupBoxEx3.Controls.Add(this.panel2);
- this.ucGroupBoxEx3.Controls.Add(this.nudGroupCount);
- this.ucGroupBoxEx3.Controls.Add(this.label11);
- this.ucGroupBoxEx3.Controls.Add(this.panel1);
- this.ucGroupBoxEx3.Controls.Add(this.btnAdd);
- this.ucGroupBoxEx3.Controls.Add(this.btnStopAdd);
- this.ucGroupBoxEx3.Controls.Add(this.chkLimited);
- this.ucGroupBoxEx3.Location = new System.Drawing.Point(595, 2);
+ this.ucGroupBoxEx3.Controls.Add(this.btnCancelSubPurchaseOrder);
+ this.ucGroupBoxEx3.Controls.Add(this.panelEx2);
+ this.ucGroupBoxEx3.Location = new System.Drawing.Point(272, 2);
this.ucGroupBoxEx3.Name = "ucGroupBoxEx3";
- this.ucGroupBoxEx3.Size = new System.Drawing.Size(550, 150);
- this.ucGroupBoxEx3.TabIndex = 470;
+ this.ucGroupBoxEx3.Size = new System.Drawing.Size(125, 150);
+ this.ucGroupBoxEx3.TabIndex = 665;
this.ucGroupBoxEx3.TabStop = false;
- this.ucGroupBoxEx3.Text = "创建备货单";
- this.ucGroupBoxEx3.Visible = false;
- //
- // cmbCity
- //
- this.cmbCity.DisplayMember = "Text";
- this.cmbCity.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
- this.cmbCity.FormattingEnabled = true;
- this.cmbCity.ItemHeight = 18;
- this.cmbCity.Location = new System.Drawing.Point(283, 28);
- this.cmbCity.Name = "cmbCity";
- this.cmbCity.Size = new System.Drawing.Size(90, 24);
- this.cmbCity.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.cmbCity.TabIndex = 650;
- this.cmbCity.Text = "请选择";
- //
- // cmbProvince
- //
- this.cmbProvince.DisplayMember = "Text";
- this.cmbProvince.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
- this.cmbProvince.FormattingEnabled = true;
- this.cmbProvince.ItemHeight = 18;
- this.cmbProvince.Location = new System.Drawing.Point(189, 29);
- this.cmbProvince.Name = "cmbProvince";
- this.cmbProvince.Size = new System.Drawing.Size(90, 24);
- this.cmbProvince.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.cmbProvince.TabIndex = 649;
- this.cmbProvince.Text = "请选择";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(130, 32);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(65, 12);
- this.label3.TabIndex = 648;
- this.label3.Text = "发货地区:";
- //
- // pnlSamePostage
- //
- this.pnlSamePostage.Controls.Add(this.label12);
- this.pnlSamePostage.Controls.Add(this.txtSamePostagePrice);
- this.pnlSamePostage.Controls.Add(this.label13);
- this.pnlSamePostage.Location = new System.Drawing.Point(277, 88);
- this.pnlSamePostage.Name = "pnlSamePostage";
- this.pnlSamePostage.Size = new System.Drawing.Size(194, 23);
- this.pnlSamePostage.TabIndex = 641;
- this.pnlSamePostage.Visible = false;
- //
- // label12
- //
- this.label12.Anchor = System.Windows.Forms.AnchorStyles.Left;
- this.label12.AutoSize = true;
- this.label12.Location = new System.Drawing.Point(3, 4);
- this.label12.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
- this.label12.Name = "label12";
- this.label12.Size = new System.Drawing.Size(53, 12);
- this.label12.TabIndex = 612;
- this.label12.Text = "固定运费";
- //
- // txtSamePostagePrice
- //
- this.txtSamePostagePrice.Anchor = System.Windows.Forms.AnchorStyles.Left;
- this.txtSamePostagePrice.Location = new System.Drawing.Point(56, 0);
- this.txtSamePostagePrice.Margin = new System.Windows.Forms.Padding(0);
- this.txtSamePostagePrice.Name = "txtSamePostagePrice";
- this.txtSamePostagePrice.Size = new System.Drawing.Size(45, 21);
- this.txtSamePostagePrice.TabIndex = 613;
- //
- // label13
- //
- this.label13.Anchor = System.Windows.Forms.AnchorStyles.Left;
- this.label13.AutoSize = true;
- this.label13.Location = new System.Drawing.Point(101, 4);
- this.label13.Margin = new System.Windows.Forms.Padding(0);
- this.label13.Name = "label13";
- this.label13.Size = new System.Drawing.Size(17, 12);
- this.label13.TabIndex = 614;
- this.label13.Text = "元";
- //
- // panel3
- //
- this.panel3.Controls.Add(this.rbSamePostage);
- this.panel3.Controls.Add(this.rbStepPostage);
- this.panel3.Controls.Add(this.rbNoPostage);
- this.panel3.Location = new System.Drawing.Point(21, 88);
- this.panel3.Name = "panel3";
- this.panel3.Size = new System.Drawing.Size(250, 23);
- this.panel3.TabIndex = 640;
- //
- // rbSamePostage
- //
- this.rbSamePostage.AutoSize = true;
- this.rbSamePostage.Location = new System.Drawing.Point(83, 1);
- this.rbSamePostage.Name = "rbSamePostage";
- this.rbSamePostage.Size = new System.Drawing.Size(71, 16);
- this.rbSamePostage.TabIndex = 466;
- this.rbSamePostage.Text = "固定运费";
- this.rbSamePostage.UseVisualStyleBackColor = true;
- //
- // rbStepPostage
- //
- this.rbStepPostage.AutoSize = true;
- this.rbStepPostage.Location = new System.Drawing.Point(3, 1);
- this.rbStepPostage.Name = "rbStepPostage";
- this.rbStepPostage.Size = new System.Drawing.Size(71, 16);
- this.rbStepPostage.TabIndex = 465;
- this.rbStepPostage.Text = "阶梯计价";
- this.rbStepPostage.UseVisualStyleBackColor = true;
- //
- // rbNoPostage
- //
- this.rbNoPostage.AutoSize = true;
- this.rbNoPostage.Checked = true;
- this.rbNoPostage.Location = new System.Drawing.Point(163, 1);
- this.rbNoPostage.Name = "rbNoPostage";
- this.rbNoPostage.Size = new System.Drawing.Size(71, 16);
- this.rbNoPostage.TabIndex = 467;
- this.rbNoPostage.TabStop = true;
- this.rbNoPostage.Text = "卖家包邮";
- this.rbNoPostage.UseVisualStyleBackColor = true;
- //
- // pnlStepPostage
- //
- this.pnlStepPostage.Controls.Add(this.rbWithCount);
- this.pnlStepPostage.Controls.Add(this.rbWithWeight);
- this.pnlStepPostage.Controls.Add(this.label2);
- this.pnlStepPostage.Controls.Add(this.txtWeightOrCountStep1);
- this.pnlStepPostage.Controls.Add(this.lblWeightOrCountStep1);
- this.pnlStepPostage.Controls.Add(this.txtWeightOrCountPrice1);
- this.pnlStepPostage.Controls.Add(this.label5);
- this.pnlStepPostage.Controls.Add(this.label6);
- this.pnlStepPostage.Controls.Add(this.txtWeightOrCountStep2);
- this.pnlStepPostage.Controls.Add(this.lblWeightOrCountStep2);
- this.pnlStepPostage.Controls.Add(this.txtWeightOrCountPrice2);
- this.pnlStepPostage.Controls.Add(this.label8);
- this.pnlStepPostage.Location = new System.Drawing.Point(21, 116);
- this.pnlStepPostage.Name = "pnlStepPostage";
- this.pnlStepPostage.Size = new System.Drawing.Size(575, 23);
- this.pnlStepPostage.TabIndex = 639;
- this.pnlStepPostage.Visible = false;
- //
- // rbWithCount
- //
- this.rbWithCount.Anchor = System.Windows.Forms.AnchorStyles.Left;
- this.rbWithCount.AutoSize = true;
- this.rbWithCount.Checked = true;
- this.rbWithCount.Location = new System.Drawing.Point(3, 2);
- this.rbWithCount.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
- this.rbWithCount.Name = "rbWithCount";
- this.rbWithCount.Size = new System.Drawing.Size(59, 16);
- this.rbWithCount.TabIndex = 615;
- this.rbWithCount.TabStop = true;
- this.rbWithCount.Text = "按件数";
- this.rbWithCount.UseVisualStyleBackColor = true;
- //
- // rbWithWeight
- //
- this.rbWithWeight.Anchor = System.Windows.Forms.AnchorStyles.Left;
- this.rbWithWeight.AutoSize = true;
- this.rbWithWeight.Location = new System.Drawing.Point(62, 2);
- this.rbWithWeight.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
- this.rbWithWeight.Name = "rbWithWeight";
- this.rbWithWeight.Size = new System.Drawing.Size(59, 16);
- this.rbWithWeight.TabIndex = 616;
- this.rbWithWeight.Text = "按重量";
- this.rbWithWeight.UseVisualStyleBackColor = true;
- //
- // label2
- //
- this.label2.Anchor = System.Windows.Forms.AnchorStyles.Left;
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(124, 4);
- this.label2.Margin = new System.Windows.Forms.Padding(0);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(53, 12);
- this.label2.TabIndex = 605;
- this.label2.Text = "默认运费";
- //
- // txtWeightOrCountStep1
- //
- this.txtWeightOrCountStep1.Anchor = System.Windows.Forms.AnchorStyles.Left;
- this.txtWeightOrCountStep1.Location = new System.Drawing.Point(177, 0);
- this.txtWeightOrCountStep1.Margin = new System.Windows.Forms.Padding(0);
- this.txtWeightOrCountStep1.Name = "txtWeightOrCountStep1";
- this.txtWeightOrCountStep1.Size = new System.Drawing.Size(45, 21);
- this.txtWeightOrCountStep1.TabIndex = 606;
- //
- // lblWeightOrCountStep1
- //
- this.lblWeightOrCountStep1.Anchor = System.Windows.Forms.AnchorStyles.Left;
- this.lblWeightOrCountStep1.AutoSize = true;
- this.lblWeightOrCountStep1.Location = new System.Drawing.Point(222, 4);
- this.lblWeightOrCountStep1.Margin = new System.Windows.Forms.Padding(0);
- this.lblWeightOrCountStep1.Name = "lblWeightOrCountStep1";
- this.lblWeightOrCountStep1.Size = new System.Drawing.Size(53, 12);
- this.lblWeightOrCountStep1.TabIndex = 607;
- this.lblWeightOrCountStep1.Text = "件以内,";
- //
- // txtWeightOrCountPrice1
- //
- this.txtWeightOrCountPrice1.Anchor = System.Windows.Forms.AnchorStyles.Left;
- this.txtWeightOrCountPrice1.Location = new System.Drawing.Point(275, 0);
- this.txtWeightOrCountPrice1.Margin = new System.Windows.Forms.Padding(0);
- this.txtWeightOrCountPrice1.Name = "txtWeightOrCountPrice1";
- this.txtWeightOrCountPrice1.Size = new System.Drawing.Size(45, 21);
- this.txtWeightOrCountPrice1.TabIndex = 608;
- //
- // label5
- //
- this.label5.Anchor = System.Windows.Forms.AnchorStyles.Left;
- this.label5.AutoSize = true;
- this.label5.Location = new System.Drawing.Point(320, 4);
- this.label5.Margin = new System.Windows.Forms.Padding(0);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(29, 12);
- this.label5.TabIndex = 609;
- this.label5.Text = "元,";
- //
- // label6
- //
- this.label6.Anchor = System.Windows.Forms.AnchorStyles.Left;
- this.label6.AutoSize = true;
- this.label6.Location = new System.Drawing.Point(349, 4);
- this.label6.Margin = new System.Windows.Forms.Padding(0);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(41, 12);
- this.label6.TabIndex = 610;
- this.label6.Text = "每增加";
- //
- // txtWeightOrCountStep2
- //
- this.txtWeightOrCountStep2.Anchor = System.Windows.Forms.AnchorStyles.Left;
- this.txtWeightOrCountStep2.Location = new System.Drawing.Point(390, 0);
- this.txtWeightOrCountStep2.Margin = new System.Windows.Forms.Padding(0);
- this.txtWeightOrCountStep2.Name = "txtWeightOrCountStep2";
- this.txtWeightOrCountStep2.Size = new System.Drawing.Size(45, 21);
- this.txtWeightOrCountStep2.TabIndex = 611;
- //
- // lblWeightOrCountStep2
- //
- this.lblWeightOrCountStep2.Anchor = System.Windows.Forms.AnchorStyles.Left;
- this.lblWeightOrCountStep2.AutoSize = true;
- this.lblWeightOrCountStep2.Location = new System.Drawing.Point(435, 4);
- this.lblWeightOrCountStep2.Margin = new System.Windows.Forms.Padding(0);
- this.lblWeightOrCountStep2.Name = "lblWeightOrCountStep2";
- this.lblWeightOrCountStep2.Size = new System.Drawing.Size(77, 12);
- this.lblWeightOrCountStep2.TabIndex = 612;
- this.lblWeightOrCountStep2.Text = "件,增加运费";
- //
- // txtWeightOrCountPrice2
- //
- this.txtWeightOrCountPrice2.Anchor = System.Windows.Forms.AnchorStyles.Left;
- this.txtWeightOrCountPrice2.Location = new System.Drawing.Point(512, 0);
- this.txtWeightOrCountPrice2.Margin = new System.Windows.Forms.Padding(0);
- this.txtWeightOrCountPrice2.Name = "txtWeightOrCountPrice2";
- this.txtWeightOrCountPrice2.Size = new System.Drawing.Size(45, 21);
- this.txtWeightOrCountPrice2.TabIndex = 613;
- //
- // label8
- //
- this.label8.Anchor = System.Windows.Forms.AnchorStyles.Left;
- this.label8.AutoSize = true;
- this.label8.Location = new System.Drawing.Point(557, 4);
- this.label8.Margin = new System.Windows.Forms.Padding(0);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(17, 12);
- this.label8.TabIndex = 614;
- this.label8.Text = "元";
- //
- // panel2
- //
- this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.panel2.Controls.Add(this.textBox2);
- this.panel2.Controls.Add(this.btnSetNotArea);
- this.panel2.Location = new System.Drawing.Point(151, 59);
- this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(295, 23);
- this.panel2.TabIndex = 638;
- //
- // textBox2
- //
- this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.textBox2.Location = new System.Drawing.Point(0, 0);
- this.textBox2.Name = "textBox2";
- this.textBox2.ReadOnly = true;
- this.textBox2.Size = new System.Drawing.Size(229, 21);
- this.textBox2.TabIndex = 638;
- //
- // btnSetNotArea
- //
- this.btnSetNotArea.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.btnSetNotArea.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.btnSetNotArea.Cursor = System.Windows.Forms.Cursors.Hand;
- this.btnSetNotArea.DisabledBackColor = System.Drawing.Color.Empty;
- this.btnSetNotArea.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnSetNotArea.Location = new System.Drawing.Point(235, 2);
- this.btnSetNotArea.Name = "btnSetNotArea";
- this.btnSetNotArea.Size = new System.Drawing.Size(56, 19);
- this.btnSetNotArea.Style.Alignment = System.Drawing.StringAlignment.Center;
- this.btnSetNotArea.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnSetNotArea.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnSetNotArea.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
- this.btnSetNotArea.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
- this.btnSetNotArea.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
- this.btnSetNotArea.Style.ForeColor.Color = System.Drawing.Color.White;
- this.btnSetNotArea.Style.GradientAngle = 90;
- this.btnSetNotArea.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
- this.btnSetNotArea.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnSetNotArea.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnSetNotArea.TabIndex = 634;
- this.btnSetNotArea.Text = "设置地区";
- //
- // nudGroupCount
- //
- this.nudGroupCount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.nudGroupCount.Location = new System.Drawing.Point(75, 29);
- this.nudGroupCount.Maximum = new decimal(new int[] {
- 10000,
- 0,
- 0,
- 0});
- this.nudGroupCount.Minimum = new decimal(new int[] {
- 1,
- 0,
- 0,
- 0});
- this.nudGroupCount.Name = "nudGroupCount";
- this.nudGroupCount.Size = new System.Drawing.Size(49, 21);
- this.nudGroupCount.TabIndex = 603;
- this.nudGroupCount.Value = new decimal(new int[] {
- 10,
- 0,
- 0,
- 0});
- //
- // label11
- //
- this.label11.AutoSize = true;
- this.label11.Location = new System.Drawing.Point(18, 32);
- this.label11.Name = "label11";
- this.label11.Size = new System.Drawing.Size(65, 12);
- this.label11.TabIndex = 602;
- this.label11.Text = "新建数量:";
- //
- // panel1
- //
- this.panel1.Controls.Add(this.btnSetName);
- this.panel1.Controls.Add(this.rbCustomName);
- this.panel1.Controls.Add(this.rbAutoName);
- this.panel1.Controls.Add(this.label7);
- this.panel1.Location = new System.Drawing.Point(245, 29);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(254, 23);
- this.panel1.TabIndex = 601;
- //
- // btnSetName
- //
- this.btnSetName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.btnSetName.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.btnSetName.Cursor = System.Windows.Forms.Cursors.Hand;
- this.btnSetName.DisabledBackColor = System.Drawing.Color.Empty;
- this.btnSetName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnSetName.Location = new System.Drawing.Point(194, 2);
- this.btnSetName.Name = "btnSetName";
- this.btnSetName.Size = new System.Drawing.Size(56, 19);
- this.btnSetName.Style.Alignment = System.Drawing.StringAlignment.Center;
- this.btnSetName.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnSetName.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnSetName.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
- this.btnSetName.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
- this.btnSetName.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
- this.btnSetName.Style.ForeColor.Color = System.Drawing.Color.White;
- this.btnSetName.Style.GradientAngle = 90;
- this.btnSetName.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
- this.btnSetName.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnSetName.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnSetName.TabIndex = 634;
- this.btnSetName.Text = "设置名称";
- //
- // rbCustomName
- //
- this.rbCustomName.AutoSize = true;
- this.rbCustomName.Location = new System.Drawing.Point(133, 1);
- this.rbCustomName.Name = "rbCustomName";
- this.rbCustomName.Size = new System.Drawing.Size(59, 16);
- this.rbCustomName.TabIndex = 465;
- this.rbCustomName.Text = "自定义";
- this.rbCustomName.UseVisualStyleBackColor = true;
- //
- // rbAutoName
- //
- this.rbAutoName.AutoSize = true;
- this.rbAutoName.Checked = true;
- this.rbAutoName.Location = new System.Drawing.Point(60, 1);
- this.rbAutoName.Name = "rbAutoName";
- this.rbAutoName.Size = new System.Drawing.Size(71, 16);
- this.rbAutoName.TabIndex = 464;
- this.rbAutoName.TabStop = true;
- this.rbAutoName.Text = "自动设置";
- this.rbAutoName.UseVisualStyleBackColor = true;
- //
- // label7
- //
- this.label7.AutoSize = true;
- this.label7.Location = new System.Drawing.Point(1, 3);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(65, 12);
- this.label7.TabIndex = 638;
- this.label7.Text = "模板名称:";
- //
- // btnAdd
- //
- this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.btnAdd.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.btnAdd.Cursor = System.Windows.Forms.Cursors.Hand;
- this.btnAdd.DisabledBackColor = System.Drawing.Color.Empty;
- this.btnAdd.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnAdd.Location = new System.Drawing.Point(454, 29);
- this.btnAdd.Name = "btnAdd";
- this.btnAdd.Size = new System.Drawing.Size(80, 23);
- this.btnAdd.Style.Alignment = System.Drawing.StringAlignment.Center;
- this.btnAdd.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnAdd.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnAdd.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
- this.btnAdd.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
- this.btnAdd.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
- this.btnAdd.Style.ForeColor.Color = System.Drawing.Color.White;
- this.btnAdd.Style.GradientAngle = 90;
- this.btnAdd.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
- this.btnAdd.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnAdd.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
- this.btnAdd.TabIndex = 427;
- this.btnAdd.Text = "开始创建";
- //
- // btnStopAdd
- //
- this.btnStopAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.btnStopAdd.CanvasColor = System.Drawing.SystemColors.Control;
- this.btnStopAdd.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.btnStopAdd.DisabledBackColor = System.Drawing.Color.Empty;
- this.btnStopAdd.Location = new System.Drawing.Point(454, 59);
- this.btnStopAdd.Name = "btnStopAdd";
- this.btnStopAdd.Size = new System.Drawing.Size(80, 23);
- this.btnStopAdd.Style.Alignment = System.Drawing.StringAlignment.Center;
- this.btnStopAdd.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
- this.btnStopAdd.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
- this.btnStopAdd.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
- this.btnStopAdd.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnStopAdd.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
- this.btnStopAdd.Style.GradientAngle = 90;
- this.btnStopAdd.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
- this.btnStopAdd.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
- this.btnStopAdd.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnStopAdd.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- this.btnStopAdd.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
- this.btnStopAdd.TabIndex = 405;
- this.btnStopAdd.Text = "停止创建";
- //
- // chkLimited
- //
- this.chkLimited.AutoSize = true;
- this.chkLimited.Location = new System.Drawing.Point(22, 61);
- this.chkLimited.Name = "chkLimited";
- this.chkLimited.Size = new System.Drawing.Size(132, 16);
- this.chkLimited.TabIndex = 657;
- this.chkLimited.Text = "限制下单区域(可选)";
- this.chkLimited.UseVisualStyleBackColor = true;
+ this.ucGroupBoxEx3.Text = "取消待创建";
+ //
+ // btnCancelSubPurchaseOrder
+ //
+ this.btnCancelSubPurchaseOrder.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnCancelSubPurchaseOrder.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnCancelSubPurchaseOrder.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnCancelSubPurchaseOrder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnCancelSubPurchaseOrder.Location = new System.Drawing.Point(27, 44);
+ this.btnCancelSubPurchaseOrder.Name = "btnCancelSubPurchaseOrder";
+ this.btnCancelSubPurchaseOrder.Size = new System.Drawing.Size(70, 23);
+ this.btnCancelSubPurchaseOrder.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnCancelSubPurchaseOrder.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnCancelSubPurchaseOrder.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnCancelSubPurchaseOrder.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnCancelSubPurchaseOrder.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnCancelSubPurchaseOrder.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnCancelSubPurchaseOrder.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnCancelSubPurchaseOrder.Style.GradientAngle = 90;
+ this.btnCancelSubPurchaseOrder.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnCancelSubPurchaseOrder.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnCancelSubPurchaseOrder.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnCancelSubPurchaseOrder.TabIndex = 427;
+ this.btnCancelSubPurchaseOrder.Text = "取消待创建";
+ this.btnCancelSubPurchaseOrder.Click += new System.EventHandler(this.btnCancelSubPurchaseOrder_Click);
+ //
+ // panelEx2
+ //
+ this.panelEx2.CanvasColor = System.Drawing.SystemColors.Control;
+ this.panelEx2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.panelEx2.DisabledBackColor = System.Drawing.Color.Empty;
+ this.panelEx2.Location = new System.Drawing.Point(27, 87);
+ this.panelEx2.Name = "panelEx2";
+ this.panelEx2.Size = new System.Drawing.Size(70, 23);
+ this.panelEx2.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.panelEx2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.panelEx2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.panelEx2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
+ this.panelEx2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.panelEx2.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
+ this.panelEx2.Style.GradientAngle = 90;
+ this.panelEx2.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
+ this.panelEx2.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.panelEx2.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.panelEx2.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.panelEx2.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
+ this.panelEx2.TabIndex = 405;
+ this.panelEx2.Text = "停止";
+ this.panelEx2.Visible = false;
+ this.panelEx2.Click += new System.EventHandler(this.btnStop_Click);
//
// ucGroupBoxEx2
//
@@ -665,74 +390,25 @@ namespace TemuKJD.KJDForms.UploadForms
| System.Windows.Forms.AnchorStyles.Left)));
this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
- this.ucGroupBoxEx2.Controls.Add(this.txtPid);
- this.ucGroupBoxEx2.Controls.Add(this.label9);
- this.ucGroupBoxEx2.Controls.Add(this.txtParentStockid);
- this.ucGroupBoxEx2.Controls.Add(this.label1);
- this.ucGroupBoxEx2.Controls.Add(this.txtStockid);
- this.ucGroupBoxEx2.Controls.Add(this.label4);
+ this.ucGroupBoxEx2.Controls.Add(this.chkHasCreate);
this.ucGroupBoxEx2.Controls.Add(this.btnSearch);
this.ucGroupBoxEx2.Controls.Add(this.btnStop);
this.ucGroupBoxEx2.Location = new System.Drawing.Point(147, 2);
this.ucGroupBoxEx2.Name = "ucGroupBoxEx2";
- this.ucGroupBoxEx2.Size = new System.Drawing.Size(231, 150);
+ this.ucGroupBoxEx2.Size = new System.Drawing.Size(125, 150);
this.ucGroupBoxEx2.TabIndex = 469;
this.ucGroupBoxEx2.TabStop = false;
this.ucGroupBoxEx2.Text = "读取待创建";
//
- // txtPid
+ // chkHasCreate
//
- this.txtPid.Location = new System.Drawing.Point(70, 77);
- this.txtPid.Name = "txtPid";
- this.txtPid.Size = new System.Drawing.Size(146, 21);
- this.txtPid.TabIndex = 604;
- this.txtPid.Visible = false;
- //
- // label9
- //
- this.label9.AutoSize = true;
- this.label9.Location = new System.Drawing.Point(37, 80);
- this.label9.Name = "label9";
- this.label9.Size = new System.Drawing.Size(29, 12);
- this.label9.TabIndex = 603;
- this.label9.Text = "货号";
- this.label9.Visible = false;
- //
- // txtParentStockid
- //
- this.txtParentStockid.Location = new System.Drawing.Point(70, 53);
- this.txtParentStockid.Name = "txtParentStockid";
- this.txtParentStockid.Size = new System.Drawing.Size(146, 21);
- this.txtParentStockid.TabIndex = 602;
- this.txtParentStockid.Visible = false;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(25, 56);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(41, 12);
- this.label1.TabIndex = 601;
- this.label1.Text = "母单号";
- this.label1.Visible = false;
- //
- // txtStockid
- //
- this.txtStockid.Location = new System.Drawing.Point(70, 29);
- this.txtStockid.Name = "txtStockid";
- this.txtStockid.Size = new System.Drawing.Size(146, 21);
- this.txtStockid.TabIndex = 594;
- this.txtStockid.Visible = false;
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(13, 32);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(53, 12);
- this.label4.TabIndex = 474;
- this.label4.Text = "备货单号";
- this.label4.Visible = false;
+ this.chkHasCreate.AutoSize = true;
+ this.chkHasCreate.Location = new System.Drawing.Point(25, 120);
+ this.chkHasCreate.Name = "chkHasCreate";
+ this.chkHasCreate.Size = new System.Drawing.Size(63, 21);
+ this.chkHasCreate.TabIndex = 658;
+ this.chkHasCreate.Text = "已送货";
+ this.chkHasCreate.UseVisualStyleBackColor = true;
//
// btnSearch
//
@@ -740,7 +416,7 @@ namespace TemuKJD.KJDForms.UploadForms
this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSearch.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.btnSearch.Location = new System.Drawing.Point(70, 107);
+ this.btnSearch.Location = new System.Drawing.Point(25, 44);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(70, 23);
this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -755,7 +431,7 @@ namespace TemuKJD.KJDForms.UploadForms
this.btnSearch.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSearch.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnSearch.TabIndex = 427;
- this.btnSearch.Text = "开始搜索";
+ this.btnSearch.Text = "读取待创建";
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
//
// btnStop
@@ -763,7 +439,7 @@ namespace TemuKJD.KJDForms.UploadForms
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(146, 107);
+ this.btnStop.Location = new System.Drawing.Point(25, 87);
this.btnStop.Name = "btnStop";
this.btnStop.Size = new System.Drawing.Size(70, 23);
this.btnStop.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -780,6 +456,8 @@ namespace TemuKJD.KJDForms.UploadForms
this.btnStop.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
this.btnStop.TabIndex = 405;
this.btnStop.Text = "停止搜索";
+ this.btnStop.Visible = false;
+ this.btnStop.Click += new System.EventHandler(this.btnStop_Click);
//
// ucGroupBoxEx1
//
@@ -848,17 +526,78 @@ namespace TemuKJD.KJDForms.UploadForms
//
// splitContainer2.Panel1
//
+ this.splitContainer2.Panel1.Controls.Add(this.txtPid);
+ this.splitContainer2.Panel1.Controls.Add(this.txtStockid);
+ this.splitContainer2.Panel1.Controls.Add(this.label9);
+ this.splitContainer2.Panel1.Controls.Add(this.label4);
+ this.splitContainer2.Panel1.Controls.Add(this.txtParentStockid);
+ this.splitContainer2.Panel1.Controls.Add(this.label1);
this.splitContainer2.Panel1.Controls.Add(this.dgvShop);
this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0);
//
// splitContainer2.Panel2
//
+ this.splitContainer2.Panel2.Controls.Add(this.ucGroupBoxEx99);
this.splitContainer2.Panel2.Controls.Add(this.dgvStock);
this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0);
this.splitContainer2.Size = new System.Drawing.Size(1148, 405);
this.splitContainer2.SplitterDistance = 270;
this.splitContainer2.TabIndex = 0;
//
+ // txtPid
+ //
+ this.txtPid.Location = new System.Drawing.Point(85, 94);
+ this.txtPid.Name = "txtPid";
+ this.txtPid.Size = new System.Drawing.Size(146, 23);
+ this.txtPid.TabIndex = 604;
+ this.txtPid.Visible = false;
+ //
+ // txtStockid
+ //
+ this.txtStockid.Location = new System.Drawing.Point(85, 46);
+ this.txtStockid.Name = "txtStockid";
+ this.txtStockid.Size = new System.Drawing.Size(146, 23);
+ this.txtStockid.TabIndex = 594;
+ this.txtStockid.Visible = false;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(52, 97);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(32, 17);
+ this.label9.TabIndex = 603;
+ this.label9.Text = "货号";
+ this.label9.Visible = false;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(28, 49);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(56, 17);
+ this.label4.TabIndex = 474;
+ this.label4.Text = "备货单号";
+ this.label4.Visible = false;
+ //
+ // txtParentStockid
+ //
+ this.txtParentStockid.Location = new System.Drawing.Point(85, 70);
+ this.txtParentStockid.Name = "txtParentStockid";
+ this.txtParentStockid.Size = new System.Drawing.Size(146, 23);
+ this.txtParentStockid.TabIndex = 602;
+ this.txtParentStockid.Visible = false;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(40, 73);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(44, 17);
+ this.label1.TabIndex = 601;
+ this.label1.Text = "母单号";
+ this.label1.Visible = false;
+ //
// dgvShop
//
this.dgvShop.AllowUserToAddRows = false;
@@ -896,101 +635,6 @@ namespace TemuKJD.KJDForms.UploadForms
this.dgvShop.TabIndex = 6;
this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick);
//
- // dgvStock
- //
- this.dgvStock.AllowUserToAddRows = false;
- this.dgvStock.AllowUserToDeleteRows = false;
- dataGridViewCellStyle4.BackColor = System.Drawing.Color.WhiteSmoke;
- this.dgvStock.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
- this.dgvStock.BackgroundColor = System.Drawing.Color.White;
- this.dgvStock.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
- dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.dgvStock.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
- this.dgvStock.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dgvStock.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.colUpId,
- this.colSupplierId,
- this.colSupplierName,
- this.colStockId,
- this.colParentStockId,
- this.colProductSkcPic,
- this.colProductId,
- this.colProdSkc,
- this.colProdName,
- this.colPrcie,
- this.colFrom,
- this.colFromFake,
- this.colMsg});
- this.dgvStock.Dock = System.Windows.Forms.DockStyle.Fill;
- this.dgvStock.Location = new System.Drawing.Point(0, 0);
- this.dgvStock.Name = "dgvStock";
- this.dgvStock.ReadOnly = true;
- dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.dgvStock.RowsDefaultCellStyle = dataGridViewCellStyle6;
- this.dgvStock.RowTemplate.Height = 23;
- this.dgvStock.Size = new System.Drawing.Size(870, 405);
- this.dgvStock.TabIndex = 187;
- //
- // splitContainer4
- //
- this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill;
- this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
- this.splitContainer4.Location = new System.Drawing.Point(0, 0);
- this.splitContainer4.Name = "splitContainer4";
- //
- // splitContainer4.Panel1
- //
- this.splitContainer4.Panel1.Controls.Add(this.statusBar);
- //
- // splitContainer4.Panel2
- //
- this.splitContainer4.Panel2.Controls.Add(this.btnClear);
- this.splitContainer4.Size = new System.Drawing.Size(1148, 26);
- this.splitContainer4.SplitterDistance = 1033;
- this.splitContainer4.TabIndex = 3;
- //
- // 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(1033, 26);
- this.statusBar.TabIndex = 2;
- //
- // btnClear
- //
- this.btnClear.Anchor = 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(17, 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 = "清空结果";
- //
// colSelect
//
this.colSelect.HeaderText = "全选";
@@ -1047,6 +691,630 @@ namespace TemuKJD.KJDForms.UploadForms
this.colMessage.ReadOnly = true;
this.colMessage.Width = 120;
//
+ // ucGroupBoxEx99
+ //
+ this.ucGroupBoxEx99.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.ucGroupBoxEx99.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.ucGroupBoxEx99.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
+ this.ucGroupBoxEx99.Controls.Add(this.cmbCity);
+ this.ucGroupBoxEx99.Controls.Add(this.cmbProvince);
+ this.ucGroupBoxEx99.Controls.Add(this.label3);
+ this.ucGroupBoxEx99.Controls.Add(this.pnlSamePostage);
+ this.ucGroupBoxEx99.Controls.Add(this.panel3);
+ this.ucGroupBoxEx99.Controls.Add(this.pnlStepPostage);
+ this.ucGroupBoxEx99.Controls.Add(this.panel2);
+ this.ucGroupBoxEx99.Controls.Add(this.nudGroupCount);
+ this.ucGroupBoxEx99.Controls.Add(this.label11);
+ this.ucGroupBoxEx99.Controls.Add(this.panel1);
+ this.ucGroupBoxEx99.Controls.Add(this.btnAdd);
+ this.ucGroupBoxEx99.Controls.Add(this.btnStopAdd);
+ this.ucGroupBoxEx99.Controls.Add(this.chkLimited);
+ this.ucGroupBoxEx99.Location = new System.Drawing.Point(296, 46);
+ this.ucGroupBoxEx99.Name = "ucGroupBoxEx99";
+ this.ucGroupBoxEx99.Size = new System.Drawing.Size(550, 150);
+ this.ucGroupBoxEx99.TabIndex = 470;
+ this.ucGroupBoxEx99.TabStop = false;
+ this.ucGroupBoxEx99.Text = "创建备货单";
+ this.ucGroupBoxEx99.Visible = false;
+ //
+ // cmbCity
+ //
+ this.cmbCity.DisplayMember = "Text";
+ this.cmbCity.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.cmbCity.FormattingEnabled = true;
+ this.cmbCity.ItemHeight = 18;
+ this.cmbCity.Location = new System.Drawing.Point(283, 28);
+ this.cmbCity.Name = "cmbCity";
+ this.cmbCity.Size = new System.Drawing.Size(90, 24);
+ this.cmbCity.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.cmbCity.TabIndex = 650;
+ this.cmbCity.Text = "请选择";
+ //
+ // cmbProvince
+ //
+ this.cmbProvince.DisplayMember = "Text";
+ this.cmbProvince.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.cmbProvince.FormattingEnabled = true;
+ this.cmbProvince.ItemHeight = 18;
+ this.cmbProvince.Location = new System.Drawing.Point(189, 29);
+ this.cmbProvince.Name = "cmbProvince";
+ this.cmbProvince.Size = new System.Drawing.Size(90, 24);
+ this.cmbProvince.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.cmbProvince.TabIndex = 649;
+ this.cmbProvince.Text = "请选择";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(130, 32);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(68, 17);
+ this.label3.TabIndex = 648;
+ this.label3.Text = "发货地区:";
+ //
+ // pnlSamePostage
+ //
+ this.pnlSamePostage.Controls.Add(this.label12);
+ this.pnlSamePostage.Controls.Add(this.txtSamePostagePrice);
+ this.pnlSamePostage.Controls.Add(this.label13);
+ this.pnlSamePostage.Location = new System.Drawing.Point(277, 88);
+ this.pnlSamePostage.Name = "pnlSamePostage";
+ this.pnlSamePostage.Size = new System.Drawing.Size(194, 23);
+ this.pnlSamePostage.TabIndex = 641;
+ this.pnlSamePostage.Visible = false;
+ //
+ // label12
+ //
+ this.label12.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(3, 3);
+ this.label12.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(56, 17);
+ this.label12.TabIndex = 612;
+ this.label12.Text = "固定运费";
+ //
+ // txtSamePostagePrice
+ //
+ this.txtSamePostagePrice.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.txtSamePostagePrice.Location = new System.Drawing.Point(59, 0);
+ this.txtSamePostagePrice.Margin = new System.Windows.Forms.Padding(0);
+ this.txtSamePostagePrice.Name = "txtSamePostagePrice";
+ this.txtSamePostagePrice.Size = new System.Drawing.Size(45, 23);
+ this.txtSamePostagePrice.TabIndex = 613;
+ //
+ // label13
+ //
+ this.label13.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(104, 3);
+ this.label13.Margin = new System.Windows.Forms.Padding(0);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(20, 17);
+ this.label13.TabIndex = 614;
+ this.label13.Text = "元";
+ //
+ // panel3
+ //
+ this.panel3.Controls.Add(this.rbSamePostage);
+ this.panel3.Controls.Add(this.rbStepPostage);
+ this.panel3.Controls.Add(this.rbNoPostage);
+ this.panel3.Location = new System.Drawing.Point(21, 88);
+ this.panel3.Name = "panel3";
+ this.panel3.Size = new System.Drawing.Size(250, 23);
+ this.panel3.TabIndex = 640;
+ //
+ // rbSamePostage
+ //
+ this.rbSamePostage.AutoSize = true;
+ this.rbSamePostage.Location = new System.Drawing.Point(83, 1);
+ this.rbSamePostage.Name = "rbSamePostage";
+ this.rbSamePostage.Size = new System.Drawing.Size(74, 21);
+ this.rbSamePostage.TabIndex = 466;
+ this.rbSamePostage.Text = "固定运费";
+ this.rbSamePostage.UseVisualStyleBackColor = true;
+ //
+ // rbStepPostage
+ //
+ this.rbStepPostage.AutoSize = true;
+ this.rbStepPostage.Location = new System.Drawing.Point(3, 1);
+ this.rbStepPostage.Name = "rbStepPostage";
+ this.rbStepPostage.Size = new System.Drawing.Size(74, 21);
+ this.rbStepPostage.TabIndex = 465;
+ this.rbStepPostage.Text = "阶梯计价";
+ this.rbStepPostage.UseVisualStyleBackColor = true;
+ //
+ // rbNoPostage
+ //
+ this.rbNoPostage.AutoSize = true;
+ this.rbNoPostage.Checked = true;
+ this.rbNoPostage.Location = new System.Drawing.Point(163, 1);
+ this.rbNoPostage.Name = "rbNoPostage";
+ this.rbNoPostage.Size = new System.Drawing.Size(74, 21);
+ this.rbNoPostage.TabIndex = 467;
+ this.rbNoPostage.TabStop = true;
+ this.rbNoPostage.Text = "卖家包邮";
+ this.rbNoPostage.UseVisualStyleBackColor = true;
+ //
+ // pnlStepPostage
+ //
+ this.pnlStepPostage.Controls.Add(this.rbWithCount);
+ this.pnlStepPostage.Controls.Add(this.rbWithWeight);
+ this.pnlStepPostage.Controls.Add(this.label2);
+ this.pnlStepPostage.Controls.Add(this.txtWeightOrCountStep1);
+ this.pnlStepPostage.Controls.Add(this.lblWeightOrCountStep1);
+ this.pnlStepPostage.Controls.Add(this.txtWeightOrCountPrice1);
+ this.pnlStepPostage.Controls.Add(this.label5);
+ this.pnlStepPostage.Controls.Add(this.label6);
+ this.pnlStepPostage.Controls.Add(this.txtWeightOrCountStep2);
+ this.pnlStepPostage.Controls.Add(this.lblWeightOrCountStep2);
+ this.pnlStepPostage.Controls.Add(this.txtWeightOrCountPrice2);
+ this.pnlStepPostage.Controls.Add(this.label8);
+ this.pnlStepPostage.Location = new System.Drawing.Point(21, 116);
+ this.pnlStepPostage.Name = "pnlStepPostage";
+ this.pnlStepPostage.Size = new System.Drawing.Size(575, 23);
+ this.pnlStepPostage.TabIndex = 639;
+ this.pnlStepPostage.Visible = false;
+ //
+ // rbWithCount
+ //
+ this.rbWithCount.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.rbWithCount.AutoSize = true;
+ this.rbWithCount.Checked = true;
+ this.rbWithCount.Location = new System.Drawing.Point(3, 1);
+ this.rbWithCount.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
+ this.rbWithCount.Name = "rbWithCount";
+ this.rbWithCount.Size = new System.Drawing.Size(62, 21);
+ this.rbWithCount.TabIndex = 615;
+ this.rbWithCount.TabStop = true;
+ this.rbWithCount.Text = "按件数";
+ this.rbWithCount.UseVisualStyleBackColor = true;
+ //
+ // rbWithWeight
+ //
+ this.rbWithWeight.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.rbWithWeight.AutoSize = true;
+ this.rbWithWeight.Location = new System.Drawing.Point(65, 1);
+ this.rbWithWeight.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
+ this.rbWithWeight.Name = "rbWithWeight";
+ this.rbWithWeight.Size = new System.Drawing.Size(62, 21);
+ this.rbWithWeight.TabIndex = 616;
+ this.rbWithWeight.Text = "按重量";
+ this.rbWithWeight.UseVisualStyleBackColor = true;
+ //
+ // label2
+ //
+ this.label2.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(130, 3);
+ this.label2.Margin = new System.Windows.Forms.Padding(0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(56, 17);
+ this.label2.TabIndex = 605;
+ this.label2.Text = "默认运费";
+ //
+ // txtWeightOrCountStep1
+ //
+ this.txtWeightOrCountStep1.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.txtWeightOrCountStep1.Location = new System.Drawing.Point(186, 0);
+ this.txtWeightOrCountStep1.Margin = new System.Windows.Forms.Padding(0);
+ this.txtWeightOrCountStep1.Name = "txtWeightOrCountStep1";
+ this.txtWeightOrCountStep1.Size = new System.Drawing.Size(45, 23);
+ this.txtWeightOrCountStep1.TabIndex = 606;
+ //
+ // lblWeightOrCountStep1
+ //
+ this.lblWeightOrCountStep1.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.lblWeightOrCountStep1.AutoSize = true;
+ this.lblWeightOrCountStep1.Location = new System.Drawing.Point(231, 3);
+ this.lblWeightOrCountStep1.Margin = new System.Windows.Forms.Padding(0);
+ this.lblWeightOrCountStep1.Name = "lblWeightOrCountStep1";
+ this.lblWeightOrCountStep1.Size = new System.Drawing.Size(56, 17);
+ this.lblWeightOrCountStep1.TabIndex = 607;
+ this.lblWeightOrCountStep1.Text = "件以内,";
+ //
+ // txtWeightOrCountPrice1
+ //
+ this.txtWeightOrCountPrice1.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.txtWeightOrCountPrice1.Location = new System.Drawing.Point(287, 0);
+ this.txtWeightOrCountPrice1.Margin = new System.Windows.Forms.Padding(0);
+ this.txtWeightOrCountPrice1.Name = "txtWeightOrCountPrice1";
+ this.txtWeightOrCountPrice1.Size = new System.Drawing.Size(45, 23);
+ this.txtWeightOrCountPrice1.TabIndex = 608;
+ //
+ // label5
+ //
+ this.label5.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(332, 3);
+ this.label5.Margin = new System.Windows.Forms.Padding(0);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(32, 17);
+ this.label5.TabIndex = 609;
+ this.label5.Text = "元,";
+ //
+ // label6
+ //
+ this.label6.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(364, 3);
+ this.label6.Margin = new System.Windows.Forms.Padding(0);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(44, 17);
+ this.label6.TabIndex = 610;
+ this.label6.Text = "每增加";
+ //
+ // txtWeightOrCountStep2
+ //
+ this.txtWeightOrCountStep2.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.txtWeightOrCountStep2.Location = new System.Drawing.Point(408, 0);
+ this.txtWeightOrCountStep2.Margin = new System.Windows.Forms.Padding(0);
+ this.txtWeightOrCountStep2.Name = "txtWeightOrCountStep2";
+ this.txtWeightOrCountStep2.Size = new System.Drawing.Size(45, 23);
+ this.txtWeightOrCountStep2.TabIndex = 611;
+ //
+ // lblWeightOrCountStep2
+ //
+ this.lblWeightOrCountStep2.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.lblWeightOrCountStep2.AutoSize = true;
+ this.lblWeightOrCountStep2.Location = new System.Drawing.Point(453, 3);
+ this.lblWeightOrCountStep2.Margin = new System.Windows.Forms.Padding(0);
+ this.lblWeightOrCountStep2.Name = "lblWeightOrCountStep2";
+ this.lblWeightOrCountStep2.Size = new System.Drawing.Size(80, 17);
+ this.lblWeightOrCountStep2.TabIndex = 612;
+ this.lblWeightOrCountStep2.Text = "件,增加运费";
+ //
+ // txtWeightOrCountPrice2
+ //
+ this.txtWeightOrCountPrice2.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.txtWeightOrCountPrice2.Location = new System.Drawing.Point(0, 23);
+ this.txtWeightOrCountPrice2.Margin = new System.Windows.Forms.Padding(0);
+ this.txtWeightOrCountPrice2.Name = "txtWeightOrCountPrice2";
+ this.txtWeightOrCountPrice2.Size = new System.Drawing.Size(45, 23);
+ this.txtWeightOrCountPrice2.TabIndex = 613;
+ //
+ // label8
+ //
+ this.label8.Anchor = System.Windows.Forms.AnchorStyles.Left;
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(45, 26);
+ this.label8.Margin = new System.Windows.Forms.Padding(0);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(20, 17);
+ this.label8.TabIndex = 614;
+ this.label8.Text = "元";
+ //
+ // panel2
+ //
+ this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.panel2.Controls.Add(this.textBox2);
+ this.panel2.Controls.Add(this.btnSetNotArea);
+ this.panel2.Location = new System.Drawing.Point(151, 59);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(295, 23);
+ this.panel2.TabIndex = 638;
+ //
+ // textBox2
+ //
+ this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.textBox2.Location = new System.Drawing.Point(0, 0);
+ this.textBox2.Name = "textBox2";
+ this.textBox2.ReadOnly = true;
+ this.textBox2.Size = new System.Drawing.Size(229, 23);
+ this.textBox2.TabIndex = 638;
+ //
+ // btnSetNotArea
+ //
+ this.btnSetNotArea.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.btnSetNotArea.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnSetNotArea.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnSetNotArea.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnSetNotArea.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnSetNotArea.Location = new System.Drawing.Point(235, 2);
+ this.btnSetNotArea.Name = "btnSetNotArea";
+ this.btnSetNotArea.Size = new System.Drawing.Size(56, 19);
+ this.btnSetNotArea.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnSetNotArea.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnSetNotArea.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnSetNotArea.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnSetNotArea.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnSetNotArea.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnSetNotArea.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnSetNotArea.Style.GradientAngle = 90;
+ this.btnSetNotArea.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnSetNotArea.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnSetNotArea.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnSetNotArea.TabIndex = 634;
+ this.btnSetNotArea.Text = "设置地区";
+ //
+ // nudGroupCount
+ //
+ this.nudGroupCount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.nudGroupCount.Location = new System.Drawing.Point(75, 29);
+ this.nudGroupCount.Maximum = new decimal(new int[] {
+ 10000,
+ 0,
+ 0,
+ 0});
+ this.nudGroupCount.Minimum = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ this.nudGroupCount.Name = "nudGroupCount";
+ this.nudGroupCount.Size = new System.Drawing.Size(49, 23);
+ this.nudGroupCount.TabIndex = 603;
+ this.nudGroupCount.Value = new decimal(new int[] {
+ 10,
+ 0,
+ 0,
+ 0});
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(18, 32);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(68, 17);
+ this.label11.TabIndex = 602;
+ this.label11.Text = "新建数量:";
+ //
+ // panel1
+ //
+ this.panel1.Controls.Add(this.btnSetName);
+ this.panel1.Controls.Add(this.rbCustomName);
+ this.panel1.Controls.Add(this.rbAutoName);
+ this.panel1.Controls.Add(this.label7);
+ this.panel1.Location = new System.Drawing.Point(245, 29);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(254, 23);
+ this.panel1.TabIndex = 601;
+ //
+ // btnSetName
+ //
+ this.btnSetName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.btnSetName.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnSetName.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnSetName.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnSetName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnSetName.Location = new System.Drawing.Point(194, 2);
+ this.btnSetName.Name = "btnSetName";
+ this.btnSetName.Size = new System.Drawing.Size(56, 19);
+ this.btnSetName.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnSetName.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnSetName.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnSetName.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnSetName.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnSetName.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnSetName.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnSetName.Style.GradientAngle = 90;
+ this.btnSetName.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnSetName.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnSetName.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnSetName.TabIndex = 634;
+ this.btnSetName.Text = "设置名称";
+ //
+ // rbCustomName
+ //
+ this.rbCustomName.AutoSize = true;
+ this.rbCustomName.Location = new System.Drawing.Point(133, 1);
+ this.rbCustomName.Name = "rbCustomName";
+ this.rbCustomName.Size = new System.Drawing.Size(62, 21);
+ this.rbCustomName.TabIndex = 465;
+ this.rbCustomName.Text = "自定义";
+ this.rbCustomName.UseVisualStyleBackColor = true;
+ //
+ // rbAutoName
+ //
+ this.rbAutoName.AutoSize = true;
+ this.rbAutoName.Checked = true;
+ this.rbAutoName.Location = new System.Drawing.Point(60, 1);
+ this.rbAutoName.Name = "rbAutoName";
+ this.rbAutoName.Size = new System.Drawing.Size(74, 21);
+ this.rbAutoName.TabIndex = 464;
+ this.rbAutoName.TabStop = true;
+ this.rbAutoName.Text = "自动设置";
+ this.rbAutoName.UseVisualStyleBackColor = true;
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(1, 3);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(68, 17);
+ this.label7.TabIndex = 638;
+ this.label7.Text = "模板名称:";
+ //
+ // btnAdd
+ //
+ this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.btnAdd.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnAdd.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnAdd.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnAdd.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btnAdd.Location = new System.Drawing.Point(454, 29);
+ this.btnAdd.Name = "btnAdd";
+ this.btnAdd.Size = new System.Drawing.Size(80, 23);
+ this.btnAdd.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnAdd.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnAdd.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnAdd.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.btnAdd.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
+ this.btnAdd.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
+ this.btnAdd.Style.ForeColor.Color = System.Drawing.Color.White;
+ this.btnAdd.Style.GradientAngle = 90;
+ this.btnAdd.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnAdd.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnAdd.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
+ this.btnAdd.TabIndex = 427;
+ this.btnAdd.Text = "开始创建";
+ //
+ // btnStopAdd
+ //
+ this.btnStopAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.btnStopAdd.CanvasColor = System.Drawing.SystemColors.Control;
+ this.btnStopAdd.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.btnStopAdd.DisabledBackColor = System.Drawing.Color.Empty;
+ this.btnStopAdd.Location = new System.Drawing.Point(454, 59);
+ this.btnStopAdd.Name = "btnStopAdd";
+ this.btnStopAdd.Size = new System.Drawing.Size(80, 23);
+ this.btnStopAdd.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnStopAdd.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.btnStopAdd.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.btnStopAdd.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
+ this.btnStopAdd.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnStopAdd.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
+ this.btnStopAdd.Style.GradientAngle = 90;
+ this.btnStopAdd.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnStopAdd.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.btnStopAdd.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnStopAdd.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.btnStopAdd.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
+ this.btnStopAdd.TabIndex = 405;
+ this.btnStopAdd.Text = "停止创建";
+ //
+ // chkLimited
+ //
+ this.chkLimited.AutoSize = true;
+ this.chkLimited.Location = new System.Drawing.Point(22, 61);
+ this.chkLimited.Name = "chkLimited";
+ this.chkLimited.Size = new System.Drawing.Size(131, 21);
+ this.chkLimited.TabIndex = 657;
+ this.chkLimited.Text = "限制下单区域(可选)";
+ this.chkLimited.UseVisualStyleBackColor = true;
+ //
+ // dgvStock
+ //
+ this.dgvStock.AllowUserToAddRows = false;
+ this.dgvStock.AllowUserToDeleteRows = false;
+ dataGridViewCellStyle4.BackColor = System.Drawing.Color.WhiteSmoke;
+ this.dgvStock.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
+ this.dgvStock.BackgroundColor = System.Drawing.Color.White;
+ this.dgvStock.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.dgvStock.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
+ this.dgvStock.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvStock.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.colUpId,
+ this.colCheck,
+ this.colSupplierId,
+ this.colSupplierName,
+ this.colStockId,
+ this.colParentStockId,
+ this.colProductSkcPic,
+ this.colProductId,
+ this.colProdSkc,
+ this.colProdName,
+ this.colPrcie,
+ this.colFrom,
+ this.colFromFake,
+ this.colInCartNumber7d,
+ this.colTodaySaleVolume,
+ this.colSalesInventoryNum,
+ this.colWaitReceiveNum,
+ this.colNeedStockUp,
+ this.colMsg});
+ this.dgvStock.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.dgvStock.Location = new System.Drawing.Point(0, 0);
+ this.dgvStock.Name = "dgvStock";
+ this.dgvStock.ReadOnly = true;
+ dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.dgvStock.RowsDefaultCellStyle = dataGridViewCellStyle6;
+ this.dgvStock.RowTemplate.Height = 23;
+ this.dgvStock.Size = new System.Drawing.Size(870, 405);
+ this.dgvStock.TabIndex = 187;
+ this.dgvStock.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvStock_CellContentClick);
+ //
+ // splitContainer4
+ //
+ this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
+ this.splitContainer4.Location = new System.Drawing.Point(0, 0);
+ this.splitContainer4.Name = "splitContainer4";
+ //
+ // splitContainer4.Panel1
+ //
+ this.splitContainer4.Panel1.Controls.Add(this.statusBar);
+ //
+ // splitContainer4.Panel2
+ //
+ this.splitContainer4.Panel2.Controls.Add(this.panelEx1);
+ this.splitContainer4.Panel2.Controls.Add(this.btnClear);
+ this.splitContainer4.Size = new System.Drawing.Size(1148, 26);
+ this.splitContainer4.SplitterDistance = 870;
+ this.splitContainer4.TabIndex = 3;
+ //
+ // 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(870, 26);
+ this.statusBar.TabIndex = 2;
+ //
+ // panelEx1
+ //
+ this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control;
+ this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty;
+ this.panelEx1.Location = new System.Drawing.Point(155, 0);
+ this.panelEx1.Name = "panelEx1";
+ this.panelEx1.Size = new System.Drawing.Size(115, 23);
+ this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center;
+ this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
+ this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
+ this.panelEx1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
+ this.panelEx1.Style.GradientAngle = 90;
+ this.panelEx1.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
+ this.panelEx1.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
+ this.panelEx1.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.panelEx1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
+ this.panelEx1.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
+ this.panelEx1.TabIndex = 668;
+ this.panelEx1.Text = "停止当前操作";
+ this.panelEx1.Click += new System.EventHandler(this.btnStop_Click);
+ //
+ // btnClear
+ //
+ this.btnClear.Anchor = 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(47, 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;
+ //
// colUpId
//
this.colUpId.HeaderText = "上家Id";
@@ -1057,6 +1325,15 @@ namespace TemuKJD.KJDForms.UploadForms
this.colUpId.Visible = false;
this.colUpId.Width = 95;
//
+ // colCheck
+ //
+ this.colCheck.HeaderText = "选择";
+ this.colCheck.Name = "colCheck";
+ this.colCheck.ReadOnly = true;
+ this.colCheck.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.colCheck.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colCheck.Width = 30;
+ //
// colSupplierId
//
this.colSupplierId.HeaderText = "店铺Id";
@@ -1068,7 +1345,7 @@ namespace TemuKJD.KJDForms.UploadForms
this.colSupplierName.HeaderText = "店铺名称";
this.colSupplierName.Name = "colSupplierName";
this.colSupplierName.ReadOnly = true;
- this.colSupplierName.Width = 120;
+ this.colSupplierName.Width = 110;
//
// colStockId
//
@@ -1077,6 +1354,7 @@ namespace TemuKJD.KJDForms.UploadForms
this.colStockId.ReadOnly = true;
this.colStockId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colStockId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colStockId.Width = 120;
//
// colParentStockId
//
@@ -1085,12 +1363,15 @@ namespace TemuKJD.KJDForms.UploadForms
this.colParentStockId.ReadOnly = true;
this.colParentStockId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colParentStockId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ this.colParentStockId.Width = 120;
//
// colProductSkcPic
//
this.colProductSkcPic.HeaderText = "Skc图片";
+ this.colProductSkcPic.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
this.colProductSkcPic.Name = "colProductSkcPic";
this.colProductSkcPic.ReadOnly = true;
+ this.colProductSkcPic.Width = 60;
//
// colProductId
//
@@ -1109,14 +1390,14 @@ namespace TemuKJD.KJDForms.UploadForms
this.colProdSkc.ReadOnly = true;
this.colProdSkc.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colProdSkc.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- this.colProdSkc.Width = 120;
+ this.colProdSkc.Width = 90;
//
// colProdName
//
this.colProdName.HeaderText = "标题";
this.colProdName.Name = "colProdName";
this.colProdName.ReadOnly = true;
- this.colProdName.Width = 220;
+ this.colProdName.Width = 200;
//
// colPrcie
//
@@ -1139,6 +1420,46 @@ namespace TemuKJD.KJDForms.UploadForms
this.colFromFake.ReadOnly = true;
this.colFromFake.Visible = false;
//
+ // colInCartNumber7d
+ //
+ this.colInCartNumber7d.HeaderText = "近七日加购";
+ this.colInCartNumber7d.Name = "colInCartNumber7d";
+ this.colInCartNumber7d.ReadOnly = true;
+ this.colInCartNumber7d.Visible = false;
+ this.colInCartNumber7d.Width = 75;
+ //
+ // colTodaySaleVolume
+ //
+ this.colTodaySaleVolume.HeaderText = "今日销量";
+ this.colTodaySaleVolume.Name = "colTodaySaleVolume";
+ this.colTodaySaleVolume.ReadOnly = true;
+ this.colTodaySaleVolume.Visible = false;
+ this.colTodaySaleVolume.Width = 70;
+ //
+ // colSalesInventoryNum
+ //
+ this.colSalesInventoryNum.HeaderText = "仓库可用库存";
+ this.colSalesInventoryNum.Name = "colSalesInventoryNum";
+ this.colSalesInventoryNum.ReadOnly = true;
+ this.colSalesInventoryNum.Visible = false;
+ this.colSalesInventoryNum.Width = 90;
+ //
+ // colWaitReceiveNum
+ //
+ this.colWaitReceiveNum.HeaderText = "已发货库存";
+ this.colWaitReceiveNum.Name = "colWaitReceiveNum";
+ this.colWaitReceiveNum.ReadOnly = true;
+ this.colWaitReceiveNum.Visible = false;
+ this.colWaitReceiveNum.Width = 75;
+ //
+ // colNeedStockUp
+ //
+ this.colNeedStockUp.HeaderText = "是否需备货";
+ this.colNeedStockUp.Name = "colNeedStockUp";
+ this.colNeedStockUp.ReadOnly = true;
+ this.colNeedStockUp.Visible = false;
+ this.colNeedStockUp.Width = 75;
+ //
// colMsg
//
this.colMsg.HeaderText = "状态";
@@ -1152,16 +1473,33 @@ namespace TemuKJD.KJDForms.UploadForms
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(1148, 589);
this.Controls.Add(this.splitContainer1);
+ this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Name = "StockUpForm";
- this.Text = "StockUpForm";
+ this.Text = "库存备货单窗口";
this.Load += new System.EventHandler(this.StockUpForm_Load);
this.VisibleChanged += new System.EventHandler(this.StockUpForm_VisibleChanged);
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
+ this.ucGroupBoxEx4.ResumeLayout(false);
+ this.ucGroupBoxEx4.PerformLayout();
this.ucGroupBoxEx3.ResumeLayout(false);
- this.ucGroupBoxEx3.PerformLayout();
+ this.ucGroupBoxEx2.ResumeLayout(false);
+ this.ucGroupBoxEx2.PerformLayout();
+ this.ucGroupBoxEx1.ResumeLayout(false);
+ this.splitContainer3.Panel1.ResumeLayout(false);
+ this.splitContainer3.Panel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit();
+ this.splitContainer3.ResumeLayout(false);
+ this.splitContainer2.Panel1.ResumeLayout(false);
+ this.splitContainer2.Panel1.PerformLayout();
+ this.splitContainer2.Panel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
+ this.splitContainer2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit();
+ this.ucGroupBoxEx99.ResumeLayout(false);
+ this.ucGroupBoxEx99.PerformLayout();
this.pnlSamePostage.ResumeLayout(false);
this.pnlSamePostage.PerformLayout();
this.panel3.ResumeLayout(false);
@@ -1173,18 +1511,6 @@ namespace TemuKJD.KJDForms.UploadForms
((System.ComponentModel.ISupportInitialize)(this.nudGroupCount)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
- this.ucGroupBoxEx2.ResumeLayout(false);
- this.ucGroupBoxEx2.PerformLayout();
- this.ucGroupBoxEx1.ResumeLayout(false);
- this.splitContainer3.Panel1.ResumeLayout(false);
- this.splitContainer3.Panel2.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit();
- this.splitContainer3.ResumeLayout(false);
- this.splitContainer2.Panel1.ResumeLayout(false);
- this.splitContainer2.Panel2.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
- this.splitContainer2.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgvStock)).EndInit();
this.splitContainer4.Panel1.ResumeLayout(false);
this.splitContainer4.Panel2.ResumeLayout(false);
@@ -1197,7 +1523,7 @@ namespace TemuKJD.KJDForms.UploadForms
#endregion
private System.Windows.Forms.SplitContainer splitContainer1;
- private UserComponent.UcGroupBoxEx ucGroupBoxEx3;
+ private UserComponent.UcGroupBoxEx ucGroupBoxEx99;
private DevComponents.DotNetBar.Controls.ComboBoxEx cmbCity;
private DevComponents.DotNetBar.Controls.ComboBoxEx cmbProvince;
private System.Windows.Forms.Label label3;
@@ -1260,7 +1586,21 @@ namespace TemuKJD.KJDForms.UploadForms
private System.Windows.Forms.DataGridViewTextBoxColumn colLoginStatus;
private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse;
private System.Windows.Forms.DataGridViewTextBoxColumn colMessage;
+ private System.Windows.Forms.CheckBox chkHasCreate;
+ private UserComponent.UcGroupBoxEx ucGroupBoxEx3;
+ private DevComponents.DotNetBar.PanelEx btnCancelSubPurchaseOrder;
+ private DevComponents.DotNetBar.PanelEx panelEx2;
+ private UserComponent.UcGroupBoxEx ucGroupBoxEx4;
+ private DevComponents.DotNetBar.PanelEx btnStartStockUp;
+ private DevComponents.DotNetBar.PanelEx panelEx3;
+ private DevComponents.DotNetBar.PanelEx btnListWarehouse;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.TextBox txtScale1;
+ private System.Windows.Forms.TextBox txtScale2;
+ private System.Windows.Forms.Label label14;
+ private DevComponents.DotNetBar.PanelEx panelEx1;
private System.Windows.Forms.DataGridViewLinkColumn colUpId;
+ private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck;
private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierId;
private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierName;
private System.Windows.Forms.DataGridViewLinkColumn colStockId;
@@ -1272,6 +1612,11 @@ namespace TemuKJD.KJDForms.UploadForms
private System.Windows.Forms.DataGridViewTextBoxColumn colPrcie;
private System.Windows.Forms.DataGridViewTextBoxColumn colFrom;
private System.Windows.Forms.DataGridViewTextBoxColumn colFromFake;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colInCartNumber7d;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colTodaySaleVolume;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colSalesInventoryNum;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colWaitReceiveNum;
+ private System.Windows.Forms.DataGridViewTextBoxColumn colNeedStockUp;
private System.Windows.Forms.DataGridViewTextBoxColumn colMsg;
}
}
\ No newline at end of file
diff --git a/TEMUKJD/KJDForms/UploadForms/StockUpForm.cs b/TEMUKJD/KJDForms/UploadForms/StockUpForm.cs
index 4d03eca..2677dec 100644
--- a/TEMUKJD/KJDForms/UploadForms/StockUpForm.cs
+++ b/TEMUKJD/KJDForms/UploadForms/StockUpForm.cs
@@ -25,6 +25,7 @@ namespace TemuKJD.KJDForms.UploadForms
public partial class StockUpForm : Form
{
private CheckBox chkSelectAll = null;
+ //private CheckBox chkCheckAll = null;
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
///
@@ -32,6 +33,8 @@ namespace TemuKJD.KJDForms.UploadForms
///
List lstStockInfo = new List();
+ List lstSubOrderInfo = new List();
+
public StockUpForm()
{
InitializeComponent();
@@ -45,6 +48,8 @@ namespace TemuKJD.KJDForms.UploadForms
dgvShop.Columns["colSelect"].HeaderText = "";
chkSelectAll.Width = chkSelectAll.Height = 13;
chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged;
+
+ this.dgvStock.AddSelectorColumn("colCheck");
}
private void chkSelectAll_CheckedChanged(object sender, EventArgs e)
@@ -94,7 +99,7 @@ namespace TemuKJD.KJDForms.UploadForms
// 绑定其他店铺(含新导入的店铺)
foreach (DouShopLoginInfo shopEntity in GlobalConfig.ShopLoginList)
{
- if(!string.IsNullOrEmpty(shopEntity.ShopId))
+ if (!string.IsNullOrEmpty(shopEntity.ShopId))
BindShop(shopEntity, selectIds);
}
}
@@ -140,20 +145,54 @@ namespace TemuKJD.KJDForms.UploadForms
return;
}
+ var columns = this.dgvStock.Columns.Cast();
+ foreach (var col in columns)
+ {
+ if (col.Name == "colParentStockId" || col.Name == "colStockId")
+ {
+ col.Visible = true;
+ }
+ if (col.Name == "colTodaySaleVolume" || col.Name == "colInCartNumber7d" || col.Name == "colSalesInventoryNum"
+ || col.Name == "colWaitReceiveNum" || col.Name == "colNeedStockUp")
+ {
+ col.Visible = false;
+ }
+ }
+
lstStockInfo.Clear();
dgvStock.Rows.Clear();
+ var dgvRows = this.dgvShop.Rows.Cast();//.Where(r => lstShopId.Contains(r.Cells["colShopId"].Value.ParseToString()));
+ foreach (var row in dgvRows)
+ {
+ row.Cells["colMessage"].Value = "";
+ }
+
string searchText = txtStockid.Text.Trim();
btnSearch.Enabled = false;
+ chkHasCreate.Enabled = false;
+ ucGroupBoxEx2.Enabled = false;
+ ucGroupBoxEx3.Enabled = false;
+ ucGroupBoxEx4.Enabled = false;
cancellationTokenSource = new CancellationTokenSource();
Task.Run(() =>
{
var lstShopIdTemp = new List();
lstShopIdTemp.AddRange(lstShopId);
+ int i = 0;
foreach (var shopId in lstShopIdTemp)
{
+ this.Invoke(new Action(() =>
+ {
+ this.statusBar.lblTaskStatus.Text = "正在查询...";
+ this.statusBar.pgbTaskProgress.Value = (i + 1);
+ this.statusBar.pgbTaskProgress.Text = (i + 1) + "/" + lstShopIdTemp.Count;
+ this.statusBar.pgbTaskProgress.Maximum = lstShopIdTemp.Count;
+ i++;
+ }));
+
if (cancellationTokenSource.IsCancellationRequested)
break;
@@ -174,8 +213,9 @@ namespace TemuKJD.KJDForms.UploadForms
Invoke(new Action(() =>
{
var rows = this.dgvShop.Rows.Cast().Where(r => r.Cells["colShopLoginName"].Value.ToString() == shop.LoginName);
- foreach(var row in rows)
+ foreach (var row in rows)
{
+ row.Cells["colMessage"].Value = "店铺掉线";
row.Cells["colLoginStatus"].Value = "未登录";
row.Cells["colCanUse"].Value = false;
}
@@ -184,19 +224,34 @@ namespace TemuKJD.KJDForms.UploadForms
}
#endregion
+ Invoke(new Action(() =>
+ {
+ var rows = this.dgvShop.Rows.Cast().Where(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
+ foreach (var row in rows)
+ {
+ row.Cells["colMessage"].Value = "正在查询";
+ }
+ }));
+
int page = 1;
int totalPage = 1;
+ bool isError = false;
while (page <= totalPage)
{
- Thread.Sleep(50 + Randomx.GetId(100));
- string jsonStr = GetStock(shop, page);
+ Thread.Sleep(100 + Randomx.GetId(200));
+ string jsonStr = GetShopStockList(shop, page, chkHasCreate.Checked ? "已送货" : "待创建");
if (jsonStr.Contains("指定的值含有无效的控制字符"))
{
BaseMsgForm.ShowError("店铺" + shop.LoginName + " " + shop.ShopId + "已掉线");
+ isError = true;
break;
}
if (!jsonStr.Contains("\"success\":true"))
- jsonStr = GetStock(shop, page);
+ jsonStr = GetShopStockList(shop, page, chkHasCreate.Checked ? "已送货" : "待创建");
+ if (!jsonStr.Contains("\"success\":true"))
+ {
+ isError = true;
+ }
if (jsonStr.Contains("\"success\":true"))
{
@@ -204,7 +259,7 @@ namespace TemuKJD.KJDForms.UploadForms
var jArr = jObj["result"]?["subOrderForSupplierList"] as JArray;
if (jArr == null)
jArr = new JArray();
- foreach(var item in jArr)
+ foreach (var item in jArr)
{
string sItem = item.ToString();
StockInfo sInfo = JsonHelper.DeserializeJsonToObject(sItem); // 反序列化得到类
@@ -212,18 +267,14 @@ namespace TemuKJD.KJDForms.UploadForms
{
lstStockInfo.Add(sInfo);
- //string url = "https://i0.wp.com/tvax1.sinaimg.cn/large/005DW9w3ly1h7dc70ghc5j32yo1o0773.jpg";
- //pictureBox1.Image = Image.FromStream(System.Net.WebRequest.Create(url).GetResponse().GetResponseStream());
- //var httpClient = new HttpClient();
- //var stream = httpClient.GetStreamAsync("https://i0.wp.com/tvax1.sinaimg.cn/large/005DW9w3ly1h7dc70ghc5j32yo1o0773.jpg").Result; // 异步下载图片流
- //Image image = Image.FromStream(stream);
-
string url = sInfo.productSkcPicture.Replace("https", "http");
var image = Image.FromStream(WebRequest.Create(url).GetResponse().GetResponseStream());
+
Invoke(new Action(() =>
{
- this.dgvStock.Rows.Add(
+ int rowId = this.dgvStock.Rows.Add(
"",
+ true,
sInfo.supplierId,
sInfo.supplierName,
sInfo.subPurchaseOrderSn,
@@ -235,8 +286,14 @@ namespace TemuKJD.KJDForms.UploadForms
"",
"",
"",
+ "",
+ "",
+ "",
+ "",
""
);
+
+ dgvStock.Rows[rowId].Height = 60;
}));
}
}
@@ -246,23 +303,135 @@ namespace TemuKJD.KJDForms.UploadForms
totalPage = Math.Ceiling(total / 20.0).ParseToInt();
page++;
}
+
+ Invoke(new Action(() =>
+ {
+ var rows = this.dgvShop.Rows.Cast().Where(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
+
+ if (!isError)
+ {
+ foreach (var row in rows)
+ {
+ row.Cells["colMessage"].Value = "已查询";
+ }
+ }
+ else
+ {
+ foreach (var row in rows)
+ {
+ row.Cells["colMessage"].Value = "查询失败";
+ }
+ }
+ }));
}
Invoke(new Action(() =>
{
btnSearch.Enabled = true;
+ chkHasCreate.Enabled = true;
+ ucGroupBoxEx2.Enabled = true;
+ ucGroupBoxEx3.Enabled = true;
+ ucGroupBoxEx4.Enabled = true;
+ string sRst = "查询结束!";
+ if (cancellationTokenSource.IsCancellationRequested)
+ sRst = "已取消查询!";
+
+ BaseMsgForm.ShowInfo(sRst);
+ this.statusBar.lblTaskStatus.Text = sRst;
}));
}, cancellationTokenSource.Token);
}
+ ///
+ /// 根据店铺获取备货单列表
+ ///
+ ///
+ ///
+ ///
+ private string GetShopStockList(DouShopLoginInfo shop, int page = 1, string type = "待创建")
+ {
+ page = Math.Max(page, 1);
+ string url = "https://seller.kuajingmaihuo.com/oms/bg/venom/api/supplier/purchase/manager/querySubOrderList";
+ string body;
+ if (type == "已送货")
+ body = @"{""pageNo"":" + page + @",""pageSize"":20,""urgencyType"":0,""isCustomGoods"":false,""statusList"":[2],""oneDimensionSort"":{""firstOrderByParam"":""realDeliverTime"",""firstOrderByDesc"":1}}"; //已送货
+ else
+ body = @"{""pageNo"":" + page + @",""pageSize"":20,""urgencyType"":0,""isCustomGoods"":false,""statusList"":[0],""oneDimensionSort"":{""firstOrderByParam"":""expectLatestDeliverTime"",""firstOrderByDesc"":0}}"; //待创建
- private string GetStock(DouShopLoginInfo shop, int page=1)
+ string refere = "https://seller.kuajingmaihuo.com/main/order-manage";
+
+ return StockResponse(shop, url, body,refere);
+ }
+
+ ///
+ /// 取消待创建
+ ///
+ ///
+ ///
+ ///
+ private string CancelSubPurchaseOrder(DouShopLoginInfo shop, string subPurchaseOrderSn)
+ {
+ string url = "https://seller.kuajingmaihuo.com/oms/bg/venom/api/supplier/purchase/manager/batchCancelSubPurchaseOrder";
+ string body = "{\"subPurchaseOrderSnList\":[\"" + subPurchaseOrderSn + "\"]}";
+ string refere = "https://seller.kuajingmaihuo.com/main/order-manage";
+
+ return StockResponse(shop, url, body, refere);
+ }
+
+ private string GetWarehouseList(DouShopLoginInfo shop, int page = 1)
+ {
+ page = Math.Max(page, 1);
+ string url = "https://seller.kuajingmaihuo.com/marvel-mms/cn/api/kiana/venom/sales/management/listWarehouse";
+ string body = @"{""pageNo"":" + page + @",""pageSize"":10,""isLack"":0,""selectStatusList"":[12],""priceAdjustRecentDays"":7}";
+ string refere = "https://seller.kuajingmaihuo.com/main/sale-manage/main";
+
+ return StockResponse(shop, url, body, refere);
+ }
+
+ ///
+ /// 查询单个商品申请备货条件
+ ///
+ ///
+ ///
+ ///
+ private string QueryStockBaseInfo(DouShopLoginInfo shop, SubOrderInfo subOrderInfo)
+ {
+ string url = "https://seller.kuajingmaihuo.com/oms/bg/venom/api/supplier/sales/management/queryStockBaseInfo";
+ string body = "{\"productSkcId\":" + subOrderInfo.productSkcId
+ + ",\"warehouseGroupId\":" + subOrderInfo.warehouseGroupIdList.FirstOrDefault() + "}";
+ string refere = "https://seller.kuajingmaihuo.com/main/sale-manage/main";
+ return StockResponse(shop, url, body, refere);
+ }
+
+ ///
+ /// 单个商品申请备货
+ ///
+ ///
+ ///
+ ///
+ private string CreateStockOrder(DouShopLoginInfo shop, SubOrderInfo subOrderInfo)
+ {
+ string url = "https://seller.kuajingmaihuo.com/oms/bg/venom/api/supplier/sales/management/createStockOrder";
+ string body = "{\"productSkcId\":" + subOrderInfo.productSkcId + "," +
+ "\"purchaseDetailList\":[";
+ foreach(var sku in subOrderInfo.skuQuantityDetailList)
+ {
+ if (sku.wantStockUpBound>0)
+ body += "{\"productSkuId\":" + sku.productSkuId + ",\"productSkuPurchaseQuantity\":\"" + sku.wantStockUpBound + "\"},";
+ }
+ body = body.TrimEnd(',');
+ body += "],\"warehouseGroupId\":" + subOrderInfo.warehouseGroupIdList.FirstOrDefault() + "}";
+ string refere = "https://seller.kuajingmaihuo.com/main/sale-manage/main";
+
+ return StockResponse(shop, url, body, refere);
+ }
+
+ private string StockResponse(DouShopLoginInfo shop, string _url, string _data, string referer)
{
HttpWebResponse response = null;
string result;
try
{
- page = Math.Max(page, 1);
- string url = "https://seller.kuajingmaihuo.com/oms/bg/venom/api/supplier/purchase/manager/querySubOrderList";
+ string url = _url;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.KeepAlive = true;
@@ -279,7 +448,7 @@ namespace TemuKJD.KJDForms.UploadForms
request.Headers.Add("Sec-Fetch-Site", @"same-origin");
request.Headers.Add("Sec-Fetch-Mode", @"cors");
request.Headers.Add("Sec-Fetch-Dest", @"empty");
- request.Referer = "https://seller.kuajingmaihuo.com/main/order-manage";
+ request.Referer = referer;
request.Headers.Set(HttpRequestHeader.AcceptEncoding, "gzip, deflate, br, zstd");
request.Headers.Set(HttpRequestHeader.AcceptLanguage, "zh-CN,zh;q=0.9");
request.Headers.Set(HttpRequestHeader.Cookie, shop.Cookies);
@@ -287,7 +456,7 @@ namespace TemuKJD.KJDForms.UploadForms
request.Method = "POST";
request.ServicePoint.Expect100Continue = false;
- string body = @"{""pageNo"":" + page + @",""pageSize"":20,""urgencyType"":0,""isCustomGoods"":false,""statusList"":[2],""oneDimensionSort"":{""firstOrderByParam"":""realDeliverTime"",""firstOrderByDesc"":1}}";
+ string body = _data;
byte[] postBytes = System.Text.Encoding.UTF8.GetBytes(body);
request.ContentLength = postBytes.Length;
Stream stream = request.GetRequestStream();
@@ -331,10 +500,13 @@ namespace TemuKJD.KJDForms.UploadForms
if (row.Cells["colCanUse"].Value.ParseToBool())
{
row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool();
+
+ chkSelectAll.CheckedChanged -= chkSelectAll_CheckedChanged;
if (dgvShop.Rows.Cast().All(r => r.Cells["colSelect"].Value.ParseToBool()))
chkSelectAll.Checked = true;
else
chkSelectAll.Checked = false;
+ chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged;
}
else
{
@@ -343,5 +515,528 @@ namespace TemuKJD.KJDForms.UploadForms
break;
}
}
+
+ private void btnStop_Click(object sender, EventArgs e)
+ {
+ if (cancellationTokenSource != null)
+ cancellationTokenSource.Cancel();
+ }
+
+ private void dgvStock_CellContentClick(object sender, DataGridViewCellEventArgs e)
+ {
+ string columnName = dgvStock.Columns[e.ColumnIndex].Name;
+ var row = dgvStock.Rows[e.RowIndex];
+ switch (columnName)
+ {
+ case "colCheck":
+ row.Cells["colCheck"].Value = !row.Cells["colCheck"].Value.ParseToBool();
+ break;
+ }
+ }
+
+ private void btnCancelSubPurchaseOrder_Click(object sender, EventArgs e)
+ {
+ var lstStockOrderSn = dgvStock.Rows.Cast().Where(row
+ => row.Cells["colCheck"]?.Value.ParseToBool() == true).Select(r => r.Cells["colStockId"]?.Value.ToString()).ToList();
+ var lstStock = lstStockInfo.Where(s => lstStockOrderSn.Contains(s.subPurchaseOrderSn)).ToList();
+ if (lstStock.Count == 0)
+ {
+ BaseMsgForm.ShowInfo("请选择要取消的待创建备货单!");
+ return;
+ }
+
+ string searchText = txtStockid.Text.Trim();
+ btnCancelSubPurchaseOrder.Enabled = false;
+ ucGroupBoxEx2.Enabled = false;
+ ucGroupBoxEx3.Enabled = false;
+ ucGroupBoxEx4.Enabled = false;
+
+ cancellationTokenSource = new CancellationTokenSource();
+ Task.Run(() =>
+ {
+ int i = 0;
+ foreach (var stock in lstStock)
+ {
+ this.Invoke(new Action(() =>
+ {
+ this.statusBar.lblTaskStatus.Text = "正在取消待创建...";
+ this.statusBar.pgbTaskProgress.Value = (i + 1);
+ this.statusBar.pgbTaskProgress.Text = (i + 1) + "/" + lstStock.Count;
+ this.statusBar.pgbTaskProgress.Maximum = lstStock.Count;
+ i++;
+ }));
+
+ if (cancellationTokenSource.IsCancellationRequested)
+ break;
+ var rows = this.dgvStock.Rows.Cast().Where(r =>
+ r.Cells["colStockId"].Value.ToString() == stock.subPurchaseOrderSn);
+
+
+ if (stock.isCancel)
+ {
+ Invoke(new Action(() =>
+ {
+ foreach (var row in rows)
+ {
+ row.Cells["colMsg"].Value = "待创建备货单已取消";
+ }
+ }));
+ continue;
+ }
+
+ var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == stock.supplierId.ToString());
+ if (shop == null || shop.LoginStatus != "登录成功")
+ {
+ Invoke(new Action(() =>
+ {
+ foreach (var row in rows)
+ {
+ row.Cells["colMsg"].Value = "店铺掉线或不存在";
+ }
+ }));
+ continue;
+ }
+
+ Invoke(new Action(() =>
+ {
+ foreach (var row in rows)
+ {
+ row.Cells["colMsg"].Value = "正在取消";
+ }
+ }));
+
+ Thread.Sleep(200 + Randomx.GetId(100));
+ //string jsonStr = "{\"success\":true,\"errorCode\":1000000,\"errorMsg\":null,\"result\":{\"isSuccess\":true,\"errorInfoList\":[],\"successInfoList\":[]}}";
+ string jsonStr = CancelSubPurchaseOrder(shop, stock.subPurchaseOrderSn);
+ bool isError = !jsonStr.Contains("\"success\":true");
+ string sErrMsg = BaseRegex.GetStringJson(ref jsonStr, "errorMsg");
+ if (!isError)
+ {
+ var jObj = JObject.Parse(jsonStr);
+ var jItem = jObj["result"];
+ var subJsonstr = jItem == null ? "" : JsonHelper.SerializeObject(jItem);
+ isError = !subJsonstr.Contains("\"isSuccess\":true");
+ sErrMsg = BaseRegex.GetStringJson(ref subJsonstr, "errorMsg");
+ }
+
+ Invoke(new Action(() =>
+ {
+ if (!isError)
+ {
+ stock.isCancel = true;
+ foreach (var row in rows)
+ {
+ row.Cells["colMsg"].Value = "已取消待创建";
+ }
+ }
+ else
+ {
+ foreach (var row in rows)
+ {
+ row.Cells["colMsg"].Value = "取消待创建失败:" + sErrMsg;
+ }
+ }
+ }));
+ }
+ Invoke(new Action(() =>
+ {
+ btnCancelSubPurchaseOrder.Enabled = true;
+ ucGroupBoxEx2.Enabled = true;
+ ucGroupBoxEx3.Enabled = true;
+ ucGroupBoxEx4.Enabled = true;
+ string sRst = "操作结束(取消待创建)!";
+ if (cancellationTokenSource.IsCancellationRequested)
+ sRst = "已取消操作(取消待创建)!";
+
+ BaseMsgForm.ShowInfo(sRst);
+ this.statusBar.lblTaskStatus.Text = sRst;
+ }));
+ }, cancellationTokenSource.Token);
+ }
+
+ private void btnListWarehouse_Click(object sender, EventArgs e)
+ {
+ var lstShopId = dgvShop.Rows.Cast().Where(row
+ => row.Cells["colSelect"]?.Value.ParseToBool() == true).Select(r => r.Cells["colShopId"]?.Value.ToString()).ToList();
+ if (lstShopId.Count == 0)
+ {
+ BaseMsgForm.ShowInfo("请选择店铺!");
+ return;
+ }
+
+ lstSubOrderInfo.Clear();
+ dgvStock.Rows.Clear();
+
+ int scale1 = this.txtScale1.Text.ParseToInt();
+ int scale2 = this.txtScale2.Text.ParseToInt();
+
+ var dgvRows = this.dgvShop.Rows.Cast();//.Where(r => lstShopId.Contains(r.Cells["colShopId"].Value.ParseToString()));
+ foreach (var row in dgvRows)
+ {
+ row.Cells["colMessage"].Value = "";
+ }
+
+ var columns = this.dgvStock.Columns.Cast();
+ foreach (var col in columns)
+ {
+ if (col.Name == "colParentStockId" || col.Name == "colStockId")
+ {
+ col.Visible = false;
+ }
+ if (col.Name == "colTodaySaleVolume" || col.Name == "colInCartNumber7d" || col.Name == "colSalesInventoryNum"
+ || col.Name == "colWaitReceiveNum" || col.Name == "colNeedStockUp")
+ {
+ col.Visible = true;
+ }
+ }
+
+ string searchText = txtStockid.Text.Trim();
+ btnListWarehouse.Enabled = false;
+ btnSearch.Enabled = false;
+ chkHasCreate.Enabled = false;
+ ucGroupBoxEx2.Enabled = false;
+ ucGroupBoxEx3.Enabled = false;
+ ucGroupBoxEx4.Enabled = false;
+
+ cancellationTokenSource = new CancellationTokenSource();
+ Task.Run(() =>
+ {
+ var lstShopIdTemp = new List();
+ lstShopIdTemp.AddRange(lstShopId);
+ int i = 0;
+
+ foreach (var shopId in lstShopIdTemp)
+ {
+ this.Invoke(new Action(() =>
+ {
+ this.statusBar.lblTaskStatus.Text = "正在查询...";
+ this.statusBar.pgbTaskProgress.Value = (i + 1);
+ this.statusBar.pgbTaskProgress.Text = (i + 1) + "/" + lstShopIdTemp.Count;
+ this.statusBar.pgbTaskProgress.Maximum = lstShopIdTemp.Count;
+ i++;
+ }));
+
+ if (cancellationTokenSource.IsCancellationRequested)
+ break;
+
+ var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
+ if (shop == null)
+ continue;
+
+ #region 检测登录
+ if (shop.LoginStatus != "登录成功")
+ {
+ continue;
+ }
+ if (ShopListForm.Instance == null)
+ ShopListForm.Instance = new ShopListForm();
+ ShopListForm.Instance.CheckShopLogin(new string[] { shop.LoginName }, false);
+ if (shop.LoginStatus != "登录成功")
+ {
+ Invoke(new Action(() =>
+ {
+ var rows = this.dgvShop.Rows.Cast().Where(r => r.Cells["colShopLoginName"].Value.ToString() == shop.LoginName);
+ foreach (var row in rows)
+ {
+ row.Cells["colMessage"].Value = "店铺掉线";
+ row.Cells["colLoginStatus"].Value = "未登录";
+ row.Cells["colCanUse"].Value = false;
+ }
+ }));
+ continue;
+ }
+ #endregion
+
+ Invoke(new Action(() =>
+ {
+ var rows = this.dgvShop.Rows.Cast().Where(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
+ foreach (var row in rows)
+ {
+ row.Cells["colMessage"].Value = "正在查询";
+ }
+ }));
+
+ int page = 1;
+ int totalPage = 1;
+ bool isError = false;
+ while (page <= totalPage)
+ {
+ Thread.Sleep(100 + Randomx.GetId(200));
+ string jsonStr = GetWarehouseList(shop, page);
+ if (jsonStr.Contains("指定的值含有无效的控制字符"))
+ {
+ BaseMsgForm.ShowError("店铺" + shop.LoginName + " " + shop.ShopId + "已掉线");
+ isError = true;
+ break;
+ }
+ if (!jsonStr.Contains("\"success\":true"))
+ jsonStr = GetWarehouseList(shop, page);
+ if (!jsonStr.Contains("\"success\":true"))
+ {
+ isError = true;
+ }
+
+ if (jsonStr.Contains("\"success\":true"))
+ {
+ var jObj = JObject.Parse(jsonStr);
+ var jArr = jObj["result"]?["subOrderList"] as JArray;
+ if (jArr == null)
+ jArr = new JArray();
+ foreach (var item in jArr)
+ {
+ string sItem = item.ToString();
+ SubOrderInfo sInfo = JsonHelper.DeserializeJsonToObject(sItem); // 反序列化得到类
+ if (sInfo != null)
+ {
+ foreach(var sku in sInfo.skuQuantityDetailList)
+ {
+ // 近7日加购>今日销量使用系数2,否则使用系数1
+ // 拟申请备货数量=今日销量×系数-仓内可用库存-已发货库存
+ // 实际备货数量=平台实际允许数量和拟申请备货数量取小(申请备货时计算)
+ int scale = scale1;
+ if (sku.inCartNumber7d.ParseToInt() > sku.todaySaleVolume.ParseToInt())
+ {
+ scale = scale2;
+ }
+ sku.wantStockUpBound = sku.todaySaleVolume.ParseToInt() * scale
+ - sku.inventoryNumInfo.warehouseInventoryNum.ParseToInt()
+ - sku.inventoryNumInfo.waitReceiveNum.ParseToInt();
+ sku.wantStockUpBound = Math.Max(sku.wantStockUpBound, 0);
+ }
+ if (sInfo.skuQuantityDetailList.Any(s => s.wantStockUpBound > 0))
+ sInfo.needStockUp = true;
+ else
+ sInfo.needStockUp = false;
+ lstSubOrderInfo.Add(sInfo);
+
+ string url = sInfo.productSkcPicture.Replace("https", "http");
+ var image = Image.FromStream(WebRequest.Create(url).GetResponse().GetResponseStream());
+
+ Invoke(new Action(() =>
+ {
+ int rowId = this.dgvStock.Rows.Add(
+ "",
+ true,
+ sInfo.supplierId,
+ sInfo.supplierName,
+ "",//sInfo.subPurchaseOrderSn,
+ "",//sInfo.originalPurchaseOrderSn,
+ image,
+ sInfo.productId,
+ sInfo.productSkcId,
+ sInfo.productName,
+ "",
+ "",
+ "",
+ sInfo.skuQuantityTotalInfo.inCartNumber7d,
+ sInfo.skuQuantityTotalInfo.todaySaleVolume,
+ sInfo.skuQuantityTotalInfo.inventoryNumInfo.warehouseInventoryNum,
+ sInfo.skuQuantityTotalInfo.inventoryNumInfo.waitReceiveNum,
+ sInfo.needStockUp == false ? "无需备货" : "可备货",
+ ""
+ );
+
+ dgvStock.Rows[rowId].Height = 60;
+ }));
+ }
+ }
+ }
+
+ int total = BaseRegex.GetStringJson(ref jsonStr, "total").ParseToInt();
+ totalPage = Math.Ceiling(total / 10.0).ParseToInt();
+ page++;
+ }
+
+ Invoke(new Action(() =>
+ {
+ var rows = this.dgvShop.Rows.Cast().Where(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
+
+ if (!isError)
+ {
+ foreach (var row in rows)
+ {
+ row.Cells["colMessage"].Value = "已查询";
+ }
+ }
+ else
+ {
+ foreach (var row in rows)
+ {
+ row.Cells["colMessage"].Value = "查询失败";
+ }
+ }
+ }));
+ }
+ Invoke(new Action(() =>
+ {
+ btnListWarehouse.Enabled = true;
+ btnSearch.Enabled = true;
+ chkHasCreate.Enabled = true;
+ ucGroupBoxEx2.Enabled = true;
+ ucGroupBoxEx3.Enabled = true;
+ ucGroupBoxEx4.Enabled = true;
+ string sRst = "查询结束!";
+ if (cancellationTokenSource.IsCancellationRequested)
+ sRst = "已取消查询!";
+
+ BaseMsgForm.ShowInfo(sRst);
+ this.statusBar.lblTaskStatus.Text = sRst;
+ }));
+ }, cancellationTokenSource.Token);
+ }
+
+ private void btnStartStockUp_Click(object sender, EventArgs e)
+ {
+ var lstSkc = dgvStock.Rows.Cast().Where(row
+ => row.Cells["colCheck"]?.Value.ParseToBool() == true).Select(r => r.Cells["colProdSkc"]?.Value.ToString()).ToList();
+ var lstStockUp = lstSubOrderInfo.Where(s => lstSkc.Contains(s.productSkcId.ParseToString())).ToList();
+ if (lstStockUp.Count == 0)
+ {
+ BaseMsgForm.ShowInfo("请选择要创建备货单的商品!");
+ return;
+ }
+
+ ucGroupBoxEx2.Enabled = false;
+ ucGroupBoxEx3.Enabled = false;
+ ucGroupBoxEx4.Enabled = false;
+
+ cancellationTokenSource = new CancellationTokenSource();
+ Task.Run(() =>
+ {
+ int i = 0;
+ foreach (var stockUp in lstStockUp)
+ {
+ this.Invoke(new Action(() =>
+ {
+ this.statusBar.lblTaskStatus.Text = "正在创建备货单...";
+ this.statusBar.pgbTaskProgress.Value = (i + 1);
+ this.statusBar.pgbTaskProgress.Text = (i + 1) + "/" + lstStockUp.Count;
+ this.statusBar.pgbTaskProgress.Maximum = lstStockUp.Count;
+ i++;
+ }));
+
+ if (cancellationTokenSource.IsCancellationRequested)
+ break;
+ var rows = this.dgvStock.Rows.Cast().Where(r =>
+ r.Cells["colProdSkc"].Value.ToString() == stockUp.productSkcId.ParseToString());
+
+
+ if (stockUp.needStockUp != true)
+ {
+ Invoke(new Action(() =>
+ {
+ foreach (var row in rows)
+ {
+ row.Cells["colMsg"].Value = "无需创建备货单";
+ }
+ }));
+ continue;
+ }
+
+ var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == stockUp.supplierId.ToString());
+ if (shop == null || shop.LoginStatus != "登录成功")
+ {
+ Invoke(new Action(() =>
+ {
+ foreach (var row in rows)
+ {
+ row.Cells["colMsg"].Value = "店铺掉线或不存在";
+ }
+ }));
+ continue;
+ }
+
+ Invoke(new Action(() =>
+ {
+ foreach (var row in rows)
+ {
+ row.Cells["colMsg"].Value = "正在创建";
+ }
+ }));
+
+ Thread.Sleep(200 + Randomx.GetId(100));
+ string jsonStr = this.QueryStockBaseInfo(shop, stockUp);
+ bool isError = !jsonStr.Contains("\"success\":true");
+ string sErrMsg1 = BaseRegex.GetStringJson(ref jsonStr, "errorMsg").ParseToString();
+ if (!isError)
+ {
+ Thread.Sleep(Randomx.GetId(200, 400));
+
+ var jObj = JObject.Parse(jsonStr);
+ var jItem = jObj["result"];
+ var jStr = jObj["result"].ParseToString();
+ stockBaseInfo sBaseInfo = JsonHelper.DeserializeJsonToObject(jStr);
+
+ foreach(var sku in stockUp.skuQuantityDetailList)
+ {
+ if (sku.wantStockUpBound == 0)
+ continue;
+
+ var sBaseSku = sBaseInfo.purchaseConfigDetailList.FirstOrDefault(s => s.productSkuId == sku.productSkuId);
+ if (sBaseSku == null)
+ sku.wantStockUpBound = 0;
+
+ if (sku.wantStockUpBound > sBaseSku.applyUpperBound.ParseToInt())
+ {
+ sku.wantStockUpBound = sBaseSku.applyUpperBound.ParseToInt();
+ }
+ }
+
+ if (!stockUp.skuQuantityDetailList.Any(s => s.wantStockUpBound > 0))
+ {
+ //如果已备过货但是还未发出,做一个判断
+ isError = true;
+ stockUp.needStockUp = false;
+ sErrMsg1 += "已达平台备货量上限!";
+ }
+ else
+ {
+ jsonStr = this.CreateStockOrder(shop, stockUp);
+ isError = !jsonStr.Contains("\"success\":true");
+ string sErrMsg2 = BaseRegex.GetStringJson(ref jsonStr, "errorMsg").ParseToString();
+ var jObj2 = JObject.Parse(jsonStr);
+ string failDetailList = jObj2["result"]?["failDetailList"].ParseToString();
+ if (failDetailList.Length > 5)
+ {
+ isError = true;
+ sErrMsg2 += failDetailList;
+ }
+ sErrMsg1 += sErrMsg2;
+ }
+ }
+
+ Invoke(new Action(() =>
+ {
+ if (!isError)
+ {
+ stockUp.isStockUp = true;
+ foreach (var row in rows)
+ {
+ row.Cells["colMsg"].Value = "已创建备货单";
+ }
+ }
+ else
+ {
+ foreach (var row in rows)
+ {
+ row.Cells["colMsg"].Value = "创建备货单失败:" + sErrMsg1;
+ }
+ }
+ }));
+ }
+ Invoke(new Action(() =>
+ {
+ ucGroupBoxEx2.Enabled = true;
+ ucGroupBoxEx3.Enabled = true;
+ ucGroupBoxEx4.Enabled = true;
+ string sRst = "操作结束(创建备货单)!";
+ if (cancellationTokenSource.IsCancellationRequested)
+ sRst = "已取消操作(创建备货单)!";
+
+ BaseMsgForm.ShowInfo(sRst);
+ this.statusBar.lblTaskStatus.Text = sRst;
+ }));
+ }, cancellationTokenSource.Token);
+ }
}
}
diff --git a/TEMUKJD/KJDForms/UploadForms/StockUpForm.resx b/TEMUKJD/KJDForms/UploadForms/StockUpForm.resx
index 09dae72..abc51a5 100644
--- a/TEMUKJD/KJDForms/UploadForms/StockUpForm.resx
+++ b/TEMUKJD/KJDForms/UploadForms/StockUpForm.resx
@@ -138,6 +138,9 @@
True
+
+ True
+
True
@@ -168,6 +171,21 @@
True
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
True
diff --git a/TEMUKJD/MainForm.cs b/TEMUKJD/MainForm.cs
index e38caa5..99cf5bd 100644
--- a/TEMUKJD/MainForm.cs
+++ b/TEMUKJD/MainForm.cs
@@ -229,8 +229,9 @@ namespace TemuKJD
Task.Run(() =>
{
- ViolateManageForm.GetAllViolateRuleName();
- GetShopViolation();
+ //抖音获取违规信息
+ //ViolateManageForm.GetAllViolateRuleName();
+ //GetShopViolation();
});
}