用户开放机会商品采集功能

This commit is contained in:
wule committed 2026-05-04 19:43:15 +08:00
1 parent b5ae0fc2f2
commit 5470863fff
26 files changed
+3131 -288

No files matched your search

+47 -43
View File
@@ -31,18 +31,19 @@
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("超级店铺管理");
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("超级用户管理");
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("产品数据库");
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("SKU替换图");
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("机会商品采集");
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("以图搜品采集");
System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("厂家商品采集");
System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("选品加价管理");
System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("认领待上传");
System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("库存上传");
System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("商品核价");
System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("随机厂商商品");
System.Windows.Forms.TreeNode treeNode13 = new System.Windows.Forms.TreeNode("商品导入");
System.Windows.Forms.TreeNode treeNode14 = new System.Windows.Forms.TreeNode("微店管理");
System.Windows.Forms.TreeNode treeNode15 = new System.Windows.Forms.TreeNode("超级权限管理", new System.Windows.Forms.TreeNode[] {
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("设置禁售");
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("SKU替换图");
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("机会商品采集");
System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("以图搜品采集");
System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("厂家商品采集");
System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("选品加价管理");
System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("认领待上传");
System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("库存上传");
System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("商品核价");
System.Windows.Forms.TreeNode treeNode13 = new System.Windows.Forms.TreeNode("随机厂商商品");
System.Windows.Forms.TreeNode treeNode14 = new System.Windows.Forms.TreeNode("商品导入");
System.Windows.Forms.TreeNode treeNode15 = new System.Windows.Forms.TreeNode("微店管理");
System.Windows.Forms.TreeNode treeNode16 = new System.Windows.Forms.TreeNode("超级权限管理", new System.Windows.Forms.TreeNode[] {
treeNode1,
treeNode2,
treeNode3,
@@ -56,7 +57,8 @@
treeNode11,
treeNode12,
treeNode13,
treeNode14});
treeNode14,
treeNode15});
this.panel1 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
@@ -79,7 +81,7 @@
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(792, 446);
this.panel1.Size = new System.Drawing.Size(792, 574);
this.panel1.TabIndex = 2;
//
// panel3
@@ -87,7 +89,7 @@
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 28);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(792, 418);
this.panel3.Size = new System.Drawing.Size(792, 546);
this.panel3.TabIndex = 1;
//
// panel2
@@ -124,7 +126,7 @@
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.panel1);
this.splitContainer1.Size = new System.Drawing.Size(933, 446);
this.splitContainer1.Size = new System.Drawing.Size(933, 574);
this.splitContainer1.SplitterDistance = 140;
this.splitContainer1.SplitterWidth = 1;
this.splitContainer1.TabIndex = 3;
@@ -153,41 +155,43 @@
treeNode2.Text = "超级用户管理";
treeNode3.Name = "产品数据库";
treeNode3.Text = "产品数据库";
treeNode4.Name = "SKU替换图";
treeNode4.Text = "SKU替换图";
treeNode5.Name = "机会商品采集";
treeNode5.Text = "机会商品采集";
treeNode6.Name = "以图搜品采集";
treeNode6.Text = "以图搜品采集";
treeNode7.Name = "厂家商品采集";
treeNode7.Text = "厂家商品采集";
treeNode8.Name = "选品加价管理";
treeNode8.Text = "选品加价管理";
treeNode9.Name = "认领待上传";
treeNode9.Text = "认领待上传";
treeNode10.Name = "库存上传";
treeNode10.Text = "库存上传";
treeNode11.Name = "商品核价";
treeNode11.Text = "商品核价";
treeNode12.Name = "随机厂商商品";
treeNode12.Text = "随机厂商商品";
treeNode13.Name = "商品导入";
treeNode13.Text = "商品导入";
treeNode14.Name = "微店管理";
treeNode14.Text = "微店管理";
treeNode15.Name = "超级权限管理";
treeNode15.Text = "超级权限管理";
treeNode4.Name = "设置禁售";
treeNode4.Text = "设置禁售";
treeNode5.Name = "SKU替换图";
treeNode5.Text = "SKU替换图";
treeNode6.Name = "机会商品采集";
treeNode6.Text = "机会商品采集";
treeNode7.Name = "以图搜品采集";
treeNode7.Text = "以图搜品采集";
treeNode8.Name = "厂家商品采集";
treeNode8.Text = "厂家商品采集";
treeNode9.Name = "选品加价管理";
treeNode9.Text = "选品加价管理";
treeNode10.Name = "认领待上传";
treeNode10.Text = "认领待上传";
treeNode11.Name = "库存上传";
treeNode11.Text = "库存上传";
treeNode12.Name = "商品核价";
treeNode12.Text = "商品核价";
treeNode13.Name = "随机厂商商品";
treeNode13.Text = "随机厂商商品";
treeNode14.Name = "商品导入";
treeNode14.Text = "商品导入";
treeNode15.Name = "微店管理";
treeNode15.Text = "微店管理";
treeNode16.Name = "超级权限管理";
treeNode16.Text = "超级权限管理";
this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
treeNode15});
treeNode16});
this.tv.OverForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.tv.Size = new System.Drawing.Size(140, 446);
this.tv.Size = new System.Drawing.Size(140, 574);
this.tv.TabIndex = 1;
this.tv.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tv_AfterSelect);
//
// PDDAdminForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(933, 446);
this.ClientSize = new System.Drawing.Size(933, 574);
this.Controls.Add(this.splitContainer1);
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
@@ -24,6 +24,7 @@ namespace TemuKJD.PDDForms.AdminForms
public Lazy<PDDAdminAccountForm> adminAccountForm = new Lazy<PDDAdminAccountForm>();
public Lazy<PDDAdminShopListForm> adminShopForm = new Lazy<PDDAdminShopListForm>();
public Lazy<PDDDBProdListForm> dbProdListForm = new Lazy<PDDDBProdListForm>();
public Lazy<JstBanPlatformForm> banPlatformForm = new Lazy<JstBanPlatformForm>();
public Lazy<PDDDBProdImgListForm> dbProdImgListForm = new Lazy<PDDDBProdImgListForm>();
public Lazy<PDDGetChanceProdForm> getChanceProdForm = new Lazy<PDDGetChanceProdForm>();
public Lazy<PDDGetChanceProdByImgForm> getChanceProdByImgForm = new Lazy<PDDGetChanceProdByImgForm>();
@@ -95,6 +96,11 @@ namespace TemuKJD.PDDForms.AdminForms
case "产品数据库":
SetForm(dbProdListForm.Value);
break;
case "设置禁售":
SetForm(banPlatformForm.Value);
break;
case "SKU替换图":
SetForm(dbProdImgListForm.Value);
break;
@@ -772,7 +772,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"",
"是",
"否"});
this.cmbPddRelation.Location = new System.Drawing.Point(743, 5);
this.cmbPddRelation.Location = new System.Drawing.Point(743, 7);
this.cmbPddRelation.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbPddRelation.Name = "cmbPddRelation";
this.cmbPddRelation.Size = new System.Drawing.Size(47, 25);
@@ -827,7 +827,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.cmbCat2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbCat2.FormattingEnabled = true;
this.cmbCat2.Location = new System.Drawing.Point(278, 77);
this.cmbCat2.Location = new System.Drawing.Point(278, 75);
this.cmbCat2.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat2.Name = "cmbCat2";
this.cmbCat2.Size = new System.Drawing.Size(46, 25);
@@ -912,7 +912,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"机会商品",
"以图搜品",
"外部数据"});
this.cmbSourceType.Location = new System.Drawing.Point(278, 42);
this.cmbSourceType.Location = new System.Drawing.Point(278, 40);
this.cmbSourceType.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbSourceType.Name = "cmbSourceType";
this.cmbSourceType.Size = new System.Drawing.Size(46, 25);
@@ -958,7 +958,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"",
"是",
"否"});
this.cmbWxCat.Location = new System.Drawing.Point(622, 7);
this.cmbWxCat.Location = new System.Drawing.Point(622, 5);
this.cmbWxCat.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbWxCat.Name = "cmbWxCat";
this.cmbWxCat.Size = new System.Drawing.Size(47, 25);
@@ -980,7 +980,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.cmbSort.Items.AddRange(new object[] {
"入库时间",
"认领总数"});
this.cmbSort.Location = new System.Drawing.Point(381, 42);
this.cmbSort.Location = new System.Drawing.Point(381, 40);
this.cmbSort.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbSort.Name = "cmbSort";
this.cmbSort.Size = new System.Drawing.Size(46, 25);
@@ -1056,7 +1056,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.cmbGroupFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbGroupFilter.FormattingEnabled = true;
this.cmbGroupFilter.Location = new System.Drawing.Point(175, 42);
this.cmbGroupFilter.Location = new System.Drawing.Point(175, 40);
this.cmbGroupFilter.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbGroupFilter.Name = "cmbGroupFilter";
this.cmbGroupFilter.Size = new System.Drawing.Size(46, 25);
@@ -1071,7 +1071,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"是",
"否",
"导出未拉回"});
this.cmbExportToOutServer.Location = new System.Drawing.Point(622, 42);
this.cmbExportToOutServer.Location = new System.Drawing.Point(622, 40);
this.cmbExportToOutServer.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbExportToOutServer.Name = "cmbExportToOutServer";
this.cmbExportToOutServer.Size = new System.Drawing.Size(47, 25);
@@ -1107,7 +1107,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"安全商品",
"违规商品",
"未校验"});
this.cmbWxSafe.Location = new System.Drawing.Point(501, 42);
this.cmbWxSafe.Location = new System.Drawing.Point(501, 40);
this.cmbWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbWxSafe.Name = "cmbWxSafe";
this.cmbWxSafe.Size = new System.Drawing.Size(47, 25);
@@ -1149,7 +1149,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.cmbCat1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbCat1.FormattingEnabled = true;
this.cmbCat1.Location = new System.Drawing.Point(175, 77);
this.cmbCat1.Location = new System.Drawing.Point(175, 75);
this.cmbCat1.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat1.Name = "cmbCat1";
this.cmbCat1.Size = new System.Drawing.Size(46, 25);
@@ -1171,7 +1171,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.cmbCat3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.cmbCat3.FormattingEnabled = true;
this.cmbCat3.Location = new System.Drawing.Point(381, 77);
this.cmbCat3.Location = new System.Drawing.Point(381, 75);
this.cmbCat3.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbCat3.Name = "cmbCat3";
this.cmbCat3.Size = new System.Drawing.Size(46, 25);
@@ -1268,7 +1268,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"是",
"否",
"修复回传未拉回"});
this.cmbHasReturn.Location = new System.Drawing.Point(743, 42);
this.cmbHasReturn.Location = new System.Drawing.Point(743, 40);
this.cmbHasReturn.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbHasReturn.Name = "cmbHasReturn";
this.cmbHasReturn.Size = new System.Drawing.Size(47, 25);
@@ -775,21 +775,23 @@ namespace TemuKJD.PDDForms.ProductSelectForms
}
}
GetPDDProductGroup(new List<ComboBox> { cmbGroup });
GetPDDProductGroup(new List<ComboBox> { cmbGroup }, "", "无分组");
GetPDDProductGroup(new List<ComboBox> { cmbGroupFilter }, "", "无分组");
}
public static void GetPDDProductGroup(ComboBox box, string get_type = "", string addItems = "")
public static void GetPDDProductGroup(ComboBox box, string product_get_type = "", string addMoreItems = "", string group_add_user_name = "")
{
GetPDDProductGroup(new List<ComboBox> { box }, get_type, addItems);
GetPDDProductGroup(new List<ComboBox> { box }, product_get_type, addMoreItems, group_add_user_name);
}
public static void GetPDDProductGroup(List<ComboBox> boxs, string get_type = "", string addItems = "")
public static void GetPDDProductGroup(List<ComboBox> boxs, string product_get_type = "", string addMoreItems = "", string group_add_user_name = "")
{
var url = BaseClass.BuildPDDObjString("product/get_product_groups");
var data = UserLogin.GetSignaturex();
if (!string.IsNullOrWhiteSpace(get_type))
data += "&product_get_type=" + get_type;
if (!string.IsNullOrWhiteSpace(product_get_type))
data += "&product_get_type=" + product_get_type;
if (!string.IsNullOrWhiteSpace(group_add_user_name))
data += "&add_user_name=" + group_add_user_name;
var html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
@@ -808,9 +810,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
box.Items.Clear();
var groups = BaseRegex.GetStringJson(ref html, "data");
box.Items.Add("");
if (!string.IsNullOrEmpty(addItems))
if (!string.IsNullOrEmpty(addMoreItems))
{
foreach (var item in addItems.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries))
foreach (var item in addMoreItems.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries))
{
box.Items.Add(item);
}
@@ -280,9 +280,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
private void RefreshDbProd()
{
Task.Run(() =>
{
{
// 同时刷新下商品分组
PDDDBProdListForm.GetPDDProductGroup(cmbGroupFilter);
PDDDBProdListForm.GetPDDProductGroup(cmbGroupFilter, "", "", BaseClass.UserAuthority.Contains("机会商品采集") ? ("admin," + BaseClass.UserName) : "admin");
// 刷新类目信息
GetPddProductCate();
@@ -6197,6 +6197,8 @@ Content-Type: image/jpeg
data += "&in_spu_ids=" + txtIdFilter.Text;
data += "&in_groups=" + cmbGroupFilter.Text;
data += "&add_user_name=" + (BaseClass.UserAuthority.Contains("机会商品采集") ? ("admin," + BaseClass.UserName) : "admin");
if (cmbSourceType.Text != "厂商直采" && cmbSourceType.Text != "1688厂家" && cmbSourceType.Text != "微信店采" && cmbSourceType.Text != "微信小店")
{
data += "&in_cates=" + (cmbCateFilter1.Text == "全部" ? "" : cmbCateFilter1.Text);
@@ -30,20 +30,16 @@ namespace TemuKJD.PDDForms.ProductSelectForms
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
this.pbShopLoading = new System.Windows.Forms.PictureBox();
this.pbLoading = new System.Windows.Forms.PictureBox();
this.panel2 = new System.Windows.Forms.Panel();
this.ucGroupBoxEx1 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
this.btnShowMyCollect = new DevComponents.DotNetBar.PanelEx();
this.btnSelectNotGetDetail = new DevComponents.DotNetBar.PanelEx();
this.cmbFilterType = new System.Windows.Forms.ComboBox();
this.btnFilter = new DevComponents.DotNetBar.PanelEx();
@@ -82,6 +78,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.chkOverride = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.label6 = new System.Windows.Forms.Label();
this.txtMinPrice = new System.Windows.Forms.TextBox();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
this.pbShopLoading = new System.Windows.Forms.PictureBox();
this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colUserName = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -92,10 +91,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.colLoginStatus = new System.Windows.Forms.DataGridViewLinkColumn();
this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colMessage = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pbLoading = new System.Windows.Forms.PictureBox();
this.panel2 = new System.Windows.Forms.Panel();
this.dgvChanceProduct = new TemuKJD.UserComponent.DataGridViewEx();
this.chk = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colChanceId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colImgUrl = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -106,10 +104,14 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.colCate = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colPrice = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.chk = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.ucGroupBoxEx1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout();
@@ -119,9 +121,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.splitContainer3.Panel2.SuspendLayout();
this.splitContainer3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pbShopLoading)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit();
this.ucGroupBoxEx1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvShop)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgvChanceProduct)).BeginInit();
this.SuspendLayout();
//
@@ -145,82 +146,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.splitContainer1.SplitterDistance = 140;
this.splitContainer1.TabIndex = 4;
//
// splitContainer2
//
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
this.splitContainer2.Location = new System.Drawing.Point(0, 0);
this.splitContainer2.Name = "splitContainer2";
this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer2.Panel1
//
this.splitContainer2.Panel1.Controls.Add(this.splitContainer3);
this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0);
//
// splitContainer2.Panel2
//
this.splitContainer2.Panel2.Controls.Add(this.chk);
this.splitContainer2.Panel2.Controls.Add(this.statusBar);
this.splitContainer2.Panel2.Controls.Add(this.ucSplitPage1);
this.splitContainer2.Size = new System.Drawing.Size(1424, 491);
this.splitContainer2.SplitterDistance = 462;
this.splitContainer2.TabIndex = 0;
//
// splitContainer3
//
this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer3.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
this.splitContainer3.Location = new System.Drawing.Point(4, 0);
this.splitContainer3.Name = "splitContainer3";
//
// splitContainer3.Panel1
//
this.splitContainer3.Panel1.Controls.Add(this.pbShopLoading);
this.splitContainer3.Panel1.Controls.Add(this.dgvShop);
//
// splitContainer3.Panel2
//
this.splitContainer3.Panel2.Controls.Add(this.pbLoading);
this.splitContainer3.Panel2.Controls.Add(this.panel2);
this.splitContainer3.Panel2.Controls.Add(this.dgvChanceProduct);
this.splitContainer3.Size = new System.Drawing.Size(1416, 462);
this.splitContainer3.SplitterDistance = 290;
this.splitContainer3.TabIndex = 9;
//
// pbShopLoading
//
this.pbShopLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pbShopLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
this.pbShopLoading.Location = new System.Drawing.Point(120, 206);
this.pbShopLoading.Name = "pbShopLoading";
this.pbShopLoading.Size = new System.Drawing.Size(50, 50);
this.pbShopLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pbShopLoading.TabIndex = 8;
this.pbShopLoading.TabStop = false;
//
// pbLoading
//
this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
this.pbLoading.Location = new System.Drawing.Point(536, 206);
this.pbLoading.Name = "pbLoading";
this.pbLoading.Size = new System.Drawing.Size(50, 50);
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pbLoading.TabIndex = 7;
this.pbLoading.TabStop = false;
this.pbLoading.Visible = false;
//
// panel2
//
this.panel2.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.panel2.Location = new System.Drawing.Point(409, 355);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(690, 87);
this.panel2.TabIndex = 8;
//
// ucGroupBoxEx1
//
this.ucGroupBoxEx1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@@ -228,6 +153,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
| System.Windows.Forms.AnchorStyles.Right)));
this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.ucGroupBoxEx1.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
this.ucGroupBoxEx1.Controls.Add(this.btnShowMyCollect);
this.ucGroupBoxEx1.Controls.Add(this.btnSelectNotGetDetail);
this.ucGroupBoxEx1.Controls.Add(this.cmbFilterType);
this.ucGroupBoxEx1.Controls.Add(this.btnFilter);
@@ -273,6 +199,31 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.ucGroupBoxEx1.TabStop = false;
this.ucGroupBoxEx1.Text = "操作";
//
// btnShowMyCollect
//
this.btnShowMyCollect.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnShowMyCollect.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnShowMyCollect.DisabledBackColor = System.Drawing.Color.Empty;
this.btnShowMyCollect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnShowMyCollect.Location = new System.Drawing.Point(287, 103);
this.btnShowMyCollect.Name = "btnShowMyCollect";
this.btnShowMyCollect.Size = new System.Drawing.Size(100, 25);
this.btnShowMyCollect.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnShowMyCollect.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnShowMyCollect.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnShowMyCollect.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnShowMyCollect.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnShowMyCollect.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnShowMyCollect.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnShowMyCollect.Style.GradientAngle = 90;
this.btnShowMyCollect.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnShowMyCollect.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnShowMyCollect.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnShowMyCollect.TabIndex = 1049;
this.btnShowMyCollect.Text = "查看我的采集";
this.btnShowMyCollect.Visible = false;
this.btnShowMyCollect.Click += new System.EventHandler(this.btnGetMyCollect_Click);
//
// btnSelectNotGetDetail
//
this.btnSelectNotGetDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -399,7 +350,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnClear.CanvasColor = System.Drawing.SystemColors.Control;
this.btnClear.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnClear.DisabledBackColor = System.Drawing.Color.Empty;
this.btnClear.Location = new System.Drawing.Point(287, 88);
this.btnClear.Location = new System.Drawing.Point(287, 75);
this.btnClear.Name = "btnClear";
this.btnClear.Size = new System.Drawing.Size(100, 25);
this.btnClear.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -477,7 +428,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
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(287, 26);
this.btnStop.Location = new System.Drawing.Point(287, 19);
this.btnStop.Name = "btnStop";
this.btnStop.Size = new System.Drawing.Size(100, 25);
this.btnStop.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -510,7 +461,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnStopStop.CanvasColor = System.Drawing.SystemColors.Control;
this.btnStopStop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnStopStop.DisabledBackColor = System.Drawing.Color.Empty;
this.btnStopStop.Location = new System.Drawing.Point(287, 57);
this.btnStopStop.Location = new System.Drawing.Point(287, 47);
this.btnStopStop.Name = "btnStopStop";
this.btnStopStop.Size = new System.Drawing.Size(100, 25);
this.btnStopStop.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -804,23 +755,77 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.txtMinPrice.TabIndex = 842;
this.txtMinPrice.Text = "10";
//
// splitContainer2
//
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
this.splitContainer2.Location = new System.Drawing.Point(0, 0);
this.splitContainer2.Name = "splitContainer2";
this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer2.Panel1
//
this.splitContainer2.Panel1.Controls.Add(this.splitContainer3);
this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0);
//
// splitContainer2.Panel2
//
this.splitContainer2.Panel2.Controls.Add(this.chk);
this.splitContainer2.Panel2.Controls.Add(this.statusBar);
this.splitContainer2.Panel2.Controls.Add(this.ucSplitPage1);
this.splitContainer2.Size = new System.Drawing.Size(1424, 491);
this.splitContainer2.SplitterDistance = 462;
this.splitContainer2.TabIndex = 0;
//
// splitContainer3
//
this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer3.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
this.splitContainer3.Location = new System.Drawing.Point(4, 0);
this.splitContainer3.Name = "splitContainer3";
//
// splitContainer3.Panel1
//
this.splitContainer3.Panel1.Controls.Add(this.pbShopLoading);
this.splitContainer3.Panel1.Controls.Add(this.dgvShop);
//
// splitContainer3.Panel2
//
this.splitContainer3.Panel2.Controls.Add(this.pbLoading);
this.splitContainer3.Panel2.Controls.Add(this.panel2);
this.splitContainer3.Panel2.Controls.Add(this.dgvChanceProduct);
this.splitContainer3.Size = new System.Drawing.Size(1416, 462);
this.splitContainer3.SplitterDistance = 290;
this.splitContainer3.TabIndex = 9;
//
// pbShopLoading
//
this.pbShopLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pbShopLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
this.pbShopLoading.Location = new System.Drawing.Point(120, 206);
this.pbShopLoading.Name = "pbShopLoading";
this.pbShopLoading.Size = new System.Drawing.Size(50, 50);
this.pbShopLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pbShopLoading.TabIndex = 8;
this.pbShopLoading.TabStop = false;
//
// dgvShop
//
this.dgvShop.AllowUserToAddRows = false;
this.dgvShop.AllowUserToDeleteRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle8.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle8;
this.dgvShop.AutoRowNumber = true;
this.dgvShop.BackgroundColor = System.Drawing.Color.White;
this.dgvShop.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9;
this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colSelect,
@@ -915,24 +920,46 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.colMessage.Name = "colMessage";
this.colMessage.ReadOnly = true;
//
// pbLoading
//
this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
this.pbLoading.Location = new System.Drawing.Point(536, 206);
this.pbLoading.Name = "pbLoading";
this.pbLoading.Size = new System.Drawing.Size(50, 50);
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pbLoading.TabIndex = 7;
this.pbLoading.TabStop = false;
this.pbLoading.Visible = false;
//
// panel2
//
this.panel2.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.panel2.Location = new System.Drawing.Point(409, 355);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(690, 87);
this.panel2.TabIndex = 8;
//
// dgvChanceProduct
//
this.dgvChanceProduct.AllowUserToAddRows = false;
this.dgvChanceProduct.AllowUserToDeleteRows = false;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvChanceProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle10.BackColor = System.Drawing.Color.WhiteSmoke;
this.dgvChanceProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle10;
this.dgvChanceProduct.AutoRowNumber = true;
this.dgvChanceProduct.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgvChanceProduct.BackgroundColor = System.Drawing.Color.White;
this.dgvChanceProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvChanceProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle11.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvChanceProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11;
this.dgvChanceProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvChanceProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colCheck,
@@ -955,46 +982,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.dgvChanceProduct.TabIndex = 6;
this.dgvChanceProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvChanceProduct_CellContentClick);
//
// chk
//
this.chk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chk.AutoSize = true;
this.chk.Checked = true;
this.chk.CheckState = System.Windows.Forms.CheckState.Checked;
this.chk.Location = new System.Drawing.Point(1357, 3);
this.chk.Name = "chk";
this.chk.Size = new System.Drawing.Size(63, 21);
this.chk.TabIndex = 671;
this.chk.Text = "多选框";
this.chk.UseVisualStyleBackColor = true;
this.chk.Visible = false;
//
// statusBar
//
this.statusBar.BackColor = System.Drawing.Color.White;
this.statusBar.Dock = System.Windows.Forms.DockStyle.Left;
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(296, 0);
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
this.statusBar.Name = "statusBar";
this.statusBar.Size = new System.Drawing.Size(743, 25);
this.statusBar.TabIndex = 5;
//
// ucSplitPage1
//
this.ucSplitPage1.CurrentPage = 1;
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Left;
this.ucSplitPage1.IsShowPageSize = false;
this.ucSplitPage1.Location = new System.Drawing.Point(0, 0);
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
this.ucSplitPage1.Name = "ucSplitPage1";
this.ucSplitPage1.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0);
this.ucSplitPage1.PageSize = 50;
this.ucSplitPage1.Size = new System.Drawing.Size(296, 25);
this.ucSplitPage1.TabIndex = 6;
this.ucSplitPage1.TotalPage = 1;
this.ucSplitPage1.PageChange += new System.Action<object>(this.ucSplitPage1_PageChange);
//
// colCheck
//
this.colCheck.FillWeight = 26F;
@@ -1038,8 +1025,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
// colGoodsName
//
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colGoodsName.DefaultCellStyle = dataGridViewCellStyle5;
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colGoodsName.DefaultCellStyle = dataGridViewCellStyle12;
this.colGoodsName.FillWeight = 120F;
this.colGoodsName.HeaderText = "商品名称";
this.colGoodsName.Name = "colGoodsName";
@@ -1060,8 +1047,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
// colPrice
//
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colPrice.DefaultCellStyle = dataGridViewCellStyle6;
dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colPrice.DefaultCellStyle = dataGridViewCellStyle13;
this.colPrice.FillWeight = 70F;
this.colPrice.HeaderText = "价格";
this.colPrice.Name = "colPrice";
@@ -1069,13 +1056,53 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
// colMsg
//
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colMsg.DefaultCellStyle = dataGridViewCellStyle7;
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.colMsg.DefaultCellStyle = dataGridViewCellStyle14;
this.colMsg.FillWeight = 200F;
this.colMsg.HeaderText = "操作结果";
this.colMsg.Name = "colMsg";
this.colMsg.ReadOnly = true;
//
// chk
//
this.chk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chk.AutoSize = true;
this.chk.Checked = true;
this.chk.CheckState = System.Windows.Forms.CheckState.Checked;
this.chk.Location = new System.Drawing.Point(1357, 3);
this.chk.Name = "chk";
this.chk.Size = new System.Drawing.Size(63, 21);
this.chk.TabIndex = 671;
this.chk.Text = "多选框";
this.chk.UseVisualStyleBackColor = true;
this.chk.Visible = false;
//
// statusBar
//
this.statusBar.BackColor = System.Drawing.Color.White;
this.statusBar.Dock = System.Windows.Forms.DockStyle.Left;
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(296, 0);
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
this.statusBar.Name = "statusBar";
this.statusBar.Size = new System.Drawing.Size(743, 25);
this.statusBar.TabIndex = 5;
//
// ucSplitPage1
//
this.ucSplitPage1.CurrentPage = 1;
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Left;
this.ucSplitPage1.IsShowPageSize = false;
this.ucSplitPage1.Location = new System.Drawing.Point(0, 0);
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
this.ucSplitPage1.Name = "ucSplitPage1";
this.ucSplitPage1.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0);
this.ucSplitPage1.PageSize = 50;
this.ucSplitPage1.Size = new System.Drawing.Size(296, 25);
this.ucSplitPage1.TabIndex = 6;
this.ucSplitPage1.TotalPage = 1;
this.ucSplitPage1.PageChange += new System.Action<object>(this.ucSplitPage1_PageChange);
//
// PDDGetChanceProdForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -1091,6 +1118,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.ucGroupBoxEx1.ResumeLayout(false);
this.ucGroupBoxEx1.PerformLayout();
this.splitContainer2.Panel1.ResumeLayout(false);
this.splitContainer2.Panel2.ResumeLayout(false);
this.splitContainer2.Panel2.PerformLayout();
@@ -1101,10 +1130,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit();
this.splitContainer3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pbShopLoading)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit();
this.ucGroupBoxEx1.ResumeLayout(false);
this.ucGroupBoxEx1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvShop)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgvChanceProduct)).EndInit();
this.ResumeLayout(false);
@@ -1181,5 +1208,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
private System.Windows.Forms.DataGridViewTextBoxColumn colCate;
private System.Windows.Forms.DataGridViewTextBoxColumn colPrice;
private System.Windows.Forms.DataGridViewTextBoxColumn colMsg;
private DevComponents.DotNetBar.PanelEx btnShowMyCollect;
}
}
@@ -22,12 +22,18 @@ using TemuKJD.Extension;
using TemuKJD.PDDForms.AdminForms;
using TemuKJD.PDDForms.ShopForms;
using TemuKJD.ToolForms;
using TemuKJD.WXForms.ProductForms;
using Work;
namespace TemuKJD.PDDForms.ProductSelectForms
{
public partial class PDDGetChanceProdForm : Form
{
/// <summary>
/// 是否是普通授权用户
/// </summary>
public bool IsAuthorityUser { get; set; } = false;
CheckBox chkSelectAll;
ChanceProductConfig chanceProductConfig;
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
@@ -44,6 +50,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
private void PDDGetChanceProd_Load(object sender, EventArgs e)
{
if (IsAuthorityUser)
btnShowMyCollect.Visible = true;
this.panel2.Location = new Point(45, 55);
this.panel2.Width = Math.Max(10, this.panel2.Parent.Width - 90);
this.panel2.Height = Math.Max(10, this.panel2.Parent.Height - 90);
@@ -280,7 +289,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
List<ShopLoginInfo> list = new List<ShopLoginInfo>();
pageCount = 1;
var url = BaseClass.BuildObjString("shop/admin_get_shop_list");
var url = BaseClass.BuildPDDObjString("shop/admin_get_shop_list");
var data = UserLogin.GetSignaturex() +
"&page=" + page +
"&page_size=" + pageSize +
@@ -332,7 +341,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
{
{
PDDAdminShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
if (shop.LoginStatus == "登录成功")
if (IsAuthorityUser)
displayShopStatus(shop);
else if (shop.LoginStatus == "登录成功")
{
PDDAdminShopLoginForm shopLoginForm = new PDDAdminShopLoginForm(shop);
shopLoginForm.openType = EnumOpenType.manage;
@@ -877,10 +888,15 @@ namespace TemuKJD.PDDForms.ProductSelectForms
continue;
}
// 机会商品采集权限用户采集的数据加上用户前缀(商品前缀显示给用户的时候隐藏)
string userAuthorityTag = "";
if (IsAuthorityUser)
userAuthorityTag = "-" + BaseClass.UserName;
bool isExist = false;
var existUrl = BaseClass.BuildObjString("product/get_product_list");
var existUrl = BaseClass.BuildPDDObjString("product/get_product_list");
// 每次获取的机会商品goods_id都不同,此处根据机会商品的chanceId来获取库中是否存在
string existData = UserLogin.GetSignaturex() + "&from_shop_id=" + chanceId;
string existData = UserLogin.GetSignaturex() + "&from_shop_id=" + chanceId + userAuthorityTag;
string html = GetHtml.PostUtf8(existUrl, existData);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(existUrl, existData);
@@ -900,19 +916,20 @@ namespace TemuKJD.PDDForms.ProductSelectForms
isExist = true;
}
var url = BaseClass.BuildObjString("product/add_product");
var url = BaseClass.BuildPDDObjString("product/add_product");
if (isExist)
{
if (chkOverride.Checked)
{
var oldSpuId = BaseRegex.GetLongJson(ref html, "spu_id");
// 将商品编号前缀给还原
var oldSpuId = BaseRegex.GetStringJson(ref html, "spu_id").Replace("-" + BaseClass.UserName, "").ParseToLong();
if (oldSpuId > 0)
{
// 将商品Id替换成老的商品Id
dbProd.product_json = dbProd.product_json.Replace(prodDetail.goods_id.ParseToString(), oldSpuId.ParseToString());
prodDetail.goods_id = oldSpuId;
}
url = BaseClass.BuildObjString("product/mdy_product");
url = BaseClass.BuildPDDObjString("product/mdy_product");
}
else
{
@@ -925,8 +942,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
}
var data = Work.UserLogin.GetSignaturex() +
"&from_shop_id=" + chanceId +
"&spu_id=" + prodDetail.goods_id.ParseToString() +
"&from_shop_id=" + chanceId + userAuthorityTag +
"&spu_id=" + prodDetail.goods_id.ParseToString() + userAuthorityTag +
"&skc_id=" + prodDetail.goods_id.ParseToString() +
"&price_text=" + prodDetail.sku.Min(s => s.multi_price).ParseToInt() * 0.01m + "-" + prodDetail.sku.Max(s => s.multi_price).ParseToInt() * 0.01m +
"&main_cat_id=" + (prodDetail.cat_ids?.FirstOrDefault(c => c != null)).ParseToString() +
@@ -939,6 +956,11 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"&size_json=" + HttpUtility.UrlEncode(dbProd.size_json, Encoding.UTF8) +
"&main_img=" + HttpUtility.UrlEncode(dbProd.main_img, Encoding.UTF8) +
"&product_get_type=" + HttpUtility.UrlEncode("机会商品", Encoding.UTF8);
if (IsAuthorityUser)
{
data += "&add_user_name=" + BaseClass.UserName;
data += "&group=用户" + BaseClass.UserName;
}
if (dbProd.main_cat_id == "15543" || dbProd.main_cat_name == "书籍/杂志/报纸")
{
data += "&special_prod_type=" + HttpUtility.UrlEncode("书籍", Encoding.UTF8);
@@ -1118,6 +1140,12 @@ namespace TemuKJD.PDDForms.ProductSelectForms
}
}
}
private void btnGetMyCollect_Click(object sender, EventArgs e)
{
WXUserCollectAuthProdListForm userCollectAuthProdListForm = new WXUserCollectAuthProdListForm();
userCollectAuthProdListForm.ShowDialog();
}
}
public class ChanceProductConfig
@@ -108,7 +108,9 @@ namespace TemuKJD.PDDForms.ShopForms
//OnInfoReceived("商品获取失败!商品数据格式获取失败!");
return "商品获取失败!商品数据格式获取失败!";
}
if (catId.IsNullOrEmpty())
//if (catId.IsNullOrEmpty())
// catId = product.cat_id.ParseToString();
if (!product.cat_id.IsNullOrZero())
catId = product.cat_id.ParseToString();
}
catch (Exception ex)